/* Meridian Infinity — navy & gold */
:root {
  --ink: #050c19;
  --navy-900: #081326;
  --navy-800: #0c1b33;
  --navy-700: #12264a;
  --navy-logo: #0f2242;
  --gold: #c6a15b;
  --gold-soft: #dcc08a;
  --gold-deep: #a8833f;
  --ivory: #f5f0e6;
  --ivory-2: #ece4d4;
  --text: #e9e4da;
  --muted: #9aa6bb;
  --line: rgba(198, 161, 91, .22);
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--navy-900); color: var(--text);
  font-family: var(--font-body); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:lang(ar) body, :lang(fa) body, body:lang(ar), body:lang(fa) { font-size: 18px; line-height: 1.9; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.005em; }
:is(:lang(si), :lang(ta), :lang(hi), :lang(ar), :lang(fa)) :is(h1, h2, h3) { line-height: 1.45; letter-spacing: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 99; background: var(--gold); color: var(--ink); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Logo ---------- */
.mark .mark-m { fill: #fff; }
.mark .mark-bar { fill: var(--gold); }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand .mark { width: 34px; height: auto; }
.brand-txt {
  font-family: 'Jost', system-ui, sans-serif; font-weight: 400; font-size: 13px;
  letter-spacing: .32em; color: var(--gold); white-space: nowrap;
}

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(8, 19, 38, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 84px; transition: height .4s var(--ease); }
.top.scrolled .top-in { height: 68px; }
.nav { display: flex; gap: 34px; margin-inline-start: auto; }
.nav a { font-size: 14px; letter-spacing: .06em; color: var(--text); opacity: .82; position: relative; padding: 6px 0; transition: opacity .3s; }
.nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 8px 14px; border: 1px solid var(--line); color: var(--gold-soft);
  transition: border-color .3s, background .3s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--gold); background: rgba(198,161,91,.06); }
.lang summary svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px 0; list-style: none; min-width: 170px;
  background: var(--navy-800); border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0,0,0,.45);
}
.lang li a { display: block; padding: 8px 18px; font-size: 15px; color: var(--text); }
.lang li a:hover { background: rgba(198,161,91,.1); color: var(--gold-soft); }
.lang li a[aria-current] { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; font: 400 14px/1 var(--font-body); letter-spacing: .08em;
  border: 1px solid var(--gold); cursor: pointer; transition: background .35s var(--ease), color .35s, transform .35s var(--ease);
}
:lang(en) .btn { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep)); color: var(--ink); font-weight: 500; }
.btn-gold:hover { transform: translateY(-2px); background: var(--gold-soft); }
.btn-line { background: transparent; color: var(--gold-soft); }
.btn-line:hover { background: rgba(198,161,91,.1); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 75% 30%, rgba(30, 58, 110, .55), transparent 65%),
    radial-gradient(700px 500px at 10% 90%, rgba(198, 161, 91, .08), transparent 60%),
    linear-gradient(180deg, var(--ink), var(--navy-900));
}
.hero::before { /* meridian lines */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(90deg, transparent 0 119px, rgba(198,161,91,.06) 119px 120px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-bg { position: absolute; inset-block: 0; inset-inline-end: -4%; width: 52%; display: grid; place-items: center; pointer-events: none; }
.hero-mark { width: min(560px, 90%); opacity: .09; }
.hero-mark .mark-m { fill: #fff; }
.hero-mark .mark-bar { fill: var(--gold); opacity: 1; }
.hero-in { position: relative; padding-block: 140px 120px; max-width: var(--wrap); }
.kicker { color: var(--gold); font-size: 13px; letter-spacing: .3em; margin-bottom: 28px; display: flex; align-items: center; gap: 16px; }
.kicker::before { content: ''; width: 48px; height: 1px; background: var(--gold); }
:is(:lang(ar), :lang(fa), :lang(si), :lang(ta), :lang(hi), :lang(zh)) .kicker { letter-spacing: .04em; font-size: 15px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 86px); max-width: 15ch; color: #fbf7ef; }
:is(:lang(si), :lang(ta), :lang(hi)) .hero h1 { font-size: clamp(32px, 4.4vw, 58px); max-width: 22ch; }
:lang(zh) .hero h1 { max-width: 13ch; }
.hero .lead { margin-top: 30px; max-width: 58ch; font-size: clamp(17px, 1.4vw, 19px); color: #c2c9d6; }
.ctas { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 16px; }
.scroll-cue { position: absolute; bottom: 34px; left: 50%; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--gold); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Sections ---------- */
section { position: relative; padding-block: clamp(90px, 11vw, 150px); }
.label { color: var(--gold); font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 18px; }
:is(:lang(ar), :lang(fa), :lang(si), :lang(ta), :lang(hi), :lang(zh)) .label { letter-spacing: .02em; font-size: 15px; text-transform: none; }
h2 { font-size: clamp(34px, 4.2vw, 56px); color: #fbf7ef; max-width: 20ch; }
:is(:lang(si), :lang(ta), :lang(hi)) h2 { font-size: clamp(28px, 3.2vw, 42px); }
.rule { width: 64px; height: 1px; background: var(--gold); margin: 30px 0; }
.body { color: #b9c1cf; font-size: 18px; max-width: 62ch; }
.sec-head { margin-bottom: 64px; }
.sec-head .body { margin-top: 22px; }

.light { background: var(--ivory); color: #1d2433; }
.light h2, .light h3 { color: var(--navy-logo); }
.light .body, .light p { color: #4b5363; }
.light .label { color: var(--gold-deep); }

/* About */
.about-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.stats { margin: 0; display: grid; gap: 0; border-block: 1px solid rgba(15,34,66,.15); }
.stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 26px 4px; border-bottom: 1px solid rgba(15,34,66,.1); }
.stats div:last-child { border-bottom: 0; }
.stats dt { font-size: 15px; color: #5a6273; }
.stats dd { margin: 0; font-family: var(--font-head); font-size: clamp(30px, 3vw, 42px); color: var(--navy-logo); line-height: 1; }

/* Services */
.services { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--navy-900); padding: 44px 32px 48px; transition: background .5s var(--ease); position: relative; }
.card::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; height: 2px; width: 0; background: var(--gold); transition: width .6s var(--ease); }
.card:hover { background: #0d1d38; }
.card:hover::before { width: 100%; }
.ic { width: 46px; height: 46px; margin-bottom: 30px; color: var(--gold); }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 26px; color: #fbf7ef; margin-bottom: 14px; }
:is(:lang(si), :lang(ta), :lang(hi)) .card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 16px; }

/* Routes */
.routes-sec { background: var(--navy-800); }
.map-frame { margin: 0; border: 1px solid var(--line); background: radial-gradient(900px 400px at 50% 50%, rgba(30,58,110,.35), transparent 70%), var(--navy-900); padding: clamp(16px, 3vw, 40px); }
.routemap { width: 100%; height: auto; direction: ltr; }
.routemap .grid line { stroke: rgba(198,161,91,.07); stroke-width: 1; }
.rt-base { fill: none; stroke: rgba(198,161,91,.28); stroke-width: 1.2; }
.rt-flow { fill: none; stroke: var(--gold-soft); stroke-width: 1.6; stroke-dasharray: 2 14; stroke-linecap: round; animation: flow 3.2s linear infinite; animation-delay: var(--d); }
@keyframes flow { to { stroke-dashoffset: -64; } }
.node .dot { fill: var(--gold); }
.node.hub .dot { fill: #fff; stroke: var(--gold); stroke-width: 3; }
.node .halo { fill: rgba(198,161,91,.12); stroke: rgba(198,161,91,.35); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulse 3s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }
.node .nm { fill: #fbf7ef; font-family: var(--font-head); font-size: 21px; }
.node .sb { fill: var(--gold); font-family: var(--font-body); font-size: 12px; letter-spacing: .12em; }
.map-frame figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: end; }

/* Why + details */
.why-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.why-list { display: grid; gap: 34px; margin-top: 10px; }
.why-item { display: grid; grid-template-columns: 46px 1fr; gap: 24px; }
.why-item .ic { color: var(--gold-deep); margin: 0; }
.why-item h3 { font-size: 26px; margin-bottom: 6px; }
:is(:lang(si), :lang(ta), :lang(hi)) .why-item h3 { font-size: 20px; }
.details { background: var(--navy-900); color: var(--text); padding: clamp(32px, 4vw, 52px); position: relative; box-shadow: 0 40px 80px -30px rgba(8,19,38,.55); }
.details::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
.details h3 { color: var(--gold); font-size: 28px; margin-bottom: 26px; }
.details dl { margin: 0; }
.details dl div { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.details dl div:last-child { border-bottom: 0; }
.details dt { font-size: 12.5px; color: var(--muted); letter-spacing: .08em; margin-bottom: 4px; }
.details dd { margin: 0; font-size: 17px; color: #fbf7ef; }
:is(:lang(ar), :lang(fa)) .details dd[dir="ltr"] { text-align: right; }
.details a:hover { color: var(--gold-soft); }

/* Contact */
.contact { background: radial-gradient(900px 500px at 85% 20%, rgba(30,58,110,.45), transparent 65%), var(--ink); }
.contact-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 100px); }
.contact .body { margin-top: 22px; }
.contact-list { list-style: none; padding: 0; margin: 42px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; color: #d6d9e0; }
.contact-list svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.6; color: var(--gold); }
.contact-list a:hover { color: var(--gold-soft); }
.form { display: grid; gap: 22px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); background: rgba(12,27,51,.55); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: grid; gap: 8px; }
.form label span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.form input, .form textarea {
  width: 100%; font: 400 16px/1.5 var(--font-body); color: #fbf7ef; background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.18); padding: 10px 2px; border-radius: 0; transition: border-color .3s;
}
.form textarea { resize: vertical; border: 1px solid rgba(255,255,255,.18); padding: 12px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form .btn { justify-self: start; margin-top: 6px; }
.form .note { font-size: 13px; color: var(--muted); }

/* Footer */
.foot { background: var(--ink); border-top: 1px solid var(--line); padding-block: 44px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot p { font-size: 13.5px; color: var(--muted); }
.foot-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); }
.foot-langs a { font-size: 14px; color: var(--muted); }
.foot-langs a:hover, .foot-langs a[aria-current] { color: var(--gold); }

/* WhatsApp button */
.wa-float {
  position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-800); color: var(--gold); border: 1px solid var(--gold);
  box-shadow: 0 14px 34px rgba(0,0,0,.4); transition: transform .35s var(--ease), background .35s;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-3px); background: var(--gold); color: var(--ink); }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2), .js .why-list .reveal:nth-child(2) { transition-delay: .1s; }
.js .cards .reveal:nth-child(3), .js .why-list .reveal:nth-child(3) { transition-delay: .2s; }
.js .cards .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-in, .why-in, .contact-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .hero-bg { width: 100%; inset-inline-end: 0; }
  .hero-mark { width: 80%; opacity: .06; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .brand-txt { font-size: 11px; letter-spacing: .24em; }
  .brand .mark { width: 28px; }
  .lang summary span { display: none; }
  .cards { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .ctas .btn { width: 100%; }
  .hero-in { padding-block: 120px 100px; }
  .stats div { padding: 20px 2px; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
