/* ============================================================
   Ludumina Labs — CHROME: header, beta CTA band, footer.
   Owned by the chrome builder.
   Scoped under [data-section="header"|"cta"|"footer"].
   ============================================================ */

/* ------------------------------------------------------------
   0. Chrome-owned globals.
   Additive only — no shared token is redefined here.
   --hdr-h / --hdr-h-min are new variables, not overrides.
   ------------------------------------------------------------ */

:root {
  --hdr-h:     86px;   /* transparent, over the hero */
  --hdr-h-min: 60px;   /* condensed, after scroll     */
}
@media (max-width: 900px) {
  :root { --hdr-h: 68px; --hdr-h-min: 56px; }
}

/* Anchor jumps must not tuck a heading under the fixed header.
   :where() keeps specificity at 0 so any section can override. */
:where([id]) { scroll-margin-top: calc(var(--hdr-h-min) + 2.25rem); }

/* Visually hidden, still announced. */
.u-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* .skip-link is styled in css/base.css and nowhere else. The duplicate that
   used to live here relied on load order to win — deleted. */

/* Overlay menu open → freeze the page behind it. */
html.is-navopen, html.is-navopen body { overflow: hidden; }


/* ============================================================
   1. HEADER
   ============================================================ */

[data-section="header"] {
  --h: var(--hdr-h);

  /* ---- the band's own geometry -------------------------------------
     --sh  shoulder step: how far the plate rises over the outer gutters
     --rim thickness of the edge that traces the profile
     --e   x of the content-column edge — identical to the maths in
           .hdr__inner (max-width + gutter), so the notch inflects exactly
           where the logo starts and the CTA ends. Percentages resolve
           against the header width in every place --e is used.
     ------------------------------------------------------------------ */
  --sh: var(--notch);
  --rim: 1.5px;
  --e: calc(max((100% - var(--maxw)) / 2, 0px) + var(--gut));

  /* Outer profile: deep across the content column, stepped up over the
     gutters, 45° shoulders in between. */
  --hdr-shape: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--sh)),
    calc(100% - var(--e) + var(--sh)) calc(100% - var(--sh)),
    calc(100% - var(--e)) 100%,
    var(--e) 100%,
    calc(var(--e) - var(--sh)) calc(100% - var(--sh)),
    0 calc(100% - var(--sh))
  );

  /* The same profile as a closed ribbon --rim thick: outward along the
     bottom edge, back along the same edge raised by --rim. Drawing only
     the rim (rather than a filled shape under the plate) means the edge
     and the plate can fade together with no wash in between. */
  --hdr-rim: polygon(
    0 calc(100% - var(--sh)),
    calc(var(--e) - var(--sh)) calc(100% - var(--sh)),
    var(--e) 100%,
    calc(100% - var(--e)) 100%,
    calc(100% - var(--e) + var(--sh)) calc(100% - var(--sh)),
    100% calc(100% - var(--sh)),
    100% calc(100% - var(--sh) - var(--rim)),
    calc(100% - var(--e) + var(--sh)) calc(100% - var(--sh) - var(--rim)),
    calc(100% - var(--e)) calc(100% - var(--rim)),
    var(--e) calc(100% - var(--rim)),
    calc(var(--e) - var(--sh)) calc(100% - var(--sh) - var(--rim)),
    0 calc(100% - var(--sh) - var(--rim))
  );

  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  pointer-events: none;           /* re-enabled on the interactive bits */
}
[data-section="header"].is-stuck { --h: var(--hdr-h-min); }

[data-section="header"] .hdr__band {
  position: relative;
  height: var(--h);
  pointer-events: auto;
  transition: height 0.5s var(--ease);
}

/* Darkened, blurred plate — faded in on scroll rather than toggled,
   so the transition reads as a condense, not a snap. Clipped to the
   profile, so what fades in is a shape, not a rectangle. */
[data-section="header"] .hdr__band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 15, 0.92), rgba(5, 6, 15, 0.78));
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  clip-path: var(--hdr-shape);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
[data-section="header"].is-stuck .hdr__band::before { opacity: 1; }

/* The rim. Replaces the old full-width 1px hairline: same job, but it
   follows the notch, and the cyan is loaded onto the two shoulders where
   the geometry actually turns. */
[data-section="header"] .hdr__band::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: var(--hdr-rim);
  background: linear-gradient(
    90deg,
    rgba(63, 224, 208, 0.85) 0%,
    rgba(63, 224, 208, 0.85) 4.2%,
    rgba(255, 255, 255, 0.20) 9.5%,
    rgba(255, 255, 255, 0.20) 90.5%,
    rgba(63, 224, 208, 0.70) 95.6%,
    rgba(63, 224, 208, 0.70) 100%
  );
  opacity: 0;
  transition: opacity 0.42s var(--ease) 0.08s;
}
[data-section="header"].is-stuck .hdr__band::after { opacity: 1; }

[data-section="header"] .hdr__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

/* ---- 1a. logo lockup ------------------------------------- */

[data-section="header"] .lgo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: auto;
}
[data-section="header"] .lgo__markwrap {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
}
[data-section="header"] .lgo__mark { overflow: visible; }

[data-section="header"] .lgo__ring {
  stroke: var(--cy);
  stroke-width: 1.5;
  opacity: 0.5;
}
[data-section="header"] .lgo__orbit > * {
  stroke: var(--cy);
  stroke-width: 1.3;
}
[data-section="header"] .lgo__e {
  fill: #EAFFFC;
  stroke: none;
}
[data-section="header"] .lgo__core {
  fill: var(--cy);
}
[data-section="header"] .lgo__halo {
  fill: var(--cy);
  opacity: 0.15;
}

/* the orbit turns on hover — the mark reads as a nucleus, not a badge */
[data-section="header"] .lgo__orbit {
  transform-origin: 16px 16px;
  transition: transform 1.1s var(--ease);
}
[data-section="header"] .lgo:hover .lgo__orbit { transform: rotate(180deg); }
[data-section="header"] .lgo:hover .lgo__halo { opacity: 0.3; }

[data-section="header"] .lgo__word {
  font-family: var(--f-display);
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  transition: font-size 0.5s var(--ease);
}
[data-section="header"].is-stuck .lgo__word { font-size: 0.86rem; }

/* ---- 1b. primary nav ------------------------------------- */

[data-section="header"] .hdr__nav {
  justify-self: center;
  pointer-events: auto;
}
[data-section="header"] .navlist {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2.2vw, 2rem);
}
[data-section="header"] .navlist a {
  position: relative;
  display: block;
  padding: 0.65rem 0.35rem;
  font-family: var(--f-mono);
  font-size: 0.735rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-60);
  transition: color 0.35s var(--ease);
  white-space: nowrap;
}
[data-section="header"] .navlist a::after {
  content: "";
  position: absolute;
  left: 0.35rem; right: 0.35rem;
  bottom: 0.28rem;
  height: 1px;
  background: var(--cy);
  box-shadow: 0 0 8px rgba(63, 224, 208, 0.7);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s var(--ease);
}
[data-section="header"] .navlist a:hover,
[data-section="header"] .navlist a:focus-visible { color: var(--ink); }
[data-section="header"] .navlist a:hover::after { transform: scaleX(1); }

/* scroll-spy */
[data-section="header"] .navlist a.is-active { color: var(--ink); }
[data-section="header"] .navlist a.is-active::after { transform: scaleX(1); }

/* ---- 1c. right cluster ----------------------------------- */

[data-section="header"] .hdr__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
}
[data-section="header"] .hdr__cta {
  --notch: 9px;
  padding: 0.78em 1.5em;
  font-size: 0.685rem;
  letter-spacing: 0.14em;
}

/* ---- 1d. hamburger --------------------------------------- */

[data-section="header"] .burger {
  display: none;
  place-items: center;
  width: 44px; height: 44px;   /* 44 is the floor for a tap target */
  margin-right: -9px;
}
[data-section="header"] .burger__box {
  position: relative;
  display: block;
  width: 22px; height: 14px;
}
[data-section="header"] .burger__box i {
  position: absolute;
  left: 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease), width 0.4s var(--ease);
}
[data-section="header"] .burger__box i:nth-child(1) { top: 0;    width: 22px; }
[data-section="header"] .burger__box i:nth-child(2) { top: 6px;  width: 15px; }
[data-section="header"] .burger__box i:nth-child(3) { top: 12px; width: 22px; }

[data-section="header"] .burger[aria-expanded="true"] .burger__box i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
[data-section="header"] .burger[aria-expanded="true"] .burger__box i:nth-child(2) {
  opacity: 0; transform: translateX(-10px);
}
[data-section="header"] .burger[aria-expanded="true"] .burger__box i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg); width: 22px;
}

/* ---- 1e. (the old .hdr__rail lived here)
     Deleted. Two 48×14 brackets at the page edges were geometry the header
     had not earned: they terminated in mid-air, lost to the hero's frame
     corner 30px below, and retracted entirely once condensed. The band's
     own notched edge (§1 above) does that job at every scroll position.
     ---------------------------------------------------------- */

/* ---- 1f. read progress ----------------------------------- */
/* Spans the content column and sits on the deep edge of the band, i.e.
   directly over the rim's centre run: the rim is the track, the
   violet→cyan bar is the fill. */

[data-section="header"] .hdr__prog {
  position: absolute;
  left: var(--e); right: var(--e);
  top: calc(var(--h) - var(--rim));
  height: var(--rim);
  overflow: hidden;
  transition: top 0.5s var(--ease);
  pointer-events: none;
}
[data-section="header"] .hdr__prog i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--vi), var(--cy));
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
[data-section="header"].is-stuck .hdr__prog i { opacity: 1; }

/* ---- 1g. mobile overlay menu ----------------------------- */

[data-section="header"] .navmenu {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  pointer-events: auto;
}
[data-section="header"] .navmenu[hidden] { display: none; }

[data-section="header"] .navmenu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 10, 0.6);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
[data-section="header"] .navmenu.is-open .navmenu__scrim { opacity: 1; }

[data-section="header"] .navmenu__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1.1rem var(--gut) calc(2rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 70% at 88% 0%, rgba(63, 224, 208, 0.12), transparent 62%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translate3d(0, -2%, 0);
  transition: opacity 0.42s var(--ease), transform 0.5s var(--ease);
  overflow-y: auto;
}
[data-section="header"] .navmenu.is-open .navmenu__panel {
  opacity: 1;
  transform: none;
}

[data-section="header"] .navmenu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--hdr-h) - 1.1rem);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
[data-section="header"] .navmenu__x {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;   /* 44 is the floor for a tap target */
  margin-right: -10px;
}
[data-section="header"] .navmenu__x path {
  stroke: var(--ink);
  stroke-width: 1.5;
}

[data-section="header"] .navmenu__nav { padding-top: clamp(1.5rem, 5vh, 3rem); }
[data-section="header"] .navmenu__nav li {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 55ms + 90ms);
}
[data-section="header"] .navmenu.is-open .navmenu__nav li {
  opacity: 1;
  transform: none;
}
[data-section="header"] .navmenu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 6.2vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1;
}
[data-section="header"] .navmenu__nav a b {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cy);
  opacity: 0.75;
}
[data-section="header"] .navmenu__nav a:active { color: var(--cy); }

/* ---- the roster: real content between the nav and the CTA.
        margin-top:auto used to sit on .navmenu__foot, which pushed the
        button to the floor and left a 300px void in the middle of the
        panel. It now sits here, so any residual space becomes breathing
        room above a block of content rather than a hole. ---- */

[data-section="header"] .navmenu__mid {
  margin-top: auto;
  padding-top: clamp(1.4rem, 4.5vh, 2.4rem);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 55ms + 90ms);
}
[data-section="header"] .navmenu.is-open .navmenu__mid { opacity: 1; transform: none; }

[data-section="header"] .navmenu__mt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
[data-section="header"] .navmenu__mt .micro { color: var(--ink-60); }
[data-section="header"] .navmenu__pil {
  color: var(--cy) !important;
  opacity: 0.8;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

[data-section="header"] .navmenu__worlds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.62rem 1rem;
  padding-top: 0.95rem;
  font-size: 0.84rem;
  color: var(--ink-80);
}
[data-section="header"] .navmenu__worlds li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
[data-section="header"] .ndot {
  flex: none;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.28;
}
[data-section="header"] .ndot--live {
  background: var(--cy);
  opacity: 1;
  box-shadow: 0 0 7px rgba(63, 224, 208, 0.65);
}
[data-section="header"] .navmenu__key {
  margin-top: 0.95rem;
  letter-spacing: 0.14em;
}
[data-section="header"] .navmenu__ship {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1.15rem;
}
[data-section="header"] .navmenu__ship b {
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--ink);
}

[data-section="header"] .navmenu__foot {
  margin-top: clamp(1.2rem, 3.5vh, 2rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 55ms + 90ms);
}
[data-section="header"] .navmenu.is-open .navmenu__foot { opacity: 1; transform: none; }

/* ---- 1h. responsive -------------------------------------- */

@media (max-width: 1080px) {
  [data-section="header"] .navlist { gap: 1.1rem; }
  [data-section="header"] .navlist a { font-size: 0.7rem; letter-spacing: 0.11em; }
}

@media (max-width: 900px) {
  [data-section="header"] .hdr__inner { grid-template-columns: 1fr auto; }
  [data-section="header"] .hdr__nav { display: none; }
  [data-section="header"] .hdr__cta { display: none; }
  [data-section="header"] .burger { display: grid; }
  /* the gutter is tight below 900 — shorten the shoulder so the notch
     still reads as a step rather than a spike */
  [data-section="header"] { --sh: 10px; }
}

@media (min-width: 901px) {
  [data-section="header"] .navmenu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  [data-section="header"] * { transition-duration: 0.001s !important; }
}


/* ============================================================
   2. BETA CTA BAND
   ============================================================ */

[data-section="cta"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4.5rem, 11vh, 8rem);
  border-top: 1px solid var(--line);
}

[data-section="cta"] .cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
[data-section="cta"] .cta__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  opacity: 0.55;
}
/* heavy scrim — the plate is atmosphere, never content */
[data-section="cta"] .cta__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--bg) 6%, rgba(5, 6, 15, 0.86) 42%, rgba(5, 6, 15, 0.45) 78%),
    linear-gradient(180deg, var(--bg), transparent 22%, transparent 74%, var(--bg));
}
[data-section="cta"] .cta__grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 88px);
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000 75%, transparent);
  opacity: 0.7;
}

[data-section="cta"] .cta__panel {
  position: relative;
  max-width: 43rem;
  padding-left: clamp(0px, 1.6vw, 26px);
}

/* HUD corner brackets — panel-level, so both corners frame the same
   composition. Band-level corners left the bottom-right one floating in
   empty plate once the panel capped at 43rem. */
[data-section="cta"] .cta__brk {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid var(--line-hot);
  opacity: 0.7;
  pointer-events: none;
}
[data-section="cta"] .cta__brk--tl {
  top: -0.95rem;
  left: -0.95rem;
  border-right: 0; border-bottom: 0;
}
[data-section="cta"] .cta__brk--br {
  bottom: -0.95rem;
  right: -0.95rem;
  border-left: 0; border-top: 0;
}

[data-section="cta"] .cta__eyebrow {
  color: var(--cy);
  opacity: 0.9;
  margin-bottom: 1.15rem;
}
[data-section="cta"] .cta__h {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
[data-section="cta"] .cta__lead {
  margin-top: 1.35rem;
  max-width: 34rem;
  color: var(--ink-80);
  font-size: var(--t-body);
}

/* ---- 2a. the honest form --------------------------------- */

[data-section="cta"] .betaform { margin-top: 2.1rem; }

[data-section="cta"] .betaform__row {
  display: flex;
  gap: 0.6rem;
  max-width: 33rem;
}
[data-section="cta"] .betaform__in {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.02em 1.25em;
  font-family: var(--f-ui);
  font-size: 0.92rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line-2);
  clip-path: var(--clip-both);
  transition: box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}
[data-section="cta"] .betaform__in::placeholder { color: var(--ink-40); }
[data-section="cta"] .betaform__in:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--line-hot);
}
[data-section="cta"] .betaform__in:focus-visible { outline: none; }
[data-section="cta"] .betaform.is-bad .betaform__in {
  box-shadow: inset 0 0 0 1px rgba(255, 178, 63, 0.7);
}
[data-section="cta"] .betaform__go {
  flex: none;
  --notch: 11px;
  padding: 1.02em 1.6em;
}

/* status readout — honest by design, styled as an instrument line */
[data-section="cta"] .betaform__status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.95rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  color: var(--ink-60);
  max-width: 36rem;
  line-height: 1.5;
}
[data-section="cta"] .betaform__dot {
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--am);
  box-shadow: 0 0 8px rgba(255, 178, 63, 0.6);
}
[data-section="cta"] .betaform.is-noted .betaform__dot {
  background: var(--cy);
  box-shadow: 0 0 8px rgba(63, 224, 208, 0.7);
}
[data-section="cta"] .betaform.is-noted .betaform__status { color: var(--ink-80); }

/* ---- 2b. fact strip -------------------------------------- */

[data-section="cta"] .cta__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.5rem, 4vw, 3.25rem);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}
[data-section="cta"] .cta__facts li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--f-mono);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

@media (max-width: 620px) {
  [data-section="cta"] .betaform__row { flex-direction: column; }
  [data-section="cta"] .betaform__go { align-self: flex-start; }
  [data-section="cta"] .cta__brk { display: none; }
  [data-section="cta"] .cta__bg img { opacity: 0.4; }
}


/* ============================================================
   3. FOOTER
   ============================================================ */

[data-section="footer"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(63, 224, 208, 0.07), transparent 58%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
  padding-top: clamp(3.5rem, 8vh, 6rem);
  padding-bottom: 2rem;
}

/* ghosted nucleus watermark */
[data-section="footer"] .ftr__mark {
  position: absolute;
  top: -60px;
  right: clamp(-90px, -4vw, -20px);
  z-index: -1;
  pointer-events: none;
}
[data-section="footer"] .ftr__mark svg {
  width: clamp(230px, 34vw, 460px);
  height: auto;
}
[data-section="footer"] .ftr__mark * {
  stroke: var(--cy);
  stroke-width: 0.32;
  opacity: 0.3;
  fill: none;
}

/* ---- 3a. masthead ---------------------------------------- */

[data-section="footer"] .ftr__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: end;
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
[data-section="footer"] .ftr__word {
  font-size: clamp(2.1rem, 6.2vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FFFFFF 22%, rgba(255, 255, 255, 0.42) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* SCIENCE · ART · HISTORY — the trailer's lockup line, each pillar dotted
   in the accent that subject carries in the worlds grid. */
[data-section="footer"] .ftr__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin-top: 1rem;
}
[data-section="footer"] .ftr__pillars li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-60);
}
[data-section="footer"] .ftr__pillars i {
  width: 5px; height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 7px var(--accent);
  opacity: 0.9;
}

[data-section="footer"] .ftr__tag {
  margin-top: 0.85rem;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cy);
  opacity: 0.85;
}
[data-section="footer"] .ftr__blurb {
  color: var(--ink-60);
  font-size: 0.94rem;
  line-height: 1.72;
  max-width: 34rem;
  justify-self: end;
}

/* ---- 3b. columns ----------------------------------------- */

[data-section="footer"] .ftr__cols {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.05fr 1.15fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}
[data-section="footer"] .ftr__ct {
  color: var(--ink-40);
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
[data-section="footer"] .ftr__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}
[data-section="footer"] .ftr__col a {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-80);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
[data-section="footer"] .ftr__col a:hover {
  color: var(--cy);
  transform: translateX(3px);
}

/* The names share a column so the pills stack into a single readout edge
   rather than stepping in and out with the length of each world's name. */
[data-section="footer"] .tagd__n { min-width: 8.4rem; }

/* status pill — every world is honestly labelled */
[data-section="footer"] .tagd {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding: 0.24em 0.6em;
  color: var(--ink-40);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  white-space: nowrap;
}
/* "Playable in engine" — the same cyan the worlds grid gives a live chip. */
[data-section="footer"] .tagd--live {
  color: var(--cy);
  box-shadow: inset 0 0 0 1px var(--line-hot);
}
[data-section="footer"] .tagd--dev {
  color: var(--am);
  box-shadow: inset 0 0 0 1px rgba(255, 178, 63, 0.4);
}

[data-section="footer"] .ftr__contact li {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  font-size: 0.9rem;
  color: var(--ink-80);
}

/* ---- 3c. channels (no invented accounts) -----------------
   The .chrow / .chrow__i glyph rules are gone with their markup: three
   ghosted brand marks read as broken links and committed us to three
   platforms. The state is now an instrument readout in the CTA's
   language — amber dot, mono line — which says the same thing without
   drawing a logo for an account that does not exist. */

[data-section="footer"] .ftr__ro {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ink-80);
}
[data-section="footer"] .ftr__rodot {
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--am);
  box-shadow: 0 0 8px rgba(255, 178, 63, 0.6);
}
[data-section="footer"] .chrow__note {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-40);
  max-width: 20rem;
}

/* ---- 3d. technical strip --------------------------------- */

[data-section="footer"] .ftr__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.5rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-40);
}
[data-section="footer"] .ftr__strip li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
[data-section="footer"] .ftr__strip li:not(:last-child)::after {
  content: "";
  width: 4px; height: 4px;
  background: var(--cy);
  opacity: 0.55;
  transform: rotate(45deg);
}

/* ---- 3e. fine print -------------------------------------- */

[data-section="footer"] .ftr__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
}
[data-section="footer"] .ftr__fine {
  font-size: 0.8rem;
  color: var(--ink-40);
}
[data-section="footer"] .ftr__top {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72em 1.15em;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-60);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
[data-section="footer"] .ftr__top svg { stroke: currentColor; stroke-width: 1.6; }
[data-section="footer"] .ftr__top:hover {
  color: var(--cy);
  box-shadow: inset 0 0 0 1px var(--line-hot);
}

/* ---- 3f. responsive -------------------------------------- */

@media (max-width: 1000px) {
  [data-section="footer"] .ftr__cols { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}
@media (max-width: 760px) {
  [data-section="footer"] .ftr__head { grid-template-columns: 1fr; align-items: start; }
  [data-section="footer"] .ftr__blurb { justify-self: start; }
}
@media (max-width: 560px) {
  [data-section="footer"] .ftr__cols { grid-template-columns: 1fr; }

  /* The strip wraps below 560, and a flex separator cannot know it has
     landed at the end of a line — that is what left a cyan diamond
     dangling after "AGES 8-14". Below the wrap point the strip becomes a
     grid, so the columns do the separating and the diamonds retire. */
  [data-section="footer"] .ftr__strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.75rem 1rem;
    letter-spacing: 0.16em;
  }
  [data-section="footer"] .ftr__strip li { gap: 0; }
  [data-section="footer"] .ftr__strip li:not(:last-child)::after { content: none; }
}
