/* RUBRA · one stylesheet for the site, the dashboard and the authorize page.
   World: a crimson studio with an obsidian night and a white studio as its two other moods. Wide, heavy uppercase
   (Archivo at full width) for the voice, Geist for reading, Geist Mono only for figures and code.
   Shape rule: controls are pills, panels are 20px, nothing else is rounded.
   Glass here is a web approximation (backdrop-filter, a 1px edge, a top highlight), not Apple's Liquid Glass. */

@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

@property --fg { syntax: "<color>"; inherits: true; initial-value: #f4f4f5; }
@property --fg2 { syntax: "<color>"; inherits: true; initial-value: rgba(244, 244, 245, .66); }
@property --fg3 { syntax: "<color>"; inherits: true; initial-value: rgba(244, 244, 245, .42); }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, .14); }
@property --pane { syntax: "<color>"; inherits: true; initial-value: rgba(12, 4, 4, .34); }
@property --chip { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, .04); }
@property --edge { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, .15); }
@property --spec { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, .22); }
@property --solid { syntax: "<color>"; inherits: true; initial-value: #f4f4f5; }
@property --on-solid { syntax: "<color>"; inherits: true; initial-value: #0a0a0a; }

:root {
  --ink: #0a0a0a;
  --off: #f4f4f5;
  --crim: #8b0000;
  --red: #ff1e1e;
  --accent: #ff1e1e;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.25, 1, .5, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --mood: 1.2s var(--ease);
  --r: 20px;
  --gut: clamp(16px, 3.4vw, 44px);
  --sx: 50%; --sy: 40%;
  --ink: #0b0b0b; --micro: #0b0b0b;
  color-scheme: dark;
  transition: --fg var(--mood), --fg2 var(--mood), --fg3 var(--mood), --line var(--mood), --pane var(--mood), --chip var(--mood), --edge var(--mood), --spec var(--mood), --solid var(--mood), --on-solid var(--mood);
}
html[data-mood="studio"] {
  --fg: #111111; --fg2: rgba(17, 17, 17, .7); --fg3: rgba(17, 17, 17, .52); --line: rgba(17, 17, 17, .14);
  --pane: rgba(250, 250, 251, .8); --chip: rgba(17, 17, 17, .05); --edge: rgba(17, 17, 17, .12); --spec: rgba(255, 255, 255, .85);
  --solid: #111111; --on-solid: #f4f4f5; --accent: #c80a0a;
  --ink: #fbfbfb; --micro: #111111;
  color-scheme: light;
}
html[data-mood="obsidian"] { --ink: #2a2620; --micro: rgba(233, 201, 138, .8); --pane: rgba(20, 18, 14, .46); --chip: rgba(255, 255, 255, .05); --accent: #d9a74a; --solid: #e9c98a; --on-solid: #141008; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); scrollbar-color: rgba(255, 30, 30, .7) transparent; scrollbar-width: thin; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; min-height: 100dvh; background: var(--ink); color: var(--fg);
  font: 300 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; caret-color: var(--accent);
}
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 30, 30, .6); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, pre, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: .88em; font-weight: 400; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
b, strong { font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------------- the colour field ---------------- */
.bgf { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bgf i { position: absolute; inset: 0; transition: opacity var(--mood); }
.f-crimson { background: radial-gradient(ellipse 70% 62% at 50% 46%, #d01212 0%, #a30606 34%, #6e0000 66%, #2a0000 100%); }
.f-crimson::after { /* a slow light leak drifting behind the glass */
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(closest-side, rgba(255, 120, 100, .28), transparent 70%) 0 0 / 46% 46% no-repeat;
  animation: leak 26s var(--ease) infinite alternate;
}
@keyframes leak { 0% { background-position: 8% 12%; } 50% { background-position: 92% 30%; } 100% { background-position: 30% 88%; } }
.f-studio { background: radial-gradient(ellipse 80% 70% at 50% 42%, #fcfcfd 0%, #ececef 52%, #cfcfd4 100%); opacity: 0; }
.f-obsidian { background: radial-gradient(ellipse 90% 80% at 50% 50%, #15130f 0%, #0d0d0d 60%, #060606 100%); opacity: 0; }
.f-spot { background: radial-gradient(circle at var(--sx) var(--sy), rgba(255, 214, 150, .26) 0, rgba(217, 167, 74, .1) 14vmax, transparent 34vmax); opacity: 0; }
.f-vignette { background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, rgba(0, 0, 0, .5) 100%); }
html[data-mood="studio"] .f-studio, html[data-mood="obsidian"] .f-obsidian, html[data-mood="obsidian"] .f-spot { opacity: 1; }
html[data-mood="studio"] .f-crimson, html[data-mood="obsidian"] .f-crimson { opacity: 0; }
html[data-mood="studio"] .f-vignette { opacity: .25; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: block; }
.grain { position: fixed; inset: -50%; z-index: 3; pointer-events: none; opacity: .085; mix-blend-mode: overlay; background-image: var(--grain, none); background-size: 180px; }
html.js-motion .grain { animation: grain 1.1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
html[data-mood="studio"] .grain { opacity: .06; mix-blend-mode: multiply; }

/* ---------------- glass ---------------- */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 42%), var(--chip);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--spec), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 8px 32px rgba(0, 0, 0, .37);
}
.glass::after { /* the specular sweep that follows the pointer */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .16), transparent 46%);
  opacity: 0; transition: opacity .5s var(--out);
}
.glass:hover::after { opacity: 1; }
html[data-mood="studio"] .glass { box-shadow: inset 0 1px 0 var(--spec), 0 8px 32px rgba(40, 20, 20, .12); }
.pane-g { background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%), var(--pane); }
.tilt { transition: rotate .2s linear; }
@media (prefers-reduced-transparency: reduce) {
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: #160606; }
  html[data-mood="studio"] .glass { background: #f4f4f5; }
}

/* ---------------- type ---------------- */
.disp, h1, .h2, .mark { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 4.6rem); line-height: .94; letter-spacing: -.005em; text-wrap: balance; max-width: 15ch; }
.lead { margin-top: 22px; font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.6; color: var(--fg2); max-width: 46ch; }
.lead code { color: var(--fg); }

/* ---------------- buttons, chips, commands ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--solid); color: var(--on-solid); text-decoration: none; white-space: nowrap;
  font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  transition: transform .35s var(--out), box-shadow .35s var(--out), background-color var(--mood), color var(--mood);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, .34); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 11.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--fg2); }
.chip, .cmd {
  display: flex; align-items: center; gap: 12px; min-width: 0; height: 50px; padding: 0 8px 0 20px; border-radius: 999px;
}
.cmd { background: var(--chip); border: 1px solid var(--line); }
.chip code, .cmd code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--fg); }
.chip .k, .cmd .k { font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); flex: none; }
.copy {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s var(--out), color .3s var(--out), box-shadow .3s var(--out);
}
.copy:hover { box-shadow: inset 0 0 0 1px var(--fg2); }
.copy.done { background: #c80a0a; color: #fff; box-shadow: none; }

/* ---------------- HUD ---------------- */
.hud-top {
  position: fixed; z-index: 10; top: 0; left: 0; right: 0; height: 76px; padding: 0 var(--gut);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  transition: filter .5s var(--out);
}
.ht-l { display: flex; align-items: center; gap: 36px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand { gap: 12px; }
.brand .mk-r { width: auto; height: 26px; fill: currentColor; flex: none; }
.brand span { font: 800 15px/1 var(--display); font-stretch: 125%; letter-spacing: .06em; }
.ht-c, .hud-bl, .hud-br, .pill { font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.ht-c { color: var(--fg2); font-size: 10px; letter-spacing: .32em; white-space: nowrap; }
.trailer { gap: 10px; height: 38px; padding: 0 16px; font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.trailer svg { width: 10px; height: 10px; fill: currentColor; }
.trailer .t-stop, .trailer[aria-pressed="true"] .t-play { display: none; }
.trailer[aria-pressed="true"] .t-stop { display: block; }
.dots { display: flex; gap: 3px; }
.dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.more-w { position: relative; }
.more-pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, calc(100vw - 32px)); padding: 18px; border-radius: var(--r); display: grid; gap: 10px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%), var(--pane); }
.mp-k { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--fg2); }
.mp-links { display: flex; gap: 18px; padding-top: 6px; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.mp-links a { color: var(--fg2); text-decoration: none; }
.mp-links a:hover { color: var(--fg); }
.ht-r { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; text-decoration: none; color: var(--fg); font-weight: 600; }
.orb { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.orb-sm { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.orb-sm svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.burger { display: grid; gap: 5px; width: 16px; }
.burger i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .45s var(--out); }
#menu-btn[aria-expanded="true"] .burger i:first-child { transform: translateY(3.25px) rotate(45deg); }
#menu-btn[aria-expanded="true"] .burger i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.bars { display: flex; align-items: center; gap: 2.5px; height: 14px; }
.bars i { width: 2px; height: 4px; border-radius: 2px; background: currentColor; transform-origin: 50% 50%; transition: height .25s var(--out); }
#sound[aria-pressed="true"] .bars i { background: var(--accent); }

.menu {
  position: fixed; inset: 0; z-index: 9; padding: 120px var(--gut) 120px; display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(10, 2, 2, .55); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%);
}
html[data-mood="studio"] .menu { background: rgba(240, 240, 242, .7); }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font: 800 clamp(2rem, 6vw, 4.4rem)/1 var(--display); font-stretch: 125%; text-transform: uppercase; text-decoration: none; color: var(--fg); overflow: hidden; }
.menu nav a span { display: inline-block; transition: transform .5s var(--out), color .3s; }
.menu nav a:hover span { transform: translateX(14px); color: var(--accent); }
.menu-f { display: flex; gap: 28px; font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.menu-f a { color: var(--fg2); text-decoration: none; }

.hud-bl, .hud-br { position: fixed; z-index: 10; bottom: 24px; display: flex; align-items: center; gap: 12px; color: var(--fg2); transition: filter .5s var(--out); }
.hud-bl { left: var(--gut); text-decoration: none; }
.hud-bl:hover { color: var(--fg); }
.hud-br { right: var(--gut); }
.nidx { display: inline-flex; align-items: center; gap: 6px; color: var(--fg2); text-decoration: none; transition: color .3s var(--out); }
.nidx:hover { color: var(--fg); }
.nidx svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.eq { height: 34px; padding: 0 4px 0 12px; display: grid; place-items: center; color: var(--fg); box-shadow: inset 1px 0 0 var(--line); }
.eq .bars { height: 16px; gap: 2.5px; }
.eq .bars i { width: 2px; height: 3px; }
#sound[aria-pressed="true"] .bars i { background: var(--accent); }
html.js-motion #sound[aria-pressed="false"] .bars i { animation: eqidle 2.4s var(--ease) infinite; }
#sound .bars i:nth-child(2) { animation-delay: .3s; } #sound .bars i:nth-child(3) { animation-delay: .6s; } #sound .bars i:nth-child(4) { animation-delay: .9s; } #sound .bars i:nth-child(5) { animation-delay: 1.2s; }
@keyframes eqidle { 0%, 100% { height: 3px; } 50% { height: 7px; } }.live { width: 6px; height: 6px; border-radius: 50%; background: var(--fg3); }
.live.on { background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 30, 30, .22); }
html[data-mood="crimson"] .live-x { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }

.dock {
  position: fixed; z-index: 10; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; padding: 5px; border-radius: 999px; gap: 2px;
}
.dock button { position: relative; z-index: 1; height: 40px; padding: 0 24px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--fg2); transition: color .45s var(--out); }
.dock button:hover { color: var(--fg); }
.dock button[aria-pressed="true"] { color: var(--on-solid); }
.dock-hl { position: absolute; z-index: 0; top: 5px; left: 0; height: 40px; width: 0; border-radius: 999px; background: var(--solid); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px rgba(0, 0, 0, .3); transition: transform .6s var(--out), width .6s var(--out); }
html.morphing, html.morphing * { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ---------------- intro: four stages on one held frame ---------------- */
main { position: relative; }
.intro { position: relative; }
.mk { position: absolute; left: 0; width: 1px; height: 100vh; pointer-events: none; }
.mk1 { top: 0; } .mkp { top: 55vh; } .mk2 { top: 115vh; } .mk3 { top: 205vh; }
.st-back, .st-front { position: relative; height: 100dvh; }
.st-front { z-index: 2; margin-top: -100dvh; }
.mark { position: absolute; z-index: 0; left: 0; right: 0; top: 96px; text-align: center; pointer-events: none; overflow: hidden; line-height: .8; }
.mark-in { display: inline-block; font-size: clamp(5rem, 20.6vw, 25rem); letter-spacing: .015em; color: var(--ink); padding-top: .04em; transition: color var(--mood); }
.mark-in { white-space: nowrap; }
.mark-in i { display: inline-block; font-style: normal; }
.mark .gl { position: absolute; background: var(--ink); opacity: 0; pointer-events: none; }
.mark-rule { position: absolute; left: var(--gut); right: var(--gut); top: calc(96px + clamp(5rem, 20.6vw, 25rem) * .84); height: 2px; background: var(--ink); opacity: .85; transform-origin: 0 50%; }
.micro { position: absolute; left: var(--gut); top: calc(96px + clamp(5rem, 20.6vw, 25rem) * .84 + 26px); width: min(430px, 31vw); display: grid; gap: 16px; color: var(--micro); transition: color var(--mood); }
.ic-lead { font: 700 clamp(1.25rem, 1.9vw, 1.7rem)/1.12 var(--display); font-stretch: 112%; letter-spacing: -.005em; text-wrap: balance; }
.ic-sub { font-size: .95rem; line-height: 1.55; color: var(--fg); text-wrap: pretty; }
.ic-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.micro .btn-ghost { color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.ic-facts { color: var(--fg); list-style: none; margin: 4px 0 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 22px; box-shadow: inset 0 1px 0 color-mix(in srgb, currentColor 30%, transparent); }
.ic-facts b { display: block; font: 600 1rem/1 var(--mono); }
.ic-facts span { display: block; margin-top: 6px; font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
.cue { position: absolute; left: 0; right: 0; bottom: 92px; display: grid; justify-items: center; gap: 12px; text-align: center; font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--fg2); }
.ed { position: absolute; top: 50%; transform: translateY(-50%); width: min(460px, 36vw); }
.ed-r { right: var(--gut); }
.ed-l { left: var(--gut); }
.ed-h { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3.6rem); line-height: .94; text-wrap: balance; }
.ed > p { margin-top: 18px; font-size: .98rem; line-height: 1.6; color: var(--fg2); }
.ed .acts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ed .acts .chip { flex: 1 1 230px; }
.ed .ca { margin-top: 10px; }
html.js-motion .intro { height: 400vh; }
html.js-motion .st-back, html.js-motion .st-front { position: sticky; top: 0; }
html.js-motion :is(.ed-r, .ed-l) { opacity: 0; visibility: hidden; }
html:not(.js-motion) .intro .st-front { margin-top: 0; height: auto; padding: 40vh 0 10vh; }
html:not(.js-motion) .intro :is(.micro, .ed, .cue) { position: relative; top: auto; left: auto; right: auto; bottom: auto; transform: none; width: auto; max-width: 520px; margin: 0 var(--gut) 60px; }

/* ecosystem: square glass cards in a row */
.eco { padding: 22vh 0 12vh; }
.eco-row { margin-top: 48px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.eco-c { aspect-ratio: 1; border-radius: var(--r); padding: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 42%), var(--pane); display: flex; flex-direction: column; justify-content: space-between; }
.eco-g { font: 800 clamp(1.6rem, 2.6vw, 2.4rem)/1 var(--display); font-stretch: 125%; color: var(--fg); }
html:not([data-mood="crimson"]) .eco-g { color: var(--accent); }
.eco-c span { display: block; font-weight: 500; font-size: 1rem; }
.eco-c small { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.45; color: var(--fg2); }

/* ---------------- sections ---------------- */
.sec { position: relative; }
.wrap { position: relative; z-index: 2; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.about, .engine, .network, .record, .rules, .supply, .start { padding: 22vh 0 18vh; }

/* about: a column on the left, the Operator turns to it from the right */
.about .wrap > * { max-width: 600px; }
.truths { margin-top: 56px; display: grid; gap: 0; }
.truths li { display: grid; grid-template-columns: minmax(0, 13rem) 1fr; gap: 24px; padding: 22px 0; box-shadow: inset 0 1px 0 var(--line); }
.truths b { font: 800 1rem/1.2 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .01em; }
.truths span { color: var(--fg2); font-size: .98rem; }
.need { margin-top: 48px; padding: 28px 30px; border-radius: var(--r); }
.need h3 { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--fg2); }
.need ul { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.need b { display: block; font-weight: 500; font-size: 1rem; }
.need span { display: block; margin-top: 6px; font-size: .88rem; line-height: 1.5; color: var(--fg2); }

/* guide: pinned and panned on wide screens */
.guide { padding: 18vh 0 14vh; }
.g-pin { position: relative; z-index: 2; }
.g-track { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 0 var(--gut); max-width: 1440px; margin: 0 auto; }
.g-intro { max-width: 560px; margin-bottom: 26px; }
.seg { margin-top: 30px; display: inline-flex; position: relative; padding: 4px; border-radius: 999px; }
.seg button { position: relative; z-index: 1; height: 38px; padding: 0 18px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); transition: color .4s var(--out); }
.seg button[aria-pressed="true"] { color: var(--on-solid); }
.seg-hl { position: absolute; top: 4px; left: 0; height: 38px; border-radius: 999px; background: var(--solid); transition: transform .55s var(--out), width .55s var(--out), background-color var(--mood); }
.step { min-width: 0; border-radius: var(--r); padding: 30px 30px 32px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%), var(--pane); display: flex; flex-direction: column; gap: 14px; }
.step-n { font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.step h3 { font: 800 1.45rem/1.05 var(--display); font-stretch: 125%; text-transform: uppercase; }
.step p { color: var(--fg2); font-size: .95rem; line-height: 1.6; }
.step p b, .step p code { color: var(--fg); }
.step .tip { font-size: .86rem; color: var(--fg3); }
.step .tip b { color: var(--fg2); }
.step .btn { align-self: flex-start; margin-top: 6px; }
.os-only { display: none; }
html[data-os-now="win"] .os-only[data-for="win"], html[data-os-now="mac"] .os-only[data-for="mac"], html[data-os-now="linux"] .os-only[data-for="linux"] { display: block; }
.mini { margin: 0; padding: 16px 18px; border-radius: 14px; background: #0a0a0a; color: #e9e9ec; font-size: 12.5px; line-height: 1.6; overflow-x: auto; }
.mini .g { color: #8a8a90; }
.inv { background: #f4f4f5; color: #0a0a0a; padding: 0 4px; }
.mini-auth { display: grid; gap: 12px; padding: 18px; border-radius: 14px; background: #0a0a0a; color: #f4f4f5; }
.ma-code { font-size: 1.5rem; letter-spacing: .14em; }
.ma-row { display: flex; justify-content: space-between; font-size: .82rem; color: #a1a1a8; }
.ma-row b { color: #f4f4f5; font-weight: 500; }
.ma-btns { display: flex; gap: 8px; }
.ma-btns i { font-style: normal; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 11px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.ma-btns i:first-child { background: #c80a0a; box-shadow: none; }
.g-progress { display: none; }

@media (min-width: 1024px) {
  html.js-motion .guide { padding: 0; }
  html.js-motion .g-pin { height: 100dvh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  html.js-motion .g-track { display: flex; align-items: stretch; gap: 22px; width: max-content; max-width: none; margin: 0; padding: 0 var(--gut); }
  html.js-motion .g-intro { flex: none; width: 440px; margin: 0 40px 0 0; align-self: center; }
  html.js-motion .step { flex: none; width: 400px; min-height: 480px; }
  html.js-motion .g-progress { display: block; position: absolute; left: var(--gut); right: var(--gut); bottom: 96px; height: 1px; background: var(--line); }
  html.js-motion .g-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
}
@media (min-width: 640px) and (max-width: 1023px) { .g-track { grid-template-columns: 1fr 1fr; } .g-intro { grid-column: 1 / -1; } }

/* engine: the copy on the right, the Operator under the lamp on the left */
.engine .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.eng-copy { grid-column: 7 / 13; }
.path { margin-top: 40px; display: grid; gap: 0; counter-reset: p; }
.path li { position: relative; padding: 18px 0 18px 34px; box-shadow: inset 0 1px 0 var(--line); }
.path li::before { content: ""; position: absolute; left: 0; top: 26px; width: 14px; height: 1.5px; background: var(--accent); transform: rotate(-58deg); }
.path b { display: block; font: 800 .95rem/1.2 var(--display); font-stretch: 125%; text-transform: uppercase; }
.path span { display: block; margin-top: 6px; color: var(--fg2); font-size: .94rem; }
.term { grid-column: 7 / 13; margin-top: 30px; border-radius: var(--r); overflow: hidden; background: rgba(8, 8, 9, .66); }
.term figcaption { display: flex; justify-content: space-between; padding: 14px 20px; font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 244, 245, .5); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); }
.term pre { margin: 0; padding: 18px 20px 22px; min-height: 290px; font-size: 12.5px; line-height: 1.62; color: #e9e9ec; white-space: pre; overflow-x: auto; }
.term .g { color: #77777e; } .term .a { color: var(--accent); } .term .w { color: #f4f4f5; } .term .p { color: #ff8b8b; } .term .ok { color: #7ee2a0; }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lab { grid-column: 1 / -1; margin-top: 12vh; border-radius: var(--r); padding: 30px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 40px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%), var(--pane); }
.lab-h p:not(.big) { margin-top: 14px; color: var(--fg2); font-size: .94rem; max-width: 40ch; }
.big { font-size: clamp(3.4rem, 6vw, 5.6rem); line-height: .9; letter-spacing: -.03em; color: var(--fg); }
.big small { font-size: .9rem; letter-spacing: 0; color: var(--fg2); margin-left: 10px; }
.bits { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(16, 1fr); gap: 5px; }
.bits i { height: 30px; border-radius: 4px; background: rgba(255, 255, 255, .07); transition: background-color .25s; }
.bits i.on { background: rgba(255, 30, 30, .55); }
.bits i.hit { background: var(--accent); box-shadow: 0 0 18px rgba(255, 30, 30, .5); }
.lab-kv { grid-row: 1; grid-column: 2; display: grid; gap: 10px; align-content: center; }
.lab-kv div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 14px; font-size: 12.5px; }
.lab-kv dt { color: var(--fg3); font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }
.lab-kv dd { font-family: var(--mono); color: var(--fg); overflow-wrap: anywhere; }
.lab-kv .z { color: var(--accent); }
.machines { grid-column: 1 / -1; margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mach { padding: 26px 0 0; box-shadow: inset 0 1px 0 var(--line); }
.mach h3 { font: 800 1.1rem/1 var(--display); font-stretch: 125%; text-transform: uppercase; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mach h3 span { font: 400 12px/1 var(--sans); letter-spacing: .06em; text-transform: none; color: var(--fg3); }
.mach dl { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mach dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); }
.mach dd { margin-top: 6px; font-size: 1.5rem; color: var(--fg); }
.mach dd small { font-size: .8rem; color: var(--fg2); }
.clock { margin-top: 18px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.clock i { display: block; height: 100%; background: var(--accent); }
.mach p { margin-top: 14px; color: var(--fg2); font-size: .92rem; }

/* network: four figures round the Operator */
.network { text-align: center; }
.network .h2, .network .lead { margin-left: auto; margin-right: auto; }
.orbit { margin-top: 5vh; display: grid; grid-template-columns: 1fr minmax(240px, 34vw) 1fr; grid-template-rows: auto 12vh auto; text-align: left; }
.o { max-width: 300px; }
.o1 { grid-column: 1; grid-row: 1; } .o2 { grid-column: 3; grid-row: 1; justify-self: end; text-align: right; }
.o3 { grid-column: 1; grid-row: 3; } .o4 { grid-column: 3; grid-row: 3; justify-self: end; text-align: right; }
.o b { display: block; font-size: clamp(2.6rem, 4.4vw, 4.4rem); line-height: 1; letter-spacing: -.035em; font-weight: 400; color: var(--fg); }
.o b small { font-size: .32em; letter-spacing: 0; margin-left: 6px; color: var(--fg2); }
.o > span { display: block; margin-top: 12px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.o p { margin-top: 8px; font-size: .9rem; color: var(--fg2); }

/* record: one glass board on the left */
.board { margin-top: 48px; width: min(880px, 64%); border-radius: var(--r); padding: 10px 30px 18px; display: grid; gap: 10px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%), var(--pane); }
.tbl h3 { padding: 22px 0 12px; font: 800 .95rem/1 var(--display); font-stretch: 125%; text-transform: uppercase; display: flex; justify-content: space-between; align-items: baseline; }
.tbl h3 span { font: 400 12px/1 var(--sans); text-transform: none; color: var(--fg3); }
.tbl-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--fg3); padding: 10px 10px 10px 0; box-shadow: inset 0 -1px 0 var(--line); }
td { padding: 11px 10px 11px 0; font-family: var(--mono); color: var(--fg2); white-space: nowrap; }
tbody tr + tr td { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.r { text-align: right; padding-right: 0; }
td .y { color: var(--fg); }
td.empty { text-align: center; padding: 26px 0; font-family: var(--sans); color: var(--fg3); }

/* rules: tabs and a morphing panel on the right */
.rules .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.rules .wrap > * { grid-column: 6 / 13; }
.tabs { margin-top: 40px; position: relative; display: flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-radius: 999px; justify-self: start; }
.tabs button { position: relative; z-index: 1; height: 38px; padding: 0 16px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); transition: color .4s var(--out); }
.tabs button[aria-selected="true"] { color: #f4f4f5; }
.tab-hl { position: absolute; z-index: 0; top: 5px; left: 0; height: 38px; border-radius: 999px; background: #0a0a0a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); transition: transform .55s var(--out), width .55s var(--out); }
.how { margin-top: 26px; view-transition-name: how; border-radius: var(--r); padding: 32px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%), var(--pane); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--spec), 0 8px 32px rgba(0, 0, 0, .37); }
.how h3 { font: 800 clamp(1.4rem, 2.2vw, 2rem)/1 var(--display); font-stretch: 125%; text-transform: uppercase; }
.how > p { margin-top: 14px; color: var(--fg2); max-width: 54ch; }
.how dl { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.how dl div { padding-top: 16px; box-shadow: inset 0 1px 0 var(--line); }
.how dt { font-weight: 500; }
.how dd { margin-top: 6px; color: var(--fg2); font-size: .92rem; }
::view-transition-old(how), ::view-transition-new(how) { animation-duration: .5s; animation-timing-function: var(--out); }
::view-transition-old(how) { animation-name: how-out; }
::view-transition-new(how) { animation-name: how-in; }
@keyframes how-out { to { opacity: 0; filter: blur(6px); transform: translateY(-8px); } }
@keyframes how-in { from { opacity: 0; filter: blur(6px); transform: translateY(10px); } }

/* supply + faq: studio light */
.sup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, auto); gap: 30px; justify-content: start; }
.facts dt { font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); }
.facts dd { margin-top: 8px; font-size: 1.3rem; color: var(--fg); }
.chart { border-radius: var(--r); padding: 22px 22px 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%), var(--pane); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart figcaption { margin-top: 10px; font-size: .84rem; color: var(--fg3); }
.chart .grid { stroke: var(--line); }
.chart .ax { fill: var(--fg3); font: 400 11px var(--mono); }
.chart .cap { stroke: var(--accent); stroke-dasharray: 3 5; }
.chart .ln { fill: none; stroke: var(--fg); stroke-width: 2; }
.chart .area { fill: url(#sg); }
.chart .dt { fill: var(--fg); }
.chart .now { fill: var(--accent); stroke: rgba(255, 30, 30, .3); stroke-width: 8; }
.faq { margin-top: 20vh; max-width: 760px; }
.faq-list { margin-top: 36px; }
.faq-list details { box-shadow: inset 0 1px 0 var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 1.08rem; font-weight: 400; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 1.5px; background: currentColor; box-shadow: 0 0 0 0 currentColor; transition: transform .45s var(--out); }
.faq-list summary::before { content: ""; position: absolute; right: 11.25px; top: calc(50% - 5.25px); width: 1.5px; height: 12px; background: currentColor; transition: transform .45s var(--out); }
.faq-list details[open] summary::before { transform: scaleY(0); }
.ans { overflow: hidden; }
.ans p { padding: 0 0 24px; color: var(--fg2); max-width: 62ch; }

/* start */
.start { min-height: 100dvh; display: flex; align-items: flex-end; }
.mark-end { top: 84px; }
.start-in { max-width: 600px; padding-bottom: 7vh; }
.start .h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); max-width: 18ch; }
.start-cmds { margin-top: 30px; display: grid; gap: 10px; }
.start .btn { margin-top: 22px; }

/* footer */
.foot { position: relative; z-index: 2; padding: 64px 0 110px; box-shadow: inset 0 1px 0 var(--line); }
.foot-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-b p { margin-top: 16px; color: var(--fg2); font-size: .92rem; max-width: 40ch; }
.foot h4 { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--fg3); }
.foot ul { margin-top: 16px; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; color: var(--fg2); font-size: .94rem; }
.foot ul a:hover { color: var(--fg); }
.fine { margin-top: 48px; font-size: .8rem; color: var(--fg3); }

/* intro + scroll states (only when motion runs) */
html.js-motion .rv { opacity: 0; transform: translateY(26px); }
html.js-motion .mark-end .mark-in { opacity: 0; letter-spacing: .14em; }
html.js-motion .mark-rule { transform: scaleX(0); }
html.js-motion :is(.micro > *, .cue, .hud-top, .hud-bl, .hud-br, .dock) { opacity: 0; }
html.no-webgl .bgf .f-crimson { opacity: 1; }

/* ---------------- narrow ---------------- */
@media (max-width: 1100px) {
  .eco-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eng-copy, .term { grid-column: 1 / -1; }
  .rules .wrap > * { grid-column: 1 / -1; }
  .board { width: 100%; }
}
@media (max-width: 820px) {
  .hud-top { height: 64px; grid-template-columns: 1fr auto; }
  .ht-c, .hud-bl, .hud-br, .trailer { display: none; }
  .micro { width: auto; right: var(--gut); gap: 12px; }
  .ic-facts { grid-template-columns: repeat(2, auto); gap: 12px 26px; }
  .ed { width: auto; left: var(--gut); right: var(--gut); top: auto; bottom: 96px; transform: none; }
  .eco-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .eco-c { scroll-snap-align: start; }
  .more-pop { right: -48px; }
  .pill { height: 38px; padding: 0 16px; }
  .orb { width: 38px; height: 38px; }
  .mark { top: 78px; }
  .mark-rule { top: calc(78px + clamp(5rem, 20.6vw, 25rem) * .84); }
  .micro { top: auto; bottom: 104px; padding: 18px; border-radius: var(--r); color: var(--fg); background: var(--pane); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 1px var(--edge); }
  .ic-lead { font-size: 1.2rem; }
  .ic-sub { font-size: .88rem; }
  .intro .cue { display: none; }
  .ed { padding: 22px; border-radius: var(--r); background: var(--pane); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 1px var(--edge), 0 8px 32px rgba(0, 0, 0, .3); }
  .ed > p br { display: none; }
  .ed-h { font-size: 1.9rem; }
  .about, .engine, .network, .record, .rules, .supply, .start { padding: 14vh 0 12vh; }
  .truths li { grid-template-columns: 1fr; gap: 8px; }
  .need ul { grid-template-columns: 1fr; }
  .lab { grid-template-columns: 1fr; padding: 22px; }
  .lab-kv { grid-row: auto; grid-column: 1; }
  .lab-kv div { grid-template-columns: 1fr; gap: 2px; }
  .bits { grid-template-columns: repeat(8, 1fr); }
  .machines { grid-template-columns: 1fr; }
  .orbit { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 34vh 18px; }
  .o1, .o2, .o3, .o4 { grid-column: auto; grid-row: auto; justify-self: start; text-align: left; }
  .o b { font-size: 2.2rem; }
  .how { padding: 22px; }
  .how dl { grid-template-columns: 1fr; }
  .tabs { border-radius: 22px; }
  .sup { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .facts dd { font-size: 1rem; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .dock button { padding: 0 16px; }
  .acts .chip { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------------- dashboard + authorize ---------------- */
.app-body .bgf .f-crimson { opacity: 1; }
.app-page, .auth { position: relative; z-index: 2; min-height: 100dvh; padding: 120px 0 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.acc { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--fg2); }
.acc .dot, .gate-state .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg3); }
.acc.ok .dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.pane { border-radius: var(--r); padding: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%), var(--pane); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--spec), 0 8px 32px rgba(0, 0, 0, .37); }
.pane > p { margin-top: 12px; color: var(--fg2); font-size: .94rem; }
.gate { margin-top: 40px; max-width: 640px; }
.gate-top { display: flex; justify-content: space-between; align-items: center; font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--fg3); }
.gate-state { display: inline-flex; gap: 8px; align-items: center; }
.gate .h2 { margin-top: 18px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.gate .btn { margin-top: 22px; }
.gate-steps { margin-top: 26px; display: grid; gap: 10px; color: var(--fg2); font-size: .92rem; }
.gate-steps b { font-family: var(--mono); font-weight: 400; color: var(--accent); margin-right: 12px; }
.ico svg { width: 14px; height: 14px; display: block; }
.dash { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pane-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pane-h h2 { font: 800 1.1rem/1 var(--display); font-stretch: 125%; text-transform: uppercase; }
.pane-h span { font: 400 12px/1 var(--mono); color: var(--fg3); }
.bal { margin-top: 22px; display: flex; align-items: baseline; gap: 12px; }
.bal b { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 400; letter-spacing: -.03em; }
.bal span { font: 600 11px/1 var(--sans); letter-spacing: .2em; color: var(--fg2); }
.kv { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kv div { padding-top: 12px; box-shadow: inset 0 1px 0 var(--line); }
.kv dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); }
.kv dd { margin-top: 6px; font-size: 1.05rem; }
.keys { margin-top: 18px; display: grid; gap: 8px; }
.keys li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; box-shadow: inset 0 1px 0 var(--line); }
.keys li.empty { color: var(--fg3); font-size: .9rem; }
.k-l b { display: block; font-weight: 500; }
.k-l small { display: block; margin-top: 3px; font: 400 11.5px/1.4 var(--mono); color: var(--fg3); }
.row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.newkey { margin-top: 16px; }
.newkey .cmd { margin-top: 10px; }
input.field { height: 42px; width: 150px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--fg); font: 400 14px var(--mono); }
input.field::placeholder { color: var(--fg3); }
input.field:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.note { margin-top: 12px; min-height: 1.4em; font-size: .88rem; color: var(--fg2); }
.wd-list { margin-top: 10px; display: grid; gap: 6px; font: 400 12px/1.4 var(--mono); color: var(--fg2); }
.wallets { margin-top: 16px; display: grid; gap: 8px; }
.wallets button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); text-align: left; }
.wallets button:hover { border-color: var(--fg2); }
.wallets img { width: 22px; height: 22px; border-radius: 6px; }
.app-body .hud-top { background: none; }
.auth { display: grid; place-items: center; padding: 120px var(--gut) 60px; }
.auth-card { width: min(520px, 100%); padding: 34px; }
.auth-card .k { font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--fg3); }
.auth-card h1 { margin-top: 16px; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; }
.auth-code { margin-top: 24px; font: 400 clamp(2rem, 6vw, 2.8rem)/1 var(--mono); letter-spacing: .14em; }
.auth-kv { margin-top: 22px; display: grid; gap: 0; }
.auth-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; box-shadow: inset 0 1px 0 var(--line); font-size: .92rem; }
.auth-kv dt { color: var(--fg3); }
.auth-kv dd { font-family: var(--mono); }
.auth-fine { margin-top: 18px; font-size: .82rem; color: var(--fg3); }
.auth-card.done .auth-code { color: var(--accent); }
@media (max-width: 820px) { .dash { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr 1fr; } }
.eco-c.glass { box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 var(--spec); }

.mark-in { text-shadow: none; }
html[data-mood="studio"] .mark-in { text-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 18px 60px rgba(0, 0, 0, .08); }

/* ---------------- loader: a red room, a small wordmark, a counter; then it lifts ---------------- */
.loader { display: none; }
html.js-motion:not(.ld-done) .loader { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(ellipse 80% 70% at 50% 45%, #b5100f 0%, #8b0000 55%, #4a0000 100%); }
.loader::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .12; mix-blend-mode: overlay; pointer-events: none; }
.ld-mark { font: 800 15px/1 var(--display); font-stretch: 125%; letter-spacing: .04em; color: #0b0b0b; }
.ld-ring { position: absolute; left: 50%; bottom: 64px; width: 48px; height: 48px; margin-left: -24px; display: grid; place-items: center; }
.ld-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ld-ring circle { fill: none; stroke-width: 1.5; }
.ld-track { stroke: rgba(255, 255, 255, .22); }
.ld-arc { stroke: #f4f4f5; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.ld-ring b { font: 600 11px/1 var(--mono); color: #f4f4f5; }
.ld-cap { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 244, 245, .62); }

/* the scroll cue: a mouse with a dot that drops */
.mouse { width: 18px; height: 28px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; display: grid; justify-items: center; padding-top: 6px; }
.mouse i { width: 2px; height: 5px; border-radius: 2px; background: currentColor; }
html.js-motion .mouse i { animation: mdrop 1.8s var(--ease) infinite; }
@keyframes mdrop { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }

/* a small label that follows the pointer on the intro */
.cur-tip { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; padding: 7px 12px; border-radius: 999px; font: 500 11px/1 var(--sans); letter-spacing: .06em; color: var(--fg); background: var(--chip); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 1px var(--edge); opacity: 0; transition: opacity .35s var(--out); white-space: nowrap; }
.cur-tip.on { opacity: 1; }

/* past the intro the top bar keeps only the brand and the menu */
:is(.trailer, .ht-c, .ht-r > .pill, .more-w, .hud-bl, .hud-br) { transition: opacity .6s var(--out), transform .6s var(--out); }
html.hud-min :is(.trailer, .ht-c, .ht-r > .pill, .more-w) { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* switching looks: the HUD steps aside, the dock fills like a progress bar, the next look grows out of the figure */
.dock { view-transition-name: dock; }
.dock-prog { position: absolute; z-index: 0; inset: 5px; border-radius: 999px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
html.switching :is(.hud-top, .hud-bl, .hud-br, .intro .st-front .micro, .intro .cue) { opacity: 0 !important; transition: opacity .35s var(--out); }
html.switching .dock button, html.switching .dock-hl { opacity: 0; transition: opacity .25s var(--out); }
html.switching .dock-prog { opacity: 1; }
::view-transition-new(root) { -webkit-mask: radial-gradient(closest-side, #000 0 58%, rgba(0, 0, 0, .55) 74%, transparent 100%) no-repeat; mask: radial-gradient(closest-side, #000 0 58%, rgba(0, 0, 0, .55) 74%, transparent 100%) no-repeat; }
::view-transition-old(dock) { animation: none; opacity: 0; }
::view-transition-new(dock) { animation: none; }
.ed-h .w { display: inline-block; white-space: nowrap; }
.ed-h .ch { display: inline-block; }
html.js-motion .intro .mark-in i { opacity: 0; }

/* the loader draws the monogram: the bars slide in, the strokes write themselves */
.ld-logo { display: grid; justify-items: center; gap: 18px; color: #0b0b0b; }
.ld-svg { height: 64px; width: auto; fill: currentColor; }
html.js-motion .ld-svg rect { transform-box: fill-box; transform-origin: 50% 50%; animation: ldbar .9s var(--out) both; }
html.js-motion .ld-svg rect + rect { animation-delay: .1s; }
html.js-motion .ld-svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ldpath 1.1s var(--ease) .25s forwards; }
html.js-motion .ld-svg path + path { animation-delay: .7s; animation-duration: .6s; }
@keyframes ldbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ldpath { to { stroke-dashoffset: 0; } }
.ld-mark { letter-spacing: .32em; font-size: 11px; padding-left: .32em; }
