/* ============================================================================
   Samurai motors — shared stylesheet
   ----------------------------------------------------------------------------
   White ground, black ink, black header bar. Orange + lime are accents only
   (the same quiet doses as the Vehicle Request Form): the twin bars, the
   J / c of the wordmark (orange), the scroll needle, hover underlines.
   Lime is never used on lettering — only on bars, dots and ticks.
   No border-radius anywhere.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   0. Display faces (OFL, bundled locally)
      Marcellus SC  — inscription small caps for UPPERCASE display text
      Della Respira — classical serif with true lowercase (wordmark)
   ------------------------------------------------------------------------- */

@font-face {
  font-family: "Marcellus SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/MarcellusSC.woff2") format("woff2");
}

@font-face {
  font-family: "Della Respira";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/DellaRespira.woff2") format("woff2");
}

/* ----------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */

:root {
  color-scheme: light;
  --ink: #161616;
  --ink-soft: #4a4a48;
  --ink-mute: #8c8c88;
  --paper: #ffffff;
  --paper-warm: #f4f4f2;
  --line: #e3e3e0;
  --white: #ffffff;
  --black: #000000;
  /* accents — from the request form */
  --orange: #f07832;
  --lime: #c5f542;
  --green: #006e54;    /* trad green (SMBC-like) — the o of "motors" */
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  --font-display: "Marcellus SC", "Marcellus", Georgia, "Times New Roman", serif;
  --font-display-lc: "Della Respira", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
               "Courier New", monospace;
  --tracking-wide: 0.18em;
  --tracking-xwide: 0.32em;
  --maxw: 1280px;
  --header-h: 64px;
  --gutter: 24px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (min-width: 1024px) {
  :root { --gutter: 64px; }
}

/* ----------------------------------------------------------------------------
   2. Base reset
   ------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ----------------------------------------------------------------------------
   3. Typography helpers
   ------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: .02em;
}

.mono {
  font-family: var(--font-mono);
}

/* the twin accent bars — orange | lime — lifted from the form header */
.duo {
  display: inline-flex;
  gap: 4px;
  flex: none;
  vertical-align: middle;
}

.duo::before,
.duo::after {
  content: "";
  display: block;
  width: 4px;
  height: 14px;
  background: var(--orange);
}

.duo::after {
  background: var(--lime);
}

.duo--lg::before,
.duo--lg::after {
  width: 6px;
  height: 22px;
}

/* uppercase voice */
.shead__big,
.page-title,
.card__name,
.site-nav a,
.footer-nav a,
.cta-huge,
.btn,
.flow-name,
.profile-year,
.figure__label {
  font-family: var(--font-display);
}

/* ----------------------------------------------------------------------------
   4. Layout utilities
   ------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus { outline: none; }

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
}

.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------------------------
   5. Buttons — rectangular, hairline, hover inversion
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 40px;
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
  user-select: none;
  transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}

.btn:hover {
  color: var(--paper);
  background: var(--ink);
}

.btn--solid {
  color: var(--paper);
  background: var(--ink);
}

.btn--solid:hover {
  color: var(--ink);
  background: transparent;
}

/* ----------------------------------------------------------------------------
   6. Form controls — hairline, quiet
   ------------------------------------------------------------------------- */

input[type="text"],
input[type="search"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 14px;
  width: 100%;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--ink-mute);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--orange);
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}

::placeholder {
  color: var(--ink-mute);
  opacity: 1;
}

select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23161616' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
  cursor: pointer;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

input[type="number"] { -moz-appearance: textfield; }

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ----------------------------------------------------------------------------
   7. Wordmark — "Samurai motors"
   Marcellus SC, the same inscription face as the section titles. The S
   is orange; the o of "motors" takes the trad green.
   ------------------------------------------------------------------------- */

.wm {
  font-family: var(--font-display);
  letter-spacing: .05em;
  white-space: nowrap;
}

.wm-s { color: var(--orange); }

.wm-o { color: var(--green); }

/* on the black footer the green takes a lighter tint to read */
.footer-brand .wm-s { color: var(--orange); }
.footer-brand .wm-o { color: #3fbf96; }

/* the logo glyph: orange Ж-like crossing, drawn inline */
.wm-glyph {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  flex: none;
  color: var(--orange);
}

/* ----------------------------------------------------------------------------
   8. Site header
   ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--paper);
  background: var(--black);
  transition: box-shadow .4s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 10px rgba(0, 0, 0, .18);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* logo + name sit on a white rectangle cut into the black bar */
.brand-mark {
  position: relative;
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  transition: background-color .3s var(--ease);
}

.brand-mark:hover,
.brand-mark:focus-visible { background: var(--paper-warm); }

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-nav ul {
  display: flex;
  gap: 44px;
}

@media (min-width: 1280px) and (max-width: 1400px) {
  .site-nav ul { gap: 24px; }
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-tools {
  position: relative;
  z-index: 130;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* GBP / JPY switch */
.ccy {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, .35);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
}

.ccy button {
  padding: 5px 9px;
  color: rgba(255, 255, 255, .62);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}

.ccy button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--paper);
}

/* hamburger */
.menu-toggle {
  position: relative;
  z-index: 130;
  display: none;
  width: 40px;
  height: 40px;
  margin-left: -10px;
  margin-right: 6px;
  flex: none;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}

.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }

body.nav-open .menu-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 1279px) {
  .menu-toggle { display: block; }

  .brand-mark { font-size: 13px; padding: 0 10px; height: 36px; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s linear .45s;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .site-nav a {
    color: var(--paper);
    font-size: 16px;
    letter-spacing: var(--tracking-xwide);
    padding: 8px 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }

  body.nav-open { overflow: hidden; }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity .45s var(--ease), visibility 0s;
  }

  body.nav-open .site-nav a { opacity: 1; transform: none; }
  body.nav-open .site-nav li:nth-child(1) a { transition-delay: .12s; }
  body.nav-open .site-nav li:nth-child(2) a { transition-delay: .20s; }
  body.nav-open .site-nav li:nth-child(3) a { transition-delay: .28s; }
  body.nav-open .site-nav li:nth-child(4) a { transition-delay: .36s; }
  body.nav-open .site-nav li:nth-child(5) a { transition-delay: .44s; }
  body.nav-open .site-nav li:nth-child(6) a { transition-delay: .52s; }

  body.nav-open .site-header { box-shadow: none; }
}

@media (max-width: 400px) {
  .brand-mark .wm-glyph { display: none; }
}

/* ----------------------------------------------------------------------------
   9. Footer
   ------------------------------------------------------------------------- */

.site-footer {
  margin-top: 120px;
  color: var(--paper);
  background: var(--black);
  overflow: hidden;
}

/* highway light trails, barely there behind the footer */
.footer-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/bg/trails.jpg") center 60% / cover no-repeat;
  opacity: .32;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 88px var(--gutter) 56px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 18px;
}

.footer-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .32em;
  color: #9a9a96;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 36px;
  margin-bottom: 56px;
}

.footer-nav a {
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  opacity: .75;
}

.footer-nav a:hover,
.footer-nav a:focus-visible { opacity: 1; }

.footer-note {
  font-size: 11px;
  letter-spacing: .06em;
  color: #8c8c88;
  line-height: 2;
}

/* ----------------------------------------------------------------------------
   10. Motion components (with js/ink.js + js/fx.js)
   ------------------------------------------------------------------------- */

.site-footer,
main {
  position: relative;
  z-index: 1;
}

.k-letter {
  display: inline-block;
  will-change: transform;
}

/* scroll-progress rail — dashed road with an orange marker */
.fx-rail {
  position: fixed;
  top: 0;
  right: 22px;
  bottom: 0;
  width: 1px;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 13px);
}

.fx-rail__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 0;
  background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 13px);
}

.fx-rail__marker {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: translateX(-50%) rotate(45deg);
}

/* reveal */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.has-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* odometer digits — row height must be exactly 1em */
.odo {
  display: inline-flex;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  vertical-align: baseline;
}

.odo__static,
.odo__col {
  display: inline-block;
  height: 1em;
  line-height: 1;
}

.odo__reel {
  display: block;
  transition: transform .9s var(--ease);
  will-change: transform;
}

.odo__reel span {
  display: block;
  height: 1em;
  line-height: 1;
}

/* faint lexicon words in the margins */
.lex-float {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.lex-float--tl { top: 34px; left: var(--gutter); }
.lex-float--br { bottom: 40px; right: 48px; }

@media (max-width: 767px) {
  .lex-float { display: none; }
}

/* scroll cue */
.scrollcue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--ink-mute);
  animation: fade 1.6s var(--ease) 1.6s both;
}

.scrollcue::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  margin: 10px auto 0;
  background: repeating-linear-gradient(to bottom, currentColor 0 4px, transparent 4px 8px);
  animation: drive 1.7s var(--ease) infinite;
}

@keyframes word-in {
  0%   { opacity: 0; transform: translateY(14px); filter: blur(3px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes drive {
  0%   { clip-path: inset(0 0 100% 0); }
  55%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(100% 0 0 0); }
}

@keyframes marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

/* ----------------------------------------------------------------------------
   11. Section head — hairline rule with mono annotation
   ------------------------------------------------------------------------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14vh var(--gutter) 10vh;
}

.shead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.shead__big {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1;
}

.shead__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* long-form text sits on a soft white veil; the blooms still show at the edges */
.lede,
.message__body,
.req,
.calc,
.news,
.figures,
.cta-note {
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.82) 0%, rgba(255,255,255,.55) 55%, rgba(255,255,255,0) 100%);
}

.lede {
  max-width: 640px;
  margin-top: 36px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .shead { flex-direction: column; gap: 10px; }
  .shead__meta { white-space: normal; }
}

/* ----------------------------------------------------------------------------
   12. HOME — hero
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 180px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 4.5vh;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--ink-soft);
  animation: fade 1.6s var(--ease) .5s both;
}

.hero__wordmark {
  font-size: clamp(44px, 9.4vw, 148px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  animation: word-in 1.8s var(--ease) both;
}

.hero__wordmark .wm-line {
  display: block;
}

.hero__sub {
  margin-top: 5vh;
  max-width: 520px;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  animation: fade 1.6s var(--ease) 1s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  animation: fade 1.6s var(--ease) 1.2s both;
}

@media (max-width: 600px) {
  .hero__meta { letter-spacing: .24em; font-size: 10px; }
  .btn { padding: 0 26px; }
}

/* ----------------------------------------------------------------------------
   13. Figures — odometer stats
   ------------------------------------------------------------------------- */

.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .figures { grid-template-columns: repeat(4, 1fr); }
}

.figure {
  padding: 28px 20px 30px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .figure + .figure { padding-left: 24px; border-left: 1px solid var(--line); }
}

@media (max-width: 899px) {
  .figure:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}

.figure__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 200;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.figure__unit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-mute);
}

.figure__label {
  display: block;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.figure__note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* ----------------------------------------------------------------------------
   14. Vehicle card — flip (front = drawing, back = spec sheet)
   ------------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-top: 56px;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
}

@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 56px 40px; }
}

.card { perspective: 1200px; }

.card__no {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
}

.card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--ink);
}

.card__inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .65s var(--ease);
}

@media (hover: hover) {
  .card:hover .card__inner { transform: rotateY(180deg); }
}

.card:focus-within .card__inner,
.card.is-flipped .card__inner {
  transform: rotateY(180deg);
}

.card__face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card__front {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-warm);
  overflow: hidden;
}

.card__front svg {
  width: 100%;
  height: 100%;
}

/* real photo on a white sheet: same grid paper, car sits on the dashed line */
.card__front--photo {
  background: var(--white);
  border: 1px solid var(--line);
}

.card__front--photo img {
  position: absolute;
  inset: 8% 6% 12%;
  width: 88%;
  height: 80%;
  object-fit: contain;
  transition: transform .8s var(--ease);
}

@media (hover: hover) {
  .card:hover .card__front--photo img { transform: translateX(3%); }
}

/* full-frame dealer photos fill the card; the stock plate sits on a white chip */
.card__front--cover { border: 0; }

.card__front--cover img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__front--cover .card__plate {
  padding: 4px 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink-soft);
}

@media (hover: hover) {
  .card:hover .card__front--cover img { transform: scale(1.04); }
}

.card__plate {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink-mute);
}

.card__flipbtn {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

@media (hover: hover) {
  .card__flipbtn { display: none; }
}

.card__back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
  overflow: hidden;
}

.card__back dl {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-content: start;
}

.card__back dt,
.card__back dd {
  padding: 5px 0 4px;
  border-bottom: 1px solid rgba(250, 250, 250, 0.16);
}

.card__back dt {
  color: #9a9a96;
  font-size: 9px;
  letter-spacing: .2em;
  white-space: nowrap;
}

.card__backfoot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.card__bcode {
  display: block;
  flex: 1;
  max-width: 120px;
  height: 18px;
  background: repeating-linear-gradient(90deg,
    var(--paper) 0 2px, transparent 2px 5px,
    var(--paper) 5px 6px, transparent 6px 11px);
  opacity: .9;
}

.card__enquire {
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--paper);
  border-bottom: 1px solid var(--orange);
  padding-bottom: 3px;
  white-space: nowrap;
}

.card__enquire:hover,
.card__enquire:focus-visible { color: var(--orange); }

.card__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.card__name {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

.card__sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--ink-mute);
}

.card__price {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-align: right;
}

.card__price small {
  display: block;
  font-size: 8px;
  letter-spacing: .24em;
  color: var(--ink-mute);
}

.more-row {
  margin-top: 72px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.more-row a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
}

.more-row a:hover,
.more-row a:focus-visible { color: var(--orange); }

.more-row__sep {
  margin: 0 18px;
  font-family: var(--font-mono);
  color: var(--ink-mute);
}

@media (max-width: 600px) {
  .more-row__sep { display: block; height: 10px; overflow: hidden; color: transparent; margin: 0; }
}

/* ----------------------------------------------------------------------------
   15. Marquee — outlined type, ink blooms show through the strokes
   ------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  padding: 8vh 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 80s linear infinite;
}

.marquee__seg {
  display: block;
  white-space: nowrap;
  padding-right: .4em;
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 190px);
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(22, 22, 22, 0.8);
}

.marquee__seg i {
  font-style: normal;
  -webkit-text-stroke: 0;
  color: var(--orange);
}

/* ----------------------------------------------------------------------------
   16. Photo band — wipes open on reveal, grayscale → colour on hover
   ------------------------------------------------------------------------- */

.photo {
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.06);
  transition: filter 1.2s var(--ease), transform 1.6s var(--ease);
}

.photo:hover img { filter: grayscale(0); }

/* the wipe lives on the img: a clip-path on the observed figure itself
   would keep IntersectionObserver from ever seeing it */
.has-reveal .photo.reveal {
  opacity: 1;
  transform: none;
}

.has-reveal .photo.reveal img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--ease), filter 1.2s var(--ease), transform 1.6s var(--ease);
}

.has-reveal .photo.reveal .photo__cap {
  opacity: 0;
  transition: opacity .6s var(--ease) 1s;
}

.has-reveal .photo.reveal.is-visible img {
  clip-path: inset(0 0 0 0);
  transform: none;
}

.has-reveal .photo.reveal.is-visible .photo__cap { opacity: 1; }

.photo__cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, .92);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
}

.photo--wide { aspect-ratio: 1366 / 540; }

@media (max-width: 640px) {
  .photo--wide { aspect-ratio: 4 / 3; }
}

/* ----------------------------------------------------------------------------
   17. Flow / service rows — hairline rows, huge light numerals, inversion
   ------------------------------------------------------------------------- */

.rows {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.rows td {
  border-bottom: 1px solid var(--line);
  padding: 22px 20px;
  vertical-align: middle;
  transition: background-color .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}

.rows .row-no {
  width: 120px;
  font-size: clamp(40px, 5.5vw, 78px);
  font-weight: 200;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  padding-left: 4px;
}

@media (min-width: 768px) {
  .rows .row-no { width: 180px; }
}

.flow-name {
  display: block;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.flow-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 620px;
  transition: color .28s var(--ease);
}

.rows .row-meta {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--ink-mute);
}

.rows tr:hover td,
.rows tr:focus-within td {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.rows tr:hover .row-no,
.rows tr:focus-within .row-no {
  -webkit-text-stroke: 1px var(--orange);
  color: transparent;
}

.rows tr:hover .flow-desc,
.rows tr:hover .row-meta { color: #b9b9b4; }

@media (max-width: 640px) {
  .rows td { padding: 16px 10px; }
  .rows .row-no { width: 72px; }
  .rows .row-meta { display: none; }
  .flow-name { letter-spacing: .16em; }
}

/* ----------------------------------------------------------------------------
   18. Huge CTA
   ------------------------------------------------------------------------- */

.cta-row { margin-top: 9vh; }

.cta-huge {
  display: inline-block;
  font-size: clamp(34px, 7.6vw, 118px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.nowrap { white-space: nowrap; }

.cta-huge .arr {
  display: inline-block;
  color: var(--orange);
  transition: transform 0.5s var(--ease);
}

.cta-huge:hover .arr,
.cta-huge:focus-visible .arr {
  transform: translateX(0.3em);
}

.cta-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 560px;
}

.cta-note a {
  border-bottom: 1px solid var(--orange);
}

/* ----------------------------------------------------------------------------
   19. News ledger
   ------------------------------------------------------------------------- */

.news li {
  display: grid;
  grid-template-columns: 110px 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.news time,
.news .news-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-mute);
}

.news .news-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news .news-cat::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
}

.news li:nth-child(even) .news-cat::before { background: var(--lime); }

@media (max-width: 640px) {
  .news li { grid-template-columns: 1fr; gap: 4px; }
}

/* ----------------------------------------------------------------------------
   20. Page head (STOCK / COMPANY / REQUEST)
   ------------------------------------------------------------------------- */

.page-head {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12vh var(--gutter) 6vh;
}

.page-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--ink-mute);
}

.page-eyebrow > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 600px) {
  .page-eyebrow { flex-direction: column; align-items: flex-start; gap: 6px; }
}

.page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 28px clamp(40px, 8vw, 120px);
  margin-top: 30px;
}

.page-title {
  font-size: clamp(44px, 8vw, 116px);
  font-weight: 300;
  line-height: .95;
  letter-spacing: 0.04em;
  cursor: default;
  user-select: none;
}

/* one letter of each title becomes an outline glyph */
.page-title .k-letter.is-outline {
  -webkit-text-stroke: 1px var(--ink);
  color: transparent;
}

.lexicon {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  min-width: 240px;
}

.lexicon div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.lexicon div:first-child { border-top: 1px solid var(--line); }

.lexicon dt {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  width: 64px;
  flex: none;
}

.lexicon dd {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

/* ----------------------------------------------------------------------------
   21. STOCK — toolbar + chips
   ------------------------------------------------------------------------- */

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toolbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.toolbar__search { flex: 1 1 220px; }

.toolbar__search input { border-color: transparent; padding-left: 0; background: transparent; }
.toolbar__search input:focus { box-shadow: none; border-color: transparent; border-bottom-color: var(--ink); }

.toolbar select { width: auto; min-width: 180px; font-size: 12px; }

.toolbar__count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--ink-mute);
}

.chips {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--ink-soft);
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}

.chip:hover { border-color: var(--ink); color: var(--ink); }

.chip[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--orange);
}

.stock-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.empty {
  padding: 80px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--ink-mute);
}

.disclaimer {
  margin-top: 64px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.9;
}

/* ----------------------------------------------------------------------------
   22. COMPANY — message, profile label
   ------------------------------------------------------------------------- */

.message {
  display: grid;
  gap: 48px;
  margin-top: 56px;
}

@media (min-width: 900px) {
  .message { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
}

.message .photo { aspect-ratio: 3 / 4; }

@media (max-width: 899px) {
  .message .photo { aspect-ratio: 4 / 3; }
}

.message__quote {
  font-family: var(--font-display-lc);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: .01em;
}

.message__quote em {
  font-style: normal;
  background: linear-gradient(transparent 86%, var(--orange) 86%, var(--orange) 94%, transparent 94%);
}

.message__body p {
  margin-top: 22px;
  font-size: 14px;
  line-height: 2.05;
  color: var(--ink-soft);
}

.message__sign {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-mute);
}

.profile-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 72px;
}

@media (min-width: 1024px) {
  .profile-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
  }
}

.profile-year {
  font-size: clamp(80px, 11vw, 176px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  user-select: none;
  white-space: nowrap;
}

.profile-year i {
  font-style: normal;
  -webkit-text-stroke: 1px var(--orange);
}

.profile-label {
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, .78);
  padding: 30px 30px 24px;
  font-size: 13px;
  line-height: 1.8;
  flex: none;
}

.profile-label__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink-mute);
}

.profile-label dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.profile-label dd { margin: 2px 0 16px; }

.profile-label .barcode {
  display: block;
  height: 24px;
  margin-top: 8px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 6px, transparent 6px 11px);
}

.profile-label .code {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.4em;
  color: var(--ink-mute);
}

.ph {
  color: var(--ink-mute);
}

.duo-photos {
  display: grid;
  gap: 24px;
  margin-top: 56px;
}

@media (min-width: 800px) {
  .duo-photos { grid-template-columns: 7fr 5fr; }
}

.duo-photos .photo { aspect-ratio: 4 / 3; }

@media (min-width: 800px) {
  .duo-photos .photo { aspect-ratio: auto; height: clamp(280px, 30vw, 420px); }
}

/* ----------------------------------------------------------------------------
   23. REQUEST — web version of the Vehicle Request Form
   ------------------------------------------------------------------------- */

.req {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.req-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.req-intro a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--ink);
  border-bottom: 1px solid var(--orange);
  padding-bottom: 2px;
}

.req-block { margin-top: 56px; }

.req-block__title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
}

.req-block__title::before {
  content: "";
  width: 4px;
  height: 22px;
  background: var(--orange);
}

.req-block--lime .req-block__title::before { background: var(--lime); }

.q {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 10px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
}

.q__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-mute);
  padding-top: 2px;
}

.q__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}

.q__title .req-mark { color: var(--orange); font-weight: 400; }

.q__hint {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 400;
}

.q__body {
  grid-column: 2;
  margin-top: 10px;
}

.q__inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.q__inline input { width: auto; flex: 1 1 140px; max-width: 260px; }
.q__inline input.w-sm { flex: 0 1 120px; }

/* tick-boxes: square, hairline; checked = ink with lime check */
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt {
  position: relative;
}

.opt > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.opt span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}

.opt span::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink-mute);
  flex: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.opt:hover span { border-color: var(--ink-mute); color: var(--ink); }

.opt > input:checked + span {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper);
}

.opt > input:checked + span::before {
  border-color: var(--ink);
  background:
    linear-gradient(var(--lime), var(--lime)) center / 6px 6px no-repeat,
    var(--ink);
}

.opt > input:focus-visible + span {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.opt--other span { padding-right: 8px; }

.opt-other-input {
  width: 180px !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
}

.req-contact {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 700px) {
  .req-contact { grid-template-columns: 1fr 1fr; }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--ink-soft);
}

.field label .req-mark { color: var(--orange); }

.field--full { grid-column: 1 / -1; }

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #b4471a;
}

.is-invalid .field-error { display: block; }
.is-invalid input { border-color: #b4471a; }

.req-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.req-foot p {
  font-size: 12px;
  color: var(--ink-mute);
  max-width: 460px;
}

.req-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* confirmation sheet */
.req-done {
  margin-top: 56px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, .9);
  padding: 34px 30px 28px;
}

.req-done[hidden] { display: none; }

.req-done__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-mute);
}

.req-done__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: .04em;
  line-height: 1.1;
}

.req-done__ref {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-left: 4px solid var(--orange);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
}

.req-done pre {
  margin-top: 22px;
  padding: 18px;
  max-height: 340px;
  overflow: auto;
  background: var(--paper-warm);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.req-done .req-actions { margin-top: 22px; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 140;
  transform: translate(-50%, 16px);
  max-width: 88vw;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  border-left: 3px solid var(--lime);
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ----------------------------------------------------------------------------
   24. Page switching (single document, hash routes)
   ------------------------------------------------------------------------- */

.page[hidden] { display: none !important; }

.page.is-entering {
  animation: fade .6s var(--ease) both;
}

/* ----------------------------------------------------------------------------
   25. Reduced motion
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .card__inner,
  .odo__reel,
  .has-reveal .reveal,
  .photo img {
    transition: none;
  }
  .has-reveal .reveal,
  .has-reveal .photo.reveal img {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .marquee__track,
  .scrollcue::after,
  .hero__wordmark,
  .hero__meta,
  .hero__sub,
  .hero__actions,
  .page.is-entering,
  .is-animating .calc-ledger li,
  .is-animating .calc-total,
  .is-animating .calc-vat {
    animation: none;
  }
}

@media print {
  .site-header, .site-footer, .fx-rail, #inkCanvas, .toolbar, .chips, .req-foot, .toast { display: none !important; }
}

/* ----------------------------------------------------------------------------
   26. Hero road — a line-art car drives Yokohama → Southampton under the
   wordmark; an orange line follows it like the route being drawn
   ------------------------------------------------------------------------- */

.hero-road {
  position: absolute;
  left: 50%;
  bottom: 118px;
  width: min(980px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink-mute);
  animation: fade 1.6s var(--ease) 1.4s both;
}

.hero-road__pin {
  flex: none;
  padding-bottom: 2px;
}

.hero-road__lane {
  position: relative;
  flex: 1;
  height: 1px;
  margin-bottom: 6px;
  background: repeating-linear-gradient(90deg, var(--ink-mute) 0 8px, transparent 8px 15px);
}

.hero-road__lane::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  animation: route-draw 11s cubic-bezier(.45,.05,.55,.95) infinite;
}

.hero-road__car {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  animation: car-drive 11s cubic-bezier(.45,.05,.55,.95) infinite;
}

.hero-road__car svg {
  display: block;
  width: 100%;
  height: auto;
  animation: car-bob .5s ease-in-out infinite alternate;
}

@keyframes car-drive {
  0%   { left: 0; opacity: 0; }
  6%   { opacity: 1; }
  88%  { left: calc(100% - 64px); opacity: 1; }
  96%, 100% { left: calc(100% - 64px); opacity: 0; }
}

@keyframes route-draw {
  0%   { width: 0;    opacity: 1; }
  88%  { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

@keyframes car-bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-1.5px); }
}

@media (max-width: 600px) {
  .hero { padding-bottom: 190px; }
  .hero-road { bottom: 112px; font-size: 8px; letter-spacing: .2em; }
}

@media (max-height: 760px) and (min-width: 601px) {
  .hero { padding-bottom: 200px; }
}

/* ----------------------------------------------------------------------------
   27. Route — full-bleed road photo. It opens as a spreading blot, the same
   gesture as the ink canvas, then drifts slowly with the scroll.
   ------------------------------------------------------------------------- */

.route {
  position: relative;
  min-height: 78vh;
  margin: 6vh 0;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}

.route__media {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}

.route__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.72);
  transition: filter 1.4s var(--ease);
}

.route:hover .route__media img { filter: grayscale(.2) contrast(1.05) brightness(.7); }

.route__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%);
}

.has-reveal .route.reveal { opacity: 1; transform: none; }

.has-reveal .route.reveal .route__media {
  clip-path: circle(0% at 32% 62%);
  transition: clip-path 2.2s cubic-bezier(.3,.7,.2,1);
}

.has-reveal .route.reveal.is-visible .route__media { clip-path: circle(150% at 32% 62%); }

.has-reveal .route.reveal .route__inner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease) .9s, transform 1s var(--ease) .9s;
}

.has-reveal .route.reveal.is-visible .route__inner { opacity: 1; transform: none; }

.route__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12vh var(--gutter) 8vh;
}

.route__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .34em;
  color: rgba(255,255,255,.8);
}

.route__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--paper);
}

.route__title i {
  font-style: normal;
  -webkit-text-stroke: 0;
  color: var(--orange);
}

.route__legs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.3);
}

@media (min-width: 900px) {
  .route__legs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.route__legs div {
  padding: 14px 16px 0 0;
}

.route__legs dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.6);
}

.route__legs dd {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
}

.route__legs div:last-child dd { color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  .hero-road__car, .hero-road__lane::after, .hero-road__car svg { animation: none; }
  .hero-road__car { left: 50%; }
  .has-reveal .route.reveal .route__media { clip-path: none; transition: none; }
  .has-reveal .route.reveal .route__inner { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------------------------------------
   28. CALCULATOR — import cost estimate (inputs left, ledger right; stacked
   inputs → results on phones). Figures live in js/calc-config.js.
   ------------------------------------------------------------------------- */

.calc {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .calc {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
  }
  .calc__inputs {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.calc__results { scroll-margin-top: calc(var(--header-h) + 16px); }

.calc__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--ink-soft);
}

.calc__rate {
  margin-left: auto;
  letter-spacing: .14em;
  color: var(--ink-mute);
}

/* pictograms — stroke icons in the ink-soft grey, sized to the text beside them */
.ico {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.calc__head .ico { width: 18px; height: 18px; }

/* --- inputs --- */

.calc-field {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.calc-field__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}

.calc-field__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.calc-field__row input,
.calc-field__row select {
  flex: 1 1 120px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 10px 12px;
  background: var(--white);
}

/* the size / duty labels are sentences, so they take the text face */
.calc-field__row select {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
}

.calc-unit {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-soft);
}

.calc-field__hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-mute);
}

/* 0% duty chosen: the caution reads in the warning colour */
.is-duty-zero .calc-field--duty .calc-field__hint { color: #b4471a; }

/* segmented switch (JPY / GBP) on white */
.seg {
  display: inline-flex;
  flex: none;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
}

.seg button {
  padding: 9px 12px;
  color: var(--ink-soft);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}

.seg button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.calc-actions--results { margin-top: 28px; }

.calc-actions .btn .ico {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.calc-start {
  padding-right: 30px;
  box-shadow: inset 0 -3px 0 var(--orange);
}

.calc-start__arr {
  display: inline-block;
  transition: transform .4s var(--ease);
}

.calc-start:hover .calc-start__arr,
.calc-start:focus-visible .calc-start__arr { transform: translateX(.3em); }

/* --- results ledger --- */

.calc-msg {
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--line);
  background: var(--paper-warm);
  font-size: 13px;
  color: var(--ink-soft);
}

.calc-msg--error { border-left-color: #b4471a; color: #b4471a; }
.calc-msg--stale { border-left-color: var(--orange); }

.calc-ledger li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  grid-template-areas:
    "ico name gbp"
    "ico desc jpy";
  column-gap: 14px;
  row-gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.calc-ledger li .ico {
  grid-area: ico;
  align-self: start;
  margin-top: 1px;
}

.calc-row__name {
  grid-area: name;
  font-size: 14px;
  letter-spacing: .01em;
}

.calc-row__desc {
  grid-area: desc;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 52ch;
}

.calc-row__gbp,
.calc-row__jpy,
.calc-total__gbp,
.calc-total__jpy {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.calc-row__gbp {
  grid-area: gbp;
  font-size: 16px;
  color: var(--ink);
}

.calc-row__jpy {
  grid-area: jpy;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-mute);
}

.calc-row--sub {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-top: -1px;
}

.calc-row--sub .calc-row__name { font-weight: 600; }
.calc-row--sub .calc-row__gbp { font-size: 18px; }

.calc-feenote {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-soft);
}

.calc-feenote::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  background: var(--orange);
  vertical-align: middle;
}

/* the landed total — the one loud element */
.calc-total {
  margin-top: 28px;
  padding: 26px 28px 24px;
  background: var(--ink);
  color: var(--paper);
  border-left: 5px solid var(--orange);
}

.calc-total__name {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #b9b9b4;
}

.calc-total__name .ico { stroke: #b9b9b4; margin-top: -3px; }

.calc-total__name em {
  font-style: normal;
  color: var(--paper);
}

.calc-total__gbp {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: .02em;
  text-align: left;
  color: var(--paper);
}

.calc-total__jpy {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: .08em;
  text-align: left;
  color: #b9b9b4;
}

.is-empty .calc-total { background: var(--paper-warm); color: var(--ink); border-left-color: var(--line); }
.is-empty .calc-total__name,
.is-empty .calc-total__name em,
.is-empty .calc-total__gbp,
.is-empty .calc-total__jpy { color: var(--ink-mute); }
.is-empty .calc-total__name .ico { stroke: var(--ink-mute); }

/* inputs edited after a run: the old figures step back until the next press */
.calc-ledger,
.calc-total,
.calc-vat,
.calc-feenote {
  transition: opacity .4s var(--ease), filter .4s var(--ease);
}

.is-stale .calc-ledger,
.is-stale .calc-total,
.is-stale .calc-vat,
.is-stale .calc-feenote {
  opacity: .42;
  filter: grayscale(1);
}

/* a fresh run: rows file in one after another, the total last */
@keyframes calc-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.is-animating .calc-ledger li {
  animation: calc-in .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.is-animating .calc-total { animation: calc-in .6s var(--ease) .5s both; }
.is-animating .calc-vat   { animation: calc-in .6s var(--ease) .7s both; }
.is-animating .calc-vat .calc-ledger li { animation: none; }

/* VAT reference box */
.calc-vat {
  margin-top: 24px;
  padding: 16px 22px 4px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, .7);
}

.calc-vat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink-mute);
}

.calc-vat__head .ico { width: 18px; height: 18px; }

.calc-notes__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px !important;
  padding-left: 0 !important;
  border-left: 0 !important;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink-mute) !important;
}

.calc-notes__head .ico { width: 18px; height: 18px; }

.calc-vat .calc-ledger li:last-child { border-bottom: 0; }

.calc-notes {
  margin-top: 36px;
}

.calc-notes p {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.calc-notes p:nth-child(2) {
  margin-top: 0;
  border-left-color: var(--orange);
}

@media (max-width: 480px) {
  .calc-ledger li { column-gap: 12px; }
  .calc-row__gbp { font-size: 15px; }
  .calc-total { padding: 22px 18px 20px; }
  .calc-field__row { flex-wrap: wrap; }
  .calc-field__row input { flex-basis: 160px; }
}

/* ----------------------------------------------------------------------------
   29. CALCULATOR — the drive. After "Start Price Estimate" the line-art car
   crosses a light veil over the page, Yokohama → Southampton; the figures
   appear the moment it arrives.
   ------------------------------------------------------------------------- */

.calc-drive {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .3s var(--ease);
  cursor: pointer;
}

.calc-drive[hidden] { display: none !important; }
.calc-drive.is-on { opacity: 1; }

.calc-drive__stage {
  width: min(880px, 100%);
}

.calc-drive__label {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .42em;
  color: var(--ink-soft);
}

.calc-drive__road {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink-mute);
}

.calc-drive__pin { flex: none; padding-bottom: 2px; }

.calc-drive__lane {
  position: relative;
  flex: 1;
  height: 1px;
  margin-bottom: 6px;
  background: repeating-linear-gradient(90deg, var(--ink-mute) 0 8px, transparent 8px 15px);
}

.calc-drive__trail {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
}

.calc-drive__car {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 96px;
}

.calc-drive__car svg {
  display: block;
  width: 100%;
  height: auto;
  animation: car-bob .45s ease-in-out infinite alternate;
}

/* the run itself: ease in, cruise, ease out — a little under two seconds */
.calc-drive.is-on .calc-drive__car {
  animation: calc-drive-car 1.8s cubic-bezier(.45, .05, .25, 1) forwards;
}

.calc-drive.is-on .calc-drive__trail {
  animation: calc-drive-trail 1.8s cubic-bezier(.45, .05, .25, 1) forwards;
}

@keyframes calc-drive-car {
  from { left: 0; }
  to   { left: calc(100% - 96px); }
}

@keyframes calc-drive-trail {
  from { width: 0; }
  to   { width: 100%; }
}

.calc-drive__hint {
  margin-top: 36px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .32em;
  color: var(--ink-mute);
  opacity: 0;
  animation: fade .6s var(--ease) .9s both;
}

@media (max-width: 600px) {
  .calc-drive__label { font-size: 9px; letter-spacing: .26em; }
  .calc-drive__car { width: 64px; }
  @keyframes calc-drive-car {
    from { left: 0; }
    to   { left: calc(100% - 64px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .calc-drive { display: none !important; }
}

/* ----------------------------------------------------------------------------
   30. PROCESS — sixteen stops on one road. A dashed rail runs down the left,
   the line-art car follows the scroll, each phase gets a photo band.
   ------------------------------------------------------------------------- */

.proc {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter) 4vh;
}

.proc__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--gutter) + 17px);
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--ink-mute) 0 6px, transparent 6px 13px);
}

.proc__car {
  position: absolute;
  top: 0;
  left: 50%;
  width: 62px;
  margin-left: -31px;
  transform: translateY(0);
  will-change: transform;
}

.proc__car svg {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(90deg);
  filter: drop-shadow(0 0 6px rgba(255,255,255,1)) drop-shadow(0 0 6px rgba(255,255,255,1));
}

.proc-phase { position: relative; padding: 6vh 0 2vh; }

.proc-phase__head {
  position: relative;
  margin-left: 100px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 16px;
}

.proc-phase__k {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--orange);
}

.proc-phase__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.1;
}

.proc-phase__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-mute);
  white-space: nowrap;
}

.proc-steps { margin-top: 8px; }

.proc-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 20px;
  padding: 26px 0 26px 44px;
  border-bottom: 1px solid var(--line);
}

.proc-step__no {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 200;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  padding-top: 2px;
}

/* the stop on the rail: white square with an ink border; orange where you act */
.proc-step__node {
  position: absolute;
  left: 12px;
  top: 34px;
  width: 11px;
  height: 11px;
  background: var(--white);
  border: 1px solid var(--ink);
  transform: rotate(45deg);
}

.proc-step--you .proc-step__node { background: var(--orange); border-color: var(--orange); }

.proc-step__body { min-width: 0; }

.proc-step__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.4;
}

.proc-step__who {
  padding: 2px 8px;
  border: 1px solid var(--orange);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .26em;
  color: var(--orange);
}

.proc-step__jp {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-mute);
}

.proc-step__desc {
  margin-top: 8px;
  max-width: 60ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.proc-check {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.proc-check li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  font-size: 12.5px;
  color: var(--ink);
}

.proc-check .ico { width: 18px; height: 18px; }

.proc-fee {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  background: rgba(255,255,255,.8);
  max-width: 520px;
}

.proc-fee dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink-mute);
}

.proc-fee dd {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .04em;
}

.proc-photo {
  margin: 4vh 0 2vh 100px;
  aspect-ratio: 16 / 7;
}

.proc-photo--last { aspect-ratio: 16 / 6; }

.proc-note {
  margin: 6vh 0 0 100px;
  padding-left: 14px;
  border-left: 2px solid var(--orange);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 62ch;
}

.proc .cta-row,
.proc .cta-note { margin-left: 100px; }

@media (max-width: 600px) {
  .proc__rail { left: calc(var(--gutter) + 15px); }
  .proc__car { width: 48px; margin-left: -24px; }
  .proc-phase__head,
  .proc-photo,
  .proc-note,
  .proc .cta-row,
  .proc .cta-note { margin-left: 44px; }
  .proc-phase__head { grid-template-columns: 1fr; }
  .proc-phase__meta { white-space: normal; }
  .proc-step { grid-template-columns: 1fr; padding: 26px 0 26px 44px; }
  .proc-step__no { position: absolute; left: 0; top: 24px; width: 32px; padding: 0; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-align: center; color: var(--ink-mute); background: var(--paper); z-index: 1; }
  .proc-step__node { left: 10px; top: 42px; }
  .proc-photo { aspect-ratio: 4 / 3; }
  .proc-check { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .proc__car { display: none; }
}

/* ----------------------------------------------------------------------------
   31. PROCESS overview — four steps in a row under one road; "More details"
   leads to the 16-step page.
   ------------------------------------------------------------------------- */

.pflow {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 4vh;
}

.pflow__road {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink-mute);
  margin-bottom: 34px;
}

.pflow__pin { flex: none; padding-bottom: 2px; }

.pflow__lane {
  position: relative;
  flex: 1;
  height: 1px;
  margin-bottom: 6px;
  background: repeating-linear-gradient(90deg, var(--ink-mute) 0 8px, transparent 8px 15px);
}

.pflow__trail {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
}

.pflow__car {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 72px;
}

.pflow__car svg { display: block; width: 100%; height: auto; }

.has-reveal .pflow__road.reveal.is-visible .pflow__car {
  animation: pflow-car 2.6s cubic-bezier(.45,.05,.25,1) .2s forwards;
}

.has-reveal .pflow__road.reveal.is-visible .pflow__trail {
  animation: pflow-trail 2.6s cubic-bezier(.45,.05,.25,1) .2s forwards;
}

@keyframes pflow-car   { to { left: calc(100% - 72px); } }
@keyframes pflow-trail { to { width: 100%; } }

.psteps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .psteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .psteps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pstep {
  position: relative;
  padding: 26px 24px 30px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

@media (min-width: 720px) {
  .pstep { padding-right: 32px; }
  .pstep + .pstep { padding-left: 28px; border-left: 1px solid var(--line); }
}

@media (min-width: 720px) and (max-width: 1099px) {
  .pstep:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* a step's "stop": square node, orange where you act; arrow to the next step */
.pstep__k {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--orange);
}

.pstep__node {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  background: var(--white);
  transform: rotate(45deg);
}

.pstep--you .pstep__node { background: var(--orange); border-color: var(--orange); }

.pstep > .ico {
  width: 34px;
  height: 34px;
  margin-top: 26px;
  stroke-width: 1.3;
}

.pstep__title {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.4;
  text-wrap: balance;
}

.pstep__jp {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-mute);
}

.pstep__desc {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.pstep__dl {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink-mute);
}

.pstep__details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pstep__details li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  font-size: 12px;
  color: var(--ink);
}

.pflow__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
  background: var(--paper-warm);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 72ch;
}

.pflow__note .ico { flex: none; margin-top: 2px; }

.pflow .cta-row { margin-top: 10vh; }
.pflow .more-row { margin-top: 56px; }

.proc-back {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
}

.proc-back a { border-bottom: 1px solid var(--orange); padding-bottom: 2px; }

@media (prefers-reduced-motion: reduce) {
  .has-reveal .pflow__road.reveal.is-visible .pflow__car,
  .has-reveal .pflow__road.reveal.is-visible .pflow__trail { animation: none; }
  .pflow__car { left: calc(100% - 72px); }
}

/* ----------------------------------------------------------------------------
   32. HOME — the black wall. Below the hero every section sits on black;
   the colour tokens are flipped on the wrapper so the components keep
   their hairline grammar, and the footer joins without a seam.
   ------------------------------------------------------------------------- */

.home-dark,
.dark {
  --ink: #f2f2ee;
  --ink-soft: #c9c9c3;
  --ink-mute: #8c8c88;
  --paper: #0b0b0b;
  --paper-warm: #171716;
  --white: #171716;
  --line: rgba(255, 255, 255, .16);
  position: relative;
  margin-top: 4vh;
  padding-bottom: 14vh;
  background: var(--black);
  color: var(--ink);
}

.home-dark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, .22);
}

/* no paper veils on the wall */
.home-dark .figures,
.home-dark .news,
.home-dark .cta-note { background: none; }

/* a little more air for the dark hairlines */
.home-dark .shead { border-bottom-color: rgba(255, 255, 255, .28); }
.home-dark .figures { border-top-color: rgba(255, 255, 255, .28); }

.home-dark .marquee__seg { -webkit-text-stroke: 1.2px rgba(255, 255, 255, .7); }

.home-dark .route__title { -webkit-text-stroke: 1.2px #ffffff; }

/* the caption chip stays a white label with dark text */
.home-dark .photo__cap { color: #161616; }

/* stock cards on black: light sheet on the front, dark spec sheet behind */
.home-dark .card__front { background: #f4f4f2; }
.home-dark .card__front--photo { background: #ffffff; border-color: rgba(255,255,255,.16); }
.home-dark .card__front--cover .card__plate { color: #4a4a48; }
.home-dark .card__back { background: #171716; color: #f2f2ee; border: 1px solid rgba(255,255,255,.18); }
.home-dark .card__back dt { color: #8c8c88; }
.home-dark .card__enquire { color: #f2f2ee; }

/* flow rows: hover lifts to a pale sheet with dark text */
.home-dark .rows tr:hover td,
.home-dark .rows tr:focus-within td { background: #f4f4f2; color: #161616; border-color: #f4f4f2; }
.home-dark .rows tr:hover .flow-desc,
.home-dark .rows tr:hover .row-meta { color: #4a4a48; }

.home-dark .cta-note a { border-bottom-color: var(--orange); }

/* the footer follows the wall directly on the home page */
body.is-home .site-footer { margin-top: 0; }

/* whole dark pages: the wall runs from the header to the footer */
.page.dark {
  margin-top: 0;
  padding-bottom: 10vh;
  min-height: calc(100vh - var(--header-h));
}

.page.dark::before { display: none; }
body.is-dark .site-footer { margin-top: 0; }

.dark .toolbar { background: rgba(11, 11, 11, .92); border-color: var(--line); }
.dark .toolbar input[type="search"] { color: var(--ink); }
.dark .toolbar select { background-color: #171716; color: var(--ink); border-color: var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f2f2ee' stroke-width='1'/%3E%3C/svg%3E"); }
.dark .chip { color: var(--ink-soft); border-color: var(--line); }
.dark .chip[aria-pressed="true"] { color: #161616; background: var(--ink); border-color: var(--ink); }
.dark .disclaimer { border-color: var(--line); }
.dark .btn { color: var(--ink); border-color: var(--ink); }
.dark .btn:hover { color: #161616; background: var(--ink); }
.dark .btn--solid { color: #161616; background: var(--ink); }
.dark .btn--solid:hover { color: var(--ink); background: transparent; }
.dark .photo__cap { color: #161616; }
.dark .proc-back a { color: var(--ink); }
.dark .pstep__details li { background: rgba(255,255,255,.04); color: var(--ink); }

/* ----------------------------------------------------------------------------
   33. CATALOGUE — mirrored dealer listings on the black wall
   ------------------------------------------------------------------------- */

/* filter toggle in the toolbar */
.toolbar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--ink-soft);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.toolbar__toggle .ico { width: 14px; height: 14px; stroke: currentColor; }
.toolbar__toggle:hover { color: var(--ink); border-color: var(--ink); }
.toolbar__toggle[aria-expanded="true"] { color: var(--ink); border-color: var(--ink); }
.toolbar__toggle b {
  min-width: 18px;
  padding: 1px 5px;
  font-weight: 400;
  text-align: center;
  color: #161616;
  background: var(--orange);
}

/* filter bar */
.cfilters {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.cfilters[hidden] { display: none; }
.cfilters__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter) 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px 16px;
  align-items: end;
}
.cfilter { display: grid; gap: 6px; }
.cfilter > span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--ink-mute);
}
.cfilter select {
  width: 100%;
  min-width: 0;
  padding: 8px 30px 8px 10px;
  font-size: 12px;
  background-color: #171716;
  color: var(--ink);
  border-color: var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f2f2ee' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}
.cfilter--check {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 0 8px;
  cursor: pointer;
}
.cfilter--check input {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.cfilter--check input:checked { background: var(--orange); border-color: var(--orange); }
.cfilter--check input:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid #161616;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.cfilter--check input:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.cfilter--check > span { font-size: 9px; letter-spacing: .24em; color: var(--ink-soft); }
.cfilters__reset {
  justify-self: start;
  align-self: end;
  padding: 9px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: opacity .25s var(--ease);
}
.cfilters__reset:disabled { opacity: .35; cursor: default; }

/* model chips under the make chips */
.chips--models { padding-top: 10px; align-items: center; }
.chips__k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--ink-mute);
  margin-right: 6px;
}
.chip--sub { padding: 4px 10px; font-size: 9px; }
.dark .chip--sub[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--green); }

@media (max-width: 767px) {
  .cfilters__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfilter--check, .cfilters__reset { grid-column: 1 / -1; }
}

.cgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 28px;
  margin-top: 36px;
}

@media (min-width: 640px) { .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; } }

.ccard__link { display: block; color: inherit; }

.ccard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #171716;
  border: 1px solid var(--line);
}

.ccard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.ccard__link:hover .ccard__media img,
.ccard__link:focus-visible .ccard__media img { transform: scale(1.04); }

.ccard__tag {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 9px;
  background: rgba(255,255,255,.94);
  color: #161616;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .28em;
}

.ccard__k {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--ink-mute);
}

.ccard__name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.2;
}

.ccard__grade {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.ccard__meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ink-mute);
}

.ccard__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ccard__jpy {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.ccard__gbp {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--ink-mute);
  text-align: right;
}

/* detail */
.cdet {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--gutter) 0;
}

.cdet__head { margin-top: 26px; }

.cdet__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .04em;
}

.cdet__grade {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.cdet__hl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.cdet__hl li {
  padding: 4px 10px;
  border: 1px solid var(--orange);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--orange);
}

.cdet__grid {
  display: grid;
  gap: 40px;
  margin-top: 36px;
}

@media (min-width: 960px) {
  .cdet__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
  .cdet__side { position: sticky; top: calc(var(--header-h) + 20px); }
}

.cdet__main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #171716;
  border: 1px solid var(--line);
  overflow: hidden;
}

.cdet__main img { width: 100%; height: 100%; object-fit: cover; }
.cdet__main img.is-missing { opacity: .2; }

.cdet__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}

@media (min-width: 640px) { .cdet__thumbs { grid-template-columns: repeat(10, 1fr); } }

.cdet__thumbs button {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: .55;
  transition: opacity .25s var(--ease), border-color .25s var(--ease);
}

.cdet__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.cdet__thumbs button:hover,
.cdet__thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--orange); }

.cdet__credit {
  margin-top: 12px;
  font-size: 11px;
  color: var(--ink-mute);
}

.cdet__credit a { border-bottom: 1px solid var(--ink-mute); }

.cdet__price {
  padding: 22px 24px 20px;
  border: 1px solid var(--ink);
  border-left: 5px solid var(--orange);
  background: #0f0f0e;
}

.cdet__jpy {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.cdet__gbp {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-mute);
}

.cdet__pricerows {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.cdet__pricerows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.cdet__pricerows dt { color: var(--ink-soft); }
.cdet__pricerows dd { font-family: var(--font-mono); }

.cdet__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cdet__facts div {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 10px;
  padding: 12px 14px;
  background: #0b0b0b;
}

.cdet__facts .ico { grid-row: 1 / 3; width: 20px; height: 20px; margin-top: 2px; }
.cdet__facts dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: .26em; color: var(--ink-mute); }
.cdet__facts dd { margin-top: 3px; font-size: 13.5px; }

.cdet__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.cdet__block {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cdet__h {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: .06em;
}

.cdet__cond {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin-top: 20px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cdet__cond div { padding: 14px 16px; background: #0b0b0b; }
.cdet__cond dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: .26em; color: var(--ink-mute); }
.cdet__cond dd { margin-top: 6px; font-size: 13.5px; display: flex; align-items: center; gap: 10px; }

.cdet__stars { display: inline-flex; gap: 3px; }
.cdet__stars i { width: 14px; height: 6px; background: rgba(255,255,255,.14); }
.cdet__stars i.is-on { background: var(--orange); }
.cdet__cond b { font-family: var(--font-mono); font-weight: 400; }

.cdet__eqcat { margin-top: 18px; }
.cdet__eqk { font-family: var(--font-mono); font-size: 9px; letter-spacing: .3em; color: var(--ink-mute); }
.cdet__eqcat .pstep__details { margin-top: 8px; }
.cdet__na { margin-top: 14px; font-size: 13px; color: var(--ink-mute); }

.cdet__spec {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 16px;
}

@media (min-width: 720px) { .cdet__spec { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }

.cdet__spec div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.cdet__spec dt { color: var(--ink-soft); }
.cdet__spec dd { font-family: var(--font-mono); text-align: right; }

.cdet__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
}

.cdet__nav a:hover { color: var(--orange); }
