/* ==========================================================================
   boxbuildpcba.com — light, tactile, kraft + anodised blue.
   The 3D icons (icons/*.webp) are the visual system; everything else stays quiet
   so they read as objects you could pick up.
   ========================================================================== */

:root {
  --bg: oklch(0.982 0.007 78);
  --bg-2: oklch(0.962 0.013 76);
  --bg-3: oklch(0.935 0.022 74);
  --card: oklch(0.996 0.003 78);
  --ink: oklch(0.235 0.014 62);
  --ink-2: oklch(0.42 0.014 62);
  --ink-3: oklch(0.56 0.012 62);
  --line: oklch(0.905 0.011 75);
  --line-2: oklch(0.855 0.015 75);
  --kraft: oklch(0.74 0.07 70);
  --kraft-ink: oklch(0.47 0.07 60);
  --accent: oklch(0.52 0.165 258);
  --accent-hi: oklch(0.46 0.16 258);
  --accent-soft: oklch(0.948 0.028 258);
  --ok: oklch(0.58 0.14 150);
  --bad: oklch(0.55 0.19 28);

  --shadow-1: 0 1px 2px oklch(0.3 0.03 62 / 0.07), 0 8px 24px oklch(0.3 0.03 62 / 0.08);
  --shadow-2: 0 2px 6px oklch(0.3 0.03 62 / 0.06), 0 22px 56px oklch(0.3 0.03 62 / 0.15);

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 32px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 96px;
  --section: clamp(72px, 9vw, 136px);

  --display: "Gabarito", "Avenir Next", "Helvetica Neue", sans-serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --top-h: 76px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section[id], header[id] { scroll-margin-top: calc(var(--top-h) + 8px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* type */
h1 { font-weight: 800; font-size: clamp(2.7rem, 1.4rem + 4.6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-weight: 750; font-size: clamp(2rem, 1.25rem + 2.6vw, 3.5rem); line-height: 1.03; letter-spacing: -0.03em; }
h3 { font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.85rem); line-height: 1.12; letter-spacing: -0.02em; }
.kicker { font: 600 0.8125rem/1 var(--text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--kraft-ink); margin-bottom: var(--space-lg); }
.sub { color: var(--ink-2); font-size: 1.125rem; max-width: 58ch; }
.head { display: grid; gap: 0; margin-bottom: clamp(36px, 5vw, 64px); }
.head .sub { margin-top: var(--space-lg); }
.head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: var(--space-3xl); }
.head--split .sub { margin-top: 0; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 0.9375rem/1 var(--text); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--accent { background: var(--accent); color: oklch(0.99 0.005 258); }
.btn--accent:hover { background: var(--accent-hi); }
.btn--accent:active { transform: scale(0.97); }
.btn--ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { height: 52px; padding: 0 28px; font-size: 1rem; }

/* ==========================================================================
   Icons: object layer + shadow layer on the same square canvas
   ========================================================================== */
.ico { position: relative; display: block; aspect-ratio: 1; }
.ico img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.ico__s { transform-origin: 50% 80%; }
.ico__o { transform-origin: 50% 70%; }

/* the Airbnb-style "selected" pop */
.ico.is-pop .ico__o { animation: pop 0.62s var(--ease) both; }
.ico.is-pop .ico__s { animation: popShadow 0.62s var(--ease) both; }
@keyframes pop {
  0%   { transform: scale(0.8) rotate(-7deg); }
  45%  { transform: scale(1.07) rotate(2deg); }
  72%  { transform: scale(0.985) rotate(-0.5deg); }
  100% { transform: none; }
}
@keyframes popShadow {
  0%   { transform: scale(0.7); opacity: 0.25; }
  45%  { transform: scale(1.06); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* idle motion: uses the individual translate/rotate/scale properties so it
   never fights the pop (which uses transform) */
[data-float="hover"] .ico__o { animation: hover 3.4s var(--ease-io) infinite; }
[data-float="hover"] .ico__s { animation: hoverShadow 3.4s var(--ease-io) infinite; }
[data-float="drift"] .ico__o { animation: drift 8s var(--ease-io) infinite; }
[data-float="drift"] .ico__s { animation: driftShadow 8s var(--ease-io) infinite; }
[data-float="bank"]  .ico__o { animation: bank 6s var(--ease-io) infinite; }
[data-float="bank"]  .ico__s { animation: bankShadow 6s var(--ease-io) infinite; }
[data-float="bob"]   .ico__o { animation: bob 5s var(--ease-io) infinite; }
[data-float="bob"]   .ico__s { animation: bobShadow 5s var(--ease-io) infinite; }
@keyframes hover       { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6%; } }
@keyframes hoverShadow { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 0.8; opacity: 0.5; } }
@keyframes drift       { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 2% -5%; rotate: 3deg; } }
@keyframes driftShadow { 0%, 100% { scale: 1; opacity: .9; } 50% { scale: 0.86; opacity: 0.55; } }
@keyframes bank        { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: -3% -4%; rotate: -3deg; } }
@keyframes bankShadow  { 0%, 100% { scale: 1; opacity: 1; translate: 0 0; } 50% { scale: 0.88; opacity: 0.6; translate: -2% 0; } }
@keyframes bob         { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3%; } }
@keyframes bobShadow   { 0%, 100% { scale: 1; } 50% { scale: 0.92; opacity: 0.75; } }

/* ==========================================================================
   Header
   ========================================================================== */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.top.is-scrolled { border-bottom-color: var(--line); background: var(--bg); }
.top__in {
  height: var(--top-h);
  width: min(100%, 1440px); margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-xl);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.brand__ico { width: 38px; }
.brand__word { font: 800 1.3rem/1 var(--display); letter-spacing: -0.03em; }
.brand__word span { color: var(--kraft-ink); font-weight: 700; }
.brand:hover .brand__ico .ico__o { translate: 0 -2px; rotate: -4deg; }
.brand__ico .ico__o { transition: translate .3s var(--ease), rotate .3s var(--ease); }

.tabs { display: flex; gap: clamp(12px, 2.2vw, 36px); justify-self: center; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 2px; text-decoration: none; color: var(--ink-2);
  font: 500 0.9375rem/1 var(--text);
  transition: color .2s var(--ease);
}
.tab__ico { width: 40px; }
.tab__ico .ico__o, .tab__ico .ico__s { transition: translate .35s var(--ease), scale .35s var(--ease), rotate .35s var(--ease); }
.tab:hover { color: var(--ink); }
.tab:hover .tab__ico .ico__o { translate: 0 -3px; scale: 1.06; rotate: -3deg; }
.tab:hover .tab__ico .ico__s { scale: 0.9; }
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease);
}
.tab[aria-current="true"] { color: var(--ink); font-weight: 600; }
.tab[aria-current="true"]::after { transform: scaleX(1); }

.top__cta { display: flex; align-items: center; gap: var(--space-lg); justify-self: end; }
.top__phone { font: 500 0.9375rem/1 var(--text); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.top__phone:hover { color: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow-x: clip; padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero__copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.875rem/1 var(--text); color: var(--ink-2);
  padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--bg-2);
  margin-bottom: var(--space-xl);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in oklch, var(--ok) 20%, transparent); }
.hero h1 { max-width: 12ch; }
.lede { margin-top: var(--space-xl); font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }

/* --- the build bar (search-bar pattern) --- */
.bar {
  position: relative; margin-top: clamp(28px, 3.4vw, 40px);
  display: grid; grid-template-columns: 1.35fr 0.85fr 1.15fr auto; align-items: center;
  max-width: 680px; padding: 8px; padding-left: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-1);
  transition: background-color .25s var(--ease);
}
.bar:focus-within, .bar.is-open { background: var(--bg-2); }
.bar__seg {
  position: relative; display: grid; gap: 3px; align-content: center;
  min-width: 0; height: 60px; padding: 0 22px; border-radius: 999px; cursor: text;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.bar__seg + .bar__seg::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 1px; height: 30px; background: var(--line-2);
  transition: opacity .2s;
}
.bar__seg:hover { background: color-mix(in oklch, var(--bg-3) 60%, transparent); }
.bar__seg:focus-within, .bar__seg.is-on { background: var(--card); box-shadow: var(--shadow-1); }
.bar__seg:focus-within::before, .bar__seg:focus-within + .bar__seg::before,
.bar__seg.is-on::before, .bar__seg.is-on + .bar__seg::before,
.bar__seg:hover::before, .bar__seg:hover + .bar__seg::before { opacity: 0; }
.bar__k { font: 600 0.8125rem/1.1 var(--text); color: var(--ink); }
.bar__v {
  font: 400 0.9375rem/1.3 var(--text); color: var(--ink-2);
  border: 0; outline: 0; padding: 0; background: transparent; width: 100%; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar__v::placeholder { color: var(--ink-3); }
.bar__pick {
  display: grid; gap: 3px; text-align: left; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  width: 100%; min-width: 0; height: 100%; align-content: center;
}
.bar__seg--scope { padding: 0; }
.bar__seg--scope .bar__pick { padding: 0 22px; border-radius: 999px; }
.bar__seg--scope:hover, .bar__seg--scope.is-on { cursor: pointer; }
.bar__go {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  height: 52px; min-width: 52px; padding: 0 15px; margin-left: 6px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: oklch(0.99 0.005 258);
  font: 600 0.9375rem/1 var(--text);
  transition: background-color .2s var(--ease), gap .35s var(--ease), padding .35s var(--ease);
}
.bar__go svg { width: 22px; height: 22px; flex: none; }
.bar__go span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .35s var(--ease), opacity .25s var(--ease); }
.bar:focus-within .bar__go, .bar.is-open .bar__go, .bar__go:hover { gap: 8px; padding: 0 20px 0 16px; }
.bar:focus-within .bar__go span, .bar.is-open .bar__go span, .bar__go:hover span { max-width: 60px; opacity: 1; }
.bar__go:hover { background: var(--accent-hi); }

.pop {
  position: absolute; z-index: 20; top: calc(100% + 12px); right: 0;
  width: min(380px, calc(100vw - 32px)); padding: 22px;
  background: var(--card); border-radius: var(--r-m); box-shadow: var(--shadow-2);
  animation: popIn .3s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pop__k { font: 600 0.9375rem/1.2 var(--text); margin-bottom: 14px; }
.pop__done {
  margin-top: 16px; margin-left: auto; display: block;
  border: 0; background: none; padding: 6px 2px; cursor: pointer;
  font: 600 0.9375rem/1 var(--text); text-decoration: underline; text-underline-offset: 3px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
  font: 500 0.875rem/1 var(--text); color: var(--ink-2);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover span { border-color: var(--ink); color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--card); }
.chip input:checked + span::before {
  content: ""; width: 10px; height: 6px; margin-right: 2px; margin-top: -3px;
  border: solid currentColor; border-width: 0 0 2px 2px; rotate: -45deg;
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.creds { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: var(--space-xl); color: var(--ink-2); font: 500 0.875rem/1.3 var(--text); }
.creds li { display: inline-flex; align-items: center; gap: 7px; }
.creds li::before { content: ""; width: 9px; height: 5px; margin-top: -3px; border: solid var(--ok); border-width: 0 0 1.8px 1.8px; rotate: -45deg; }

/* --- hero art: the box build, in pieces --- */
.hero__art { position: relative; }
.hero__art::before {
  /* faint isometric grid, the drawing-board the unit sits on */
  content: ""; position: absolute; inset: -8% -12% -4% -6%; z-index: -1;
  background:
    repeating-linear-gradient(30deg, transparent 0 35px, color-mix(in oklch, var(--kraft) 30%, transparent) 35px 36px),
    repeating-linear-gradient(150deg, transparent 0 35px, color-mix(in oklch, var(--kraft) 30%, transparent) 35px 36px);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%);
          mask: radial-gradient(closest-side, #000 30%, transparent 100%);
  opacity: .7;
}
.unit { position: relative; aspect-ratio: 1; width: min(100%, 680px); margin-inline: auto; animation: unitIn 1.1s var(--ease) both .1s; }
.unit img { position: absolute; inset: 0; width: 100%; height: 100%; }
.unit__lid { animation: lid 6s var(--ease-io) infinite 1.2s; }
@keyframes unitIn { from { opacity: 0; translate: 0 28px; scale: .96; } }
/* the lid only ever moves DOWN from where it was rendered, so nothing behind it is exposed */
@keyframes lid { 0%, 100% { translate: 0 0; } 50% { translate: 0 1.6%; } }

.badge-float {
  position: absolute; left: clamp(0px, 2vw, 24px); bottom: clamp(8px, 5%, 40px); z-index: 3;
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow-2);
  animation: badgeIn .9s var(--ease) both .7s;
}
.badge-float__body { display: grid; justify-items: center; gap: 6px; padding-inline: 4px; text-align: center; }
.badge-float b { display: block; font: 800 1.3rem/1 var(--display); letter-spacing: -0.02em; }
.badge-float__body > span:last-child { font: 500 0.75rem/1.2 var(--text); color: var(--ink-2); }
/* the five steps, in miniature: board → harness → enclosure → test → box */
.mini-line { display: flex; align-items: center; gap: 1px; }
.mini-line .ico { width: 30px; }
.mini-line i { width: 5px; height: 5px; margin-inline: 1px; border: solid var(--ink-3); border-width: 1.5px 1.5px 0 0; rotate: 45deg; opacity: .7; }
@keyframes badgeIn { from { opacity: 0; translate: 0 14px; } }

.laurel { width: 30px; height: 50px; color: var(--ink); flex: none; }
.laurel--sm { width: 18px; height: 30px; }
.laurel--r { scale: -1 1; }

/* ==========================================================================
   The build: sticky stage + steps
   ========================================================================== */
.build { padding-block: var(--section); background: var(--card); border-block: 1px solid var(--line); }
.build .head { max-width: 760px; }
.build__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.stage { position: sticky; top: calc(var(--top-h) + 24px); align-self: start; }
.stage__floor {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  width: min(100%, calc(100svh - var(--top-h) - 190px)); margin-inline: auto;
  background: radial-gradient(closest-side, var(--bg-2) 0%, var(--bg-2) 62%, color-mix(in oklch, var(--bg-2) 0%, transparent) 100%);
}
.stage__floor::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background:
    repeating-linear-gradient(30deg, transparent 0 27px, color-mix(in oklch, var(--kraft) 26%, transparent) 27px 28px),
    repeating-linear-gradient(150deg, transparent 0 27px, color-mix(in oklch, var(--kraft) 26%, transparent) 27px 28px);
  -webkit-mask: radial-gradient(closest-side, #000 40%, transparent 100%);
          mask: radial-gradient(closest-side, #000 40%, transparent 100%);
}
.stage__ico {
  position: absolute; inset: 11%; aspect-ratio: auto;
  opacity: 0; transform: translateY(14px) scale(.94);
  transition: opacity .16s linear, transform .3s var(--ease);
}
/* the outgoing object clears first, then the new one lands */
.stage__ico.is-active { opacity: 1; transform: none; transition: opacity .3s var(--ease) .14s, transform .6s var(--ease) .14s; }
.stage__ico.is-active.is-pop .ico__o, .stage__ico.is-active.is-pop .ico__s { animation-delay: .14s; }
.stage__count { position: absolute; right: 8%; top: 6%; font: 500 0.875rem/1 var(--text); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.stage__count b { font: 800 1.1rem/1 var(--display); color: var(--ink); }

.rail { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-xl); }
.rail__btn {
  display: grid; justify-items: center; gap: 4px; width: 84px; padding: 8px 4px 10px;
  border: 0; background: none; border-radius: var(--r-s); cursor: pointer;
  font: 500 0.8125rem/1.1 var(--text); color: var(--ink-3);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.rail__btn .ico { width: 42px; opacity: .55; filter: grayscale(.6); transition: opacity .25s var(--ease), filter .25s var(--ease), translate .3s var(--ease); }
.rail__btn:hover { color: var(--ink); background: var(--bg-2); }
.rail__btn:hover .ico { opacity: 1; filter: none; translate: 0 -2px; }
.rail__btn.is-active { color: var(--ink); font-weight: 600; }
.rail__btn.is-active .ico { opacity: 1; filter: none; }

.steps { counter-reset: none; }
.step {
  min-height: 74vh; display: flex; flex-direction: column; justify-content: center;
  padding-block: var(--space-3xl);
  opacity: 0.32; transition: opacity .45s var(--ease);
}
.step.is-active { opacity: 1; }
.step:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 12vh; }
.step:last-child { min-height: 64vh; }
.step__ico { display: none; }
.step__n { font: 600 0.875rem/1 var(--text); color: var(--kraft-ink); letter-spacing: .02em; margin-bottom: var(--space-lg); }
.step h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem); max-width: 18ch; }
.step > p:not(.step__n) { margin-top: var(--space-lg); color: var(--ink-2); font-size: 1.125rem; max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-xl); }
.tags li { padding: 7px 14px; border-radius: 999px; background: var(--bg-2); font: 500 0.875rem/1.2 var(--text); color: var(--ink-2); }

/* ==========================================================================
   One roof: compare scene
   ========================================================================== */
.roof { padding-block: var(--section); }
.scene-wrap { position: relative; }
.seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 999px; background: var(--bg-2); margin-bottom: var(--space-xl);
}
.seg__btn {
  position: relative; z-index: 1; height: 42px; padding: 0 22px; border: 0; background: none; border-radius: 999px; cursor: pointer;
  font: 600 0.9375rem/1 var(--text); color: var(--ink-2); transition: color .25s var(--ease);
}
.seg__btn[aria-selected="true"] { color: var(--ink); }
.seg__thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow-1);
  transition: translate .45s var(--ease);
}
.seg[data-state="one"] .seg__thumb { translate: 100% 0; }

.scene {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(16px, 3vw, 40px); border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line);
}
.scene__map { position: relative; aspect-ratio: 5 / 3; container-type: inline-size; }
.scene__road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity .5s var(--ease); }
.scene__road path { fill: none; stroke-linecap: round; }
.scene__road .road { stroke: var(--bg-3); stroke-width: 6; }
.scene__road .road__dash { stroke: var(--card); stroke-width: 0.5; stroke-dasharray: 2 2.4; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -4.4; } }
.scene[data-state="one"] .road__dash { animation: none; }

/* positions live in a 100 × 60 grid measured in cqw, so they scale with the map */
.sc, .sc-tag {
  position: absolute; left: 0; top: 0;
  transform: translate(calc(var(--x) * 1cqw - 50%), calc(var(--y) * 1cqw - 50%)) scale(var(--s, 1));
  transition: transform .9s var(--ease), opacity .55s var(--ease);
}
.sc { width: calc(var(--w) * 1cqw); }
.sc--fa    { --x: 76; --y: 17; --w: 27; z-index: 2; }
.sc--fb    { --x: 24; --y: 46; --w: 27; z-index: 3; }
.sc--truck { --x: 63; --y: 25; --w: 15; z-index: 4; }
.sc--unit  { --x: 74; --y: 40; --w: 25; z-index: 5; opacity: 0; --s: .7; }
.sc-tag {
  z-index: 6; white-space: nowrap; padding: 7px 12px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow-1);
  font: 600 clamp(0.6875rem, 1.6cqw, 0.875rem)/1 var(--text); color: var(--ink);
}
.sc-tag--a { --x: 76; --y: 2.5; }
.sc-tag--b { --x: 13; --y: 30; }
.sc-tag--q { --x: 67; --y: 50; background: var(--ink); color: var(--card); }

/* the truck drives the road between the two buildings */
.scene[data-state="split"] .sc--truck { animation: drive 4.6s linear infinite; }
.scene[data-state="split"] .sc--truck .ico__o { animation: rumble .32s linear infinite; }
@keyframes drive {
  0%   { translate: 0 0; opacity: 0; }
  10%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { translate: -26cqw 15cqw; opacity: 0; }
}
@keyframes rumble { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.6%; } }

/* one roof: the two buildings become one, the truck disappears, the finished unit appears */
.scene[data-state="one"] .sc--fa    { --x: 40; --y: 28; --s: 1.62; }
.scene[data-state="one"] .sc--fb    { --x: 40; --y: 28; --s: 1.2; opacity: 0; }
.scene[data-state="one"] .sc--truck { opacity: 0; --x: 50; --y: 33; }
.scene[data-state="one"] .sc--unit  { opacity: 1; --s: 1; }
.scene[data-state="one"] .scene__road { opacity: 0; }
.scene[data-state="one"] .sc-tag--a,
.scene[data-state="one"] .sc-tag--b,
.scene[data-state="one"] .sc-tag--q { opacity: 0; --s: .9; }

.scene__notes { display: grid; gap: var(--space-xl); grid-column: 2; grid-row: 1; transition: opacity .45s var(--ease), translate .45s var(--ease); }
.scene__notes li { color: var(--ink-2); font-size: 1.0625rem; padding-left: 34px; position: relative; }
.scene__notes li b { color: var(--ink); font-weight: 600; }
.scene__notes li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-2) no-repeat center / 12px 12px;
}
.scene__notes--split li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%23a2463b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.scene__notes--one li::before { background-color: color-mix(in oklch, var(--ok) 16%, var(--card)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%232f7a4b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.scene[data-state="one"] .scene__notes--split,
.scene[data-state="split"] .scene__notes--one { opacity: 0; translate: 0 10px; pointer-events: none; visibility: hidden; }

.story {
  margin: clamp(48px, 6vw, 88px) 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; column-gap: clamp(20px, 4vw, 56px); row-gap: 12px;
  max-width: 980px;
}
.story__ico { width: clamp(120px, 16vw, 200px); grid-row: 1 / -1; }
.story blockquote { grid-row: 2; }
.story blockquote { margin: 0; }
.story blockquote p { font: 650 clamp(1.4rem, 1.05rem + 1.25vw, 2.2rem)/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.story figcaption { grid-column: 2; grid-row: 3; align-self: start; color: var(--ink-3); font-size: 0.9375rem; }

/* ==========================================================================
   Programs
   ========================================================================== */
.programs { padding-block: var(--section); background: var(--card); border-block: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.tile { display: grid; gap: var(--space-md); }
.tile__art {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-m); background: var(--bg-2);
  transition: background-color .3s var(--ease);
}
.tile__art .ico { width: 84%; }
.tile__art .ico .ico__o { transition: transform .45s var(--ease); }
.tile:hover .tile__art { background: var(--bg-3); }
.tile:hover .tile__art .ico .ico__o { transform: scale(1.05) translateY(-2%); }
.tile__k { font: 600 1rem/1.2 var(--text); }

/* ==========================================================================
   Proof
   ========================================================================== */
.proof { padding-block: clamp(64px, 8vw, 112px); }
.proof__in { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.award { display: flex; align-items: center; gap: 10px; }
.award .laurel { width: 40px; height: 68px; }
.award__fig { text-align: center; }
.award__fig b { display: block; font: 800 clamp(2.6rem, 1.8rem + 2.6vw, 4.2rem)/0.95 var(--display); letter-spacing: -0.04em; }
.award__fig span { display: block; margin-top: 8px; font: 600 0.9375rem/1.2 var(--text); }
.proof__note { display: grid; gap: var(--space-md); padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--line); color: var(--ink-2); font-size: 0.9375rem; max-width: 52ch; }
.proof__lead { color: var(--ink); font-weight: 600; font-size: 1.0625rem; }

/* ==========================================================================
   Capabilities (amenities list)
   ========================================================================== */
.caps { padding-block: var(--section); background: var(--card); border-block: 1px solid var(--line); }
.caps__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.caps .head { position: sticky; top: calc(var(--top-h) + 32px); margin-bottom: 0; }
.amen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; padding-top: 6px; }
.amen li { display: flex; align-items: flex-start; gap: 16px; font-size: 1.0625rem; line-height: 1.4; }
.amen svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: -1px; }

/* ==========================================================================
   What to send
   ========================================================================== */
.send { padding-block: var(--section); }
.send__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.send__art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--bg-2) 0 64%, transparent 100%); }
.send__art .ico { width: 76%; }
.send__copy h2 { margin-bottom: var(--space-2xl); }
.check { display: grid; gap: 18px; counter-reset: c; }
.check li { position: relative; padding-left: 46px; color: var(--ink-2); font-size: 1.0625rem; }
.check li b { color: var(--ink); font-weight: 600; }
.check li::before {
  counter-increment: c; content: counter(c);
  position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--card);
  font: 700 0.875rem/1 var(--display);
}
.send__how { margin-top: var(--space-2xl); padding: 18px 20px; border-radius: var(--r-m); background: var(--bg-2); color: var(--ink-2); font-size: 0.9875rem; }
.send__how a { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   Quote form
   ========================================================================== */
.quote { padding-block: var(--section); background: var(--bg-2); border-top: 1px solid var(--line); }
.quote__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.quote__copy { position: sticky; top: calc(var(--top-h) + 32px); }
.quote__copy .sub { margin-top: var(--space-lg); }
.direct { display: grid; gap: 14px; margin: var(--space-2xl) 0 0; }
.direct div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.direct dt { color: var(--ink-3); font-size: 0.9375rem; }
.direct dd { margin: 0; font-weight: 500; }
.direct a { text-decoration: none; }
.direct a:hover { text-decoration: underline; text-underline-offset: 3px; }

.quote__card { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-2); }
.qform { display: grid; gap: 18px; }
.qform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qform__trap { display: none; }
.qf { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.qf label, .qf legend { font: 600 0.875rem/1.2 var(--text); color: var(--ink); padding: 0; }
.qf legend { margin-bottom: 10px; }
.qf input, .qf select, .qf textarea {
  width: 100%; min-width: 0; padding: 13px 14px; border-radius: var(--r-s);
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.qf textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.qf select { appearance: none; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23574e44' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; padding-right: 38px; }
.qf select.is-empty { color: var(--ink-3); }
.qf input::placeholder, .qf textarea::placeholder { color: var(--ink-3); }
.qf input:hover, .qf select:hover, .qf textarea:hover { border-color: var(--ink-3); }
.qf input:focus, .qf select:focus, .qf textarea:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.qf__err { display: none; font-size: 0.8125rem; color: var(--bad); }
.qf.is-invalid input, .qf.is-invalid select, .qf.is-invalid textarea { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.qf.is-invalid .qf__err { display: block; }
.qform__foot { display: grid; gap: 10px; margin-top: 4px; }
.qform__send { width: 100%; }
.qform__send:disabled { opacity: .7; cursor: progress; }
.qform__status { font-size: 0.875rem; color: var(--ink-3); min-height: 1.2em; }
.qform__status.is-error { color: var(--bad); }
.qform__status a { color: inherit; }
.qdone { text-align: center; padding: 24px 8px; outline: 0; }
.qdone__ico { width: 150px; margin: 0 auto 12px; }
.qdone h3 { margin-bottom: 8px; }
.qdone p { color: var(--ink-2); max-width: 40ch; margin-inline: auto; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding-block: var(--section); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .head { position: sticky; top: calc(var(--top-h) + 32px); margin-bottom: 0; }
.q { border-bottom: 1px solid var(--line); }
.q:first-child { border-top: 1px solid var(--line); }
.q summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font: 600 1.1875rem/1.35 var(--text); color: var(--ink);
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; translate: 0 -50%; border-radius: 50%;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.5v9M1.5 6h9' stroke='%232c251d' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 11px;
  transition: rotate .3s var(--ease), background-color .2s;
}
.q[open] summary::after { rotate: 45deg; }
.q summary:hover::after { background-color: var(--bg-3); }
.q p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 64ch; }
.q p a { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); }
.foot__brand { display: flex; align-items: center; gap: 10px; font: 800 1.5rem/1 var(--display); letter-spacing: -0.03em; }
.foot__brand .ico { width: 44px; }
.foot__blurb { margin-top: var(--space-lg); color: var(--ink-2); max-width: 52ch; font-size: 0.9875rem; }
.foot__contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-xl); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
.foot__cols h3 { font: 600 0.875rem/1 var(--text); color: var(--ink); margin-bottom: 16px; }
.foot__cols a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; }
.foot__cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(48px, 6vw, 80px); padding-block: 24px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 0.875rem; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .top__phone { display: none; }
  .tab__label { font-size: 0.875rem; }
}

@media (max-width: 980px) {
  :root { --top-h: 124px; }
  .top__in { grid-template-columns: 1fr auto; grid-template-rows: 64px 60px; height: auto; row-gap: 0; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-around; gap: 4px; border-top: 1px solid var(--line); }
  .tab { flex-direction: column; gap: 3px; padding: 6px 4px 8px; font-size: 0.75rem; }
  .tab__ico { width: 30px; }
  .tab::after { bottom: 0; }
  .top__cta .btn { height: 40px; padding: 0 16px; font-size: 0.875rem; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero h1 { max-width: 14ch; }

  .head--split { grid-template-columns: 1fr; gap: var(--space-lg); }

  .build__grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .step, .step:first-child, .step:last-child { min-height: 0; padding-block: var(--space-2xl); opacity: 1; justify-content: flex-start; }
  .step + .step { border-top: 1px solid var(--line); }
  .step__ico { display: block; width: clamp(150px, 42vw, 220px); margin: 0 0 var(--space-lg) -12px; }

  .scene { grid-template-columns: 1fr; }
  .scene__notes { grid-column: 1; grid-row: 2; }
  .scene__notes--split, .scene__notes--one { grid-row: 2; }

  .tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 40vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(-1 * clamp(16px, 4vw, 48px)); padding-inline: clamp(16px, 4vw, 48px); scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; }

  .proof__in { grid-template-columns: 1fr 1fr; }
  .proof__note { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--space-xl); }

  .caps__grid, .send__grid, .quote__grid, .faq__grid, .foot__top { grid-template-columns: 1fr; }
  .caps .head, .faq .head, .quote__copy { position: static; }
  .send__art { max-width: 340px; width: 100%; margin-inline: auto; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand__word { font-size: 1.15rem; }
  .brand__ico { width: 32px; }

  .bar { grid-template-columns: 1fr; border-radius: var(--r-m); padding: 6px; gap: 0; }
  .bar__seg { height: 58px; border-radius: 14px; padding: 0 16px; }
  .bar__seg + .bar__seg::before { left: 16px; right: 16px; top: 0; width: auto; height: 1px; translate: none; }
  .bar__seg--scope { padding: 0; }
  .bar__seg--scope .bar__pick { padding: 0 16px; border-radius: 14px; }
  .bar__go { margin: 6px 0 0; width: 100%; gap: 8px; }
  .bar__go span { max-width: 60px; opacity: 1; }
  .pop { left: 0; right: 0; width: auto; }

  .badge-float { padding: 10px 12px; }
  .badge-float b { font-size: 1.1rem; }
  .mini-line .ico { width: 24px; }

  .scene { padding: 12px; border-radius: var(--r-m); }
  .sc-tag--b { --x: 27; --y: 29; }
  .sc-tag--q { --x: 62; }
  .seg { display: grid; width: 100%; }
  .seg__btn { padding: 0 10px; }

  .story { grid-template-columns: 1fr; grid-template-rows: none; gap: var(--space-lg); }
  .story__ico, .story blockquote, .story figcaption { grid-column: 1; grid-row: auto; }

  .proof__in { grid-template-columns: 1fr; justify-items: start; }
  .award .laurel { width: 32px; height: 54px; }

  .amen { grid-template-columns: 1fr; gap: 20px; }
  .qform__row { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .q summary { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; translate: none; }
}

/* ==========================================================================
   Guides: header link, homepage row, cards, article pages
   ========================================================================== */
.top__link { font: 500 0.9375rem/1 var(--text); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.top__link:hover, .top__link[aria-current="page"] { color: var(--ink); }

.guides { padding-block: var(--section); }
.head--split > .link { justify-self: end; align-self: end; }

.gcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.gcards--two, .gcards--index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gcards--index { margin-top: clamp(32px, 4vw, 48px); }
.gcard { display: grid; grid-template-rows: auto 1fr; gap: 14px; color: inherit; text-decoration: none; border-radius: var(--r-m); }
.gcard__art {
  display: flex; align-items: center; justify-content: center; gap: 2%;
  aspect-ratio: 4 / 3; padding: 6%; border-radius: var(--r-m); background: var(--bg-2);
  transition: background-color .3s var(--ease);
}
.gcards--index .gcard__art, .gcards--two .gcard__art { aspect-ratio: 16 / 9; }
.gcards--two .gcard__art .ico { width: 40%; }
.gcards--two .gcard__art:has(.art-arrow) .ico { width: 30%; }
.gcard__art .ico { width: 62%; max-width: 220px; }
.gcard__art:has(.art-arrow) .ico { width: 42%; }
.gcard__art .ico__o { transition: transform .45s var(--ease); }
.gcard:hover .gcard__art { background: var(--bg-3); }
.gcard:hover .gcard__art .ico__o { transform: translateY(-3%) scale(1.04); }
.gcard__body { display: grid; gap: 7px; align-content: start; }
.gcard__n { font: 600 0.75rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--kraft-ink); }
.gcard__t { margin: 0; font: 700 1.125rem/1.25 var(--display); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.gcards--index .gcard__t { font-size: 1.35rem; }
.gcard__d { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.gcard__more { margin-top: 3px; font: 600 0.875rem/1 var(--text); color: var(--accent); }
.gcard:hover .gcard__t { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.art-arrow { flex: none; width: 9px; height: 9px; border: solid var(--ink-3); border-width: 2px 2px 0 0; rotate: 45deg; }

.article-page { padding-block: clamp(24px, 4vw, 48px) var(--section); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 0.875rem/1.4 var(--text); color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article__head {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-areas: "titles art" "short art";
  column-gap: clamp(24px, 5vw, 80px); row-gap: 28px; align-items: end; margin-top: 28px;
}
.article__head--index { grid-template-columns: 1fr; grid-template-areas: "titles"; }
.article__titles { grid-area: titles; }
.article__titles .kicker { margin-bottom: 14px; }
.article h1 { font-weight: 800; font-size: clamp(2.2rem, 1.3rem + 3vw, 3.8rem); line-height: 1.02; letter-spacing: -0.03em; }
.byline { margin-top: 16px; font-size: 0.875rem; color: var(--ink-3); }
.byline b { font-weight: 600; color: var(--ink-2); }
.article__lede { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); max-width: 52ch; }
.article__art { grid-area: art; align-self: center; display: flex; align-items: center; justify-content: center; gap: 3%; }
.article__art .ico { width: min(100%, 360px); }
.article__art:has(.art-arrow) .ico { width: 46%; }
.article__short { grid-area: short; padding: 20px 22px 22px; border-radius: var(--r-m); background: var(--bg-2); }
.article__short-label { font: 600 0.75rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--kraft-ink); }
.article__short p:last-child { margin-top: 10px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink); max-width: 68ch; }

.article__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); }
.toc { position: sticky; top: calc(var(--top-h) + 32px); align-self: start; }
.toc p { padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 600 0.75rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { display: grid; gap: 2px; margin-top: 10px; }
.toc a { display: block; padding: 6px 0; font-size: 0.9rem; line-height: 1.4; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 70ch; min-width: 0; }
.prose > section + section { margin-top: 44px; }
.prose h2 { font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; scroll-margin-top: calc(var(--top-h) + 24px); }
.qa p, .qa li { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.qa p { margin-top: 12px; }
.qa strong { font-weight: 600; color: var(--ink); }
.qa a { color: var(--accent); font-weight: 500; text-underline-offset: 3px; }
.qa ul, .qa ol { display: grid; gap: 8px; margin-top: 14px; }
.qa ul li { position: relative; padding-left: 24px; }
.qa ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--kraft); rotate: 45deg; }
.qa ol { counter-reset: step; }
.qa ol li { position: relative; padding-left: 34px; counter-increment: step; }
.qa ol li::before { content: counter(step); position: absolute; left: 0; top: .25em; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--card); font: 700 0.75rem/1 var(--display); }
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); }
.qa table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9375rem; }
.qa th { text-align: left; padding: 12px 14px; font: 600 0.8125rem/1.3 var(--text); color: var(--ink); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.qa td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; vertical-align: top; }
.qa tr:last-child td { border-bottom: 0; }
.qa td:first-child { color: var(--ink); font-weight: 600; }

.article__cta {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 32px);
  margin-top: 56px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-l); background: var(--bg-2);
}
.article__cta-ico { width: 140px; }
.article__cta .kicker { margin-bottom: 8px; }
.article__cta h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.article__cta p:not(.kicker) { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }
.article__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.article__cta-wrap { max-width: 980px; margin-top: 24px; }
.related { margin-top: 56px; }
.related h2 { font-size: 1.35rem; }
.related .gcards { margin-top: 20px; }

@media (max-width: 980px) {
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article__head { grid-template-columns: 1fr; grid-template-areas: "art" "titles" "short"; row-gap: 20px; }
  .article__art { justify-content: flex-start; }
  .article__art .ico { width: 132px; }
  .article__art:has(.art-arrow) .ico { width: 104px; }
  .article__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
}
@media (max-width: 640px) {
  .top__link { display: none; }
  .gcards, .gcards--two, .gcards--index { grid-template-columns: 1fr; }
  .gcard { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: none; align-items: start; gap: 14px; }
  .gcard__art, .gcards--index .gcard__art { aspect-ratio: 1; padding: 8%; }
  .gcard__art .ico { width: 84%; }
  .gcard__art:has(.art-arrow) .ico { width: 44%; }
  .gcards--index .gcard__t { font-size: 1.125rem; }
  .article__cta { grid-template-columns: 1fr; }
  .article__cta-ico { width: 104px; }
  .qa p, .qa li { font-size: 1rem; }
}

/* ==========================================================================
   Parent brand: "by Surface Art" in the header, Surface Art band in the footer
   ========================================================================== */
.brandwrap { display: flex; align-items: center; gap: 12px; justify-self: start; min-width: 0; }
.brand__by {
  padding-left: 12px; border-left: 1px solid var(--line-2);
  font: 500 0.875rem/1.2 var(--text); color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.brand__by:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.parent {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(40px, 5vw, 64px); padding: clamp(16px, 2.4vw, 24px) clamp(18px, 3vw, 32px);
  border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.parent:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.parent__ico { width: 112px; }
.parent__ico .ico__o { transition: transform .45s var(--ease); }
.parent:hover .parent__ico .ico__o { transform: translateY(-3%) scale(1.04); }
.parent__txt { display: grid; gap: 4px; }
.parent__k { font: 600 0.75rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--kraft-ink); }
.parent__txt b { font: 800 clamp(1.25rem, 1rem + 0.8vw, 1.6rem)/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.parent__txt > span:last-child { color: var(--ink-2); font-size: 0.9875rem; max-width: 56ch; }
.parent__go {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: var(--card); font: 600 0.9375rem/1 var(--text); white-space: nowrap;
  transition: background-color .2s var(--ease);
}
.parent:hover .parent__go { background: var(--accent); }

@media (max-width: 980px) {
  .brand__by { font-size: 0.8125rem; }
}
@media (max-width: 640px) {
  /* stack the credit under the wordmark so the header row still fits the quote button */
  .brandwrap { flex-direction: column; align-items: flex-start; gap: 1px; }
  .brand__by { padding-left: 42px; border-left: 0; font-size: 0.75rem; margin-top: -4px; }
  .parent { grid-template-columns: 72px minmax(0, 1fr); }
  .parent__ico { width: 72px; }
  .parent__go { grid-column: 1 / -1; justify-content: center; }
}
