/* Multi-page components. Every value comes from css/tokens.css. */

/* ── Page transitions: cross-document View Transitions, animate in place ── */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
.footer { view-transition-name: site-footer; }
::view-transition-group(*) { animation-duration: var(--dur-page); animation-timing-function: var(--ease-in-out); }
/* The incoming page is painted solid at once and the outgoing page fades off the top of it. A two-way
   crossfade leaves both translucent, so wherever no named photo or veil covers the screen (below a
   short hero) the previous page's photos show through for most of the transition. */
::view-transition-old(root) { animation: vt-out calc(var(--dur-page) * 0.5) var(--ease-out) both; }
::view-transition-new(root) { animation: none; }
@keyframes vt-out { to { opacity: 0; } }
/* The HD hero layer is unnamed, so it rides in the root snapshot without its veil. Hide it until the
   transition ends; the named still layer is the photo you see morph. */
html:active-view-transition .phero__img--hd { visibility: hidden; }

/* Shared venue photo (card, finder card or home stage -> venue hero): one image grows into place.
   Both snapshots crop (never stretch); the old one stays fully visible while the box morphs and the
   new one only settles in over it at the end, so it never cross-fades into a different frame. */
::view-transition-group(.shared-photo) { animation-duration: var(--dur-page); animation-timing-function: var(--ease-out); }
::view-transition-old(.shared-photo),
::view-transition-new(.shared-photo) { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
::view-transition-old(.shared-photo) { animation: none; opacity: 1; }
/* The destination image takes over in the first 40%, while the photo is still card-sized, so the crop
   difference (4:3 card vs wide hero) is invisible; the rest of the morph is the hero's own image and it
   lands with no swap. The old snapshot stays opaque underneath so nothing dips. */
::view-transition-new(.shared-photo) { animation: vt-photo-settle calc(var(--dur-page) * 0.4) var(--ease-out) both; }
@keyframes vt-photo-settle { from { opacity: 0; } to { opacity: 1; } }
/* Stacking during the transition: photo, then the hero's veil and copy fading in over it, nav on top. */
::view-transition-group(.shared-photo) { z-index: 1; }
/* object-fit: cover on a snapshot is NOT clipped by default: a 4:3 card photo covering a wide hero
   hangs ~100px below it until the swap. Clip the pair to the group box. */
::view-transition-image-pair(.shared-photo) { overflow: hidden; }
/* A hero with no matching card on the other page (or the reverse) simply fades, never hangs. */
::view-transition-old(.shared-photo):only-child { animation: vt-photo-out var(--dur-page) var(--ease-out) both; }
::view-transition-new(.shared-photo):only-child { animation: vt-photo-settle var(--dur-page) var(--ease-out) both; }
@keyframes vt-photo-out { from { opacity: 1; } to { opacity: 0; } }
::view-transition-group(.hero-layer) { z-index: 2; }
::view-transition-group(site-nav) { z-index: 4; }
::view-transition-new(.hero-layer) { animation: vt-photo-settle var(--dur-page) var(--ease-out) both; }
::view-transition-old(.hero-layer) { animation: vt-photo-out calc(var(--dur-page) * 0.6) var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* The hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* Inner pages and return visits skip the loader */
.is-return .loader { display: none; }

/* ── Inline link ── */
.inline { color: var(--color-accent-bright); border-bottom: var(--border-hair); transition: border-color var(--dur-fast); }
.inline:hover { border-color: var(--color-accent); }

/* ── Section shell ── */
.section { padding: var(--space-section-sm) var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
.section:last-of-type { padding-bottom: var(--space-section-sm); }
.shead { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-7); }
.shead__intro { font-size: var(--fs-lead); color: var(--color-text-muted); max-width: var(--measure); }
.h3 { font-family: var(--font-display); font-weight: var(--weight-light); font-size: var(--fs-h3); line-height: var(--lh-snug); }
.h4 { font-family: var(--font-display); font-weight: var(--weight-regular); font-size: var(--fs-h4); line-height: var(--lh-snug); }
.h3 em, .h4 em, .phero__title em { font-style: italic; color: var(--color-accent-bright); }
.more { margin-top: var(--space-5); }
.credit { margin-top: var(--space-3); font-size: var(--fs-label); color: var(--color-text-subtle); }
.credit a { border-bottom: var(--border-hair); }

/* ── Page hero ── */
.phero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; padding: 0 var(--gutter) var(--space-8); overflow: hidden; }
.phero__media { position: absolute; inset: 0; z-index: 0; }
.phero__media canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.phero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-drift 18s linear both; }
@keyframes hero-drift { from { transform: scale(1.06); } to { transform: scale(1); } }
/* Venue heroes arrive by a shared-photo transition: no drift (it would move mid-morph), and the
   full-size image fades in over the 1000px frame only once it has loaded. */
.phero__img--still, .phero__img--hd { animation: none; }
.phero__img--hd { opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.phero__img--hd.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .phero__img { animation: none; } }
.phero__veil { position: absolute; inset: 0; z-index: var(--z-base); pointer-events: none; background: linear-gradient(180deg, var(--color-scrim-50) 0%, var(--color-scrim-30) 25%, var(--color-scrim-70) 50%, var(--color-scrim-95) 80%); }
@media (min-width: 1024px) { .phero__veil { background: linear-gradient(90deg, var(--color-scrim-85) 0%, var(--color-scrim-50) 50%, var(--color-scrim-10) 80%), linear-gradient(180deg, var(--color-scrim-50) 0%, var(--color-scrim-0) 35%, var(--color-scrim-85) 100%); } }
.phero__content { position: relative; z-index: var(--z-raised); width: 100%; max-width: var(--max); margin: 0 auto; padding-top: 120px; }
.phero__title { text-shadow: var(--shadow-text-on-image); font-family: var(--font-display); font-weight: var(--weight-light); font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); max-width: 16ch; }
.phero__note { margin-top: var(--space-4); display: inline-block; padding: var(--space-2) var(--space-4); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); font-size: var(--fs-small); color: var(--color-accent-bright); }
.phero__row { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-5); }
.phero__sub { max-width: 46ch; font-size: var(--fs-lead-lg); color: var(--color-text); text-shadow: var(--shadow-text-on-image); }
.phero__actions { display: flex; flex-direction: column; gap: var(--space-3); }
.phero__actions .btn { width: 100%; }
@media (min-width: 640px) { .phero__actions { flex-direction: row; } .phero__actions .btn { width: auto; } }
@media (min-width: 1024px) { .phero__row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--space-7); margin-top: var(--space-6); } }

/* ── Breadcrumbs ── */
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-5); padding: 0; font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.crumbs li { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-muted); text-shadow: var(--shadow-text-on-image); }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; background: var(--color-accent); transform: rotate(45deg); }
.crumbs a { color: var(--color-text); min-height: var(--tap); display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--color-text); }
.crumbs [aria-current] { color: var(--color-accent-bright); }

/* ── Answer box (AEO) ── */
.answer { padding: var(--space-8) var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
/* Editorial, not a card: no box, no side bar, no fill. Question and answer side by side on desktop,
   facts on a hairline below. */
.answer__inner { display: grid; gap: var(--space-4) var(--space-8); }
.answer__q { font-family: var(--font-display); font-weight: var(--weight-light); font-size: var(--fs-h3); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); color: var(--color-text); max-width: 18ch; }
.answer__a { font-size: var(--fs-lead-lg); line-height: var(--lh-body); color: var(--color-text); max-width: 60ch; }
.answer__facts { display: grid; margin: var(--space-3) 0 0; grid-template-columns: 1fr; border-top: var(--border-hair); }
.answer__facts div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--space-3); align-items: baseline; padding: var(--space-3) 0; border-bottom: var(--border-hair); }
.answer__facts dt { font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-subtle); }
.answer__facts dd { margin: 0; font-family: var(--font-numeric); font-size: var(--fs-body); color: var(--color-text); }
@media (min-width: 1024px) {
  .answer__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .answer__facts { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); column-gap: var(--space-6); margin-top: var(--space-5); }
  .answer__facts div { grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-4) 0 0; border-bottom: 0; }
}

/* ── Glance tiles ── */
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-line); border: var(--border-hair); list-style: none; margin: 0; padding: 0; }
.glance li { background: var(--color-bg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); }
.glance strong { font-family: var(--font-numeric); font-weight: var(--weight-light); letter-spacing: -0.02em; font-size: var(--fs-h3); line-height: 1; color: var(--color-accent-bright); font-variant-numeric: tabular-nums; }
.glance span { font-size: var(--fs-small); color: var(--color-text-muted); }
@media (min-width: 1024px) { .glance { grid-template-columns: repeat(4, 1fr); } }

/* ── Split: copy + sticky photo stack ── */
.split { display: grid; gap: var(--space-7); }
.split__copy { display: flex; flex-direction: column; gap: var(--space-5); }
.split__copy p { font-size: var(--fs-lead); color: var(--color-text-muted); max-width: var(--measure); }
.factlist { display: grid; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.factlist li { position: relative; padding-left: var(--space-5); font-size: var(--fs-body); color: var(--color-text); }
.factlist li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--color-accent); transform: rotate(45deg); }
.stack { display: grid; gap: var(--space-3); }
.stack__item { overflow: hidden; }
.stack__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 1024px) { .split { grid-template-columns: 6fr 5fr; gap: var(--space-9); align-items: start; } .split__media { position: sticky; top: 120px; } }

/* ── Tables ── */
.tablewrap { overflow-x: auto; border: var(--border-hair); }
.tablewrap:focus-visible { outline: 1px solid var(--color-accent); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 560px; }
.table caption { text-align: left; padding: var(--space-3) var(--space-4); color: var(--color-text-subtle); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.table th, .table td { padding: var(--space-3) var(--space-4); text-align: left; border-top: var(--border-hair); vertical-align: top; }
.table thead th { font-weight: var(--weight-medium); color: var(--color-text-muted); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.table tbody th { font-family: var(--font-display); font-weight: var(--weight-regular); font-size: var(--fs-h4); color: var(--color-text); }
.table tbody th a { display: inline-flex; align-items: center; min-height: var(--tap); }
.table tbody th a:hover { color: var(--color-accent-bright); }
.table td { color: var(--color-text-muted); font-variant-numeric: tabular-nums; }

/* ── Definition list ── */
.deflist { display: grid; gap: 1px; background: var(--color-line); border: var(--border-hair); margin: 0; }
.deflist div { background: var(--color-bg); padding: var(--space-4) var(--space-5); display: grid; gap: var(--space-1); }
.deflist dt { font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-subtle); }
.deflist dd { margin: 0; color: var(--color-text); }
@media (min-width: 768px) { .deflist { grid-template-columns: 1fr 1fr; } }

/* ── Cost block ── */
.cost { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; padding: var(--space-6); border: var(--border-hair); background: var(--color-surface); }
.cost p { color: var(--color-text-muted); max-width: var(--measure); }
.cost .btn { flex: none; }
.split__copy .cost { flex-direction: column; align-items: flex-start; }
@media (min-width: 768px) { .cost { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ── Chips ── */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-5); border: var(--border-hair); border-radius: var(--radius-pill); font-size: var(--fs-small); color: var(--color-text-muted); transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast); }
@media (hover: hover) { .chip:hover { border-color: var(--color-accent); color: var(--color-text); } }

/* ── Venue cards ── */
.vgrid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .vgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }
.vcard { display: flex; flex-direction: column; gap: var(--space-4); }
.vcard__media { overflow: hidden; aspect-ratio: 4 / 3; position: relative; background: var(--color-surface); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.94); transition: filter var(--dur-slow); }
@media (hover: hover) { .vcard:hover .vcard__media img { filter: saturate(1) brightness(1); } }
.vcard__media::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--color-accent); opacity: 0; transition: opacity var(--dur-base); }
@media (hover: hover) { .vcard:hover .vcard__media::after { opacity: 0.7; } }
.vcard__name { font-family: var(--font-display); font-weight: var(--weight-light); font-size: var(--fs-h3); line-height: var(--lh-snug); }
.vcard__meta { font-size: var(--fs-small); color: var(--color-text-muted); }
.vcard__status { font-size: var(--fs-label); color: var(--color-accent-bright); }
.vcard__more { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent-bright); font-weight: var(--weight-medium); }
.vcard__more i { width: 28px; height: 1px; background: currentColor; transition: width var(--dur-base) var(--ease-out); }
@media (hover: hover) { .vcard:hover .vcard__more i { width: 44px; } }

/* ── Finder teaser ── */
.teaser { padding: var(--space-section-sm) var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
.teaser__inner { display: grid; gap: var(--space-6); padding: var(--space-7) var(--space-5); border: 1px solid var(--color-accent); background: var(--color-surface); }
.teaser__form { display: grid; gap: var(--space-5); align-items: end; }
@media (min-width: 768px) { .teaser__inner { padding: var(--space-7); grid-template-columns: 1fr 1.4fr; align-items: center; } .teaser__form { grid-template-columns: 1fr 1.2fr auto; } }

/* ── FAQ ── */
.faq { padding: var(--space-section-sm) var(--gutter) 0; max-width: var(--max); margin: 0 auto; }
.faq__list { border-top: var(--border-hair); }
.faq__item { border-bottom: var(--border-hair); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 64px; padding: var(--space-4) 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-family: var(--font-display); font-weight: var(--weight-regular); font-size: var(--fs-h4); line-height: var(--lh-snug); }
.faq__item summary i { flex: none; width: 14px; height: 14px; position: relative; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--color-accent); transition: transform var(--dur-base) var(--ease-out); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__a { padding: 0 0 var(--space-5); color: var(--color-text-muted); max-width: 70ch; }

/* ── Tabs ── */
.tabs__list { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; margin-bottom: var(--space-5); }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list button { flex: none; min-height: var(--tap); padding: 0 var(--space-5); border: var(--border-hair); border-radius: var(--radius-pill); font-size: var(--fs-small); color: var(--color-text-muted); transition: all var(--dur-fast); }
.tabs__list button[aria-selected="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.tabs__panel { display: grid; gap: var(--space-5); }
.tabs__panel figure { overflow: hidden; aspect-ratio: 3 / 2; }
.tabs__panel img { width: 100%; height: 100%; object-fit: cover; }
.tabs__panel p { color: var(--color-text-muted); font-size: var(--fs-lead); max-width: var(--measure); margin-top: var(--space-3); }
@media (min-width: 1024px) { .tabs__panel { grid-template-columns: 7fr 5fr; align-items: center; gap: var(--space-8); } }

/* ── Tick list ── */
.ticklist { display: grid; gap: 0 var(--space-6); list-style: none; margin: var(--space-5) 0 0; padding: 0; }
.ticklist li { position: relative; padding: var(--space-3) 0 var(--space-3) var(--space-5); border-bottom: var(--border-hair); font-family: var(--font-display); font-size: var(--fs-h4); }
.ticklist li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--color-accent); transform: rotate(45deg); }
.ticklist li span { display: block; font-family: var(--font-body); font-size: var(--fs-label); color: var(--color-text-subtle); letter-spacing: var(--tracking-label); text-transform: uppercase; }
@media (min-width: 768px) { .ticklist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .ticklist--cols { grid-template-columns: repeat(3, 1fr); } }

/* ── Menus ── */
.menu__grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .menu__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .menu__grid { grid-template-columns: repeat(3, 1fr); } }
.menublock { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); border-top: var(--border-hair); margin-top: var(--space-4); }
.menublock p, .menublock li { color: var(--color-text-muted); }
.menublock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }

/* ── Stations ── */
.stations { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .stations { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .stations { grid-template-columns: repeat(3, 1fr); } }
.station figure { overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: var(--space-4); }
.station img { width: 100%; height: 100%; object-fit: cover; }
.station p { color: var(--color-text-muted); margin-top: var(--space-2); }

/* ── Trust row ── */
.trust__row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); list-style: none; margin: 0; padding: var(--space-5) 0; border-top: var(--border-hair); border-bottom: var(--border-hair); font-size: var(--fs-small); color: var(--color-text-muted); }
.trust__row li { display: flex; align-items: center; gap: var(--space-3); }
.trust__row li::before { content: ""; width: 6px; height: 6px; background: var(--color-accent); transform: rotate(45deg); }

/* ── CTA band ── */
.cta { padding: var(--space-section) var(--gutter); max-width: var(--max); margin: 0 auto; text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.cta p { color: var(--color-text-muted); max-width: var(--measure); }
.cta__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }

/* ── Venue finder ── */
.finder { position: relative; min-height: 100svh; padding: 140px var(--gutter) var(--space-8); overflow: hidden; display: flex; align-items: center; }
.finder__media { position: absolute; inset: 0; }
.finder__img { width: 100%; height: 100%; object-fit: cover; }
.finder__veil { position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-scrim-95) 0%, var(--color-scrim-85) 55%, var(--color-scrim-70) 100%); }
.finder__intro .phero__title, .finder__intro .phero__sub { text-shadow: var(--shadow-text-on-image); }
.finder__inner { position: relative; z-index: var(--z-raised); width: 100%; max-width: var(--max); margin: 0 auto; display: grid; gap: var(--space-6); }
.finder__intro { display: flex; flex-direction: column; gap: var(--space-4); }
@media (min-width: 1024px) { .finder__inner { grid-template-columns: 1fr 520px; align-items: center; gap: var(--space-9); } }
.fcard { background: var(--color-scrim-85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: var(--border-hair); padding: var(--space-6) var(--space-5); display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .fcard { padding: var(--space-7); } }
.fcard__label { font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-3); font-weight: var(--weight-medium); }
.fcard__nav { display: flex; gap: var(--space-3); }
.fcard__nav .btn { flex: 1; }
.fcard__progress { display: none; gap: var(--space-2); justify-content: center; }
.fcard__progress i { width: 24px; height: 2px; background: var(--color-line); }
.fcard__progress i.is-on { background: var(--color-accent); }
.fcard__date { margin-top: var(--space-4); }
/* Phones: one step at a time */
@media (max-width: 767px) {
  .fcard.is-stepped .fcard__step { display: none; }
  .fcard.is-stepped .fcard__step.is-current { display: block; }
  .fcard.is-stepped .fcard__progress { display: flex; }
}
.stepper { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.stepper__btn { width: 56px; height: 56px; border: var(--border-hair); border-radius: var(--radius-pill); font-family: var(--font-numeric); font-size: var(--fs-h4); color: var(--color-text); transition: border-color var(--dur-fast); }
.stepper__btn:hover { border-color: var(--color-accent); }
.stepper__val { font-family: var(--font-numeric); font-weight: var(--weight-light); letter-spacing: -0.02em; font-size: var(--fs-stat); line-height: 1; color: var(--color-accent-bright); font-variant-numeric: tabular-nums; }
/* Fat-finger slider: thick track, big thumb, 44px+ hit area. Fill comes from --fill set in finder.js. */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: var(--slider-h); margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; --fill: 32%; }
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track { height: var(--slider-track); border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--color-accent) var(--fill), var(--color-line) var(--fill)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: var(--slider-thumb); height: var(--slider-thumb); margin-top: calc((var(--slider-track) - var(--slider-thumb)) / 2); border-radius: var(--radius-pill); background: var(--color-accent-bright); border: 4px solid var(--color-bg); box-shadow: 0 0 0 1px var(--color-accent); }
.range::-moz-range-track { height: var(--slider-track); border-radius: var(--radius-pill); background: var(--color-line); }
.range::-moz-range-progress { height: var(--slider-track); border-radius: var(--radius-pill); background: var(--color-accent); }
.range::-moz-range-thumb { width: var(--slider-thumb); height: var(--slider-thumb); border-radius: var(--radius-pill); background: var(--color-accent-bright); border: 4px solid var(--color-bg); box-shadow: 0 0 0 1px var(--color-accent); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--color-accent-bright); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--color-accent-bright); }
/* Scale labels sit at their true values along the track (thumb-centre maths), not evenly spaced. */
.range__scale { position: relative; height: 40px; margin-top: var(--space-1); font-family: var(--font-numeric); font-size: var(--fs-body); font-variant-numeric: tabular-nums; color: var(--color-text-muted); }
.range__scale span { position: absolute; top: 12px; left: calc(var(--slider-thumb) / 2 + (100% - var(--slider-thumb)) * var(--at)); transform: translateX(-50%); white-space: nowrap; line-height: 1; }
.range__scale span::before { content: ""; position: absolute; left: 50%; top: -12px; width: 2px; height: 8px; border-radius: 1px; background: var(--color-line); }
.range__scale span:first-child { transform: translateX(calc(var(--slider-thumb) / -2)); }
.range__scale span:first-child::before { left: calc(var(--slider-thumb) / 2); }
.range__scale span:last-child { transform: translateX(calc(-100% + var(--slider-thumb) / 2)); }
.range__scale span:last-child::before { left: auto; right: calc(var(--slider-thumb) / 2 - 1px); }
.chipset { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chipradio { position: relative; display: inline-flex; }
.chipradio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chipradio span { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-4); border: var(--border-hair); border-radius: var(--radius-pill); font-size: var(--fs-small); color: var(--color-text-muted); transition: all var(--dur-fast); }
.chipradio input:checked + span { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.chipradio input:focus-visible + span { outline: 1px solid var(--color-accent-bright); outline-offset: 2px; }
#results { scroll-margin-top: 110px; }
.results__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-6); flex-wrap: wrap; }
.gate { position: relative; margin-top: var(--space-6); display: grid; }
.gate > .gate__blur, .gate > .gate__card { grid-area: 1 / 1; }
.gate__blur { filter: blur(10px) saturate(0.6); opacity: 0.55; pointer-events: none; user-select: none; }
.gate__blur.is-open { filter: none; opacity: 1; pointer-events: auto; user-select: auto; transition: filter var(--dur-slow) var(--ease-out), opacity var(--dur-slow); }
.gate__card { position: relative; z-index: var(--z-raised); align-self: center; justify-self: center; width: min(560px, 100%); background: var(--color-surface); border: 1px solid var(--color-accent); padding: var(--space-6) var(--space-5); display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .gate__card { padding: var(--space-7); width: min(560px, 90%); } }
.gate__card p { color: var(--color-text-muted); }
.gate__form { display: grid; gap: var(--space-4); }
.gate__form.is-sending .btn { pointer-events: none; opacity: 0.85; }
.gate__form.is-sending .form__submit-label { opacity: 0; }
.gate__form.is-sending .form__spinner { opacity: 1; }
.gate.is-open { display: flex; flex-direction: column-reverse; gap: var(--space-6); }
.gate.is-open .gate__card { width: 100%; max-width: none; }
.nomatch { display: grid; gap: var(--space-4); justify-items: start; padding: var(--space-6); border: var(--border-hair); }
.nomatch p { font-size: var(--fs-lead); }
.vcard__note { font-size: var(--fs-label); color: var(--color-text-subtle); }
.vcard__note--near { color: var(--color-accent-bright); }
.results__sub { color: var(--color-text-muted); margin: calc(var(--space-4) * -1) 0 var(--space-6); max-width: var(--measure); }

/* ── Lede: plain paragraphs directly inside a section ── */
.section > p { font-size: var(--fs-lead); color: var(--color-text-muted); max-width: 68ch; }
.section > p + p { margin-top: var(--space-4); }

/* ── Enquiry modal: full screen, no borders, close at top right ── */
.emodal { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--color-bg); color: var(--color-text); overflow-y: auto; overscroll-behavior: contain; }
.emodal::backdrop { background: var(--color-bg); }
.emodal[open] { animation: emodal-in var(--dur-reveal) var(--ease-out) both; }
@keyframes emodal-in { from { opacity: 0; } to { opacity: 1; } }
.emodal__close { position: fixed; top: var(--space-4); right: var(--space-4); z-index: var(--z-raised); width: 56px; height: 56px; }
.emodal__close span { position: absolute; left: 16px; top: 50%; width: 24px; height: 1px; background: var(--color-text); }
.emodal__close span:first-child { transform: rotate(45deg); }
.emodal__close span:last-child { transform: rotate(-45deg); }
.emodal__inner { max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter) var(--space-8); display: grid; gap: var(--space-7); }
.emodal__copy { display: flex; flex-direction: column; gap: var(--space-5); }
.emodal__copy p { color: var(--color-text-muted); font-size: var(--fs-lead); max-width: var(--measure); }
.emodal__contact { display: flex; flex-direction: column; gap: var(--space-2); }
.emodal__contact a { color: var(--color-text); display: inline-flex; align-items: center; min-height: var(--tap); width: fit-content; }
@media (min-width: 1024px) { .emodal__inner { grid-template-columns: 5fr 7fr; gap: var(--space-9); padding-top: 140px; align-items: start; } }
html.modal-open, html.modal-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .emodal[open] { animation: none; } }

/* ── Timeline ── */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--color-line); margin-left: var(--space-4); }
.timeline__item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: 0 0 var(--space-6) var(--space-6); }
.timeline__item::before { content: ""; position: absolute; left: -4px; top: 0.5em; width: 7px; height: 7px; background: var(--color-accent); transform: rotate(45deg); }
.timeline__n { font-family: var(--font-numeric); font-size: var(--fs-small); font-weight: var(--weight-medium); padding-top: 0.3em; color: var(--color-accent-bright); line-height: var(--lh-snug); font-variant-numeric: tabular-nums; }
.timeline__when { font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-subtle); margin: var(--space-1) 0 var(--space-2); }
.timeline__item p:last-child { color: var(--color-text-muted); max-width: var(--measure); }
@media (min-width: 1024px) { .timeline { grid-template-columns: 1fr 1fr; column-gap: var(--space-8); border-left: 0; margin-left: 0; } .timeline__item { border-left: 1px solid var(--color-line); } }
.byline { font-size: var(--fs-small); color: var(--color-text); text-shadow: var(--shadow-text-on-image); margin-top: var(--space-4); }

/* ── Footer columns ── */
.footer__cols { display: grid; gap: var(--space-6); max-width: var(--max); margin: 0 auto var(--space-8); padding-top: var(--space-6); }
.footer__title { font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-subtle); margin-bottom: var(--space-3); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--color-text-muted); transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--color-accent-bright); }
@media (min-width: 768px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }

/* Nav current page */
.nav__links a[aria-current="page"] { color: var(--color-text); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* ── Style guide (noindex) ── */
.sg-head { display: grid; gap: var(--space-5); padding-top: 140px; }
.sg-head p { color: var(--color-text-muted); max-width: 70ch; }
.sg-head code, .sg-spec code, .sg-token code { font-family: ui-monospace, monospace; font-size: var(--fs-small); color: var(--color-accent-bright); }
.sg-rules { display: grid; gap: var(--space-3); padding-left: var(--space-5); color: var(--color-text-muted); }
.sg-group { margin-bottom: var(--space-7); }
.sg-tokens { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr); }
.sg-tokens--colour { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sg-token { display: grid; gap: var(--space-1); padding: var(--space-3); border: var(--border-hair); }
.sg-val, .sg-note { font-size: var(--fs-label); color: var(--color-text-subtle); word-break: break-all; }
.sg-swatch { height: 56px; border: var(--border-hair); }
.sg-type { color: var(--color-text); line-height: 1.1; }
.sg-bar { display: block; height: 8px; max-width: 100%; background: var(--color-accent); }
.sg-token { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.sg-ease { display: block; height: 24px; border: var(--border-hair); position: relative; }
.sg-ease i { position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: var(--radius-pill); background: var(--color-accent); }
.sg-ease:hover i { left: calc(100% - 14px); transition: left var(--dur-slow) var(--e); }
.sg-spec { border-top: var(--border-hair); padding: var(--space-6) 0; display: grid; gap: var(--space-5); }
.sg-spec__head { display: grid; gap: var(--space-2); }
.sg-spec__head p { color: var(--color-text-muted); font-size: var(--fs-small); max-width: 70ch; }
.sg-spec__demo { border: 1px dashed var(--color-line); padding: var(--space-5); }
.sg-spec__demo .section, .sg-spec__demo .answer, .sg-spec__demo .teaser, .sg-spec__demo .faq, .sg-spec__demo .cta { padding: 0; }
.sg-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

