/* ============================================================
   SITEGEN v2 — design system
   Grid: 12 cols, fluid gutter. Spacing: 4pt scale.
   Type: Geist (display/body) + Geist Mono (labels).
   ============================================================ */

:root {
  /* colour */
  --bg: #f3f5fb;
  --surface: #ffffff;
  --mist: #e6eaf7;
  --ink: #0a0f2c;
  --ink-2: #4a5170;
  --line: rgba(10, 15, 44, 0.12);
  --blue: #1b3bff;
  --blue-deep: #0a1fb8;
  --blue-soft: #c9d2ff;
  --white: #ffffff;

  /* spacing — 4pt scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px; --s10: 160px;

  /* layout */
  --pad: clamp(16px, 3.2vw, 48px);
  --gut: clamp(12px, 1.6vw, 24px);
  --max: 1600px;
  --header: 72px;
  --radius: 20px;

  /* type */
  --f-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --t-display: clamp(64px, 12.4vw, 216px);
  --t-h2: clamp(36px, 4.6vw, 76px);
  --t-h3: clamp(22px, 1.9vw, 30px);
  --t-lead: clamp(18px, 1.45vw, 22px);
  --t-body: 16px;
  --t-label: 12px;

  /* motion — Lusion-like expo-out */
  --ease: cubic-bezier(0.35, 0, 0, 1);
  --ease-2: cubic-bezier(0.4, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: color 0.8s var(--ease);
}
body.is-blue { color: var(--white); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: normal; color: var(--blue); }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

main, .top { position: relative; z-index: 2; }

/* ---------- layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.row { display: flex; flex-wrap: wrap; gap: var(--s3); }

.label {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
}
.label--inv { color: rgba(255, 255, 255, 0.72); }
.num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 20px;
  padding-inline: 6px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 11px;
}
.tick { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ---------- header ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--pad);
  z-index: 20;
  transition: transform 0.7s var(--ease);
}
.top.is-hidden { transform: translateY(-110%); }
.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.04em;
}
.logo-mark {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--bg) 0 28%, var(--blue) 30%);
  transition: transform 0.6s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(180deg) scale(1.15); }
body.is-blue .logo-mark { background: radial-gradient(circle at 50% 50%, var(--blue) 0 28%, var(--white) 30%); }

.nav {
  display: flex;
  gap: var(--s1);
  padding: var(--s1);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.8s var(--ease);
}
body.is-blue .nav { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.nav a {
  padding: 10px 16px;
  border-radius: 99px;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  transition: background 0.4s var(--ease);
}
.nav a:hover { background: var(--white); color: var(--ink); }
.top .pill { justify-self: end; }

/* roll text (Lusion-style duplicated label rolling up) */
/* JS wraps the label: <span><b>text</b><b aria-hidden>text</b></span> */
.roll > span {
  display: inline-flex;
  flex-direction: column;
  height: 1.1em;
  line-height: 1.1;
  overflow: hidden;
  vertical-align: top;
}
.roll > span > b {
  font-weight: inherit;
  display: block;
  transition: transform 0.55s var(--ease);
}
.roll:hover > span > b { transform: translateY(-100%); }

/* ---------- PILL BUTTON (Lusion pattern: dot floods, arrow slides in) ---------- */
.pill {
  --pill-bg: var(--white);
  --pill-fg: var(--ink);
  --pill-fill: var(--ink);
  --pill-fill-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  height: 48px;
  padding: 0 22px 0 20px;
  border-radius: 99px;
  background: var(--pill-bg);
  color: var(--pill-fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.pill--sm { height: 40px; padding: 0 18px 0 16px; font-size: 12px; }
.pill--blue  { --pill-bg: var(--blue); --pill-fg: var(--white); --pill-fill: var(--ink); --pill-fill-fg: var(--white); box-shadow: none; }
.pill--white { --pill-bg: var(--white); --pill-fg: var(--blue); --pill-fill: var(--ink); --pill-fill-fg: var(--white); box-shadow: none; }
body.is-blue .top .pill { --pill-bg: rgba(255,255,255,.12); --pill-fg: var(--white); --pill-fill: var(--white); --pill-fill-fg: var(--blue); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

.pill-dot {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--pill-fill);
  flex: none;
  z-index: -1;
  transition: transform 0.6s var(--ease), background 0.5s var(--ease);
}
.pill--blue .pill-dot { background: var(--white); }
.pill-text { transition: transform 0.5s var(--ease); white-space: nowrap; }
.pill-arrow {
  position: absolute;
  right: 18px; top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  transform: translateX(48px);
  transition: transform 0.5s var(--ease-2);
}
.pill-arrow svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill:hover { color: var(--pill-fill-fg); }
.pill:hover .pill-dot { transform: scale(60); background: var(--pill-fill); }
.pill:hover .pill-text { transform: translateX(-12px); }
.pill:hover .pill-arrow { transform: translateX(0); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: calc(var(--header) + var(--s7));
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gut);
  align-content: end;
  row-gap: var(--s6);
  padding-bottom: var(--s7);
}
.hero-label { grid-column: 1 / -1; }
.display {
  grid-column: 1 / -1;
  font-size: var(--t-display);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: -0.062em;
  margin-left: -0.05em; /* optical alignment of the first glyph */
}
.display .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.display .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.is-ready .display .line > span { transform: none; }
.is-ready .display .line:nth-child(2) > span { transition-delay: 0.08s; }
.is-ready .display .line:nth-child(3) > span { transition-delay: 0.16s; }
/* rule break: last line jumps off the grid by 4 columns */
.display .line--off { padding-left: calc((100% + var(--gut)) / 12 * 4); }

.hero-side {
  grid-column: 1 / span 5;
  display: grid;
  gap: var(--s5);
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 30ch;
}
.hero-foot {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--s5);
  height: 56px;
  border-top: 1px solid var(--line);
}
.hero-foot .label:nth-of-type(1) { justify-self: start; }
.plus { font-weight: 300; font-size: 20px; line-height: 1; color: var(--ink-2); }

/* ---------- section heads ---------- */
.sec-head { display: grid; gap: var(--s5); align-content: start; }
.h2 {
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

/* ---------- METHOD ---------- */
.method { padding-block: var(--s10) var(--s9); }
.method .sec-head { max-width: 760px; margin-bottom: var(--s8); }
.steps {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gut);
  counter-reset: s;
}
.step {
  grid-column: span 4;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s4);
  min-height: 320px;
  padding: var(--s6);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 1px 0 var(--line);
  transition: transform 0.7s var(--ease), background 0.5s var(--ease);
}
.step:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.85); }
/* rule break: third card drops half a step and turns blue */
.step--accent { transform: translateY(var(--s8)); background: var(--blue); color: var(--white); box-shadow: none; }
.step--accent:hover { transform: translateY(calc(var(--s8) - 8px)); background: var(--blue-deep); }
.step.step--accent .step-n { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.4); }
.step.step--accent p { color: rgba(255,255,255,.86); }
.step-n {
  justify-self: start;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-2);
}
.step h3 {
  align-self: end;
  font-size: var(--t-h3);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.step p { color: var(--ink-2); max-width: 30ch; }

/* ---------- FORMATS ---------- */
.formats { padding-block: var(--s10); }
.formats-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gut);
}
.formats .sec-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header) + var(--s6)); align-self: start; }
.sec-note { color: var(--ink-2); max-width: 34ch; }

/* app window — the product itself, shown as UI */
.appwin {
  grid-column: 6 / -1;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 40px 80px -40px rgba(10, 31, 184, 0.35);
  overflow: hidden;
}
.appwin-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s4);
  height: 48px;
  padding-inline: var(--s4);
  border-bottom: 1px solid var(--line);
}
.appwin-dots { display: inline-flex; gap: 6px; }
.appwin-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.appwin-dots i:first-child { background: var(--blue); box-shadow: none; }
.appwin-brief {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s4);
  align-items: baseline;
  padding: var(--s5) var(--s4);
  border-bottom: 1px solid var(--line);
}
.appwin-brief p { font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.02em; }
.appwin-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4);
}
/* ---------- PROTOTYPE ---------- */
.proto-count {
  font-variant-numeric: tabular-nums;
  color: var(--blue);
}
.proto-title, .proto-head .sec-note {
  transition: opacity 0.26s var(--ease), transform 0.5s var(--ease), filter 0.26s var(--ease);
}
.proto-title.is-swap { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
.proto-head .sec-note.is-swap { opacity: 0; }

.stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stepper button {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  padding: var(--s4);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  transition: color 0.4s var(--ease);
}
.stepper button span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; opacity: 0.6; }
.stepper button[aria-selected="true"] { color: var(--ink); }
.stepper button.is-done { color: var(--blue); }
.stepper-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.stepper-bar i {
  display: block; height: 100%; width: 25%;
  background: var(--blue);
  transform: translateX(calc((var(--step, 1) - 1) * 100%));
  transition: transform 0.7s var(--ease);
}
.appwin[data-step="1"] { --step: 1; }
.appwin[data-step="2"] { --step: 2; }
.appwin[data-step="3"] { --step: 3; }
.appwin[data-step="4"] { --step: 4; }

.panes { min-height: 432px; display: grid; }
.pane { display: grid; align-content: start; animation: pane-in 0.6s var(--ease); }
.pane[hidden] { display: none; }
@keyframes pane-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pane[data-pane="1"], .pane[data-pane="3"] { gap: var(--s5); padding: var(--s6) var(--s5); }
.field { display: grid; gap: var(--s3); }
.field input {
  width: 100%;
  height: 56px;
  padding: 0 var(--s4);
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  font-size: var(--t-lead);
  letter-spacing: -0.02em;
  color: var(--ink);
  caret-color: var(--blue);
  transition: box-shadow 0.4s var(--ease);
}
.field input:hover { box-shadow: inset 0 0 0 1px rgba(27, 59, 255, 0.35); }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 6px rgba(27, 59, 255, 0.1); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips button {
  height: 40px;
  padding: 0 var(--s4);
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.chips button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chips button.is-on { background: var(--ink); color: var(--white); box-shadow: none; }

.models { display: grid; gap: var(--s3); }
.model {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: baseline;
  gap: var(--s4);
  padding: var(--s5);
  border-radius: 16px;
  text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.model b { font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.04em; }
.model span { color: var(--ink-2); transition: color 0.5s var(--ease); }
.model:hover { transform: translateX(6px); }
.model.is-on { background: var(--ink); color: var(--white); box-shadow: none; }
.model.is-on span { color: rgba(255, 255, 255, 0.72); }

.pane[data-pane="4"] { padding: var(--s5); }
.log { display: grid; gap: var(--s3); padding: var(--s3) 0; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--ink-2); }
.log li { display: flex; gap: var(--s3); opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.log li::before { content: "→"; color: var(--blue); }
.log li.is-in { opacity: 1; transform: none; }
.log li:last-child::after { content: ""; width: 8px; height: 1.1em; background: var(--blue); animation: caret 0.8s steps(2) infinite; }
@keyframes caret { to { opacity: 0; } }

.preview {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -30px rgba(10, 31, 184, 0.45);
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.preview.is-in { opacity: 1; transform: none; }
.preview-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--s3); border-bottom: 1px solid var(--line); }
.preview-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); }
.pv-url { margin-left: var(--s3); font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-body {
  position: relative;
  display: grid;
  align-content: end;
  gap: var(--s2);
  min-height: 300px;
  padding: var(--s5);
  overflow: hidden;
  background: linear-gradient(160deg, #f6f8ff 0%, #e2e7fb 100%);
}
.pv-tag { position: relative; z-index: 1; justify-self: start; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; background: var(--white); color: var(--blue); }
.pv-big { position: relative; z-index: 1; font-size: clamp(48px, 6vw, 96px); font-weight: 500; letter-spacing: -0.065em; line-height: 0.85; overflow-wrap: anywhere; }
.pv-thing { position: relative; z-index: 1; color: var(--ink-2); max-width: 32ch; }
.pv-blob {
  position: absolute;
  right: -8%; top: -18%;
  width: 62%; aspect-ratio: 1;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 34% 30%, #fff 0 6%, #8fa0ff 22%, var(--blue) 58%, var(--blue-deep) 100%);
  box-shadow: inset -20px -30px 60px rgba(0, 0, 40, 0.25);
  animation: blob 9s var(--ease) infinite alternate;
}
.appwin[data-model="GPT"] .pv-blob { border-radius: 28%; background: radial-gradient(circle at 30% 28%, #fff 0 5%, var(--blue) 40%, var(--ink) 100%); }
.appwin[data-model="Gemini"] .pv-blob { background: radial-gradient(circle at 34% 30%, #fff 0 10%, #c9d2ff 40%, #8fa0ff 100%); }
.appwin[data-format="quiet"] .pv-blob { width: 22%; right: 12%; top: 18%; }
.appwin[data-format="sign"] .pv-blob { opacity: 0.25; }
@keyframes blob { to { transform: rotate(40deg) scale(1.06); border-radius: 58% 42% 52% 48% / 44% 56% 46% 54%; } }

.ghost {
  height: 40px;
  padding: 0 var(--s4);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
}
.ghost:hover { color: var(--ink); background: var(--mist); }
.ghost[hidden] { display: none; }
.appwin-foot .row { align-items: center; gap: var(--s2); flex-wrap: nowrap; }
.pill.is-nudge { animation: nudge 1.6s var(--ease) 2; }
@keyframes nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27, 59, 255, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(27, 59, 255, 0); }
}
.is-building #proto-next { pointer-events: none; opacity: 0.5; }

.proto .frow { padding: var(--s4); }
.proto .fname { font-size: clamp(30px, 3.4vw, 54px); }
.flist { border-top: 0; }
.flist li:last-child .frow { border-bottom: 1px solid var(--line); }
.frow {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: baseline;
  gap: var(--s4);
  padding: var(--s5) var(--s4);
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
}
.frow::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.frow:hover, .frow.is-active { color: var(--white); }
.frow:hover::before, .frow.is-active::before { transform: scaleY(1); }
.fi { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.06em; opacity: 0.6; }
.fname {
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  transition: transform 0.6s var(--ease);
}
.frow:hover .fname, .frow.is-active .fname { transform: translateX(var(--s4)); }
.fdesc { font-size: 14px; color: inherit; opacity: 0.7; text-align: right; }

/* ---------- GET (page turns blue via WebGL clear colour) ---------- */
.get { min-height: 100svh; display: grid; padding-top: var(--s10); }
.get-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-width: 0;
  overflow: hidden;
  color: var(--white);
}
.get-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s6) var(--gut);
  align-content: center;
}
.get-grid .label { grid-column: 1 / -1; }
.get-title {
  grid-column: 1 / span 8;
  font-size: clamp(56px, 9.6vw, 168px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.06em;
}
.get-title em { color: var(--blue-soft); }
.get-side {
  grid-column: 9 / -1;
  align-self: end;
  display: grid;
  gap: var(--s5);
  justify-items: start;
}
.get-side p { font-size: var(--t-lead); line-height: 1.32; letter-spacing: -0.02em; color: rgba(255,255,255,.86); max-width: min(28ch, 100%); }
.foot-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.foot-link:hover { text-decoration-color: currentColor; }
.credits {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s4) var(--gut);
  align-items: baseline;
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.credits > .credit-side { grid-column: 1 / span 3; display: grid; gap: var(--s3); align-content: start; }
.credit-model { display: block; line-height: 1.5; text-transform: none; letter-spacing: 0.02em; }
.credit-list {
  grid-column: 4 / span 5;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.credit-list a { color: var(--white); }
.credit-list li:not(:last-child)::after { content: "/"; margin-left: var(--s6); color: rgba(255,255,255,.35); font-weight: 300; }
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  margin-top: var(--s5);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
/* rule break: wordmark bleeds off the page bottom */
.wordmark {
  font-size: clamp(88px, 31vw, 560px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.72;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: -0.12em;
  white-space: nowrap;
  user-select: none;
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0;
  z-index: 50;
  pointer-events: none;
}
.cursor span {
  display: block;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--blue);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.cursor.is-hover span { transform: scale(4); background: rgba(27, 59, 255, 0.18); }
.cursor.is-bunny span { transform: scale(2.4); }
body.is-blue .cursor span { background: var(--white); }
body.is-blue .cursor.is-hover span { background: rgba(255,255,255,.25); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid;
  place-items: end start;
  padding: var(--pad);
  background: var(--blue);
  color: var(--white);
  transition: transform 1.1s var(--ease);
}
.loader-n {
  font-size: clamp(96px, 18vw, 280px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}
.is-ready .loader { transform: translateY(-100%); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.step--accent[data-reveal].is-in { transform: translateY(var(--s8)); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-side { grid-column: 1 / span 7; }
  .formats .sec-head { grid-column: 1 / -1; position: static; margin-bottom: var(--s6); }
  .appwin { grid-column: 1 / -1; }
  .credits > .credit-side, .credit-list { grid-column: 1 / -1; }
  .get-title { grid-column: 1 / -1; }
  .get-side { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header: 64px; }
  .nav { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .hero { padding-top: calc(var(--header) + 40svh); }
  .hero-grid { row-gap: var(--s5); padding-bottom: var(--s6); }
  .display { font-size: clamp(56px, 18vw, 120px); }
  .display .line--off { padding-left: 18%; }
  .hero-side { grid-column: 1 / -1; }
  .hide-s { display: none; }
  .hero-foot { grid-template-columns: auto 1fr auto; }
  .method { padding-block: var(--s9) var(--s8); }
  .step { grid-column: 1 / -1; min-height: 220px; padding: var(--s5); }
  .step--accent, .step--accent[data-reveal].is-in { transform: none; }
  .step--accent:hover { transform: translateY(-8px); }
  .frow { grid-template-columns: 32px 1fr; padding: var(--s4) var(--s2); }
  .fdesc { grid-column: 2; text-align: left; }
  .appwin-brief { grid-template-columns: 1fr; gap: var(--s2); }
  .stepper button { flex-direction: column; gap: 2px; padding: var(--s3) var(--s2); font-size: 13px; }
  .panes { min-height: 0; }
  .pane[data-pane="1"], .pane[data-pane="3"] { padding: var(--s5) var(--s4); }
  .model { grid-template-columns: 1fr; gap: var(--s1); padding: var(--s4); }
  .preview-body { min-height: 240px; }
  .appwin-foot { flex-wrap: wrap; }
  /* thumb zone: primary action spans the width at the bottom */
  .appwin-foot .row { width: 100%; }
  .appwin-foot #proto-next { flex: 1; justify-content: center; }
  .appwin-foot .label { font-size: 11px; }
  .credit-list { gap: var(--s2) var(--s4); }
  .credit-list li:not(:last-child)::after { margin-left: var(--s4); }
  .get { padding-top: var(--s9); }
  .pill { height: 44px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- prototype: render step (CPU / GPU) ---------- */
.pane[data-pane="2"] { gap: var(--s5); padding: var(--s6) var(--s5); }
.render .model { grid-template-columns: 96px 1fr; }
.render .model b { font-family: var(--f-mono); font-size: clamp(22px, 2vw, 30px); letter-spacing: 0; }
.render-note { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-2); }
@media (max-width: 760px) {
  .pane[data-pane="2"] { padding: var(--s5) var(--s4); }
  .render .model { grid-template-columns: 1fr; }
}
