/* Firsthand site. A Halfwind creation.
   Scroll choreography studied from ghost.ai (see docs/ghost-study.md); Factory-style mono labels and one orange signal.
   All artwork, copy and code are original to Firsthand. */

:root {
  --paper: oklch(94.5% 0.002 260);
  --paper-2: oklch(98% 0.002 260);
  --paper-3: oklch(90% 0.003 260);
  --night: oklch(12% 0.012 255);
  --night-2: oklch(19% 0.014 255);
  --ink: oklch(17% 0.006 260);
  --ink-2: oklch(34% 0.006 260);
  --muted: oklch(50% 0.006 260);
  --rule: oklch(82% 0.004 260);
  --on-night: oklch(96% 0.004 260);
  --on-night-2: oklch(76% 0.008 260);
  --orange: oklch(64% 0.2 38);
  --orange-ink: oklch(99% 0.003 60);
  --blue: oklch(55% 0.19 260);
  --blue-2: oklch(49% 0.19 260);
  --blue-line: oklch(70% 0.08 260);
  --blue-soft: oklch(80% 0.06 255);
  --render-bg: oklch(93.3% 0.001 286); /* the exploded video frames sit on rgb(233,233,233) */

  --f-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --f-narrow: "Archivo Narrow", "Archivo", ui-sans-serif, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --s-2xs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 24px; --s-xl: 40px; --s-2xl: 64px; --s-3xl: 96px; --s-4xl: 144px;
  --gutter: clamp(16px, 3vw, 40px);
  --container: 1440px;
  /* Side padding that keeps content inside a centred, capped container at any width. */
  --inset: max(var(--gutter), calc((100vw - var(--container)) / 2));
  --nav-h: 60px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 200ms;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--f-display); -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 900; background-image: var(--grain); opacity: 0.08; mix-blend-mode: multiply; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--s-md); top: var(--s-md); z-index: 1000; padding: var(--s-xs) var(--s-md); background: var(--paper-2); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* Small caps labels, Factory style */
.chips li, .nav, .announce, .spec-row, .parts__tags, .label dt, .gallery__ctrl, .pill, .btn, .notes time, .hero__state, .hero__price, .tabs, .work figcaption, .labs__tag, .screen figcaption, .screen th, .labs__tiers .k, .foot__links, .foot__base, .float-cta, .gallery__slide figcaption, .box span {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Strip, nav, floating button */
.announce { position: relative; z-index: 810; background: var(--orange); color: var(--orange-ink); text-align: center; padding: var(--s-xs) var(--s-md); }
.nav { position: sticky; top: 0; z-index: 800; height: var(--nav-h); margin-bottom: calc(var(--nav-h) * -1); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--inset); color: var(--on-night); transition: color var(--t-fast) var(--ease); }
.nav[data-tone="light"] { color: var(--ink); }
.nav a { text-decoration: none; }
.nav__left { display: flex; gap: var(--s-lg); }
.nav__left a:hover, .foot__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__brand { font: 600 22px/1 var(--f-display); letter-spacing: -0.05em; text-transform: none; }
.nav__right { display: flex; justify-content: flex-end; }
.nav__status { color: var(--orange); }
.float-cta { position: fixed; right: var(--s-lg); bottom: var(--s-lg); z-index: 820; padding: var(--s-sm) var(--s-md); background: var(--blue); color: var(--orange-ink); text-decoration: none; box-shadow: 0 8px 24px oklch(30% 0.1 260 / 0.35); transition: background-color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.float-cta:hover { background: var(--blue-2); }
.float-cta.is-hidden { opacity: 0; pointer-events: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm); min-height: 48px; padding: 0 var(--s-lg); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color var(--t-fast) var(--ease); white-space: nowrap; }
.btn--blue { background: var(--blue); color: var(--orange-ink); }
.btn--blue:hover { background: var(--blue-2); }
.btn--light { background: var(--paper-2); color: var(--ink); }
.btn--light:hover { background: var(--paper-3); }
.btn:active { transform: translateY(1px); }

/* 0-1 Hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--night); color: var(--on-night); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; z-index: 1; background: linear-gradient(to top, oklch(12% 0.012 255 / 0.85), transparent); }
.hero__letters { position: absolute; left: var(--inset); right: var(--inset); top: calc(var(--nav-h) + 2vh); z-index: 2; display: flex; justify-content: space-between; font: 300 clamp(48px, 8.4vw, 140px)/1 var(--f-display); pointer-events: none; }
.hero__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: end; gap: var(--s-xl); padding: var(--s-xl) var(--inset); }
.hero h1 { font-size: clamp(30px, 3.2vw, 50px); max-width: 18ch; }
.hero__copy { display: grid; gap: var(--s-lg); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-xs); list-style: none; margin: 0; padding: 0; }
.chips li { padding: var(--s-xs) var(--s-sm); border: 1px solid var(--blue-line); }
.hero__buy { display: grid; justify-items: end; gap: var(--s-xs); }
.hero__state { color: var(--orange); border: 1px solid var(--orange); padding: var(--s-2xs) var(--s-xs); }
.hero__row { display: flex; align-items: center; gap: var(--s-lg); }
.hero__price { font: 400 clamp(22px, 2vw, 30px)/1 var(--f-display); text-transform: none; letter-spacing: -0.02em; color: var(--on-night-2); }
/* Load entrance: horizon first, then the cap rises and the type arrives */
.js .hero__img { transform: translateY(6%) scale(1.04); opacity: 0.4; transition: transform 1400ms var(--ease), opacity 1000ms var(--ease); }
.js .hero__letters span, .js .hero__bar { opacity: 0; transform: translateY(14px); transition: opacity 900ms var(--ease) 500ms, transform 900ms var(--ease) 500ms; }
.js .hero__letters span { transition-delay: calc(500ms + var(--i, 0) * 50ms); }
.js .hero.is-in .hero__img { transform: none; opacity: 1; }
.js .hero.is-in .hero__letters span, .js .hero.is-in .hero__bar { opacity: 1; transform: none; }
.hero__letters, .hero__bar { will-change: auto; }

/* 2 Skill */
.skill { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-3xl); align-items: center; min-height: 100svh; padding: var(--s-3xl) var(--inset); }
.skill__text { display: grid; gap: var(--s-lg); justify-items: start; max-width: 460px; }
.skill h2 { font-size: clamp(44px, 5.4vw, 84px); }
.skill p { color: var(--ink-2); font-size: 17px; }
.gallery { display: grid; gap: var(--s-sm); }
.gallery__track { position: relative; aspect-ratio: 5 / 4; background: var(--night); overflow: hidden; }
.gallery__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 600ms var(--ease); }
.gallery__slide.is-on { opacity: 1; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__slide figcaption { position: absolute; left: var(--s-md); top: var(--s-md); padding: var(--s-2xs) var(--s-xs); background: var(--paper-2); }
.gallery__ctrl { display: flex; align-items: center; gap: var(--s-sm); }
.dots { display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); }
.dots i.is-on { background: var(--ink); }
.gallery__count { margin-right: auto; color: var(--muted); }
.sq { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink); font: 400 18px/1 var(--f-display); cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
.sq:hover { background: var(--paper-3); }

/* Scroll scenes: a tall wrapper with a sticky full-screen stage */
.scene { position: relative; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }

/* 3-4 Exploded */
.explode { height: 280vh; background: var(--render-bg); }
.explode .stage { background: var(--render-bg); }
.explode .stage { display: grid; grid-template-rows: 1fr auto; padding: calc(var(--nav-h) + var(--s-md)) var(--inset) var(--s-xl); }
.explode__view { position: relative; min-height: 0; transform: scale(calc(1 + var(--push, 0) * 1.6)); filter: blur(calc(var(--push, 0) * 14px)); opacity: calc(1 - var(--push, 0) * 0.9); transform-origin: 62% 52%; }
.explode__view > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Feather the frame edges so the render's own vignette never shows a box. */
.explode__canvas { -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, #000 70%, transparent 100%); }
.explode__a { opacity: calc(1 - var(--p, 0)); }
.explode__b { opacity: var(--p, 0); transform: scale(calc(0.96 + var(--p, 0) * 0.04)); }
.explode.has-frames .explode__a, .explode.has-frames .explode__b { display: none; }
.spec-row { width: min(1180px, 100%); margin: 0 auto; border-collapse: collapse; table-layout: fixed; opacity: calc(1 - var(--push, 0) * 2); }
.spec-row th, .spec-row td { border: 1px solid var(--ink); padding: var(--s-sm) var(--s-md); text-align: center; font-weight: 400; color: var(--ink); }
.spec-row th { background: var(--orange); color: var(--orange-ink); width: 13%; }
.spec-row td { background: color-mix(in oklab, var(--paper) 70%, transparent); }

/* 5 Parts tour */
.parts { height: 360vh; }
.parts .stage { background: var(--paper); }
.parts__blueprint { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: var(--bp, 0); }
.parts__tags { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; opacity: var(--bp, 0); }
.parts__tags li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); padding: var(--s-xs) var(--s-md); background: color-mix(in oklab, var(--paper-2) 85%, transparent); border: 1px solid var(--rule); color: var(--muted); }
.parts__tags li.is-hidden { visibility: hidden; }
.parts__list { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.part { position: absolute; left: calc(50% + (var(--x) - 50%) * var(--m, 0)); top: calc(50% + (var(--y) - 50%) * var(--m, 0)); width: min(40vw, 58svh); transform: translate(-50%, -50%) scale(calc(1 - var(--m, 0) * 0.62)); opacity: var(--o, 0); }
.part img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px oklch(20% 0.01 260 / 0.25)); }
.label { position: absolute; left: 62%; top: 58%; margin: 0; display: grid; grid-template-columns: auto auto; border: 1px solid var(--ink); background: var(--paper-2); opacity: var(--lo, 0); white-space: nowrap; }
.label dt { grid-row: span 2; display: grid; place-items: center; padding: var(--s-sm) var(--s-lg); background: var(--orange); color: var(--orange-ink); }
.label dd { margin: 0; padding: var(--s-sm) var(--s-lg); border-left: 1px solid var(--ink); font: 400 17px/1.3 var(--f-display); letter-spacing: -0.01em; }
.label dd + dd { border-top: 1px solid var(--ink); color: var(--ink-2); }

/* 6-7 Shop: clouds, box, then the shift */
.shop { height: 380vh; }
.shop .stage { background: var(--night); color: var(--on-night); }
.shop__sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: calc(1 - var(--z, 0)); }
.shop__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: var(--z, 0); }
.shop .stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, oklch(15% 0.03 260 / 0.55), transparent 40%, transparent 55%, oklch(15% 0.03 260 / 0.6)); opacity: var(--z, 0); pointer-events: none; }
.shop__box { position: absolute; left: 50%; top: 54%; width: min(52vw, 70svh); transform: translate(-50%, -50%) scale(calc(var(--g, 0.55) + var(--z, 0) * 3)); opacity: calc(1 - var(--z, 0)); filter: drop-shadow(0 40px 60px oklch(30% 0.05 260 / 0.35)); }
.shop__copy { position: absolute; right: var(--inset); top: calc(var(--nav-h) + 8vh); z-index: 2; width: min(420px, 40vw); display: grid; gap: var(--s-md); }
.shop__copy h2 { font-size: clamp(30px, 2.8vw, 44px); }
.shop__copy p { color: color-mix(in oklab, var(--on-night) 85%, transparent); }
.shop__copy--a { opacity: calc(1 - var(--z, 0) * 2); }
.shop__copy--b { opacity: calc(var(--z, 0) * 2 - 1); }
.notes { position: absolute; left: var(--inset); top: calc(var(--nav-h) + 10vh); z-index: 2; margin: 0; padding: 0; list-style: none; width: min(380px, 36vw); opacity: calc(var(--z, 0) * 2 - 1); }
.notes li { display: none; gap: var(--s-xs); }
.notes li.is-on { display: grid; }
.notes time { color: var(--on-night); margin-bottom: var(--s-xs); }
.notes span { padding: var(--s-sm) var(--s-md); border: 1px solid color-mix(in oklab, var(--on-night) 35%, transparent); background: oklch(20% 0.04 260 / 0.35); backdrop-filter: blur(6px); }
.pill { position: absolute; bottom: var(--s-xl); z-index: 2; padding: var(--s-xs) var(--s-md); border: 1px solid color-mix(in oklab, currentColor 45%, transparent); }
.pill--l { left: var(--inset); }
.pill--r { right: calc(var(--inset) + 180px); }

/* 8 POV */
.pov { height: 240vh; }
.pov .stage { color: var(--on-night); }
.pov__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pov .stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, oklch(15% 0.02 260 / 0.65), transparent 45%); pointer-events: none; }
.pov__boxes { position: absolute; inset: 0; z-index: 1; }
.box { position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h); border: 1.5px solid var(--paper-2); opacity: 0; transform: scale(0.96); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.box.is-on { opacity: 1; transform: none; }
.box span { position: absolute; left: -1.5px; bottom: 100%; padding: var(--s-2xs) var(--s-xs); background: var(--paper-2); color: var(--ink); white-space: nowrap; }
.pov__copy { position: absolute; right: var(--inset); top: calc(var(--nav-h) + 8vh); z-index: 2; width: min(420px, 40vw); display: grid; gap: var(--s-md); }
.pov__copy h2 { font-size: clamp(30px, 2.8vw, 44px); }
.pov__copy p { color: color-mix(in oklab, var(--on-night) 85%, transparent); }
.pov .pill { z-index: 2; }

/* 9 Labs */
.labs { background: var(--night); color: var(--on-night); padding: var(--s-4xl) var(--inset) var(--s-3xl); display: grid; gap: var(--s-2xl); }
.labs h2 { text-align: center; font-size: clamp(32px, 3.2vw, 50px); }
.labs__rig { position: relative; height: min(50vw, 600px); }
.labs__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.labs__lines path { fill: none; stroke: color-mix(in oklab, var(--on-night) 45%, transparent); stroke-width: 1.2; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1400ms var(--ease); vector-effect: non-scaling-stroke; }
.labs.is-in .labs__lines path { stroke-dashoffset: 0; }
.labs__box { position: absolute; left: 50%; top: 50%; width: min(18vw, 230px); transform: translate(-50%, -50%); }
.labs__tag { position: absolute; top: 24%; padding: var(--s-2xs) var(--s-xs); background: var(--blue); color: var(--orange-ink); }
.labs__tag--l { left: 33%; }
.labs__tag--r { right: 33%; }
.screen { position: absolute; top: 6%; margin: 0; border: 1px solid color-mix(in oklab, var(--on-night) 25%, transparent); background: var(--night-2); padding: var(--s-md); display: grid; gap: var(--s-sm); }
.screen figcaption { color: var(--on-night-2); }
.screen--laptop { left: 0; width: min(30vw, 380px); }
.screen table { width: 100%; border-collapse: collapse; font: 400 13px/1.4 var(--f-display); }
.screen th { text-align: left; font-size: 10px; color: var(--on-night-2); padding-bottom: var(--s-xs); }
.screen td { padding: var(--s-xs) 0; border-top: 1px solid color-mix(in oklab, var(--on-night) 15%, transparent); }
.screen--phone { right: 0; width: min(18vw, 230px); }
.screen--phone img { aspect-ratio: 9 / 13; object-fit: cover; width: 100%; }
.clipbar { display: flex; gap: 3px; height: 8px; }
.clipbar i { flex: 0 0 var(--w); background: var(--blue-soft); }
.clipbar i:nth-child(2) { background: var(--orange); }
.labs__tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid color-mix(in oklab, var(--on-night) 25%, transparent); }
.labs__tiers > div { display: grid; gap: var(--s-md); padding: var(--s-lg) var(--s-lg) 0 0; }
.labs__tiers .k { color: var(--orange); }
.labs__tiers p:last-child { font-size: 18px; line-height: 1.35; color: var(--on-night-2); }

/* 10 Work */
.work { height: 270vh; }
.work .stage { background-color: var(--paper); background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 120px 120px; background-position: center; }
.tabs { position: absolute; left: 50%; top: calc(var(--nav-h) + 4vh); transform: translateX(-50%); z-index: 3; display: flex; border: 1px solid var(--blue); background: var(--paper-2); }
.tabs button { min-width: 120px; min-height: 40px; padding: 0 var(--s-md); border: 0; background: none; color: var(--blue); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--blue); color: var(--orange-ink); }
.work__cap { position: absolute; left: 50%; top: 52%; width: min(34vw, 56svh); transform: translate(-50%, -50%); }
.work__set { position: absolute; inset: 0; }
.work__set figure img { width: 100%; height: auto; }
.work__set figure { position: absolute; left: var(--x); top: var(--y); width: clamp(110px, 12vw, 180px); margin: 0; transform: translate(-50%, -50%) scale(0.9); opacity: 0; display: grid; justify-items: center; gap: var(--s-xs); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.work__set.is-on figure { opacity: 1; transform: translate(-50%, -50%); }
.work__set.is-on figure:nth-child(2) { transition-delay: 60ms; } .work__set.is-on figure:nth-child(3) { transition-delay: 120ms; } .work__set.is-on figure:nth-child(4) { transition-delay: 180ms; }
.work figcaption { color: var(--ink-2); }
.work figcaption::before { content: ""; display: block; width: 8px; height: 8px; margin: 0 auto var(--s-2xs); border: 1px solid var(--ink-2); }
.work__cap-line { position: absolute; left: 50%; bottom: 9vh; transform: translateX(-50%); font-size: 18px; opacity: 0; transition: opacity 300ms var(--ease); text-align: center; width: min(560px, 90vw); }
.work__set.is-on .work__cap-line { opacity: 1; }

/* 10b Robots */
.robots { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: var(--on-night); }
.robots__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.08 - var(--r, 0) * 0.08)); }
.robots::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, oklch(12% 0.012 255 / 0.8), oklch(12% 0.012 255 / 0.15) 55%, transparent); }
.robots__copy { position: absolute; left: var(--inset); top: 50%; transform: translateY(-50%); z-index: 2; width: min(520px, 80vw); display: grid; gap: var(--s-md); }
.robots h2 { font-size: clamp(40px, 4.6vw, 72px); }
.robots__copy p { color: var(--on-night-2); font-size: 17px; }
.robots .pill { color: var(--on-night); }

/* 11 Close */
.close { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--night); color: var(--on-night); display: grid; place-items: center; }
.close__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.close__copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--s-lg); margin-top: -40vh; }
.close h2 { font-size: clamp(30px, 3vw, 48px); }

/* 12 Footer */
.foot__plate { position: relative; padding: var(--s-xl) var(--inset) var(--s-lg); background: var(--paper-3); overflow: hidden; }
.foot__links { display: flex; justify-content: flex-end; gap: var(--s-lg); }
.foot__links a { text-decoration: none; }
.foot__word { margin: var(--s-xl) 0 0; text-align: center; font: 600 min(20vw, 340px)/0.8 var(--f-display); letter-spacing: -0.06em; color: var(--paper-3); text-shadow: 1px 1px 0 var(--paper-2), -1px -1px 0 oklch(78% 0.004 260), 3px 5px 10px oklch(68% 0.006 260 / 0.5); user-select: none; }
.foot__base { display: flex; justify-content: space-between; align-items: center; gap: var(--s-md); flex-wrap: wrap; margin-top: var(--s-lg); color: var(--muted); }
.foot__halfwind { display: inline-flex; align-items: center; gap: var(--s-xs); text-decoration: none; color: var(--ink); }
.foot__halfwind:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Phones and small tablets */
@media (max-width: 60rem) {
  .nav__left { display: none; }
  .nav { grid-template-columns: 1fr auto 1fr; }
  .hero__bar { flex-direction: column; align-items: start; }
  .hero__buy { justify-items: start; }
  .skill { grid-template-columns: minmax(0, 1fr); gap: var(--s-2xl); min-height: 0; }
  .part { width: min(70vw, 42svh); }
  .label { left: 50%; top: 100%; transform: translateX(-50%); }
  .parts__tags li { font-size: 10px; padding: var(--s-2xs) var(--s-xs); }
  .shop__copy, .pov__copy { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 14vh; }
  .notes { width: auto; right: var(--gutter); }
  .pill--r { right: var(--gutter); }
  .pill--l { display: none; }
  .labs__rig { height: auto; display: grid; gap: var(--s-lg); }
  .labs__lines, .labs__tag { display: none; }
  .labs__box, .screen { position: static; transform: none; width: 100%; max-width: 360px; justify-self: center; }
  .labs__tiers { grid-template-columns: minmax(0, 1fr); }
  .spec-row th, .spec-row td { padding: var(--s-xs) 4px; font-size: 9px; }
  .work__set figure { width: 92px; }
  .tabs button { min-width: 88px; }
  .float-cta { right: var(--s-md); bottom: var(--s-md); }
}

@media (max-width: 40rem) {
  .shop .stage::before { content: ""; position: absolute; inset: 45% 0 0; z-index: 1; background: linear-gradient(to top, oklch(18% 0.04 260 / 0.75), transparent); pointer-events: none; }
  .shop__box { width: 84vw; top: 42%; }
  .hero__img { object-fit: contain; object-position: 50% 42%; transform: scale(1.35); }
  .js .hero.is-in .hero__img { transform: scale(1.35); }
  .hero__letters { top: calc(var(--nav-h) + 1vh); }
  .close__copy { position: absolute; top: 14%; margin-top: 0; }
  .spec-row { display: none; }
  .pov__boxes { display: none; }
  .work__cap { width: 78vw; }
  .work__set figure { width: 76px; }
  .work figcaption { font-size: 10px; }
  .tabs { width: calc(100% - 2 * var(--gutter)); }
  .tabs button { flex: 1; min-width: 0; padding: 0 var(--s-xs); }
  .close__img { object-fit: contain; object-position: 50% 70%; }
  .explode__view > img { object-fit: cover; }
  .hero__letters { font-size: 11vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .hero__img, .js .hero__letters span, .js .hero__bar { opacity: 1; transform: none; }
}
