/* Inkmaw homepage. Its own look (the game's), separate from site.css. No inline styles: the site's CSP forbids them. */
@font-face { font-family: "Bebas Neue"; src: url("/inkmaw/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0f0c0a; --bg2: #16120f; --line: rgba(241, 236, 223, .1);
  --ink: #f1ecdf; --muted: #b3ab9e; --dim: #8a8276;
  --red: #e8434f; --gold: #f5bf2e; --blue: #2e9be6;
  --wrap: 1200px; --gut: clamp(16px, 4vw, 40px);
  --disp: "Bebas Neue", Impact, "Arial Narrow", sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* film grain over everything, like the paintings */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--disp); font-weight: 400; letter-spacing: .01em; line-height: .95; margin: 0; }
h2 { font-size: clamp(42px, 6vw, 76px); }
section[id] { scroll-margin-top: 84px; }
.status > span:not(.dot):not(.sep) { white-space: nowrap; }
h3 { font-size: 30px; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: #120e08; padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.kicker { font: 800 13px/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.head { margin-bottom: clamp(32px, 5vw, 56px); }
.headrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 8px;
  font: 400 24px/1 var(--disp); letter-spacing: .04em; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; white-space: nowrap; }
.btn-gold { color: #1a1206; background: linear-gradient(180deg, #ffd65c, #f3ac1d); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 30px -8px rgba(245, 175, 30, .55); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 16px 40px -8px rgba(245, 175, 30, .75); }
.btn-ghost { color: var(--ink); border: 1px solid rgba(241, 236, 223, .28); background: rgba(15, 12, 10, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 20px; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top); }
.nav.solid { background: rgba(15, 12, 10, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.navin { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { position: relative; font: 400 30px/1 var(--disp); letter-spacing: .03em; text-decoration: none; padding-bottom: 6px; }
.logo i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--red) 0 33.3%, var(--gold) 33.3% 66.6%, var(--blue) 66.6%); }
.navlinks { display: flex; gap: 30px; margin-left: auto; }
.navlinks a { font: 600 14px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.navlinks a:hover { color: var(--ink); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 110px 0 80px; isolation: isolate; }
.hero-art { position: absolute; inset: 0 0 0 auto; width: min(62vw, 1000px); z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: .62; transform: scale(1.04); animation: breathe 14s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%), linear-gradient(0deg, transparent 0, #000 22%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 38%), linear-gradient(0deg, transparent 0, #000 22%); mask-composite: intersect; }
@keyframes breathe { to { transform: scale(1.1) translateY(-1.5%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 22% 55%, rgba(232, 67, 79, .1), transparent 70%), radial-gradient(40% 50% at 85% 85%, rgba(46, 155, 230, .08), transparent 70%); }
.hero-copy { position: relative; z-index: 2; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.status { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(22, 18, 15, .6);
  font: 600 13px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #5bd17a; box-shadow: 0 0 0 0 rgba(91, 209, 122, .6); animation: ping 2.2s infinite; }
.status .sep { color: var(--dim); }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(91, 209, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 209, 122, 0); } }
.wordmark { font-size: clamp(88px, 15vw, 200px); line-height: .82; letter-spacing: .015em; text-shadow: 0 6px 0 rgba(0,0,0,.45); display: inline-block; }
.wordmark .bar { display: flex; height: clamp(6px, .8vw, 10px); margin-top: clamp(10px, 1.4vw, 18px); }
.wordmark .bar i { flex: 1; transform: scaleX(0); transform-origin: left; animation: bar .7s var(--ease) forwards; }
.wordmark .bar i:nth-child(1) { background: var(--red); animation-delay: .25s; }
.wordmark .bar i:nth-child(2) { background: var(--gold); animation-delay: .4s; }
.wordmark .bar i:nth-child(3) { background: var(--blue); animation-delay: .55s; }
@keyframes bar { to { transform: none; } }
.tagline { font: 400 clamp(30px, 3.4vw, 44px)/1.05 var(--disp); letter-spacing: .02em; margin-top: 26px; }
.lede { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 27em; margin-top: 14px; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--dim); font: 600 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }

/* the card fan */
.fan { position: relative; left: 5vw; height: clamp(380px, 46vw, 560px); --mx: 0; --my: 0; perspective: 1400px; }
.fan .c { position: absolute; left: 50%; bottom: 6%; width: clamp(150px, 15vw, 215px); height: auto; transform-origin: 50% 120%;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.6)); transition: transform .8s var(--ease); opacity: 0; animation: deal .9s var(--ease) forwards; }
.fan .c1 { --r: -24deg; --x: -136%; --y: 8%; --z: 1; animation-delay: .3s; }
.fan .c2 { --r: -12deg; --x: -93%; --y: 2%; --z: 2; animation-delay: .4s; }
.fan .c3 { --r: 0deg; --x: -50%; --y: -3%; --z: 5; animation-delay: .5s; }
.fan .c4 { --r: 12deg; --x: -7%; --y: 2%; --z: 2; animation-delay: .6s; }
.fan .c5 { --r: 24deg; --x: 36%; --y: 8%; --z: 1; animation-delay: .7s; }
.fan .c { z-index: var(--z); transform: translate(calc(var(--x) + var(--mx) * var(--z) * 4px), calc(var(--y) + var(--my) * var(--z) * 3px)) rotate(var(--r)); }
.fan .c3 { width: clamp(170px, 17.5vw, 250px); }
.fan:hover .c1 { --r: -27deg; --x: -146%; }
.fan:hover .c2 { --r: -13deg; --x: -98%; }
.fan:hover .c4 { --r: 13deg; --x: -2%; }
.fan:hover .c5 { --r: 27deg; --x: 46%; }
.fan:hover .c3 { --y: -8%; }
@keyframes deal { from { opacity: 0; translate: 0 60px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
.scrollcue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(241,236,223,.35); border-radius: 14px; }
.scrollcue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* numbers */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.nums { display: grid; grid-template-columns: repeat(5, 1fr); }
.num { padding: 30px 12px; text-align: center; border-left: 1px solid var(--line); }
.num:first-child { border-left: 0; }
.num b { display: block; font: 400 clamp(44px, 5vw, 64px)/1 var(--disp); color: var(--ink); }
.num b::after { content: attr(data-plus); color: var(--gold); }
.num span { display: block; margin-top: 6px; font: 600 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* marquee */
.marquee { padding: 56px 0 20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 22px; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track img { width: 168px; height: auto; transition: transform .35s var(--ease); filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }
.track img:nth-child(odd) { transform: rotate(-2deg); }
.track img:nth-child(even) { transform: rotate(2deg) translateY(8px); }
.track img:hover { transform: translateY(-10px) scale(1.06); }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
section.how, section.gallery, section.collect, section.modes, section.fair { padding: clamp(72px, 9vw, 120px) 0; }
section.gallery { padding-top: 0; }
section.fair { padding-top: 0; }
.howgrid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; }
.sn { font: 400 52px/.9 var(--disp); color: transparent; -webkit-text-stroke: 1.5px rgba(241, 236, 223, .45); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }
.step em { font-style: normal; font-weight: 700; }
em.r { color: var(--red); } em.b { color: var(--blue); } em.y { color: var(--gold); }
.device { margin: 0; }
.phone { position: relative; padding: 12px 22px; border-radius: 34px; background: linear-gradient(145deg, #2a2420, #0c0a09 60%); box-shadow: 0 0 0 1px rgba(255,255,255,.07) inset, 0 50px 90px -30px rgba(0,0,0,.9), 0 0 120px -40px rgba(245,191,46,.25); }
.phone::before { content: ""; position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #050404; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.phone img { border-radius: 14px; width: 100%; height: auto; }
.device figcaption { margin-top: 16px; text-align: center; color: var(--dim); font-size: 14px; }

/* gallery rail */
.arrows { display: flex; gap: 10px; }
.arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(241,236,223,.25); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.arrow:hover { background: rgba(241,236,223,.08); border-color: var(--ink); }
.arrow:disabled { opacity: .3; cursor: default; background: transparent; border-color: rgba(241,236,223,.25); }
.arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))) 20px; scrollbar-width: none; scroll-padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); }
.rail::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 min(70vw, 860px); margin: 0; scroll-snap-align: start; }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(0,0,0,.9); }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.shot figcaption b { display: block; font: 400 26px/1 var(--disp); color: var(--ink); letter-spacing: .02em; margin-bottom: 4px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dots i { cursor: pointer; width: 8px; height: 8px; border-radius: 4px; background: rgba(241,236,223,.22); transition: width .3s var(--ease), background .3s; }
.dots i.on { width: 26px; background: var(--gold); }

/* collect */
.collect { background: radial-gradient(70% 80% at 80% 50%, rgba(46,155,230,.09), transparent 70%), var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.collectgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.collect-copy > p { color: var(--muted); margin-top: 20px; max-width: 34em; }
.collect-copy .small { font-size: 15px; color: var(--dim); }
.prints { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prints li { font: 400 19px/1 var(--disp); letter-spacing: .06em; padding: 8px 12px 7px; border-radius: 6px; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.p-plain { color: #e8e2d4; } .p-ink { color: #c9c3ff; } .p-red { color: #ff6b75; } .p-blue { color: #5cb8ff; } .p-gold { color: #ffd65c; }
.p-gilt { color: #f3c862; background: linear-gradient(135deg, rgba(243,200,98,.18), rgba(0,0,0,.25)) !important; }
.p-night { color: #a9b6ff; } .p-lit { color: #ffb45c; box-shadow: 0 0 18px -4px rgba(255,180,92,.6); }
.tilts { position: relative; height: clamp(380px, 42vw, 520px); }
.tilt { position: absolute; top: 50%; left: 50%; width: clamp(170px, 18vw, 240px); transform-style: preserve-3d; --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  transition: transform .5s var(--ease); cursor: grab; }
.tilt img { width: 100%; height: auto; filter: drop-shadow(0 30px 34px rgba(0,0,0,.65)); }
.tilt .glare { position: absolute; inset: 5% 6%; border-radius: 12px; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.75), transparent 55%); }
.tilt:hover .glare { opacity: 1; }
.t1 { transform: translate(-125%, -46%) rotate(-9deg) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.t2 { transform: translate(-50%, -54%) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); z-index: 2; width: clamp(200px, 21vw, 280px); }
.t3 { transform: translate(25%, -46%) rotate(9deg) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.tilt.live { transition: transform .08s linear; }

/* modes */
.modegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode { position: relative; min-height: 250px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); display: flex; align-items: flex-end; isolation: isolate; }
.mode img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease), opacity .4s; opacity: .75; }
.mode::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,12,10,0) 25%, rgba(15,12,10,.92) 85%); }
.mode:hover img { transform: scale(1.06); opacity: .95; }
.mode > div { padding: 20px 20px 22px; }
.mode h3 { font-size: 30px; }
.mode p { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.45; }
.m-wide { grid-column: span 2; grid-row: span 2; min-height: 516px; }
.m-half { grid-column: span 2; min-height: 230px; }
.m-half img { object-position: 50% 30%; }
.m-daily img { object-position: 50% 100%; transform: scale(1.18); transform-origin: 50% 100%; }
.m-daily:hover img { transform: scale(1.24); }
.m-wide h3 { font-size: 44px; }
.m-wide img { object-position: 50% 20%; }

/* fair */
.fair { background: var(--bg); }
.fairgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fitem { padding: 28px 24px 30px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(241,236,223,.035), transparent); }
.fitem svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 20px; }
.fitem h3 { font-size: 28px; margin-bottom: 10px; }
.fitem p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* final */
.final { position: relative; padding: clamp(120px, 16vw, 200px) 0; overflow: hidden; isolation: isolate; text-align: center; }
.final-art { position: absolute; inset: 0; z-index: -1; }
.final-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; opacity: .8; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 50%, rgba(15,12,10,.62), rgba(15,12,10,.2) 70%, var(--bg) 100%), linear-gradient(180deg, var(--bg), transparent 25%, transparent 75%, var(--bg)); }
.final h2 { font-size: clamp(60px, 10vw, 130px); }
.final p { color: var(--muted); font-size: 19px; margin: 18px auto 0; max-width: 30em; }
.final .ctas { justify-content: center; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.footin { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
.foot p { color: var(--dim); font-size: 14px; margin-top: 16px; }
.footnav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footnav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.footnav a:hover { color: var(--ink); }
.foot .copy { grid-column: 1 / -1; margin-top: 8px; font-size: 13px; }

/* sticky play button on phones */
.stickycta { display: none; }

/* reveal on scroll (only once JS has said it runs) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* --- narrow desktops and tablets: the hero stacks --- */
@media (max-width: 1120px) {
  .hero-in { grid-template-columns: 1fr; }
  .fan { left: 0; height: clamp(330px, 50vw, 460px); }
  .fan .c { width: clamp(140px, 22vw, 200px); }
  .fan .c3 { width: clamp(160px, 25vw, 228px); }
  .hero-art { width: 100%; }
  .hero-art img { opacity: .38; -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 40%); mask-image: linear-gradient(0deg, transparent 0, #000 40%); }
  .lede { max-width: 34em; }
}
/* --- tablet --- */
@media (max-width: 980px) {
  .navlinks { display: none; }
  .hero-in, .howgrid, .collectgrid { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .hero-art { width: 100%; }
  .hero-art img { opacity: .38; -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 40%); mask-image: linear-gradient(0deg, transparent 0, #000 40%); }
  .fan { height: clamp(300px, 52vw, 420px); }
  .fan .c { width: clamp(120px, 21vw, 180px); }
  .fan .c3 { width: clamp(138px, 24vw, 205px); }
  .modegrid { grid-template-columns: repeat(2, 1fr); }
  .m-wide { grid-row: auto; min-height: 320px; }
  .m-half { min-height: 230px; }
  .fairgrid { grid-template-columns: repeat(2, 1fr); }
  .nums { grid-template-columns: repeat(5, 1fr); }
  .tilts { height: clamp(330px, 70vw, 480px); }
  .tilt { width: clamp(130px, 27vw, 210px); }
  .t2 { width: clamp(150px, 31vw, 240px); }
}
/* --- phone --- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .navin { height: 60px; }
  .nav .btn-sm { display: none; }
  .wordmark { font-size: clamp(78px, 25vw, 120px); }
  .tagline { margin-top: 20px; }
  .ctas .btn { flex: 1 1 100%; }
  .status { font-size: 11px; letter-spacing: .06em; }
  .fan { height: clamp(210px, 62vw, 270px); margin-top: 6px; }
  .fan .c { width: clamp(80px, 23vw, 118px); bottom: 4%; }
  .fan .c3 { width: clamp(94px, 27vw, 136px); }
  .scrollcue { display: none; }
  .nums { grid-template-columns: repeat(3, 1fr); }
  .num { padding: 22px 6px; border-bottom: 1px solid var(--line); }
  .num:nth-child(4) { border-left: 0; }
  .num:nth-child(n+4) { border-bottom: 0; }
  .marquee { padding-top: 36px; }
  .track img { width: 120px; }
  .headrow { align-items: flex-start; flex-direction: column; }
  .arrows { display: none; }
  .shot { flex-basis: 86vw; }
  .phone { padding: 7px 12px; border-radius: 20px; }
  .phone img { border-radius: 9px; }
  .step { grid-template-columns: 48px 1fr; gap: 12px; }
  .sn { font-size: 40px; }
  .modegrid, .fairgrid { grid-template-columns: 1fr; }
  .m-wide, .m-half { grid-column: auto; grid-row: auto; }
  .m-wide { min-height: 300px; }
  .mode { min-height: 210px; }
  .status .sep, .status .s2 { display: none; }
  .tilts { scale: .86; height: 300px; }
  .hero-art img { opacity: .26; }
  .nums { display: flex; flex-wrap: wrap; }
  .num { flex: 1 1 33%; }
  .num:nth-child(n+4) { flex-basis: 50%; }
  .footin { grid-template-columns: 1fr; }
  .stickycta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(15,12,10,0), rgba(15,12,10,.92) 40%); transform: translateY(110%); transition: transform .4s var(--ease); }
  .stickycta .btn { width: 100%; }
  .stickycta.on { transform: none; }
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* a phone held sideways: keep the hero to one screen */
@media (max-height: 520px) and (min-width: 641px) {
  .hero { min-height: 0; padding: 84px 0 36px; }
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
  .hero-art { width: 60vw; }
  .hero-art img { opacity: .5; }
  .wordmark { font-size: 84px; }
  .status { margin-bottom: 12px; font-size: 11px; padding: 6px 12px; }
  .status .sep, .status .s2 { display: none; }
  .tagline { font-size: 24px; margin-top: 14px; max-width: 13em; }
  .ctas .btn-ghost { display: none; }
  .lede, .facts, .scrollcue { display: none; }
  .ctas { margin-top: 18px; }
  .ctas .btn { min-height: 46px; font-size: 21px; padding: 0 20px; }
  .fan { height: 250px; }
  .fan .c { width: 104px; }
  .fan .c3 { width: 120px; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .track img { width: 100px; }
  .track img:nth-child(n+4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .track { animation: none !important; justify-content: center; width: auto; }
  .track img:nth-child(n+7) { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
