/* DV60 BRICKRUNNER 01, stage 4 — the guides: leader lines, callouts, the hint as a button, the phone's arrow.
   Light only. */
:root {
  color-scheme: light;
  --page: #F3F9FA; --page-2: #E8F0F2; --card: #FFFFFF;
  --ink: #17181B; --ink-2: #3A3D42; --dim: #8D9094; --line: #D9E2E5;
  --teal: #2EC6CF; --teal-d: #0C838B; --magenta: #E8458E; --yellow: #F4C83A;
  --display: 'Bebas Neue', 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --gut: clamp(16px, 4.6vw, 112px);
  --focus: 0 0 0 3px #fff, 0 0 0 5.5px var(--teal-d);
}
* { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink); font-family: var(--cond); font-weight: 500;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 76px; display: flex; align-items: center; gap: clamp(20px, 3.4vw, 52px);
  padding: 0 var(--gut); pointer-events: none;
}
.nav > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--cond); font-weight: 700; font-size: clamp(22px, 1.5vw, 32px); letter-spacing: .02em; text-decoration: none; text-transform: uppercase; }
.links { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; font-weight: 600; font-size: clamp(14.5px, 1vw, 21px); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; position: relative; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--magenta); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.links a:hover::after { transform: scaleX(1); }
.nav-count { display: none; margin: 0; font-weight: 700; font-size: 17px; letter-spacing: .03em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- the build: one tall section, a sticky stage */
.build { position: relative; height: 640vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(60% 55% at 52% 46%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #F5FAFB 0%, #F1F7F8 62%, #E9F1F3 100%);
}
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.intro { position: absolute; left: var(--gut); top: 27.5%; width: 36vw; z-index: 2; }
.k-phone { display: none; }
.kicker { margin: 0 0 6px; font-weight: 600; font-size: clamp(14px, 1.25vw, 28px); letter-spacing: .02em; text-transform: uppercase; }
.title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(54px, 6.5vw, 150px); line-height: .92; letter-spacing: .005em; text-transform: uppercase; }
.hint {
  margin: clamp(22px, 3.3vh, 36px) 0 0; padding: 6px 0; border: 0; background: none; text-align: left;
  font-weight: 600; font-size: clamp(14px, 1.2vw, 27px); line-height: 1.12; letter-spacing: .03em; text-transform: uppercase; display: inline-flex; align-items: flex-end; gap: 6px; min-height: 44px;
  transition: opacity .3s;
}
.done .hint { display: none; }
.hint .arrow { display: inline-block; transition: transform .25s; }
.hint:hover .arrow { transform: translateX(4px); }

.counter { position: absolute; right: var(--gut); top: 40%; z-index: 2; text-align: left; min-width: 15ch; }
.clabel { margin: 0 0 4px; font-weight: 600; font-size: clamp(14px, 1.25vw, 28px); letter-spacing: .02em; text-transform: uppercase; }
.cnum { margin: 0; font-family: var(--cond); font-weight: 600; font-size: clamp(44px, 4.6vw, 108px); line-height: 1; letter-spacing: -.005em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cnum b { font-weight: 600; color: var(--ink); }
.cnum .of { font-weight: 400; color: var(--dim); }
.phase { margin: 10px 0 0; font-weight: 600; font-size: clamp(13.5px, .95vw, 21px); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.phase::before { content: ''; display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin: 0 8px 3px 0; background: linear-gradient(90deg, var(--magenta), var(--teal)); vertical-align: middle; }

.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.leaders path { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: var(--o, 0); }
.leaders circle { fill: var(--ink); opacity: var(--o, 0); }
.callout { position: absolute; left: 0; top: 0; margin: 0; z-index: 1; font-weight: 600; font-size: clamp(12.5px, 1vw, 22px); line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; opacity: var(--o, 0); will-change: transform; pointer-events: none; }

.rail, .rail-next, .foot { display: none; }

/* ---------------------------------------------------------------- after the build */
.h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 5.4vw, 80px); line-height: .92; text-transform: uppercase; }
.h2.small { font-size: clamp(36px, 3.6vw, 54px); }
.lede { margin: 0 0 28px; font-family: var(--cond); font-weight: 500; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; color: var(--ink-2); max-width: 34em; }
.lede b { color: var(--ink); }

.parts { padding: clamp(56px, 8vw, 110px) var(--gut); background: var(--page); }
.parts-in { max-width: 1180px; margin: 0 auto; }
.inventory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.inventory li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.inventory .n { margin-left: auto; font-family: var(--display); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.inventory .k { font-weight: 600; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.inventory .k small { display: block; font-weight: 500; font-size: 12.5px; color: var(--dim); letter-spacing: .04em; }
.inventory svg { width: 40px; height: 30px; flex: none; }
.footer { padding: 28px var(--gut) 40px; background: var(--page); border-top: 1px solid var(--line); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer p { margin: 0; max-width: 1180px; margin-inline: auto; color: var(--ink-2); font-weight: 500; font-size: 15px; letter-spacing: .02em; }

/* ---------------------------------------------------------------- tablet portrait and narrower desktop */
@media (max-width: 1100px) and (min-width: 721px) {
  .intro { top: 22%; width: 50vw; }
  .counter { top: 22%; }
}

/* ---------------------------------------------------------------- phone (the concept's phone frame) */
@media (max-width: 720px) {
  .nav { height: 64px; gap: 12px; }
  .brand, .links { display: none; }
  .nav-count { display: block; }
  .build { height: 560vh; }
  .intro { left: var(--gut); right: var(--gut); top: auto; bottom: calc(44px + env(safe-area-inset-bottom)); width: auto; }
  .k-desk { display: none; }
  .k-phone { display: inline; }
  .intro .kicker { font-size: 15px; letter-spacing: .04em; margin-bottom: 2px; }
  .title { font-size: clamp(46px, 14vw, 62px); }
  .intro .hint { display: none; }
  .counter { display: none; }
  .callout, .leaders { display: none; }
  .foot { display: block; position: absolute; left: var(--gut); right: var(--gut); bottom: calc(22px + env(safe-area-inset-bottom)); }
  .bar { height: 5px; border-radius: 3px; background: rgba(23, 24, 27, .08); overflow: hidden; }
  .bar span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--magenta), #C982B3 45%, var(--teal)); border-radius: 3px; }
  .rail { display: block; position: absolute; right: calc(var(--gut) + 20px); top: 57%; width: 3px; height: 14vh; border-radius: 2px; background: rgba(23, 24, 27, .1); overflow: hidden; }
  .rail-fill { display: block; width: 100%; height: 100%; transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(180deg, var(--teal), #20A9B2); }
  .rail-next { display: grid; place-items: center; position: absolute; right: var(--gut); top: calc(57% + 14vh + 2px); width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; }
  .rail-next svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .done .rail-next { opacity: 0; pointer-events: none; }
}
/* a phone on its side: copy on the left, the shoe on the right, nothing at the bottom */
@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .nav { height: 56px; }
  .intro { top: 26%; width: 40vw; }
  .title { font-size: clamp(38px, 6.4vw, 56px); }
  .counter { top: 26%; }
  .cnum { font-size: 40px; }
  .callout, .leaders { display: none; }
  .build { height: 520vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
