/* MOTA Garage — brand-led site. Shared design system.
   Layout concept: a precision instrument. Chapters breathe on a deep dial-green ground,
   wide light capitals carry the brand, a serif carries the founders' voice, mono carries the specs,
   and a minute-track tick rule is the one recurring ornament. Orange (Pantone 151 C) appears once per screen. */

:root {
  /* Colour — single committed dark world (the watch dial). */
  --ink: #0d1c16;            /* bezel black-green, deepest bands */
  --dial: #142a21;           /* page ground — lifted so photography carries light */
  --dial-2: #1a3329;         /* raised surface on the ground */
  --racing: #305043;         /* Pantone 4210 C (screen approx.) — brand green fields */
  --racing-deep: #23402f;    /* 4210 C darkened for large fields behind text */
  --orange: #ff8200;         /* Pantone 151 C (screen approx.) — one moment per screen */
  --orange-ink: #1a0d00;     /* text on orange */
  --bone: #ede7d9;           /* numerals / display on dark, paper panels */
  --paper: #f2eee4;          /* light paper ground for the brand & costs page */
  --paper-ink: #13201a;      /* text on paper */
  --paper-muted: #4c5a53;    /* muted text on paper (7:1+) */
  --steel-100: #eef1ef;      /* primary text on dark */
  --steel-300: #cdd5d1;      /* body text on dark (10:1 on --dial) */
  --steel-500: #a9b5af;      /* labels on dark (7:1 on --dial) */
  --photo-lift: brightness(1.14) saturate(1.06) contrast(1.03); /* luxury light: every photo and film */
  --steel-plate: #c9cecb;    /* brushed 316L plate */
  --signal: #8fc8d8;         /* the watch's pale-blue hand: technical annotation only */
  --line: rgba(231, 235, 232, 0.14);
  --line-strong: rgba(231, 235, 232, 0.28);
  --scrim: rgba(6, 13, 10, 0.55);

  /* Type */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;   /* wide light caps, condensed labels */
  --f-voice: "Newsreader", "Iowan Old Style", Georgia, serif;     /* the founders' voice, italic */
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; /* specs */

  /* Scale */
  --t-hero: clamp(2.1rem, 3.9vw, 3.9rem);
  --t-xl: clamp(2.2rem, 4.8vw, 4.6rem);
  --t-lg: clamp(1.7rem, 3.2vw, 3rem);
  --t-md: clamp(1.25rem, 1.9vw, 1.7rem);
  --t-voice: clamp(1.6rem, 3.3vw, 3.1rem);
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-small: 0.875rem;
  --t-label: 0.8125rem;

  /* Space & frame */
  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1360px;
  --chapter: clamp(88px, 12vw, 184px);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dial);
  color: var(--steel-300);
  font-family: var(--f-display);
  font-size: var(--t-body);
  line-height: 1.65;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
img, video { display: block; max-width: 100%; }
a { color: var(--steel-100); text-decoration-color: var(--line-strong); text-underline-offset: 0.25em; }
a:hover { color: var(--bone); text-decoration-color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--orange-ink); }
h1, h2, h3, h4 { margin: 0; color: var(--steel-100); font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- frame ---------- */
.wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.chapter { padding-block: var(--chapter); position: relative; }
.chapter--tight { padding-block: calc(var(--chapter) * 0.6); }
.band--ink { background: var(--ink); }
.band--dial2 { background: var(--dial-2); }
.band--racing { background: var(--racing-deep); }
.band--paper { background: var(--paper); color: var(--paper-ink); }
.band--paper h1, .band--paper h2, .band--paper h3, .band--paper h4 { color: var(--paper-ink); }
.band--paper a { color: var(--paper-ink); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 24px); }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 24px); align-items: center; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 44ch; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  color: var(--steel-100);
}
.display strong { font-weight: 600; }
.t-hero { font-size: var(--t-hero); }
.t-xl { font-size: var(--t-xl); }
.t-lg { font-size: var(--t-lg); line-height: 1.04; }
.t-md { font-size: var(--t-md); line-height: 1.15; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-stretch: 75%; font-weight: 600;
  font-size: var(--t-label); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel-500);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--plain::before { display: none; }
.voice {
  font-family: var(--f-voice); font-style: italic; font-weight: 300;
  font-size: var(--t-voice); line-height: 1.18; letter-spacing: -0.005em;
  color: var(--bone); font-optical-sizing: auto;
}
.voice--sm { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; }
.lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.55; color: var(--steel-300); }
.mono, .spec dt, .spec dd, .cap {
  font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.cap { color: var(--steel-500); text-transform: uppercase; }
.muted { color: var(--steel-500); }
.small { font-size: var(--t-small); }

/* The brand full stop: always round, always orange (the logo's dot). Use <i class="dot" aria-hidden="true"></i> after a heading. */
.dot {
  display: inline-block; width: 0.2em; height: 0.2em; border-radius: 50%;
  background: var(--orange); margin-left: 0.07em; vertical-align: baseline; font-style: normal;
}
.dot--steel { background: currentColor; }

/* ---------- ornaments ---------- */
/* Minute-track rule: 60 ticks, every fifth one taller and orange. */
.ticks {
  height: 14px; width: 100%;
  background:
    linear-gradient(var(--dial), var(--dial)) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--orange) 0 2px, transparent 2px calc(100% / 12)) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px calc(100% / 60)) 0 6px / 100% 8px no-repeat;
  opacity: 0.9;
}
.band--ink .ticks { background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--orange) 0 2px, transparent 2px calc(100% / 12)) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px calc(100% / 60)) 0 6px / 100% 8px no-repeat; }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }
.blueprint-grid {
  background-color: #0d1f2a;
  background-image:
    linear-gradient(rgba(143, 200, 216, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 200, 216, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(143, 200, 216, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 200, 216, 0.07) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}

/* TBC marker: a fact the client must confirm before launch. <span class="tbc" title="why">TBC</span> */
.tbc {
  display: inline-block; vertical-align: 0.15em; margin-left: 0.4em;
  font-family: var(--f-mono); font-size: 10px; font-style: normal; font-weight: 500; letter-spacing: 0.08em; line-height: 1;
  color: var(--signal); border: 1px solid currentColor; border-radius: 99px; padding: 3px 6px; text-transform: uppercase;
  cursor: help;
}
.band--paper .tbc { color: #1f5f73; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; box-sizing: border-box;
  padding: 0 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent;
  font-family: var(--f-display); font-stretch: 87.5%; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel-100); text-decoration: none; cursor: pointer; transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { border-color: var(--bone); color: var(--bone); background: rgba(237, 231, 217, 0.04); }
.btn--solid { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.btn--solid:hover { background: #ff9a33; border-color: #ff9a33; color: var(--orange-ink); }
.btn--bone { background: var(--bone); border-color: var(--bone); color: var(--paper-ink); }
.btn--bone:hover { background: #fff; color: var(--paper-ink); }
.btn svg { width: 16px; height: 16px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--f-display); font-stretch: 87.5%; font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel-100); text-decoration: none;
}
.link-arrow::after { content: ""; width: 26px; height: 1px; background: currentColor; transition: width 0.35s var(--ease), background 0.35s var(--ease); }
.link-arrow:hover::after { width: 44px; background: var(--orange); }

/* ---------- media ---------- */
.media { position: relative; overflow: hidden; background: var(--dial-2); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); filter: var(--photo-lift); }
img[src*="assets/img/"], video[data-film] { filter: var(--photo-lift); }
/* Text set over photography always carries its own soft shadow. */
.on-photo, .hero__content, .hero__content * { text-shadow: 0 1px 18px rgba(4, 10, 8, 0.55), 0 1px 2px rgba(4, 10, 8, 0.4); }
.media--tall { aspect-ratio: 3 / 4; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 9; }
.media--cine { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1; }
.media--zoom:hover img { transform: scale(1.035); }
figcaption.cap { margin-top: 12px; display: flex; gap: 16px; justify-content: space-between; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(560px, 92svh, 1000px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero__film { position: absolute; inset: 0; z-index: -2; }
.hero__film video, .hero__film img { width: 100%; height: 100%; object-fit: cover; }
/* Light scrim: a short shade under the header (deep enough for the white logo on a bright sky) and a low gradient
   behind the copy, nothing over the picture itself. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(6, 13, 10, 0.7) 0, rgba(6, 13, 10, 0.4) 90px, rgba(6, 13, 10, 0) 170px),
  linear-gradient(180deg, rgba(6, 13, 10, 0) 58%, rgba(6, 13, 10, 0.62) 100%); }
.hero__content { padding-block: 0 clamp(36px, 5vw, 72px); width: 100%; }
.hero__content .voice { font-size: clamp(1.1rem, 1.5vw, 1.45rem); max-width: 34ch; margin-top: 14px; }
.hero__meta { display: none; } /* the menu already lists the services; no second nav in the hero */

/* ---------- horizontal rail ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: var(--rail-w, minmax(260px, 30%)); gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; padding-bottom: 20px; cursor: grab; }
.rail > * { scroll-snap-align: start; min-width: 0; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
@media (max-width: 720px) { .rail { --rail-w: 78%; } }

/* ---------- spec plate (the caseback engraving) ---------- */
.spec {
  margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.spec dt, .spec dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--steel-500); text-transform: uppercase; padding-right: 28px; }
.spec dd { color: var(--steel-100); }
.plate {
  background: linear-gradient(115deg, #d3d7d5 0%, #c3c8c6 18%, #d9dddb 34%, #bfc5c2 52%, #d2d6d4 70%, #c6cbc9 100%);
  color: var(--paper-ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); position: relative;
}
.plate::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, rgba(0, 0, 0, 0.03) 1px 3px); }
.plate .spec { border-top-color: rgba(19, 32, 26, 0.25); }
.plate .spec dt, .plate .spec dd { border-bottom-color: rgba(19, 32, 26, 0.18); }
.plate .spec dt { color: #3d4a44; }
.plate .spec dd { color: var(--paper-ink); }
.plate .cap, .plate .eyebrow { color: #3d4a44; }

/* ---------- editorial index list (services) ---------- */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; padding: clamp(20px, 2.6vw, 34px) 0; text-decoration: none; color: inherit; }
.index-list .display { transition: color 0.3s var(--ease), letter-spacing 0.5s var(--ease); }
.index-list a:hover .display { color: var(--bone); letter-spacing: 0.03em; }
.index-list a:hover .dot { transform: scale(1.4); }
.index-list .dot { transition: transform 0.3s var(--ease); }

/* ---------- movements (a real sequence) ---------- */
.movements { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.movements li { padding: 22px 22px 0 0; position: relative; }
.movements li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--dial); border: 1px solid var(--steel-100); }
.movements li:first-child::before { background: var(--orange); border-color: var(--orange); }
.movements .n { font-family: var(--f-mono); font-size: var(--t-label); color: var(--steel-500); display: block; margin: 14px 0 10px; }
.movements h3 { font-stretch: 100%; font-weight: 500; font-size: 1.05rem; margin-bottom: 8px; }
.movements p { font-size: var(--t-small); color: var(--steel-300); line-height: 1.55; }
@media (max-width: 960px) {
  .movements { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line-strong); padding-left: 24px; gap: 28px; }
  .movements li { padding: 0; }
  .movements li::before { top: 4px; left: -29px; }
  .movements .n { margin-top: 0; }
}

/* ---------- FAQ (quiet) ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; color: var(--steel-100); font-size: 1.05rem; min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--orange); font-size: 1.2rem; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 64ch; color: var(--steel-300); }

/* ---------- header / nav ---------- */
.nav { position: fixed; top: env(safe-area-inset-top, 0px); inset-inline: 0; z-index: 50; transition: background 0.4s var(--ease), border-color 0.4s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(13, 28, 22, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
/* The lockup: the MOTA. wordmark and GARAGE set wide beside it, one name: MOTA Garage. */
.nav__logo { display: inline-flex; align-items: center; gap: 12px; color: var(--steel-100); text-decoration: none; }
.nav__logo svg { height: 20px; width: auto; }
.lockup__garage { font-family: var(--f-display); font-stretch: 125%; font-weight: 400; font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--steel-100); padding-left: 12px; border-left: 1px solid var(--line-strong); line-height: 1.6; }
.nav__right { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.nav__cta { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 600; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--steel-100); border: 1px solid var(--line-strong); padding: 10px 14px; min-height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; white-space: nowrap; }
.nav__cta:hover { border-color: #d97000; color: #d97000; }
.nav__cta[aria-current="page"] { border-color: #ee7f00; color: #ee7f00; }
@media (max-width: 1280px) and (min-width: 1081px) { .nav__menu { gap: 14px; } .nav__menu a { letter-spacing: 0.1em; } }
@media (max-width: 520px) { .lockup__garage { font-size: 0.62rem; letter-spacing: 0.26em; padding-left: 9px; } .nav__logo { gap: 9px; } .nav__cta { display: none; } }
.nav__menu { display: flex; gap: clamp(14px, 1.8vw, 30px); list-style: none; margin: 0; padding: 0; }
/* Menu states as on the live site (client instruction, 19 Oct): the current page in orange #ee7f00, hover in the deeper #d97000. */
.nav__menu a { font-stretch: 87.5%; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--steel-100); padding: 10px 0; display: inline-block; transition: color 0.2s var(--ease); }
.nav__menu a[aria-current="page"] { color: #ee7f00; }
.nav__menu a:hover, .nav__menu a[aria-current="page"]:hover { color: #d97000; }
.nav__toggle { display: none; }
.nav__extra { display: none; }
@media (max-width: 1080px) {
  .nav__menu { display: none; }
  .nav__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--steel-100); cursor: pointer; }
  .nav__toggle svg { width: 26px; height: 26px; grid-area: 1 / 1; }
  .nav__toggle .nav__close, .nav.is-open .nav__toggle .nav__burger { display: none; }
  .nav.is-open .nav__toggle .nav__close { display: block; }
  .nav.is-open .nav__extra { display: block; }
  .nav.is-open .nav__extra:first-of-type { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
  .nav.is-open .nav__wa { display: grid; gap: 12px; justify-items: center; margin-top: 8px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .nav__wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border: 0; border-radius: 4px; background: #25d366; color: #0b2a1c; font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
  .nav__wa-btn svg { width: 22px; height: 22px; }
  .nav__wa-num { font-family: var(--f-mono); font-size: 0.95rem; color: var(--steel-300); user-select: all; }
  .nav.is-open .nav__menu { display: flex; flex-direction: column; position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 0; background: var(--ink); padding: 32px max(var(--gutter), env(safe-area-inset-left, 0px)); gap: 6px; overflow-y: auto; }
  .nav.is-open .nav__menu a { font-stretch: 125%; font-weight: 300; font-size: clamp(1.6rem, 7vw, 2.4rem); letter-spacing: 0.02em; color: var(--steel-100); }
  .nav.is-open .nav__menu a[aria-current="page"] { color: #ee7f00; }
  .nav.is-open .nav__menu a:hover { color: #d97000; }
}

/* Social links in the bar: a quiet icon group before the Dream Studio button, only where the bar can hold it without
   crowding the menu. Narrower screens carry the same four in the open menu as 44px buttons; every page also has them in
   the footer. */
.nav__social { display: none; list-style: none; margin: 0; padding: 0 clamp(10px, 1vw, 16px) 0 0; border-right: 1px solid var(--line-strong); align-items: center; }
.nav__social a { display: grid; place-items: center; width: 30px; height: 30px; color: var(--steel-300); transition: color 0.2s var(--ease); }
.nav__social a:hover, .nav__social a:focus-visible { color: #d97000; }
.nav__social svg { width: 16px; height: 16px; }
@media (min-width: 1400px) { .nav__social { display: flex; } .nav__menu { gap: clamp(14px, 1.4vw, 26px); } }
.nav__follow { display: none; }
@media (max-width: 1080px) {
  .nav.is-open .nav__follow { display: flex; gap: 12px; list-style: none; margin: 8px 0 0; padding: 0; }
  .nav.is-open .nav__follow a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--steel-100); font-size: 1rem; }
  .nav.is-open .nav__follow a:hover { color: #d97000; border-color: #d97000; }
  .nav__follow svg { width: 18px; height: 18px; }
}

/* ---------- footer ----------
   Three columns on wide screens: the name with the place under it (address, hours, how to reach us, two buttons), the
   map in the middle as tall as that block, and the links on the right (Services, MOTA, Follow). Below 1200px the map
   sits beside the details and the links run as one row underneath; on phones everything stacks. */
.footer { background: #001e10; border-top: 1px solid var(--line); padding-block: clamp(64px, 8vw, 112px) calc(96px + env(safe-area-inset-bottom, 0px)); font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 5.4fr) max-content; gap: 48px clamp(28px, 3.4vw, 56px); align-items: stretch; }
.footer__grid > * { min-width: 0; }
.footer a { text-decoration: none; color: var(--steel-100); }
.footer a:hover { color: #ee7f00; }
.footer__brand { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 96px; }
.footer__logo { display: inline-flex; color: #fff; width: max-content; }
.footer__logo svg { height: 30px; width: auto; }
.footer__tag { margin: -6px 0 0; color: var(--steel-300); line-height: 1.5; text-wrap: balance; font-family: var(--f-voice); font-style: italic; font-size: 1.15rem; }

/* The details: small mono labels over the values, two to a row where they fit, hairlines above each. */
.footer__info { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0 24px; }
.footer__item { padding: 14px 0 16px; border-top: 1px solid var(--line); min-width: 0; }
.footer__item--wide { grid-column: 1 / -1; }
.footer__info dt { margin: 0 0 6px; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-500); }
.footer__info dd { margin: 0; color: var(--steel-100); line-height: 1.5; overflow-wrap: anywhere; }
.footer__info dd a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.footer__info dd a:hover { text-decoration-color: #ee7f00; }
.footer .footer__dir { display: flex; align-items: center; gap: 8px; width: max-content; min-height: 32px; margin-top: 4px; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.06em; text-transform: uppercase; color: #ee7f00; text-decoration: none; }
.footer__dir::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.3s var(--ease-out); }
.footer .footer__dir:hover { color: #ff9a33; }
.footer__dir:hover::after { transform: translateX(3px) rotate(45deg); }

/* Two buttons of equal width, side by side where they fit, stacked full width where they do not. */
.footer__ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr)); gap: 10px; margin-top: auto; }
.footer__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 14px; border: 0; border-radius: 3px; font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.2s var(--ease); }
.footer .footer__btn--enquire { background: #ee7f00; color: #1a0d00; }
.footer .footer__btn--enquire:hover { background: #ff9a33; color: #1a0d00; }
.footer__btn--wa { background: #25d366; color: #0b2a1c; }
.footer__btn--wa:hover { background: #3be07a; }

/* The map sits in the middle column, as tall as the details beside it (never shorter than 440px, so Google's place
   card in its top corner never reaches the pin). Google's embed cannot be styled, so it is toned down to sit in the
   dark footer (inverted, hue turned back, so the pin stays red), and shows its own colours on hover or when someone
   tabs into it. */
.footer__mapbox { display: flex; min-width: 0; }
.footer__mapbox .findus__map { flex: 1; min-height: 440px; border-color: var(--line-strong); border-radius: var(--radius); background: #0a2418; }
.footer__mapbox .findus__map iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.7) brightness(0.92) contrast(0.92); transition: filter 0.6s var(--ease); }
.footer__mapbox .findus__map:hover iframe, .footer__mapbox .findus__map:focus-within iframe { filter: none; }

/* Links: Services and MOTA side by side, Follow underneath them. */
.footer__links { display: grid; grid-template-columns: repeat(2, max-content); gap: 40px clamp(28px, 2.8vw, 48px); align-content: start; }
.footer__follow { grid-column: 1 / -1; }
.footer__h { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #ee7f00; margin: 0 0 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer__col a { display: inline-flex; align-items: center; min-height: 36px; }
.footer__col .footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; min-height: 0; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--steel-100); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.footer__social a:hover, .footer__social a:focus-visible { border-color: #ee7f00; color: #ee7f00; }
.footer__social svg { width: 16px; height: 16px; }

.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--steel-500); font-size: 0.85rem; }
.footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { color: var(--steel-300); }

@media (max-width: 1199px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .footer__links { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 40px; border-top: 1px solid var(--line); }
  .footer__follow { grid-column: auto; }
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer__mapbox .findus__map { min-height: 320px; }
  .footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-top: 32px; }
  .footer__follow { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* The map lives on the Contact page; it loads only when it nears the screen. */
.findus__map { position: relative; min-height: 380px; border: 1px solid var(--line); background: var(--dial-2); overflow: hidden; }
.findus__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.9) contrast(1.02); }
.findus__wait { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--steel-300); }

/* ---------- WhatsApp widget: the one contact control on every page ----------
   A button that opens WhatsApp looks like WhatsApp (client decision, 18 Sep): WhatsApp green, the official glyph.
   The panel is a chat card: who answers, a greeting, topic chips that write the first line, and the hand-off to wa.me. */
.wa { position: fixed; z-index: 55; right: calc(max(16px, env(safe-area-inset-right, 0px)) + 4px); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
/* At rest a round WhatsApp button; on hover or keyboard focus it opens into a pill and the label slides out. Touch
   screens keep the round button (there is no hover to open it). */
.wa__btn { display: inline-flex; align-items: center; gap: 0; height: 58px; min-width: 58px; box-sizing: border-box; padding: 0 15px; border-radius: 999px; border: 0;
  background: #25d366; color: #0b2a1c; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap;
  transition: gap 0.5s var(--ease-out), padding 0.5s var(--ease-out), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease); }
.wa__btn svg { width: 28px; height: 28px; flex: none; transition: transform 0.5s var(--ease-out); }
.wa__btn-label { display: inline-block; max-width: 0; overflow: hidden; opacity: 0; transition: max-width 0.55s var(--ease-out), opacity 0.3s var(--ease) 0.08s; }
@media (hover: hover) {
  .wa__btn:hover, .wa__btn:focus-visible { gap: 10px; padding: 0 22px 0 15px; background: #3be07a; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }
  .wa__btn:hover .wa__btn-label, .wa__btn:focus-visible .wa__btn-label { max-width: 10em; opacity: 1; }
  .wa__btn:hover svg, .wa__btn:focus-visible svg { transform: rotate(-10deg) scale(1.06); }
}
.wa__btn[aria-expanded="true"], .wa__btn[aria-expanded="true"]:hover { gap: 0; padding: 0 15px; }
.wa__btn[aria-expanded="true"] .wa__btn-label { max-width: 0; opacity: 0; }
.wa__panel { width: min(360px, calc(100vw - 32px)); background: #efeae2; color: #111b21; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); font-family: var(--f-display); }
.wa__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: #075e54; color: #fff; }
.wa__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.wa__avatar img { width: 30px; height: auto; filter: none; }
.wa__who { min-width: 0; flex: 1; }
.wa__who strong { display: block; font-weight: 600; font-size: 1rem; }
.wa__who span { display: block; font-size: 0.8rem; opacity: 0.9; }
.wa__close { width: 40px; height: 40px; border: 0; background: transparent; color: #fff; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.wa__close:hover { background: rgba(255, 255, 255, 0.12); }
.wa__body { padding: 16px; display: grid; gap: 12px; max-height: min(62vh, 520px); overflow-y: auto; }
.wa__bubble { background: #fff; border-radius: 0 10px 10px 10px; padding: 10px 12px 8px; font-size: 0.92rem; line-height: 1.45; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); max-width: 88%; }
.wa__bubble small { display: block; text-align: right; font-size: 0.7rem; color: #667781; margin-top: 4px; }
.wa__label { font-size: 0.78rem; color: #3b4a54; font-weight: 600; letter-spacing: 0.02em; }
.wa__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.wa__topic { border: 1px solid #c9d2cf; background: #fff; color: #111b21; border-radius: 999px; padding: 8px 12px; min-height: 36px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.wa__topic[aria-pressed="true"] { background: #d9fdd3; border-color: #25d366; color: #0b3d2c; font-weight: 600; }
.wa__msg { width: 100%; box-sizing: border-box; border: 1px solid #c9d2cf; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 0.92rem; color: #111b21; background: #fff; resize: vertical; min-height: 64px; }
.wa__msg:focus-visible { outline: 2px solid #25d366; outline-offset: 1px; }
.wa__go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 999px; background: #25d366; color: #0b2a1c; font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.wa__go:hover { background: #3be07a; color: #0b2a1c; }
.wa__go svg { width: 20px; height: 20px; }
.wa__foot { display: grid; gap: 4px; padding: 12px 16px 14px; background: #f7f5f1; border-top: 1px solid #ddd6cc; font-size: 0.8rem; color: #3b4a54; }
.wa__foot strong { color: #111b21; font-weight: 600; user-select: all; }
.wa__copy { border: 0; background: none; color: #075e54; font: inherit; font-weight: 600; cursor: pointer; padding: 0 0 0 6px; min-height: 28px; }

/* ---------- views (one page per hash) ---------- */
.view { display: block; }
.view[hidden] { display: none !important; }

/* ---------- reveal: a short rise only; text is never faded, so it is always readable ---------- */
.reveal.is-armed { transform: translateY(18px); }
.reveal { transition: transform 0.9s var(--ease); }
.reveal.is-in { transform: none; }

/* ---------- toast (prototype notes) ---------- */
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--bone); color: var(--paper-ink); font-family: var(--f-mono); font-size: 12px; padding: 12px 16px; max-width: calc(100vw - 32px); box-sizing: border-box; }

/* ---------- marques: the roadside sign, as a marquee ----------
   As on the live site: a black band, each brand in its own official artwork and colours, no plates (public-domain files,
   see assets/marques/CREDITS.json). Kawasaki and Triumph ship as black artwork, so they are inverted to the white reversed
   version both makers publish for dark grounds. Two copies make the loop seamless; the second is hidden from assistive tech.
   Place <!-- @marques --> between sections (a direct child of the view), never inside a padded chapter. */
.marques { background: #080808; padding-block: clamp(36px, 5vw, 64px); border-block: 1px solid rgba(255, 255, 255, 0.06); }
.marques__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marques__track { display: flex; align-items: center; width: max-content; list-style: none; margin: 0; padding: 0; animation: marques 46s linear infinite; }
.marques:hover .marques__track, .marques:focus-within .marques__track { animation-play-state: paused; }
.marques__plate { flex: none; width: 150px; height: 64px; margin-right: clamp(32px, 4.4vw, 64px); display: grid; place-items: center; }
.marques__plate img { width: auto; height: auto; max-width: 140px; max-height: 38px; opacity: 0.88; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.marques__plate img.is-badge { max-height: 60px; max-width: 84px; }
.marques__plate img[src*="kawasaki"], .marques__plate img[src*="triumph"] { filter: invert(1); }
.marques__plate:hover img { opacity: 1; transform: scale(1.06); }
@keyframes marques { to { transform: translateX(-50%); } }
@media (max-width: 720px) { .marques__plate { width: 112px; height: 52px; margin-right: 28px; } .marques__plate img { max-width: 108px; max-height: 30px; } .marques__plate img.is-badge { max-height: 48px; max-width: 64px; } }

/* ---------- closing chapter on every page: the page's invitation beside its questions (one band, not three) ---------- */
.closing { background: var(--racing-deep); }
.closing__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); padding-block: clamp(80px, 10vw, 152px); align-items: start; }
.closing__grid > * { min-width: 0; }
.closing__call { display: grid; gap: 22px; align-content: start; }
.closing__voice { margin: 0; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.08; max-width: 15ch; text-wrap: balance; }
.closing__lede { margin: 0; color: var(--steel-100); max-width: 40ch; }
.closing__btns { --gap: 12px; margin-top: 10px; }
.closing__h { margin: 0 0 6px; font-family: var(--f-mono); font-weight: 400; font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-300); }
.closing .faq { border-top: 1px solid var(--line-strong); }
.closing .faq details { border-bottom-color: var(--line-strong); }
.closing .faq summary { font-size: 1.05rem; padding: 20px 0; }
.closing .faq details p { color: var(--steel-100); }
.closing--plain { background: var(--dial); border-top: 1px solid var(--line); }
.closing--plain .closing__invite { display: none; }
.closing--plain .closing__grid { grid-template-columns: minmax(0, 1fr); padding-block: clamp(64px, 8vw, 120px); }
.closing--plain .closing__faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(40px, 7vw, 120px); align-items: start; }
.closing--plain .closing__h { font-family: var(--f-display); font-stretch: 125%; font-weight: 300; font-size: var(--t-lg); line-height: 1.04; letter-spacing: 0.01em; color: var(--steel-100); }
.closing--plain .closing__h::after { content: ""; display: inline-block; width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--orange); margin-left: 0.07em; }
.closing--plain .faq { border-top: 0; }
@media (max-width: 860px) { .closing--plain .closing__faq { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .closing__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .closing__btns .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .marques__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 20px 0; padding-inline: 16px; }
  .marques__plate { margin-right: 0; }
  .marques__plate[aria-hidden="true"] { display: none; }
  .marques__viewport { -webkit-mask-image: none; mask-image: none; }
}

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

/* The open mobile menu carries its own WhatsApp button; the floating one steps aside. */
body:has(.nav.is-open) .wa { display: none; }

/* =========================================================================================================
   MOTION (assets/motion.js sets html.m-js; without it, or under reduced motion, nothing below hides anything)
   Text is masked or moved, never faded.
   ========================================================================================================= */
:root { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-io: cubic-bezier(0.7, 0, 0.2, 1); }

/* view change: the new page settles in */
.m-js .view:not([hidden]) { animation: m-view 0.7s var(--ease-out) both; }
@keyframes m-view { from { opacity: 0; transform: translateY(16px); } }

/* hero: the film or photo settles from a slow zoom each time the page opens */
.m-js .hero__film > video, .m-js .hero__film > img { animation: m-hero 2.6s var(--ease-out) both; }
@keyframes m-hero { from { transform: scale(1.14); } }
.m-js .hero__content > :not(h1) { animation: m-up 1.2s var(--ease-out) 0.55s both; }
@keyframes m-up { from { transform: translateY(28px); } }

/* lines */
.m-js [data-m~="lines"]:not([data-m-split]) { visibility: hidden; }
.m-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.1em 0.06em 0.08em 0; margin: -0.1em -0.06em -0.08em 0; }
.m-wi { display: inline-block; }
.m-js [data-m~="lines"] .m-wi { transition: transform 1.1s var(--ease-out) var(--d, 0ms); }
.m-js [data-m~="lines"]:not(.m-in) .m-wi { transform: translateY(108%); }

/* wipe */
.m-js [data-m~="wipe"] { transition: clip-path 1.5s var(--ease-io); clip-path: inset(0 0 0 0); }
.m-js [data-m~="wipe"]:not(.m-in) { clip-path: inset(100% 0 0 0); }
.m-js [data-m~="wipe"][data-m-dir="down"]:not(.m-in) { clip-path: inset(0 0 100% 0); }
.m-js [data-m~="wipe"][data-m-dir="left"]:not(.m-in) { clip-path: inset(0 0 0 100%); }
.m-js [data-m~="wipe"][data-m-dir="right"]:not(.m-in) { clip-path: inset(0 100% 0 0); }
.m-js [data-m~="wipe"] img, .m-js [data-m~="wipe"] video { transition: transform 2s var(--ease-out), filter 0.4s; }
.m-js [data-m~="wipe"]:not(.m-in):not([data-m~="parallax"]) img, .m-js [data-m~="wipe"]:not(.m-in):not([data-m~="parallax"]) video { transform: scale(1.18); }

/* rise and stagger */
.m-js [data-m~="rise"] { transition: transform 1.2s var(--ease-out) var(--d, 0ms); }
.m-js [data-m~="rise"]:not(.m-in) { transform: translateY(48px); }
.m-js [data-m~="stagger"] > * { transition: transform 1.1s var(--ease-out) var(--d, 0ms); }
.m-js [data-m~="stagger"]:not(.m-in) > * { transform: translateY(36px); }

/* parallax: the photo is a little larger than its frame and drifts with --p */
[data-m~="parallax"] { overflow: hidden; }
.m-js [data-m~="parallax"] img, .m-js [data-m~="parallax"] video {
  transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * var(--m-drift, -14%)), 0) scale(var(--m-scale, 1.18)); will-change: transform; transition: none; }

/* index rows lean in on hover (desktop pointer only) */
@media (hover: hover) {
  .m-js .media img { transition: transform 1.4s var(--ease-out); }
}

/* nav steps out of the way while reading down, returns on the way up */
.nav { transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease-out); }
.nav.is-tucked:not(.is-open) { transform: translateY(-100%); }

@media (prefers-reduced-motion: reduce) {
  .nav.is-tucked { transform: none; }
}

/* =========================================================================================================
   GAUGE: the rating as a live speedometer (data-m="gauge" data-value data-max data-zone data-unit)
   ========================================================================================================= */
.gauge { position: relative; width: min(100%, 330px); aspect-ratio: 1; display: block; }
.gauge__face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gauge__track { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.gauge__prog { fill: none; stroke: var(--steel-100); stroke-width: 2; stroke-linecap: round; }
.gauge__zone { fill: none; stroke: var(--orange); stroke-width: 3; opacity: 0.85; }
.gauge__tick { stroke: rgba(205, 213, 209, 0.38); stroke-width: 1; transition: stroke 0.25s; }
.gauge__tick.is-mid { stroke-width: 1.4; }
.gauge__tick.is-major { stroke-width: 2.4; }
.gauge__tick.is-lit { stroke: var(--steel-100); }
.gauge__num { font-family: var(--f-mono); font-size: 11px; fill: var(--steel-300); text-anchor: middle; letter-spacing: 0.04em; }
.gauge__needle path { fill: var(--orange); filter: drop-shadow(0 0 6px rgba(255, 130, 0, 0.45)); }
.gauge__hub { fill: var(--ink); stroke: var(--steel-300); stroke-width: 1.2; }
.gauge__pin { fill: var(--orange); }
.gauge__read { position: absolute; left: 0; right: 0; top: 64%; text-align: center; font-size: clamp(2.4rem, 4.6vw, 3.5rem); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge__unit { position: absolute; left: 0; right: 0; top: calc(64% + clamp(2.6rem, 5vw, 3.8rem)); text-align: center; color: var(--steel-500); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }

/* =========================================================================================================
   EDITORIAL: building blocks for magazine-style chapters. Compose them; give real captions (what, where, which bike).
   ========================================================================================================= */
/* figure + caption */
.ed-fig { position: relative; overflow: hidden; background: var(--dial-2); }
.ed-fig img, .ed-fig video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-cap { display: flex; gap: 14px; align-items: baseline; margin-top: 12px; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.04em; color: var(--steel-500); line-height: 1.5; }
.ed-cap b { color: var(--steel-100); font-weight: 500; white-space: nowrap; }

/* spread: one large picture, a smaller one dropped beside it, text under the small one */
.ed-spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); align-items: start; }
.ed-spread > * { min-width: 0; }
.ed-spread__main { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.ed-spread__side { grid-column: 9 / span 4; grid-row: 1; margin-top: clamp(64px, 12vw, 200px); }
.ed-spread__text { grid-column: 9 / span 4; grid-row: 2; display: grid; gap: 18px; align-content: start; }
.ed-spread--flip .ed-spread__main { grid-column: 6 / span 7; }
.ed-spread--flip .ed-spread__side, .ed-spread--flip .ed-spread__text { grid-column: 1 / span 4; }
@media (max-width: 860px) {
  .ed-spread { grid-template-columns: minmax(0, 1fr); }
  .ed-spread__main, .ed-spread__side, .ed-spread__text, .ed-spread--flip .ed-spread__main, .ed-spread--flip .ed-spread__side, .ed-spread--flip .ed-spread__text { grid-column: 1; grid-row: auto; }
  .ed-spread__side { width: 72%; justify-self: end; margin-top: -18%; position: relative; z-index: 1; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
}

/* pull statement in the founders' voice (only words MOTA has said) */
.ed-quote { margin: 0; font-family: var(--f-voice); font-style: italic; font-weight: 300; font-size: clamp(2rem, 5.4vw, 5.2rem); line-height: 1.04; letter-spacing: -0.01em; color: var(--bone); max-width: 17ch; text-wrap: balance; }
.ed-quote__by { margin-top: 22px; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-500); }

/* full-bleed picture band with an overlaid caption */
.ed-bleed { position: relative; height: clamp(440px, 82vh, 940px); overflow: hidden; background: var(--ink); }
.ed-bleed > img, .ed-bleed > video { width: 100%; height: 100%; object-fit: cover; }
.ed-bleed__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 3vw, 40px) var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: end;
  background: linear-gradient(180deg, rgba(6, 13, 10, 0), rgba(6, 13, 10, 0.66)); text-shadow: 0 1px 14px rgba(4, 10, 8, 0.6); }
.ed-bleed__cap .ed-cap { margin: 0; color: var(--steel-300); }

/* loupe: a close-up crop of a real photo; --x --y set the point, --z the magnification (keep it at or under 1.7) */
.ed-loupe { position: relative; overflow: hidden; aspect-ratio: var(--ar, 1); background: var(--ink); }
.ed-loupe img { width: 100%; height: 100%; object-fit: cover; object-position: var(--x, 50%) var(--y, 50%); transform: scale(var(--z, 1.5)); transform-origin: var(--x, 50%) var(--y, 50%); }
.ed-loupe::after { content: attr(data-zoom); position: absolute; right: 10px; top: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--steel-100); background: rgba(6, 13, 10, 0.7); padding: 4px 7px; }

/* (the sideways .ed-strip and the .ed-ticker were retired in round 11: the pinned .hx below replaces the strip) */

/* hx: a pinned sideways slider (data-m="hscroll" on .hx; behaviour in motion.js). The only sideways-moving block on the site.
   Wide screens with motion: the section locks to the screen and the page's scroll moves the cards sideways only.
   Phones, short screens, reduced motion: a native swipe row with snap points. Markup:
   <section class="hx" data-m="hscroll" aria-labelledby="…"><div class="hx__pin">
     <div class="wrap hx__head"><h2 …>…</h2><p class="lede">…</p></div>
     <div class="hx__viewport"><ol class="hx__track"><li class="hx__item">(figure + h3 + text, or one <a> around them)</li>…</ol></div>
     <div class="wrap hx__foot" aria-hidden="true"><span class="hx__count"></span><span class="hx__bar"><i></i></span></div>
   </div></section> */
.hx { position: relative; }
.hx__pin { display: flex; flex-direction: column; gap: clamp(32px, 4.4vw, 64px); padding-block: var(--chapter); }
.hx__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px clamp(16px, 2.2vw, 32px); align-items: end; }
.hx__head > * { margin: 0; min-width: 0; }
.hx__head > :first-child { grid-column: 1 / span 8; }
.hx__head > :not(:first-child) { grid-column: 9 / -1; }
.hx__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hx__viewport::-webkit-scrollbar { display: none; }
.hx__track { display: flex; align-items: flex-start; gap: clamp(16px, 2.2vw, 32px); width: max-content; list-style: none; margin: 0;
  padding: 0 max(var(--gutter), calc((100% - var(--maxw)) / 2)); }
.hx__item { flex: none; width: clamp(240px, 24vw, 340px); min-width: 0; scroll-snap-align: start; scroll-margin-inline-start: var(--gutter); display: grid; gap: 12px; align-content: start; }
.hx__item:nth-child(even) { margin-top: clamp(28px, 4vw, 64px); }
.hx__item figure { margin: 0 0 6px; aspect-ratio: 4 / 5; }
.hx__item h3 { margin: 0; }
.hx__item p { margin: 0; }
.hx__item > a { display: grid; gap: 12px; color: inherit; text-decoration: none; }
.hx__item > a img { transition: transform 1.2s var(--ease-out, var(--ease)); }
.hx__item > a:hover img { transform: scale(1.04); }
.hx__item > a:hover h3 { color: var(--bone); }
.hx__foot { display: flex; align-items: center; gap: 20px; }
.hx__count { flex: none; min-width: 8ch; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: 0.08em; color: var(--steel-500); font-variant-numeric: tabular-nums; }
.hx__bar { position: relative; flex: 1; height: 1px; background: var(--line-strong); }
.hx__bar i { position: absolute; inset: -1px 0; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }
.hx.is-pinned { height: calc(100vh + var(--hx-dist, 0px)); height: calc(100svh + var(--hx-dist, 0px)); }
.hx.is-pinned .hx__pin { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; justify-content: center; overflow: hidden;
  gap: clamp(20px, 3.6vh, 44px); padding-block: calc(72px + 3vh) 5vh; }
.hx.is-pinned .hx__viewport { overflow: hidden; overflow: clip; scroll-snap-type: none; }
.hx.is-pinned .hx__track { will-change: transform; }
/* Locked, everything must fit one screen: the heading scales with the screen's height, the photos take what is left. */
.hx.is-pinned .hx__head > :first-child { font-size: clamp(2rem, min(4.8vw, 7.4vh), 4.6rem); }
.hx.is-pinned .hx__item { width: clamp(240px, 21vw, 320px); }
.hx.is-pinned .hx__item:nth-child(even) { margin-top: 0; }
.hx.is-pinned .hx__item figure { aspect-ratio: auto; height: clamp(190px, calc(100vh - 500px), 460px); height: clamp(190px, calc(100svh - 500px), 460px); }
@media (max-width: 860px) {
  .hx__head > :first-child, .hx__head > :not(:first-child) { grid-column: 1 / -1; }
  .hx__item { width: 72vw; }
  .hx__item:nth-child(even) { margin-top: 0; }
}

/* index: numbered rows, each a door to a page (the nav's categories); the picture opens on hover, sits inline on touch */
.ed-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); counter-reset: ed; }
.ed-index > li { border-bottom: 1px solid var(--line); }
.ed-index a { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 0.9fr); gap: 8px clamp(16px, 3vw, 48px); align-items: center;
  padding: clamp(22px, 3vw, 40px) 0; color: inherit; text-decoration: none; }
.ed-index__n { font-family: var(--f-mono); font-size: var(--t-label); color: var(--steel-500); align-self: start; padding-top: 0.6em; }
.ed-index__t { font-size: clamp(2rem, 5.4vw, 5rem); transition: transform 0.6s var(--ease-out), color 0.3s; }
.ed-index__d { color: var(--steel-300); max-width: 40ch; font-size: var(--t-small); }
.ed-index__img { position: absolute; right: 0; top: 50%; width: clamp(180px, 22vw, 320px); aspect-ratio: 4 / 3; translate: 0 -50%; overflow: hidden; pointer-events: none; z-index: 2;
  clip-path: inset(50% 0 50% 0); transition: clip-path 0.7s var(--ease-io); }
.ed-index__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 1.2s var(--ease-out); }
@media (hover: hover) and (min-width: 861px) {
  .ed-index a:hover .ed-index__t { transform: translateX(18px); color: var(--bone); }
  .ed-index a:hover .ed-index__img { clip-path: inset(0 0 0 0); }
  .ed-index a:hover .ed-index__img img { transform: scale(1); }
  .ed-index a:hover .ed-index__d { visibility: hidden; }
}
@media (max-width: 860px), (hover: none) {
  .ed-index a { grid-template-columns: 2.6rem minmax(0, 1fr) 96px; }
  .ed-index__d { grid-column: 2 / 3; }
  .ed-index__img { position: static; width: 96px; translate: none; clip-path: none; grid-column: 3; grid-row: 1 / span 2; }
  .ed-index__img img { transform: none; }
}

/* sticky: the picture stays while the steps scroll past it (data-m="sticky" on .ed-sticky) */
.ed-sticky { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.ed-sticky__media { position: sticky; top: calc(88px + 2vh); aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.ed-sticky__media > * { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity 0.8s var(--ease), transform 1.4s var(--ease-out); }
.ed-sticky__media > .is-on { opacity: 1; transform: none; }
.ed-sticky__media img, .ed-sticky__media video { width: 100%; height: 100%; object-fit: cover; }
.ed-sticky__steps { display: grid; gap: clamp(72px, 22vh, 220px); padding-block: clamp(24px, 16vh, 180px); }
.ed-sticky__steps > * { display: grid; gap: 14px; }
/* Small screens do not pin: every picture shows, stacked above the steps. */
@media (max-width: 860px) {
  .ed-sticky { grid-template-columns: minmax(0, 1fr); }
  .ed-sticky__media { position: relative; top: 0; aspect-ratio: auto; display: grid; gap: 14px; background: none; }
  .ed-sticky__media > * { position: relative; inset: auto; opacity: 1; transform: none; aspect-ratio: 4 / 3; overflow: hidden; }
  .ed-sticky__steps { gap: 48px; padding-block: 0; }
}

/* mosaic: an uneven grid of pictures (sizes come from the modifier classes on each figure) */
.ed-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(70px, 8vw, 120px); gap: clamp(10px, 1.4vw, 20px); }
.ed-mosaic > * { min-width: 0; }
.ed-mosaic .w4 { grid-column: span 4; } .ed-mosaic .w5 { grid-column: span 5; } .ed-mosaic .w7 { grid-column: span 7; } .ed-mosaic .w8 { grid-column: span 8; } .ed-mosaic .w3 { grid-column: span 3; } .ed-mosaic .w6 { grid-column: span 6; }
.ed-mosaic .h2 { grid-row: span 2; } .ed-mosaic .h3 { grid-row: span 3; } .ed-mosaic .h4 { grid-row: span 4; } .ed-mosaic .h5 { grid-row: span 5; }
.ed-mosaic figure { margin: 0; height: 100%; }
@media (max-width: 720px) {
  .ed-mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 64px; }
  .ed-mosaic .w3, .ed-mosaic .w4, .ed-mosaic .w5 { grid-column: span 3; } .ed-mosaic .w6, .ed-mosaic .w7, .ed-mosaic .w8 { grid-column: span 6; }
}
