/* Istanbul Chauffeur Driven — V5 prototype stylesheet.
   World: the journey ticket. Pearl paper on navy ground, slate for what you operate,
   one burgundy mark on paper only. Bodoni Moda for display, Hanken Grotesk for reading and UI. */

@import url("../fonts/fonts.css");

:root {
  /* Locked palette */
  --navy: #001B3A;
  --slate: #183C60;
  --burgundy: #793F50;
  --pearl: #F3F0EA;
  /* Tonal steps derived from the four (no new hue) */
  --navy-2: #072646;      /* raised navy plate */
  --navy-3: #0E3156;      /* third tone for decks */
  --pearl-2: #E8E3DA;     /* paper, one step down */
  --pearl-3: #DCD5C9;     /* paper fold / field */
  --ink: #001B3A;
  --ink-soft: #2C4560;    /* 9.1:1 on pearl */
  --on-dark: #F3F0EA;
  --on-dark-soft: #C9D1DB;/* 10.6:1 on navy */
  --alert: #8F2D1F;       /* existing DESIGN.md token: errors only */
  --field-line: rgba(0, 27, 58, .32);

  --display: "Bodoni Moda", "Libre Bodoni", Georgia, "Times New Roman", serif;
  --text: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Five type steps */
  --t-small: 0.9375rem;                          /* 15px */
  --t-body: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); /* 17–19px */
  --t-lead: clamp(1.3125rem, 1.15rem + .6vw, 1.625rem); /* 21–26px */
  --t-title: clamp(2rem, 1.5rem + 2vw, 3.25rem);   /* 32–52px */
  --t-display: clamp(2.875rem, 1.6rem + 5vw, 6rem);/* 46–96px */

  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1440px;
  --section: clamp(96px, 12vw, 200px);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--navy); color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--slate); color: var(--pearl); }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--pearl); }
input, textarea { caret-color: var(--slate); }
html { scrollbar-color: var(--slate) var(--pearl-2); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--pearl); color: var(--navy); padding: 12px 18px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 400; color: inherit; font-optical-sizing: auto; text-wrap: balance; }
.display { font-size: var(--t-display); line-height: .98; letter-spacing: -.025em; }
h1 { font-size: var(--t-display); line-height: 1; letter-spacing: -.024em; }
h2 { font-size: var(--t-title); line-height: 1.06; letter-spacing: -.015em; }
h3 { font-size: var(--t-lead); line-height: 1.2; letter-spacing: -.005em; }
.lead { font-size: var(--t-lead); line-height: 1.45; text-wrap: pretty; }
.small { font-size: var(--t-small); line-height: 1.5; }
p { text-wrap: pretty; }
.measure { max-width: 34em; }
.statement { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.25; letter-spacing: -.01em; max-width: 24em; }

/* ---------- Frame ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
main { position: relative; z-index: 1; background: var(--pearl); }
.field-navy { background: var(--navy); color: var(--on-dark); }
.field-slate { background: var(--slate); color: var(--on-dark); }
.field-pearl { background: var(--pearl); color: var(--ink); }
.field-pearl-2 { background: var(--pearl-2); color: var(--ink); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(64px, 8vw, 120px); }

/* ---------- Buttons and links ---------- */
.btn {
  --bg: var(--slate); --fg: var(--pearl);
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 0;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 600 1rem/1 var(--text); letter-spacing: .01em;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease-out;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:not(:disabled):not([aria-disabled="true"]):active { transform: scale(.96); }
.btn .arrow { width: 22px; height: 12px; flex: none; }
.btn--light { --bg: var(--pearl); --fg: var(--navy); }
.btn--navy { --bg: var(--navy); --fg: var(--pearl); }
.btn--quiet { --bg: var(--pearl-3); --fg: var(--navy); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --bg: var(--navy); }
  .btn--light:hover { --bg: #FFFFFF; }
  .btn--navy:hover { --bg: var(--slate); }
  .btn--quiet:hover { --bg: var(--pearl-2); }
}
.link { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; padding-block: 10px; }
.link .arrow { width: 22px; height: 12px; transition: transform 200ms var(--ease-out); }
.link:hover .arrow, .link:focus-visible .arrow { transform: translateX(4px); }
.link u { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 220ms var(--ease-out); } /* taste-skill-ignore: animated 1px link underline */
.link:hover u, .link:focus-visible u { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 30; color: var(--on-dark); }
.site-header.is-solid { position: relative; background: var(--navy); }
.hdr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 88px; }
.hdr__nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); font-size: var(--t-small); }
.hdr__nav--end { justify-content: flex-end; }
.hdr__nav a, .hdr__nav button { background: none; border: 0; padding: 10px 0; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; color: inherit; font-size: inherit; }
.hdr__nav a[aria-current="page"], .hdr__nav button[aria-current="true"] { text-decoration: underline; text-underline-offset: .5em; text-decoration-thickness: 1px; }
.hdr__nav .chev { width: 10px; height: 6px; transition: transform 180ms var(--ease-out); }
.hdr__nav button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.brand { display: grid; justify-items: center; text-decoration: none; line-height: 1; gap: 6px; }
.brand__name { font-family: var(--display); font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem); letter-spacing: .005em; white-space: nowrap; }
.brand__place { font-size: .8125rem; letter-spacing: .02em; color: var(--on-dark-soft); }
.hdr .btn { min-height: 46px; padding: 0 18px; }
.hdr__menu { display: none; }
@media (max-width: 1180px) {
  .hdr { grid-template-columns: auto 1fr auto; }
  .hdr__nav { display: none; }
  .brand { justify-items: start; }
  .hdr__menu { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; background: var(--navy-3); border: 0; color: inherit; font-weight: 600; }
  .hdr__end { display: flex; gap: 10px; justify-content: flex-end; }
}
@media (max-width: 480px) { .hdr .btn--book { display: none; } .brand__place { display: none; } }

/* Mega panels (desktop) */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); color: var(--on-dark); padding-block: 40px 56px; 
  display: none; }
.mega.is-open { display: block; transition: opacity 180ms ease, transform 180ms var(--ease-out); @starting-style { opacity: 0; transform: translateY(-6px); } }
.mega__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.mega__cols--cars { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mega h2 { font-size: 1.375rem; margin-bottom: 14px; }
.mega h2 a { text-decoration: none; }
.mega ul { list-style: none; display: grid; gap: 2px; }
.mega li a { display: block; padding: 6px 0; text-decoration: none; color: var(--on-dark-soft); font-size: var(--t-small); line-height: 1.35; }
.mega li a:hover, .mega li a:focus-visible { color: var(--pearl); text-decoration: underline; }
.mega__foot { margin-top: 32px; display: flex; gap: 32px; flex-wrap: wrap; }

/* Mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--navy); color: var(--on-dark); overflow-y: auto; overscroll-behavior: contain; display: none; }
.sheet.is-open { display: block; transition: transform 320ms var(--ease-drawer); @starting-style { transform: translateY(-100%); } }
.sheet__top { display: flex; justify-content: space-between; align-items: center; min-height: 72px; }
.sheet__close { min-height: 46px; padding: 0 14px; background: var(--navy-3); border: 0; color: inherit; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; }
.sheet nav > ul { list-style: none; margin-top: 16px; }
.sheet nav > ul > li + li { margin-top: 2px; }
.sheet nav > ul > li { background: var(--navy-2); padding-inline: 16px; }
.sheet nav > ul > li > a, .sheet details > summary { display: flex; justify-content: space-between; align-items: center; min-height: 60px; font-family: var(--display); font-size: 1.625rem; text-decoration: none; cursor: pointer; list-style: none; }
.sheet details > summary::-webkit-details-marker { display: none; }
.sheet details[open] > summary .chev { transform: rotate(180deg); }
.sheet details ul { list-style: none; padding-bottom: 16px; columns: 2 12rem; column-gap: 24px; }
.sheet details li a { display: block; padding: 9px 0; color: var(--on-dark-soft); text-decoration: none; font-size: 1rem; break-inside: avoid; }
.sheet__actions { display: grid; gap: 10px; margin-block: 28px 40px; }

/* ---------- Stationery shapes ---------- */
.paper { background: var(--pearl); color: var(--ink); }
/* Ticket: two semicircle notches on the long edges at --notch-y */
.ticket { --r: 15px; --notch-y: 64%;
  -webkit-mask: radial-gradient(circle var(--r) at 0 var(--notch-y), #0000 97%, #000) left / 51% 100% no-repeat, /* taste-skill-ignore: mask/dot shape, not a fill */
                radial-gradient(circle var(--r) at 100% var(--notch-y), #0000 97%, #000) right / 51% 100% no-repeat; /* taste-skill-ignore: mask/dot shape, not a fill */
          mask: radial-gradient(circle var(--r) at 0 var(--notch-y), #0000 97%, #000) left / 51% 100% no-repeat, /* taste-skill-ignore: mask/dot shape, not a fill */
                radial-gradient(circle var(--r) at 100% var(--notch-y), #0000 97%, #000) right / 51% 100% no-repeat; } /* taste-skill-ignore: mask/dot shape, not a fill */
/* Perforation: a row of filled round dots */
.perf { height: 6px; background: radial-gradient(circle 3px, var(--pearl-3) 96%, #0000) 0 0 / 14px 6px repeat-x; } /* taste-skill-ignore: mask/dot shape, not a fill */
.perf--dark { background-image: radial-gradient(circle 3px, rgba(243,240,234,.4) 96%, #0000); } /* taste-skill-ignore: mask/dot shape, not a fill */
/* Slip with a zigzag tear at the bottom */
.zig { --z: 12px; padding-bottom: calc(var(--z) * 2) !important;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%; /* taste-skill-ignore: mask/dot shape, not a fill */
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%; } /* taste-skill-ignore: mask/dot shape, not a fill */
/* Back of the card: scalloped top edge */
.scallop { --s: 44px;
  -webkit-mask: radial-gradient(circle calc(var(--s) * .5) at 50% 0, #0000 97%, #000) 50% 0 / var(--s) 100% repeat-x; /* taste-skill-ignore: mask/dot shape, not a fill */
          mask: radial-gradient(circle calc(var(--s) * .5) at 50% 0, #0000 97%, #000) 50% 0 / var(--s) 100% repeat-x; } /* taste-skill-ignore: mask/dot shape, not a fill */

/* ---------- Hero: photograph + journey ticket ---------- */
.hero { position: relative; isolation: isolate; min-height: max(720px, 100svh); display: grid; align-items: end; color: var(--on-dark); background: var(--navy); }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,27,58,.62) 0, rgba(0,27,58,0) 22%, rgba(0,27,58,0) 42%, rgba(0,27,58,.78) 78%, rgba(0,27,58,.92) 100%); } /* taste-skill-ignore: neutral scrim over a photograph */
.hero__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; padding-block: 140px clamp(32px, 4vw, 56px); }
.hero__copy { grid-column: 1 / span 7; padding-bottom: 8px; }
.hero__copy .lead { margin-top: 28px; max-width: 26em; color: var(--on-dark); }
.hero__ticket { grid-column: 8 / -1; }
.caption { font-size: .8125rem; line-height: 1.4; color: var(--on-dark-soft); }
.hero .caption { position: absolute; right: var(--gutter); top: 100px; }
@media (max-width: 1023px) {
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 42vh; row-gap: 32px; }
  .hero__copy, .hero__ticket { grid-column: 1; }
  .hero__media::after { background: linear-gradient(180deg, rgba(0,27,58,.6) 0, rgba(0,27,58,0) 18%, rgba(0,27,58,.25) 34%, rgba(0,27,58,.9) 58%, var(--navy) 80%); } /* taste-skill-ignore: neutral scrim over a photograph */
  .hero__media img { height: 70%; object-position: var(--focus-m, 60% 50%); }
  .hero .caption { top: auto; bottom: auto; }
}
@media (max-width: 1023px) { .hero .caption { top: calc(70% - 30px); } }

/* Journey ticket (the live thing) */
.jt { background: var(--pearl); color: var(--ink); padding: clamp(22px, 2.4vw, 34px); position: relative; }
.jt__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.jt__head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.jt__head p { color: var(--ink-soft); font-size: var(--t-small); }
.jt__route { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; margin-top: 18px; }
.jt__line { grid-row: 1 / 3; position: relative; }
.jt__line svg { position: absolute; left: 0; top: 0; width: 28px; height: 100%; overflow: visible; }
.jt__line .trace { stroke: var(--burgundy); stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 600ms var(--ease-in-out); }
.jt.has-to .jt__line .trace { stroke-dashoffset: 0; }
.jt__line .stop { fill: var(--pearl); stroke: var(--navy); stroke-width: 2; }
.jt.has-to .jt__line .stop--to { fill: var(--burgundy); stroke: var(--burgundy); }
.fieldset-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.fld { display: grid; gap: 4px; padding-block: 12px 10px; position: relative; }
.fld input, .fld select, .fld textarea { border-bottom: 1px solid var(--field-line) !important; } /* taste-skill-ignore: form field line */ /* taste-skill-ignore: form field line / state ring */
.fld label, .fld .lbl { font-size: var(--t-small); color: var(--ink-soft); font-weight: 500; }
.fld input, .fld select, .fld textarea { width: 100%; border: 0; background: transparent; padding: 4px 0 2px; font-size: 1.1875rem; color: var(--ink); min-height: 34px; }
.fld input::placeholder, .fld textarea::placeholder { color: #5B6E83; opacity: 1; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-bottom-color: var(--slate) !important; box-shadow: 0 1px 0 0 var(--slate); } /* taste-skill-ignore: form field focus */ /* taste-skill-ignore: form field line / state ring */
.fld input[type="date"], .fld input[type="time"] { font-variant-numeric: tabular-nums; }
.jt .perf { margin: 22px calc(-1 * clamp(22px, 2.4vw, 34px)) 18px; }
.jt__foot { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.jt__foot p { font-size: var(--t-small); color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 520px) { .jt__foot { grid-template-columns: 1fr; } .jt__foot .btn { width: 100%; } }

/* ---------- Services showcase: square plate, spare text ---------- */
.plate-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; }
.plate-split__img { padding: 40px; display: grid; place-items: center; background: var(--pearl-2); }
.plate-split__img figure { width: 100%; aspect-ratio: 1; position: relative; overflow: hidden; }
.plate-split__img img { width: 100%; height: 100%; object-fit: cover; }
.plate-split__img figcaption { position: absolute; left: 0; bottom: 0; background: var(--navy); color: var(--on-dark-soft); padding: 8px 12px; font-size: .8125rem; }
.plate-split__text { padding: clamp(32px, 5vw, 80px) var(--gutter) clamp(32px, 5vw, 80px) clamp(32px, 5vw, 80px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.tabs [role="tab"] { background: none; border: 0; padding: 10px 0; font-size: 1.125rem; color: var(--ink-soft); position: relative; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--burgundy); }
.plate-split [role="tabpanel"] h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.plate-split [role="tabpanel"] p { margin-top: 32px; max-width: 34ch; }
.panel-list { margin-top: 28px; list-style: none; display: grid; gap: 2px; max-width: 30rem; }
.panel-list a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; text-decoration: none; }
.panel-list a span:last-child { color: var(--ink-soft); font-size: var(--t-small); }
.panel-list a:hover span:first-child { text-decoration: underline; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cells .btn { min-height: 72px; }
@media (max-width: 900px) {
  .plate-split { grid-template-columns: 1fr; min-height: 0; }
  .plate-split__img { padding: 16px; }
  .plate-split__text { padding: 32px var(--gutter) 48px; }
  .cells { grid-template-columns: 1fr; } .cells .btn { min-height: 60px; }
}

/* ---------- Deck (experiences) ---------- */
.deck-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.deck__card { display: grid; grid-template-rows: auto 1fr auto; min-height: 520px; color: var(--on-dark); text-decoration: none; position: relative; overflow: hidden; }
.deck__card:nth-child(1) { background: var(--navy-2); } .deck__card:nth-child(2) { background: var(--slate); } .deck__card:nth-child(3) { background: var(--navy-3); }
.deck__card figure { aspect-ratio: 4 / 3; overflow: hidden; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .deck__card:hover img { transform: scale(1.03); } }
.deck__body { padding: 28px 32px 8px; }
.deck__body h3 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.deck__body p { margin-top: 14px; color: var(--on-dark-soft); }
.deck__foot { padding: 20px 32px 32px; display: flex; justify-content: space-between; font-weight: 600; }
@media (max-width: 900px) { .deck { grid-template-columns: 1fr; } .deck__card { min-height: 0; } }

/* ---------- Itinerary slip (how it works) ---------- */
.slip-sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.slip-sec__copy { grid-column: 1 / span 5; }
.slip-sec__copy p { margin-top: 28px; max-width: 30ch; }
.slip { grid-column: 7 / span 5; background: var(--pearl); color: var(--ink); padding: 36px 36px 0; }
.slip h3 { font-family: var(--text); font-size: 1.0625rem; font-weight: 700; margin-top: 28px; }
.slip h3:first-child { margin-top: 0; }
.slip ol, .slip ul { list-style: none; margin-top: 8px; }
.row-dots { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; padding: 8px 0; font-variant-numeric: tabular-nums; }
.row-dots::before { content: ""; order: 2; height: 6px; align-self: center; background: radial-gradient(circle 1.6px, rgba(0,27,58,.45) 96%, #0000) 0 50% / 9px 6px repeat-x; } /* taste-skill-ignore: mask/dot shape, not a fill */
.row-dots > :first-child { order: 1; } .row-dots > :last-child { order: 3; color: var(--ink-soft); font-size: var(--t-small); white-space: nowrap; }
.slip__total { margin: 28px -36px 0; background: var(--navy); color: var(--pearl); min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 36px; font-weight: 600; }
@media (max-width: 900px) { .slip-sec { grid-template-columns: 1fr; row-gap: 40px; } .slip-sec__copy, .slip { grid-column: 1; } .slip { padding: 28px 22px 0; } .slip__total { margin-inline: -22px; padding-inline: 22px; } }

/* ---------- Tagged prints (fleet) ---------- */
.prints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 12px; }
.print { display: grid; text-decoration: none; color: inherit; }
.print__img { aspect-ratio: 4 / 3; background: var(--pearl-2); display: grid; place-items: center; overflow: hidden; }
.print__img img { width: 92%; height: auto; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .print:hover .print__img img { transform: translateX(6px); } }
.print__tag { min-height: 96px; padding: 12px 14px; display: grid; gap: 6px; font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.print__tag b { font-family: var(--display); font-weight: 400; font-size: 1.3125rem; line-height: 1.15; }
.print__tag span { display: flex; justify-content: space-between; gap: 10px; }
.print:nth-child(4n+1) .print__tag { background: var(--navy); color: var(--pearl); }
.print:nth-child(4n+2) .print__tag { background: var(--pearl-3); color: var(--navy); }
.print:nth-child(4n+3) .print__tag { background: var(--slate); color: var(--pearl); }
.print:nth-child(4n+4) .print__tag { background: var(--pearl-2); color: var(--navy); }
.print__tag .muted { opacity: 1; color: inherit; }
@media (max-width: 1023px) { .prints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; } }
@media (max-width: 420px) { .print__tag b { font-size: 1.125rem; } }

/* ---------- Facts row (intro) ---------- */
.intro-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.intro-row h2 { grid-column: 1 / span 6; font-size: clamp(2.75rem, 1.8rem + 3vw, 4.75rem); line-height: 1; }
.intro-row > p { grid-column: 9 / span 4; }
.facts { margin-top: 112px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.facts div { min-width: 10rem; }
.facts dt { font-family: var(--display); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1.05; font-variant-numeric: lining-nums; }
.facts dd { margin-top: 10px; color: var(--ink-soft); font-size: var(--t-small); max-width: 18em; }
@media (max-width: 900px) { .intro-row { grid-template-columns: 1fr; row-gap: 24px; } .intro-row > h2, .intro-row > p, .intro-row > div { grid-column: 1 !important; } .facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; } }

/* ---------- Reply card (CTA) ---------- */
.reply { position: relative; overflow: hidden; min-height: 80svh; display: grid; align-items: end; }
.reply__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; padding-top: var(--section); }
.reply__note { grid-column: 1 / span 4; padding-bottom: 64px; font-size: var(--t-lead); line-height: 1.45; color: var(--on-dark); }
.reply__card { grid-column: 6 / -1; background: var(--pearl); color: var(--ink); aspect-ratio: 7 / 5; transform: rotate(-2deg) translateY(60px); padding: 48px; display: grid; align-content: center; justify-items: center; text-align: center; gap: 18px; }
.reply__card h2 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); }
.reply__card p { max-width: 30em; }
.reply__card .btn { width: 100%; min-height: 56px; margin-top: 10px; }
.reply__card .alt { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 1023px) {
  .reply { min-height: 0; } .reply__inner { grid-template-columns: 1fr; row-gap: 32px; }
  .reply__note, .reply__card { grid-column: 1; } .reply__note { padding-bottom: 0; font-size: 1.25rem; }
  .reply__card { width: 92%; justify-self: center; aspect-ratio: auto; padding: 32px 22px 72px; transform: rotate(-1deg) translateY(40px); }
}

/* ---------- Footer: back of the card, curtain ---------- */
.site-footer { position: sticky; bottom: 0; z-index: 0; background: var(--navy); color: var(--on-dark); padding-block: 72px 32px; }
.card-back { background: var(--pearl); color: var(--ink); padding: 72px clamp(24px, 4vw, 64px) 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.card-back h2 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); }
.card-back__msg p { margin-top: 18px; max-width: 30em; }
.card-back__addr { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.card-back__addr ul { list-style: none; display: grid; gap: 4px; }
.card-back__addr a { display: inline-block; padding: 8px 0; font-size: 1.125rem; text-decoration: none; }
.card-back__addr a:hover { text-decoration: underline; }
.stamp { width: 96px; padding: 6px; background: var(--pearl); outline: 2px dotted var(--pearl-3); outline-offset: -2px; }
.stamp img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.card-back__nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 32px; }
.card-back__nav h3 { font-family: var(--text); font-size: var(--t-small); font-weight: 700; margin-bottom: 8px; }
.card-back__nav ul { list-style: none; }
.card-back__nav a { display: block; padding: 5px 0; font-size: var(--t-small); text-decoration: none; color: var(--ink-soft); }
.card-back__nav a:hover { color: var(--ink); text-decoration: underline; }
.imprint { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8125rem; color: var(--ink-soft); padding-top: 24px; }
.footer-name { font-family: var(--display); font-size: clamp(2.25rem, 7.2vw, 7.5rem); line-height: 1; letter-spacing: -.03em; text-align: center; margin-top: 48px; color: var(--pearl); white-space: nowrap; }
@media (max-width: 900px) { .card-back { grid-template-columns: 1fr; } .card-back__nav { grid-template-columns: 1fr 1fr; } .scallop { --s: 32px; } .footer-name { white-space: normal; } }
@media (max-height: 760px), (max-width: 900px) { .site-footer { position: relative; } }

/* ---------- Inner page heads ---------- */
.page-head { background: var(--navy); color: var(--on-dark); padding-block: 72px clamp(64px, 7vw, 112px); }
.page-head .grid { align-items: end; row-gap: 28px; }
.page-head h1 { grid-column: 1 / span 8; font-size: clamp(2.75rem, 1.6rem + 4vw, 5.5rem); }
.page-head .lead { grid-column: 9 / -1; color: var(--on-dark-soft); }
.crumbs { font-size: var(--t-small); color: var(--on-dark-soft); margin-bottom: 40px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs li { list-style: none; display: flex; gap: 10px; }
.crumbs li + li::before { content: "/"; opacity: .6; }
@media (max-width: 900px) { .page-head h1, .page-head .lead { grid-column: 1 / -1; } }

/* Photo head (experiences, service detail) */
.photo-head { position: relative; isolation: isolate; color: var(--on-dark); background: var(--navy); min-height: min(86svh, 860px); display: grid; align-items: end; }
.photo-head__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.photo-head__media img { width: 100%; height: 100%; object-fit: cover; }
.photo-head__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,27,58,.6), rgba(0,27,58,0) 26%, rgba(0,27,58,.1) 46%, rgba(0,27,58,.9) 100%); } /* taste-skill-ignore: neutral scrim over a photograph */
.photo-head .grid { padding-block: 160px clamp(40px, 5vw, 72px); align-items: end; row-gap: 32px; }
.photo-head h1 { grid-column: 1 / span 8; }
.photo-head .lead { grid-column: 1 / span 6; margin-top: 24px; }
.photo-head__aside { grid-column: 9 / -1; }
.photo-head .caption { position: absolute; right: var(--gutter); top: 100px; }
@media (max-width: 1023px) { .photo-head h1, .photo-head .lead, .photo-head__aside { grid-column: 1 / -1; } .photo-head .grid { padding-top: 48vh; } }

/* ---------- Index rows (services overview / hubs) ---------- */
.index { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; }
.index__aside { grid-column: 1 / span 4; position: sticky; top: 32px; align-self: start; }
.index__aside figure { margin-top: 28px; aspect-ratio: 1; overflow: hidden; }
.index__aside img { width: 100%; height: 100%; object-fit: cover; }
.index__aside p { margin-top: 18px; max-width: 30ch; }
.index__list { grid-column: 6 / -1; list-style: none; }
.index__list li { background: var(--pearl); }
.index__list li + li { margin-top: 6px; }
.index__list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 24px 28px; text-decoration: none; transition: background-color 180ms ease; }
.index__list a:hover { background: #FBF9F5; }
.index__list b { font-family: var(--display); font-weight: 400; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); line-height: 1.2; }
.index__list span { grid-column: 1; color: var(--ink-soft); font-size: var(--t-small); max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.index__list .arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 22px; height: 12px; }
.index-band { background: var(--pearl-2); }
.index-band + .index-band { background: var(--pearl-3); }
@media (max-width: 900px) { .index { grid-template-columns: 1fr; } .index__aside, .index__list { grid-column: 1; position: static; } .index__aside figure { aspect-ratio: 16 / 10; } .index__list a { padding: 20px 18px; } }

/* Section jump bar */
.jumpbar { background: var(--navy); color: var(--on-dark); position: sticky; top: 0; z-index: 20; }
.jumpbar ul { list-style: none; display: flex; gap: 8px 32px; overflow-x: auto; scrollbar-width: none; }
.jumpbar a { display: block; padding: 18px 0; white-space: nowrap; text-decoration: none; font-weight: 500; color: var(--on-dark-soft); }
.jumpbar a:hover, .jumpbar a[aria-current="true"] { color: var(--pearl); text-decoration: underline; text-underline-offset: .5em; }

/* ---------- Article body (service detail) ---------- */
.article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.article__toc { grid-column: 1 / span 3; position: sticky; top: 32px; align-self: start; }
.article__toc h2 { font-family: var(--text); font-size: var(--t-small); font-weight: 700; }
.article__toc ol { list-style: none; margin-top: 10px; }
.article__toc a { display: block; padding: 7px 0; color: var(--ink-soft); text-decoration: none; font-size: var(--t-small); }
.article__toc a:hover { color: var(--ink); text-decoration: underline; }
.article__body { grid-column: 4 / span 6; }
.article__body > * + * { margin-top: 20px; }
.article__body h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); margin-top: 64px; }
.article__body h2:first-child { margin-top: 0; }
.article__body h3 { font-size: 1.375rem; margin-top: 36px; }
.article__body ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; background: var(--pearl-2); padding: 20px 24px; }
.article__body ul li { padding: 8px 0 8px 22px; position: relative; }
.article__body ul li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; background: var(--burgundy); }
.article__aside { grid-column: 10 / -1; align-self: start; position: sticky; top: 32px; }
@media (max-width: 1100px) { .article__toc { display: none; } .article__body { grid-column: 1 / span 8; } .article__aside { grid-column: 9 / -1; } }
@media (max-width: 860px) { .article { grid-template-columns: 1fr; row-gap: 48px; } .article__body, .article__aside { grid-column: 1; position: static; } .article__body ul { grid-template-columns: 1fr; } }

/* Mini ticket (aside CTA) */
.mini { background: var(--navy); color: var(--on-dark); padding: 28px; }
.mini h2 { font-size: 1.625rem; }
.mini p { margin-top: 12px; color: var(--on-dark-soft); font-size: var(--t-small); }
.mini .btn { margin-top: 22px; width: 100%; }
.mini .perf { margin: 22px -28px; }

/* ---------- Fleet catalogue ---------- */
.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter button { min-height: 44px; padding: 0 16px; border: 0; background: var(--pearl-2); color: var(--ink); font-weight: 500; transition: background-color 150ms ease, color 150ms ease; }
.filter button[aria-pressed="true"] { background: var(--navy); color: var(--pearl); }
@media (hover: hover) and (pointer: fine) { .filter button[aria-pressed="false"]:hover { background: var(--pearl-3); } }
.filter-status { margin-top: 20px; color: var(--ink-soft); font-size: var(--t-small); }
.collection { padding-top: 72px; }
.collection[hidden] { display: none; }
.collection__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; margin-bottom: 32px; row-gap: 16px; }
.collection__head h2 { grid-column: 1 / span 6; }
.collection__head p { grid-column: 7 / -1; color: var(--ink-soft); }
@media (max-width: 900px) { .collection__head h2, .collection__head p { grid-column: 1 / -1; } }

/* Vehicle detail */
.stage { background: var(--pearl-2); }
.stage__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; padding-block: 48px 72px; row-gap: 32px; }
.stage__car { grid-column: 1 / span 8; }
.stage__car img { width: 100%; }
.stage__facts { grid-column: 9 / -1; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.spec div { background: var(--pearl); padding: 18px 20px; }
.spec dt { font-size: var(--t-small); color: var(--ink-soft); }
.spec dd { font-family: var(--display); font-size: 2rem; line-height: 1.1; margin-top: 4px; font-variant-numeric: lining-nums; }
.spec dd small { display: block; font-family: var(--text); font-size: var(--t-small); color: var(--ink-soft); }
@media (max-width: 900px) { .stage__car, .stage__facts { grid-column: 1 / -1; } }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 16px; }
.gallery__main { grid-column: 1 / span 9; background: var(--navy); aspect-ratio: 3 / 2; position: relative; overflow: hidden; }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 240ms ease; }
.gallery__main img.contain { object-fit: contain; background: var(--pearl-2); }
.gallery__main img.is-leaving { opacity: 0; }
.gallery__thumbs { grid-column: 10 / -1; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.gallery__thumbs button { border: 0; padding: 0; background: var(--pearl-2); aspect-ratio: 1; overflow: hidden; position: relative; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--burgundy); } /* taste-skill-ignore: form field line / state ring */
.gallery__cap { grid-column: 1 / span 9; font-size: .8125rem; color: var(--ink-soft); }
@media (max-width: 900px) { .gallery__main, .gallery__cap, .gallery__thumbs { grid-column: 1 / -1; } .gallery__thumbs { grid-template-columns: repeat(4, 1fr); } }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.features div { background: var(--pearl); padding: 28px; }
.features h3 { font-size: 1.375rem; }
.features p { margin-top: 10px; color: var(--ink-soft); font-size: var(--t-small); }
.features--dark div { background: var(--navy-2); color: var(--on-dark); }
.features--dark p { color: var(--on-dark-soft); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* Experience pieces */
.ask { background: var(--pearl); padding: 32px; }
.ask h2, .ask h3 { font-size: 1.5rem; }
.ask ul { list-style: none; margin-top: 12px; }
.ask li { padding: 10px 0 10px 24px; position: relative; }
.ask li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 8px; height: 8px; background: var(--burgundy); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps figure { aspect-ratio: 4 / 5; overflow: hidden; }
.steps img { width: 100%; height: 100%; object-fit: cover; }
.steps .tag { background: var(--navy); color: var(--on-dark); padding: 22px 24px 28px; min-height: 180px; }
.steps .tag time { font-variant-numeric: tabular-nums; color: var(--on-dark-soft); font-size: var(--t-small); }
.steps h3 { margin-top: 6px; }
.steps p { margin-top: 10px; color: var(--on-dark-soft); font-size: var(--t-small); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .steps figure { aspect-ratio: 16 / 10; } }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.details div { background: var(--pearl); padding: 28px 32px; }
.details dt { font-family: var(--display); font-size: 1.5rem; }
.details dd { margin-top: 10px; color: var(--ink-soft); }
@media (max-width: 760px) { .details { grid-template-columns: 1fr; } }
.places { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 24px; }
.places__tabs { grid-column: 1 / span 4; display: grid; align-content: start; }
.places__tabs [role="tab"] { text-align: left; background: none; border: 0; padding: 14px 0; display: grid; gap: 2px; color: var(--ink-soft); }
.places__tabs [role="tab"] b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--ink-soft); line-height: 1.15; }
.places__tabs [role="tab"][aria-selected="true"] b { color: var(--ink); }
.places__tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.places__tabs [role="tab"][aria-selected="true"] b::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--burgundy); vertical-align: middle; margin-right: 12px; }
.places__panel { grid-column: 5 / -1; }
.places__panel figure { aspect-ratio: 3 / 2; overflow: hidden; }
.places__panel img { width: 100%; height: 100%; object-fit: cover; }
.places__panel p { margin-top: 20px; max-width: 40em; font-size: var(--t-lead); line-height: 1.45; }
@media (max-width: 900px) { .places__tabs, .places__panel { grid-column: 1 / -1; } .places__tabs { grid-auto-flow: column; overflow-x: auto; gap: 24px; } .places__tabs [role="tab"] b { font-size: 1.25rem; white-space: nowrap; } }
.chapters { display: grid; gap: clamp(48px, 6vw, 96px); }
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; row-gap: 24px; }
.chapter figure { grid-column: 1 / span 7; aspect-ratio: 3 / 2; overflow: hidden; }
.chapter img { width: 100%; height: 100%; object-fit: cover; }
.chapter div { grid-column: 9 / -1; }
.chapter:nth-child(even) figure { grid-column: 6 / -1; grid-row: 1; }
.chapter:nth-child(even) div { grid-column: 1 / span 4; grid-row: 1; }
.chapter p { margin-top: 16px; color: var(--on-dark-soft); }
@media (max-width: 900px) { .chapter figure, .chapter div, .chapter:nth-child(even) figure, .chapter:nth-child(even) div { grid-column: 1 / -1; grid-row: auto; } }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.strip figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.strip figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--ink-soft); }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr; } .strip figure img { aspect-ratio: 3 / 2; } }

/* ---------- Booking (operate mode) ---------- */
.book { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 32px; align-items: start; }
.book__main { grid-column: 1 / span 7; }
.book__aside { grid-column: 9 / -1; position: sticky; top: 24px; }
@media (max-width: 1023px) { .book { grid-template-columns: 1fr; } .book__main, .book__aside { grid-column: 1; position: static; } .book__aside { order: 0; } }
.rail { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: s; }
.rail li { background: var(--navy-2); color: var(--on-dark-soft); padding: 12px 14px 14px; font-size: var(--t-small); position: relative; overflow: hidden; }
.rail li b { display: block; font-weight: 600; color: var(--on-dark); font-size: 1rem; }
.rail li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--burgundy); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-in-out); }
.rail li[data-state="done"]::after, .rail li[data-state="current"]::after { transform: scaleX(1); }
.rail li[data-state="current"] { background: var(--pearl); color: var(--ink-soft); }
.rail li[data-state="current"] b { color: var(--ink); }
@media (max-width: 600px) { .rail li { padding: 10px; } .rail li span { display: none; } .rail li b { font-size: .875rem; } }
.step { background: var(--pearl); padding: clamp(24px, 3.4vw, 48px); margin-top: 6px; }
.step[hidden] { display: none; }
.step.is-entering { animation: step-in 220ms var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.625rem); }
.step h2:focus { outline: none; }
.step > p { margin-top: 12px; color: var(--ink-soft); max-width: 40em; }
.step__fields { margin-top: 24px; display: grid; gap: 4px; }
.hint { font-size: var(--t-small); color: var(--ink-soft); }
.err { color: var(--alert); font-size: var(--t-small); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.err[hidden] { display: none; }
.fld[data-invalid="true"] input, .fld[data-invalid="true"] textarea { border-bottom-color: var(--alert) !important; box-shadow: 0 1px 0 0 var(--alert); } /* taste-skill-ignore: form field error */ /* taste-skill-ignore: form field line / state ring */
.err-summary { background: #F7E9E6; color: var(--alert); padding: 16px 20px; margin-top: 20px; }
.err-summary[hidden] { display: none; }
.err-summary h3 { font-family: var(--text); font-size: 1rem; font-weight: 700; }
.err-summary ul { margin-top: 6px; padding-left: 18px; }
.err-summary a { color: inherit; }
.step__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.step__nav .btn { min-width: 12rem; }
@media (max-width: 520px) { .step__nav { flex-direction: column-reverse; } .step__nav .btn { width: 100%; } }
.routebox { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.routebox div { background: var(--pearl-2); padding: 16px 18px; }
.routebox dt { font-size: var(--t-small); color: var(--ink-soft); }
.routebox dd { margin-top: 2px; font-weight: 600; overflow-wrap: anywhere; }
.map-fallback { margin-top: 6px; background: var(--navy-2); color: var(--on-dark-soft); padding: 18px; font-size: var(--t-small); display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; }
.map-fallback svg { width: 40px; height: 40px; }
.cars { list-style: none; margin-top: 24px; display: grid; gap: 6px; }
.car { position: relative; }
.car input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.car label { display: grid; grid-template-columns: 140px minmax(0, 1fr) 28px; gap: 20px; align-items: center; padding: 14px 18px; background: var(--pearl-2); cursor: pointer; transition: background-color 150ms ease; }
.car img { width: 140px; height: 78px; object-fit: contain; }
.car b { font-family: var(--display); font-weight: 400; font-size: 1.375rem; display: block; line-height: 1.2; }
.car span.meta { font-size: var(--t-small); color: var(--ink-soft); }
.car .check { width: 28px; height: 28px; border: 2px solid var(--slate); display: grid; place-items: center; }
.car .check svg { width: 16px; height: 16px; opacity: 0; transform: scale(.9); transition: opacity 150ms ease, transform 150ms var(--ease-out); }
.car input:checked + label { background: var(--navy); color: var(--pearl); }
.car input:checked + label .meta { color: var(--on-dark-soft); }
.car input:checked + label .check { background: var(--pearl); border-color: var(--pearl); }
.car input:checked + label .check svg { opacity: 1; transform: none; }
.car input:focus-visible + label { outline: 3px solid var(--slate); outline-offset: 3px; }
.car--none label { grid-template-columns: minmax(0, 1fr) 28px; }
@media (max-width: 560px) { .car label { grid-template-columns: 88px minmax(0, 1fr) 28px; gap: 12px; padding: 12px; } .car img { width: 88px; height: 52px; } .car b { font-size: 1.125rem; } }
.summary { background: var(--navy); color: var(--on-dark); padding: 28px; }
.summary h2 { font-size: 1.5rem; }
.summary dl { margin-top: 16px; display: grid; gap: 0; }
.summary dl div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 10px 12px; }
.summary dl div:nth-child(odd) { background: var(--navy-2); }
.summary dt { color: var(--on-dark-soft); font-size: var(--t-small); }
.summary dd { overflow-wrap: anywhere; }
.summary .empty { color: var(--on-dark-soft); font-style: italic; }
.summary .perf { margin: 22px -28px 18px; }
.summary p.small { color: var(--on-dark-soft); }
.notice { background: var(--pearl-2); padding: 18px 20px; margin-top: 24px; font-size: var(--t-small); }
.notice b { display: block; font-size: 1rem; margin-bottom: 4px; }
.check-row { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 18px; }
.check-row input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--slate); }
.done { text-align: left; }
.done .ref { display: inline-block; margin-top: 18px; background: var(--pearl-2); padding: 10px 16px; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .04em; }

/* ---------- Generic: contact rows, empty state ---------- */
.channels { list-style: none; }
.channels li { background: var(--pearl); }
.channels li + li { margin-top: 6px; }
.channels a, .channels div { display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 28px 32px; text-decoration: none; }
.channels b { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); overflow-wrap: anywhere; }
.channels span { color: var(--ink-soft); }
@media (max-width: 760px) { .channels a, .channels div { grid-template-columns: 1fr; padding: 22px 20px; } }
.empty-state { background: var(--pearl); padding: clamp(32px, 5vw, 64px); display: grid; gap: 16px; justify-items: start; }
.empty-state h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }

/* ---------- Reveal motion (one quiet entrance, content visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
.js [data-reveal] > * { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js [data-reveal].is-in > * { opacity: 1; transform: none; }
.js [data-reveal].is-in > *:nth-child(2) { transition-delay: 70ms; }
.js [data-reveal].is-in > *:nth-child(3) { transition-delay: 140ms; }
.js [data-reveal].is-in > *:nth-child(4) { transition-delay: 210ms; }
}
@media (prefers-reduced-motion: no-preference) { .hero__media img, .photo-head__media img { animation: settle 1600ms var(--ease-out) both; } }
@keyframes settle { from { transform: scale(1.045); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .hero__media img, .photo-head__media img { animation: none; }
  .mega, .sheet, .btn, .link .arrow, .jt__line .trace, .rail li::after, .gallery__main img { transition-duration: 120ms; }
  .sheet.is-open, .mega.is-open { transition: none; }
}
.hdr__menu-book { display: none !important; }
@media (max-width: 1180px) and (min-width: 481px) { .hdr__menu-book { display: inline-flex !important; } }
@media (max-width: 1180px) { .mega { display: none; } }
.arrow { width: 22px; height: 12px; flex: none; }
.panel-list .arrow, .index__list .arrow, .deck__foot .arrow { width: 22px; height: 12px; }
.deck__foot { align-items: center; gap: 16px; }
/* Curtain footer only where the whole footer fits in the viewport; otherwise it scrolls normally. */
.site-footer { position: relative; }
@media (min-width: 901px) and (min-height: 1040px) { .site-footer { position: sticky; } }
@media (max-width: 1023px) {
  .hero__media::after { background: linear-gradient(180deg, rgba(0,27,58,.55) 0, rgba(0,27,58,.05) 16%, rgba(0,27,58,.35) 30%, rgba(0,27,58,.82) 44%, var(--navy) 66%); } /* taste-skill-ignore: neutral scrim over a photograph */
  .hero__media img { height: 66%; object-position: 70% 60%; }
  .hero__inner { padding-top: 34vh; }
  .hero .caption { top: 96px; right: var(--gutter); }
}
.jt__line .base { stroke: var(--navy); stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 3 4; fill: none; }
.field-pearl .features div { background: var(--pearl-2); }
.spec dd { font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem); }
.gallery__main:has(img.contain) { background: var(--pearl-2); }
.summary-lead { font-size: var(--t-lead); line-height: 1.5; max-width: 38em; color: var(--ink); }

/* Hero headline: two lines at every width */
.hero__copy { grid-column: 1 / span 8; }
.hero__ticket { grid-column: 9 / -1; }
.hero h1 { font-size: clamp(2.5rem, .6rem + 6.2vw, 5.75rem); max-width: none; }
@media (max-width: 1023px) { .hero__copy, .hero__ticket { grid-column: 1; } }
.reply { min-height: 0; }
.reply__inner { padding-top: clamp(72px, 7vw, 112px); }
/* ---- Round 2 (Taste inspector) ---- */
:root { --t-title: clamp(1.875rem, 1.4rem + 2vw, 3.25rem); }
.page-head h1, .photo-head h1 { font-size: clamp(2.25rem, .9rem + 4.4vw, 4.75rem); grid-column: 1 / span 10; }
.photo-head .grid > div[style*="span 8"] { grid-column: 1 / span 10 !important; }
.intro-row > h2 { grid-column: 1 / span 7; }
.index__aside { position: static; }
.index__list span { font-size: var(--t-body); -webkit-line-clamp: 3; }
.index__list a { grid-template-columns: minmax(0, 1fr); }
.index__list a:hover b, .index__list a:focus-visible b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.jumpbar ul { flex-wrap: wrap; overflow: visible; }
.spec div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.spec dt { margin-top: 2px; }
.tiles-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 12px; list-style: none; }
.tiles-places li { display: grid; grid-template-rows: auto 1fr; }
.tiles-places figure { aspect-ratio: 4 / 5; overflow: hidden; }
.tiles-places img { width: 100%; height: 100%; object-fit: cover; }
.tiles-places .strip-tag { padding: 16px 18px 20px; }
.tiles-places li:nth-child(4n+1) .strip-tag { background: var(--navy); color: var(--pearl); }
.tiles-places li:nth-child(4n+2) .strip-tag { background: var(--pearl-3); }
.tiles-places li:nth-child(4n+3) .strip-tag { background: var(--slate); color: var(--pearl); }
.tiles-places li:nth-child(4n+4) .strip-tag { background: var(--pearl-2); }
.tiles-places h3 { font-size: 1.5rem; }
.tiles-places .area { font-size: var(--t-small); }
.tiles-places p { margin-top: 8px; font-size: var(--t-small); line-height: 1.5; }
@media (max-width: 1023px) { .tiles-places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles-places { grid-template-columns: 1fr; } .tiles-places figure { aspect-ratio: 3 / 2; } }
@media (max-width: 600px) {
  .page-head h1, .photo-head h1 { font-size: 2rem; }
  :root { --t-title: 1.75rem; }
  .jumpbar { position: static; }
}
@media (max-width: 420px) {
  .page-head h1, .photo-head h1 { font-size: 1.75rem; letter-spacing: -.02em; }
  :root { --t-title: 1.625rem; }
  .reply__card h2 { font-size: 1.625rem; }
}
.index__main { grid-column: 6 / -1; }
@media (max-width: 900px) { .index__main { grid-column: 1; } }
@media (max-width: 420px) { .intro-row > h2 { font-size: 1.5rem !important; } .empty-state h2 { font-size: 1.5rem; } }
/* Page head with a photograph plate */
.page-head--photo .grid { align-items: end; }
.page-head--photo h1 { grid-column: 1 / span 7; }
.page-head--photo .lead { grid-column: 1 / span 6; grid-row: 2; }
.page-head__plate { grid-column: 8 / -1; grid-row: 1 / span 2; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: calc(-1 * clamp(64px, 7vw, 112px) - 40px); position: relative; z-index: 2; }
.page-head__plate img { width: 100%; height: 100%; object-fit: cover; }
.page-head__plate figcaption { position: absolute; left: 0; bottom: 0; background: var(--navy); color: var(--on-dark-soft); font-size: .8125rem; padding: 6px 10px; }
.page-head--photo + * { padding-top: calc(var(--section) * .8); }
@media (max-width: 900px) { .page-head--photo h1, .page-head--photo .lead, .page-head__plate { grid-column: 1 / -1; grid-row: auto; } .page-head__plate { margin-bottom: 0; } }
.field-pearl .chapter p { color: var(--ink); }
.jumpbar { position: static; }
.index__list a.has-thumb { grid-template-columns: 132px minmax(0, 1fr); column-gap: 24px; align-items: center; }
.index__list a.has-thumb img { grid-row: 1 / 3; width: 132px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.index__list a.has-thumb b, .index__list a.has-thumb span { grid-column: 2; }
@media (max-width: 560px) { .index__list a.has-thumb { grid-template-columns: 88px minmax(0, 1fr); column-gap: 14px; } .index__list a.has-thumb img { width: 88px; } }
.hdr__nav a.btn { background: var(--bg); color: var(--fg); padding: 0 18px; text-decoration: none; }
.hero .caption, .photo-head .caption { background: rgba(0,27,58,.72); color: var(--pearl); padding: 4px 10px; }
/* ---- Stage 5: reflow at 320px and 200% text ---- */
.hdr { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.hdr__nav { flex-wrap: wrap; row-gap: 0; }
.hdr__end { min-width: 0; display: flex; justify-content: flex-end; }
@media (max-width: 1180px) { .hdr { grid-template-columns: minmax(0, 1fr) auto; } .brand { min-width: 0; } }
@media (max-width: 400px) { .brand__name { white-space: normal; font-size: 1.0625rem; line-height: 1.15; } .hdr__menu { padding: 0 12px; } }
.book__main, .book__aside, .step, .step__fields { min-width: 0; }
.fld input, .fld select, .fld textarea { min-width: 0; }
.fieldset-row { grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); }
.card-back :focus-visible, .reply__card :focus-visible, .jt :focus-visible, .summary .perf ~ * :focus-visible { outline-color: var(--slate); }
.summary :focus-visible, .mini :focus-visible, .deck__card:focus-visible, .field-navy :focus-visible, .field-slate :focus-visible { outline-color: var(--pearl); }
.reply__card :focus-visible { outline-color: var(--slate); }
.facts div { min-width: 0; }
@media (max-width: 400px) { .facts { grid-template-columns: 1fr; } }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: 2px solid var(--slate); outline-offset: 4px; }
ul.spec { list-style: none; }
ul.spec li { background: var(--pearl); padding: 18px 20px; display: grid; gap: 2px; }
ul.spec b { font-family: var(--display); font-weight: 400; font-size: clamp(2.25rem, 1.8rem + 1.4vw, 3rem); line-height: 1.05; }
ul.spec span { font-size: var(--t-small); color: var(--ink-soft); }
:root { --field-line: #6B7A8C; } /* 3.9:1 on pearl, 3.5:1 on pearl-2 (WCAG 1.4.11) */
.rail li[data-state="done"]::after { background: var(--pearl); }
.rail li[data-state="done"] b::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8l4 4 8-8' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8l4 4 8-8' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Stage 5 polish: hover only on hover-capable pointers; image edge outline */
@media (hover: none) {
  .index__list a:hover { background: var(--pearl); }
  .link:hover .arrow { transform: none; }
  .link:hover u { background-size: 0 1px; }
  .panel-list a:hover span:first-child, .card-back__addr a:hover, .card-back__nav a:hover, .crumbs a:hover { text-decoration: none; }
}
figure img, .print__img img:not([src*="/cards/"]) { outline: 1px solid rgb(0 0 0 / .1); outline-offset: -1px; }
.print__img img, .stage__car img, .car img { outline: 0; }
