/* ============================================================
   TCOMM — base.css
   Tokens, reset, top nav, and the globe hero (Section 1).
   All colour / type / spacing as CSS variables for the WP port.
   ============================================================ */
:root {
  color-scheme: light;

  /* ===== Light theme — Green / Grey / White =====
     Dominant surfaces are white + light grey. The immersive WebGL/canvas
     scenes (globe, meteor, OSA conduit) use additive-blend green glow that
     needs a deep backdrop, so their "black" is now a slate GREY, not black. */

  /* dominant light surfaces */
  --bg: #ecefec;                       /* page base — light grey          */
  --surface-1: #f4f7f5;                /* light surface                   */
  --surface-2: #e9efe9;                /* soft grey-green                 */
  --surface-3: #ffffff;                /* white                           */

  /* immersive scene greys (replace the old near-blacks) */
  --scene-0: #1b2220;                  /* deepest slate-grey scene edge   */
  --scene-1: #232b28;                  /* mid scene grey                  */
  --scene-2: #2c352f;                  /* raised scene grey               */

  --green: #56e08a;                    /* glow green (on scene greys)     */
  --green-bright: #b6ffce;             /* highlight green                 */
  --green-net: #4ade80;                /* network / accent green          */
  --green-deep: #1f8a52;               /* green that reads on light bg    */

  /* text on the scene greys (kept light) */
  --ink: #ebfff0;                      /* near-white text on scenes       */
  --grey: rgba(210,235,220,0.62);      /* muted light text on scenes      */
  --grey-dim: rgba(210,235,220,0.40);  /* dimmer labels on scenes         */
  --grey-faint: rgba(210,235,220,0.16);/* hairlines on scenes             */
  --hairline: rgba(120,200,150,0.14);  /* green-tinted hairline on scenes */

  /* text on the light surfaces (grey, NOT black) */
  --bg-light: #f4f7f5;                 /* near-white, green-grey hint     */
  --bg-light-2: #e9efe9;               /* soft grey-green panel           */
  --ink-dark: #26322c;                 /* dark slate-GREY headings        */
  --grey-dark: #586a60;                /* muted text on light             */
  --hair-dark: rgba(20,60,40,0.12);    /* hairlines on light              */

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", monospace;

  --container: 1240px;
  --pad-x: clamp(20px, 6vw, 96px);
  --section-y: clamp(96px, 14vh, 200px);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --reveal-dist: 26px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); }
body { overflow-x: clip; }   /* clip, NOT hidden — hidden breaks position:sticky */

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

/* shared atoms ------------------------------------------------ */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }

.eyebrow {
  margin: 0; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--green);
  display: inline-flex; align-items: center; gap: 11px;
}
/* live status LED — blinks once it scrolls into view */
.eyebrow::before {
  content: ""; flex: 0 0 auto; order: -1;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 9px var(--green);
  opacity: .5;
}
.eyebrow.lit::before { opacity: 1; }
/* fiber line — draws in left→right, then a light pulse travels along it */
.eyebrow::after {
  content: ""; flex: 0 0 auto; align-self: center;
  width: 56px; height: 1px;
  background-color: rgba(86, 224, 138, 0.42);
  background-image: linear-gradient(90deg, transparent 0%, var(--green-bright) 50%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 22px 100%;
  background-position: -26px 0;
  transform: scaleX(0); transform-origin: left center;
}
.eyebrow.lit::after { transform: scaleX(1); }
.eyebrow.no-rule::after { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .eyebrow::after { transition: transform .75s var(--ease); }
  .eyebrow.lit::before { animation: eyebrow-led 1.7s steps(1, end) infinite; }
  .eyebrow.lit::after { animation: eyebrow-pulse 2.6s linear infinite .5s; }
}
@keyframes eyebrow-led { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes eyebrow-pulse {
  0% { background-position: -26px 0; }
  55%, 100% { background-position: 62px 0; }
}

.coord-tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--grey-dim);
}

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 32px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .18s var(--ease), background .22s, border-color .22s, color .22s, box-shadow .22s;
}
.btn:hover { transform: translateY(-2px); }
/* ---- Liquid glass button system ----------------------------
   Two members, used consistently site-wide:
   .btn-primary  = GREEN liquid glass
   .btn-ghost    = BRIGHT (clear) liquid glass
   A moving specular sheen (::after) sweeps on hover; the gloss is
   baked into layered backgrounds so button text always stays on top. */
.btn-primary, .btn-ghost {
  -webkit-backdrop-filter: blur(13px) saturate(1.6);
  backdrop-filter: blur(13px) saturate(1.6);
  isolation: isolate;
}
.btn-primary::after, .btn-ghost::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg); pointer-events: none;
  transition: left .55s var(--ease); opacity: .0;
}
.btn-primary:hover::after, .btn-ghost:hover::after { left: 130%; opacity: .9; }

/* primary CTA — GREEN liquid glass */
.btn-primary {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.46) 0%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0) 70%),
    linear-gradient(165deg, rgba(86,224,138,0.92) 0%, rgba(31,138,82,0.95) 58%, rgba(18,92,56,0.96) 100%);
  border: 1px solid rgba(190,255,214,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -12px 22px -14px rgba(8,40,24,0.42),
    0 18px 44px -18px rgba(20,90,55,0.55);
}
.btn-primary:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.56) 0%, rgba(255,255,255,0.10) 42%, rgba(255,255,255,0) 72%),
    linear-gradient(165deg, rgba(110,236,160,0.95) 0%, rgba(40,162,98,0.97) 58%, rgba(22,108,66,0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.62),
    0 24px 56px -18px rgba(20,90,55,0.6),
    0 0 0 1px rgba(86,224,138,0.4);
}

/* glass / ghost CTA — BRIGHT liquid glass (clear/frosted) */
.btn-ghost {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0.10) 46%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -10px 20px -14px rgba(0,0,0,0.25),
    0 14px 38px -16px rgba(0,0,0,0.42);
}
.btn-ghost:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0.20) 50%, rgba(255,255,255,0.08) 100%);
  border-color: rgba(255,255,255,0.66);
}
/* on light surfaces the BRIGHT glass becomes a white frosted pill with dark ink */
.s7 .btn-ghost, .s5 .btn-ghost, .s9 .btn-ghost {
  color: var(--ink-dark);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.52) 100%);
  border-color: rgba(20,60,40,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 14px 34px -16px rgba(30,60,45,0.34);
}
.s7 .btn-ghost:hover, .s5 .btn-ghost:hover, .s9 .btn-ghost:hover {
  color: var(--green-deep);
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.78) 100%);
  border-color: rgba(31,138,82,0.42);
}
.s7 .btn-ghost::after, .s5 .btn-ghost::after, .s9 .btn-ghost::after {
  background: linear-gradient(100deg, transparent, rgba(86,224,138,0.30), transparent);
}

.ghost-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); text-decoration: none; transition: gap .2s var(--ease), color .2s;
}
.ghost-link .arr { transition: transform .2s var(--ease); }
.ghost-link:hover { color: var(--green-bright); }
.ghost-link:hover .arr { transform: translateX(4px); }

/* scroll-reveal primitive (JS adds .in) ---------------------- */
.reveal { opacity: 0; transform: translateY(var(--reveal-dist)); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- liquid glass utility -------------------------- */
.liquid-glass {
  position: relative; overflow: hidden;
  background: rgba(10, 16, 16, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.liquid-glass::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 38%, transparent 72%);
}
.liquid-glass > * { position: relative; z-index: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .liquid-glass { background: rgba(8, 12, 12, 0.86); }
}

/* ---------- top nav --------------------------------------- */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding: clamp(14px, 2.2vh, 24px) clamp(20px, 4vw, 64px) 0;
  pointer-events: none;
}
.site-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 9px 11px 9px 18px; border-radius: 999px;
  pointer-events: auto;
  background: rgba(16, 22, 19, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right { gap: 12px; }
.nav-div { width: 1px; height: 26px; background: rgba(255,255,255,0.20); }
.site-nav.scrolled {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
  padding-left: 0; padding-right: 0;
}
/* kill the liquid-glass sheen overlay band once collapsed to corners */
.site-nav.scrolled::before { display: none; }
/* scrolled = collapse to corners: logo stays top-left, burger appears top-right,
   every menu item hides until the burger opens the drawer. */
.site-nav.scrolled .nav-links,
.site-nav.scrolled .nav-div,
.site-nav.scrolled .lang-toggle,
.site-nav.scrolled .nav-cta { display: none; }
.site-nav.scrolled .nav-burger { display: inline-flex; }
/* logo + burger get their own frosted chip so they read over any section */
.site-nav.scrolled .brand {
  padding: 8px 10px; border-radius: 13px;
  background: transparent;
  border: 1px solid transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
/* logo turns white with a soft light shadow so it reads over the dark globe */
.site-nav.scrolled .brand .brand-logo {
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,0.5)) drop-shadow(0 0 10px rgba(255,255,255,0.35));
}
.site-nav.scrolled .nav-burger {
  background: transparent;
  border: 1px solid transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
/* burger bars turn white with the same soft light shadow */
.site-nav.scrolled .nav-burger .bars i {
  background: #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5)) drop-shadow(0 0 8px rgba(255,255,255,0.3));
}
/* scrolled = over the light content sections — flip nav text to grey/dark */
.site-nav.scrolled .brand .mark { color: var(--ink-dark); }
.site-nav.scrolled .brand .mark b { color: var(--green-deep); }
.site-nav.scrolled .brand .tld { color: var(--grey-dark); }
.site-nav.scrolled .nav-links a { color: var(--grey-dark); }
.site-nav.scrolled .nav-links a:hover { color: var(--ink-dark); }
.site-nav.scrolled .nav-cta { color: var(--ink-dark); background: rgba(20, 50, 35, 0.06); border-color: rgba(20, 60, 40, 0.20); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.site-nav.scrolled .nav-cta::before { background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent 70%); }
.site-nav.scrolled .nav-cta:hover { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.site-nav > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand .mark { font-size: 20px; color: var(--ink); }
.brand .mark b { color: var(--green); }
.brand .tld { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--grey-dim); text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; font-size: 13px; font-weight: 500; }
.nav-links a { color: rgba(255,255,255,0.82); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #fff; }
/* multi-language toggle — segmented sliding switch (BM | EN) */
.lang-toggle { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.lt-track {
  position: relative; display: inline-flex; align-items: center;
  padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lt-opt {
  position: relative; z-index: 1; width: 34px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  padding: 6px 0; color: rgba(255,255,255,0.62); transition: color .26s var(--ease);
}
.lt-opt.active { color: #08130d; }
.lt-knob {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 34px; z-index: 0;
  border-radius: 999px; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
  transition: transform .28s cubic-bezier(.4,.05,.2,1);
}
.lang-toggle.en .lt-knob { transform: translateX(34px); }
/* nav CTA — white capsule pill (matches reference "Get Started") */
.nav-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.01em;
  color: #0d2a1c; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f2 100%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 18px -10px rgba(0,0,0,0.4);
  transition: transform .2s var(--ease), color .22s, box-shadow .22s, background .22s;
}
.nav-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(86,224,138,0.45), transparent);
  transform: skewX(-18deg); pointer-events: none; transition: left .55s var(--ease); opacity: 0;
}
.nav-cta:hover::after { left: 130%; opacity: .9; }
.nav-cta span { position: relative; z-index: 1; }
.nav-cta:hover {
  transform: translateY(-1px);
  color: var(--green-deep);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 12px 26px -10px rgba(0,0,0,0.45);
}

/* burger — animated 3 bars ↔ X; shown when scrolled (any width) or on mobile */
.nav-burger {
  display: none; pointer-events: auto;
  width: 44px; height: 44px; padding: 0; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--ink-dark);
  transition: background .22s var(--ease), box-shadow .22s var(--ease);
}
.nav-burger .bars { position: relative; display: block; width: 22px; height: 14px; }
.nav-burger .bars i {
  position: absolute; left: 0; right: 0; height: 2.2px; border-radius: 2px; background: currentColor;
  transition: transform .32s var(--ease), opacity .18s var(--ease), top .32s var(--ease);
}
.nav-burger .bars i:nth-child(1) { top: 0; }
.nav-burger .bars i:nth-child(2) { top: 6px; }
.nav-burger .bars i:nth-child(3) { top: 12px; }
.nav-burger.is-open .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-burger.is-open .bars i:nth-child(2) { opacity: 0; }
.nav-burger.is-open .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.lang { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--grey-dim); background: none; border: 0; cursor: pointer; }
.lang b { color: var(--green-bright); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ---------- mobile / collapsed drawer --------------------- */
.nav-scrim {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(8,16,12,0.44);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.nav-scrim.show { opacity: 1; }
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 31;
  width: min(360px, 84vw);
  display: flex; flex-direction: column;
  padding: clamp(84px, 13vh, 124px) clamp(26px, 5vw, 40px) clamp(28px, 5vh, 44px);
  background: rgba(247,250,248,0.72);
  -webkit-backdrop-filter: blur(28px) saturate(1.7); backdrop-filter: blur(28px) saturate(1.7);
  border-left: 1px solid rgba(255,255,255,0.6);
  box-shadow: -30px 0 80px -30px rgba(20,40,30,0.5);
  transform: translateX(100%);
  transition: transform .42s var(--ease);
}
.nav-drawer.open { transform: translateX(0); }
.drawer-links { display: flex; flex-direction: column; gap: 2px; }
.drawer-links a {
  font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--ink-dark);
  text-decoration: none; padding: 13px 0; border-bottom: 1px solid rgba(20,60,40,0.09);
  transition: color .2s, padding-left .22s var(--ease);
}
.drawer-links a:hover { color: var(--green-deep); padding-left: 6px; }
.drawer-cta { margin-top: auto; width: 100%; }

/* ---------- hero (Section 1) ------------------------------- */
.hero { position: relative; height: 520vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.globe-stage {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(130% 120% at 72% 46%, var(--scene-2) 0%, var(--scene-1) 58%, var(--scene-0) 100%);
}
.globe-canvas { display: block; width: 100%; height: 100%; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none;
  background:
    linear-gradient(101deg,
      rgba(20,26,24,0.95) 0%, rgba(20,26,24,0.78) 26%, rgba(22,28,25,0.30) 52%, rgba(22,28,25,0.0) 72%),
    linear-gradient(to top, rgba(20,26,24,0.65) 0%, rgba(20,26,24,0) 38%);
}

.hero-content {
  position: absolute; z-index: 2;
  left: var(--pad-x); top: 50%; transform: translateY(-50%);
  max-width: 600px; width: min(90vw, 600px);
  opacity: 0; pointer-events: none;
}
.hero-content .eyebrow { margin-bottom: 18px; }
.hero-content h1 {
  font-size: clamp(34px, 5.6vw, 76px); line-height: 1.02; color: var(--ink);
}
.hero-content h1 .accent { color: var(--green); }
.hero-content .subhead { margin: 26px 0 0; max-width: 460px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; color: var(--grey); }
.hero-content .cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; pointer-events: auto; }

.globe-caption {
  position: absolute; left: var(--pad-x); bottom: clamp(20px, 5vh, 46px); z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--grey); text-indent: 0.4em; pointer-events: none;
}
.globe-caption .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.globe-caption .pct { color: rgba(150,240,180,0.95); font-variant-numeric: tabular-nums; }

.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(20px, 5vh, 46px); transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.5em; text-indent: 0.5em; text-transform: uppercase;
  color: var(--grey); pointer-events: none; transition: opacity .3s ease;
}
.scroll-cue .rail { width: 1px; height: 40px; background: linear-gradient(rgba(86,224,138,0), rgba(86,224,138,0.9)); position: relative; overflow: hidden; }
.scroll-cue .rail::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--green-bright); animation: drop 1.8s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes drop { 0% { top: -45%; } 60%,100% { top: 105%; } }

#warp { position: fixed; inset: 0; z-index: 30; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 58% 50%, #d6ffe6 0%, #56e08a 45%, #0a3a22 100%); }

@media (prefers-reduced-motion: reduce) {
  .globe-caption .dot, .scroll-cue .rail::after { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Primary nav — submenu dropdown (hover) + drawer sub-links
   ============================================================ */
.nav-links .nav-item.has-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-links .nav-parent { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-links .nav-parent .caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .5; transition: transform .25s ease, opacity .2s;
}
.nav-item.has-dropdown:hover .caret { transform: rotate(180deg); opacity: .9; }
.nav-item.has-dropdown::after { content: ""; position: absolute; top: 100%; left: -12px; right: -12px; height: 18px; }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 214px; display: flex; flex-direction: column; gap: 2px;
  padding: 8px; border-radius: 16px;
  background: rgba(15, 25, 20, 0.86);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 200;
}
.nav-item.has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.site-nav .nav-dropdown a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 500; line-height: 1.3;
  color: rgba(255, 255, 255, 0.84); white-space: nowrap;
  text-decoration: none; transition: background .15s, color .15s;
}
.site-nav .nav-dropdown a:hover { background: rgba(108, 196, 138, 0.16); color: #fff; }
.drawer-links .drawer-sub { padding-left: 24px; opacity: .82; font-size: .95em; }

/* let the dropdown escape the liquid-glass overflow:hidden clip while hovering */
.site-nav.liquid-glass:has(.nav-item.has-dropdown:hover) { overflow: visible; }

/* lang toggle options are links (Polylang switch) */
.lang-toggle a.lt-opt { text-decoration: none; cursor: pointer; }

/* whole toggle is one link (flip to opposite language) */
a.lang-toggle { text-decoration: none; display: inline-flex; }
