/* =========================================================================
   ON3 — Design system
   Premium, minimal, confident. Mobile-first. Vanilla CSS, no framework.
   ========================================================================= */

/* Fraunces and Inter are no longer loaded: css/booking-skin.css sets the ON3 fonts
   (Michroma, Instrument Sans) over every page that uses this file. */

:root {
  /* Fixed brand tokens — do not change between themes. */
  --ink: #0b0b0c;
  --accent: #ff5a1f;
  --white: #ffffff;
  --on-dark: #f4f1ea;
  --on-dark-dim: rgba(244, 241, 234, 0.68);

  /* Semantic surface/text tokens — these are the ones that flip between
     light and dark. Light values are the defaults here; the dark values
     are set in the `@media (prefers-color-scheme: dark)` block below and
     mirrored in the [data-theme] override blocks so a manual toggle can
     win over system preference either direction. */
  --page-bg: #faf8f4;
  --page-bg-alt: #f6f2ea;
  --card-bg: #ffffff;
  --surface-inverse: #0b0b0c;
  --text-primary: #0b0b0c;
  --text-secondary: #26241f;
  --text-muted: rgba(11, 11, 12, 0.5);
  --text-faint: rgba(11, 11, 12, 0.35);
  --accent-text: #7a2c0d;
  --border: rgba(11, 11, 12, 0.12);
  --border-soft: rgba(11, 11, 12, 0.08);
  --color-scheme: light;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);

  color-scheme: var(--color-scheme);
}

/* System preference — applies automatically whenever the user hasn't set
   an explicit override (see [data-theme] below, which always wins). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-bg: #131210;
    --page-bg-alt: #1a1815;
    --card-bg: #201e1a;
    --surface-inverse: #322f2a;
    --text-primary: #f2efe8;
    --text-secondary: #cfcabf;
    --text-muted: rgba(242, 239, 232, 0.55);
    --text-faint: rgba(242, 239, 232, 0.35);
    --accent-text: #ffb08a;
    --border: rgba(242, 239, 232, 0.14);
    --border-soft: rgba(242, 239, 232, 0.08);
    --color-scheme: dark;
  }
}

/* Explicit user override via the theme toggle — always wins over system
   preference in either direction. */
:root[data-theme="dark"] {
  --page-bg: #131210;
  --page-bg-alt: #1a1815;
  --card-bg: #201e1a;
  --surface-inverse: #322f2a;
  --text-primary: #f2efe8;
  --text-secondary: #cfcabf;
  --text-muted: rgba(242, 239, 232, 0.55);
  --text-faint: rgba(242, 239, 232, 0.35);
  --accent-text: #ffb08a;
  --border: rgba(242, 239, 232, 0.14);
  --border-soft: rgba(242, 239, 232, 0.08);
  --color-scheme: dark;
}
:root[data-theme="light"] {
  --page-bg: #faf8f4;
  --page-bg-alt: #f6f2ea;
  --card-bg: #ffffff;
  --surface-inverse: #0b0b0c;
  --text-primary: #0b0b0c;
  --text-secondary: #26241f;
  --text-muted: rgba(11, 11, 12, 0.5);
  --text-faint: rgba(11, 11, 12, 0.35);
  --accent-text: #7a2c0d;
  --border: rgba(11, 11, 12, 0.12);
  --border-soft: rgba(11, 11, 12, 0.08);
  --color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Consistent focus styling everywhere — replaces each browser's own
   default ring (often a harsh, inconsistent blue) with one accent-colored
   outline that only appears for keyboard navigation, not on click/tap. */
button, a, input, textarea, select, [tabindex] {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  transition: background-color 0.38s var(--ease), color 0.38s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------- *
 * Buttons
 * ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.38s var(--ease), background-color 0.38s var(--ease), box-shadow 0.38s var(--ease), color 0.38s var(--ease), border-color 0.38s var(--ease);
  min-height: 48px;
}
.btn--primary {
  background: var(--text-primary);
  color: var(--page-bg);
}
.btn--primary:hover { background: var(--accent); color: var(--white); }
.btn--primary:active { transform: scale(0.98); }
.btn--primary:disabled {
  background: var(--border);
  color: var(--text-faint);
  cursor: not-allowed;
}
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--text-primary); }
.btn--on-dark {
  background: var(--accent);
  color: var(--white);
}
.btn--on-dark:hover { background: #ff7643; }
.btn--large { padding: 1.05rem 2.1rem; font-size: 1rem; width: 100%; }
@media (min-width: 640px) { .btn--large { width: auto; } }

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.32s var(--ease), background 0.32s var(--ease), color 0.32s var(--ease);
}
.theme-toggle:hover { border-color: var(--text-primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle--fixed { position: fixed; top: var(--space-4); right: var(--space-4); z-index: 50; }

/* ---------------------------------------------------------------------- *
 * Layout helpers
 * ---------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ---------------------------------------------------------------------- *
 * Site header
 * ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--page-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.42s var(--ease), background-color 0.42s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: var(--space-3);
}
.site-header__actions { display: flex; align-items: center; gap: var(--space-3); }
.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-primary);
}
.site-header .btn { padding: 0.7rem 1.4rem; min-height: 42px; font-size: 0.88rem; }

/* ---------------------------------------------------------------------- *
 * Home — hero
 * ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.32) 0%, rgba(11,11,12,0.82) 100%);
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; padding: var(--space-8) 0 var(--space-7); width: 100%; }
.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  margin-bottom: var(--space-3);
  display: block;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  max-width: 16ch;
  color: var(--on-dark);
}
.hero__sub {
  margin-top: var(--space-4);
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--on-dark-dim);
}
.hero__actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------------------------------------------------------------------- *
 * Home — sections
 * ---------------------------------------------------------------------- */

.section { padding: var(--space-8) 0; }
.section--tight { padding: var(--space-7) 0; }
.section--dark { background: var(--surface-inverse); color: var(--on-dark); }

.section__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: block;
  margin-bottom: var(--space-2);
}
.section--dark .section__eyebrow { color: var(--accent); }
.section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 20ch; }
.section__sub { margin-top: var(--space-3); max-width: 56ch; font-size: 1.05rem; color: var(--text-secondary); opacity: 0.85; }
.section--dark .section__sub { color: var(--on-dark-dim); }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Service teaser grid on home */
.teaser-grid {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 720px) { .teaser-grid { grid-template-columns: repeat(2, 1fr); } }

.teaser-card {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  color: var(--white);
  text-decoration: none;
  display: block;
  isolation: isolate;
}
.teaser-card__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.8s var(--ease);
}
.teaser-card:hover .teaser-card__img { transform: scale(1.05); }
.teaser-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0) 35%, rgba(11,11,12,0.82) 100%);
  z-index: 1;
}
.teaser-card__body { position: relative; z-index: 2; padding: var(--space-4); height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.teaser-card__name { font-size: 1.4rem; color: var(--white); }
.teaser-card__tag { margin-top: 0.35rem; font-size: 0.92rem; color: rgba(255,255,255,0.78); }

/* As seen on social — two auto-scrolling rows running in opposite directions.
   Flush with the page background in light mode, true black in dark mode. */
.social-section {
  overflow: hidden;
  background: var(--page-bg);
  color: var(--text-primary);
}
.social-carousel {
  margin-top: var(--space-5);
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 0.25rem 0 var(--space-6);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.social-carousel__track {
  display: flex;
  width: max-content;
  gap: var(--space-4);
  /* Duration scales with tile count so the on-screen speed stays the
     same as the track gets longer: 11 tiles at ~4.75s each. */
  animation: social-scroll 52s linear infinite;
}
/* Top row travels left → right */
.social-carousel__track--reverse { animation-direction: reverse; animation-duration: 63s; }
.social-carousel:hover .social-carousel__track,
.social-carousel:focus-within .social-carousel__track {
  animation-play-state: paused;
}
.social-carousel__item {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  display: block;
  border: 1px solid var(--border-soft);
  transition: transform 0.42s ease;
}
.social-carousel__item:hover { transform: translateY(-4px); }
.social-carousel__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 720px) { .social-carousel__item { width: 260px; } }
@keyframes social-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .social-carousel__track { animation: none; }
}


/* Footer — sits flush with the page background in both themes, so its text
   follows the normal theme text tokens rather than the on-dark ones. */
.site-footer { background: var(--page-bg); color: var(--text-muted); padding: var(--space-6) 0 var(--space-5); font-size: 0.88rem; }
.site-footer .container { display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); align-items: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text-primary); }
.site-footer__brand { font-family: var(--font-display); color: var(--text-primary); font-size: 1.1rem; }

/* ========================================================================
   BOOK NOW — flow engine
   ======================================================================== */

.book-shell { position: relative; min-height: 100vh; background: var(--page-bg); padding-bottom: var(--space-8); transition: background-color 0.38s var(--ease); }
.book-shell__content { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ *
 * Questionnaire backdrop — one video per space, swapped in once a
 * service is chosen. Legibility is handled in three layers: the footage
 * is softened, a theme-tinted scrim pulls it toward the page colour, and
 * the question column sits on its own frosted panel. That keeps every
 * existing text token at its normal contrast in both themes rather than
 * relying on the footage happening to be dark or light enough.
 * ------------------------------------------------------------------ */
.book-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s var(--ease);
}
.book-bg.is-active { opacity: 1; }
.book-bg__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Blur keeps the form the sharpest thing on screen; the slight scale-up
     hides the soft edge the blur leaves at the viewport boundary. */
  filter: blur(3px) saturate(0.85);
  transform: scale(1.08);
}
.book-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--page-bg) 90%, transparent) 0%,
    color-mix(in srgb, var(--page-bg) 76%, transparent) 42%,
    color-mix(in srgb, var(--page-bg) 92%, transparent) 100%
  );
}

/* The question column becomes a frosted panel while the video is running. */
.book-shell--video .flow-frame {
  margin-top: var(--space-5);
  background: color-mix(in srgb, var(--page-bg) 82%, transparent);
  backdrop-filter: blur(26px) saturate(1.1);
  -webkit-backdrop-filter: blur(26px) saturate(1.1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-l);
  box-shadow: 0 24px 70px rgba(11, 11, 12, 0.22);
}
/* The bare footage around the panel scrolls back to the top when tapped (js/app.js). */
.book-shell--video, .book-shell--video .book-shell__content { cursor: pointer; }
.book-shell--video .book-shell__content > * { cursor: auto; }
/* Without backdrop-filter the panel would be a plain translucent wash over
   moving footage, so fall back to a near-opaque surface instead. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .book-shell--video .flow-frame {
    background: color-mix(in srgb, var(--page-bg) 96%, transparent);
  }
}

.flow-frame {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-7);
}
/* Step 1 (service select) uses the same wide measure as the home page's
   service grid so the four cards render at matching size, not the narrow
   column used for the rest of the question flow. */
.flow-frame--wide { max-width: 1180px; }

.flow-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
/* The theme toggle is fixed to the viewport corner; once the frame is wide
   enough to be centred it clears the nav on its own, but below that the two
   sit on top of each other, so hold the step counter clear of it. */
@media (max-width: 760px) {
  .flow-nav { padding-right: 3rem; }
}
.flow-back {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 0.4rem 0;
}
.flow-back:hover { color: var(--text-primary); }
.flow-step-count { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.02em; }

.flow-progress {
  height: 3px;
  background: var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: var(--space-6);
}
.flow-progress__fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.55s var(--ease);
}

.flow-card {
  animation: flow-in 0.65s var(--ease);
}
/* Switching what you're doing re-renders the card in place; replaying the
   entry animation would read as a page change rather than one control. */
.flow-card--static { animation: none; }
@keyframes flow-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.flow-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--space-2);
}
.flow-title {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}
.flow-title--tight { margin-bottom: var(--space-2); }
.flow-subtitle { color: var(--text-secondary); opacity: 0.8; font-size: 0.98rem; margin-bottom: var(--space-5); max-width: 48ch; }

/* Step 1 — service select. Sized to match .teaser-grid/.teaser-card on the
   home page (same breakpoint, same aspect-ratio) so the cards read as the
   same visual element in both places. */
.service-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 720px) { .service-grid { grid-template-columns: 1fr 1fr; } }
.service-card {
  border: none;
  border-radius: var(--radius-m);
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
  cursor: pointer;
  position: relative;
  padding: 0;
  overflow: hidden;
  text-align: left;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11,11,12,0.18); }
.service-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-4); }
.service-card__name { color: var(--white); font-size: 1.25rem; }
.service-card__tagline { color: rgba(255,255,255,0.78); font-size: 0.88rem; margin-top: 0.3rem; }

/* Inputs */
.flow-input {
  width: 100%;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: border-color 0.32s var(--ease);
}
.flow-input:focus { outline: none; border-color: var(--accent); }
.flow-input--textarea { resize: vertical; min-height: 130px; }
.field-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; }
.field-note--error { color: #e5484d; }

/* Calendar (custom date picker) */
.calendar { margin-bottom: var(--space-2); }
.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.calendar__title { font-family: var(--font-display); font-size: 1.15rem; }
.calendar__nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color 0.32s var(--ease), background 0.32s var(--ease);
}
.calendar__nav:hover:not(:disabled) { border-color: var(--text-primary); }
.calendar__nav:disabled { opacity: 0.3; cursor: not-allowed; }
.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.5rem;
}
.calendar__weekdays span {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar__cell {
  aspect-ratio: 1;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: var(--card-bg);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-primary);
  transition: border-color 0.32s var(--ease), background 0.32s var(--ease), color 0.32s var(--ease);
}
.calendar__cell:hover:not(:disabled) { border-color: var(--text-primary); }
.calendar__cell--empty { background: transparent; cursor: default; }
.calendar__cell.is-today { border-color: var(--accent); font-weight: 700; }
.calendar__cell.is-selected { background: var(--accent); border-color: var(--accent); color: var(--white); }
.calendar__cell:disabled { color: var(--text-faint); cursor: not-allowed; background: transparent; }

/* Time slot picker */
.time-slot-scroll {
  max-height: 234px;
  overflow-y: auto;
  margin-bottom: var(--space-4);
  padding-right: 2px;
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent 100%);
}
.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.5rem;
}
.time-slot {
  padding: 0.75rem 0.5rem;
  min-height: 46px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-primary);
  transition: border-color 0.32s var(--ease), background 0.32s var(--ease), color 0.32s var(--ease);
}
.time-slot:hover:not(:disabled) { border-color: var(--text-primary); }
.time-slot.is-selected { background: var(--accent); border-color: var(--accent); color: var(--white); }
.time-slot:disabled { color: var(--text-faint); cursor: not-allowed; opacity: 0.55; }

.contact-form { display: flex; flex-direction: column; gap: 0.7rem; }

/* Actions */
.flow-actions { margin-top: var(--space-5); }

.link-edit {
  margin-top: var(--space-4);
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

.price-block {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--surface-inverse);
  color: var(--on-dark);
  border-radius: var(--radius-l);
}
.price-block__eyebrow { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-dim); }
.price-block__amount { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3rem); margin-top: 0.2rem; }
.price-block__note { margin-top: var(--space-2); color: var(--on-dark-dim); font-size: 0.92rem; max-width: 42ch; }
.price-breakdown { list-style: none; margin: var(--space-4) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid rgba(244,241,234,0.16); display: flex; flex-direction: column; gap: 0.55rem; }
.price-breakdown li { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--on-dark-dim); gap: var(--space-3); }
.price-block__gst { margin-top: var(--space-4); font-size: 0.78rem; color: rgba(244,241,234,0.45); }

/* Confirmation */
.confirmation { text-align: center; padding: var(--space-7) 0; }
.confirmation__mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto var(--space-4);
}
.confirmation .flow-subtitle { margin-left: auto; margin-right: auto; }
.confirmation .btn { margin-top: var(--space-5); }

/* ---------------------------------------------------------------------- *
 * Book Now — configure screen
 * One screen holds the date, start time, hours slider, qualifiers and
 * add-on toggles, with the price updating live in the sticky bottom bar.
 * ---------------------------------------------------------------------- */

.config-section { margin-top: var(--space-5); }
.config-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}
.config-hint {
  font-size: 0.86rem;
  color: var(--text-secondary);
  opacity: 0.8;
  line-height: 1.5;
  margin: -0.4rem 0 0.8rem;
  max-width: 52ch;
}
/* Caption under a control, describing the current selection. */
.config-caption {
  font-size: 0.86rem;
  color: var(--text-secondary);
  opacity: 0.8;
  line-height: 1.5;
  margin-top: 0.6rem;
}
/* The slot picker carries its own trailing gap for the old stacked layout;
   inside a config section the section margin already provides it. */
.config-section .time-slot-scroll { margin-bottom: 0; }

/* Hours slider */
.hours-slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 30px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.hours-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--border) var(--fill, 0%));
}
.hours-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card-bg);
  box-shadow: 0 2px 10px rgba(11, 11, 12, 0.28);
}
.hours-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--border) var(--fill, 0%));
}
.hours-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card-bg);
  box-shadow: 0 2px 10px rgba(11, 11, 12, 0.28);
}
.hours-slider:focus-visible { outline: none; }
.hours-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent);
}
.hours-slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent);
}
.hours-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-faint);
}
.hours-readout {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
}

/* Toggle rows — add-ons and yes/no qualifiers */
.toggle-list { display: flex; flex-direction: column; gap: 0.5rem; }
.toggle-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  text-align: left;
  padding: 0.85rem var(--space-3) 0.85rem var(--space-4);
  min-height: 56px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.32s var(--ease), background 0.32s var(--ease);
}
.toggle-row:hover { border-color: var(--text-primary); }
.toggle-row.is-on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card-bg));
}
.toggle-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.toggle-row__label { font-size: 0.96rem; font-weight: 500; }
.toggle-row__hint { font-size: 0.8rem; line-height: 1.45; color: var(--text-secondary); opacity: 0.75; }
.toggle-row__meta { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.toggle-row.is-on .toggle-row__meta { color: var(--accent-text); }

.switch {
  flex-shrink: 0;
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.32s var(--ease);
}
.toggle-row.is-on .switch { background: var(--accent); }
.switch__dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: 0 1px 3px rgba(11, 11, 12, 0.3);
  transition: transform 0.32s var(--ease), background 0.32s var(--ease);
}
.toggle-row.is-on .switch__dot { transform: translateX(18px); background: var(--white); }

/* Segmented control — single-choice qualifiers that move the price */
.segment { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.segment__opt {
  padding: 0.6rem 0.95rem;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.32s var(--ease), background 0.32s var(--ease), color 0.32s var(--ease);
}
.segment__opt:hover { border-color: var(--text-primary); }
.segment__opt.is-selected { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Optional project note, collapsed by default */
.note-toggle {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-text);
  cursor: pointer;
}
.note-toggle::after { content: ' +'; }
.note-toggle.is-open::after { content: ' –'; }
.note-field { margin-top: var(--space-3); }
.note-field .flow-input--textarea { min-height: 110px; }

/* Sticky live-price bar. The label restates the classification so the
   customer knows whether this books on the spot before they commit. */
.config-bar {
  position: sticky;
  bottom: var(--space-3);
  z-index: 5;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: 0 12px 34px rgba(11, 11, 12, 0.16);
}
.config-bar__text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.config-bar__amount { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.config-bar__note { font-size: 0.78rem; color: var(--text-muted); }
.config-bar__cta { flex-shrink: 0; }

/* Contact-step recap of what's being booked */
.recap {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--page-bg-alt);
}
.recap__line { font-size: 0.92rem; color: var(--text-secondary); }
.recap__price { margin-top: var(--space-2); font-family: var(--font-display); font-size: 1.6rem; color: var(--text-primary); }
.recap .link-edit { margin-top: var(--space-2); }

/* ---------------------------------------------------------------------- *
 * Utility responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 480px) {
  .container { padding: 0 var(--space-3); }
  .price-block { padding: var(--space-4); }
  .config-bar { padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3); }
  .config-bar__amount { font-size: 1.3rem; }
  .config-bar__cta { padding: 0.8rem 1.1rem; font-size: 0.86rem; }
}

/* ---------------------------------------------------------------------- *
 * The ON3 Archive — a bank of pre-recorded camera feeds
 * Always a dark monitor wall, in either theme. Labels read REC'D, never
 * LIVE: this is archive footage, shared with permission.
 * ---------------------------------------------------------------------- */

.archive-bank {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: var(--space-6);
  padding: 14px;
  border-radius: 22px;
  background: #0f0d0b;
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.archive-feed {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 18px / 15px;
  overflow: hidden;
  background: #050403;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.08);
  transition: transform 0.55s var(--ease-out, ease), box-shadow 0.42s;
}
.archive-feed:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.2); }
.archive-feed:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.archive-feed img,
.archive-feed video,
.archive-view__screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.06) sepia(0.12);
}
.archive-feed:hover video { filter: saturate(0.95) contrast(1.04); }

/* Scanlines and a soft tube vignette over every screen */
.archive-feed::after,
.archive-view__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.6));
}

.archive-feed__cam,
.archive-feed__tc {
  position: absolute;
  z-index: 2;
  font: 500 0.68rem/1 ui-monospace, 'SFMono-Regular', Menlo, monospace;
  letter-spacing: 0.1em;
  color: #f4ead6;
  text-shadow: 0 1px 2px #000;
  text-align: left;
}
.archive-feed__cam { left: 12px; top: 12px; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.archive-feed__tc { right: 12px; bottom: 12px; opacity: 0.85; }

/* The larger view */
.archive-view {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #0f0d0b;
  color: #f4f1ea;
}
.archive-view::backdrop { background: rgba(6, 5, 4, 0.78); backdrop-filter: blur(4px); }
html.archive-open { overflow: hidden; }
.archive-view__screen { position: relative; aspect-ratio: 16 / 9; max-height: calc(100dvh - 180px); width: 100%; background: #050403; }
.archive-view__screen .archive-feed__cam { left: 18px; top: 18px; font-size: 0.78rem; }
.archive-view__screen .archive-feed__tc { right: 18px; bottom: 16px; font-size: 0.78rem; }
.archive-view__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: 18px 22px;
}
.archive-view__title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.archive-view__line { margin-top: 4px; font-size: 0.9rem; color: var(--on-dark-dim); }
.archive-view__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.archive-view__nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.25);
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.archive-view__nav:hover { border-color: #f4f1ea; }
.archive-view .btn--ghost { color: #f4f1ea; border-color: rgba(244, 241, 234, 0.3); }
/* The view is dark in both themes, so its main button is always light. */
.archive-view .btn--primary { background: #f4f1ea; color: #0b0b0c; border-color: #f4f1ea; }
.archive-view .btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 820px) {
  .archive-bank { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; border-radius: 16px; }
  .archive-feed { border-radius: 12px / 10px; }
  .archive-feed__cam { left: 8px; top: 8px; font-size: 0.58rem; }
  .archive-feed__tc { right: 8px; bottom: 8px; font-size: 0.58rem; }
  .archive-view { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; }
  .archive-view__bar { flex-direction: column; align-items: stretch; }
  .archive-view__actions { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr) auto; }
  .archive-view__actions .btn { white-space: nowrap; justify-content: center; }
  .archive-feed__cam { max-width: calc(100% - 16px); }
}
