/* Dean Norman, draft v4 (30 Oct 2026). Light only.
   Palette: cool paper + ink + one accent (signal orange). Radii: media 20px, tiles 24px, buttons and chips pill. */
:root {
  --paper: #f2f3f5;
  --paper-2: #e9ebef;
  --card: #fafbfc;
  --ink: #111318;
  --ink-2: #2a2e36;
  --muted: #5a606b;
  --line: #d9dce2;
  --accent: #e4531b;
  --accent-ink: #b33a0a;      /* accent as text on paper: 5.1:1 */
  --accent-wash: #fbe7dc;
  --slate-wash: #dfe4ec;
  --shadow: 0 1px 2px rgb(17 19 24 / .06), 0 24px 60px -24px rgb(17 19 24 / .28);
  --r-media: 20px;
  --r-tile: 24px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 999px; z-index: 30; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 62ch; margin-top: 18px; }
.muted { color: var(--muted); }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.tag { display: block; font: 500 13px/1.3 var(--mono); color: var(--muted); margin-bottom: 10px; }
.when { font: 500 13px/1.3 var(--mono); color: var(--muted); }

/* Buttons: pill, ink primary */
.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--font); text-decoration: none; transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-ink { background: var(--ink); color: #f6f7f9; box-shadow: 0 10px 24px -12px rgb(17 19 24 / .6); }
.btn-ink:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #f6f7f9; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.arrow-link { display: inline-block; padding-block: 3px; font-weight: 600; color: var(--accent-ink); text-decoration: none; white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.arrow-link::after { content: " →"; display: inline-block; transition: transform .35s var(--ease); }
.arrow-link:hover { background-size: 100% 1.5px; }
.arrow-link:hover::after { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(242 243 245 / .82); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid rgb(17 19 24 / .06); }
.nav-row { height: 68px; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.wordmark .mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--paper); font: 600 13px/1 var(--mono); }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; display: inline-block; padding-block: 6px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent-ink); }
.site-nav a { position: relative; }
.site-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); }

/* Hero */
.hero { padding: 44px 0 88px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px 64px; align-items: center; }
.hero h1 { grid-column: 1 / -1; font-size: clamp(2.6rem, 6vw, 5.1rem); line-height: 1; letter-spacing: -0.05em; }
.hero-copy { padding-bottom: 24px; }
.hero h1 em { font-style: normal; }
.underline { position: relative; white-space: nowrap; }
.underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: var(--accent); border-radius: 999px; transform-origin: left; z-index: -1; }
.hero-sub { margin-top: 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 36ch; }
.hero-media { position: relative; padding-bottom: 0; }
.screen { margin: 0; border-radius: var(--r-media); overflow: hidden; background: #0e1726; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.screen video { width: 100%; height: 100%; object-fit: cover; }
/* The reels carry their brand backdrop around the window; crop most of it so the product fills the frame. */
.screen video { transform: scale(1.1); transition: transform .8s var(--ease); }
.case-cinema:hover .screen video, .case-split:hover .screen video { transform: scale(1.13); }
.cell-copypasta video { transform: scale(1.3); transition: transform .8s var(--ease); }
.cell-copypasta:hover video { transform: scale(1.34); }

/* Hero reel: three real Tenderly screens, one per step of the rule, each zooming to the part that matters. */
.rule-reel { margin: 0; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.reel-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #e7e9ee; border-bottom: 1px solid var(--line); }
.reel-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9cdd5; }
.reel-bar span { margin-left: auto; margin-right: auto; font: 500 12px/1 var(--mono); color: var(--muted); transform: translateX(-20px); }
.reel-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f6; }
.step { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform-origin: 30% 40%; }
.step-1 { opacity: 1; }
.reel-steps { list-style: none; margin: 14px 0 0; padding: 0 0 0 120px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reel-steps li { position: relative; padding-top: 12px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.reel-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.reel-steps li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.reel-steps b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.reel-steps .s1::after { transform: scaleX(1); }
.portrait { position: absolute; left: -28px; bottom: -6px; width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 6px solid var(--paper); box-shadow: var(--shadow); }

/* The rule: three lines light up as they cross the middle of the screen */
.rule { padding: 88px 0 120px; background: var(--card); border-block: 1px solid var(--line); }
.rule-intro { font-size: 1.15rem; color: var(--muted); }
.rule-lines { list-style: none; margin: 18px 0 0; padding: 0; }
.rule-lines li { font-size: clamp(3rem, 9.5vw, 8.4rem); font-weight: 600; letter-spacing: -0.055em; line-height: .98; color: var(--ink); }
.rule-lines i { font-style: normal; color: var(--accent); }
.rule-after { margin-top: 48px; max-width: 60ch; font-size: clamp(1.08rem, 1.4vw, 1.25rem); }

/* Story timeline */
.story { padding: 128px 0 112px; }
.timeline { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 48px; margin-top: 64px; padding-top: 40px; }
.timeline-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 1)); }
.chapter { position: relative; }
.chapter::before { content: ""; position: absolute; top: -47px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.chapter-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-wash); }
.chapter h3 { margin: 8px 0 12px; }
.chapter p { color: var(--ink-2); }
.chapter blockquote { margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--ink); }

/* Work */
.work { padding: 120px 0 112px; background: var(--card); border-top: 1px solid var(--line); }
.case-cinema { margin-top: 64px; }
.case-cinema .screen { aspect-ratio: 16 / 9; border-radius: var(--r-tile); }
.cinema-head { margin-top: 36px; max-width: 30ch; }
.cinema-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.1; }
.facts { margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.facts dt { font: 500 13px/1.3 var(--mono); color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 16px; }
.facts .result dd { color: var(--ink); font-weight: 600; font-size: 1.12rem; line-height: 1.4; }
.facts .result dt { color: var(--accent-ink); }
.case-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 13px/1 var(--mono); padding: 8px 12px; border-radius: 999px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }

.case-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; margin-top: 128px; }
.split-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 8px; }
.facts-stack { grid-template-columns: 1fr; gap: 22px; margin-bottom: 28px; }
.split-media { position: sticky; top: 100px; }

.pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 128px; }
.tile { border-radius: var(--r-tile); padding: 36px; display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile p { color: var(--ink-2); }
.tile .tag { margin: 18px 0 -4px; }
.tile-slate { background: var(--slate-wash); }
.tile-accent { background: var(--accent-wash); }
.result-line { font-weight: 600; color: var(--ink) !important; margin-top: auto; padding-top: 8px; }
.flowword { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; color: #3b4658; }
.flowword span { white-space: nowrap; }
.flowword span + span::before { content: "→ "; color: rgb(17 19 24 / .28); font-weight: 400; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { font-size: 1.05rem; color: var(--ink-2); padding: 14px 18px; background: rgb(255 255 255 / .55); border-radius: 14px; }
.steps b { color: var(--accent-ink); }

.also { margin-top: 112px; }
.also ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; }
.also li { display: grid; gap: 8px; }
.also p { color: var(--ink-2); }

/* After hours bento */
.made { padding: 128px 0 120px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 56px; }
.cell { border-radius: var(--r-tile); background: var(--card); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cell p { color: var(--ink-2); font-size: 16px; }
.cell-media { margin: -12px -12px 12px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.cell-media video { width: 100%; height: 100%; object-fit: cover; }
.cell-feature { grid-column: span 12; display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; padding: 16px; background: #141218; border-color: #141218; }
.cell-feature .feature-media { margin: 0; display: grid; gap: 12px; align-content: start; }
.feature-hero { width: 100%; height: auto; border-radius: 16px; }
.feature-stills video { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.feature-stills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-stills img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; transition: transform .5s var(--ease); }
.feature-stills img:hover { transform: scale(1.03); }
.feature-copy { padding: 20px 20px 20px 0; display: flex; flex-direction: column; gap: 14px; color: #e9e7ef; }
.feature-copy .tag { color: #a9a3b8; }
.feature-copy h3 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); letter-spacing: -0.04em; }
.feature-sub { font-size: 1.2rem; color: #ff8a5c !important; font-weight: 500; }
.feature-copy p { color: #cfcad9; }
.feature-copy .result-line { color: #fff !important; }
.feature-copy .chips li { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); color: #e9e7ef; }
.cell-copypasta { grid-column: span 7; }
.cell-wisemind { grid-column: span 5; }
.cell-wisemind .cell-media { background: #f1efe9; aspect-ratio: 4 / 3; }
.cell-wisemind video { transform: scale(1.18); transform-origin: 50% 45%; transition: transform .8s var(--ease); }
.cell-wisemind:hover video { transform: scale(1.22); }
.cell-oss { grid-column: span 8; background: var(--slate-wash); border-color: transparent; }
.cell-desk { grid-column: span 4; background: var(--accent-wash); border-color: transparent; justify-content: flex-end; }
.desk-line { font-size: 1.2rem !important; line-height: 1.45; color: var(--ink) !important; font-weight: 500; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 6px; }
.links a { font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.prs a { display: inline-flex; gap: 8px; align-items: baseline; padding: 12px 18px; border-radius: 999px; background: var(--card); text-decoration: none; font-weight: 600; transition: transform .25s var(--ease); }
.prs a:hover { transform: translateY(-2px); }
.prs span { font: 500 13px/1 var(--mono); color: var(--muted); }

/* Approach: sticky quote beside the proofs */
.approach { padding: 128px 0; background: var(--card); border-block: 1px solid var(--line); }
.approach-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.approach-pin { position: sticky; top: 120px; }
.pull { margin: 28px 0 0; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.25; letter-spacing: -0.03em; font-weight: 500; }
.proofs { display: grid; gap: 64px; padding-top: 8px; }
.proof h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 12px; }
.proof p { color: var(--ink-2); max-width: 56ch; }

/* Experience */
.experience { padding: 120px 0; }
.roles { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.roles li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.roles b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.roles small { display: block; font: 500 13px/1.4 var(--mono); color: var(--muted); margin-top: 2px; }
.roles p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }

/* Contact */
.contact { padding: 128px 0 120px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; }
.contact h2 { font-size: clamp(3rem, 7.5vw, 6.6rem); letter-spacing: -0.055em; line-height: .95; }
.contact h2::after { content: ""; display: block; width: 96px; height: 8px; margin-top: 28px; border-radius: 999px; background: var(--accent); }
.contact-copy p { color: var(--ink-2); font-size: 1.1rem; }
.contact-copy p + p { margin-top: 16px; }

/* Footer */
.site-footer { color: var(--muted); padding: 0 0 40px; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-row a { color: var(--ink-2); display: inline-block; padding-block: 4px; }
.note { flex-basis: 100%; max-width: 90ch; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Waitlist sign-ups (Tenderly, WiseMind) */
.signup { margin-top: 28px; max-width: 560px; }
.signup label { display: block; font-weight: 600; margin-bottom: 10px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"] { flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: 400 16px/1 var(--font); color: var(--ink); }
.signup input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.signup input[aria-invalid="true"] { border-color: var(--accent-ink); }
.signup button[disabled] { opacity: .7; cursor: progress; }
.signup .signup-fine { margin-top: 10px; font-size: 13px; color: var(--muted); }
.signup .signup-fine a { color: var(--ink-2); }
.signup .signup-message { margin-top: 8px; font-size: 14px; font-weight: 500; min-height: 1.2em; }
.signup-message[data-kind="ok"] { color: #1f7a4d; }
.signup-message[data-kind="error"] { color: var(--accent-ink); }
.signup-compact { margin-top: 18px; }
.signup-compact label { font-size: 15px; }
.signup-compact .btn, .signup-compact input[type="email"] { height: 44px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Reel pause control (WCAG 2.2.2): site.js wraps each reel and adds the button. */
.reel-box { position: relative; display: block; width: 100%; height: 100%; }
.reel-toggle { position: absolute; right: 10px; bottom: 10px; z-index: 2; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; font: 500 12px/1 var(--mono); color: #f6f7f9; background: rgb(17 19 24 / .62); backdrop-filter: blur(6px); cursor: pointer; opacity: .85; transition: opacity .2s var(--ease); }
.reel-toggle:hover, .reel-toggle:focus-visible { opacity: 1; }
.reel-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Motion. Everything below runs only for people who have not asked for less. */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * 120ms + 80ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .underline::after { transform: scaleX(0); animation: draw .9s var(--ease) .75s forwards; }
  @keyframes draw { to { transform: scaleX(1); } }

  .step { animation: step 13.5s infinite both; }
  /* Step 1 starts mid-cycle (already faded in) so the hero's first frame paints at once: it's the LCP. */
  .step-1 { animation-delay: -0.6s; }
  .step-2 { animation-delay: 3.9s; }
  .step-3 { animation-delay: 8.4s; }
  @keyframes step {
    0% { opacity: 0; transform: scale(1.06); }
    4% { opacity: 1; }
    33% { opacity: 1; }
    37% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; transform: scale(1); }
  }
  .reel-steps li::after { animation: fill 13.5s infinite both linear; }
  .reel-steps .s1::after { animation-delay: -0.6s; }
  .reel-steps .s2::after { animation-delay: 3.9s; }
  .reel-steps .s3::after { animation-delay: 8.4s; }
  @keyframes fill { 0% { transform: scaleX(0); } 33.3% { transform: scaleX(1); } 33.4%, 100% { transform: scaleX(0); } }
  .reel-steps li { animation: lift 13.5s infinite both; }
  .reel-steps .s1 { animation-delay: -0.6s; }
  .reel-steps .s2 { animation-delay: 3.9s; }
  .reel-steps .s3 { animation-delay: 8.4s; }
  @keyframes lift { 0%, 34%, 100% { color: var(--muted); } 2%, 32% { color: var(--ink-2); } }

  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* The rule's three lines: grey until each reaches the middle of the screen */
  @supports (animation-timeline: view()) {
    .rule-lines li { color: #858a94; animation: lit linear both; animation-timeline: view(); animation-range: entry 60% cover 45%; }
    .rule-lines li i { animation: litdot linear both; animation-timeline: view(); animation-range: entry 60% cover 45%; }
    @keyframes lit { to { color: var(--ink); } }
    @keyframes litdot { from { color: #858a94; } to { color: var(--accent); } }
    .timeline-line::after { animation: grow linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
    @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Tablet and phone */
@media (max-width: 1023px) {
  .hero-grid, .case-split, .approach-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-media, .approach-pin { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
  .pair { grid-template-columns: 1fr; }
  .cell-feature { grid-template-columns: 1fr; }
  .feature-copy { padding: 8px 16px 20px; }
  .cell-copypasta, .cell-wisemind, .cell-oss, .cell-desk { grid-column: span 12; }
  .roles { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .nav-row { justify-content: space-between; }
  .hero { padding: 40px 0 64px; }
  .portrait { left: 12px; bottom: 0; width: 92px; height: 92px; border-width: 4px; }
  .reel-steps { padding-left: 0; margin-top: 18px; gap: 10px; }
  .reel-steps li { font-size: 13px; }
  .hero-media .portrait { position: relative; left: 12px; bottom: auto; margin-top: -40px; z-index: 1; }
  .rule, .story, .work, .made, .approach, .experience, .contact { padding-block: 80px; }
  .timeline { grid-template-columns: 1fr; gap: 40px; padding-top: 0; padding-left: 28px; margin-top: 40px; }
  .timeline-line { top: 6px; bottom: 6px; left: 6px; right: auto; width: 2px; height: auto; }
  .timeline-line::after { transform-origin: top; transform: scaleY(1); animation: none; }
  .chapter::before { top: 4px; left: -28px; }
  .facts { grid-template-columns: 1fr; gap: 22px; }
  .case-split, .pair, .also { margin-top: 80px; }
  .also ul { grid-template-columns: 1fr; gap: 28px; }
  .tile, .cell { padding: 24px; }
  .cell-media { margin: -8px -8px 8px; }
  .roles li { grid-template-columns: 1fr; gap: 4px; }
  .proofs { gap: 44px; }
}
