/* Molt — x-ray glass in the abyss. Syne for the shout, Martian Mono for the instruments. */
:root {
  --ink: #010101;
  --abyss: #05040b;
  --plum: #2E2344;
  --violet: #504975;
  --dusk: #7780A2;
  --ice: #9EB5C8;
  --foam: #DCEBDE;
  --amber: #FFC46B;
  --amber-hot: #FFE6B0;
  --rose: #ff8f8f;
  --line: rgba(158, 181, 200, .26);
  --line-hi: rgba(220, 235, 222, .6);
  --glass: rgba(9, 8, 20, .58);
  --display: 'Syne', 'Arial Black', 'Helvetica Neue', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--foam); overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: -.01em;
  background:
    radial-gradient(110% 70% at 78% 8%, rgba(80, 73, 117, .32), transparent 62%),
    radial-gradient(80% 60% at 8% 92%, rgba(46, 35, 68, .55), transparent 70%),
    var(--ink);
}
/* caustic light drifting through the water */
body::before {
  content: "";
  position: fixed; inset: -20%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(28% 22% at 30% 30%, rgba(158, 181, 200, .07), transparent 70%),
    radial-gradient(22% 30% at 70% 60%, rgba(119, 128, 162, .08), transparent 70%),
    radial-gradient(18% 16% at 50% 85%, rgba(255, 196, 107, .035), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
/* grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 70;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift { to { transform: translate3d(4%, -3%, 0) rotate(4deg); } }

img { max-width: 100%; height: auto; display: block; }
img.screen { mix-blend-mode: screen; }
.arrive { animation: arrive .9s var(--ease); }
@keyframes arrive { from { opacity: 0; filter: blur(4px); } }
a { color: inherit; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- veil: loader + page transition ---------- */
.veil {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(60% 50% at 50% 50%, #120f22, var(--ink) 70%);
  transition: opacity .35s var(--ease), visibility .35s;
}
.veil.is-on { animation: veil-auto .4s 2.4s forwards; }
.veil.is-off { opacity: 0; visibility: hidden; pointer-events: none; }
.veil.is-go { opacity: 1; visibility: visible; animation: none; }
@keyframes veil-auto { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.veil__spiral { width: 92px; height: 92px; overflow: visible; }
.veil__spiral path { fill: none; stroke: var(--ice); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 3.2 1.2; animation: spin 2.4s linear infinite; transform-origin: 50% 50%; }
.veil__spiral .crack { stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: none; filter: drop-shadow(0 0 3px var(--amber)); animation: flicker 1.1s steps(2) infinite; }
.veil__kicker { margin: 0; font: 800 12px/1 var(--display); letter-spacing: .5em; color: var(--ice); text-transform: uppercase; }
.veil__line { margin: 0; font-size: 13px; color: var(--foam); min-height: 1.6em; text-align: center; padding: 0 20px; }
.veil__bar { width: 180px; height: 2px; background: rgba(158, 181, 200, .18); overflow: hidden; }
.veil__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ice), var(--amber)); transform-origin: left; animation: fill 1.2s var(--ease) infinite; }
.veil.is-go .veil__bar i { animation: fill .42s var(--ease) forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flicker { 50% { opacity: .35; } }

/* ---------- rail (header) ---------- */
.rail {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--pad);
  background: linear-gradient(180deg, rgba(1, 1, 1, .85), rgba(1, 1, 1, 0));
}
.rail__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rail__brand img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(158, 181, 200, .35)); transition: transform .5s var(--ease); }
.rail__brand:hover img { transform: rotate(-30deg) scale(1.08); }
.rail__word { font: 800 18px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.rail nav { display: flex; gap: clamp(10px, 2.2vw, 28px); align-items: center; }
.rail nav a {
  position: relative; text-decoration: none;
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ice);
  padding: 6px 0; transition: color .2s;
}
.rail nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.rail nav a:hover, .rail nav a:focus-visible { color: var(--foam); }
.rail nav a:hover::after, .rail nav a:focus-visible::after, .rail nav a[aria-current="page"]::after { transform: scaleX(1); }
.rail nav a[aria-current="page"] { color: var(--amber); }
.rail__slots { display: flex; gap: 10px; }

/* ---------- stage: the shell ---------- */
.stage { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.stage--bg { position: fixed; inset: 0; z-index: 0; opacity: .5; pointer-events: none; }
.stage__still { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .9s var(--ease); }
.stage__still .whorl { transform-origin: 50% 50%; animation: spin 90s linear infinite; }
.stage__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.stage.is-gl .stage__gl { opacity: 1; }
.stage.is-gl .stage__still { opacity: 0; }

/* ---------- shared type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.display {
  margin: 0; font: 800 clamp(38px, 7vw, 112px)/.9 var(--display);
  letter-spacing: -.035em; text-transform: none;
}
.display em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--amber); text-shadow: 0 0 40px rgba(255, 196, 107, .25); }
.h2 { margin: 0 0 18px; font: 800 clamp(28px, 4.4vw, 64px)/.95 var(--display); letter-spacing: -.03em; }
.lede { max-width: 46ch; color: var(--ice); margin: 0 0 18px; }
.proposed {
  display: inline-block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--amber); color: var(--amber); padding: 2px 8px; transform: rotate(-2deg);
}

/* ---------- buttons ---------- */
.btn {
  --bg: rgba(9, 8, 20, .5);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  font: 700 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--foam); background: var(--bg);
  border: 1px solid var(--line-hi); border-radius: 0;
  cursor: pointer; overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .25s, border-color .2s, color .2s, background .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 196, 107, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn:hover { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(255, 196, 107, .3), 0 0 26px rgba(255, 196, 107, .22); color: var(--amber-hot); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn--amber { --bg: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn--amber:hover { color: var(--ink); background: var(--amber-hot); }
.btn--ghost { --bg: transparent; border-color: var(--line); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 11px; }
.btn .crack-glyph { width: 16px; height: 16px; }

/* ---------- glass panel + specimen tag ---------- */
.panel {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--line);
  padding: clamp(16px, 2.2vw, 26px);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 12px; height: 12px; border: 1px solid var(--ice); pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.specimen {
  position: relative; padding: 10px 14px 10px 26px;
  background: rgba(5, 4, 11, .62); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.specimen::before { /* punched hole */
  content: ""; position: absolute; left: 9px; top: 14px; width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--ice); background: var(--ink);
}
.specimen__k { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dusk); }
.specimen__v { display: block; font: 800 clamp(22px, 2.6vw, 34px)/1.05 var(--display); letter-spacing: -.02em; color: var(--foam); }
.specimen__v small { font: 400 11px/1 var(--mono); color: var(--ice); letter-spacing: 0; }
.specimen__s { display: block; font-size: 11px; color: var(--ice); }

/* freshness */
.fresh { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 10.5px; color: var(--dusk); line-height: 1.4; }
.fresh::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dusk); }
.fresh[data-state="live"]::before { background: #8ff0c8; box-shadow: 0 0 8px #8ff0c8; animation: pulse 2s infinite; }
.fresh[data-state="limited"]::before, .fresh[data-state="silent"]::before { background: var(--amber); }
.fresh[data-state="saved"]::before { background: var(--ice); }
.fresh[data-state="error"]::before { background: var(--rose); }
.fresh[data-state="loading"]::before { background: var(--ice); animation: pulse .8s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.is-loading .specimen__v, .is-loading [data-skel] { color: transparent; background: linear-gradient(90deg, rgba(158,181,200,.08), rgba(158,181,200,.22), rgba(158,181,200,.08)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- HOME: the abyss ---------- */
/* a grid, not a pile: title and console share the left column, the shell owns the right,
   the two live tags sit under it. Nothing is absolutely stacked over anything else. */
.abyss {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  grid-template-areas: "tag ." "console labels";
  grid-template-rows: 1fr auto; column-gap: clamp(24px, 4vw, 64px); row-gap: 22px;
  padding: clamp(84px, 11vh, 120px) var(--pad) clamp(18px, 4vh, 40px);
}
.abyss__tag { grid-area: tag; position: relative; z-index: 3; align-self: start; pointer-events: none; }
.abyss__tag .display { font-size: clamp(38px, 4.3vw, 74px); line-height: .92; }
.abyss__tag .display span { display: block; }
.abyss__tag .display em { display: block; margin-top: .08em; }
.abyss__labels { grid-area: labels; position: relative; z-index: 3; align-self: end; justify-self: end; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 230px); gap: 12px; width: min(100%, 660px); }
/* the live fee tide, big and dated, with the one primary control right beside the shell */
.tide { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-color: rgba(255, 196, 107, .45); }
.tide__read { min-width: 0; }
.tide__v { display: flex; align-items: baseline; gap: 8px; font: 800 clamp(40px, 4.4vw, 64px)/.95 var(--display); letter-spacing: -.03em; color: var(--amber-hot); text-shadow: 0 0 28px rgba(255, 196, 107, .35); }
.tide__v small { font: 400 12px/1 var(--mono); letter-spacing: 0; color: var(--ice); }
.tide__p { position: relative; color: var(--foam); font-weight: 600; }
.tide__feed { flex: none; min-height: 54px; padding: 0 26px; font-size: 14px; }
.console__btns .btn--sm { flex: 1 1 0; white-space: nowrap; }
.abyss__labels .specimen__v { font-size: clamp(20px, 2vw, 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abyss__console { grid-area: console; position: relative; z-index: 3; align-self: end; width: 100%; }
.abyss__scroll { position: absolute; z-index: 3; right: 14px; bottom: clamp(22px, 4vh, 44px); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dusk); text-decoration: none; writing-mode: vertical-rl; transition: color .2s; }
.abyss__scroll:hover { color: var(--amber); }

.console__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.console__big { font: 800 clamp(44px, 6vw, 76px)/.85 var(--display); letter-spacing: -.04em; }
.console__big small { font: 400 12px/1 var(--mono); letter-spacing: 0; color: var(--ice); margin-left: 6px; }
.console__k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dusk); }
.console__facts { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 18px; font-size: 11px; color: var(--ice); }
.console__facts b { display: block; font: 700 15px/1.2 var(--display); color: var(--foam); }
.console__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.console__msg { margin: 10px 0 0; min-height: 1.6em; font-size: 11.5px; color: var(--amber-hot); }

.meter { position: relative; margin: 14px 0 4px; height: 12px; background: rgba(158, 181, 200, .1); border: 1px solid var(--line); overflow: hidden; }
.meter__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--violet), var(--ice) 55%, var(--amber)); transition: width .6s var(--ease); }
.meter__fill::after { content: ""; position: absolute; right: 0; top: -3px; bottom: -3px; width: 2px; background: var(--amber-hot); box-shadow: 0 0 10px var(--amber); }
.meter__ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--dusk); }
.meter.is-hot { animation: shake .25s linear infinite; }
/* where the next mouthful takes the shell: a breathing ghost ahead of the fill */
.meter__next { position: absolute; inset: 0 auto 0 0; width: 0; border-right: 2px dashed var(--amber); background: repeating-linear-gradient(135deg, rgba(255, 196, 107, .2) 0 4px, transparent 4px 9px); transition: width .6s var(--ease); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.console__big { position: relative; }
.console__k b { color: var(--foam); font-weight: 600; }
.bump { position: absolute; left: 100%; top: -6px; margin-left: 8px; font: 700 16px/1 var(--mono); color: var(--amber); letter-spacing: 0; white-space: nowrap; pointer-events: none; animation: bump 1.1s var(--ease) forwards; }
@keyframes bump { from { opacity: 0; transform: translateY(14px); } 25% { opacity: 1; } to { opacity: 0; transform: translateY(-22px); } }
.btn.is-hungry { animation: hungry 1.8s ease-in-out infinite; }
@keyframes hungry { 50% { box-shadow: 0 0 0 6px rgba(255, 196, 107, .18), 0 0 30px rgba(255, 196, 107, .45); } }
.abyss__console.is-thump { animation: thump .32s var(--ease); }
@keyframes thump { 40% { transform: translateY(2px) scale(.995); border-color: var(--amber); } }
@keyframes shake { 25% { transform: translateX(-1px); } 75% { transform: translateX(1px); } }

/* the pressure ring: an x-ray reticle laid over the shell, filling and cracking with the fee tide */
.halo {
  position: absolute; z-index: 2; left: 69%; top: 48%;
  width: min(58vh, 38vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; pointer-events: none;
}
.halo::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  border: 1px solid rgba(158, 181, 200, .4); animation: sonar 3.4s ease-out infinite;
}
@keyframes sonar { from { transform: scale(.72); opacity: .8; } to { transform: scale(1.1); opacity: 0; } }
.halo__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.halo__orbit { fill: none; stroke: var(--ice); stroke-opacity: .45; stroke-width: .7; stroke-dasharray: 1 4; transform-origin: 100px 100px; animation: spin 40s linear infinite; }
.halo.is-wait .halo__orbit { animation-duration: 5s; }
.halo__track { fill: none; stroke: rgba(158, 181, 200, .14); stroke-width: 6; }
.halo__next { fill: none; stroke: var(--amber); stroke-opacity: .4; stroke-width: 6; stroke-dasharray: 0 100; transition: stroke-dasharray .7s var(--ease); animation: breathe 1.6s ease-in-out infinite; }
.halo__fill {
  fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0 100;
  stroke: var(--ice);
  stroke: color-mix(in srgb, var(--amber) calc(var(--p, 0) * 100%), var(--ice));
  filter: drop-shadow(0 0 4px rgba(255, 196, 107, .8));
  transition: stroke-dasharray .7s var(--ease), stroke .7s;
}
.halo__cracks path {
  fill: none; stroke: var(--amber-hot); stroke-width: 1.5; stroke-linejoin: round;
  stroke-dasharray: 80; stroke-dashoffset: 80; opacity: 0;
  filter: drop-shadow(0 0 3px var(--amber)); transition: stroke-dashoffset .9s var(--ease), opacity .3s;
}
.halo__cracks path.is-open { stroke-dashoffset: 0; opacity: 1; }
.halo__read { position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 20px; text-align: center; background: radial-gradient(closest-side, rgba(1, 1, 1, .78), rgba(1, 1, 1, 0)); }
.halo__k { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.halo__big { position: relative; font: 800 clamp(52px, 6.6vw, 100px)/.9 var(--display); letter-spacing: -.04em; text-shadow: 0 0 30px rgba(255, 196, 107, .35); }
.halo__s { font-size: 10.5px; color: var(--ice); }
.halo.is-wait .halo__big { animation: pulse 1s infinite; }
.halo.is-gulp .halo__ring { animation: gulp .5s var(--ease); }
.halo.is-gulp .halo__big { animation: gulp-num .5s var(--ease); }
.halo.is-hot .halo__ring { animation: hot .22s linear infinite; }
@keyframes gulp { 35% { transform: rotate(-90deg) scale(1.07); filter: drop-shadow(0 0 16px rgba(255, 196, 107, .7)); } }
@keyframes gulp-num { 35% { transform: scale(1.1); color: var(--amber-hot); } }
@keyframes hot { 25% { transform: rotate(-91.2deg); } 75% { transform: rotate(-88.8deg); } }

/* below the fold on home */
.band { position: relative; z-index: 2; padding: clamp(70px, 12vw, 160px) var(--pad); }
.band--dark { background: linear-gradient(180deg, transparent, rgba(5, 4, 11, .92) 18%, rgba(5, 4, 11, .92) 82%, transparent); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.steps li {
  position: relative; display: grid; grid-template-rows: auto 1fr; gap: 10px; align-content: start;
  padding: 16px 18px; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(80, 73, 117, .2), transparent 70%);
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.steps li:hover { border-color: var(--amber); background: linear-gradient(160deg, rgba(255, 196, 107, .1), transparent 70%); transform: translateY(-4px); }
.steps li::before { counter-increment: s; content: counter(s); font: 800 44px/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--ice); }
.steps h3 { margin: 0 0 4px; font: 800 20px/1.1 var(--display); letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--ice); }
.dive { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.dive__fig { position: sticky; top: 110px; }
.dive__fig img { width: 100%; height: auto; filter: drop-shadow(0 0 60px rgba(119, 128, 162, .35)); }
.dive__fig figcaption { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dusk); margin-top: 8px; }

.molted { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.molted__art { position: relative; }
.molted__art img { width: 100%; height: auto; transition: filter .8s, opacity .8s; }
.molted[data-state="empty"] .molted__art img { filter: grayscale(.8) brightness(.55); opacity: .7; }
.husks { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.husks li { font-size: 11px; padding: 6px 10px; border: 1px solid var(--line); color: var(--ice); background: rgba(158, 181, 200, .05); }
.husks li.is-new { border-color: var(--amber); color: var(--amber-hot); }
.cardview { margin-top: 14px; border: 1px solid var(--line); background: #000; }
.cardview img { width: 100%; height: auto; }
.cardview__bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

#husk { padding-top: clamp(40px, 6vw, 80px); }
/* the reason to hold leads; the supply is the footnote it stands on */
.husk-strip { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.husk-strip__why .kicker .proposed { transform: none; }
.utility--big li { font: 700 clamp(18px, 1.9vw, 28px)/1.2 var(--display); letter-spacing: -.01em; padding: 16px 0; }
.utility--big li::before { font: 400 16px/1.6 var(--mono); }
.supply { font: 800 clamp(26px, 3.4vw, 50px)/.95 var(--display); letter-spacing: -.04em; margin: 0; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--ice); }
.supply small { white-space: normal; -webkit-text-stroke: 0; }
.supply small { display: block; font: 400 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ice); margin-top: 12px; }
.utility { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.utility li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.utility li::before { content: "◇"; color: var(--amber); }

.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; max-width: 560px; }
.waitlist input {
  flex: 1 1 220px; min-height: 46px; padding: 0 14px;
  font: 400 13px var(--mono); color: var(--foam);
  background: rgba(5, 4, 11, .7); border: 1px solid var(--line); border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.waitlist input:hover { border-color: var(--ice); }
.waitlist input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 196, 107, .18); }
.waitlist__note { flex-basis: 100%; margin: 0; font-size: 11px; color: var(--dusk); min-height: 1.5em; }

/* ---------- inner pages ---------- */
.page { position: relative; z-index: 2; padding: clamp(96px, 14vh, 140px) var(--pad) 40px; max-width: 1360px; margin: 0 auto; }
.page-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: end; margin-bottom: clamp(30px, 5vw, 60px); }
.page-head__art img { width: min(100%, 360px); height: auto; margin-left: auto; filter: drop-shadow(0 0 50px rgba(119, 128, 162, .35)); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }

/* controls */
.ctl { display: grid; gap: 6px; margin-bottom: 16px; }
.ctl__top { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--ice); }
.ctl__top output, .ctl__top b { color: var(--amber-hot); font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ice), var(--violet)); }
input[type="range"]::-moz-range-track { height: 2px; background: linear-gradient(90deg, var(--ice), var(--violet)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; background: var(--ink); border: 2px solid var(--amber); transform: rotate(45deg); transition: transform .2s, box-shadow .2s; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: var(--ink); border: 2px solid var(--amber); border-radius: 0; transform: rotate(45deg); }
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 12px var(--amber); }
input[type="range"]:active::-webkit-slider-thumb { transform: rotate(45deg) scale(1.25); }
input[type="range"]:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.num-in { width: 100%; min-height: 42px; padding: 0 12px; font: 400 14px var(--mono); color: var(--foam); background: rgba(5, 4, 11, .7); border: 1px solid var(--line); border-radius: 0; transition: border-color .2s; }
.num-in:hover { border-color: var(--ice); }
.num-in:focus { outline: none; border-color: var(--amber); }
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.seg button { font: 500 11px var(--mono); color: var(--ice); background: transparent; border: 0; border-right: 1px solid var(--line); padding: 10px 14px; cursor: pointer; transition: background .2s, color .2s; }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: rgba(158, 181, 200, .1); color: var(--foam); }
.seg button[aria-pressed="true"] { background: var(--amber); color: var(--ink); }
.seg button:active { transform: scale(.97); }

/* the seat share leads across the full width; the four supporting figures sit two by two */
.readouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 16px; }
.readouts > div { background: rgba(5, 4, 11, .9); padding: 12px 14px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.readouts > div:nth-child(3) { order: -1; grid-column: 1 / -1; }
.readouts .k { display: block; font-size: 10px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--dusk); }
.readouts .v { display: block; font: 800 clamp(20px, 2vw, 28px)/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; overflow-wrap: normal; }
.readouts .v.amber { color: var(--amber); font-size: clamp(32px, 3.6vw, 48px); }

/* chart */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis text { font: 400 10px var(--mono); fill: var(--dusk); }
.chart .grid line { stroke: rgba(158, 181, 200, .12); }
.chart .fee-line { fill: none; stroke: var(--ice); stroke-width: 1.6; }
.chart .fee-area { fill: url(#feeGrad); }
.chart .thr { stroke: var(--amber); stroke-dasharray: 6 5; stroke-width: 1.2; }
.chart .thr-label { font: 600 10px var(--mono); fill: var(--amber); }
.chart .run { fill: rgba(255, 196, 107, .12); }
.chart .mk-go { fill: var(--amber); stroke: var(--ink); stroke-width: 2; }
.chart .mk-veto { fill: var(--ink); stroke: var(--dusk); stroke-width: 1.6; }
.chart .cursor { stroke: var(--foam); stroke-width: 1; }
.chart .cursor-dot { fill: var(--foam); }
.chart-state { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--ice); font-size: 12px; background: rgba(5, 4, 11, .6); }
.chart-state[hidden] { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 10.5px; color: var(--ice); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }

/* token */
.alloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 30px; align-items: start; }
.alloc svg { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; overflow: visible; position: sticky; top: 96px; }
.alloc svg path.seg-arc { fill: none; stroke-linecap: butt; transition: stroke-width .3s var(--ease), opacity .3s; cursor: pointer; }
.alloc svg path.seg-arc.is-dim { opacity: .3; }
.alloc svg path.seg-arc.is-hi { stroke-width: 34; }
.alloc-list { list-style: none; margin: 0; padding: 0; }
.alloc-list li { display: grid; grid-template-columns: 14px 1fr auto; gap: 4px 12px; padding: 12px 6px; border-top: 1px solid var(--line); cursor: default; transition: background .2s; }
.alloc-list li:hover, .alloc-list li:focus-within, .alloc-list li.is-hi { background: rgba(158, 181, 200, .07); }
.alloc-list .sw { width: 12px; height: 12px; margin-top: 4px; }
.alloc-list .nm { font: 700 15px/1.3 var(--display); }
.alloc-list .pc { font: 800 22px/1 var(--display); color: var(--amber); }
.alloc-list .rl { grid-column: 2 / 4; font-size: 11px; color: var(--dusk); }
.alloc-list .ub { grid-column: 2 / 4; height: 4px; background: rgba(158, 181, 200, .12); position: relative; }
.alloc-list .ub i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ice); transition: width .4s var(--ease); }
.alloc-list .ut { grid-column: 2 / 4; font-size: 10.5px; color: var(--ice); }

/* fossils */
.lineage { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; }
.lineage::before { content: ""; position: absolute; left: 22px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--ice), var(--violet), transparent); }
.lineage li { margin-left: calc(var(--i, 0) * clamp(0px, 3.4vw, 54px)); }
.node {
  position: relative; display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; width: 100%; max-width: 640px;
  text-align: left; padding: 14px 16px 14px 0; color: var(--foam); font: inherit;
  background: linear-gradient(90deg, rgba(80, 73, 117, .22), rgba(5, 4, 11, .4)); border: 1px solid var(--line); cursor: pointer;
  transition: border-color .25s, transform .35s var(--ease), background .25s;
}
.node:hover, .node:focus-visible { border-color: var(--amber); transform: translateX(8px); background: linear-gradient(90deg, rgba(255, 196, 107, .14), rgba(5, 4, 11, .4)); }
.node:active { transform: translateX(8px) scale(.99); }
.node__glyph { justify-self: center; width: 30px; height: 30px; }
.node__glyph path { fill: none; stroke: var(--ice); stroke-width: 2; }
.node[data-kind="now"] .node__glyph path { stroke: var(--amber); }
.node__t { font: 800 clamp(18px, 2.2vw, 26px)/1.1 var(--display); letter-spacing: -.01em; }
.node__s { display: block; font: 400 11px/1.5 var(--mono); color: var(--ice); margin-top: 2px; }
.node__phase { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }

dialog.card {
  width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto;
  padding: 0; border: 1px solid var(--line-hi); background: #07060e; color: var(--foam);
}
dialog.card::backdrop { background: rgba(1, 1, 1, .72); backdrop-filter: blur(4px); }
dialog.card[open] { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.card__in { padding: clamp(18px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; }
.card__in img { width: 100%; height: auto; }
.card__in dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 16px 0; font-size: 12px; }
.card__in dt { color: var(--dusk); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; padding-top: 2px; }
.card__in dd { margin: 0; color: var(--foam); }
.card__close { position: absolute; top: 10px; right: 10px; }

/* pulse */
/* four recommended rates as a strip of readouts; the chart below carries the variation */
.rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.rates > div { min-width: 0; padding: 10px 12px; background: rgba(5, 4, 11, .9); transition: background .2s; }
.rates > div:hover { background: rgba(158, 181, 200, .07); }
.rates dt { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dusk); white-space: nowrap; }
.rates dd { margin: 4px 0 0; font: 800 clamp(20px, 2vw, 28px)/1 var(--display); letter-spacing: -.02em; }
.rates .is-lead dd { color: var(--amber); }
.floor { font-size: 11px; color: var(--ice); margin: 10px 0 0; }
.tidechart__k { margin: 22px 0 8px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.tidechart { min-height: 230px; width: 100%; }
.tidechart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tidechart__wait { margin: 0; padding: 90px 0; text-align: center; font-size: 12px; color: var(--ice); }
.tc-grid line { stroke: rgba(158, 181, 200, .14); }
.tc-grid text, .tc-cap { font: 400 9.5px var(--mono); fill: var(--dusk); }
.tc-bar rect { fill: rgba(119, 128, 162, .55); transition: fill .2s; }
.tc-bar.is-page rect { fill: var(--ice); }
.tc-bar:hover rect { fill: var(--amber); }
.tc-x { font: 400 9px var(--mono); fill: var(--ice); }
.tc-next { stroke: var(--amber); stroke-width: 1.2; stroke-dasharray: 5 4; }
.tc-next-l { font: 600 9.5px var(--mono); fill: var(--amber); }
.strata li.is-wait { display: block; padding: 14px 12px; font-size: 12px; color: var(--ice); }

.strata { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.strata li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); background: rgba(5, 4, 11, .7); transition: border-color .2s, transform .3s var(--ease); }
.strata li:hover { border-color: var(--ice); transform: translateX(4px); }
.strata .h { font: 800 15px/1 var(--display); }
.strata .h small { display: block; font: 400 10px/1.6 var(--mono); color: var(--dusk); }
.strata .bar { height: 14px; background: rgba(158, 181, 200, .08); position: relative; }
.strata .bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--violet), var(--ice)); }
.strata .meta { font-size: 10.5px; color: var(--ice); text-align: right; white-space: nowrap; }
.strata .meta b { color: var(--amber-hot); font-weight: 600; }
.pager { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 11px; color: var(--ice); }

table.sector { width: 100%; border-collapse: collapse; font-size: 12px; }
.sector th, .sector td { padding: 11px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.sector th:first-child, .sector td:first-child { text-align: left; }
.sector th { font-weight: 500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dusk); }
.sector th button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ice); background: none; border: 0; cursor: pointer; padding: 4px 0; border-bottom: 1px dashed var(--line); transition: color .2s; }
.sector th button:hover { color: var(--amber); }
.sector th[aria-sort] button { color: var(--amber); border-bottom-color: var(--amber); }
.sector td .nm { font: 700 14px var(--display); }
.sector td .tk { font-size: 10px; color: var(--dusk); margin-left: 6px; }
.sector tr.bench td { background: rgba(255, 196, 107, .05); }
.sector .up { color: #8ff0c8; }
.sector .dn { color: var(--rose); }
.sector tbody tr { transition: background .2s; }
.sector tbody tr:hover { background: rgba(158, 181, 200, .06); }
.scroll-x { overflow-x: auto; max-width: 100%; }

/* empty / error state */
.state { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; padding: 16px; border: 1px dashed var(--line); color: var(--ice); font-size: 12px; }
.state img { width: 90px; height: auto; }

/* footer */
.foot { position: relative; z-index: 2; padding: 50px var(--pad) 36px; border-top: 1px solid var(--line); background: rgba(1, 1, 1, .85); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand img { width: 56px; height: 56px; object-fit: contain; }
.foot__tag { font: 800 clamp(18px, 2.4vw, 28px)/1.05 var(--display); margin: 0; max-width: 22ch; }
.foot__meta { font-size: 10.5px; color: var(--dusk); margin: 12px 0 0; }
.foot__meta a { color: var(--ice); }
.foot__src { display: grid; gap: 4px; margin-top: 12px; font-size: 10.5px; color: var(--dusk); }
.foot__src p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.foot__src .fresh { margin: 0; }
.slots { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.slot-link { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 9px 14px; border: 1px solid var(--line); color: var(--ice); transition: border-color .2s, color .2s; }
.slot-link:hover { border-color: var(--amber); color: var(--amber); }
.slot-ca { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 4px 4px 4px 12px; max-width: 100%; }
.slot-ca code { font-size: 11px; color: var(--ice); overflow-wrap: anywhere; }
[hidden] { display: none !important; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .dive, .molted, .husk-strip, .page-head, .grid-2, .alloc { grid-template-columns: minmax(0, 1fr); }
  .dive__fig { position: relative; top: 0; max-width: 360px; }
  .page-head__art img { margin: 0; width: min(70%, 260px); }
  [data-page="pulse"] .grid-2 > .stack { order: -1; }
  .alloc svg { position: relative; top: 0; max-width: 320px; }
  .foot { grid-template-columns: 1fr; }
  .slots { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 12.5px; }
  .rail { padding: 10px 14px; }
  .rail__word { display: none; }
  .rail__brand img { width: 30px; height: 30px; }
  .rail nav { gap: 12px; }
  .rail nav a { font-size: 10.5px; letter-spacing: 0; }
  /* on a phone the shell gets its own band between the title and the instruments */
  .abyss {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 300px auto auto;
    grid-template-areas: "tag" "stage" "labels" "console";
    row-gap: 10px; padding: 64px 14px 14px;
  }
  .abyss > .stage { position: relative; inset: auto; grid-area: stage; margin: 0 -14px; }
  .halo { left: 50%; top: 50%; width: min(290px, 76vw); }
  .tide { grid-column: 1 / -1; gap: 10px; }
  .tide__v { font-size: 40px; }
  .tide__feed { min-height: 50px; padding: 0 16px; font-size: 12.5px; }
  .abyss__tag .display { font-size: clamp(28px, 8.2vw, 44px); }
  .abyss__tag .kicker { margin-bottom: 8px; font-size: 10px; }
  .abyss__labels { justify-self: stretch; width: auto; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .abyss__labels .fresh { font-size: 9.5px; margin-top: 4px; }
  .abyss__labels .specimen__s { font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
  .specimen { padding: 8px 10px 8px 22px; min-width: 0; }
  .specimen::before { left: 7px; top: 12px; }
  .abyss__labels .specimen__v { font-size: 19px; overflow: visible; text-overflow: clip; }
  .abyss__console { padding: 14px; }
  .console__big { font-size: 42px; }
  .console__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .console__btns .btn { flex: 1 1 auto; padding: 0 12px; min-height: 42px; font-size: 11px; }
  .abyss__scroll { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .steps li { padding: 12px 10px; }
  .steps h3 { font-size: 16px; }
  .steps li:hover { transform: none; }
  .molted__art { max-width: 320px; margin: 0 auto; }
  .steps li::before { font-size: 32px; }
  .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strata li { grid-template-columns: auto minmax(0, 1fr); }
  .strata .h { white-space: nowrap; }
  .strata .meta { grid-column: 1 / -1; text-align: left; white-space: normal; }
  table.sector { font-size: 11px; }
  .sector th, .sector td { padding: 9px 4px; }
  .sector td .nm { display: block; font-size: 12.5px; line-height: 1.2; }
  .sector td .tk { display: block; margin: 2px 0 0; }
  .card__in { grid-template-columns: minmax(0, 1fr); }
  .card__in img { width: 120px; }
  .card__in dl { grid-template-columns: 1fr; gap: 2px; }
  .card__in dd { margin-bottom: 8px; }
  .node { grid-template-columns: 40px 1fr; }
  .node__phase { grid-column: 2; }
}

/* ---------- reduced motion: everything still ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .veil.is-on { opacity: 0; visibility: hidden; }
}
