/* Sothassi — the dark room. One graphite ground, bone ink, one ember accent (tail-light / redline). */
:root {
  --bg: #131211;
  --surface: #1c1b19;
  --ink: #ecebe8;
  --muted: #b0aea9;
  --accent: #ff5a1f;
  --accent-ink: #131211;
  --field: #e4e3df;
  --field-ink: #151412;
  --field-muted: #4f4a43;

  --m: clamp(16px, 2.3vw, 32px);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(3.6rem, 9.6vw, 11rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

*, *::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 var(--step-body)/1.6 "Jost", system-ui, sans-serif;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; font-size: 1.0625rem; text-decoration: none;
  border-radius: 0;
  transition: transform .25s var(--ease-out), background-color .25s;
}
.btn:hover { background: #ff7443; }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--field-ink); color: var(--field); }
.btn--dark:hover { background: #000; }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--ghost:hover { background: #2a2826; }
.link {
  font-size: var(--step-body); color: var(--ink); text-decoration: underline;
  text-underline-offset: .3em; text-decoration-thickness: 1px;
  transition: color .2s, text-underline-offset .3s var(--ease-out);
}
.link:hover { color: #fff; text-underline-offset: .45em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--m);
  transition: background-color .35s, transform .45s var(--ease-out);
}
.nav.is-solid { background: var(--bg); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { width: 150px; height: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: .9375rem; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 0 var(--m);
  overflow: hidden;
  isolation: isolate;
}
/* one pinned stage behind the hero and the walkaround */
.ride { position: relative; }
.ride__stage { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; z-index: 0; overflow: hidden; }
.ride__stage canvas { width: 100%; height: 100%; touch-action: pan-y; }
.hero, .walk { position: relative; z-index: 1; }
.hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.35); display: none; }
.no-webgl .hero__fallback { display: block; }
.hero__loader { position: absolute; left: var(--m); right: var(--m); bottom: 0; height: 3px; background: var(--surface); transition: opacity .6s; }
.hero__loader span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.hero__loader.is-done { opacity: 0; }

.hero__title { grid-row: 1 / 4; grid-column: 1; display: grid; grid-template-rows: auto 1fr auto; font-weight: 500; font-size: var(--step-hero); line-height: .88; letter-spacing: -.035em; text-transform: uppercase; }
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
.is-loaded .line > span { transform: none; }
.line--two > span { transition-delay: .11s; }
.line--one { grid-row: 1; margin-top: clamp(88px, 11vh, 120px); }
.line--two { grid-row: 3; justify-self: end; margin-bottom: 24px; text-align: right; }

.hero__copy {
  grid-row: 2; grid-column: 1; z-index: 1; align-self: center; max-width: 34rem;
  opacity: 0; transform: translateY(20px); transition: opacity .8s .5s, transform .8s .5s var(--ease-out);
}
.is-loaded .hero__copy { opacity: 1; transform: none; }
.hero__lead { font-size: var(--step-body); max-width: 40ch; }
.hero__actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.hero__aside { display: grid; gap: 14px; max-width: 22ch; }
.ignition__hint { font-size: var(--step-small); color: var(--muted); line-height: 1.45; }
.hero__links { display: flex; gap: 20px; flex-wrap: wrap; }
.hero__links .link { font-size: 1rem; }

/* ignition: segmented tach ring drawn from the emblem's eight points */
.ignition { position: relative; width: 168px; height: 168px; flex: none; }
.tach { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(0deg); }
.tach .seg { fill: #3a3733; transition: fill .08s; }
.tach .seg.on { fill: var(--ink); }
.tach .seg.red { fill: #5a2617; }
.tach .seg.red.on { fill: var(--accent); }
.ignition__btn {
  position: absolute; inset: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-content: center; text-align: center; gap: 0;
  transition: transform .2s var(--ease-out), background-color .3s;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.ignition__btn:hover { background: #ff7443; }
.ignition__btn:active, .ignition__btn.is-rev { transform: scale(.94); }
.ignition__label { font-weight: 500; font-size: 1.0625rem; line-height: 1.1; }
.ignition__rpm { font-size: .8125rem; font-variant-numeric: tabular-nums; opacity: 0; height: 0; transition: opacity .3s; }
.is-running .ignition__btn { background: var(--ink); }
.is-running .ignition__rpm { opacity: .7; height: auto; }
.is-cranking .ignition__btn { animation: crank .09s linear infinite; }
@keyframes crank { 50% { transform: translate(1px, -1px); } }

/* explore layer */
.explore { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.explore > * { pointer-events: auto; }
.explore__hint { position: absolute; top: 96px; left: var(--m); max-width: 30ch; font-size: var(--step-small); color: var(--muted); }
.explore__close { position: absolute; top: 88px; right: var(--m); }
.explore__paint { position: absolute; right: var(--m); bottom: 32px; display: grid; justify-items: end; gap: 12px; }
.explore__paint-name { font-size: 1rem; }
.swatches { display: flex; gap: 12px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--a); box-shadow: inset 22px 0 0 var(--b); /* inset shadow paints the second colour of the split swatch */
  outline: 2px solid transparent; outline-offset: 4px;
  transition: outline-color .2s, transform .2s var(--ease-out);
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-on { outline-color: var(--ink); }
.hotspot {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-size: 1.25rem; line-height: 1;
  transition: opacity .3s, transform .25s var(--ease-out), background-color .2s;
  will-change: transform;
}
.hotspot::after { content: "+"; transition: transform .3s var(--ease-out); }
.hotspot.is-open { background: var(--accent); }
.hotspot.is-open::after { transform: rotate(45deg); }
.hotspot.is-back { opacity: .25; }
.explore__card {
  position: absolute; left: var(--m); bottom: 32px; width: min(380px, calc(100% - 2 * var(--m)));
  background: var(--surface); padding: 24px 26px;
  animation: rise .45s var(--ease-out);
}
.explore__card-title { font-size: 1.375rem; font-weight: 500; line-height: 1.2; margin-bottom: 8px; }
.explore__card p { font-size: 1rem; color: var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes figIn { to { opacity: 1; transform: none; } }

.is-exploring .hero__title .line,
.is-exploring .hero__lead,
.is-exploring .hero__aside { opacity: 0; visibility: hidden; transition: opacity .5s; }
/* the ignition stays live while exploring, parked bottom-left */
.is-exploring .hero__copy { align-self: end; margin-bottom: 24px; z-index: 3; }
.is-exploring .explore__card { bottom: 216px; }
.is-exploring .hero__title { pointer-events: none; }
.is-exploring .ride__stage canvas { cursor: grab; touch-action: none; }
.is-exploring .ride__stage canvas:active { cursor: grabbing; }
.is-exploring .hero { pointer-events: none; }
.is-exploring .hero .explore > *, .is-exploring .hero__copy { pointer-events: auto; }

/* ---------- walkaround ---------- */
.walk { padding: 0 var(--m); }
.walk__stop { min-height: 100svh; display: grid; align-items: center; }
.walk__stop--right { justify-items: end; }
.walk__text {
  width: min(440px, 100%); display: grid; gap: 20px; padding: 28px; background: rgba(19, 18, 17, .78);
  opacity: .4; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.walk__stop.is-in .walk__text { opacity: 1; transform: none; }
.walk__title { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 500; line-height: 1; letter-spacing: -.025em; }
.walk__text p { max-width: 38ch; }
.walk__facts { display: flex; gap: 32px; margin-top: 8px; }
.walk__facts dt { font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.walk__facts dd { color: var(--muted); font-size: 1rem; }
.walk__ignite { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.walk__rpm { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 8ch; }
.walk__ignite .btn.is-on { background: var(--ink); color: var(--bg); }
/* progress: five bars, the lit one is the stop on screen */
.walk__rail { position: sticky; top: calc(50svh - 60px); height: 0; display: grid; justify-items: end; gap: 8px; pointer-events: none; z-index: 2; transition: opacity .4s; }
.walk__rail span { display: block; width: 4px; height: 20px; background: #3a3733; transition: background-color .3s, height .4s var(--ease-out); }
.walk__rail span.on { background: var(--accent); height: 36px; }
.walk:not(.is-active) .walk__rail { opacity: 0; }

/* ---------- film: the frame opens to the whole screen ---------- */
.film { position: relative; padding-top: clamp(96px, 14vh, 160px); }
.film__track { height: 240svh; position: relative; }
.film__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.film__frame { position: absolute; inset: 0; background: #000; clip-path: inset(var(--fy, 22%) var(--fx, 26%)); }
.film__frame video { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--fs, 1.15)); }
.film__title { padding: 0 var(--m) 48px; font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 500; line-height: 1; letter-spacing: -.025em; max-width: 16ch; }
.film__caption { position: absolute; right: var(--m); bottom: 32px; z-index: 1; max-width: 34ch; text-align: right; opacity: var(--ft, 1); }

/* ---------- motorcycles: chapters ---------- */
.models { display: grid; }
.chapter {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto 1fr auto;
  padding: 104px var(--m) 32px; gap: 24px;
  isolation: isolate;
}
.chapter__field {
  position: absolute; inset: 0; z-index: -1; background: var(--field, var(--surface));
  clip-path: inset(20px round 0); transition: clip-path .9s var(--ease-out);
}
.chapter.is-in .chapter__field { clip-path: inset(0 round 0); }
.chapter__title { grid-column: 1; grid-row: 1; font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.chapter__pic {
  grid-column: 2; grid-row: 1 / 4; align-self: center;
  width: min(506px, 42vw); aspect-ratio: 3 / 4; overflow: hidden;
  transform: scale(.92); transition: transform 1.1s var(--ease-out);
}
.chapter.is-in .chapter__pic { transform: none; }
.chapter__pic img, .chapter__pic video { width: 100%; height: 100%; object-fit: cover; transition: transform 6s linear; }
.chapter.is-in .chapter__pic img { transform: scale(1.06); }
.chapter__text { grid-column: 1; grid-row: 3; align-self: end; max-width: 32ch; font-size: 1.0625rem; }
.chapter__link { grid-column: 3; grid-row: 3; align-self: end; justify-self: end; font-size: 1.0625rem; text-underline-offset: .3em; text-decoration-thickness: 1px; transition: text-underline-offset .3s var(--ease-out); }
.chapter__link:hover { text-underline-offset: .5em; }

/* ---------- specs ---------- */
.specs { padding: clamp(120px, 18vh, 200px) var(--m); display: grid; gap: 56px; }
.specs__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.specs__title { font-size: var(--step-head); font-weight: 500; line-height: 1; letter-spacing: -.025em; max-width: 14ch; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { min-height: 44px; padding: 0 18px; background: var(--surface); color: var(--muted); font-size: 1rem; transition: background-color .25s, color .25s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.specs__body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.figures { display: grid; gap: 28px; }
.fig { display: grid; grid-template-columns: 200px 1fr; column-gap: 24px; align-items: baseline; opacity: 0; transform: translateY(16px); animation: figIn .6s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms); }
.fig dt { text-align: right; font-size: clamp(1.75rem, 2.2vw, 2rem); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.fig dt small { font-size: 1em; font-weight: 400; margin-left: .25em; color: var(--muted); }
.fig dd { color: var(--muted); max-width: 40ch; }
.fig dd b { color: var(--ink); font-weight: 500; }
.gauge { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; justify-self: center; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge .track { stroke: #2b2926; }
.gauge .arc { stroke: var(--ink); transition: stroke-dashoffset 1.4s var(--ease-out); }
.gauge .arc--accent { stroke: var(--accent); }
.gauge .tick { fill: #4a4640; }
.gauge text { fill: var(--muted); font: 400 15px "Jost", sans-serif; }
.gauge__read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.gauge__read span:first-child { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.gauge__read span:last-child { color: var(--muted); font-size: 1rem; }
.specs__pic { margin-top: 80px; aspect-ratio: 6 / 5; overflow: hidden; }
.specs__pic img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9) contrast(1.05); transition: opacity .4s; }
.specs__pic img.is-swap { opacity: 0; }

/* ---------- kit: name columns ---------- */
.kit { padding: 20vh var(--m); display: grid; gap: 96px; }
.kit__title { font-size: 1.75rem; font-weight: 500; line-height: 1.15; }
.kit__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.kit__col { grid-column: span 3; }
.kit__col:nth-child(2) { grid-column: 4 / span 3; }
.kit__col:nth-child(3) { grid-column: 7 / span 3; }
.kit__col h3 { font-size: 1.0625rem; font-weight: 500; margin-bottom: 1.6em; }
.kit__col li { color: var(--muted); line-height: 1.6; font-size: 1.0625rem; cursor: default; transition: color .2s, transform .3s var(--ease-out); }
.kit__col li:hover, .kit__col li.is-on { color: var(--ink); transform: translateX(6px); }
.kit__sum { display: none; }
.kit__desc { grid-column: 10 / span 3; grid-row: 1; font-size: 1.0625rem; color: var(--ink); min-height: 5em; }


/* ---------- shop: product cards ---------- */
.shop { background: var(--field); color: var(--field-ink); padding: clamp(96px, 14vh, 160px) var(--m); display: grid; gap: 40px; }
.shop__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.shop__title { font-size: var(--step-head); font-weight: 500; line-height: 1; letter-spacing: -.025em; max-width: 14ch; }
.shop__lead { max-width: 46ch; }
.shop__tools { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 42px; padding: 0 16px; border-radius: 999px; background: #d4d3ce; color: var(--field-ink); font-size: .9375rem; transition: background-color .2s, color .2s, transform .2s var(--ease-out); }
.chips button:hover { background: #c9c8c2; }
.chips button:active { transform: scale(.96); }
.chips button[aria-pressed="true"] { background: var(--field-ink); color: var(--field); }
.shop__filters { display: flex; flex-wrap: wrap; gap: 12px; }
.field { display: grid; gap: 6px; font-size: .875rem; color: var(--field-muted); }
.field input, .field select {
  font: inherit; font-size: 1rem; color: var(--field-ink); min-height: 44px; min-width: 180px;
  background: #d4d3ce; border: 0; border-radius: 0; padding: 0 12px;
}
.field input::placeholder { color: #6f6b64; }
.field--dark { color: var(--muted); }
.field--dark input { background: #2a2826; color: var(--ink); width: 100%; }
.shop__count { color: var(--field-muted); font-size: .9375rem; }
.shop__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pcard {
  position: relative; display: grid; grid-template-rows: auto 1fr; background: #ecebe8;
  transition: transform .35s var(--ease-out), box-shadow .35s;
  animation: cardIn .5s var(--ease-out) both; animation-delay: calc(var(--i) * 40ms);
}
.pcard:hover { transform: translateY(-4px); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.pcard__img { aspect-ratio: 1; background: #dddcd7; overflow: hidden; display: grid; place-items: center; }
.pcard__img img { width: 88%; height: 88%; object-fit: contain; transition: transform .6s var(--ease-out); }
.pcard:hover .pcard__img img { transform: scale(1.06) rotate(-1.5deg); }
.pcard__tag { position: absolute; top: 12px; left: 12px; background: var(--field-ink); color: var(--field); font-size: .8125rem; padding: 4px 10px; }
.pcard__body { display: grid; gap: 6px; padding: 18px 18px 20px; align-content: start; }
.pcard__name { font-size: 1.125rem; font-weight: 500; line-height: 1.25; }
.pcard__meta { color: var(--field-muted); font-size: .9375rem; }
.pcard__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.pcard__price { font-size: 1.125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.pcard__add { min-height: 42px; padding: 0 16px; background: var(--field-ink); color: var(--field); font-size: .9375rem; transition: background-color .2s, transform .2s var(--ease-out); }
.pcard__add:hover { background: #000; }
.pcard__add:active { transform: scale(.95); }
.pcard__add.is-added { background: #2f6b3f; }
.pcard__stock { font-size: .875rem; color: #2f6b3f; }
.pcard__stock--pre { color: #9a4a10; }
.shop__empty { font-size: 1.125rem; }
.shop__more { justify-self: center; }

/* ---------- bag drawer ---------- */
.nav__bag { font-size: .9375rem; color: var(--ink); min-height: 42px; padding: 0 6px; }
.nav__bag span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; border-radius: 999px; background: var(--surface); font-variant-numeric: tabular-nums; font-size: .8125rem; transition: background-color .3s, transform .3s var(--ease-out); }
.nav__bag.has-items span { background: var(--accent); color: var(--accent-ink); }
.nav__bag.bump span { transform: scale(1.3); }
.bag-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .5); }
.bag {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(440px, 100%);
  background: var(--surface); color: var(--ink); display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(100%); transition: transform .5s var(--ease-out), visibility .5s; visibility: hidden;
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .6); /* the drawer floats over the page */
}
.bag.is-open { transform: none; visibility: visible; }
.bag__head { display: flex; justify-content: space-between; align-items: center; padding: 24px; }
.bag__head h2 { font-size: 1.5rem; font-weight: 500; }
.bag__close { text-decoration: underline; text-underline-offset: .3em; }
.bag__list { overflow-y: auto; padding: 0 24px; display: grid; gap: 16px; align-content: start; }
.bag__item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; }
.bag__item img { width: 72px; height: 72px; object-fit: contain; background: #2a2826; }
.bag__item p { font-size: 1rem; line-height: 1.3; }
.bag__item small { color: var(--muted); font-size: .875rem; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 32px; height: 32px; background: #2a2826; font-size: 1.1rem; }
.qty span { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.bag__empty { padding: 0 24px; color: var(--muted); }
.bag__foot { padding: 24px; display: grid; gap: 12px; background: #232220; }
.bag__total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.bag__note { color: var(--muted); font-size: .9375rem; }
.bag__send { width: 100%; }
.bag__send[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, calc(100% + 40px));
  background: var(--ink); color: var(--bg); padding: 14px 20px; font-size: 1rem; transition: transform .45s var(--ease-out), visibility .45s; visibility: hidden;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); /* the toast floats over the page */
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.toast { display: flex; align-items: center; gap: 18px; }
.toast__act { text-decoration: underline; text-underline-offset: .3em; font-weight: 500; white-space: nowrap; }

/* ---------- story ---------- */
.story { padding: clamp(120px, 18vh, 200px) 20px; }
.story__panel {
  position: relative; min-height: 100svh; overflow: hidden; background: #1d1c1a;
  display: grid; grid-template-columns: 63% 1fr; padding: 56px;
}
.story__title { font-size: clamp(2.5rem, 4.4vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -.025em; max-width: 12ch; }
.story__pic {
  position: absolute; left: 40px; bottom: -9vw; width: min(46vw, 760px); aspect-ratio: 1;
  clip-path: polygon(50% 0%, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0% 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%);
  transform: rotate(-12deg); transition: transform 1.6s var(--ease-out);
}
.story.is-in .story__pic { transform: rotate(0deg); }
.story__pic img { width: 100%; height: 100%; object-fit: cover; }
.story__right { display: grid; align-content: start; gap: 64px; max-width: 300px; }
.story__block h3 { font-size: 1.375rem; font-weight: 500; margin-bottom: 12px; }
.story__block p { font-size: 1.0625rem; }
.story .btn { justify-self: start; }

/* ---------- book ---------- */
.book { position: relative; min-height: 90svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 0 var(--m); background: #000; overflow: hidden; }
.book__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; transform: scale(1.08); transition: transform 2.4s var(--ease-out); }
.book.is-in .book__img { transform: none; }
.book__text { position: relative; grid-column: 9 / span 4; align-self: end; padding-bottom: 14vh; display: grid; gap: 20px; }
.book__title { font-size: clamp(2.25rem, 3.4vw, 3.5rem); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; }
.book__text p { max-width: 40ch; }
.book__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--bg); display: grid; padding: 40px var(--m) 24px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; font-size: 1rem; }
.foot__cols p { color: #4c4842; }
.foot__cols .foot__h { color: var(--bg); font-weight: 500; margin-bottom: 4px; }
.foot__cols a { text-decoration: none; transition: color .2s; }
.foot__cols a:hover { color: var(--bg); text-decoration: underline; }
.foot__word { width: 100%; height: auto; margin: clamp(96px, 22vh, 240px) 0 20px; }
.foot__word text { font: 600 150px "Jost", sans-serif; fill: var(--bg); letter-spacing: -.02em; }
.foot__legal { font-size: var(--step-small); color: #4c4842; }

/* ---------- entrances ---------- */
.rv { opacity: .4; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.rv.is-in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .specs__body { grid-template-columns: 1fr 1fr; }
  .specs__pic { grid-column: 1 / -1; margin-top: 0; max-width: 560px; }
  .kit__col, .kit__col:nth-child(2), .kit__col:nth-child(3) { grid-column: span 4; }
  .kit__desc { grid-column: 1 / -1; grid-row: 2; margin-top: 40px; }
  .shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop__head { grid-template-columns: 1fr; }
  .story__panel { grid-template-columns: 1fr; gap: 48px; padding: 40px; }
  .story__pic { position: relative; left: auto; bottom: auto; width: 70vw; margin: 48px auto 0; }
  .story__right { max-width: 520px; }
  .book__text { grid-column: 6 / span 7; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .nav { gap: 16px; padding: 14px var(--m); }
  .nav__links { display: none; }
  .nav .btn { margin-left: 0; padding: 0 12px; white-space: nowrap; }
  .nav__bag { white-space: nowrap; padding: 0; }
  .nav__logo img { width: 120px; }
  .hero__title { font-size: 12.4vw; }
  .line { white-space: nowrap; }
  .line--one { margin-top: 88px; }
  .line--two { margin-bottom: 20px; }
  .hero__copy { align-self: end; margin-bottom: calc(12.4vw * .92 + 44px); }
  .hero__lead { font-size: 1.0625rem; }
  .hero__actions { margin-top: 20px; gap: 16px; }
  .ignition { width: 132px; height: 132px; }
  .ignition__btn { inset: 27px; }
  .explore__hint { top: 80px; right: var(--m); }
  .explore__close { top: auto; bottom: 108px; right: var(--m); }
  .explore__card { bottom: 180px; }
  .is-exploring .explore__card { bottom: 172px; }
  .is-exploring .hero__copy { margin-bottom: 16px; }

  .chapter { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; padding: 88px var(--m) 32px; gap: 16px; }
  .chapter__title { font-size: 1.5rem; }
  .chapter__pic { grid-column: 1; grid-row: 2; width: 80vw; justify-self: center; }
  .chapter__text { grid-row: 3; font-size: 1rem; }
  .chapter__link { grid-column: 1; grid-row: 4; justify-self: start; font-size: 1rem; }

  .specs__body { grid-template-columns: 1fr; }
  .fig { grid-template-columns: 96px 1fr; column-gap: 16px; }
  .fig dt { font-size: 1.5rem; }
  .gauge { max-width: 320px; }
  .specs__pic { margin-left: auto; width: 70%; }

  .kit { gap: 48px; }
  .kit__title { font-size: 1.5rem; }
  .kit__cols { display: grid; grid-template-columns: 1fr; row-gap: 40px; }
  .kit__col, .kit__col:nth-child(2), .kit__col:nth-child(3) { grid-column: 1; }
  .kit__col h3 { margin-bottom: .8em; }
  .kit__col li { font-size: 1.125rem; line-height: 1.4; }
  .kit__sum { display: block; margin-top: 14px; color: var(--muted); }
  .kit__desc { display: none; }


  .shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard__body { padding: 12px 12px 14px; }
  .pcard__name { font-size: 1rem; }
  .pcard__row { flex-direction: column; align-items: stretch; }
  .pcard__add { width: 100%; }
  .shop__filters, .shop__filters .field { width: 100%; }
  .field input, .field select { min-width: 0; width: 100%; }
  .walk__stop, .walk__stop--right { align-items: end; justify-items: start; padding-bottom: 10svh; }
  .walk__text { background: var(--bg); padding: 20px var(--m); margin: 0 calc(-1 * var(--m)); width: calc(100% + 2 * var(--m)); }
  .walk__rail { display: none; }
  .nav__bag { margin-left: auto; }
  .story { padding: 96px 10px; }
  .story__panel { padding: 28px 20px; min-height: 0; }
  .story__title { font-size: 8.5vw; }
  .story__pic { width: 80vw; margin: 24px auto 0; }

  .book { display: block; min-height: 0; padding: 0; background: var(--bg); }
  .book__img { position: relative; height: 70svh; transform: none; object-position: 20% center; }
  .book__text { padding: 32px var(--m) 72px; }
  .book__title { font-size: 1.75rem; }
  .book .btn { width: 100%; }

  .foot__cols { grid-template-columns: 1fr 1fr; row-gap: 32px; font-size: .9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .line > span, .hero__copy, .rv { transform: none !important; opacity: 1 !important; }
  .chapter__pic, .story__pic, .book__img { transform: none !important; }
}

/* tablet widths: keep the nav on one line */
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav__links { gap: 18px; }
  .nav .btn, .nav__bag { white-space: nowrap; }
}
@media (max-width: 900px) and (min-width: 721px) {
  .nav__links { display: none; }
  .nav__bag { margin-left: auto; }
}
