/* REEBOO Labs website v1. Colours, type and spacing from Brand/tokens.css v1.0 (2026-10-20). */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the swap to Outfit does not shift the layout. */
@font-face {
  font-family: "Outfit Fallback";
  src: local("Segoe UI"), local("Arial");
  size-adjust: 98%;
  ascent-override: 102%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  --ink: #101217;
  --cream: #F1EEE6;
  --red: #FF4A3D;
  --red-700: #AE3730;
  --n-900: #191B1F;
  --n-850: #222428;
  --n-800: #303134;
  --n-700: #464749;
  --n-600: #666666;
  --n-400: #A4A3A0;
  --n-300: #C4C2BD;

  --bg: var(--ink);
  --fg: var(--cream);
  --muted: var(--n-400);
  --line: var(--n-800);
  --focus: var(--red);

  --font: "Outfit", "Outfit Fallback", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --cell: 8px;
  --margin: clamp(20px, 4vw, 64px);
  --gutter: 24px;
  --max: 1440px;
  --r-chip: 4px;
  --r-btn: 8px;
  --r-media: 12px;
  --header-h: 72px;

  --t-display: clamp(3rem, 6.6vw, 6rem);
  --t-h2: clamp(2.25rem, 4.4vw, 3.5rem);
  --t-h3: 1.5rem;
  --t-lead: clamp(1.125rem, 1.4vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-label: 0.75rem;

  color-scheme: dark;
  scrollbar-color: var(--n-700) var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-chip); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--margin); top: 12px; z-index: 100;
  background: var(--cream); color: var(--ink); padding: 12px 16px; border-radius: var(--r-btn);
  font-weight: 600; text-decoration: none; translate: 0 -200%;
  transition: translate 240ms var(--ease);
}
.skip-link:focus-visible { translate: 0 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-left: 40px; padding-right: 40px; padding-inline: var(--margin); }
.num { font-variant-numeric: tabular-nums; }
.label {
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.33;
}
.lead { font-size: var(--t-lead); line-height: 1.45; color: var(--muted); max-width: 38ch; }

/* Inline links in running text keep an underline at rest. */
.prose a, .inline-link {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color 240ms var(--ease);
}
.prose a:hover, .inline-link:hover { text-decoration-color: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--cream); --btn-fg: var(--ink); --chip: var(--ink);
  --flood: var(--red); --flood-fg: var(--ink); --flood-line: var(--red); --flood-chip: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 52px; padding: 8px 8px 8px 20px;
  border-radius: var(--r-btn); border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 0 0 0 var(--flood);
  transition: box-shadow 200ms steps(4, end), color 0ms linear 100ms, border-color 200ms var(--ease), background-color 0ms linear 0ms, translate 120ms var(--ease);
}
/* The flood steps up in pixel rows (box-shadow); the fill then settles to the same colour. */
.btn:hover, .btn:focus-visible {
  background-color: var(--flood); color: var(--flood-fg); border-color: var(--flood-line);
  box-shadow: inset 0 -64px 0 0 var(--flood); --chip: var(--flood-chip);
  transition: box-shadow 200ms steps(4, end), color 0ms linear 100ms, border-color 200ms var(--ease), background-color 0ms linear 200ms, translate 120ms var(--ease);
}
.btn:active { translate: 0 1px; }
.btn__chip {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: var(--r-chip);
  background: var(--chip); transition: background-color 0ms linear 100ms;
}
/* 2 x 2 red pupil, same proportions as the logo pixel (cell 0.88, gap 0.12) */
.pupil {
  position: absolute; left: 13px; top: 9px; width: 5px; height: 5px; border-radius: 1px;
  background: var(--red);
  box-shadow: 6px 0 0 var(--red), 0 6px 0 var(--red), 6px 6px 0 var(--red);
  transition: translate 160ms steps(2, end);
}
.btn:hover .pupil, .btn:focus-visible .pupil { translate: 6px 6px; }
.btn--sm { min-height: 44px; padding: 4px 4px 4px 16px; gap: 12px; font-size: 0.9375rem; }
.btn--sm .btn__chip { width: 34px; height: 34px; }
.btn--sm .pupil { left: 12px; top: 8px; }

/* Secondary: outline that floods cream in pixel steps */
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--cream);
  border-color: color-mix(in srgb, var(--cream) 40%, transparent);
  padding: 8px 20px;
}
.btn--ghost { --flood: var(--cream); --flood-fg: var(--ink); --flood-line: var(--cream); }
.btn--ghost.btn--sm { padding: 4px 16px; }

/* Text link with pixel-stepped underline (nav, utility, "see all") */
.line-link {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; font-weight: 500;
}
.line-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 180ms steps(6, end);
}
.line-link:hover::after, .line-link:focus-visible::after, .line-link[aria-current="true"]::after { transform: scaleX(1); }
.arrow-px { width: 14px; height: 10px; flex: none; transition: translate 160ms steps(2, end); }
.line-link:hover .arrow-px, .line-link:focus-visible .arrow-px { translate: 4px 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: translate 500ms var(--ease), background-color 300ms var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 8%, transparent);
  opacity: 0; transition: opacity 300ms var(--ease);
}
html.is-scrolled .site-header::before { opacity: 1; }
html.header-away .site-header { translate: 0 -100%; }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: block; flex: none; padding: 8px 0; }
.brand::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cream);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 180ms steps(6, end);
}
.brand:hover::after, .brand:focus-visible::after { transform: scaleX(1); }
.brand img { width: 184px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__list a { font-size: 0.9375rem; color: var(--cream); }
.nav-toggle { display: none; }
.nav-toggle[hidden] { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 860px); display: grid; align-items: end;
  padding-top: calc(var(--header-h) + 24px); padding-bottom: clamp(40px, 7vh, 88px);
  background: var(--ink);
  overflow: clip;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/reeboo-labs_pattern_overlay-light_tile960.png") 0 0 / 480px 480px repeat;
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  min-height: calc(min(100svh, 860px) - var(--header-h) - 24px - clamp(40px, 7vh, 88px)); align-items: end;
}
.hero__goggles {
  grid-column: 7 / span 6; grid-row: 1; align-self: start; justify-self: end;
  width: min(100%, 680px, 72vh); margin-top: clamp(16px, 6vh, 72px);
}
.hero__copy { grid-column: 1 / span 7; grid-row: 1; align-self: end; }
.hero h1 { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.3; }
.hero__kicker { display: block; max-width: 30ch; margin-bottom: 24px; font-weight: 600; letter-spacing: 0; text-wrap: balance; }
.hero__tag { display: block; font-size: var(--t-display); line-height: 1; letter-spacing: -0.01em; max-width: 9.5em; }
.hero__sub { margin-top: 24px; font-size: var(--t-lead); line-height: 1.45; color: var(--n-300); max-width: 44ch; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 16px; }

/* Goggles (inline SVG built from Logo/Kit/geometry.json) */
.goggles { width: 100%; height: auto; overflow: visible; }
.goggles .frame { fill: var(--cream); }
.goggles .px-pupil { fill: var(--red); }
/* Boot: the goggles draw in row by row, like a sprite loading; pupils arrive last. CSS only, so it never depends on JS. */
@media (prefers-reduced-motion: no-preference) {
  .goggles .frame, .goggles .pupils-wrap { animation: px-on 1ms steps(1, end) both; }
  .goggles .frame[y="0.06"] { animation-delay: 80ms; }
  .goggles .frame[y="1.06"] { animation-delay: 140ms; }
  .goggles .frame[y="2.06"] { animation-delay: 200ms; }
  .goggles .frame[y="3.06"] { animation-delay: 260ms; }
  .goggles .frame[y="4.06"] { animation-delay: 320ms; }
  .goggles .frame[y="5.06"] { animation-delay: 380ms; }
  .goggles .frame[y="6.06"] { animation-delay: 440ms; }
  .goggles .pupils-wrap { animation-delay: 620ms; }
}
@keyframes px-on { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 112px 0; padding-block: clamp(80px, 9vw, 128px); }
.section__head h2 { font-size: 3rem; font-size: var(--t-h2); line-height: 1.05; }
.section__head p { margin-top: 20px; }

/* What we make: type index */
.make .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.make .section__head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.make__list { grid-column: 6 / span 7; border-top: 1px solid var(--line); padding-top: 4px; }
.make__item {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px var(--gutter); align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.make__name {
  font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -0.01em;
}
.make__desc { color: var(--n-300); max-width: 46ch; }
.make__engines { grid-column: 6 / span 7; margin-top: 32px; color: var(--muted); font-size: var(--t-small); max-width: 58ch; }

/* Featured packs: pinned goggles rail + staggered grid */
.packs { padding-top: clamp(64px, 8vw, 128px); }
.packs .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.packs__rail { grid-column: 1 / span 4; }
.packs__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.packs__rail .goggles { width: min(100%, 288px); margin-top: 48px; }
.readout {
  margin-top: 28px; padding: 16px 18px; border-radius: var(--r-media);
  background: var(--n-900); border: 1px solid var(--line); max-width: 320px; min-height: 88px;
}
.readout__meta { color: var(--muted); }
.readout__name { margin-top: 6px; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.packs__grid {
  grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px var(--gutter);
  padding-top: 8px;
}
.packs__grid > li:nth-child(even) { translate: 0 120px; }
.packs__more { grid-column: 5 / span 8; margin-top: 136px; display: flex; justify-content: flex-end; }
.packs { padding-bottom: clamp(64px, 6vw, 88px); }

.card { display: flex; flex-direction: column; height: 100%; }
.card__media {
  position: relative; overflow: hidden; border-radius: var(--r-media); aspect-ratio: 63 / 50;
  background: var(--n-900); outline: 1px solid color-mix(in srgb, var(--cream) 8%, transparent); outline-offset: -1px;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 700ms var(--ease); }
.card:hover .card__media img, .card:focus-within .card__media img { scale: 1.03; }
.card__meta { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: var(--muted); font-size: var(--t-small); }
.card__title { margin-top: 10px; font-size: var(--t-h3); line-height: 1.2; font-weight: 700; }
.card__text { margin-top: 10px; color: var(--n-300); }
.card__foot { margin-top: auto; padding-top: 20px; }
.card__price { font-size: 1.25rem; font-weight: 600; }
.card__sale { margin-top: 2px; font-size: var(--t-small); color: var(--muted); }
.card__sale strong { color: var(--cream); font-weight: 600; }
.card__actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.card__actions .btn { padding: 4px 18px; }

/* Free samples: the one cream section */
.samples {
  --bg: var(--cream); --fg: var(--ink); --muted: var(--n-600); --line: rgba(16, 18, 23, 0.14); --focus: var(--red-700);
  color-scheme: light;
  background: var(--cream);
  color: var(--ink);
  isolation: isolate;
}
.samples::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/reeboo-labs_pattern_overlay-dark_tile960.png") 0 0 / 480px 480px repeat;
}
.samples .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.samples .section__head { grid-column: 1 / span 7; }
.samples .section__head p { color: var(--n-700); max-width: 52ch; font-size: var(--t-lead); line-height: 1.45; }
.samples__cta { grid-column: 1 / span 12; margin-top: 32px; }
.samples .btn { --btn-bg: var(--ink); --btn-fg: var(--cream); --chip: #000000; --flood: var(--red-700); --flood-fg: var(--cream); --flood-line: var(--red-700); --flood-chip: var(--ink); }
.samples ::selection { background: var(--ink); color: var(--cream); }
.samples { padding-bottom: clamp(72px, 8vw, 104px); }
.samples__list {
  background: var(--cream);
  grid-column: 1 / span 12; margin-top: 72px; columns: 3; column-gap: var(--gutter);
  border-top: 2px solid var(--ink); padding-top: 8px;
}
.samples__list li { break-inside: avoid; }
.samples__list a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 8px; margin-inline: -8px; text-decoration: none;
  border-bottom: 1px solid var(--line); border-radius: var(--r-chip);
  transition: background-color 120ms steps(2, end);
}
.samples__list a:hover, .samples__list a:focus-visible { background-color: rgba(16, 18, 23, 0.06); }
.samples__name { font-weight: 600; }
.samples__what { grid-column: 1 / 2; color: var(--n-700); font-size: var(--t-small); line-height: 1.4; }
.samples__go { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 14px; height: 10px; transition: translate 160ms steps(2, end); color: var(--ink); }
.samples__list a:hover .samples__go, .samples__list a:focus-visible .samples__go { translate: 4px 0; }
.samples__list a:hover .samples__name { text-decoration: underline; text-underline-offset: 0.18em; }

/* Custom work */
.work .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.work .section__head { grid-column: 1 / span 6; }
.steps { grid-column: 1 / span 12; margin-top: 112px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); counter-reset: step; }
.step { padding-top: 24px; }
.step__cells { display: flex; gap: 3px; height: 14px; margin-bottom: 20px; }
.step__cells i { width: 14px; height: 14px; border-radius: 3px; background: var(--n-800); }
.step__cells i.on { background: var(--cream); }
.step h4 { margin: 0;  font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
.step h4 .num { color: var(--muted); font-weight: 500; margin-right: 8px; }
.step p { margin-top: 8px; color: var(--n-300); font-size: 1rem; max-width: 32ch; }
.work__cta { grid-column: 1 / span 12; margin-top: 72px; }

/* About */
.about { border-top: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.about h2 { grid-column: 1 / span 3; font-size: var(--t-h3); line-height: 1.2; padding-top: 6px; }
.about__body { grid-column: 4 / span 9; font-size: clamp(1.375rem, 2.4vw, 2.125rem); line-height: 1.35; font-weight: 400; letter-spacing: -0.005em; max-width: 34ch; text-wrap: pretty; }
.about__body a { white-space: nowrap; }

/* Contact: final poster */
.contact { padding-block: clamp(112px, 14vw, 192px) clamp(64px, 8vw, 96px); overflow: clip; }
.contact .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.contact h2 { grid-column: 1 / span 9; grid-row: 1; font-size: var(--t-h2); line-height: 1.05; }
.contact__body { grid-column: 1 / span 6; grid-row: 2; margin-top: 20px; color: var(--n-300); font-size: var(--t-lead); line-height: 1.45; max-width: 46ch; }
.contact__mail {
  grid-column: 1 / span 12; margin-top: 56px; justify-self: start;
  font-size: clamp(1.75rem, 6.2vw, 6rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em;
  text-decoration: none; position: relative; overflow-wrap: anywhere;
}
.contact__mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: var(--cream);
  transform: scaleY(0.25); transform-origin: 50% 100%; transition: transform 200ms steps(3, end), background-color 0ms linear 100ms;
}
.contact__mail:hover::after, .contact__mail:focus-visible::after { transform: scaleY(1); background: var(--red); }
.contact__small { grid-column: 1 / span 12; margin-top: 32px; color: var(--muted); }

/* Footer */
.site-footer { padding-block: 48px 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; align-items: end; }
.footer__brand { grid-column: 1 / span 5; }
.footer__brand img { width: 240px; height: auto; }
.footer__tag { margin-top: 20px; font-weight: 600; }
.footer__links { grid-column: 7 / span 6; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 28px; }
.footer__links a { color: var(--n-300); font-size: 0.9375rem; }
.footer__links a:hover { color: var(--cream); }
.footer__legal { grid-column: 1 / span 12; color: var(--muted); font-size: var(--t-small); }

/* Reveal states (only when JS + motion are on; content is visible by default) */
html.reveal-ready [data-scan] .card__media img { clip-path: inset(0 0 100% 0); }
html.reveal-ready [data-scan].is-in .card__media img { clip-path: inset(0 0 0 0); transition: clip-path 560ms steps(8, end), scale 700ms var(--ease); }
html.reveal-ready .steps .step__cells i.on { background: var(--n-800); }
html.reveal-ready .steps.is-in .step__cells i.on {
  background: var(--cream);
  transition: background-color 0ms linear calc(var(--s, 0) * 220ms + var(--j, 0) * 90ms + 150ms);
}
.step:nth-child(2) { --s: 1; } .step:nth-child(3) { --s: 2; } .step:nth-child(4) { --s: 3; }
.step__cells i:nth-child(2) { --j: 1; } .step__cells i:nth-child(3) { --j: 2; } .step__cells i:nth-child(4) { --j: 3; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; align-content: center; padding-block: calc(var(--header-h) + 48px) 64px;
  background: var(--ink) url("../img/reeboo-labs_pattern_overlay-light_tile960.png") 0 0 / 480px 480px repeat; }
.nf .goggles { width: min(100%, 520px); }
.nf h1 { margin-top: 48px; font-size: var(--t-h2); line-height: 1.05; }
.nf p { margin-top: 16px; color: var(--n-300); font-size: var(--t-lead); }
.nf__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 16px; }
.nf__links { margin: 40px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  /* page to page: the new page steps in row by row over the old one, like the grid filling (Chromium) */
  ::view-transition-old(root) { animation: vt-dim 360ms steps(4, end) both; }
  ::view-transition-new(root) { animation: vt-rows 480ms steps(8, end) both; }
}
@keyframes vt-rows { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes vt-dim { to { opacity: 0.35; } }

/* ---------- Lenis (lenis@1.3.26/dist/lenis.css, MIT) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__list { gap: 20px; }
  .packs__rail { display: contents; }
  .packs__head { grid-column: 1 / span 12; }
  .packs__sticky { grid-column: 1 / span 12; }
  html:not(.header-away) .packs__sticky { top: var(--header-h); }
  .packs__grid, .packs__more { grid-column: 1 / span 12; }
  .packs__sticky {
    position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px;
    margin-inline: calc(-1 * var(--margin)); padding: 12px 20px; padding-inline: var(--margin);
    background: color-mix(in srgb, var(--ink) 90%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .packs__rail .goggles { width: 72px; margin-top: 0; flex: none; }
  .readout { margin-top: 0; padding: 0; background: none; border: 0; min-height: 0; }
  .packs__head { margin-bottom: 32px; }
  .card a { scroll-margin-top: calc(var(--header-h) + 120px); }
  .readout__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
  .packs__grid { margin-top: 40px; }
  .make .section__head { grid-column: 1 / span 12; position: static; margin-bottom: 48px; }
  .make__list, .make__engines { grid-column: 1 / span 12; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand img { width: 152px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--cream) 30%, transparent); border-radius: var(--r-btn);
    background: transparent; color: var(--cream); font: 600 0.9375rem/1 var(--font); cursor: pointer;
  }
  .nav-toggle__icon { position: relative; width: 16px; height: 10px; }
  .nav-toggle__icon::before, .nav-toggle__icon::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px;
    transition: translate 200ms var(--ease), rotate 200ms var(--ease);
  }
  .nav-toggle__icon::before { top: 0; }
  .nav-toggle__icon::after { bottom: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { translate: 0 4px; rotate: 45deg; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { translate: 0 -4px; rotate: -45deg; }
  html.js .nav__list {
    position: fixed; left: 0; right: 0; top: var(--header-h); display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--margin) 24px; background: var(--ink); border-bottom: 1px solid var(--line);
  }
  html.js .nav.is-open .nav__list { display: flex; }
  html.js .nav__list a { display: flex; font-size: 1.375rem; font-weight: 600; padding: 10px 0; }
  html:not(.js) .site-header { position: absolute; height: auto; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav__list { flex-wrap: wrap; gap: 4px 20px; }
  html:not(.js) .hero { padding-top: 168px; }

  .hero { min-height: 0; padding-bottom: 72px; }
  .hero .wrap { min-height: 0; }
  .hero__goggles { grid-column: 1 / span 12; grid-row: 1; justify-self: center; width: 100%; margin-top: 16px; }
  .hero__copy { grid-column: 1 / span 12; grid-row: 2; margin-top: 40px; }
  .hero__tag { font-size: clamp(2.75rem, 12vw, 4.5rem); }
  .packs__grid { grid-template-columns: 1fr; gap: 56px; }
  .packs__grid > li:nth-child(even) { translate: none; }
  .packs__more { margin-top: 56px; justify-content: flex-start; }
  .samples .section__head, .work .section__head { grid-column: 1 / span 12; }
  .samples__list { columns: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .about h2 { grid-column: 1 / span 12; padding-top: 0; margin-bottom: 20px; }
  .about__body { grid-column: 1 / span 12; }
  .contact h2, .contact__body { grid-column: 1 / span 12; grid-row: auto; }
  .footer__brand, .footer__links { grid-column: 1 / span 12; }
  .footer__links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .make__item { grid-template-columns: 1fr; padding: 24px 0; }
  .samples__list { columns: 1; }
  .steps { grid-template-columns: 1fr; }
  .hero__actions .btn, .nf__actions .btn { width: 100%; justify-content: space-between; }
  .hero__actions .btn--ghost, .nf__actions .btn--ghost { justify-content: center; }
  .readout__name { font-size: 0.9375rem; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 68vw; }
  .readout__meta { display: none; }
  .packs__sticky { padding-block: 10px; gap: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; transition-delay: 0ms !important; animation: none !important; }
}

/* Write-to-us panel (assets/js/mail.js) */
.mailbox {
  width: min(92vw, 520px); padding: 32px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--n-900); color: var(--fg); font-family: var(--font);
}
.mailbox::backdrop { background: rgb(16 18 23 / 0.72); backdrop-filter: blur(4px); }
.mailbox__close {
  position: absolute; top: 14px; right: 14px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 0.875rem; cursor: pointer;
}
.mailbox__close:hover, .mailbox__close:focus-visible { color: var(--fg); border-color: var(--fg); }
.mailbox__title { margin: 0 0 8px; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.01em; }
.mailbox__lead { margin: 0 0 24px; color: var(--muted); }
.mailbox__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink);
}
.mailbox__addr { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.mailbox__status { min-height: 1.5em; margin: 10px 0 16px; color: var(--red); font-size: 0.9375rem; }
.mailbox__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.mailbox__opts .btn { padding: 4px 16px; }
@media (max-width: 480px) { .mailbox { padding: 24px 20px; } .mailbox__opts .btn { flex: 1 1 100%; justify-content: center; } }
.mailbox__copy { padding: 4px 18px; min-width: 132px; justify-content: center; }

/* Footer links with brand icons (icons: Simple Icons, CC0; envelope drawn in-house) */
.footer__links { align-items: center; gap: 12px 24px; }
.footer__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--n-300); font-size: 0.9375rem; text-decoration: none; transition: color .2s ease; }
.footer__link:hover, .footer__link:focus-visible { color: var(--cream); }
.footer__icon { width: 20px; height: 20px; flex: none; }
@media (prefers-reduced-motion: reduce) { .footer__link { transition: none; } }

/* Our work (homepage row under the hero): game samples only; apps and websites stay in Custom work */
.ourwork { padding-block: 40px; border-bottom: 1px solid var(--line); }
.ourwork .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 20px; align-items: center; }
.ourwork__title { grid-column: 1 / span 2; font-size: 1.5rem; line-height: 1.15; }
.ourwork__scope { display: block; color: var(--muted); font-size: var(--t-small); font-weight: 500; letter-spacing: 0; }
.ourwork__list { grid-column: 3 / span 8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ourwork__link {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; min-height: 72px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r-media); text-decoration: none;
  box-shadow: inset 0 0 0 0 var(--n-850);
  transition: box-shadow 200ms steps(4, end), border-color 200ms var(--ease);
}
.ourwork__link:hover, .ourwork__link:focus-visible { border-color: var(--n-400); box-shadow: inset 0 -96px 0 0 var(--n-850); }
.ourwork__name { font-weight: 700; font-size: 1.125rem; line-height: 1.2; }
.ourwork__what { grid-row: 2; color: var(--muted); font-size: var(--t-small); line-height: 1.35; }
.ourwork__link .arrow-px { grid-column: 2; grid-row: 1 / span 2; }
.ourwork__link:hover .arrow-px, .ourwork__link:focus-visible .arrow-px { translate: 4px 0; }
.ourwork__apps { grid-column: 11 / span 2; color: var(--muted); font-size: var(--t-small); line-height: 1.4; padding-left: 20px; border-left: 1px solid var(--line); }
@media (max-width: 1100px) {
  .ourwork__title { grid-column: 1 / -1; }
  .ourwork__title .ourwork__scope { display: inline; margin-left: 8px; }
  .ourwork__list { grid-column: 1 / span 9; }
  .ourwork__apps { grid-column: 10 / span 3; }
}
@media (max-width: 860px) {
  .ourwork__list { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .ourwork__apps { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}

/* Featured: Game Dev Mega Kit (homepage band, links to /game-dev-mega-kit/) */
.feature { background: var(--n-900); border-block: 1px solid var(--line); }
.feature .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.feature__media { grid-column: 1 / span 7; margin: 0; }
.feature__img {
  width: 100%; max-width: 640px; height: auto; border-radius: var(--r-media); image-rendering: pixelated;
  outline: 1px solid color-mix(in srgb, var(--cream) 10%, transparent); outline-offset: -1px;
}
.feature__copy { grid-column: 8 / span 5; }
.feature h2 { font-size: var(--t-h2); line-height: 1.05; }
.feature__lead { margin-top: 16px; font-size: var(--t-lead); line-height: 1.45; color: var(--n-300); max-width: 36ch; }
.feature__facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--n-300); font-size: 0.9375rem; }
.feature__facts b { color: var(--cream); font-size: 1.375rem; font-weight: 700; margin-right: 4px; }
.feature__price { margin-top: 28px; color: var(--muted); }
.feature__price .num { color: var(--cream); font-size: 2rem; font-weight: 700; margin-right: 6px; }
.feature__actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1100px) {
  .feature__media, .feature__copy { grid-column: 1 / span 12; }
  .feature__copy { margin-top: 40px; }
}
@media (max-width: 560px) {
  .feature__actions .btn { width: 100%; justify-content: space-between; }
  .feature__actions .btn--ghost { justify-content: center; }
}

/* ---------- Oho, the mascot (assets/js/oho.js). 2026-10-28 ----------
   Every Oho sits on a "bench screen": a square on the brand ink (the clips are mastered to it), so a still and a clip swap
   with no seam and Oho can also stand straight on an ink section with no frame.
   The still is the resting face (the brand icon); clips are muted, loaded near the viewport and never run under reduced motion. */
.oho-screen {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--r-media); background: var(--ink);
  outline: 1px solid color-mix(in srgb, var(--cream) 10%, transparent); outline-offset: -1px;
}
.oho-screen img, .oho-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oho-video { opacity: 0; transition: opacity 90ms steps(2, end); pointer-events: none; }
.oho-video.is-on { opacity: 1; }

/* Meet Oho: copy and test steps on the left, the bench screen on the right */
.oho { border-top: 1px solid var(--line); }
.oho .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.oho__copy { grid-column: 1 / span 5; grid-row: 1; align-self: end; }
.oho__copy h2 { font-size: var(--t-h2); line-height: 1.05; }
.oho__copy .lead { margin-top: 20px; color: var(--n-300); max-width: 34ch; }
.oho__stage { grid-column: 7 / span 6; grid-row: 1 / span 2; margin: 0; width: 100%; max-width: 560px; justify-self: end; }
.oho__say {
  margin-top: 16px; display: flex; align-items: baseline; gap: 16px; padding: 14px 18px; border-radius: var(--r-media);
  background: var(--n-900); border: 1px solid var(--line);
}
.oho__say .label { color: var(--muted); }
.oho__line { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.oho__controls { grid-column: 1 / span 5; grid-row: 2; margin-top: 48px; }
.oho__hint { color: var(--n-300); font-size: 0.9375rem; }
.oho__steps { margin-top: 16px; border-top: 1px solid var(--line); }
.oho__step {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 20px;
  padding: 18px 12px; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer;
  transition: background-color 120ms steps(2, end), translate 120ms var(--ease);
}
.oho__step:hover, .oho__step:focus-visible { background-color: var(--n-900); }
.oho__step:active { translate: 0 1px; }
.oho__step[aria-pressed="true"] { background-color: var(--n-850); }
.oho__cells { grid-row: 1 / span 2; display: flex; gap: 3px; }
.oho__cells i { width: 10px; height: 10px; border-radius: 2px; background: var(--n-700); }
.oho__step[aria-pressed="true"] .oho__cells i.on, .oho__step:hover .oho__cells i.on { background: var(--cream); }
.oho__name { grid-column: 2; font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.oho__what { grid-column: 2; color: var(--n-300); font-size: 1rem; }
.oho__step .btn__chip { grid-column: 3; grid-row: 1 / span 2; --chip: var(--n-850); background: var(--n-850); }
.oho__step:hover .pupil, .oho__step:focus-visible .pupil, .oho__step[aria-pressed="true"] .pupil { translate: 6px 6px; }
.oho__more { margin-top: 24px; }

/* Featured packs: a small Oho in the readout reacts as you move between packs (desktop rail only) */
.readout { display: flex; align-items: center; gap: 16px; }
.readout__text { min-width: 0; }
.oho-screen--mini { flex: none; width: 72px; border-radius: 8px; }

/* Contact: Oho waves beside the heading */
.oho-screen--contact { grid-column: 11 / span 2; grid-row: 1 / span 2; justify-self: end; align-self: start; width: min(100%, 176px); outline: 0; }
/* 404: text on the left, Oho on its bench screen on the right (stacked on phones) */
.oho-screen--lost { width: min(100%, 320px); }
@media (min-width: 861px) {
  .nf .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
  .nf .wrap > * { grid-column: 1 / span 7; }
  .nf .wrap > .oho-screen--lost { grid-column: 8 / span 5; grid-row: 1 / span 4; justify-self: end; width: min(100%, 420px); }
  .nf h1 { margin-top: 0; }
}

/* About: two short paragraphs at a reading size */
.about__body { max-width: 40ch; font-size: clamp(1.25rem, 1.9vw, 1.75rem); }
.about__body p + p { margin-top: 0.9em; }

@media (max-width: 1100px) {
  .oho-screen--mini { display: none; }
  .readout { display: block; }
}
@media (max-width: 860px) {
  .oho__copy, .oho__stage, .oho__controls { grid-column: 1 / span 12; grid-row: auto; }
  .oho__stage { justify-self: start; max-width: 440px; margin-top: 32px; }
  .oho__controls { margin-top: 32px; }
  .oho-screen--contact { grid-column: 1 / span 12; grid-row: auto; justify-self: start; width: 120px; margin-bottom: 28px; }
}
@media (max-width: 560px) {
  .oho__step { padding: 16px 8px; gap: 2px 14px; }
  .oho__name { font-size: 1.1875rem; }
  .oho__what { font-size: 0.9375rem; }
}

/* ---------- Hero field and effect tray (assets/js/field.js, 2026-10-28 v2) ---------- */
.hero::before { transition: opacity 500ms var(--ease); }
html.field-on .hero::before { opacity: 0; }
html.field-on .hero { cursor: crosshair; }
html.field-on .hero__copy, html.field-on .fx-tray { cursor: auto; }
.hero__word { display: inline-block; }
.fx-tray {
  grid-column: 7 / span 6; grid-row: 1; align-self: end; justify-self: end; width: min(100%, 520px);
  position: relative; z-index: 1;
}
.fx-tray[hidden] { display: none; }
/* with JS and motion on, the tray keeps its place while the field starts, so nothing below it moves (CLS) */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.field-off) .fx-tray[hidden] { display: block; visibility: hidden; }
}
.fx-tray__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fx-tray__hint { min-height: 1.45em; font-size: var(--t-small); line-height: 1.45; color: var(--n-300); }
.fx-tray__row { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fx-tray__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chip, .fx-sound {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--cream) 22%, transparent); border-radius: var(--r-btn);
  background: color-mix(in srgb, var(--ink) 82%, transparent); color: var(--cream);
  font: 500 0.875rem/1 var(--font); cursor: pointer;
  transition: border-color 160ms steps(2, end), background-color 160ms steps(2, end), translate 120ms var(--ease);
}
/* hover floods the chip cream in pixel steps, like the main buttons; the cell turns red */
.fx-chip, .fx-sound { box-shadow: inset 0 0 0 0 var(--cream); }
.fx-chip:hover, .fx-sound:hover, .fx-chip:focus-visible, .fx-sound:focus-visible {
  border-color: var(--cream); color: var(--ink); background-color: var(--cream); box-shadow: inset 0 -48px 0 0 var(--cream);
  transition: box-shadow 160ms steps(4, end), color 0ms linear 80ms, background-color 0ms linear 160ms, border-color 160ms steps(2, end), translate 120ms var(--ease);
}
.fx-chip:active, .fx-sound:active { translate: 0 1px; }
.fx-chip__cell { width: 8px; height: 8px; border-radius: 2px; background: var(--n-700); transition: background-color 0ms linear 80ms, translate 160ms steps(2, end); }
.fx-chip:hover .fx-chip__cell, .fx-chip:focus-visible .fx-chip__cell { translate: 0 -2px; background: var(--red); }
.fx-chip[aria-pressed="true"]:not(:hover):not(:focus-visible) { border-color: var(--cream); background: var(--n-850); }
.fx-chip[aria-pressed="true"] .fx-chip__cell { background: var(--red); }
.fx-sound__icon { width: 18px; height: 14px; flex: none; }
.fx-sound__wave { opacity: 0.28; transition: opacity 0ms linear 80ms; }
.fx-sound:hover .fx-sound__wave, .fx-sound:focus-visible .fx-sound__wave { opacity: 0.7; }
.fx-sound:hover .fx-sound__icon, .fx-sound:focus-visible .fx-sound__icon { translate: 2px 0; }
.fx-sound__icon { transition: translate 160ms steps(2, end); }
.fx-sound[aria-pressed="true"]:not(:hover):not(:focus-visible) { border-color: var(--cream); background: var(--n-850); }
.fx-sound[aria-pressed="true"] .fx-sound__wave { opacity: 1; fill: var(--red); }

/* ---------- Custom work: what we build (2026-10-28 v2) ---------- */
.build { grid-column: 1 / span 12; margin-top: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.build__list { grid-column: 1 / span 12; }
.build__item {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center;
  padding-block: 56px; border-top: 1px solid var(--line);
}
.build__text { grid-column: 1 / span 5; }
.build__media { grid-column: 7 / span 6; margin: 0; }
.build__name { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.01em; }
.build__text > p { margin-top: 16px; color: var(--n-300); max-width: 46ch; }
.build__text > .build__note { font-size: var(--t-small); color: var(--muted); }
.build__text > .build__more { margin-top: 12px; }
.build__media figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--muted); }
.screen, .browser, .phone {
  position: relative; overflow: hidden; background: var(--n-900);
  outline: 1px solid color-mix(in srgb, var(--cream) 10%, transparent); outline-offset: -1px;
}
.screen { aspect-ratio: 16 / 9; border-radius: var(--r-media); }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.phones { display: flex; gap: var(--gutter); justify-content: center; }
.phone { width: min(46%, 240px); aspect-ratio: 9 / 20; border-radius: 28px; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.browser { border-radius: var(--r-media); }
.browser__bar {
  height: 36px; display: flex; align-items: center; justify-content: center; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--n-900);
}
.browser__url { font-size: 0.75rem; line-height: 1; padding: 6px 12px; border-radius: var(--r-chip); background: var(--n-850); color: var(--n-300); }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; }
.apps { margin-top: 24px; border-top: 1px solid var(--line); max-width: 30rem; }
.app-link {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 8px; margin-inline: -8px; text-decoration: none;
  border-bottom: 1px solid var(--line); border-radius: var(--r-chip); transition: background-color 120ms steps(2, end);
}
.app-link:hover, .app-link:focus-visible { background-color: color-mix(in srgb, var(--cream) 6%, transparent); }
.app-link__name { font-weight: 600; font-size: 1.125rem; }
.app-link__what { grid-column: 1; color: var(--n-300); font-size: var(--t-small); line-height: 1.4; }
.app-link .arrow-px { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.app-link:hover .app-link__name { text-decoration: underline; text-underline-offset: 0.18em; }
.app-link:hover .arrow-px, .app-link:focus-visible .arrow-px { translate: 4px 0; }

/* The stage: one screen that changes shape as you read (desktop, motion on; driven by assets/js/site.js) */
.stage { display: none; }
.stage[hidden] { display: none !important; }
.build--stage .build__list { grid-column: 1 / span 5; grid-row: 1; }
.build--stage .stage {
  display: block; grid-column: 7 / span 6; grid-row: 1; align-self: start;
  position: sticky; top: calc(var(--header-h) + 48px); height: min(72vh, 640px);
}
.build--stage .build__item { display: flex; flex-direction: column; justify-content: center; min-height: 62vh; padding-block: 40px; border-top: 0; }
.build--stage .build__item:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 6vh; }
.build--stage .build__media { display: none; }
.build--stage .build__name { position: relative; color: var(--muted); transition: color 0ms linear 120ms; }
.build--stage .build__item.is-active .build__name { color: var(--cream); }
.build--stage .build__name::before {
  content: ""; position: absolute; left: -28px; top: 0.38em; width: 12px; height: 12px; border-radius: 2px; background: var(--red);
  transform: scale(0); transition: transform 200ms steps(3, end);
}
.build--stage .build__item.is-active .build__name::before { transform: scale(1); }
.stage__frame {
  position: relative; width: 100%; height: 100%;
  background: var(--n-900) url("../img/reeboo-labs_pattern_overlay-light_tile960.png") 0 0 / 480px 480px repeat;
  clip-path: inset(0 0 0 0 round 12px);
  transition: clip-path 900ms var(--ease);
}
.stage__layer {
  position: absolute; overflow: hidden; opacity: 0; clip-path: inset(0 0 100% 0);
  transition: opacity 0ms linear 300ms, clip-path 0ms linear 300ms;
}
.stage__layer.is-on {
  opacity: 1; clip-path: inset(0 0 0 0);
  transition: opacity 0ms linear 260ms, clip-path 520ms steps(8, end) 260ms;
}
.stage__layer img, .stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__layer--browser { display: flex; flex-direction: column; background: var(--n-900); }
.stage__layer--browser img { position: static; flex: 1; min-height: 0; object-position: 50% 0; }
.stage__app { transition: clip-path 420ms steps(6, end); }
.stage__app--nanieh { clip-path: inset(0 0 100% 0); }
.stage__layer--phone[data-app="nanieh"] .stage__app--nanieh { clip-path: inset(0 0 0 0); }

@media (max-width: 860px) {
  .fx-tray { grid-column: 1 / span 12; grid-row: 3; justify-self: stretch; width: 100%; margin-top: 40px; }
  .build__item { padding-block: 40px; row-gap: 28px; }
  .build__text, .build__media { grid-column: 1 / span 12; }
}
@media (max-width: 560px) {
  .fx-tray__chips { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .fx-chip { justify-content: flex-start; }
  .phones { gap: 12px; }
}
