/* Squid Revamp – dark editorial.  Ink ground, one saffron accent. */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/bodoni-moda-latin.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("fonts/bodoni-moda-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2"); }

:root {
  --ink: oklch(0.155 0.03 268);
  --ink-2: oklch(0.2 0.032 268);
  --ink-3: oklch(0.255 0.034 268);
  --ink-4: oklch(0.32 0.035 268);
  --line: oklch(0.98 0.01 268 / 0.11);
  --line-strong: oklch(0.98 0.01 268 / 0.22);
  --text: oklch(0.965 0.008 90);
  --muted: oklch(0.79 0.02 268);
  --faint: oklch(0.66 0.025 268);
  --accent: oklch(0.855 0.172 87);
  --accent-ink: oklch(0.2 0.04 80);
  --accent-soft: oklch(0.855 0.172 87 / 0.14);
  --danger: oklch(0.76 0.15 22);
  --ok: oklch(0.82 0.14 160);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 70% at 85% -10%, oklch(0.27 0.06 268 / 0.55), transparent 60%),
    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='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-result { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.view { display: block; }
.view-result { display: block; }

/* ---------- Typography ---------- */
.display, .section-title, .run-title, .msg h1 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02;
  text-wrap: balance; margin: 0; font-optical-sizing: auto;
}
.display { font-size: clamp(2.7rem, 7.4vw, 6rem); }
.display em, .section-title em, .run-title em, .msg h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.05; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 34em; margin: 0; text-wrap: pretty; }
.lead strong { color: var(--text); font-weight: 600; }

/* ---------- Navigation ---------- */
.nav {
  position: relative; z-index: 5; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--pad); max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto;
}
body.is-result .nav { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.brand-word { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: var(--text); padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; transition: background .25s var(--ease), color .25s, border-color .25s; }
.nav-links .nav-cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
body:not(.on-landing) .nav-links { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font-weight: 650; letter-spacing: -0.005em; line-height: 1.15;
  border-radius: 12px; padding: 14px 22px;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s var(--ease), border-color .25s, opacity .25s;
}
.btn-lg { min-height: 60px; padding: 16px 26px; font-size: 1.06rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 oklch(1 0 0 / 0.35) inset, 0 10px 28px -10px oklch(0.855 0.172 87 / 0.55); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 1px 0 oklch(1 0 0 / 0.35) inset, 0 16px 34px -10px oklch(0.855 0.172 87 / 0.6); }
.btn-accent:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--ink-3); border-color: var(--faint); }
.btn-icon { width: 20px; height: 20px; flex: none; transition: transform .4s var(--ease); }
.btn:hover .btn-icon { transform: translateX(4px); }
.btn[disabled], .btn[aria-busy="true"] { cursor: progress; opacity: .85; transform: none; }
.btn[aria-busy="true"] .btn-icon { display: none; }
.btn[aria-busy="true"]::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.4px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Form ---------- */
.lead-form { display: grid; gap: 14px; width: 100%; max-width: 520px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.field input {
  width: 100%; height: 58px; padding: 0 18px; font: 450 1.06rem var(--sans); color: var(--text);
  background: oklch(0.2 0.032 268 / 0.8); border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color .2s, background .2s, box-shadow .3s var(--ease);
  caret-color: var(--accent);
}
.field input::placeholder { color: var(--faint); opacity: 1; }
.field input:hover { border-color: var(--faint); }
.field input:focus { outline: none; border-color: var(--accent); background: var(--ink-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.form-error { margin: 0; color: var(--danger); font-size: 0.95rem; font-weight: 550; }
.fineprint { margin: 2px 0 0; color: var(--faint); font-size: 0.86rem; line-height: 1.5; max-width: 42ch; }

/* ---------- Hero ---------- */
.hero { max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding: clamp(16px, 3vw, 40px) var(--pad) clamp(48px, 7vw, 96px); }
.hero-head .display { max-width: 12.5em; }
.hero-body { margin-top: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.hero-copy { display: grid; gap: 28px; }

/* Morph device */
.morph { margin: 0; position: relative; }
.morph::before { /* ink pool behind the frame */
  content: ""; position: absolute; inset: -9% -12% -14% -6%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, oklch(0.3 0.07 268 / 0.55), transparent 72%);
  border-radius: 50%;
}
.device {
  position: relative; z-index: 1; background: var(--ink-3); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 0 oklch(1 0 0 / 0.06) inset, 0 40px 80px -30px oklch(0.05 0.03 268 / 0.9), 0 18px 30px -18px oklch(0.05 0.03 268 / 0.8);
}
.device-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: var(--ink-3); border-bottom: 1px solid var(--line); }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-4); }
.device-url { margin-left: 14px; flex: 1; max-width: 320px; height: 24px; line-height: 24px; padding: 0 14px; border-radius: 12px; background: var(--ink); color: var(--faint); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-view { position: relative; aspect-ratio: 960 / 600; overflow: hidden; background: #fff; }
.stage { position: absolute; left: 0; top: 0; width: 960px; height: 600px; transform-origin: 0 0; transform: scale(var(--s, 0.7)); }
.mock { position: absolute; inset: 0; overflow: hidden; }

/* Old, dated site */
.mock-old { background: #c8c8c8 repeating-linear-gradient(45deg, #c8c8c8 0 3px, #bdbdbd 3px 4px); color: #000; font: 11px/1.35 Verdana, Tahoma, Geneva, sans-serif; }
.o-top { position: relative; height: 92px; padding: 10px 16px; background: linear-gradient(#003399, #6699cc); border-bottom: 3px ridge #888; text-align: center; }
.o-title { display: block; font: italic 700 32px/1.1 "Times New Roman", Times, serif; color: #fff; text-shadow: 2px 2px 0 #000066; }
.o-sub { display: block; margin-top: 6px; font: 12px Verdana, sans-serif; color: #ffff99; }
.o-flag { position: absolute; right: 20px; top: 14px; padding: 12px 6px; transform: rotate(12deg); background: #ff0000; color: #ffff00; font: 900 15px Impact, "Arial Black", sans-serif; clip-path: polygon(50% 0, 62% 18%, 85% 8%, 82% 32%, 100% 42%, 82% 56%, 90% 82%, 64% 74%, 50% 100%, 38% 74%, 12% 84%, 20% 58%, 0 44%, 20% 32%, 14% 8%, 38% 18%); animation: blink 1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { color: #fff; background: #cc0000; } }
.o-nav { display: flex; gap: 2px; padding: 4px 6px; background: #d4d0c8; border-bottom: 2px solid #808080; }
.o-nav a { padding: 4px 14px; background: #d4d0c8; border: 2px outset #fff; color: #000099; font: 700 11px Verdana, sans-serif; text-decoration: underline; }
.o-marquee { overflow: hidden; background: #cc0000; color: #ffff00; padding: 4px 0; font: 700 13px "Courier New", monospace; white-space: nowrap; border-bottom: 2px solid #800000; }
.o-marquee span { display: inline-block; animation: marquee 9s linear infinite; padding-left: 100%; }
@keyframes marquee { to { transform: translateX(-100%); } }
.o-cols { display: grid; grid-template-columns: 168px 1fr 150px; gap: 8px; padding: 8px; height: 442px; }
.o-left { background: #e8e4d8; border: 2px inset #fff; padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; }
.o-left b { background: #003399; color: #fff; padding: 2px 4px; font-size: 11px; }
.o-left u { color: #0000ee; font-size: 11px; }
.o-counter { margin-top: 6px; border: 2px inset #fff; background: #000; color: #00ff00; text-align: center; padding: 4px; font: 10px "Courier New", monospace; }
.o-counter span { font-size: 15px; letter-spacing: 2px; }
.o-ie { margin-top: 4px; font-size: 9px; text-align: center; color: #555; border: 1px dotted #555; padding: 3px; }
.o-main { background: #ffffe0; border: 2px inset #fff; padding: 8px 12px; overflow: hidden; }
.o-main .o-h { margin: 0 0 6px; font: 700 22px "Times New Roman", serif; color: #cc0000; text-decoration: underline; }
.o-main p { margin: 0 0 8px; font-size: 11px; text-align: justify; }
.o-row { display: flex; gap: 10px; margin: 8px 0; }
.o-pic { width: 120px; height: 86px; flex: none; border: 3px outset #fff; background: linear-gradient(135deg, #7a9cc6, #b9a37a 55%, #6b7f6a); display: grid; place-items: center; color: #fff; font: 700 11px Verdana; filter: contrast(0.8) saturate(1.4); }
.o-table { border-collapse: collapse; font-size: 11px; flex: 1; }
.o-table td { border: 1px solid #000; padding: 3px 6px; background: #fff; }
.o-comic { font: 700 22px "Comic Sans MS", "Comic Sans", cursive !important; color: #ff6600; text-align: center !important; text-shadow: 1px 1px 0 #000; }
.o-small { font-size: 9px !important; color: #555; }
.o-right { display: flex; flex-direction: column; gap: 8px; }
.o-banner { height: 112px; display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(90deg, #ffcc00 0 10px, #ff9900 10px 20px); border: 3px double #000; font: 900 15px Impact, "Arial Black", sans-serif; color: #cc0000; }
.o-btns { display: grid; gap: 4px; }
.o-btns span { padding: 3px; text-align: center; background: #d4d0c8; border: 2px outset #fff; font-size: 10px; color: #000099; text-decoration: underline; }
.o-gif { margin-top: auto; padding: 14px 6px; text-align: center; background: #000; color: #ffff00; font: 700 14px "Courier New", monospace; border: 2px solid #ff0000; animation: blink 1.2s steps(2, jump-none) infinite; }

/* New, polished site */
.mock-new { background: #f7f4ee; color: #12141e; font-family: var(--sans); clip-path: inset(0 100% 0 0); animation: reveal var(--loop, 11s) infinite linear; }
.n-head { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 56px; }
.n-logo { font: 600 31px/1 var(--serif); letter-spacing: -0.02em; color: #1c3fb8; }
.n-head nav { display: flex; gap: 36px; font-size: 15px; font-weight: 500; color: #4b5062; }
.n-btn { padding: 11px 22px; border-radius: 999px; font-size: 15px; font-weight: 650; border: 1.5px solid #12141e; }
.n-btn--solid { background: #1c3fb8; border-color: #1c3fb8; color: #fff; padding: 15px 28px; font-size: 16px; }
.n-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 18px 56px 0; height: 346px; }
.n-copy { padding-top: 20px; }
.n-copy .n-h { margin: 0; font: 500 56px/1.02 var(--serif); letter-spacing: -0.025em; }
.n-copy .n-h em { color: #1c3fb8; font-style: italic; }
.n-copy p { margin: 20px 0 0; font-size: 18px; line-height: 1.5; color: #4b5062; max-width: 22em; }
.n-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.n-link { font-weight: 600; font-size: 15px; color: #12141e; border-bottom: 1.5px solid #12141e; padding-bottom: 2px; }
.n-art { position: relative; border-radius: 28px 28px 0 0; overflow: hidden; background: linear-gradient(160deg, #2a56e0, #0d1f66 78%); }
.n-art i { position: absolute; border-radius: 50%; }
.n-c1 { width: 330px; height: 330px; right: -60px; top: 46px; background: radial-gradient(circle at 35% 30%, #6f93ff, #1c3fb8 70%); }
.n-c2 { width: 150px; height: 150px; left: 34px; top: 24px; border: 2px solid oklch(1 0 0 / 0.35); }
.n-c3 { width: 70px; height: 70px; left: 118px; bottom: 56px; background: #ffc61a; }
.n-chip { position: absolute; left: 24px; bottom: 22px; padding: 11px 16px; border-radius: 12px; background: #fff; color: #12141e; font-size: 14px; font-weight: 650; box-shadow: 0 12px 24px -10px rgba(0,0,0,.4); }
.n-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 56px; border-top: 1.5px solid #12141e; height: 176px; }
.n-services div { padding: 22px 28px 0 0; display: grid; align-content: start; gap: 6px; }
.n-services div + div { padding-left: 28px; border-left: 1px solid #d9d4c8; }
.n-services b { font: 500 25px var(--serif); }
.n-services span { font-size: 15px; color: #4b5062; line-height: 1.45; }

/* Scan line + tags */
.scan { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--accent); opacity: 0; z-index: 3; animation: scan var(--loop, 11s) infinite linear; }
.scan::before { content: ""; position: absolute; right: 3px; top: 0; bottom: 0; width: 90px; background: linear-gradient(90deg, transparent, oklch(0.855 0.172 87 / 0.22)); }
.tag { position: absolute; left: 20px; bottom: 18px; z-index: 4; padding: 8px 16px; border-radius: 999px; font: 700 15px var(--sans); letter-spacing: 0.01em; opacity: 0; }
.tag-old { background: #000; color: #fff; animation: tag-old var(--loop, 11s) infinite linear; }
.tag-new { background: var(--accent); color: var(--accent-ink); animation: tag-new var(--loop, 11s) infinite linear; }

@keyframes reveal {
  0%, 27.9% { clip-path: inset(0 100% 0 0); animation-timing-function: var(--ease-io); }
  28% { clip-path: inset(0 100% 0 0); animation-timing-function: var(--ease-io); }
  46%, 77.9% { clip-path: inset(0 0 0 0); }
  78% { clip-path: inset(0 0 0 0); animation-timing-function: var(--ease-io); }
  96%, 100% { clip-path: inset(0 0 0 100%); }
}
@keyframes scan {
  0%, 27.9% { left: 0; opacity: 0; }
  28% { left: 0%; opacity: 1; animation-timing-function: var(--ease-io); }
  46% { left: calc(100% - 3px); opacity: 1; }
  46.5%, 77.5% { left: calc(100% - 3px); opacity: 0; }
  77.6% { left: 0; opacity: 0; }
  78% { left: 0%; opacity: 1; animation-timing-function: var(--ease-io); }
  96% { left: calc(100% - 3px); opacity: 1; }
  96.5%, 100% { left: calc(100% - 3px); opacity: 0; }
}
@keyframes tag-old { 0%, 24% { opacity: 1; } 28%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes tag-new { 0%, 46% { opacity: 0; } 50%, 74% { opacity: 1; } 78%, 100% { opacity: 0; } }

/* ---------- Points & steps ---------- */
.points { border-block: 1px solid var(--line); background: oklch(0.175 0.03 268 / 0.6); }
.points-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-block: 0; }
.points article { padding: clamp(28px, 4vw, 52px) clamp(0px, 2.4vw, 36px) clamp(28px, 4vw, 52px) 0; }
.points article + article { padding-left: clamp(0px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.points h2 { margin: 0 0 12px; font: 500 clamp(1.5rem, 2.2vw, 2rem)/1.12 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.points p { margin: 0; color: var(--muted); max-width: 30ch; }

.steps { padding-block: clamp(64px, 10vw, 140px); }
.steps-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.steps .section-title { position: sticky; top: 40px; }
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps-list li { position: relative; display: grid; grid-template-columns: 76px 1fr; column-gap: 12px; padding: 30px 0 34px; border-top: 1px solid var(--line-strong); }
.steps-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.step-n { grid-row: span 2; font: italic 500 4.4rem/0.9 var(--serif); color: var(--accent); }
.steps-list h3 { margin: 0 0 8px; font: 650 clamp(1.25rem, 1.8vw, 1.6rem)/1.2 var(--sans); letter-spacing: -0.015em; text-wrap: balance; }
.steps-list p { margin: 0; color: var(--muted); max-width: 40ch; }

.closing { padding: clamp(56px, 9vw, 120px) 0; background: linear-gradient(180deg, transparent, oklch(0.2 0.045 268 / 0.7)); border-top: 1px solid var(--line); }
.closing-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.foot { padding: 32px 0 44px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.9rem; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand-sm .brand-word { font-size: 1.3rem; }
.brand-sm .brand-mark { width: 22px; height: 22px; }

/* Entrance: one authored moment on the landing */
.on-landing .hero-head .display { animation: rise 1.1s var(--ease) both; }
.on-landing .hero-copy { animation: rise 1.1s .15s var(--ease) both; }
.on-landing .morph { animation: rise 1.3s .3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ======================================================================
   RUNNING VIEW
   ====================================================================== */
.run { max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding: 8px var(--pad) 80px; }
.run-head { display: grid; gap: 14px; margin-bottom: 28px; }
.run-url { margin: 0; color: var(--faint); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.run-url b { color: var(--muted); font-weight: 600; word-break: break-all; }
.run-title { font-size: clamp(2rem, 4.8vw, 4rem); max-width: 20ch; min-height: 2.04em; display: flex; align-items: flex-end; }
.run-title > span { display: block; animation: swap .7s var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
.run-meta { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 0.95rem; }
.timer { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--text); font-size: 1.05rem; letter-spacing: 0.02em; padding: 5px 12px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); }
.conn { color: var(--accent); }

/* Rail */
.rail { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--ink-3); }
.rail-fill { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--accent); clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); transition: clip-path 1.2s var(--ease); }
.rail li { position: relative; padding-top: 36px; font-size: 0.9rem; color: var(--faint); transition: color .4s; }
.rail li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 2px solid var(--ink-4); transition: background .4s, border-color .4s; }
.rail li.is-done { color: var(--muted); }
.rail li.is-done::before { background: var(--accent); border-color: var(--accent); }
.rail li.is-done::after { content: ""; position: absolute; left: 5px; top: 9px; width: 10px; height: 10px; background: var(--accent-ink); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m5 12.5 4.5 4.5L19 7.5' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m5 12.5 4.5 4.5L19 7.5' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>") center/contain no-repeat; }
.rail li.is-active { color: var(--text); font-weight: 650; }
.rail li.is-active::before { border-color: var(--accent); background: var(--ink); }
.rail li.is-active::after { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.run-done .rail-fill { --p: 100%; }

.run-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 3vw, 48px); align-items: start; }
.run-main { display: grid; gap: 20px; min-width: 0; }

/* Exhibits */
.ex-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.ex { position: relative; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); padding: 16px; min-width: 0; overflow: hidden; }
.ex-head { margin: 0 0 12px; font-size: 0.85rem; font-weight: 650; color: var(--muted); letter-spacing: 0.01em; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ex-head small { font-weight: 450; color: var(--faint); font-size: 0.82rem; text-align: right; }
.ex-orig { grid-row: span 2; display: flex; flex-direction: column; }
.ex-empty { flex: 1; min-height: 120px; display: grid; place-items: center; text-align: center; padding: 18px; border-radius: 10px; border: 1px dashed var(--line-strong); color: var(--faint); font-size: 0.9rem; position: relative; overflow: hidden; }
.ex-empty::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, oklch(1 0 0 / 0.05) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 2.6s ease-in-out infinite; }
@keyframes sheen { to { transform: translateX(100%); } }
.ex.is-filled .ex-empty { display: none; }

.shot { position: relative; border-radius: 10px; overflow: hidden; background: var(--ink); border: 1px solid var(--line-strong); animation: unveil .9s var(--ease) both; }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); opacity: 0; } to { clip-path: inset(0); opacity: 1; } }
.ex-orig .shot-wrap { flex: 1; min-height: 280px; }
.shot-win { position: absolute; inset: 0; container-type: size; }
.shot-win img { width: 100%; height: auto; position: absolute; left: 0; top: 0; animation: pan 34s var(--ease-io) infinite alternate; will-change: transform; }
@keyframes pan { 0%, 4% { transform: translateY(0); } 96%, 100% { transform: translateY(min(0px, calc(100cqh - 100%))); } }
.shot-phone { position: absolute; right: 16px; bottom: 16px; width: 22%; aspect-ratio: 390 / 760; border-radius: 12px; border: 3px solid var(--ink-4); box-shadow: 0 18px 30px -10px oklch(0.05 0.03 268 / 0.8); animation: unveil .9s .25s var(--ease) both; background: var(--ink); }
.shot-phone img { width: 100%; height: auto; }
.ex-orig .shot-wrap { position: relative; }
.scanline { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); z-index: 2; opacity: 0; animation: vscan 3.2s var(--ease-io) infinite; box-shadow: 0 0 22px 4px oklch(0.855 0.172 87 / 0.4); }
.is-reading .scanline { opacity: 1; }
@keyframes vscan { from { top: 0; } to { top: 100%; } }

/* Brand */
.brand-row { display: grid; gap: 14px; }
.logo-tile { height: 92px; display: grid; place-items: center; padding: 14px 22px; border-radius: 10px; background: oklch(0.96 0.006 90); animation: unveil .9s var(--ease) both; }
.logo-tile img { max-height: 100%; max-width: 100%; object-fit: contain; }
.logo-tile.is-none { background: var(--ink-3); color: var(--faint); font-size: .85rem; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { display: grid; gap: 6px; justify-items: start; animation: pop .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
.sw i { display: block; width: 46px; height: 46px; border-radius: 50%; background: var(--c); border: 2px solid oklch(1 0 0 / 0.18); }
.sw span { font-size: 0.74rem; color: var(--faint); font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: 0.03em; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.site-title { margin: 0; font-size: .92rem; color: var(--muted); }

/* Research */
.pages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.pages li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); animation: slide .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); min-width: 0; }
.pages li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-1px); }
.pages span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes slide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* Design */
.ex-design { grid-column: 1 / -1; }
.design-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.concept-wrap { animation: slide .8s var(--ease) both; min-width: 0; }
.concept { margin: 0; font: italic 500 clamp(1.2rem, 1.7vw, 1.5rem)/1.25 var(--serif); letter-spacing: -0.01em; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.concept .hy { font-family: var(--sans); font-style: normal; font-weight: 400; margin: 0 .04em; opacity: .7; }
.concept-rest { margin: 10px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.palette { display: flex; border-radius: 10px; overflow: hidden; height: 54px; border: 1px solid var(--line-strong); }
.palette i { flex: 1; background: var(--c); animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.fonts { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; }
.fonts dt { color: var(--faint); }
.fonts dd { margin: 0; font-weight: 600; }

/* Previews */
.ex-previews { grid-column: 1 / -1; }
.pv-row { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.pv { flex: none; display: flex; align-items: flex-end; gap: 10px; animation: unveil 1s var(--ease) both; }
.pv figure { margin: 0; }
.pv .shot { width: min(300px, 58vw); aspect-ratio: 16 / 10; }
.pv .shot.m { width: 82px; aspect-ratio: 390 / 760; }
.pv img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pv figcaption { margin-top: 8px; font-size: .8rem; color: var(--faint); }

/* Ticker */
.ticker { border-radius: 16px; border: 1px solid var(--line); background: oklch(0.175 0.03 268 / 0.7); padding: 16px 20px; display: flex; gap: 16px; align-items: flex-start; min-height: 112px; }
.ticker-dot { flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--accent); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.5); opacity: .5; } }
.ticker ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; flex: 1; }
.ticker li { color: var(--faint); font-size: .95rem; line-height: 1.4; opacity: .55; animation: slide .6s var(--ease) both; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker li:last-child { color: var(--text); opacity: 1; font-size: 1.05rem; }
.ticker li:nth-last-child(2) { opacity: .8; }
.ticker-hint { margin: 10px 0 0; color: var(--faint); font-size: .86rem; }

/* Code panel */
.code-panel { position: sticky; top: 24px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line-strong); padding: 28px; display: grid; gap: 18px; transition: border-color .5s, box-shadow .6s var(--ease); }
.code-panel.is-urgent { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 30px 60px -30px oklch(0.855 0.172 87 / 0.35); }
.code-panel h2 { margin: 0; font: 500 1.7rem/1.1 var(--serif); letter-spacing: -0.015em; }
.code-panel p { margin: 0; color: var(--muted); font-size: .96rem; }
.code-panel p b { color: var(--text); font-weight: 650; overflow-wrap: anywhere; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-boxes input { width: 100%; min-width: 0; height: 68px; text-align: center; font: 500 2rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--text); background: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0; caret-color: var(--accent); transition: border-color .2s, box-shadow .3s var(--ease), background .2s; }
.code-boxes input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--ink-3); }
.code-boxes input:not(:placeholder-shown) { border-color: var(--faint); }
.code-boxes.is-error input { border-color: var(--danger); animation: shake .45s var(--ease-io); }
.code-boxes.is-busy input { opacity: .6; }
@keyframes shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.code-msg { min-height: 1.4em; font-size: .94rem; font-weight: 550; margin: 0; }
.code-msg.is-error { color: var(--danger); }
.code-msg.is-ok { color: var(--ok); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--faint); font-weight: 600; }
.link-btn:hover { text-decoration-color: var(--accent); color: var(--accent); }
.link-btn[disabled] { opacity: .5; cursor: default; text-decoration: none; }
.code-foot { font-size: .88rem; color: var(--faint); display: grid; gap: 4px; }
.code-ok { display: grid; gap: 12px; justify-items: start; }
.code-ok .tick { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--ink); animation: pop .7s var(--ease) both; }
.code-ok .tick svg { width: 24px; height: 24px; }

/* ======================================================================
   RESULT VIEW
   ====================================================================== */
.res { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--ink); }
.res-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: oklch(0.175 0.03 268 / 0.9); }
.res-id { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 0 1 230px; }
.res-id .brand-mark { width: 26px; height: 26px; }
.res-url { min-width: 0; color: var(--muted); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 14px; border-left: 1px solid var(--line-strong); }
.res-controls { display: flex; gap: 12px; align-items: center; flex: none; margin-inline: auto; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--muted); transition: background .25s var(--ease), color .2s; white-space: nowrap; }
.seg button svg { width: 18px; height: 18px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--ink-4); color: var(--text); box-shadow: 0 1px 0 oklch(1 0 0 / .08) inset; }
.res-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex: none; }
.res-actions .btn { padding: 11px 18px; font-size: .92rem; border-radius: 10px; white-space: nowrap; }
.res-actions .btn svg { width: 18px; height: 18px; }
.res-actions .btn-accent { font-size: .95rem; }
.thanks-pill { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 11px 18px; border-radius: 10px; background: var(--accent-soft); border: 1px solid oklch(0.855 0.172 87 / 0.5); color: var(--accent); font-weight: 650; font-size: .92rem; animation: pop .6s var(--ease) both; }
.thanks-pill svg { width: 18px; height: 18px; flex: none; }
.res-cta-bottom { display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: oklch(0.175 0.03 268 / 0.96); }
.res-cta-bottom .btn, .res-cta-bottom .thanks-pill { width: 100%; justify-content: center; }

.canvas { position: relative; overflow: auto; min-height: 0; background-color: var(--ink); background-image: radial-gradient(80% 60% at 50% 0, oklch(0.25 0.05 268 / 0.5), transparent 70%); }
.canvas.is-fit { overflow: hidden; display: grid; place-items: center; }
.frame-wrap { position: relative; }
.win { position: absolute; left: 0; top: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 50px 90px -40px oklch(0.04 0.03 268 / 0.95), 0 0 0 1px var(--line-strong); }
.win-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--ink-3); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); }
.win-bar span { margin-left: 12px; flex: 1; max-width: 360px; height: 22px; line-height: 22px; padding: 0 12px; border-radius: 11px; background: var(--ink); color: var(--faint); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-view { position: relative; overflow: hidden; background: #fff; }
.win-view iframe, .phone-content iframe { position: absolute; left: 0; top: 0; border: 0; background: #fff; transform-origin: 0 0; }
.phone { position: absolute; left: 0; top: 0; padding: 12px; border-radius: 54px; background: #0a0b12; box-shadow: 0 0 0 2px var(--ink-4), 0 50px 90px -40px oklch(0.04 0.03 268 / 0.95); transform-origin: 0 0; }
.phone.no-notch::before { display: none; }
.phone-view { position: relative; display: flex; flex-direction: column; width: 390px; height: 864px; overflow: hidden; border-radius: 42px; background: #0a0b12; }
.phone-status { flex: none; height: 47px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 28px 8px 38px; color: #fff; font: 600 15px/1 var(--sans); letter-spacing: -0.01em; }
.phone-status span { display: flex; align-items: center; gap: 6px; }
.phone-status svg { height: 12px; width: auto; }
.phone-content { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.phone-home { flex: none; height: 20px; display: grid; place-items: center; }
.phone-home i { width: 134px; height: 5px; border-radius: 3px; background: #fff; opacity: .8; }
.phone.is-bare .phone-status, .phone.is-bare .phone-home { display: none; }
.phone.is-bare .phone-view { height: 844px; }
.phone::before { content: ""; position: absolute; left: 50%; top: 22px; width: 104px; height: 28px; margin-left: -52px; border-radius: 16px; background: #0a0b12; z-index: 2; }
.frame-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: .95rem; background: var(--ink-2); z-index: 1; transition: opacity .5s; }
.frame-loading.is-gone { opacity: 0; pointer-events: none; }

/* Before / after */
.ba { margin: 0 auto; padding: 24px 24px 80px; display: flex; justify-content: center; }
.ba-box { position: relative; width: min(100%, var(--ba-w, 1180px)); user-select: none; -webkit-user-select: none; border-radius: 6px; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px -40px oklch(0.04 0.03 268 / 0.9); }
.ba-img { display: block; width: 100%; height: auto; pointer-events: none; }
.ba-before { position: absolute; left: 0; top: 0; width: 100%; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-after { background: #fff; }
.ba-label { position: sticky; top: 14px; z-index: 3; height: 0; }
.ba-label span { position: absolute; top: 0; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; letter-spacing: .01em; }
.ba-label .l { left: 14px; background: oklch(0.12 0.03 268 / 0.9); color: var(--text); }
.ba-label .r { right: 14px; background: var(--accent); color: var(--accent-ink); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 44px; margin-left: -22px; z-index: 4; cursor: ew-resize; outline: none; touch-action: pan-y; }
.ba-handle::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--accent); box-shadow: 0 0 0 1px oklch(0.15 0.03 268 / .4); }
.ba-grip { position: sticky; top: calc(50vh - 120px); display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; transform: translateX(0); border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -6px oklch(0.05 0.03 268 / 0.8); touch-action: none; transition: transform .3s var(--ease); }
.ba-handle:hover .ba-grip, .ba-handle.is-drag .ba-grip { transform: scale(1.12); }
.ba-handle:focus-visible .ba-grip { outline: 3px solid var(--text); outline-offset: 3px; }
.ba-grip svg { width: 26px; height: 26px; }
.ba-grip svg:first-child { transform: rotate(180deg); margin-right: -8px; }
.ba-grip-in { display: flex; align-items: center; }
.ba-hint { position: fixed; left: 50%; bottom: var(--hint-b, 18px); white-space: nowrap; transform: translateX(-50%); z-index: 6; padding: 8px 16px; border-radius: 999px; background: oklch(0.12 0.03 268 / 0.92); border: 1px solid var(--line-strong); font-size: .85rem; color: var(--muted); pointer-events: none; transition: opacity .6s; }

/* Thanks card */
.thanks-card { position: fixed; left: 50%; bottom: 28px; z-index: 20; width: min(92vw, 520px); transform: translateX(-50%); padding: 22px 26px; border-radius: 18px; background: var(--ink-3); border: 1px solid oklch(0.855 0.172 87 / 0.55); box-shadow: 0 30px 70px -20px oklch(0.03 0.03 268 / 0.95); animation: rise-card .8s var(--ease) both; display: flex; gap: 18px; align-items: center; }
@keyframes rise-card { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.thanks-card .tick { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.thanks-card .tick svg { width: 24px; height: 24px; }
.thanks-card strong { display: block; font: 500 1.55rem/1.1 var(--serif); margin-bottom: 4px; }
.thanks-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.thanks-card button { position: absolute; top: 6px; right: 10px; border: 0; background: none; color: var(--faint); font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 6px; }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 30; padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--ink); font-weight: 650; font-size: .92rem; animation: toast .35s var(--ease) both; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Messages */
.msg { max-width: 760px; margin: 0 auto; padding: clamp(40px, 9vh, 120px) var(--pad); display: grid; gap: 24px; justify-items: start; }
.msg h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); }
.msg p { margin: 0; color: var(--muted); font-size: 1.12rem; max-width: 36em; }
.msg .btn { margin-top: 6px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ink-4); border-top-color: var(--accent); animation: spin .9s linear infinite; }

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 1180px) {
  .run-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1280px) {
  .res-id { flex: 1 1 0; order: 1; }
  .res-actions { order: 2; }
  .res-controls { order: 3; flex-basis: 100%; justify-content: center; margin-inline: 0; }
  .res-actions .cta-top { display: none; }
  .res-cta-bottom { display: block; }
  .res-cta-bottom .thanks-pill { white-space: normal; }
  .ba-hint { --hint-b: 92px; }
}
@media (max-width: 980px) {
  .hero-body { grid-template-columns: 1fr; }
  .lead-form { max-width: 560px; }
  .morph { margin-top: 12px; }
  .points-grid { grid-template-columns: 1fr; }
  .points article, .points article + article { padding: 26px 0; border-left: 0; }
  .points article + article { border-top: 1px solid var(--line); }
  .points p { max-width: 44ch; }
  .steps-grid, .closing-grid { grid-template-columns: 1fr; }
  .steps .section-title { position: static; }
  .run-grid { grid-template-columns: 1fr; }
  .code-panel { position: static; order: -1; }
  .ex-grid { grid-template-columns: 1fr; }
  .ex-orig { grid-row: auto; }
  .ex-orig .shot-wrap { flex: none; aspect-ratio: 16 / 12; min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --nav-h: 64px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { padding: 8px 14px; font-size: .88rem; }
  .brand-word { font-size: 1.5rem; }
  .device-bar { height: 32px; padding: 0 12px; }
  .device-bar i { width: 8px; height: 8px; }
  .device-url { height: 20px; line-height: 20px; margin-left: 8px; font-size: .7rem; }
  .steps-list li { grid-template-columns: 54px 1fr; }
  .step-n { font-size: 3.2rem; }
  .rail { grid-template-columns: repeat(6, 1fr); }
  .rail li { font-size: 0; padding-top: 30px; }
  .rail li.is-active { font-size: 0; }
  .rail-label { display: block; margin: -4px 0 18px; font-weight: 650; color: var(--text); font-size: .9rem; }
  .code-panel { padding: 22px; }
  .code-boxes { gap: 6px; }
  .code-boxes input { height: 60px; font-size: 1.7rem; border-radius: 10px; }
  .design-body { grid-template-columns: 1fr; }
  .run-title { min-height: 0; }
  .res-bar { padding: 10px 12px; }
  .res-url { padding-left: 10px; }
  .seg button { padding: 8px 11px; font-size: .86rem; }
  .seg button svg { display: none; }
  .res-controls { gap: 8px; }
  .res-cta-bottom .btn { font-size: .9rem; padding: 14px 10px; }
  .res-actions .btn-copy span { display: none; }
  .ba { padding: 12px 8px 60px; }
  .thanks-card { bottom: 84px; padding: 18px; }
}
@media (min-width: 641px) { .rail-label { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mock-new { clip-path: inset(0 50% 0 0) !important; }
  .scan { left: 50% !important; opacity: 1 !important; }
  .scan::before { display: none; }
  .tag-old, .tag-new { opacity: 0 !important; }
  .o-marquee span { transform: none !important; padding-left: 8px; }
  .shot-win img { animation: none !important; }
  .scanline, .ex-empty::after { display: none; }
  .rail li.is-active::after { display: none; }
}

.kw { margin-right: -0.13em; }

[tabindex="-1"]:focus { outline: none; }
.ticker { margin-bottom: 28px; }
