/* ============================================================
   RobotID — style.css
   VERSION: 3.0.0
   Obsidian + liquid chrome. Sentinel hero, single-viewport fold,
   no raster assets, no card-kit grids.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root{
  /* base */
  --ink:        #05060B;
  --ink-2:      #080A11;
  --graphite:   #0C0F18;
  --plate:      rgba(16,21,33,.58);

  /* chrome */
  --chrome-hi:  #FFFFFF;
  --chrome:     #DCE3F2;
  --chrome-mid: #A6B0C8;
  --steel:      #7A8399;
  --steel-dim:  #5A6274;

  /* holographic sweep */
  --ice:        #86E6FF;
  --lilac:      #B39BFF;
  --sand:       #FFCE9E;

  /* decision semantics — the only saturated colour on the page */
  --allow:      #3FE0A0;
  --hold:       #FFC24D;
  --deny:       #FF5A73;

  /* the sentinel's live state colour */
  --eye:        #86E6FF;

  /* structure */
  --hair:       rgba(190,205,235,.13);
  --hair-hi:    rgba(200,215,245,.26);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --max: 1340px;
  --gut: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(.22,.75,.18,1);
}

/* ---------- 2. RESET / BASE ---------- */
*{box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:var(--ink);
  color:var(--chrome);
  font-family:"Sora",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:300;
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}
button,input{font:inherit;color:inherit;}
.visually-hidden{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
}

/* ambient field + grain */
body::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(900px 620px at 78% -6%, rgba(134,230,255,.10), transparent 62%),
    radial-gradient(760px 560px at 8% 34%, rgba(179,155,255,.075), transparent 60%),
    radial-gradient(1100px 700px at 50% 108%, rgba(255,206,158,.05), transparent 60%);
}
body::after{
  content:"";position:fixed;inset:0;z-index:9999;pointer-events:none;opacity:.4;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

.wrap{width:min(100% - (var(--gut) * 2), var(--max));margin-inline:auto;position:relative;z-index:1;}

/* ---------- 3. TYPE SYSTEM ---------- */
.display{
  font-family:"Archivo",ui-sans-serif,sans-serif;
  font-optical-sizing:auto;
  line-height:.88;
  letter-spacing:-.035em;
  margin:0;
  text-wrap:balance;
}
.chrome-fill{
  background:linear-gradient(168deg,#FFFFFF 2%,#E4EAF8 26%,#98A4BE 58%,#F2F6FF 82%,#7E89A3 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.lede{
  font-size:clamp(16px,1.28vw,19px);
  line-height:1.68;
  color:var(--steel);
  max-width:56ch;
  font-weight:300;
}
.data{font-family:"JetBrains Mono",ui-monospace,monospace;font-weight:400;font-variant-numeric:tabular-nums;}

.section-head{max-width:62ch;}
.section-head h2{
  font-family:"Archivo",sans-serif;
  font-size:clamp(34px,4.4vw,62px);
  line-height:.96;letter-spacing:-.03em;
  margin:0 0 18px;font-weight:600;
  color:var(--chrome);
}

section{padding:clamp(88px,11vw,168px) 0;position:relative;scroll-margin-top:92px;}

/* ---------- 4. BUTTONS ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:52px;padding:0 26px;border-radius:100px;
  font-family:"Sora",sans-serif;font-weight:500;font-size:14.5px;letter-spacing:.005em;
  border:1px solid var(--hair-hi);
  transition:transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  /* No overflow:hidden. Nothing inside a button needs clipping (verified: no
     pseudo-elements, no child elements), and with white-space:nowrap it meant
     any label a pixel wider than its box was silently chopped instead of
     overflowing visibly. The nav button measured exactly 0px of slack. */
  cursor:pointer;position:relative;white-space:nowrap;
}
.btn-primary{
  color:#06070C;border-color:transparent;
  background:linear-gradient(150deg,#FFFFFF,#D3DBEC 46%,#9AA6C0);
  box-shadow:0 14px 44px rgba(150,175,225,.18), inset 0 1px 0 rgba(255,255,255,.9);
  font-weight:600;
}
.btn-primary:hover{transform:translateY(-2px);}
.btn-quiet{background:rgba(255,255,255,.03);color:var(--chrome);}
.btn-quiet:hover{border-color:var(--hair-hi);background:rgba(255,255,255,.06);transform:translateY(-2px);}
.btn:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--ice);outline-offset:3px;}

/* ---------- 5. NAV ---------- */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:200;
  backdrop-filter:blur(26px) saturate(150%);
  background:linear-gradient(180deg,rgba(5,6,11,.86),rgba(5,6,11,.34));
  border-bottom:1px solid rgba(190,205,235,.08);
}
.nav-inner{height:74px;display:flex;align-items:center;gap:32px;}
.brand{display:flex;align-items:center;gap:11px;}
.brand .mark{width:30px;height:30px;flex:none;}
.wordmark{
  font-family:"Archivo",sans-serif;
  font-weight:700;font-size:19px;letter-spacing:-.025em;
  font-stretch:108%;color:var(--chrome-hi);
}
.wordmark b{font-weight:300;color:var(--steel);}
.nav-links{display:flex;gap:26px;margin-left:auto;font-size:14px;color:var(--steel);}
.nav-links a{transition:color .3s;}
.nav-links a:hover{color:var(--chrome-hi);}
.nav-actions{display:flex;align-items:center;gap:12px;}
/* flex:none so a tight row shrinks the gap, never the button's own label */
.nav .btn{min-height:42px;padding:0 20px;font-size:13.5px;flex:none;}
.menu-btn{display:none;background:none;border:1px solid var(--hair);border-radius:10px;width:42px;height:42px;}

/* Instrument readout, not a badge. The three level bars are the same motion as
   the sentinel's vocal grille — the hero and the robot run the same telemetry. */
.eyebrow{
  display:flex;align-items:center;gap:11px;margin:0;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--steel-dim);white-space:nowrap;
}
.eyebrow-meter{display:flex;align-items:flex-end;gap:2.5px;height:11px;flex:none;}
.eyebrow-meter i{
  width:2.5px;height:100%;border-radius:1px;
  background:var(--ice);box-shadow:0 0 7px rgba(134,230,255,.7);
  transform-origin:bottom;transform:scaleY(.28);
  animation:meter 1.9s var(--ease) infinite;
}
.eyebrow-meter i:nth-child(2){animation-delay:.22s;}
.eyebrow-meter i:nth-child(3){animation-delay:.44s;}
.eyebrow-val{font-weight:500;color:var(--chrome-hi);letter-spacing:.1em;}
.eyebrow-rule{
  width:clamp(24px,4vw,54px);height:1px;flex:none;
  background:linear-gradient(90deg,rgba(134,230,255,.6),rgba(190,205,235,.1));
}
.eyebrow-state{color:var(--steel);}

/* Measured at 375px: the readout needed 330px of 335px available — five pixels
   of slack, with white-space:nowrap. Any engine setting JetBrains Mono a hair
   wider truncated it mid-word ("...ENFORCI"). Buy back real room, and let it
   wrap as a floor rather than clip if it ever runs out again. */
@media (max-width:440px){
  .eyebrow{
    /* measured at 375: a 33-character state needs 346px of a 335px wrap, so the
       readout broke to two lines. Smaller size + tighter tracking buys it back
       on one line; wrap stays as the floor so it can never clip. */
    gap:7px;font-size:10px;letter-spacing:.07em;
    white-space:normal;flex-wrap:wrap;
  }
  .eyebrow-rule{display:none;}
  /* the rule is what separated the label from the state; a margin does it for
     6px instead of the rule's 22px, keeping the slack we just bought */
  .eyebrow-state{margin-left:6px;}
  .eyebrow-val{letter-spacing:.04em;}
  .eyebrow-meter{height:10px;}
}

/* At 320px the wrap is 280px and the state alone needs ~230px — it cannot share
   a line with the prefix at any readable size. So break it on purpose: full-width
   second row, aligned to the same left edge, reading as a two-line readout
   rather than an accidental overflow. */
@media (max-width:355px){
  .eyebrow-state{flex-basis:100%;margin-left:0;margin-top:4px;}
}

/* Narrow phones: brand + text CTA + hamburger do not fit at the desktop gap and
   padding. Tighten all three rather than dropping the CTA out of the nav. */
@media (max-width:400px){
  .nav-inner{gap:12px;}
  .brand{gap:8px;}
  .brand .mark{width:26px;height:26px;}
  .wordmark{font-size:17px;}
  .nav .btn{padding:0 14px;font-size:12.5px;}
}

/* ---------- 6. HERO — one viewport, nothing below the line ---------- */
.hero{
  position:relative;
  min-height:100vh;
  min-height:100svh;
  padding:74px 0 0;
  display:flex;flex-direction:column;
  overflow:hidden;
}
.hero-inner{
  flex:1;display:grid;align-content:center;
  padding:clamp(20px,4vh,54px) 0;
  position:relative;z-index:3;
}
.hero-copy{max-width:640px;}

.hero h1{
  font-size:clamp(46px,6.1vw,92px);
  font-weight:700;
  margin:20px 0 24px;
}
.hero h1 .l1{display:block;font-stretch:84%;font-weight:500;letter-spacing:-.02em;}
.hero h1 .l2{display:block;font-stretch:118%;font-weight:700;letter-spacing:-.038em;}

.hero .lede{font-size:clamp(15px,1.15vw,17.5px);line-height:1.62;max-width:52ch;}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px;}

.proof{
  display:flex;flex-wrap:wrap;gap:0;list-style:none;
  margin:30px 0 0;padding:0;border-top:1px solid var(--hair);
}
.proof li{
  display:flex;flex-direction:column;gap:3px;
  padding:15px 26px 0 0;font-size:12.5px;color:var(--steel-dim);line-height:1.3;
}
.proof li + li{padding-left:26px;border-left:1px solid var(--hair);}
.proof b{font-size:14px;font-weight:500;color:var(--chrome-hi);letter-spacing:-.01em;}

/* ---------- 7. THE SENTINEL ---------- */
/* No z-index here on purpose. Giving the stage its own z-index makes it a
   stacking context, which traps the credential cards' z-index inside it and
   lets the copy layer (.hero-inner, z-index 3) paint over their lower half. */
.hero-stage{position:absolute;inset:0;pointer-events:none;}

.stage-bloom{
  position:absolute;right:-4%;top:2%;width:min(880px,64vw);aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle,rgba(134,230,255,.20),rgba(179,155,255,.10) 42%,transparent 67%);
  filter:blur(40px);
  transform:translate3d(calc(var(--mx,0) * 12px),calc(var(--my,0) * 9px),0);
  transition:transform 1.3s var(--ease);
}

.robot-wrap{
  position:absolute;right:-2%;
  top:clamp(52px,7vh,98px);bottom:64px;
  aspect-ratio:760/800;
  transform:translate3d(calc(var(--mx,0) * 26px),calc(var(--my,0) * 16px),0);
  transition:transform .8s var(--ease);
}
.robot{
  width:100%;height:100%;overflow:visible;
  transform-origin:50% 100%;
  animation:breathe 8.5s ease-in-out infinite;
  filter:drop-shadow(0 40px 90px rgba(0,0,0,.6));
}

/* head follows the pointer, eye follows harder */
.r-head{
  transform-box:view-box;transform-origin:380px 545px;
  transform:rotate(calc(var(--mx,0) * 2.4deg));
  transition:transform .9s var(--ease);
}
.r-eye{
  transform-box:view-box;
  transform:translate(calc(var(--mx,0) * 104px),calc(var(--my,0) * 20px));
  transition:transform .5s var(--ease);
}
.r-aperture{
  transform-box:view-box;transform-origin:380px 278px;
  animation:spin 14s linear infinite;
}
.r-dash{
  transform-box:view-box;transform-origin:380px 300px;
  animation:spin 90s linear infinite;
}
.r-scan{transform-box:view-box;animation:rscan 6.4s var(--ease) infinite;}
.r-beacon{animation:beacon 3.4s ease-in-out infinite;}
.led{opacity:.25;animation:led 2.6s steps(1,end) infinite;}
.led.l2{animation-delay:.5s;}
.led.l3{animation-delay:1.05s;}
.r-grille rect{transform-box:fill-box;transform-origin:center;animation:speak 2.1s var(--ease) infinite;}
.r-grille .b2{animation-delay:.12s;}
.r-grille .b3{animation-delay:.24s;}
.r-grille .b4{animation-delay:.36s;}
.r-grille .b5{animation-delay:.48s;}

.hud-t{
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:12px;letter-spacing:.16em;
  fill:var(--eye,#86E6FF);opacity:.45;
}
.r-hud{
  transform:translate3d(calc(var(--mx,0) * 14px),calc(var(--my,0) * 10px),0);
  transition:transform .7s var(--ease);
}

/* rising data motes */
.motes{position:absolute;inset:0;overflow:hidden;z-index:1;}
.motes span{
  position:absolute;left:var(--x);bottom:-8px;
  width:2px;height:2px;border-radius:50%;
  background:var(--ice);box-shadow:0 0 9px var(--ice);
  opacity:0;animation:mote var(--t,18s) linear var(--d,0s) infinite;
}

/* legibility scrim over the left third */
.stage-scrim{
  position:absolute;inset:0;z-index:2;
  background:
    linear-gradient(96deg,var(--ink) 3%,rgba(5,6,11,.92) 25%,rgba(5,6,11,.44) 47%,transparent 68%),
    linear-gradient(0deg,var(--ink) 2%,rgba(5,6,11,.6) 14%,transparent 26%);
}

/* floating glass credentials — the foreground depth plane.
   They overlap the sentinel's silhouette edge, never its visor. */
.cred{
  position:absolute;z-index:4;width:min(256px,20vw);padding:15px 17px;
  border-radius:20px;border:1px solid rgba(200,220,255,.3);
  background:linear-gradient(150deg,rgba(28,38,60,.72),rgba(8,12,22,.62));
  backdrop-filter:blur(22px) saturate(160%);
  box-shadow:0 30px 70px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.25);
  transform:translate3d(calc(var(--mx,0) * 26px),calc(var(--my,0) * 18px),0);
  transition:transform .6s var(--ease),opacity .9s var(--ease);
}
.cred::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(120deg,rgba(255,255,255,.16),transparent 32%,transparent 68%,rgba(134,230,255,.14));
}
/* percentage keeps it on the shoulder line; the floor guarantees fold clearance
   on short viewports, where 24% of the hero is not much room */
.cred-a{right:3.5%;bottom:max(24%,150px);}
.cred-b{right:34%;bottom:37%;width:min(206px,16vw);}

.cred-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px;font-size:10.5px;color:var(--steel);gap:10px;}
.cred-top strong{color:var(--chrome-hi);font-weight:500;font-size:12px;letter-spacing:-.01em;}
.state{display:inline-flex;align-items:center;gap:6px;font-size:11px;white-space:nowrap;}
.state::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;box-shadow:0 0 10px currentColor;}
.state.allow{color:var(--allow);}
.state.hold{color:var(--hold);}
.state.deny{color:var(--deny);}

.cred-rows{display:grid;grid-template-columns:auto 1fr;gap:7px 14px;font-size:10.5px;margin:0;}
.cred-rows dt{color:var(--steel-dim);}
.cred-rows dd{margin:0;color:var(--chrome);text-align:right;font-family:"JetBrains Mono",monospace;font-size:10px;}

/* ---------- 8. TICKER (the fold line) ---------- */
.ticker{
  position:relative;z-index:3;
  border-top:1px solid var(--hair);border-bottom:1px solid var(--hair);
  background:linear-gradient(180deg,rgba(220,227,242,.045),transparent);
  backdrop-filter:blur(8px);
  overflow:hidden;
}
.ticker-track{display:flex;width:max-content;animation:marquee 46s linear infinite;}
.ticker:hover .ticker-track{animation-play-state:paused;}
.ticker-item{
  display:flex;align-items:baseline;gap:12px;
  padding:18px 40px;border-right:1px solid var(--hair);white-space:nowrap;
}
.ticker-item strong{
  font-family:"Archivo",sans-serif;font-weight:600;font-size:21px;
  letter-spacing:-.025em;color:var(--chrome-hi);
}
.ticker-item span{font-size:12.5px;color:var(--steel-dim);}

/* ---------- 8b. CHAIN SEAMS ----------
   The dividers are the product: a receipt chain running down the page. Each
   node's `prev` hash is the previous node's `self` (wired in script.js), and a
   node seals as it enters view. The vertical thread carries through the section
   padding so the gap reads as continuity, not absence. */
.seam{position:relative;padding:0;}
.seam-in{
  display:flex;align-items:center;gap:14px;
  height:34px;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:11px;letter-spacing:.06em;
}

/* the thread through the empty space above and below */
.seam-thread{position:absolute;left:4px;width:1px;pointer-events:none;}
.seam-up{
  bottom:100%;height:clamp(38px,6vw,104px);
  background:linear-gradient(180deg,transparent,rgba(134,230,255,.3));
}
.seam-dn{
  top:100%;height:clamp(38px,6vw,104px);
  background:linear-gradient(180deg,rgba(134,230,255,.3),transparent);
}

/* machined diamond, not a bullet */
.seam-node{
  position:relative;width:9px;height:9px;flex:none;
  border:1px solid rgba(134,230,255,.45);
  transform:rotate(45deg) scale(.7);
  transition:transform .7s var(--ease),border-color .7s var(--ease),box-shadow .7s var(--ease);
}
.seam-node i{
  position:absolute;inset:1.5px;background:var(--ice);
  opacity:0;transform:scale(.3);
  transition:opacity .6s var(--ease) .25s,transform .6s var(--ease) .25s;
}

.seam-idx{color:var(--chrome-hi);letter-spacing:.1em;flex:none;}
.seam-label{
  color:var(--steel);text-transform:uppercase;letter-spacing:.22em;
  font-size:10.5px;white-space:nowrap;flex:none;
}

/* the rule draws itself left-to-right, then a write pulse runs the length */
.seam-line{
  position:relative;flex:1;min-width:24px;height:1px;overflow:hidden;
  background:linear-gradient(90deg,rgba(190,205,235,.3),rgba(190,205,235,.05));
  transform:scaleX(0);transform-origin:left;
  transition:transform 1.05s var(--ease) .08s;
}
.seam-line i{
  position:absolute;top:0;left:0;height:100%;width:26%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.85),transparent);
  opacity:0;
}

.seam-hash{color:var(--steel-dim);font-size:10.5px;white-space:nowrap;flex:none;}
.seam-hash em{font-style:normal;color:rgba(122,131,153,.6);margin-right:7px;}
.seam-hash b{font-weight:400;color:var(--chrome-mid);}
.seam-seal{
  color:var(--allow);font-size:10px;letter-spacing:.2em;text-transform:uppercase;
  white-space:nowrap;flex:none;opacity:0;transition:opacity .6s var(--ease) .5s;
}
.seam-hash,.seam-idx,.seam-label{opacity:0;transition:opacity .7s var(--ease) .3s;}

/* sealed state */
.seam.sealed .seam-node{
  transform:rotate(45deg) scale(1);
  border-color:var(--ice);box-shadow:0 0 14px rgba(134,230,255,.45);
}
.seam.sealed .seam-node i{opacity:1;transform:none;}
.seam.sealed .seam-line{transform:none;}
.seam.sealed .seam-line i{animation:seamPulse 1.5s var(--ease) .85s 1;}
.seam.sealed .seam-hash,
.seam.sealed .seam-idx,
.seam.sealed .seam-label,
.seam.sealed .seam-seal{opacity:1;}

/* the seam owns the top of the gap, so the section below tightens up */
.seam + section{padding-top:clamp(58px,7vw,112px);}

/* the chain still reads when the row runs out of room — drop the trailing
   metadata rather than crushing the rule that carries the eye across */
@media (max-width:900px){
  .seam-hash{display:none;}
}
@media (max-width:520px){
  .seam-seal{display:none;}
  .seam-in{gap:11px;height:28px;}
  .seam-label{letter-spacing:.16em;}
}

/* ---------- 9. GATES ---------- */
.gates{position:relative;margin-top:clamp(48px,6vw,84px);}
.gates-rail{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(14px,2vw,28px);
  position:relative;
}
.gates-rail::before{
  content:"";position:absolute;left:0;right:0;top:34px;height:1px;
  background:linear-gradient(90deg,rgba(134,230,255,.5),rgba(179,155,255,.32),rgba(255,206,158,.28),transparent);
}
.gate{position:relative;padding-top:0;}
.gate:nth-child(even){transform:translateY(clamp(28px,4vw,58px));}
.gate:nth-child(even) .gate-num{margin-top:0;}
.gate-num{
  width:68px;height:68px;border-radius:20px;position:relative;z-index:2;
  display:grid;place-items:center;
  border:1px solid var(--hair-hi);
  background:linear-gradient(150deg,rgba(24,31,48,.9),rgba(8,11,19,.9));
  backdrop-filter:blur(12px);
  font-family:"JetBrains Mono",monospace;font-size:13px;color:var(--ice);
  box-shadow:0 18px 40px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.1);
}
.gate:nth-child(even) .gate-num::before{
  content:"";position:absolute;left:50%;bottom:100%;width:1px;
  height:clamp(28px,4vw,58px);
  background:linear-gradient(180deg,rgba(134,230,255,.45),rgba(134,230,255,.08));
}
.gate h3{
  font-family:"Archivo",sans-serif;font-weight:600;
  font-size:clamp(20px,1.9vw,27px);letter-spacing:-.022em;margin:26px 0 10px;color:var(--chrome-hi);
}
.gate p{font-size:14px;line-height:1.6;color:var(--steel);margin:0;max-width:34ch;}
.gate-fail{
  margin-top:16px;padding-top:14px;border-top:1px solid var(--hair);
  font-size:12px;color:var(--steel-dim);
}
.gate-fail em{font-style:normal;color:var(--deny);}

/* ---------- 10. CONSOLE ---------- */
.console-grid{
  display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  gap:clamp(20px,2.6vw,36px);margin-top:clamp(40px,5vw,66px);align-items:stretch;
}
.panel{
  border:1px solid var(--hair);border-radius:var(--r-lg);
  background:linear-gradient(155deg,rgba(18,24,38,.66),rgba(7,10,18,.5));
  backdrop-filter:blur(20px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 30px 70px rgba(0,0,0,.4);
  padding:clamp(24px,2.6vw,38px);position:relative;overflow:hidden;
}
.panel-title{font-size:13px;color:var(--steel);margin:0 0 4px;}

.amount-readout{
  font-family:"Archivo",sans-serif;font-weight:600;
  font-size:clamp(40px,5.4vw,74px);letter-spacing:-.035em;line-height:1;
  color:var(--chrome-hi);margin:16px 0 4px;font-variant-numeric:tabular-nums;
}
.amount-sub{font-size:13px;color:var(--steel-dim);}

.slider{
  -webkit-appearance:none;appearance:none;width:100%;height:38px;background:transparent;margin:30px 0 6px;cursor:grab;
}
.slider:active{cursor:grabbing;}
.slider::-webkit-slider-runnable-track{
  height:4px;border-radius:100px;
  background:linear-gradient(90deg,var(--allow) 0 4%,var(--hold) 4% 40%,var(--deny) 40% 100%);
  opacity:.55;
}
.slider::-moz-range-track{
  height:4px;border-radius:100px;
  background:linear-gradient(90deg,var(--allow) 0 4%,var(--hold) 4% 40%,var(--deny) 40% 100%);
  opacity:.55;
}
.slider::-webkit-slider-thumb{
  -webkit-appearance:none;width:26px;height:26px;border-radius:50%;margin-top:-11px;
  background:radial-gradient(circle at 34% 30%,#fff,#C4CDE2 40%,#7E8AA6);
  border:1px solid rgba(255,255,255,.7);
  box-shadow:0 6px 20px rgba(0,0,0,.6),0 0 0 6px rgba(220,230,255,.07);
}
.slider::-moz-range-thumb{
  width:26px;height:26px;border-radius:50%;border:1px solid rgba(255,255,255,.7);
  background:radial-gradient(circle at 34% 30%,#fff,#C4CDE2 40%,#7E8AA6);
  box-shadow:0 6px 20px rgba(0,0,0,.6);
}
.thresholds{display:flex;justify-content:space-between;font-size:11.5px;color:var(--steel-dim);}

.verdict{
  margin-top:30px;padding:24px;border-radius:var(--r-md);
  border:1px solid var(--vc,var(--hair-hi));
  background:linear-gradient(150deg,rgba(255,255,255,.035),transparent);
  transition:border-color .45s var(--ease);
}
.verdict-word{
  font-family:"Archivo",sans-serif;font-weight:700;
  font-size:clamp(28px,3.4vw,46px);letter-spacing:-.032em;line-height:1;
  color:var(--vc,var(--chrome-hi));transition:color .35s var(--ease);
}
.verdict-why{font-size:13.5px;color:var(--steel);margin-top:12px;line-height:1.55;max-width:44ch;}

.ledger{display:grid;gap:10px;align-content:start;}
.ledger-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px;}
.ledger-head span{font-size:12px;color:var(--steel-dim);}
.entry{
  display:grid;grid-template-columns:14px 1fr auto;gap:16px;align-items:center;
  padding:15px 18px;border-radius:14px;
  border:1px solid rgba(255,255,255,.055);
  background:rgba(255,255,255,.022);
  transition:border-color .4s var(--ease),background .4s var(--ease),opacity .4s;
}
.entry.muted{opacity:.34;}
.entry.live{border-color:var(--ec,var(--hair-hi));background:rgba(255,255,255,.05);}
.entry .node{width:8px;height:8px;border-radius:50%;background:var(--ec,var(--steel));box-shadow:0 0 14px var(--ec,transparent);}
.entry .what{font-size:13.5px;color:var(--chrome-mid);}
.entry .val{font-family:"JetBrains Mono",monospace;font-size:11.5px;color:var(--chrome);}

.receipt{
  margin-top:20px;padding:20px;border-radius:var(--r-md);
  border:1px dashed rgba(190,205,235,.22);background:rgba(255,255,255,.02);
}
.receipt-row{display:flex;justify-content:space-between;gap:20px;font-size:11.5px;padding:7px 0;}
.receipt-row+.receipt-row{border-top:1px solid rgba(255,255,255,.05);}
.receipt-row dt{color:var(--steel-dim);}
.receipt-row dd{margin:0;font-family:"JetBrains Mono",monospace;color:var(--chrome);}
.hash{transition:opacity .2s;}

/* ---------- 11. INVARIANTS ---------- */
.invariants{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(28px,5vw,80px);align-items:start;}
.inv-list{display:grid;gap:0;border-top:1px solid var(--hair);}
.inv{padding:22px 0;border-bottom:1px solid var(--hair);display:grid;grid-template-columns:auto 1fr;gap:18px;}
.inv-key{
  font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--ice);
  padding-top:3px;white-space:nowrap;
}
.inv p{margin:0;font-size:14.5px;line-height:1.6;color:var(--chrome-mid);}
.inv p em{font-style:normal;color:var(--chrome-hi);}
.inv small{display:block;margin-top:7px;font-size:12px;color:var(--steel-dim);}

/* ---------- 12. ARCHITECTURE STACK ---------- */
.arch{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(24px,4vw,64px);align-items:center;margin-top:clamp(36px,4vw,60px);}
.stage{position:relative;height:clamp(380px,42vw,540px);perspective:1500px;}
.stack-rig{
  position:absolute;inset:12% 8%;
  transform-style:preserve-3d;
  transform:rotateX(58deg) rotateZ(-40deg);
}
.plate{
  position:absolute;inset:0;border-radius:18px;
  border:1px solid rgba(200,215,245,.22);
  background:linear-gradient(150deg,rgba(30,40,62,.5),rgba(8,12,22,.42));
  backdrop-filter:blur(6px);
  box-shadow:0 20px 50px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.14);
  transform:translateZ(calc(var(--z) * 1px));
  transition:transform .7s var(--ease),border-color .4s,box-shadow .4s,background .4s;
}
.plate::after{
  content:"";position:absolute;inset:14px;border-radius:12px;
  border:1px dashed rgba(190,205,235,.12);
}
.plate.hot{
  border-color:rgba(134,230,255,.75);
  background:linear-gradient(150deg,rgba(48,78,110,.6),rgba(12,20,34,.5));
  box-shadow:0 26px 70px rgba(0,0,0,.55),0 0 60px rgba(134,230,255,.22),inset 0 1px 0 rgba(255,255,255,.3);
}
.stage:hover .plate{transform:translateZ(calc(var(--z) * 1.75px));}

.layers{display:grid;gap:0;border-top:1px solid var(--hair);}
.layer{
  display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;
  padding:19px 16px 19px 0;border-bottom:1px solid var(--hair);
  cursor:default;transition:padding-left .4s var(--ease),background .4s;
  border-left:1px solid transparent;
}
.layer:hover,.layer.hot{padding-left:18px;background:rgba(255,255,255,.03);border-left-color:var(--ice);}
.layer strong{font-weight:500;font-size:15.5px;color:var(--chrome-hi);}
.layer span{font-size:12.5px;color:var(--steel-dim);text-align:right;}

/* ---------- 13. BENTO ---------- */
.bento{
  display:grid;gap:14px;margin-top:clamp(36px,4vw,60px);
  grid-template-columns:repeat(6,1fr);
  grid-auto-rows:minmax(150px,auto);
}
.tile{
  border:1px solid var(--hair);border-radius:22px;padding:clamp(22px,2.2vw,32px);
  background:linear-gradient(155deg,rgba(18,24,38,.55),rgba(7,10,18,.4));
  backdrop-filter:blur(14px);
  position:relative;overflow:hidden;
  display:flex;flex-direction:column;justify-content:flex-end;gap:10px;
  transition:border-color .4s var(--ease);
}
.tile:hover{border-color:var(--hair-hi);}
.tile h4{
  font-family:"Archivo",sans-serif;font-weight:600;
  font-size:clamp(20px,1.9vw,28px);letter-spacing:-.022em;margin:0;color:var(--chrome-hi);
}
.tile p{margin:0;font-size:13.5px;line-height:1.55;color:var(--steel);max-width:38ch;}
.tile-tag{font-size:11.5px;color:var(--ice);margin-bottom:auto;}
.tile-1{grid-column:span 4;}
.tile-2{grid-column:span 2;}
.tile-3{grid-column:span 2;}
.tile-4{grid-column:span 4;}
.tile-1::before,.tile-4::before{
  content:"";position:absolute;width:340px;height:340px;border-radius:50%;
  right:-120px;top:-160px;
  background:radial-gradient(circle,rgba(134,230,255,.12),transparent 66%);
}
.tile-4::before{background:radial-gradient(circle,rgba(255,206,158,.1),transparent 66%);}

/* ---------- 14. FINAL CTA ---------- */
.slab{
  border-radius:34px;border:1px solid var(--hair-hi);
  background:
    radial-gradient(700px 340px at 50% -20%,rgba(134,230,255,.16),transparent 66%),
    linear-gradient(160deg,rgba(22,29,46,.72),rgba(6,9,16,.6));
  backdrop-filter:blur(24px);
  padding:clamp(48px,7vw,104px) clamp(26px,5vw,80px);
  text-align:center;position:relative;overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 50px 120px rgba(0,0,0,.55);
}
.slab h2{
  font-family:"Archivo",sans-serif;font-weight:700;
  font-size:clamp(40px,7.2vw,104px);line-height:.92;letter-spacing:-.038em;
  margin:0 auto 22px;max-width:14ch;
}
.slab p{max-width:52ch;margin:0 auto;color:var(--steel);font-size:16.5px;line-height:1.65;}
.slab .hero-cta{justify-content:center;}

/* ---------- 14b. BACK TO TOP ---------- */
.to-top{
  position:fixed;z-index:180;
  right:clamp(18px,3vw,38px);bottom:clamp(18px,3vw,38px);
  width:46px;height:46px;border-radius:50%;
  display:grid;place-items:center;
  border:1px solid var(--hair-hi);
  background:linear-gradient(150deg,rgba(24,31,48,.88),rgba(8,11,19,.88));
  backdrop-filter:blur(18px) saturate(150%);
  box-shadow:0 14px 40px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.14);
  color:var(--chrome);cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(12px) scale(.92);
  transition:opacity .4s var(--ease),transform .4s var(--ease),
             border-color .3s,background .3s,visibility 0s linear .4s;
}
.to-top.show{
  opacity:1;visibility:visible;transform:none;
  transition:opacity .4s var(--ease),transform .4s var(--ease),
             border-color .3s,background .3s,visibility 0s;
}
.to-top:hover{
  border-color:rgba(134,230,255,.5);
  background:linear-gradient(150deg,rgba(32,44,66,.92),rgba(10,14,24,.92));
  color:var(--chrome-hi);
}
.to-top:hover svg{transform:translateY(-2px);}
.to-top svg{transition:transform .35s var(--ease);}

/* ---------- 15. FOOTER ---------- */
/* The back-to-top button is fixed 18-38px off the bottom and 46px tall, so at
   full scroll it sat straight over the meta line (measured 28-44px of overlap
   from 430px up). Reserve the band below the meta rather than indenting the
   text, which would break its alignment with the columns above. */
footer{border-top:1px solid var(--hair);padding:56px 0 clamp(96px,8vw,116px);}
.foot-grid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:34px;}
.foot-col strong{display:block;font-weight:500;font-size:13px;color:var(--chrome);margin-bottom:14px;}
.foot-col a{display:block;margin:10px 0;font-size:13px;color:var(--steel);transition:color .3s;}
.foot-col a:hover{color:var(--chrome-hi);}
.foot-note{font-size:13px;color:var(--steel-dim);max-width:34ch;line-height:1.6;margin:16px 0 0;}
.foot-meta{
  display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;
  margin-top:48px;padding-top:22px;border-top:1px solid var(--hair);
  font-size:12px;color:var(--steel-dim);
}

/* ---------- 16. MOTION ---------- */
@keyframes spin{to{transform:rotate(360deg);}}
@keyframes breathe{0%,100%{transform:translateY(0);}50%{transform:translateY(-9px);}}
@keyframes rscan{
  0%{transform:translateY(0);opacity:0;}
  8%{opacity:1;}
  78%{opacity:1;}
  100%{transform:translateY(560px);opacity:0;}
}
@keyframes beacon{0%,100%{opacity:.4;}50%{opacity:1;}}
@keyframes led{0%,49%{opacity:.22;}50%,100%{opacity:1;}}
@keyframes seamPulse{
  0%{transform:translateX(-110%);opacity:0;}
  18%{opacity:1;}
  82%{opacity:1;}
  100%{transform:translateX(420%);opacity:0;}
}
@keyframes meter{
  0%,100%{transform:scaleY(.28);opacity:.5;}
  35%{transform:scaleY(1);opacity:1;}
  65%{transform:scaleY(.55);opacity:.8;}
}
@keyframes speak{
  0%,100%{transform:scaleY(.35);}
  30%{transform:scaleY(1);}
  60%{transform:scaleY(.6);}
}
@keyframes mote{
  0%{transform:translateY(0);opacity:0;}
  12%{opacity:.75;}
  72%{opacity:.45;}
  100%{transform:translateY(-88vh);opacity:0;}
}
@keyframes marquee{from{transform:translateX(0);}to{transform:translateX(-50%);}}

/* single orchestrated page-load sequence */
.boot{opacity:0;transform:translateY(16px);}
.booted .boot{
  opacity:1;transform:none;
  transition:opacity .9s var(--ease),transform 1.1s var(--ease);
}
.booted .boot-1{transition-delay:.05s;}
.booted .boot-2{transition-delay:.16s;}
.booted .boot-3{transition-delay:.27s;}
.booted .boot-4{transition-delay:.38s;}
.booted .boot-5{transition-delay:.5s;}

.robot-wrap,.stage-bloom{opacity:0;}
.booted .robot-wrap{opacity:1;transition:opacity 1.5s var(--ease) .18s,transform .8s var(--ease);}
.booted .stage-bloom{opacity:1;transition:opacity 1.8s var(--ease) .1s,transform 1.3s var(--ease);}
.cred{opacity:0;}
.booted .cred{opacity:1;}
.booted .cred-a{transition-delay:1.05s;}
.booted .cred-b{transition-delay:1.3s;}

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width:1280px){
  .cred-b{display:none;}
  .cred-a{right:2%;bottom:18%;}
}
@media (max-width:1080px){
  .nav-links{display:none;}
  /* .nav-links carries the margin-left:auto that right-aligns the row; hiding it
     took the alignment too, and the actions ran off the edge (187px ending at
     x=357 at every width — 47px past a 320 wrap). Take the auto margin over here
     only where the links are gone, so the desktop row is untouched. */
  .nav-actions{margin-left:auto;}
  .menu-btn{display:block;}
  .nav-links.open{
    display:flex;flex-direction:column;position:absolute;top:70px;left:var(--gut);right:var(--gut);
    padding:20px;gap:16px;border:1px solid var(--hair);border-radius:20px;
    background:rgba(6,8,14,.97);backdrop-filter:blur(20px);
  }
  .console-grid,.invariants,.arch{grid-template-columns:1fr;}
  .arch{gap:34px;}
  .stage{order:2;}
  .gates-rail{grid-template-columns:repeat(2,1fr);row-gap:44px;}
  .gates-rail::before{display:none;}
  .gate:nth-child(even){transform:none;}
  .bento{grid-template-columns:repeat(2,1fr);}
  .tile-1,.tile-2,.tile-3,.tile-4{grid-column:span 1;}
  .foot-grid{grid-template-columns:1fr 1fr;}

  /* sentinel steps back behind the copy */
  .robot-wrap{right:-14%;top:auto;bottom:64px;height:78%;opacity:.9;}
  .stage-scrim{
    background:
      linear-gradient(100deg,var(--ink) 6%,rgba(5,6,11,.9) 34%,rgba(5,6,11,.5) 58%,rgba(5,6,11,.18) 78%),
      linear-gradient(0deg,var(--ink) 0,transparent 18%);
  }
  .cred-a{display:none;}
}
@media (max-width:760px){
  .hero{padding-top:74px;}
  .hero h1{font-size:clamp(40px,11.5vw,60px);}
  .hero h1 .l1,.hero h1 .l2{font-stretch:100%;}
  .hero-copy{max-width:none;}
  .hero-cta .btn{flex:1 1 auto;}

  /* proof strip becomes a grid so nothing orphans mid-row */
  .proof{display:grid;grid-template-columns:1fr 1fr;column-gap:18px;}
  .proof li{padding:14px 0 0;border-top:1px solid var(--hair);}
  .proof li:first-child,.proof li:nth-child(2){border-top:0;padding-top:15px;}
  .proof li + li{padding-left:0;border-left:0;}
  .proof li:last-child{grid-column:1 / -1;}

  /* the sentinel enters from the right edge instead of sitting under the copy */
  /* Sits below the CTA block, which stacks to two rows on narrow screens.
     -86px puts the head band clear of the buttons on a tall phone while keeping
     the visor above the ticker (measured at 390x844 and 430x932). */
  .robot-wrap{right:-20%;top:auto;bottom:-86px;height:45%;}
  .booted .robot-wrap{opacity:.52;}
  .stage-scrim{
    background:
      linear-gradient(84deg,var(--ink) 10%,rgba(5,6,11,.88) 42%,rgba(5,6,11,.5) 100%),
      linear-gradient(0deg,var(--ink) 2%,transparent 20%);
  }
  .gates-rail{grid-template-columns:1fr;}
  .bento{grid-template-columns:1fr;}
  .stage{height:320px;}
  .foot-grid{grid-template-columns:1fr;}
  .ticker-item{padding:16px 24px;}
  .ticker-item strong{font-size:18px;}
}
/* Short phones (iPhone SE/8 class, 375x667). There is no clean gap between the
   CTA row and the ticker, so the visor landed right on "How it works". Drop the
   proof strip — the least load-bearing block — and sit the eye in what frees up. */
@media (max-width:760px) and (max-height:720px){
  .proof{display:none;}
  /* On a 667px-tall phone there is no band tall enough to hold the head clear of
     the stacked CTA block AND the ticker. So the sentinel stops competing: it
     shifts further off the right edge and drops to ambient weight, reading as
     texture behind the buttons instead of an object colliding with them. */
  .robot-wrap{right:-30%;bottom:-15%;height:46%;}
  .booted .robot-wrap{opacity:.3;}
}

/* Short + wide: a preview panel, or a half-height browser window.
   Here the hero sizes to its content, and that content used to run ~700px tall —
   past the window edge — which pushed the credential cards and the ticker below
   the fold and chopped them. Compress the hero so it fits instead. */
@media (max-height:700px) and (min-width:761px){
  .hero{min-height:auto;padding-bottom:0;}
  .hero-inner{padding:18px 0;}
  .hero h1{font-size:clamp(38px,4.6vw,60px);margin:12px 0 15px;}
  .hero .lede{font-size:14.5px;line-height:1.55;max-width:50ch;}
  .hero-cta{margin-top:20px;}
  .hero-cta .btn{min-height:46px;}
  .proof{margin-top:20px;}
  .proof li{padding-top:11px;font-size:12px;}
  .robot-wrap{top:66px;bottom:52px;}
  .cred-b{display:none;}
  .cred-a{bottom:max(19%,110px);}
  .ticker-item{padding:12px 30px;}
  .ticker-item strong{font-size:17px;}
}
/* Shorter still — drop the decoration rather than let it overflow. */
@media (max-height:590px) and (min-width:761px){
  .proof{display:none;}
  .cred-a{display:none;}
  .hero h1{font-size:clamp(34px,4vw,50px);}
}

/* ---------- 18. REDUCED MOTION ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;animation-iteration-count:1 !important;
    transition-duration:.001ms !important;scroll-behavior:auto !important;
  }
  .boot,.cred,.robot-wrap,.stage-bloom{opacity:1 !important;transform:none !important;}
  .r-scan,.motes{display:none;}
  .led{opacity:1;}
  .r-grille rect{transform:none;}
}
