/* NETOUT — identity reference (W1 Stitch export, patched)
   Ground #0E0D1A · surface #161532 · one gradient accent #3D34C9 -> #FFB899
   Display Unbounded · body Hanken Grotesk · mono Sometype Mono (tabular)
   Radius 12px, 1px borders. No glow, no 3D, no bevel, no shadow. */

:root{
  --ground:#0E0D1A;
  --surface:#161532;
  --line:#241F4D;
  --line-soft:#1D1B3C;
  --ink:#ECEAFB;
  --muted:#8F8BB8;
  --indigo:#3D34C9;   /* a promise, still off chain */
  --peach:#FFB899;    /* settled on chain */
  --r:12px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--ground);
  color:var(--ink);
  font-family:'Hanken Grotesk',system-ui,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
::selection{background:var(--indigo);color:#fff}
a{color:inherit;text-decoration:none}

/* ---------- type roles ---------- */
.mono{
  font-family:'Sometype Mono',ui-monospace,monospace;
  font-variant-numeric:tabular-nums;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:12px;
}
.mono-sm{font-size:11px}
.mono-num{
  font-family:'Sometype Mono',ui-monospace,monospace;
  font-variant-numeric:tabular-nums;
  letter-spacing:.01em;
}
.display{
  font-family:'Unbounded',system-ui,sans-serif;
  text-transform:uppercase;
  letter-spacing:-.03em;
  line-height:.95;
  font-weight:800;
}
.muted{color:var(--muted)}
.peach{color:var(--peach)}

.wrap{width:min(1360px,100% - 56px);margin-inline:auto}

/* ---------- top bar ---------- */
.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(14,13,26,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;height:64px}
.wordmark{font-family:'Unbounded',sans-serif;font-weight:800;font-size:15px;letter-spacing:.14em;text-transform:uppercase}
.nav{display:flex;gap:26px}
.nav a{color:var(--muted);padding-bottom:2px;border-bottom:1px solid transparent}
.nav a:hover{color:var(--ink)}
.nav a.on{color:var(--ink);border-bottom-color:var(--peach)}
.ca{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r);padding:7px 10px;color:var(--muted);cursor:pointer;
}
.ca b{color:var(--peach);font-weight:500}

/* ---------- hero ---------- */
.hero{
  position:relative;
  min-height:calc(100svh - 64px);
  display:flex;flex-direction:column;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}

/* THE PLEAT — the moving asset. Shapes only: no text, no digits, no UI. */
.pleat{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0;pointer-events:none;overflow:hidden}
.pleat .grain{                     /* 64px ledger grid: the ground gets a surface */
  position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(143,139,184,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(143,139,184,.05) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(130% 80% at 50% 45%,#000 26%,transparent 100%);
          mask-image:radial-gradient(130% 80% at 50% 45%,#000 26%,transparent 100%);
}
.band{                             /* the sheet: creases stand on one ledger rule */
  position:absolute;left:0;right:0;
  top:46%;bottom:100px;
}
.band .rule{                       /* the flat edge the whole sheet folds down to */
  position:absolute;z-index:3;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,#2b2556 6%,#463e85 62%,#5a4f9e 89%,transparent 93%);
}
.sheet{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.sheet-body{fill:rgba(26,24,58,.42)}
.sheet-edge{fill:none;stroke:#2E2760;stroke-width:.6;vector-effect:non-scaling-stroke}
.crease{
  position:absolute;bottom:0;z-index:2;width:1.4px;height:88%;
  transform:translateX(-50%);
  background:var(--indigo);
  animation:fold 9s linear infinite;
}
@keyframes fold{
  0%   {left:1%;    height:88%; opacity:0;   background:var(--indigo)}
  5%   {left:8%;    height:86%; opacity:.34; background:var(--indigo)}
  34%  {left:41%;   height:72%; opacity:.50; background:var(--indigo)}
  60%  {left:65%;   height:55%; opacity:.66; background:var(--indigo)}
  80%  {left:79.5%; height:36%; opacity:.82; background:var(--indigo)}
  93%  {left:87.4%; height:30%; opacity:.92; background:var(--peach)}
  98%  {left:88.9%; height:27%; opacity:.45; background:var(--peach)}
  100% {left:89.2%; height:26%; opacity:0;   background:var(--peach)}
}
.notch{                            /* the sheet closes here: one settled line */
  position:absolute;z-index:3;left:89.6%;bottom:0;transform:translateX(-50%);
  width:3px;height:34%;background:var(--peach);border-radius:2px;
  animation:settle 9s linear infinite;
}
@keyframes settle{            /* opacity only: the notch keeps its size in both layouts */
  0%,88%{opacity:.72}
  94%   {opacity:1}
  100%  {opacity:.72}
}
/* 26 creases across one 9s cycle = a seamless stream, no cut */
.crease:nth-child(1){animation-delay:-0.00s}
.crease:nth-child(2){animation-delay:-0.35s}
.crease:nth-child(3){animation-delay:-0.69s}
.crease:nth-child(4){animation-delay:-1.04s}
.crease:nth-child(5){animation-delay:-1.38s}
.crease:nth-child(6){animation-delay:-1.73s}
.crease:nth-child(7){animation-delay:-2.08s}
.crease:nth-child(8){animation-delay:-2.42s}
.crease:nth-child(9){animation-delay:-2.77s}
.crease:nth-child(10){animation-delay:-3.12s}
.crease:nth-child(11){animation-delay:-3.46s}
.crease:nth-child(12){animation-delay:-3.81s}
.crease:nth-child(13){animation-delay:-4.15s}
.crease:nth-child(14){animation-delay:-4.50s}
.crease:nth-child(15){animation-delay:-4.85s}
.crease:nth-child(16){animation-delay:-5.19s}
.crease:nth-child(17){animation-delay:-5.54s}
.crease:nth-child(18){animation-delay:-5.88s}
.crease:nth-child(19){animation-delay:-6.23s}
.crease:nth-child(20){animation-delay:-6.58s}
.crease:nth-child(21){animation-delay:-6.92s}
.crease:nth-child(22){animation-delay:-7.27s}
.crease:nth-child(23){animation-delay:-7.62s}
.crease:nth-child(24){animation-delay:-7.96s}
.crease:nth-child(25){animation-delay:-8.31s}
.crease:nth-child(26){animation-delay:-8.65s}

@media (prefers-reduced-motion:reduce){
  .crease,.notch{animation-play-state:paused}
}

.hero-inner{
  position:relative;z-index:2;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:6vh 0 0;
}
.hero h1{font-size:clamp(2.1rem,4.6vw,4.3rem);max-width:none}
.hero h1 span{display:block;white-space:nowrap}
.hero h1 .l2{margin-top:.12em}
.hero h1 .l2 em{font-style:normal;color:var(--peach)}  /* peach = the settled half */
.lede{margin-top:22px;max-width:60ch;color:var(--muted);font-size:16px}

.window{
  margin-top:26px;display:flex;flex-wrap:wrap;align-items:center;gap:14px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  padding:10px 12px;
}
.window .label{color:var(--muted)}
.window .val{color:var(--ink)}
.window .btns{display:flex;gap:6px}
.window button{
  font-family:'Sometype Mono',monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  background:var(--ground);border:1px solid var(--line);border-radius:8px;
  color:var(--muted);padding:6px 10px;cursor:pointer;
}
.window button:hover{color:var(--ink);border-color:var(--muted)}

/* labels for the moving asset live in the DOM, never inside it */
.fold-legend{
  position:relative;z-index:3;margin-top:auto;padding-bottom:16px;
  display:flex;justify-content:space-between;align-items:flex-end;
  color:var(--muted);pointer-events:none;
}
.fold-legend .lg{display:inline-flex;align-items:center;gap:8px}
.fold-legend .rt{margin-right:13.5%;color:var(--ink)}
.fold-legend i{width:8px;height:8px;border-radius:2px;display:inline-block}
.sw-i{background:var(--indigo)}
.sw-p{background:var(--peach)}

/* data rail welded to the bottom edge of the hero */
.rail{position:relative;z-index:4;border-top:1px solid var(--line);background:var(--surface)}
.rail .wrap{display:grid;grid-template-columns:repeat(6,1fr)}
.cell{padding:14px 18px;border-left:1px solid var(--line-soft)}
.cell:first-child{border-left:0}
.cell .k{color:var(--muted);display:block}
.cell .v{display:block;margin-top:6px;font-size:19px;font-weight:500}
.cell .v.p{color:var(--peach)}
.cell .stamp{display:block;margin-top:6px;font-size:11px;color:var(--ink);letter-spacing:.04em}

/* ---------- the screen: gate strip ---------- */
.gates{padding:76px 0 90px}
.gates-head{
  display:flex;align-items:baseline;justify-content:space-between;gap:20px;
  padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:28px;
}
.gates-head h2{font-size:13px;font-weight:500}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.gate{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  padding:22px;display:flex;flex-direction:column;justify-content:space-between;
}
.gate:hover{border-color:#3a3470}
.gate .top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.gate .rule-txt{font-size:15px;color:var(--ink);margin-bottom:16px}
.konst{
  background:var(--ground);border:1px solid var(--line);border-radius:8px;
  padding:9px 11px;color:var(--muted);margin-bottom:22px;text-transform:none;letter-spacing:.02em;
}
.bars{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.bar-row .bar-k{display:flex;justify-content:space-between;color:var(--muted);margin-bottom:5px}
.track{height:6px;background:var(--ground);border:1px solid var(--line);border-radius:999px;overflow:hidden}
.fill-in{height:100%;background:var(--indigo)}
.fill-out{height:100%;background:var(--peach)}
.foot{
  border-top:1px solid var(--line-soft);padding-top:12px;
  display:flex;justify-content:space-between;color:var(--muted);text-transform:none;letter-spacing:.02em;
}
.foot b{color:var(--ink);font-weight:500}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--line);background:var(--ground)}
footer .wrap{display:flex;flex-wrap:wrap;gap:22px;justify-content:space-between;align-items:flex-start;padding:34px 0 44px}
footer .edge{max-width:52ch;color:var(--muted);font-size:14px}
footer .links{display:flex;flex-wrap:wrap;gap:20px}
footer .links a{color:var(--muted)}
footer .links a:hover{color:var(--ink)}

/* ---------- 390 ---------- */
@media (max-width:820px){
  .wrap{width:min(1360px,100% - 32px)}
  .nav{display:none}
  .rail .wrap{grid-template-columns:repeat(2,1fr)}
  .cell{border-left:0;border-top:1px solid var(--line-soft)}
  .grid3{grid-template-columns:1fr}
  .fold-legend{display:none}
  .rail{margin-top:auto}
  .fold-legend .rt{margin-right:0}
  .hero h1{font-size:clamp(1.85rem,7.4vw,2.6rem)}
  .hero h1 span{white-space:normal}
  .hero-inner{padding:4vh 0 0}
  .sheet{display:none}
  .cell{padding:10px 14px}
  .cell .v{font-size:16px;margin-top:4px}
  .lede{margin-top:16px;font-size:15px}
  .window{margin-top:20px}
  /* the sheet runs vertically: creases arrive from the top */
  .band{top:auto;height:208px;bottom:246px;left:0;right:0}
  .wide-only{display:none}
  .band .rule{left:50%;right:auto;top:0;bottom:0;width:1px;height:auto;
    background:linear-gradient(180deg,transparent,var(--line) 8%,#3f3878 88%,transparent)}
  .crease{bottom:auto;left:50%;width:70%;height:2px;transform:translate(-50%,0);animation-name:fold-v}
  .notch{left:50%;bottom:auto;top:89.6%;transform:translate(-50%,0);width:26%;height:3px}
  @keyframes fold-v{
    0%   {top:1%;    width:70%; opacity:0;   background:var(--indigo)}
    5%   {top:8%;    width:68%; opacity:.34; background:var(--indigo)}
    34%  {top:41%;   width:56%; opacity:.50; background:var(--indigo)}
    60%  {top:65%;   width:42%; opacity:.66; background:var(--indigo)}
    80%  {top:79.5%; width:30%; opacity:.82; background:var(--indigo)}
    93%  {top:87.4%; width:18%; opacity:1;   background:var(--peach)}
    98%  {top:88.9%; width:14%; opacity:.4;  background:var(--peach)}
    100% {top:89.2%; width:13%; opacity:0;   background:var(--peach)}
  }
}
