/* THAT LAB · landing page. Studio paper, black ink, THAT red and the square. Gotham everywhere. */

:root {
  --bg: #efece8;
  --bg-2: #e6e2dd;
  --white: #fbfaf8;
  --ink: #0e0d0d;
  --ink-2: #1a1818;
  --red: #ED2B36;
  --muted: #5f5a58;
  --line: rgba(14, 13, 13, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);

  --font: "gotham", "Gotham", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 3.4vw, 52px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; font-weight: 400; overflow-x: clip; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
.red { color: var(--red); }
::selection { background: var(--red); color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip-link:focus { top: 16px; }

.label { display: inline-flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 22px; }
.label::before { content: ""; width: 10px; height: 10px; background: var(--red); }
.label-ink::before { background: var(--ink); }
.big-title { font-weight: 900; font-size: clamp(3rem, 1rem + 8vw, 9.5rem); line-height: 0.88; letter-spacing: -0.055em; }

/* ---------- Intro ---------- */
.intro-layer { display: none; } /* not .intro: <html> carries that class during the intro */
html.intro .intro-layer { display: grid; place-items: center; position: fixed; inset: 0; z-index: 95; background: var(--bg); pointer-events: none; }
.intro-square { width: 24px; height: 24px; background: var(--red); transform: scale(0); }
.intro-count { position: absolute; left: var(--gutter); bottom: var(--gutter); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
html.intro.intro-go .intro-square { transform: scale(110); transition: transform 650ms var(--ease-io); }
html.intro.intro-out .intro-layer { clip-path: inset(0 0 100% 0); transition: clip-path 600ms var(--ease-io); }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  html.motion .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
    width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--red); opacity: 0;
    transition: width 300ms var(--ease-out), height 300ms var(--ease-out), margin 300ms var(--ease-out), background-color 200ms;
  }
  html.motion .cursor.is-on { opacity: 1; }
  html.motion .cursor.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
  html.motion .cursor.is-grab { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: transparent; box-shadow: inset 0 0 0 2px var(--red); }
  .cursor-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity 150ms; }
  .cursor.is-big .cursor-label { opacity: 1; }
}

/* ---------- Header ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); pointer-events: none; }
.bar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--bg); padding: 8px 12px 8px 8px; }
.brand img { display: block; height: 20px; width: auto; }
.brand-square { width: 20px; height: 20px; background: var(--red); }
.brand-word { font-weight: 300; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1; }
.brand-word b { font-weight: 800; }
.nav-list { display: flex; gap: 4px; margin: 0; padding: 4px; list-style: none; background: var(--ink); }
.nav-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; color: var(--white); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: background-color 200ms, color 200ms; }
.nav-list a:hover { background: var(--ink-2); }
.nav-list .nav-cta { background: var(--red); color: var(--ink); font-weight: 700; }
.nav-list .nav-cta:hover { background: var(--white); }
.live-dot { width: 7px; height: 7px; background: var(--ink); }
html.motion .live-dot { animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
@media (max-width: 760px) { .nav-wide { display: none; } }

/* ---------- 1. Hero + the machine ---------- */
main { position: relative; }
.hero { position: relative; min-height: 100svh; padding: 110px var(--gutter) 0; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; pointer-events: none; }
.kicker { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.kicker span:first-child::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--red); margin-right: 10px; vertical-align: -1px; }
.hero-title { font-weight: 900; font-size: clamp(3.4rem, 0.8rem + 11.4vw, 13.5rem); line-height: 0.86; letter-spacing: -0.06em; }
/* The headline is the biggest paint on the page, so it shows at once (no reveal). Lines never wrap, so the web font
   arriving late cannot reflow it: two lines on wide screens, one word per line on phones. */
.hero-title .line { display: block; white-space: nowrap; }
@media (max-width: 760px) {
  .hero-title { font-size: 15.5vw; line-height: 0.88; }
  .hero-title .line > span { display: block; }
}
/* the lead sits under the headline on every screen; the machine goes on the right, under the headline too */
.hero-lead { margin-top: 26px; max-width: 32ch; font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem); line-height: 1.45; }
.hero { min-height: 100svh; } /* machine.js makes it taller when the words, the machine and the card floor need more room */
@media (max-width: 760px) {
  .hero { min-height: 100svh; }
  .viz-version { transform: scale(0.7); }
}

.playground { position: absolute; inset: 0; z-index: 2; }
.machine, .playground-ui, .playground-hint { left: 0; top: 0; }
/* nothing in the machine area takes part in layout until machine.js has placed it, so it appears in place
   instead of moving there (a move would count as a layout shift) */
.playground:not(.is-placed) .machine, .playground:not(.is-placed) .playground-ui, .playground:not(.is-placed) .playground-hint { display: none; }
.card {
  position: absolute; left: 0; top: 0; z-index: 3; touch-action: pan-y; /* a vertical swipe still scrolls the page on phones */ user-select: none; -webkit-user-select: none; cursor: grab;
  display: flex; flex-direction: column; justify-content: space-between; padding: 12px;
  background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 18px 30px -18px rgba(0,0,0,0.45); will-change: transform;
}
.card:active { cursor: grabbing; }
.card-icon { display: block; width: 30px; height: 30px; color: var(--ink); }
.card-icon svg { display: block; width: 100%; height: 100%; }
.card.is-out .card-icon { color: var(--white); }
.card.is-small .card-icon { width: 20px; height: 20px; }
.card-ext { font-weight: 900; font-size: 1.75rem; line-height: 0.9; letter-spacing: -0.04em; }
.card-name { font-size: 0.6875rem; line-height: 1.3; color: var(--muted); word-break: break-all; }
.card-bar { height: 6px; background: var(--ink); }
.card[data-kind="indd"] .card-bar { background: #d1367a; }
.card[data-kind="mov"] .card-bar { background: #4a3cd6; }
.card[data-kind="srt"] .card-bar { background: #0f9d76; }
.card[data-kind="jpg"] .card-bar { background: #d98b10; }
.card[data-kind="key"] .card-bar { background: #2d7fe0; }
.card[data-kind="docx"] .card-bar { background: #2c5aa8; }
.card.is-out { background: var(--ink); color: var(--white); }
.card.is-out .card-name { color: #b9b3b0; }
.card.is-out .card-bar { background: var(--red); }
.card.is-out::after { content: "Done"; position: absolute; top: 10px; right: 10px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--red); color: var(--ink); padding: 3px 6px; }
.card.is-small .card-ext { font-size: 1.125rem; }
.card.is-small .card-name { font-size: 0.5625rem; }
.card.is-small::after { display: none; }
.card.is-eaten { transition: transform 520ms var(--ease-io), opacity 520ms; opacity: 0; }

.machine {
  position: absolute; z-index: 2; background: var(--red); color: var(--ink);
  display: grid; grid-template-rows: auto 1fr auto; padding: 14px; overflow: hidden;
  box-shadow: 0 40px 60px -30px rgba(237, 43, 54, 0.6);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: box-shadow 300ms, outline-color 200ms;
  outline: 3px solid transparent; outline-offset: 8px;
}
.machine-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; position: relative; z-index: 1; }
.machine-state { grid-row: 3; font-size: 0.875rem; font-weight: 700; line-height: 1.2; position: relative; z-index: 1; max-width: 16ch; }
.machine-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); }
.machine-grid i { background: var(--ink); opacity: 0; }
.machine.is-busy { box-shadow: 0 40px 90px -20px rgba(237, 43, 54, 0.95); }
.machine.is-hot { outline-color: var(--ink); }
.playground-ui { position: absolute; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 230px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.feed { font: 700 0.875rem/1 var(--font); letter-spacing: 0.04em; border: 0; min-height: 44px; padding: 0 18px; background: var(--ink); color: var(--white); cursor: pointer; }
.feed:hover { background: var(--red); color: var(--ink); }
.jobs { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.jobs-n { font-weight: 900; font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.playground-hint { position: absolute; z-index: 1; transform: translateX(-100%); white-space: nowrap; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
html:not(.motion) .playground-hint { display: none; }

/* ---------- 2. Statement ---------- */
.statement { padding: clamp(120px, 22vh, 240px) var(--gutter); }
.statement-text { font-weight: 800; font-size: clamp(2rem, 0.8rem + 4.6vw, 5.6rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 17ch; }
.statement-text mark { background: none; color: var(--red); }
html.motion .statement-text .w { opacity: 0.2; transition: opacity 200ms linear; }
html.motion .statement-text .w.on { opacity: 1; }

/* ---------- 3. Solutions: horizontal run ---------- */
.solutions { background: var(--ink); color: var(--white); }
.solutions-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; gap: 4vw; padding: 90px 0 40px var(--gutter); }
.solutions-head { flex: none; width: min(30vw, 420px); align-self: stretch; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; background: var(--ink); box-shadow: 4vw 0 0 var(--ink), -8vw 0 0 var(--ink); } /* panels slide under it */
.solutions-title { font-weight: 900; font-size: clamp(2.4rem, 1rem + 3.4vw, 4.6rem); line-height: 0.92; letter-spacing: -0.05em; }
.solutions-progress { margin-top: 40px; height: 2px; background: var(--line-dark); width: 70%; }
.solutions-progress i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.solutions-track { display: flex; gap: 20px; margin: 0; padding: 0 var(--gutter) 0 0; list-style: none; will-change: transform; }
.panel { flex: none; width: clamp(300px, 34vw, 520px); height: min(72svh, 640px); background: var(--ink-2); border: 1px solid var(--line-dark); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: border-color 300ms; }
.panel-no { font-size: 0.8125rem; font-weight: 700; color: #ff5c65; letter-spacing: 0.1em; } /* lighter red: small text on black needs 4.5:1 */
.panel h3 { font-weight: 900; font-size: clamp(2.6rem, 1.4rem + 3vw, 5rem); line-height: 0.9; letter-spacing: -0.05em; margin-top: auto; }
.panel p { color: #cfc9c6; max-width: 34ch; }
.panel-tag { color: inherit; text-decoration: none; align-self: flex-start; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 10px; box-shadow: inset 0 0 0 1px var(--line-dark); }
.panel:hover { border-color: var(--red); }
@media (max-width: 860px) {
  .solutions { height: auto !important; }
  .solutions-pin { position: relative; height: auto; display: block; padding: 90px var(--gutter) 60px; }
  .solutions-head { width: auto; margin-bottom: 36px; }
  .solutions-progress { display: none; }
  .solutions-track { flex-direction: column; padding: 0; transform: none !important; }
  .panel { width: auto; height: auto; min-height: 460px; }
}
html:not(.motion) .solutions-pin { position: relative; height: auto; display: block; padding: 90px var(--gutter) 60px; }
html:not(.motion) .solutions-head { width: auto; margin-bottom: 36px; }
html:not(.motion) .solutions-track { flex-wrap: wrap; }

/* the four little machines inside the panels */
.viz { position: relative; height: 46%; min-height: 180px; display: grid; place-items: center; }
html:not(.motion) .viz * { animation: none !important; }
.vc-page { width: 96px; height: 132px; background: var(--white); padding: 10px; display: grid; gap: 6px; align-content: start; animation: page2slide 4.2s var(--ease-io) infinite; }
.vc-page i { display: block; height: 8px; background: #2a2626; }
.vc-page i:first-child { height: 22px; background: var(--red); width: 60%; }
.vc-page i:nth-child(3) { width: 80%; }
@keyframes page2slide { 0%, 35% { width: 96px; height: 132px; } 50%, 85% { width: 200px; height: 112px; } 100% { width: 96px; height: 132px; } }
.viz-version i { position: absolute; border: 3px solid var(--white); animation: split 4.2s var(--ease-io) infinite; }
.viz-version i:nth-child(1) { width: 180px; height: 101px; border-color: var(--red); }
.viz-version i:nth-child(2) { width: 62px; height: 110px; --x: 130px; }
.viz-version i:nth-child(3) { width: 90px; height: 90px; --x: -130px; }
@keyframes split { 0%, 20% { transform: translateX(0) scale(0.6); opacity: 0.4; } 45%, 80% { transform: translateX(var(--x, 0)) scale(1); opacity: 1; } 100% { transform: translateX(0) scale(0.6); opacity: 0.4; } }
.viz-assist { background-image: linear-gradient(to right, var(--line-dark) 1px, transparent 1px), linear-gradient(to bottom, var(--line-dark) 1px, transparent 1px); background-size: 22px 22px; overflow: hidden; }
.viz-assist .scan { position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(to bottom, transparent, rgba(237,43,54,0.35)); border-bottom: 3px solid var(--red); animation: scan 2.8s linear infinite; }
@keyframes scan { to { transform: translateY(calc(100% + 240px)); } }
.viz-assist::after { content: "Reviewed by a human"; position: absolute; right: 12px; bottom: 12px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--white); color: var(--ink); padding: 5px 8px; }
.viz-build { grid-template-columns: repeat(2, 56px); grid-template-rows: repeat(2, 56px); gap: 4px; align-content: center; justify-content: center; }
.viz-build i { background: var(--white); animation: snap 3.6s var(--ease-out) infinite; }
.viz-build i:nth-child(1) { background: var(--red); --dx: -80px; --dy: -60px; }
.viz-build i:nth-child(2) { --dx: 90px; --dy: -50px; animation-delay: 0.15s; }
.viz-build i:nth-child(3) { --dx: -70px; --dy: 70px; animation-delay: 0.3s; }
.viz-build i:nth-child(4) { --dx: 80px; --dy: 60px; animation-delay: 0.45s; }
@keyframes snap { 0%, 15% { transform: translate(var(--dx), var(--dy)) rotate(18deg); opacity: 0.3; } 45%, 85% { transform: none; opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(18deg); opacity: 0.3; } }

/* ---------- 4. Deck Bridge ---------- */
.bridge { height: 520vh; background: var(--ink); color: var(--white); }
.bridge-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: 1fr auto; padding: 100px var(--gutter) 44px; }
.bridge-stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 700ms var(--ease-out); }
.bridge-stage.is-ready { opacity: 1; }
.bridge-head { position: relative; max-width: 440px; }
.bridge-title { font-weight: 900; font-size: clamp(4rem, 1.6rem + 8vw, 11rem); line-height: 0.82; letter-spacing: -0.06em; margin-bottom: 20px; }
.bridge-lead { color: #cfc9c6; font-size: 1.125rem; max-width: 30ch; }
.bridge-steps { position: relative; list-style: none; margin: 0; padding: 0; max-width: 400px; min-height: 180px; }
.step { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(18px); transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.step.is-active { opacity: 1; transform: none; }
.step-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; background: var(--red); color: var(--ink); padding: 4px 9px; margin-bottom: 12px; }
.step h3 { font-weight: 900; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 10px; }
.step p { color: #cfc9c6; }
.bridge-progress { position: absolute; right: var(--gutter); top: 110px; bottom: 50px; width: 2px; background: var(--line-dark); }
.bridge-progress i { display: block; height: 100%; background: var(--red); transform-origin: top; transform: scaleY(var(--p, 0)); }
html:not(.motion) .bridge { height: auto; }
html:not(.motion) .bridge-pin { position: relative; height: auto; display: block; }
html:not(.motion) .bridge-stage { display: none; }
html:not(.motion) .bridge-steps { min-height: 0; display: grid; gap: 28px; margin-top: 48px; max-width: 640px; }
html:not(.motion) .step { position: relative; opacity: 1; transform: none; }
html:not(.motion) .bridge-progress { display: none; }
@media (max-width: 760px) { .bridge-lead { display: none; } .bridge-title { font-size: 3.6rem; } }

/* ---------- 5. Try ---------- */
.try { padding: clamp(100px, 16vh, 180px) var(--gutter); }
.try-head { display: grid; grid-template-columns: 1fr minmax(0, 36ch); gap: 24px 48px; align-items: end; margin-bottom: 56px; }
.try-head .label { grid-column: 1 / -1; margin-bottom: 0; }
.try-lead { color: var(--muted); }
@media (max-width: 860px) { .try-head { grid-template-columns: 1fr; } }
.try-ui { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px 40px; align-items: start; }
.seg { grid-column: 1 / -1; justify-self: start; display: inline-flex; gap: 4px; padding: 4px; background: var(--ink); }
.seg button { font: 700 0.9375rem/1 var(--font); letter-spacing: 0.04em; border: 0; min-height: 46px; padding: 0 22px; background: transparent; color: var(--white); cursor: pointer; transition: background-color 150ms, color 150ms; }
.seg button[aria-checked="true"] { background: var(--red); color: var(--ink); }
.seg button:hover:not([aria-checked="true"]) { background: var(--ink-2); }
.try-canvas { min-height: clamp(380px, 50vw, 640px); display: grid; place-items: center; padding: 28px; background: var(--bg-2); background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 40px 40px; overflow: hidden; }
.try-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-weight: 500; }
.try-checks li { display: flex; align-items: center; gap: 12px; }
.ck { width: 20px; height: 20px; box-shadow: inset 0 0 0 2px var(--ink); position: relative; flex: none; }
.ck::after { content: ""; position: absolute; inset: 4px; background: var(--red); transform: scale(0); transition: transform 260ms var(--ease-out); }
.try-checks.is-done .ck::after { transform: scale(1); }
.try-checks.is-done li:nth-child(2) .ck::after { transition-delay: 70ms; }
.try-checks.is-done li:nth-child(3) .ck::after { transition-delay: 140ms; }
.try-checks.is-done li:nth-child(4) .ck::after { transition-delay: 210ms; }
.try-checks.is-done li:nth-child(5) .ck::after { transition-delay: 280ms; }
.try-out { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.try-out b { color: var(--ink); margin-left: 8px; }
@media (max-width: 860px) { .try-ui { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .seg { justify-self: stretch; } .seg button { flex: 1; padding: 0 8px; } }

/* The mock document. Each format is a grid layout; the blocks glide between them with view transitions. */
.doc {
  --pad: 6%;
  position: relative; background: var(--white); color: var(--ink); box-shadow: 0 30px 60px -24px rgba(0,0,0,0.4);
  display: grid; gap: 3.2% 4%; padding: var(--pad); width: min(100%, 360px); aspect-ratio: 210 / 297;
  container-type: inline-size;
}
.doc > * { min-width: 0; min-height: 0; }
.doc-logo { grid-area: logo; }
.doc-logo span { display: block; width: 9cqi; aspect-ratio: 1; background: var(--red); }
.doc-title { grid-area: title; font-size: 8cqi; line-height: 0.95; font-weight: 900; letter-spacing: -0.04em; }
.doc-sub { grid-area: sub; font-size: 3.4cqi; line-height: 1.35; color: #4f4a48; }
.doc-img { grid-area: img; background: linear-gradient(135deg, #1d1a1a 0%, #4b2a2e 55%, var(--red) 140%); position: relative; overflow: hidden; }
.doc-img i { position: absolute; background: rgba(255,255,255,0.12); }
.doc-img i:nth-child(1) { left: 12%; bottom: 0; width: 30%; height: 62%; }
.doc-img i:nth-child(2) { left: 46%; bottom: 0; width: 22%; height: 40%; }
.doc-img i:nth-child(3) { right: 12%; top: 16%; width: 12%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,0.35); }
.doc-text { grid-area: text; display: grid; gap: 1.6cqi; align-content: start; }
.doc-text i { display: block; height: 1.5cqi; background: #3a3437; opacity: 0.75; }
.doc-text i:last-child { width: 60%; }
.doc-table { grid-area: table; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; align-content: start; }
.doc-table span { height: 4.4cqi; background: #e7e1de; }
.doc-table span:nth-child(-n+3) { background: var(--ink); }
.doc-num { grid-area: num; font-size: 3cqi; font-weight: 700; color: #4f4a48; align-self: end; justify-self: end; }
.doc[data-format="indd"] { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr auto auto; grid-template-areas: "logo logo" "title title" "sub sub" "img img" "text table" "num num"; }
.doc[data-format="indd"] .doc-img { min-height: 34cqi; }
.doc[data-format="pptx"] { aspect-ratio: 16 / 9; width: min(100%, 720px); --pad: 4.5%; grid-template-columns: 1fr 0.55fr 0.75fr; grid-template-rows: auto auto auto 1fr auto; grid-template-areas: "logo img img" "title img img" "sub img img" "text text table" "num num num"; gap: 3% 3%; }
.doc[data-format="pptx"] .doc-title { align-self: end; }
.doc[data-format="pptx"] .doc-img { min-height: 100%; }
.doc[data-format="pptx"] .doc-title { font-size: 5cqi; }
.doc[data-format="pptx"] .doc-sub { font-size: 1.9cqi; }
.doc[data-format="pptx"] .doc-logo span { width: 4.4cqi; }
.doc[data-format="pptx"] .doc-text { gap: 1cqi; }
.doc[data-format="pptx"] .doc-text i { height: 0.9cqi; }
.doc[data-format="pptx"] .doc-table span { height: 2.4cqi; }
.doc[data-format="pptx"] .doc-num { font-size: 1.6cqi; }
.doc[data-format="docx"] { aspect-ratio: 8.5 / 11; width: min(100%, 380px); --pad: 9%; grid-template-columns: 1fr; grid-template-areas: "logo" "title" "sub" "text" "img" "table" "num"; gap: 2.4%; }
.doc[data-format="docx"] .doc-img { min-height: 26cqi; }
.doc[data-format="docx"] .doc-title { font-size: 6.6cqi; }
.doc[data-format="key"] { aspect-ratio: 16 / 9; width: min(100%, 720px); --pad: 5%; background: var(--ink); color: var(--white); grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto auto; grid-template-areas: "logo img" "title img" "sub img" "num table"; gap: 4% 5%; }
.doc[data-format="key"] .doc-title { color: var(--white); font-size: 5.8cqi; align-self: end; }
.doc[data-format="key"] .doc-sub { color: #b9b1b4; font-size: 2.1cqi; }
.doc[data-format="key"] .doc-text { display: none; }
.doc[data-format="key"] .doc-logo span { width: 4cqi; }
.doc[data-format="key"] .doc-table span { height: 2.2cqi; background: #2a2629; }
.doc[data-format="key"] .doc-table span:nth-child(-n+3) { background: var(--red); }
.doc[data-format="key"] .doc-num { font-size: 1.6cqi; color: #a39ca0; }
.try-canvas .doc { view-transition-name: doc; }
.try-canvas .doc-logo { view-transition-name: d-logo; }
.try-canvas .doc-title { view-transition-name: d-title; }
.try-canvas .doc-sub { view-transition-name: d-sub; }
.try-canvas .doc-img { view-transition-name: d-img; }
.try-canvas .doc-text { view-transition-name: d-text; }
.try-canvas .doc-table { view-transition-name: d-table; }
.try-canvas .doc-num { view-transition-name: d-num; }
::view-transition-group(*) { animation-duration: 680ms; animation-timing-function: cubic-bezier(0.7, 0, 0.2, 1); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*) { animation-duration: 0s; } }

/* Compare slider */
.compare { position: relative; margin-top: 64px; aspect-ratio: 16 / 7.2; min-height: 320px; background: var(--ink); overflow: hidden; user-select: none; }
.compare-side { position: absolute; inset: 0; display: grid; place-items: center; padding: 5% 8% 11%; }
.compare-side .doc { width: min(100%, 760px); }
.compare-flat { filter: blur(1.5px) saturate(0.6) contrast(0.9); }
.compare-live { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-live .doc-title, .compare-live .doc-sub { outline: 1px dashed transparent; outline-offset: 4px; cursor: text; }
.compare-live .doc-title:hover, .compare-live .doc-sub:hover, .compare-live .doc-title:focus, .compare-live .doc-sub:focus { outline-color: var(--red); }
.compare-label { position: absolute; bottom: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 12px; }
.compare-flat .compare-label { right: 20px; background: var(--bg); color: var(--ink); }
.compare-live .compare-label { left: 20px; background: var(--red); color: var(--ink); }
.compare-range { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 44px; margin: -22px 0 0; opacity: 0; cursor: ew-resize; z-index: 2; }
.compare-hint { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); z-index: 1; pointer-events: none; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--red); pointer-events: none; z-index: 1; }
.compare-handle::after { content: ""; position: absolute; top: 50%; left: -14px; width: 30px; height: 30px; margin-top: -15px; background: var(--red); }
.compare-range:focus-visible ~ .compare-handle::after { outline: 3px solid var(--white); outline-offset: 3px; }
@media (max-width: 760px) { .compare { aspect-ratio: auto; height: 400px; } .compare-side { padding: 6% 5% 22%; } .compare-label { font-size: 0.625rem; } }

/* ---------- 6. Ticker ---------- */
.ticker { background: var(--ink); color: var(--bg); overflow: hidden; padding: 22px 0; }
.ticker-track { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); width: max-content; will-change: transform; }
.ticker-track span { font-weight: 900; font-size: clamp(3rem, 1rem + 8vw, 10rem); line-height: 0.9; letter-spacing: -0.05em; text-transform: uppercase; }
.ticker-track b { width: clamp(22px, 3vw, 54px); aspect-ratio: 1; background: var(--red); flex: none; }

/* ---------- 7. The lab index ---------- */
.lab { position: relative; padding: clamp(100px, 16vh, 180px) var(--gutter); }
.lab-head { margin-bottom: 48px; }
.lab-index { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 1fr) 140px; align-items: center; gap: 24px; padding: 28px 0; border-top: 1px solid var(--ink); position: relative; }
.row-no { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; }
.row h3 { font-weight: 900; font-size: clamp(1.9rem, 1rem + 3vw, 4.4rem); line-height: 0.95; letter-spacing: -0.05em; transition: transform 500ms var(--ease-out), color 300ms; }
.row p { color: var(--muted); max-width: 36ch; }
.row-state { justify-self: end; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 10px; box-shadow: inset 0 0 0 1px var(--ink); white-space: nowrap; }
.row-live .row-state { background: var(--red); box-shadow: none; }
.row:hover h3 { transform: translateX(22px); color: var(--red); }
.row-float { display: none; }
@media (pointer: fine) {
  html.motion .row-float { display: block; position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; width: 150px; height: 150px; margin: -75px 0 0 -75px; mix-blend-mode: multiply; }
  .row-float span { position: absolute; inset: 0; background: var(--red); transform: scale(0); transition: transform 400ms var(--ease-out); display: flex; align-items: flex-end; padding: 0 14px 4px; font-weight: 900; font-size: 6rem; line-height: 1; letter-spacing: -0.06em; color: var(--ink); font-size: 4rem; }
  .row-float.is-on span { transform: scale(1); }
}
@media (max-width: 860px) {
  .row { grid-template-columns: 44px 1fr; gap: 10px 14px; }
  .row p { grid-column: 2; }
  .row-state { grid-column: 2; justify-self: start; }
}

/* ---------- 8. Rules ---------- */
.rules { background: var(--bg-2); padding: clamp(100px, 16vh, 180px) var(--gutter); }
.rules-lead { max-width: 44ch; font-size: 1.25rem; margin: 28px 0 64px; }
.steps4 { list-style: none; margin: 0 0 90px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps4 li { border-top: 2px solid var(--ink); padding-top: 18px; position: relative; }
.steps4 li::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--red); transition: width 900ms var(--ease-out); }
.steps4.is-in li::before { width: 100%; }
.steps4.is-in li:nth-child(2)::before { transition-delay: 150ms; }
.steps4.is-in li:nth-child(3)::before { transition-delay: 300ms; }
.steps4.is-in li:nth-child(4)::before { transition-delay: 450ms; }
.steps4 span { font-size: 0.8125rem; font-weight: 700; color: #b8141e; }
.steps4 h3 { font-weight: 900; font-size: clamp(2rem, 1.2rem + 2vw, 3.2rem); letter-spacing: -0.05em; margin: 6px 0 8px; }
.steps4 p { color: var(--muted); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promises li { background: var(--white); padding: 28px; }
.promises b { display: block; font-weight: 900; font-size: clamp(5rem, 2rem + 8vw, 11rem); line-height: 0.85; letter-spacing: -0.07em; color: var(--red); margin-bottom: 26px; }
.promises small { font-size: 0.4em; letter-spacing: -0.02em; }
.promises h3 { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.promises p { color: var(--muted); }
@media (max-width: 900px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } .promises { grid-template-columns: 1fr; } }

/* ---------- 9. CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--red); color: var(--ink); min-height: 100svh; padding: clamp(100px, 16vh, 180px) var(--gutter); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cta-title { position: relative; font-weight: 900; font-size: clamp(3.4rem, 1rem + 9vw, 12rem); line-height: 0.86; letter-spacing: -0.06em; max-width: 9ch; margin-bottom: 30px; }
.cta-lead { position: relative; max-width: 40ch; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); font-weight: 500; margin-bottom: 40px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 22px; min-height: 80px; padding: 0 34px; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 800; font-size: clamp(1.125rem, 0.9rem + 1vw, 1.75rem); letter-spacing: -0.02em; overflow: hidden; isolation: isolate; transition: color 300ms; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--white); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform 500ms var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn i { font-style: normal; transition: transform 400ms var(--ease-out); }
.btn:hover i { transform: translateX(8px); }
.cta-squares { position: absolute; right: 0; bottom: 0; width: min(34vw, 460px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, 1fr); }
.cta-squares i { background: var(--ink); transform: scale(var(--s, 0)); transition: transform 600ms var(--ease-out); }
html:not(.motion) .cta-squares i { --s: 0.5; }
@media (max-width: 1100px) { .cta-squares { opacity: 0.3; } }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--bg); padding: 0 var(--gutter) 28px; overflow: hidden; }
.foot-word { font-weight: 900; font-size: 18.4vw; line-height: 0.78; letter-spacing: -0.07em; white-space: nowrap; margin: 0 0 0 -0.05em; padding-top: 0.08em; }
.foot-word span { display: inline-block; width: 0.16em; height: 0.16em; background: var(--red); margin-left: 0.04em; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.875rem; color: #b9b3b0; }

/* ---------- Reveal on scroll ---------- */
html.motion [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
html.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* phones: the button and counter sit left of the square (after the base rules so they win) */
@media (max-width: 760px) {
  .playground-ui { align-items: flex-start; text-align: left; gap: 8px; width: calc(100vw - 214px); }
  .feed { padding: 0 12px; font-size: 0.8125rem; }
  .jobs { font-size: 0.6875rem; }
}

/* ---------- X-ray: a red square lens shows how Deck Bridge reads the page ---------- */
.xray { background: var(--ink); color: var(--white); padding: clamp(100px, 16vh, 180px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.xray-lead { color: #cfc9c6; max-width: 36ch; margin: 28px 0 24px; font-size: 1.125rem; }
.xray-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 500; }
.xray-legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--red); margin-right: 12px; }
.xray-stage { display: grid; place-items: center; min-height: 560px; background-image: linear-gradient(to right, var(--line-dark) 1px, transparent 1px), linear-gradient(to bottom, var(--line-dark) 1px, transparent 1px); background-size: 40px 40px; padding: 32px; }
.xray-frame { position: relative; width: min(100%, 400px); touch-action: pan-y; cursor: grab; } /* a vertical swipe still scrolls on phones */
.xray-frame .doc { width: 100%; }
.doc-xray { position: absolute; inset: 0; background: #151313; color: var(--white); box-shadow: none; clip-path: inset(var(--t, 40%) var(--r, 40%) var(--b, 40%) var(--l, 40%)); }
.doc-xray > * { outline: 1.5px solid var(--red); outline-offset: 2px; background: rgba(237, 43, 54, 0.1); position: relative; }
.doc-xray > *::after { content: attr(data-x); position: absolute; left: -2px; top: -2px; transform: translateY(-100%); font: 700 9px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; background: var(--red); color: var(--ink); padding: 3px 4px; white-space: nowrap; z-index: 1; }
.doc-xray .doc-title, .doc-xray .doc-sub, .doc-xray .doc-num { color: var(--white); }
.doc-xray .doc-text i, .doc-xray .doc-table span { background: rgba(255,255,255,0.55); }
.doc-xray .doc-table span:nth-child(-n+3) { background: var(--white); }
.doc-xray .doc-img { background: repeating-linear-gradient(45deg, rgba(237,43,54,0.25) 0 6px, transparent 6px 12px); }
.doc-xray .doc-img i { display: none; }
.xray-lens { position: absolute; left: 0; top: 0; width: var(--s, 170px); height: var(--s, 170px); translate: var(--x, 0px) var(--y, 0px); border: 3px solid var(--red); pointer-events: none; }
.xray-lens span { position: absolute; left: -3px; bottom: -3px; transform: translateY(100%); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--red); color: var(--ink); padding: 4px 6px; white-space: nowrap; }
@media (max-width: 900px) { .xray { grid-template-columns: 1fr; } .xray-stage { min-height: 0; padding: 40px 16px; } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(100px, 16vh, 180px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-weight: 800; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 18px; height: 18px; background: var(--ink); transition: transform 300ms var(--ease-out), background-color 200ms; }
.faq details[open] summary::after { background: var(--red); transform: rotate(45deg); }
.faq summary:hover { color: #b8141e; }
.faq details p { padding: 0 0 26px; max-width: 58ch; color: var(--muted); font-size: 1.0625rem; }
.faq details p b { color: var(--ink); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }
.cta-note { position: relative; margin-top: 18px; font-size: 0.875rem; font-weight: 500; }
/* two-column sections: the big titles sit in a narrower column */
.xray .big-title, .faq .big-title { font-size: clamp(2.8rem, 0.8rem + 5.4vw, 7rem); }

/* ---------- v2.1: generated imagery (Higgsfield, logged in assets/img/media-log.csv) ---------- */
/* paper texture over the whole page, very light */
body::before { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; background: url("../assets/img/t1-512.webp") repeat; background-size: 512px; mix-blend-mode: multiply; opacity: 0.32; }

/* the machine is now a photographed red cube; the old flat square styles are switched off */
.machine { background: none; padding: 0; overflow: visible; display: block; box-shadow: none; outline: none; transition: scale 300ms var(--ease-out); }
.machine picture, .machine img { display: block; width: 100%; height: 100%; object-fit: contain; }
.machine::after { content: ""; position: absolute; left: 6%; right: 2%; bottom: -3%; height: 9%; z-index: -1; border-radius: 50%; background: rgba(14, 13, 13, 0.28); filter: blur(14px); }
.machine-grid { display: none; }
.machine-slot { position: absolute; left: 10%; top: 33%; width: 50%; height: 7%; background: var(--red); opacity: 0; mix-blend-mode: screen; filter: blur(3px); }
.machine.is-busy .machine-slot { animation: slot 360ms steps(2) infinite; }
@keyframes slot { 0% { opacity: 0.2; background: #fff; } 100% { opacity: 0.9; background: var(--red); } }
.machine.is-busy img { animation: hum 90ms linear infinite; }
@keyframes hum { 0% { translate: 0 0; } 25% { translate: 1px -1px; } 50% { translate: -1px 0; } 75% { translate: 0 1px; } }
.machine.is-hot { scale: 1.05; outline: none; }
.machine-tag { position: absolute; left: 0; top: calc(100% + 14px); display: grid; gap: 2px; width: max-content; max-width: 240px; }
.machine-tag .machine-label { color: var(--muted); }
.machine-tag .machine-state { font-size: 0.9375rem; max-width: none; }
@media (max-width: 760px) { .machine-tag { top: calc(100% + 8px); } .machine-tag .machine-state { font-size: 0.8125rem; } }

/* solution panels open with a still life */
.panel-img { display: block; margin: -28px -28px 6px; height: 46%; min-height: 200px; overflow: hidden; background: var(--bg); }
.panel-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: scale 900ms var(--ease-out); }
.panel:hover .panel-img img { scale: 1.04; }
@media (max-width: 860px) { .panel-img { height: auto; aspect-ratio: 4 / 3; } }

/* FAQ: the page going into the machine sits under the title */
.faq-img { display: block; margin-top: 36px; max-width: 460px; }
.faq-img img { display: block; width: 100%; height: auto; }
.machine.is-busy { box-shadow: none; }
body::before { opacity: 0.16; }
.faq-img img { aspect-ratio: 1; } /* space reserved before the lazy image arrives */

/* ---------- Real proof (Deck Bridge 3.0.0 run on a sample deck) ---------- */
.proof { margin-top: 96px; padding-top: 64px; border-top: 1px solid var(--ink); }
.proof-head { display: grid; grid-template-columns: 1fr minmax(0, 44ch); gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.proof-head .label { grid-column: 1 / -1; margin-bottom: 0; }
.proof-title { font-weight: 900; font-size: clamp(2.2rem, 1rem + 3.6vw, 4.6rem); line-height: 0.92; letter-spacing: -0.05em; }
.proof-lead { color: var(--muted); }
.proof-stats { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proof-stats li { background: var(--bg); padding: 22px 20px; display: grid; gap: 8px; align-content: start; }
.proof-stats b { font-weight: 900; font-size: clamp(2.6rem, 1.4rem + 3vw, 4.4rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--red); }
.proof-stats small { font-size: 0.45em; letter-spacing: 0; }
.proof-stats span { color: var(--muted); font-size: 0.9375rem; }
.proof-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--ink); margin-bottom: 20px; flex-wrap: wrap; }
.proof-tabs button { font: 700 0.875rem/1 var(--font); border: 0; min-height: 42px; padding: 0 18px; background: transparent; color: var(--white); cursor: pointer; }
.proof-tabs button[aria-selected="true"] { background: var(--red); color: var(--ink); }
.proof-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proof-pair[hidden] { display: none; }
.proof-pair figure { margin: 0; background: var(--white); padding: 14px; box-shadow: 0 24px 50px -30px rgba(0,0,0,0.45); }
.proof-pair figcaption { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.proof-pair figure:last-child figcaption::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--red); margin-right: 8px; }
.proof-pair img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.proof-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 28px; }
.proof-download { display: inline-grid; gap: 4px; padding: 18px 26px; background: var(--ink); color: var(--white); text-decoration: none; transition: background-color 200ms; }
.proof-download span { font-weight: 800; font-size: 1.125rem; }
.proof-download small { color: #b9b3b0; font-size: 0.8125rem; }
.proof-download:hover { background: var(--red); color: var(--ink); }
.proof-download:hover small { color: var(--ink); }
.proof-note { color: var(--muted); max-width: 60ch; font-size: 0.9375rem; }
@media (max-width: 860px) { .proof-head { grid-template-columns: 1fr; } .proof-stats { grid-template-columns: 1fr 1fr; } .proof-pair { grid-template-columns: 1fr; } }

/* Deck Bridge still: shown instead of the 3D story in calm mode, without WebGL, or if the GPU drops the context */
.bridge-still { display: none; }
html:not(.motion) .bridge-still, .bridge.is-still .bridge-still { display: block; max-width: 520px; margin: 40px 0 0; }
.bridge.is-still .bridge-stage { display: none; }
.bridge-still img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) { .bridge.is-still .bridge-still { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 38vw; margin: 0; } }

/* phone menu */
.nav-menu { display: none; }
.nav-menu button { font: 500 0.875rem/1 var(--font); color: var(--white); background: transparent; border: 0; min-height: 38px; padding: 0 14px; cursor: pointer; }
@media (max-width: 760px) {
  .nav-menu { display: block; }
  .nav-list { flex-wrap: wrap; justify-content: flex-end; max-width: calc(100vw - 170px); }
  /* open: the section links drop down under the bar as a panel, so the header itself never moves */
  .nav-list { position: relative; }
  .nav-list.is-open .nav-wide { display: block; position: absolute; right: 0; width: 220px; background: var(--ink); }
  .nav-list.is-open .nav-wide:nth-child(2) { top: calc(100% + 0px); }
  .nav-list.is-open .nav-wide:nth-child(3) { top: calc(100% + 46px); }
  .nav-list.is-open .nav-wide:nth-child(4) { top: calc(100% + 92px); }
  .nav-list.is-open .nav-wide:nth-child(5) { top: calc(100% + 138px); }
  .nav-list.is-open .nav-wide a { width: 100%; min-height: 46px; padding: 0 18px; border-top: 1px solid var(--line-dark); }
  .nav-list { max-width: none; flex-wrap: nowrap; }
}

/* wide screens: the headline also scales with the screen height, so short laptops keep room for the machine and the cards */
@media (min-width: 1100px) { .hero-title { font-size: clamp(3.4rem, min(0.8rem + 11.4vw, 21vh), 13.5rem); } }

/* PPTX mock, filled: the picture takes the top rows, text and table share the bottom row */
.doc[data-format="pptx"] { grid-template-columns: 1fr 0.55fr 0.75fr; grid-template-rows: auto auto 1fr auto auto; grid-template-areas: "logo img img" "title img img" "sub img img" "text text table" "num num num"; }
.doc[data-format="pptx"] .doc-img { min-height: 30cqi; }
.doc[data-format="pptx"] .doc-title { font-size: 5.6cqi; }
.doc[data-format="pptx"] .doc-sub { font-size: 2.2cqi; align-self: start; }
.doc[data-format="pptx"] .doc-text { gap: 1.5cqi; }
.doc[data-format="pptx"] .doc-text i { height: 1.2cqi; }
.doc[data-format="pptx"] .doc-table span { height: 2.6cqi; }
.doc[data-format="pptx"] .doc-img { min-height: 0; }
.doc[data-format="pptx"] .doc-logo { height: 4.4cqi; }
.doc[data-format="pptx"] .doc-title { align-self: start; }
.doc[data-format="pptx"] { grid-template-rows: 4.4cqi auto 1fr auto auto; }
.lang { font-weight: 700; }

/* the header button: full label on wide screens, short one on phones; only one is ever rendered, so the
   accessible name always matches the visible words */
.nav-cta { white-space: nowrap; }
.cta-short { display: none; }
@media (max-width: 520px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav-list a { padding: 0 11px; }
}

/* ===================================================================================================
   v3 · two pages: the lab home (/) and the Deck Bridge product page (/deck-bridge/)
   =================================================================================================== */

/* shared bits */
.btn-sm { min-height: 60px; padding: 0 26px; gap: 16px; font-size: 1.125rem; }
.btn-red { background: var(--red); color: var(--ink); }
.text-link { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; align-items: center; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--red); transition: color 200ms; }
.text-link:hover { color: #b8141e; }
.text-link small { display: inline-block; font-weight: 500; color: var(--muted); } /* inline-block: the underline skips it */
.text-link-light:hover { color: #ff5c65; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.foot-links a { color: inherit; text-underline-offset: 4px; }
.foot-links a:hover { color: var(--white); }
.cta-note a { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- Home: Product 01 in short ---------- */
.feature { padding: clamp(100px, 16vh, 180px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px 64px; align-items: center; }
.feature-title { display: flex; align-items: center; gap: 0.18em; font-weight: 900; font-size: clamp(3.2rem, 1rem + 6.6vw, 8.6rem); line-height: 0.86; letter-spacing: -0.06em; margin-bottom: 26px; }
.feature-mark { flex: none; width: 0.9em; height: 0.54em; display: block; }
.feature-mark img, .feature-mark svg { display: block; width: 100%; height: 100%; }
.feature-mark:empty { background: var(--red); }
.feature-lead { max-width: 40ch; font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3rem); line-height: 1.5; margin-bottom: 34px; }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
/* two sheets: the source behind, Deck Bridge's output in front; hovering swaps them */
.feature-media { position: relative; display: block; aspect-ratio: 16 / 12.5; color: inherit; text-decoration: none; }
.feature-sheet { position: absolute; margin: 0; width: 82%; background: var(--white); padding: 12px; box-shadow: 0 34px 60px -34px rgba(0,0,0,0.55); transition: transform 700ms var(--ease-out), z-index 0s 350ms; }
.feature-sheet img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.feature-sheet figcaption { position: absolute; top: 0; transform: translateY(-100%); left: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 9px; background: var(--ink); color: var(--white); }
.feature-sheet.is-back { left: 0; top: 6%; transform: rotate(-3deg); z-index: 1; }
.feature-sheet.is-front { right: 0; bottom: 4%; transform: rotate(1.5deg); z-index: 2; }
.feature-sheet.is-front figcaption { background: var(--red); color: var(--ink); left: auto; right: 0; }
.feature-media:hover .is-back, .feature-media:focus-visible .is-back { transform: rotate(-1deg) translate(-2%, -4%); }
.feature-media:hover .is-front, .feature-media:focus-visible .is-front { transform: rotate(0deg) translate(2%, 3%); }
.feature-stats { grid-column: 1 / -1; margin: 0; }
.bench { grid-column: 1 / -1; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 26px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: inherit; text-decoration: none; }
.bench-no { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; }
.bench-text { font-size: clamp(1.125rem, 0.9rem + 1vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.bench-text b { font-weight: 900; }
.bench i { font-style: normal; font-weight: 900; font-size: 2rem; transition: transform 400ms var(--ease-out), color 200ms; }
.bench:hover i { transform: translateX(10px); color: var(--red); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-media { aspect-ratio: 16 / 13; margin-top: 24px; }
  .bench { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; }
}

/* ---------- Product page: the story is the hero ---------- */
.bridge-hero .bridge-pin { grid-template-rows: minmax(0, 1fr) auto; }
.bridge-hero .bridge-head { max-width: 600px; z-index: 1; }
.bridge-hero .kicker { color: #a9a2a0; }
.bridge-hero .bridge-title { font-size: clamp(4rem, 1.2rem + 8.4vw, 11.5rem); margin-bottom: 22px; }
@media (min-width: 1100px) { .bridge-hero .bridge-title { font-size: clamp(4rem, min(1.2rem + 8.4vw, 17vh), 11.5rem); } }
.bridge-tagline { font-weight: 800; font-size: clamp(1.5rem, 1rem + 1.5vw, 2.4rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; margin-bottom: 16px; }
.bridge-hero .bridge-lead { max-width: 42ch; font-size: 1.0625rem; }
.bridge-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; }
.bridge-meta { margin-top: 18px; font-size: 0.8125rem; font-weight: 500; color: #a9a2a0; }
.bridge-intro, .bridge-hint { transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), visibility 0s; }
.bridge.is-story .bridge-intro, .bridge.is-story .bridge-hint { opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity 300ms, transform 300ms, visibility 0s 300ms; }
.bridge-hint { position: absolute; left: var(--gutter); bottom: 44px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #a9a2a0; }
html:not(.motion) .bridge-hint { display: none; }
html:not(.motion) .bridge-hero .bridge-pin { padding-top: 120px; padding-bottom: 90px; }
@media (max-width: 760px) {
  .bridge-hero .bridge-lead { display: none; }
  .bridge-hero .bridge-title { font-size: 3.8rem; margin-bottom: 16px; }
  .bridge-tagline { font-size: 1.4rem; }
  .bridge-actions { margin-top: 20px; }
  .bridge-meta { margin-top: 12px; }
}

/* ---------- Product page: proof on its own, specs ---------- */
.proof-section { padding: 0 var(--gutter) clamp(100px, 16vh, 180px); }
.proof-section .proof { margin-top: 0; }
.specs { background: var(--bg-2); padding: clamp(100px, 16vh, 180px) var(--gutter); }
.specs-head { margin-bottom: 56px; }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.spec { background: var(--white); padding: 28px; }
.spec h3 { font-weight: 900; font-size: 1.625rem; letter-spacing: -0.03em; margin-bottom: 16px; }
.spec ul { list-style: none; margin: 0; padding: 0; }
.spec li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); }
.spec li b { color: var(--ink); font-weight: 800; margin-right: 6px; }
.spec-note { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 1100px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .spec-grid { grid-template-columns: 1fr; } }
.bridge-mark { display: block; width: 58px; height: 35px; margin-bottom: 22px; }
.bridge-mark svg { display: block; width: 100%; height: 100%; }
@media (max-width: 760px) { .bridge-mark { width: 44px; height: 26px; margin-bottom: 14px; } }
/* short laptops: the intro keeps the tagline and buttons; the longer lead and the scroll hint step aside */
@media (min-width: 761px) and (max-height: 780px) { .bridge-hero .bridge-lead { display: none; } }
@media (max-height: 600px) { .bridge-hint { display: none; } }
/* very short windows (200% zoom): the head steps aside while the story runs, so captions never sit on the title */
@media (max-height: 520px) {
  .bridge-hero .bridge-head { transition: opacity 300ms; }
  .bridge-hero.is-story .bridge-head { opacity: 0; visibility: hidden; }
}
/* the intro words never re-wrap when Gotham arrives late (a re-wrap would move everything under it):
   the tagline is two fixed lines, and on phones the button and the link always stack */
.bridge-tagline { max-width: none; }
.bridge-tagline .line { display: block; white-space: nowrap; }
@media (max-width: 760px) { .bridge-actions { flex-direction: column; align-items: flex-start; gap: 6px; } }
/* product hero without 3D (calm mode, or no WebGL): the photo takes the square's place */
html:not(.motion) .bridge-hero .bridge-pin { display: flex; flex-direction: column; }
html:not(.motion) .bridge-hero .bridge-head { order: 1; }
html:not(.motion) .bridge-hero .bridge-still { order: 2; max-width: 420px; }
html:not(.motion) .bridge-hero .bridge-steps { order: 3; }
@media (min-width: 900px) { html:not(.motion) .bridge-hero .bridge-still { position: absolute; right: var(--gutter); top: 120px; width: min(40vw, 560px); max-width: none; margin: 0; } }
@media (max-width: 899px) { .bridge-hero.is-still .bridge-still { position: absolute; left: 50%; bottom: 90px; width: min(56vw, 300px); margin: 0; transform: translateX(-50%); } }
/* the phone menu panel keeps an edge on the dark product page */
@media (max-width: 760px) { .nav-list.is-open .nav-wide { box-shadow: 0 0 0 1px var(--line-dark); } }
/* review v03 fixes */
.panel-link { background: var(--red); color: var(--ink); box-shadow: none; transition: background-color 200ms; }
.panel-link:hover { background: var(--white); }
html:not(.motion) .solutions-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); padding: 0; }
html:not(.motion) .panel { width: auto; }
.proof-reverse { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); max-width: 70ch; }
.proof-reverse a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.proof-reverse small { font-weight: 500; }
.nav-home { display: none; }
@media (max-width: 760px) {
  .nav-list.is-open .nav-home { display: block; }
  .nav-list.is-open .nav-wide:nth-child(6) { top: calc(100% + 184px); }
}
/* very short windows (200% zoom on a laptop): a tighter intro so the buttons stay on the first screen */
@media (max-height: 520px) {
  .bridge-hero .bridge-pin { padding-top: 76px; }
  .bridge-hero .bridge-mark, .bridge-hero .kicker, .bridge-meta { display: none; }
  .bridge-hero .bridge-title { font-size: 3rem; margin-bottom: 10px; }
  .bridge-tagline { font-size: 1.25rem; margin-bottom: 0; }
  .bridge-actions { margin-top: 14px; }
}
/* the size note next to a download link is not underlined (a flex container would pass the underline on) */
.text-link { display: inline-block; min-height: 0; padding: 11px 0; }
/* the Deck Bridge mark is the app's own icon (same artwork, recoloured to THAT red and ink) */
.feature-mark { width: 0.86em; height: 0.86em; }
.feature-mark img { display: block; width: 100%; height: 100%; }
.bridge-mark { width: 76px; height: 76px; margin-bottom: 18px; margin-left: -6px; }
.bridge-mark img { display: block; width: 100%; height: 100%; }
@media (max-width: 760px) { .bridge-mark { width: 54px; height: 54px; margin-bottom: 10px; margin-left: -4px; } }
@media (min-width: 761px) and (max-height: 780px) { .bridge-mark { width: 54px; height: 54px; margin-bottom: 12px; } }
