/* ============================================================
   TeNEX Code LLC. Site stylesheet.
   Dark, precise, spotlight-forward. Black and white, with one accent:
   the brand azure taken from the NEX mark.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root{
  --bg:            #08080A;
  --bg-raised:     #0D0D11;
  --bg-panel:      #101015;
  --panel-grad:    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));

  --line:          rgba(255,255,255,.08);
  --line-soft:     rgba(255,255,255,.05);
  --line-strong:   rgba(255,255,255,.16);

  --text:          #F3F3F4;
  --text-dim:      #9C9CA6;
  --text-faint:    #6B6B75;

  /* ---- THE BRAND -----------------------------------------------------
     Sampled from the TeNEX logo artwork, not eyeballed. Retheming the whole
     site is this block and nothing else: no colour is hardcoded below it.
     Channels are raw RGB so alpha tints build with rgba(var(--spot-rgb), .3)
     rather than a second literal that would drift out of sync.            */
  --spot-rgb:      0,162,253;       /* #00A2FD, the blue in NEX */
  --spot:          rgb(var(--spot-rgb));
  --navy-rgb:      0,26,70;         /* #001A46, the deep blue in Te / Code */
  --navy:          rgb(var(--navy-rgb));

  /* Tints of the same hue, for gradients only. Nothing here is a new colour,
     they are lighter and darker steps of the brand blue.                   */
  --flare-rgb:     0,87,200;        /* deeper azure, gradient tail */
  --flare:         rgb(var(--flare-rgb));
  --spot-deep:     #0077CC;         /* button gradient, bottom stop */
  --spot-lift:     #4FBDFF;         /* button gradient, top stop */
  --spot-glow:     #A9DEFF;         /* headline gradient, middle stop */
  /* Text on a filled accent is the brand navy, which is the same pairing the
     logo already uses: navy Te against azure NEX. 6.15:1 on the azure. */
  --on-spot:       var(--navy);

  /* ---- STATUS --------------------------------------------------------
     Deliberately outside the brand block. These carry meaning, so they must
     not move when the brand colour does. An error that turns brand-blue
     stops reading as an error.                                            */
  --good-rgb:      74,222,155;      /* live, success */
  --good:          rgb(var(--good-rgb));
  --good-text:     #B8F0D6;
  --bad-rgb:       255,122,61;      /* failed submission */
  --bad-text:      #FFC5A8;
  --muted-rgb:     138,147,168;     /* unannounced, undisclosed */
  --muted:         rgb(var(--muted-rgb));

  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  18px;

  --nav-h: 58px;
  --page:  1160px;
  --ease:  cubic-bezier(.22,.61,.36,1);

  --shadow-pop: 0 24px 60px -18px rgba(0,0,0,.85), 0 2px 6px rgba(0,0,0,.5);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono",
          Consolas, monospace;
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:90px; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  letter-spacing:-.011em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button,input,textarea,select{ font:inherit; color:inherit; }
h1,h2,h3,h4{ margin:0; font-weight:600; letter-spacing:-.035em; line-height:1.1; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
::selection{ background:rgba(var(--spot-rgb),.28); color:#fff; }
:focus-visible{ outline:2px solid var(--spot); outline-offset:3px; border-radius:4px; }

/* ---------- 3. Layout primitives ---------- */
.wrap{ width:100%; max-width:var(--page); margin-inline:auto; padding-inline:24px; }
.section{ padding:104px 0; position:relative; }
.section--tight{ padding:72px 0; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--text-faint);
}
.eyebrow::before{ content:""; width:14px; height:1px; background:var(--spot); opacity:.8; }

.section-head{ max-width:660px; margin-bottom:44px; }
.section-head h2{ font-size:clamp(1.75rem,3.6vw,2.5rem); margin:14px 0 14px; }
.section-head p{ color:var(--text-dim); font-size:1.0625rem; }

.lede{ color:var(--text-dim); font-size:1.125rem; line-height:1.65; }

/* ---------- 4. Ambient background ---------- */
.grid-field{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size:72px 72px;
  -webkit-mask-image:radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 78%);
          mask-image:radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 78%);
}
/* ---- The NEX field -------------------------------------------------
   Ghosts of the monogram drifting behind the content. Two motions are
   layered and deliberately kept on separate elements, because a single
   element can only hold one transform:

     .nex-drift  parallax, driven by scroll through --sy
     .nex-ghost  the slither, a long looping serpentine crawl

   The mark is used as a mask rather than an image, so the ghost is a
   single flat silhouette in brand blue instead of the two-tone logo.
   At these opacities the navy would read as a hole in the shape.      */
.nex-field{
  position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;
  /* hold the ghosts away from the edges so they never crowd the text */
  -webkit-mask-image:radial-gradient(ellipse 85% 75% at 50% 45%, #000 25%, transparent 88%);
          mask-image:radial-gradient(ellipse 85% 75% at 50% 45%, #000 25%, transparent 88%);
}
.nex-drift{
  position:absolute;
  transform:translate3d(0, calc(var(--sy, 0px) * var(--depth, .1)), 0);
  will-change:transform;
}
.nex-ghost{
  width:100%; aspect-ratio:303 / 204;
  background:linear-gradient(128deg, rgb(var(--spot-rgb)), rgb(var(--flare-rgb)) 70%);
  -webkit-mask-image:url("../img/logo-mark@full.png");
          mask-image:url("../img/logo-mark@full.png");
  -webkit-mask-size:contain;   mask-size:contain;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:center;  mask-position:center;
  animation:nex-slither var(--dur, 60s) ease-in-out infinite;
  animation-delay:var(--delay, 0s);
  will-change:transform;
}
/* A slow sinuous crawl. The skew is what makes it read as slithering
   rather than sliding: the shape leans into each change of direction. */
@keyframes nex-slither{
  0%   { transform:translate3d(0,0,0)            rotate(0deg)    skewX(0deg); }
  20%  { transform:translate3d(2.4vw,-1.2vh,0)   rotate(1.1deg)  skewX(-2.2deg); }
  40%  { transform:translate3d(.6vw,1.9vh,0)     rotate(-.7deg)  skewX(1.6deg); }
  60%  { transform:translate3d(-2.2vw,.7vh,0)    rotate(1deg)    skewX(-1.4deg); }
  80%  { transform:translate3d(-1vw,-1.6vh,0)    rotate(-.9deg)  skewX(2deg); }
  100% { transform:translate3d(0,0,0)            rotate(0deg)    skewX(0deg); }
}
/* Each ghost sits at its own size, position, depth and tempo, so they
   never travel as a group and the field keeps some parallax depth. */
.nex-field .g1{ top:-6vh;  right:-6vw; width:52vw; opacity:.055; --depth:.16; --dur:64s; }
.nex-field .g2{ top:52vh;  left:-10vw; width:34vw; opacity:.04;  --depth:.30; --dur:52s; --delay:-8s; }
.nex-field .g3{ top:24vh;  left:38vw;  width:19vw; opacity:.028; --depth:.46; --dur:44s; --delay:-19s; }

@media (max-width:820px){
  /* one ghost on small screens: three at phone width is noise, not depth */
  .nex-field .g2,.nex-field .g3{ display:none; }
  .nex-field .g1{ width:88vw; opacity:.05; }
}
@media (prefers-reduced-motion:reduce){
  .nex-ghost{ animation:none; }
  .nex-drift{ transform:none; }
}

.spotbeam{
  position:absolute; top:calc(var(--nav-h) * -1); left:50%; translate:-50% 0;
  width:min(1100px,120vw); height:640px; z-index:0; pointer-events:none;
  background:
    radial-gradient(ellipse 46% 62% at 50% 0%, rgba(var(--spot-rgb),.16), transparent 68%),
    radial-gradient(ellipse 68% 48% at 50% 6%, rgba(var(--flare-rgb),.07), transparent 72%);
  filter:blur(6px);
}
main{ position:relative; z-index:1; }

/* ---------- 5. Nav ---------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  height:var(--nav-h);
  background:rgba(8,8,10,.6);
  backdrop-filter:blur(16px) saturate(180%);
  -webkit-backdrop-filter:blur(16px) saturate(180%);
  border-bottom:1px solid transparent;
  transition:border-color .25s var(--ease), background .25s var(--ease);
}
.nav.is-scrolled{ border-bottom-color:var(--line); background:rgba(8,8,10,.86); }
.nav-inner{
  height:100%; max-width:var(--page); margin-inline:auto; padding-inline:24px;
  display:flex; align-items:center; gap:28px;
}

.brand{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }
/* The monogram is wider than it is tall, so height leads and width follows. */
.brand-mark{ height:24px; width:auto; flex:0 0 auto; }
.brand-word{ font-size:15px; font-weight:650; letter-spacing:-.02em; }
.brand-word .nx{ color:var(--spot); }

.nav-links{ display:flex; align-items:center; gap:2px; flex:1 1 auto; }
.nav-item{ position:relative; }
.nav-link{
  display:inline-flex; align-items:center; gap:5px;
  height:32px; padding:0 11px; border-radius:var(--radius-sm);
  font-size:13.5px; font-weight:480; color:var(--text-dim);
  transition:color .16s var(--ease), background .16s var(--ease);
  white-space:nowrap; background:none; border:0; cursor:pointer;
}
.nav-link:hover,.nav-item:hover > .nav-link{ color:var(--text); background:rgba(255,255,255,.05); }
.nav-link[aria-current="page"]{ color:var(--text); }
.nav-link .chev{ width:9px; height:9px; opacity:.6; transition:transform .2s var(--ease); }
.nav-item:hover .chev{ transform:rotate(180deg); }
.nav-link .lockdot{ width:5px; height:5px; border-radius:50%; background:var(--text-faint); margin-left:2px; }

.nav-actions{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }

/* ---------- 6. Product mega-dropdown ---------- */
/* The panel is centred on the viewport, not on the Product tab, so it can
   never run off an edge. It anchors to .nav (position:fixed) by leaving
   .nav-item--mega unpositioned. */
.nav-item--mega{ position:static; }
.mega{
  position:absolute; top:calc(100% + 10px); left:50%; translate:-50% 0;
  width:min(760px, calc(100vw - 32px));
  background:var(--bg-panel);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-pop);
  padding:8px;
  opacity:0; visibility:hidden; transform:translateY(-6px) scale(.985);
  transition:opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item:hover .mega,
.nav-item:focus-within .mega,
.mega.is-open{ opacity:1; visibility:visible; transform:translateY(0) scale(1); }
/* hover bridge so the pointer can travel from tab to panel across the gap */
.mega::before{ content:""; position:absolute; left:0; right:0; top:-14px; height:14px; }

.mega-row{ padding:14px 14px 6px; }
.mega-label{
  display:flex; align-items:center; justify-content:space-between;
  font-size:10.5px; font-weight:650; letter-spacing:.15em; text-transform:uppercase;
  color:var(--text-faint); margin-bottom:12px;
}
.mega-label a{ color:var(--text-faint); letter-spacing:.06em; text-transform:none; font-size:11.5px; }
.mega-label a:hover{ color:var(--spot); }

.mega-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.mega-card{
  display:block; padding:13px; border-radius:var(--radius);
  border:1px solid transparent;
  transition:background .16s var(--ease), border-color .16s var(--ease);
}
.mega-card:hover{ background:rgba(255,255,255,.045); border-color:var(--line-soft); }
.mega-card-top{ display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.mega-card-name{ font-size:13.5px; font-weight:570; color:var(--text); letter-spacing:-.015em; }
.mega-card-desc{ font-size:12.25px; color:var(--text-faint); line-height:1.5; }

.mega-cta{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  margin:8px 0 0; padding:18px 20px; border-radius:var(--radius);
  background:
    linear-gradient(100deg, rgba(var(--spot-rgb),.13), rgba(var(--flare-rgb),.07) 55%, transparent 92%),
    rgba(255,255,255,.02);
  border:1px solid rgba(var(--spot-rgb),.18);
  transition:border-color .2s var(--ease);
}
.mega-cta:hover{ border-color:rgba(var(--spot-rgb),.42); }
.mega-cta-title{ display:block; font-size:14.5px; font-weight:600; letter-spacing:-.02em; margin-bottom:3px; }
.mega-cta-title em{ color:var(--spot); font-style:normal; }
.mega-cta-sub{ display:block; font-size:12.5px; color:var(--text-dim); }
.mega-cta .arrow{ color:var(--spot); flex:0 0 auto; transition:transform .2s var(--ease); }
.mega-cta:hover .arrow{ transform:translateX(4px); }

/* ---------- 7. Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  height:36px; padding:0 16px; border-radius:var(--radius-sm);
  font-size:13.5px; font-weight:550; letter-spacing:-.012em;
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition:background .16s var(--ease), border-color .16s var(--ease),
             color .16s var(--ease), transform .16s var(--ease), box-shadow .2s var(--ease);
}
.btn:active{ transform:translateY(1px); }
.btn--ghost{ color:var(--text-dim); background:none; }
.btn--ghost:hover{ color:var(--text); background:rgba(255,255,255,.06); }
.btn--line{ border-color:var(--line); color:var(--text); background:rgba(255,255,255,.03); }
.btn--line:hover{ border-color:var(--line-strong); background:rgba(255,255,255,.07); }
.btn--spot{
  background:linear-gradient(180deg,var(--spot-lift),var(--spot-deep));
  color:var(--on-spot); font-weight:620;
  box-shadow:0 1px 0 rgba(255,255,255,.35) inset, 0 8px 22px -10px rgba(var(--spot-rgb),.6);
}
.btn--spot:hover{ box-shadow:0 1px 0 rgba(255,255,255,.45) inset, 0 12px 30px -10px rgba(var(--spot-rgb),.8); }
.btn--lg{ height:44px; padding:0 22px; font-size:14.5px; border-radius:10px; }
.btn--block{ width:100%; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

.textlink{ color:var(--spot); font-weight:520; }
.textlink:hover{ text-decoration:underline; text-underline-offset:3px; }

/* ---------- 8. Badges ---------- */
.badge{
  display:inline-flex; align-items:center; gap:6px;
  height:21px; padding:0 9px; border-radius:999px;
  font-size:10.5px; font-weight:600; letter-spacing:.07em; text-transform:uppercase;
  border:1px solid var(--line); color:var(--text-faint); background:rgba(255,255,255,.03);
}
.badge .dot{ width:5px; height:5px; border-radius:50%; background:currentColor; }
.badge--live{ color:var(--good); border-color:rgba(var(--good-rgb),.3); background:rgba(var(--good-rgb),.08); }
.badge--build{ color:var(--spot); border-color:rgba(var(--spot-rgb),.3); background:rgba(var(--spot-rgb),.08); }
.badge--stealth{ color:var(--muted); border-color:rgba(var(--muted-rgb),.3); background:rgba(var(--muted-rgb),.08); }

.pill{
  display:inline-flex; align-items:center; gap:8px;
  height:28px; padding:0 12px 0 10px; border-radius:999px;
  border:1px solid var(--line); background:rgba(255,255,255,.03);
  font-size:12.25px; color:var(--text-dim);
}
.pill .dot{ width:6px; height:6px; border-radius:50%; background:var(--spot);
  box-shadow:0 0 0 3px rgba(var(--spot-rgb),.16); }

/* ---------- 9. Hero ---------- */
.hero{ padding:calc(var(--nav-h) + 88px) 0 92px; position:relative; }
.hero-inner{ max-width:820px; }
.hero h1{
  font-size:clamp(2.5rem,6.4vw,4.25rem);
  letter-spacing:-.045em; line-height:1.03; margin:22px 0 0;
  background:linear-gradient(178deg,#FFFFFF 28%, #B4B4BE 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero h1 .lit{
  background:linear-gradient(96deg, var(--spot), var(--spot-glow) 45%, var(--flare));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-sub{ margin-top:24px; max-width:592px; font-size:1.1875rem; color:var(--text-dim); line-height:1.6; }
.hero-actions{ margin-top:34px; display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.hero-meta{
  margin-top:52px; padding-top:26px; border-top:1px solid var(--line-soft);
  display:flex; flex-wrap:wrap; gap:38px;
}
.hero-meta div{ min-width:120px; }
.hero-meta dt{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); }
.hero-meta dd{ margin:6px 0 0; font-size:15px; color:var(--text); font-weight:500; }

/* ---------- 10. Cards & grids ---------- */
.grid{ display:grid; gap:16px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }

.card{
  position:relative; display:flex; flex-direction:column;
  padding:24px; border-radius:var(--radius-lg);
  background:var(--panel-grad); border:1px solid var(--line-soft);
  transition:border-color .22s var(--ease), transform .22s var(--ease);
}
.card:hover{ border-color:var(--line-strong); }
a.card:hover{ transform:translateY(-3px); }
.card h3{ font-size:1.0625rem; letter-spacing:-.024em; }
.card p{ color:var(--text-dim); font-size:14.5px; line-height:1.6; }

.card-num{ font-family:var(--mono); font-size:11px; color:var(--spot); letter-spacing:.1em; margin-bottom:16px; }

.pcard-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.pcard-glyph{
  width:38px; height:38px; border-radius:10px; display:grid; place-items:center;
  background:rgba(255,255,255,.045); border:1px solid var(--line);
  font-family:var(--mono); font-size:13px; font-weight:600; color:var(--spot);
}
.pcard h3{ margin-bottom:8px; }
.pcard-foot{
  margin-top:20px; padding-top:16px; border-top:1px solid var(--line-soft);
  display:flex; align-items:center; justify-content:space-between;
  font-size:13px; color:var(--text-faint);
}
.pcard-foot .go{ transition:color .18s var(--ease); font-weight:520; }
.pcard:hover .pcard-foot .go{ color:var(--spot); }

.doctrine{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-soft);
  border:1px solid var(--line-soft); border-radius:var(--radius-lg); overflow:hidden;
}
.doctrine > div{ background:var(--bg); padding:32px 28px; }
.doctrine h3{ font-size:1.0625rem; margin:16px 0 10px; }
.doctrine p{ color:var(--text-dim); font-size:14.5px; }
.doctrine .ico{ color:var(--spot); }

/* ---------- 11. Statement band ---------- */
.band{
  border-block:1px solid var(--line-soft);
  background:radial-gradient(ellipse 60% 140% at 50% 50%, rgba(var(--spot-rgb),.055), transparent 70%);
}
.statement{
  max-width:900px; margin-inline:auto; text-align:center;
  font-size:clamp(1.35rem,3.1vw,2rem); font-weight:550;
  letter-spacing:-.032em; line-height:1.32;
}
.statement em{ font-style:normal; color:var(--spot); }
.attrib{ margin-top:24px; text-align:center; font-size:13px; color:var(--text-faint); }

/* ---------- 12. Ledger (contracts) ---------- */
.ledger{ border:1px solid var(--line-soft); border-radius:var(--radius-lg); overflow:hidden; }
.ledger-head,.ledger-row{
  display:grid; grid-template-columns:1.6fr 1fr 1fr .8fr; gap:20px;
  padding:16px 22px; align-items:center;
}
.ledger-head{
  background:rgba(255,255,255,.025); border-bottom:1px solid var(--line-soft);
  font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint);
  font-weight:600;
}
.ledger-row{ border-bottom:1px solid var(--line-soft); font-size:14.5px; transition:background .16s var(--ease); }
.ledger-row:last-child{ border-bottom:0; }
.ledger-row:hover{ background:rgba(255,255,255,.022); }
.ledger-row .who{ font-weight:540; color:var(--text); }
.ledger-row .meta{ color:var(--text-dim); font-size:13.5px; }
.ledger-row .mono{ font-family:var(--mono); font-size:12.5px; color:var(--text-faint); }

.ledger-empty{ padding:56px 24px; text-align:center; }
.ledger-empty p{ color:var(--text-dim); font-size:14.5px; max-width:420px; margin:10px auto 0; }

.notice{
  display:block;
  padding:14px 18px; border-radius:var(--radius);
  border:1px dashed rgba(var(--spot-rgb),.34); background:rgba(var(--spot-rgb),.05);
  font-size:13.5px; color:var(--text-dim); margin-bottom:28px; line-height:1.55;
}
.notice b{ color:var(--spot); font-weight:600; }
.notice code{
  font-family:var(--mono); font-size:12.5px; color:var(--text);
  background:rgba(255,255,255,.07); border-radius:4px; padding:1px 5px;
}

/* ---------- 13. Gated pages ---------- */
.gate{
  max-width:620px; margin:0 auto; text-align:center;
  padding:56px 40px; border-radius:22px;
  background:var(--panel-grad); border:1px solid var(--line-soft);
}
.gate-lock{
  width:52px; height:52px; margin:0 auto 24px; border-radius:14px;
  display:grid; place-items:center; color:var(--spot);
  background:rgba(var(--spot-rgb),.09); border:1px solid rgba(var(--spot-rgb),.22);
}
.gate h1{ font-size:clamp(1.75rem,4vw,2.375rem); margin-bottom:16px; }
.gate p{ color:var(--text-dim); }
.gate-meta{
  margin-top:32px; padding-top:24px; border-top:1px solid var(--line-soft);
  display:flex; justify-content:center; gap:32px; flex-wrap:wrap;
  font-size:12.5px; color:var(--text-faint);
}
.gate-meta span{ display:flex; align-items:center; gap:7px; }

/* ---------- 14. Forms ---------- */
.form{ display:grid; gap:16px; }
.form > .btn{ justify-self:start; }
.form > .btn--block{ justify-self:stretch; }
.field{ display:grid; gap:7px; }
.field label{ font-size:12.5px; font-weight:530; color:var(--text-dim); }
.field label .req{ color:var(--spot); }
.field input,.field textarea,.field select{
  width:100%; padding:11px 13px;
  background:rgba(255,255,255,.028); border:1px solid var(--line);
  border-radius:var(--radius-sm); font-size:14.5px; color:var(--text);
  transition:border-color .16s var(--ease), background .16s var(--ease);
}
.field input::placeholder,.field textarea::placeholder{ color:var(--text-faint); }
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none; border-color:rgba(var(--spot-rgb),.5); background:rgba(255,255,255,.045);
}
.field textarea{ min-height:112px; resize:vertical; line-height:1.55; }
.field select{
  appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%236B6B75' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; padding-right:34px;
}
.field select option{ background:var(--bg-panel); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-note{ font-size:12.25px; color:var(--text-faint); line-height:1.55; }
.form > .form-note{ max-width:56ch; }

.form-status{ display:none; padding:15px 18px;
  border-radius:var(--radius); font-size:14px; line-height:1.6; }
.form-status.is-shown{ display:block; }
.form-status b{ font-weight:600; }
.form-status a{ text-decoration:underline; text-underline-offset:3px; }
.form-status.ok{ background:rgba(var(--good-rgb),.08); border:1px solid rgba(var(--good-rgb),.28); color:var(--good-text); }
.form-status.err{ background:rgba(var(--bad-rgb),.08); border:1px solid rgba(var(--bad-rgb),.3); color:var(--bad-text); }
.form-status code{
  font-family:var(--mono); font-size:12.5px;
  background:rgba(255,255,255,.07); border-radius:4px; padding:1px 5px;
}

/* ---------- 15. Page header + prose ---------- */
.pagehead{ padding:calc(var(--nav-h) + 76px) 0 8px; position:relative; }
.pagehead h1{ font-size:clamp(2.125rem,5vw,3.25rem); margin:18px 0 0; letter-spacing:-.042em; }
.pagehead .lede{ margin-top:20px; max-width:640px; }
.crumb{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--text-faint); margin-bottom:20px; }
.crumb a:hover{ color:var(--spot); }
.crumb .sep{ opacity:.45; }

.prose{ max-width:660px; }
.prose h2{ font-size:1.5rem; margin:56px 0 16px; }
.prose h3{ font-size:1.125rem; margin:36px 0 12px; }
.prose p{ color:var(--text-dim); margin-bottom:18px; line-height:1.72; font-size:1.0125rem; }
.prose p strong{ color:var(--text); font-weight:560; }
.prose ul{ margin:0 0 20px; display:grid; gap:11px; }
.prose ul li{ position:relative; padding-left:24px; color:var(--text-dim); line-height:1.65; font-size:1.0125rem; }
.prose ul li::before{
  content:""; position:absolute; left:4px; top:11px;
  width:6px; height:6px; border-radius:50%; background:var(--spot); opacity:.85;
}
.prose ul li strong{ color:var(--text); font-weight:560; }
.prose blockquote{
  margin:32px 0; padding:2px 0 2px 22px; border-left:2px solid var(--spot);
  font-size:1.1875rem; letter-spacing:-.022em; color:var(--text); line-height:1.5;
}

.spec{ border-top:1px solid var(--line-soft); margin:0; }
.spec div{
  display:grid; grid-template-columns:170px 1fr; gap:24px;
  padding:15px 0; border-bottom:1px solid var(--line-soft);
  font-size:14.5px; align-items:baseline;
}
.spec dt{ color:var(--text-faint); font-size:12.5px; letter-spacing:.05em; text-transform:uppercase; }
.spec dd{ margin:0; color:var(--text-dim); }
.spec dd strong{ color:var(--text); font-weight:530; }

.split{ display:grid; grid-template-columns:1fr 380px; gap:64px; align-items:start; }
.aside-card{
  position:sticky; top:calc(var(--nav-h) + 24px);
  padding:26px; border-radius:var(--radius-lg);
  background:var(--panel-grad); border:1px solid var(--line-soft);
}
.aside-card h3{ font-size:1.0625rem; margin-bottom:10px; }
.aside-card p{ color:var(--text-dim); font-size:14px; margin-bottom:20px; }
.aside-card .form-note{ margin-top:14px; text-align:center; }

/* ---------- 16. CTA block ---------- */
.cta-block{
  position:relative; overflow:hidden;
  padding:64px 48px; border-radius:24px; text-align:center;
  border:1px solid rgba(var(--spot-rgb),.2);
  background:
    radial-gradient(ellipse 70% 130% at 50% 0%, rgba(var(--spot-rgb),.14), transparent 66%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
}
.cta-block h2{ font-size:clamp(1.75rem,4vw,2.5rem); margin:16px auto 18px; max-width:600px; }
.cta-block p{ color:var(--text-dim); max-width:520px; margin:0 auto 30px; font-size:1.0625rem; }
.cta-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ---------- 17. Footer ---------- */
.foot{ border-top:1px solid var(--line-soft); padding:64px 0 40px; margin-top:24px; position:relative; z-index:1; }
.foot-grid{ display:grid; grid-template-columns:1.5fr repeat(3,1fr); gap:48px; }
.foot-brand p{ color:var(--text-faint); font-size:13.5px; margin-top:14px; max-width:280px; line-height:1.6; }
.foot h4{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint);
  margin-bottom:16px; font-weight:600; }
.foot ul{ display:grid; gap:11px; }
.foot ul a{ font-size:13.5px; color:var(--text-dim); transition:color .16s var(--ease); }
.foot ul a:hover{ color:var(--text); }
.foot ul .muted{ font-size:13.5px; color:var(--text-faint); display:flex; align-items:center; gap:7px; }
.foot-base{
  margin-top:56px; padding-top:24px; border-top:1px solid var(--line-soft);
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  font-size:12.5px; color:var(--text-faint);
}

/* ---------- 18. Reveal ---------- */
.reveal{ opacity:0; transform:translateY(14px); }
.reveal.is-in{ opacity:1; transform:none; transition:opacity .6s var(--ease), transform .6s var(--ease); }

/* ---------- 19. Responsive ---------- */
.nav-toggle{ display:none; }

@media (max-width:960px){
  .split{ grid-template-columns:1fr; gap:40px; }
  .aside-card{ position:static; }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .doctrine{ grid-template-columns:1fr; }
  .foot-grid{ grid-template-columns:1fr 1fr; gap:36px; }
}

@media (max-width:820px){
  .nav-links{
    position:fixed; top:var(--nav-h); left:0; right:0;
    flex-direction:column; align-items:stretch; gap:2px;
    background:var(--bg-raised); border-bottom:1px solid var(--line);
    padding:12px; max-height:calc(100vh - var(--nav-h)); overflow-y:auto;
    display:none;
  }
  .nav.is-open .nav-links{ display:flex; }
  .nav-link{ height:42px; font-size:15px; justify-content:space-between; width:100%; }
  .mega::before{ display:none; }
  .mega{
    position:static; translate:none; width:100%;
    opacity:1; visibility:visible; transform:none;
    box-shadow:none; background:transparent; border:0; padding:0 0 8px;
    display:none;
  }
  .nav-item.is-expanded .mega{ display:block; }
  .nav-item:hover .mega{ display:none; }
  .nav-item.is-expanded:hover .mega{ display:block; }
  .mega-grid{ grid-template-columns:1fr; }
  .mega-row{ padding:6px 4px; }
  .mega-cta{ flex-direction:column; align-items:flex-start; gap:12px; }
  .nav-actions .btn--ghost{ display:none; }
  .nav-toggle{
    display:grid; place-items:center; width:34px; height:34px;
    border-radius:var(--radius-sm); border:1px solid var(--line);
    background:rgba(255,255,255,.03); cursor:pointer; color:var(--text-dim);
  }
  .grid-2,.grid-3{ grid-template-columns:1fr; }
  .section{ padding:72px 0; }
  .hero{ padding:calc(var(--nav-h) + 60px) 0 64px; }
  .hero-meta{ gap:26px; }
  .ledger-head{ display:none; }
  .ledger-row{ grid-template-columns:1fr; gap:6px; padding:18px 20px; }
  .cta-block{ padding:44px 24px; }
  .foot-grid{ grid-template-columns:1fr; }
  .spec div{ grid-template-columns:1fr; gap:4px; }
  .field-row{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; }
}
