@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-var-italic.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bone: #F3EDE2; --paper: #F8F4EC; --red: #D33A28; --red-ink: #B42A1B; --ink: #121212; --ink-2: #3A3633; --rule: rgba(18,18,18,.28);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pad: max(clamp(18px, 3.6vw, 52px), env(safe-area-inset-left), env(safe-area-inset-right));
}
* { box-sizing: border-box; }
html { background: var(--bone); -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--bone); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3 { font-weight: 400; margin: 0; }
em { font-style: italic; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* Film grain over everything */
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .11; mix-blend-mode: multiply;
  background-image: 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='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* Announcement bar + header */
.announce { background: var(--red); color: #fff; text-align: center; font: 500 13px/1.35 var(--sans); letter-spacing: .02em; padding: 9px var(--pad); }
.announce span { margin: 0 8px; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 16px var(--pad); background: rgba(243,237,226,.94); border-bottom: 1px solid var(--rule); }
.wordmark { font: 400 34px/1 var(--serif); color: var(--red); text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.wordmark em { margin-right: .04em; }
.wordmark sup, .footer-mark sup { font: 500 .32em var(--sans); vertical-align: super; margin-left: 2px; }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { font: 400 17px/1 var(--serif); color: var(--red-ink); text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 26px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 600 14px/1 var(--sans); font-stretch: 78%; letter-spacing: .04em; text-transform: uppercase; transition: transform .25s ease, background-color .25s ease; }
.pill:hover { transform: translateY(-1px); }
.pill-ink { background: var(--ink); color: #fff; }
.pill-red { background: var(--red); color: #fff; }
.pill-red:hover, .pill-red:focus-visible { background: var(--red-ink); }
.pill.big { min-height: 58px; padding: 0 40px; font-size: 16px; }

/* Render panels: a 2D canvas the 3D engine paints into, plus a still as placeholder/fallback */
.render { position: relative; overflow: hidden; background: #E9E1D3 center / cover no-repeat; }
.render canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.render.bw { filter: grayscale(1) contrast(1.12) brightness(.98); }
.render[data-scene="hero"] { background-image: url("/assets/stills/hero.webp"); }
.render[data-scene="phone"] { background-image: url("/assets/stills/phone.webp"); }
.render[data-scene="arch"] { background-image: url("/assets/stills/arch.webp"); }
.render[data-scene="still"] { background-image: url("/assets/stills/still.webp"); }
.render[data-scene="exam"] { background-image: url("/assets/stills/exam.webp"); }
.render[data-scene="later"] { background-image: url("/assets/stills/later.webp"); }
.render[data-scene="still"], .render[data-scene="exam"], .render[data-scene="cta"] { filter: grayscale(1) contrast(1.12) brightness(.98); }
.render[data-scene="cta"] { background: #0b0b0b; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 60% 40%; min-height: min(86vh, 860px); border-bottom: 1px solid var(--rule); }
.render-hero { min-height: 520px; border-right: 1px solid var(--rule); }
.hero-card { position: absolute; z-index: 3; left: 49%; top: 50%; transform: translateY(-50%); width: min(560px, 42vw); background: var(--red); color: #fff; padding: clamp(36px, 4vw, 64px) clamp(28px, 3.4vw, 56px); text-align: center; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.hero-card h1 { font: 400 clamp(44px, 4.8vw, 74px)/.98 var(--serif); letter-spacing: -.015em; }
.kicker { margin: 22px 0 30px; font-size: 15px; }

/* Hand-drawn marks: drawn on when they scroll into view */
.mark-under, .mark-circle, .mark-scribble { position: relative; display: inline-block; white-space: nowrap; }
.nw { white-space: nowrap; }
.ink { position: absolute; pointer-events: none; overflow: visible; }
.ink path { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.6,.05,.25,1); }
.drawn .ink path, html:not(.js) .ink path { stroke-dashoffset: 0; }
.mark-under .ink { left: -4%; width: 108%; bottom: -.12em; height: .32em; }
.hero-card .mark-under .ink path { stroke: var(--ink); }
.mark-circle .ink { left: -14%; top: -26%; width: 128%; height: 150%; }
.mark-circle.tight .ink { left: -18%; width: 136%; }
.mark-scribble .ink { left: -2%; width: 104%; bottom: -.22em; height: .42em; }
.mark-scribble .ink path { stroke-width: 4.2; }

/* Statement */
.statement { padding: clamp(80px, 10vw, 150px) var(--pad); text-align: center; border-bottom: 1px solid var(--rule); }
.big-red { margin: 0 auto 44px; max-width: 1080px; color: var(--red); font: 400 clamp(34px, 4.4vw, 64px)/1.08 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.big-red.small { font-size: clamp(34px, 4vw, 58px); margin-bottom: 26px; }

/* Ticker */
.ticker { overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--paper); }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 34px; padding: 16px 0; animation: tick 38s linear infinite; }
.ticker span { font: 400 26px/1 var(--serif); text-transform: uppercase; color: var(--red); letter-spacing: -.005em; white-space: nowrap; }
.ticker i { font-style: normal; color: var(--red); font-size: 18px; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track, html.paused .ticker-track { animation-play-state: paused; }

/* Split: render + red panel */
.split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.render-tall { min-height: 760px; }
.split-red { background: var(--red); color: #fff; padding: clamp(56px, 6vw, 96px) clamp(28px, 5vw, 80px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.split-red h2 { font: 400 clamp(48px, 5vw, 76px)/1 var(--serif); margin-bottom: 34px; }
.arch { width: min(300px, 62%); aspect-ratio: 3 / 3.6; border-radius: 999px 999px 0 0; overflow: hidden; margin-bottom: 44px; }
.render-arch { width: 100%; height: 100%; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; width: 100%; max-width: 520px; text-align: left; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 18px 0; border-top: 1px dashed rgba(255,255,255,.55); }
.steps li:last-child { border-bottom: 1px dashed rgba(255,255,255,.55); }
.steps span { font: 400 30px/1 var(--serif); font-style: italic; }
.steps h3 { font: 400 26px/1.1 var(--serif); margin-bottom: 6px; }
.steps p { margin: 0; font-size: 15.5px; color: #fff; }
.fine { font-size: 13.5px; margin: 22px 0 0; }

/* Features */
.features { position: relative; padding: clamp(70px, 8vw, 120px) 0 clamp(70px, 8vw, 120px); border-bottom: 1px solid var(--rule); overflow: hidden; }
.repeat { display: grid; gap: 0; margin-bottom: clamp(40px, 5vw, 70px); }
.repeat span { display: block; white-space: nowrap; font: 400 clamp(64px, 9.5vw, 150px)/.92 var(--serif); text-transform: uppercase; color: var(--red); letter-spacing: -.02em; }
.repeat span:nth-child(2) { transform: translateX(-12%); }
.repeat span:nth-child(3) { transform: translateX(-4%); }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); padding: 0 var(--pad); align-items: start; }
.ink-block { background: var(--ink); padding: clamp(18px, 2vw, 28px); }
.render-square { aspect-ratio: 1 / 1.08; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { padding: 22px 0; border-top: 1px dashed var(--rule); }
.feature-list li:last-child { border-bottom: 1px dashed var(--rule); }
.feature-list h3 { font: 400 30px/1.1 var(--serif); color: var(--red); margin-bottom: 8px; }
.feature-list p { margin: 0; color: var(--ink-2); max-width: 46ch; }

/* Exam */
.exam { position: relative; border-bottom: 1px solid var(--rule); background: #0d0d0d; }
.render-wide { width: 100%; aspect-ratio: 16 / 8.2; }
.exam .render-wide { min-height: 560px; }
.exam::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(270deg, rgba(13,13,13,.9) 0%, rgba(13,13,13,.62) 38%, rgba(13,13,13,0) 62%); }
.exam-copy { position: absolute; z-index: 2; right: var(--pad); bottom: clamp(30px, 5vw, 70px); width: min(460px, 42%); color: #fff; }
.eyebrow { font: 500 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; color: #ff9a8f; }
.exam-copy h2 { font: 400 clamp(44px, 5vw, 76px)/.98 var(--serif); color: #ff6a5c; margin-bottom: 18px; }
.exam-copy p { color: rgba(255,255,255,.86); }

/* Principle */
.principle { padding: clamp(80px, 10vw, 150px) var(--pad); text-align: center; border-bottom: 1px solid var(--rule); }
.principle-sub { max-width: 620px; margin: 0 auto; color: var(--ink-2); }

/* Coming later */
.later { padding: clamp(70px, 8vw, 120px) var(--pad); border-bottom: 1px solid var(--rule); }
.later-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.later h2 { font: 400 clamp(48px, 6vw, 96px)/1 var(--serif); color: var(--red); }
.stamp { font: 600 13px/1 var(--sans); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); border: 1.5px dashed var(--red-ink); border-radius: 999px; padding: 10px 16px; transform: rotate(-4deg); }
.later-intro { max-width: 680px; color: var(--ink-2); margin: 18px 0 34px; }
.dashed { border: 1.5px dashed var(--rule); padding: clamp(10px, 1.4vw, 18px); }
.later-cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.later-cards li { border: 1.5px dashed var(--rule); padding: 18px 18px 22px; font: 400 22px/1.15 var(--serif); }
.later-cards span { display: block; font: italic 400 20px/1 var(--serif); color: var(--red-ink); margin-bottom: 10px; }

/* CTA */
.cta { position: relative; min-height: 78vh; display: grid; place-items: center; overflow: hidden; background: #0b0b0b; }
.render-cover { position: absolute; inset: 0; }
.glow { position: absolute; width: 60vmax; height: 60vmax; left: 50%; top: 55%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(222,63,45,.55), rgba(222,63,45,0) 62%); filter: blur(30px); mix-blend-mode: screen; pointer-events: none; }
.cta { place-items: center start; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(11,11,11,.92) 0%, rgba(11,11,11,.7) 42%, rgba(11,11,11,0) 70%); }
.cta-copy { position: relative; z-index: 2; text-align: left; color: #fff; padding: 80px var(--pad); max-width: 760px; }
.cta-copy h2 { font: 400 clamp(52px, 7vw, 110px)/.95 var(--serif); color: #ff6a5c; margin-bottom: 22px; }
.cta-copy p { color: rgba(255,255,255,.86); margin: 0 0 34px; max-width: 520px; }

/* Footer */
.site-footer { padding: clamp(50px, 6vw, 90px) var(--pad) 40px; }
.footer-mark { margin: 0 0 30px; font: 400 clamp(80px, 15vw, 240px)/.85 var(--serif); color: var(--red); letter-spacing: -.03em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--rule); padding-top: 22px; font-size: 13.5px; color: var(--ink-2); }
.footer-cols p { margin: 0; }
.motion-toggle { margin-top: 22px; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 10px 16px; font: 500 13px/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.motion-toggle[aria-pressed="true"] { background: var(--ink); color: #fff; }

@media (max-width: 1200px) {
  .exam { display: flex; flex-direction: column; }
  .exam::after { display: none; }
  .exam .render-wide { min-height: 0; aspect-ratio: 16 / 9; }
  .exam-copy { position: relative; right: auto; bottom: auto; width: auto; max-width: 720px; padding: 40px var(--pad) 56px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 124px; }
  body::after { mix-blend-mode: normal; opacity: .05; }
  .site-header nav a { padding: 12px 0; }
  .later .render-wide { aspect-ratio: 4 / 3.2; }
  .site-header { flex-wrap: wrap; row-gap: 10px; gap: 14px; }
  .site-header nav { order: 3; width: 100%; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  .wordmark { font-size: 30px; }
  .hero { grid-template-columns: 1fr; }
  .render-hero { min-height: 56svh; border-right: 0; }
  .hero-card { position: relative; left: auto; top: auto; transform: none; width: auto; margin: -90px 18px 34px; }
  .split, .features-grid { grid-template-columns: 1fr; }
  .render-tall { min-height: 70vh; }
  .exam { display: flex; flex-direction: column; }
  .exam .render-wide { min-height: 0; aspect-ratio: 4 / 3.4; }
  .exam-copy { position: relative; right: auto; bottom: auto; width: auto; padding: 34px var(--pad) 50px; }
  .later-cards, .footer-cols { grid-template-columns: 1fr 1fr; }
  .ticker span { font-size: 20px; }
  .cta { place-items: end start; min-height: 92svh; }
  .cta::after { background: linear-gradient(180deg, rgba(11,11,11,0) 20%, rgba(11,11,11,.82) 52%, rgba(11,11,11,.95)); }
}
@media (max-width: 520px) {
  .later-cards, .footer-cols { grid-template-columns: 1fr; }
  .announce { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ink path { transition: none; }
  .pill { transition: none; }
}
