/* ============================================================
   VISSOO ONE-PAGE EXTENSIONS
   Additions for the single-page layout and booking page.
   Loads AFTER vissoo-site.css.
   ============================================================ */

/* ------------------------------------------------------------
   SEGMENTED NAV — "connected segments as menu items"
   A single pill with hairline-divided segments. Active segment
   highlights as the user scrolls (scroll-spy).
   ------------------------------------------------------------ */

.nav-seg {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav-seg-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: var(--container-full);
  margin-inline: auto;
  padding-inline: var(--margin-x);
  padding-block: var(--space-3);
}
.nav-seg-inner .seg-pill { margin-inline: auto; }

.nav-seg .wordmark {
  font-size: 1.5rem;
  color: var(--color-martinique);
}

/* The connected pill. Single container, segments inside. */
.seg-pill {
  justify-self: center;
  display: inline-flex;
  align-items: stretch;
  background: var(--color-surface-tint);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
  position: relative;
}

.seg-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--color-body-on-white);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color var(--duration-snappy) var(--ease-out),
              background var(--duration-default) var(--ease-out);
  z-index: 1;
  white-space: nowrap;
}

.seg-link::after {
  /* hairline divider between segments */
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  right: 0;
  width: 1px;
  background: rgba(46, 44, 68, 0.22);
  pointer-events: none;
}
.seg-link:last-of-type::after { display: none; }

.seg-link:hover {
  color: var(--color-martinique);
  opacity: 1;
}

.seg-link.is-active {
  background: var(--color-martinique);
  color: var(--color-white);
  box-shadow: 0 1px 2px rgba(46, 44, 68, 0.12);
}
.seg-link.is-active::after { display: none; }
/* Keep dividers visible on segments adjacent to the active pill —
   the active pill already has its own filled background, so a hairline
   to its left reads cleanly and avoids the perceived "missing" divider
   between buttons like Work and Process when Process is selected. */

.seg-num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-mono-loose);
  text-transform: uppercase;
  color: inherit;
  opacity: 0.55;
  margin-right: var(--space-2);
}
.seg-link.is-active .seg-num { opacity: 0.7; }

.nav-seg-cta {
  font-size: 0.8125rem;
  height: 40px;
  padding-inline: var(--space-4);
}

/* Mobile: drop the pill, show a burger menu */
.nav-seg-burger {
  display: none;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.nav-seg-burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--color-martinique);
}

@media (max-width: 1024px) {
  .seg-pill { display: none; }
  .nav-seg-burger { display: inline-flex; }
}
@media (max-width: 540px) {
  .nav-seg-cta { display: none; }
}

/* Mobile menu sheet (slide-down). Hidden by default. */
.nav-seg-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-white);
  padding: var(--space-8) var(--margin-x);
  display: none;
  flex-direction: column;
  gap: var(--space-6);
}
.nav-seg-sheet[data-open="true"] { display: flex; }
.nav-seg-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-seg-sheet-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-12);
}
.nav-seg-sheet-list a {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  letter-spacing: -0.035em;
  color: var(--color-martinique);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}
.nav-seg-sheet-list a .seg-num {
  font-size: 0.75rem;
  opacity: 0.45;
}
.nav-seg-sheet-cta {
  margin-top: auto;
}

/* ------------------------------------------------------------
   SECTION SCROLL-MARGINS (so anchor targets sit below sticky nav)
   ------------------------------------------------------------ */
section[id] { scroll-margin-top: 80px; }

/* ------------------------------------------------------------
   CONNECTED SEGMENT TRANSITIONS — the "stitched" feel
   between sections on the one-pager. A hairline tick row that
   echoes the nav, sitting between alternating surfaces.
   ------------------------------------------------------------ */
.seg-tick {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-3);
  border-block: 1px solid var(--color-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-mono-loose);
  text-transform: uppercase;
  color: var(--surface-body);
}
.seg-tick-step { display: flex; gap: var(--space-3); align-items: center; }
.seg-tick-step .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-coral);
  display: inline-block;
}
[data-surface="martinique"] .seg-tick { border-color: rgba(255,255,255,0.12); }
[data-surface="coral"] .seg-tick { border-color: rgba(46,44,68,0.20); }

/* ------------------------------------------------------------
   SPECTRUM PLAYER — 16:9 placeholder that swaps scenes as the
   user clicks each tier on the dial above.
   ------------------------------------------------------------ */

.spectrum-player {
  padding-block: 0 var(--space-24);
  border-top: 0;
}

/* Cinematic 16:9 viewfinder. Empty by design — the timeline cards
   above carry the per-tier copy; each tier only changes the gradient
   so it's clear the placeholder is responding to the selection. */
.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
}

.player-stage::after {
  display: none;
}

.player-scenes {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.player-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(var(--space-4), 2.6vw, var(--space-8));
  color: var(--color-white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms var(--ease-out), visibility 0s linear 500ms;
}
.player-scene.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms var(--ease-out), visibility 0s linear 0s;
}

/* Each scene is fully covered by its media (image or video).
   The stage itself keeps a Martinique background as a load fallback. */
.player-scene[data-tier="imagine"] { color: var(--color-martinique); }

/* Top row — meta */
.scene-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-mono-loose);
  text-transform: uppercase;
  color: inherit;
  opacity: 0.7;
}
.scene-top .left { display: inline-flex; gap: var(--space-3); align-items: center; }
.scene-top .rec {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-coral);
}
.player-scene[data-tier="imagine"] .scene-top .rec { background: var(--color-martinique); }

/* Center — name + tagline + description */
.scene-body {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 52ch;
  min-height: 0;
}
.scene-tagline {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.9375rem, 1.4vw, 1.1875rem);
  line-height: 1.25;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.82;
  margin: 0;
  order: 2;
}
.scene-description {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.8125rem, 0.95vw, 0.9375rem);
  line-height: 1.5;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.72;
  margin: var(--space-2) 0 0;
  max-width: 50ch;
  order: 3;
  text-wrap: pretty;
}
.scene-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.625rem, 3.4vw, 2.625rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: inherit;
  margin: 0;
  order: 1;
}
.player-scene[data-tier="imagine"] .scene-title em,
.player-scene[data-tier="origin"] .scene-title em,
.scene-title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.player-scene[data-tier="imagine"] .scene-title em { color: var(--color-white); }
.player-scene[data-tier="origin"] .scene-title em,
.player-scene[data-tier="pulse"] .scene-title em,
.player-scene[data-tier="drift"] .scene-title em,
.player-scene[data-tier="rise"] .scene-title em,
.player-scene[data-tier="twin"] .scene-title em {
  color: var(--color-coral);
}

/* Bottom row — chapter strip */
.scene-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
}
.scene-foot .scene-ai {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-mono-loose);
  text-transform: uppercase;
  opacity: 0.7;
}

/* Play button (decorative — this is a placeholder) */
.scene-play {
  position: absolute;
  right: clamp(var(--space-6), 3vw, var(--space-12));
  bottom: clamp(var(--space-6), 3vw, var(--space-12));
  width: clamp(56px, 6vw, 80px);
  height: clamp(56px, 6vw, 80px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--duration-default) var(--ease-out),
              opacity var(--duration-snappy) var(--ease-out);
  z-index: 2;
}
.player-scene[data-tier="imagine"] .scene-play {
  background: var(--color-martinique);
}
.scene-play::after {
  content: "";
  width: 0; height: 0;
  border-left: 14px solid var(--color-martinique);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.player-scene[data-tier="imagine"] .scene-play::after {
  border-left-color: var(--color-white);
}
.scene-play:hover { transform: scale(1.05); opacity: 0.92; }

/* Big diagonal grid of tier name as ambient backdrop */
.scene-bg-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(10rem, 18vw, 15rem);
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
  text-transform: lowercase;
}
.player-scene[data-tier="imagine"] .scene-bg-name { color: rgba(46,44,68,0.08); }
.player-scene > * { position: relative; z-index: 1; }
.player-scene > .scene-bg-name { z-index: 0; }
.player-scene > .scene-play { z-index: 2; }
.player-scene > .scene-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

/* Chapter dots strip below the stage. Width matches the stage so the
   dots align flush-left under the player and the prev/next arrows sit
   flush-right under it. */
.player-strip {
  margin-top: var(--space-6);
  margin-inline: auto;
  max-width: 1080px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.player-strip-dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  justify-content: flex-start;
}
.player-nav {
  display: inline-flex;
  gap: var(--space-2);
  margin-left: auto;
  flex: 0 0 auto;
}

/* Mobile: stack the nav arrows below the dots so they never overlap. */
@media (max-width: 640px) {
  .player-strip { gap: var(--space-3); }
  .player-strip-dots { flex: 1 1 100%; justify-content: center; }
  .player-nav { flex: 1 1 100%; margin-left: 0; justify-content: center; }
}
.player-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: 0;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-mono-loose);
  text-transform: uppercase;
  color: var(--color-body-on-white);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: color var(--duration-snappy) var(--ease-out),
              background var(--duration-snappy) var(--ease-out);
  white-space: nowrap;
}
.player-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border-subtle);
  flex: 0 0 8px;
  transition: background var(--duration-snappy) var(--ease-out),
              transform var(--duration-snappy) var(--ease-out);
}
.player-dot:hover { color: var(--color-martinique); }
.player-dot.is-active {
  color: var(--color-martinique);
  background: var(--color-surface-tint);
}
.player-dot.is-active::before {
  background: var(--color-coral);
  transform: scale(1.2);
}

.player-nav {
  display: inline-flex;
  gap: var(--space-2);
}
.player-nav button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border-subtle);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-martinique);
  transition: background var(--duration-snappy) var(--ease-out);
}
.player-nav button:hover { background: var(--color-surface-tint); }
.player-nav svg { width: 14px; height: 14px; }
.player-nav button { width: 40px; height: 40px; }

/* ------------------------------------------------------------
   DIAL — detailed timeline cards
   When .dial-tiers has the --detailed modifier each tier card
   shows: name, italic tagline, body description, deliverable line,
   and AI usage badge. Rows are subgrid-aligned so the deliverable
   and AI badges sit on the same baseline across all six columns,
   regardless of how long each description wraps.
   Row map (parent grid):
     1 connector dot   ·   2 name   ·   3 tagline
     4 description (1fr — absorbs wrap variance)
     5 deliverable     ·   6 AI badge
   ------------------------------------------------------------ */
.dial-tiers--detailed {
  grid-template-rows: auto auto auto 1fr auto auto;
  gap: var(--space-6) var(--space-4);
}

.dial-tiers--detailed .dial-tier {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  row-gap: 0;
}

.dial-tiers--detailed .dial-tier a {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  row-gap: var(--space-2);
  padding: var(--space-6) var(--space-4) var(--space-4);
}

.dial-tiers--detailed .dial-tier a::before {
  grid-row: 1;
  margin-bottom: var(--space-4);
}

.dial-tiers--detailed .dial-name {
  grid-row: 2;
  margin: 0;
  font-size: 1.375rem;
}

.dial-tiers--detailed .dial-tag {
  grid-row: 3;
  margin: 0;
  min-height: 0;
  font-size: 0.9375rem;
  align-self: start;
}

.dial-tiers--detailed .dial-desc {
  grid-row: 4;
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--surface-body);
  margin: var(--space-2) 0 0;
  /* balance distributes words evenly across every line, so the
     rendered text block reads at a consistent visual width across
     all six tier cards. pretty only balances the final line. */
  text-wrap: balance;
  hyphens: none;
  align-self: start;
}

.dial-tiers--detailed .dial-deliverable {
  grid-row: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: var(--space-3) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-subtle);
}
.dial-tiers--detailed .dial-deliverable-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-mono-loose);
  text-transform: uppercase;
  color: var(--surface-body);
}
.dial-tiers--detailed .dial-deliverable-value {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--surface-structural);
  letter-spacing: -0.005em;
  /* Authors can split the deliverable across two lines by putting a
     literal newline between phrases (e.g. "Static set\nMulti-format").
     pre-line keeps spaces collapsed but honors hard line breaks. */
  white-space: pre-line;
}

.dial-tiers--detailed .dial-ai {
  grid-row: 6;
  margin: var(--space-2) 0 0;
  color: var(--color-coral);
  font-weight: 600;
}

/* Mobile: drop subgrid; let each card size to its own content
   while horizontally scroll-snapping (parent behavior unchanged). */
@media (max-width: 900px) {
  .dial-tiers--detailed {
    grid-template-rows: none;
    gap: var(--space-4);
  }
  .dial-tiers--detailed .dial-tier,
  .dial-tiers--detailed .dial-tier a {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }
  .dial-tiers--detailed .dial-deliverable {
    margin-top: auto;
  }
}
/* Make dial tiers feel clickable */
.dial-tier { cursor: pointer; }
.dial-tier a { cursor: pointer; }
.dial-tier.is-active a::before {
  background: var(--color-coral);
  transform: scale(1.25);
}
.dial-tier.is-active .dial-name { color: var(--color-coral); }

/* Mobile prev/next chrome for the tier-card scroller.
   Hidden by default; shown only at ≤640px (true mobile),
   so iPad/desktop never see it. */
.dial-nav { display: none; }

@media (max-width: 640px) {
  .dial-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-inline: var(--margin-x);
    margin-top: var(--space-6);
  }
  .dial-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border-subtle);
    background: var(--color-white);
    color: var(--color-martinique);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  .dial-nav-btn:hover { border-color: var(--color-martinique); }
  .dial-nav-btn:active { background: var(--color-martinique); color: var(--color-white); border-color: var(--color-martinique); }
  .dial-nav-btn svg { width: 16px; height: 16px; }
  .dial-nav-hint {
    color: var(--surface-body);
    letter-spacing: var(--tracking-mono-loose);
    text-transform: uppercase;
  }
}

@media (max-width: 540px) {
  .player-stage { aspect-ratio: 16 / 9; }
  .scene-title { font-size: clamp(1.625rem, 8vw, 2.5rem); }
  .scene-tagline { font-size: 0.9375rem; }
  .scene-description { font-size: 0.8125rem; line-height: 1.5; }
  .player-stage::after { inset: 8px; }
}

/* ------------------------------------------------------------
   BOOKING PAGE — refined form
   ------------------------------------------------------------ */

.book-page {
  padding-block: clamp(2.5rem, 6vh, 4.5rem) var(--space-12);
}

.book-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: start;
}

/* Left rail */
.book-rail { position: sticky; top: 96px; }
.book-rail .eyebrow {
  color: var(--color-coral);
  display: block;
  margin-bottom: var(--space-4);
}
.book-rail-headline {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: var(--color-martinique);
  margin-bottom: var(--space-6);
}
.book-rail-headline em.accent { color: var(--color-coral); }

.book-rail-sub {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-body-on-white);
  margin-bottom: var(--space-10);
  max-width: 38ch;
}

.book-promises {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-block: 1px solid var(--color-border-subtle);
}
.book-promise {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-martinique);
}
.book-promise::before {
  content: "—";
  font-family: var(--font-mono);
  color: var(--color-coral);
  line-height: inherit;
}
.book-promise em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--color-coral);
  letter-spacing: 0;
}

.book-rail-foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.book-rail-foot a, .book-rail-foot p {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-martinique);
  text-decoration: none;
}
.book-rail-foot a:hover { color: var(--color-coral); }
.book-rail-foot .caption {
  display: block;
  color: var(--color-body-on-white);
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .book-rail { position: static; }
}

/* Form */
.book-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.book-form[hidden],
.book-confirm[hidden] { display: none !important; }

.book-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.book-fieldset + .book-fieldset {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
}
.book-fieldset legend {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 0;
  margin-bottom: var(--space-2);
  width: 100%;
}
.book-fieldset legend + .book-field,
.book-fieldset legend + .book-row-grid { margin-top: 0; }
.book-fieldset legend .step-num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: var(--tracking-mono-loose);
  text-transform: uppercase;
  color: var(--color-coral);
}
.book-fieldset legend .step-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-martinique);
}
.book-fieldset legend .step-rule { display: none; }

/* Two-column grid for text inputs */
.book-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
@media (max-width: 640px) {
  .book-row-grid { grid-template-columns: 1fr; }
}

.book-field { display: flex; flex-direction: column; gap: var(--space-2); }
.book-field label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--tracking-mono-loose);
  text-transform: uppercase;
  color: var(--color-martinique);
}
.book-field label .req { color: var(--color-coral); margin-left: 2px; }
.book-field input,
.book-field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  background: transparent;
  color: var(--color-martinique);
  border: 0;
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--space-3) 0;
  outline: none;
  transition: border-color var(--duration-default) var(--ease-out);
  width: 100%;
  border-radius: 0;
}
.book-field input::placeholder,
.book-field textarea::placeholder {
  color: var(--color-body-on-white);
  opacity: 0.55;
}
.book-field input:focus,
.book-field textarea:focus {
  border-bottom-color: var(--color-coral);
}
.book-field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

/* Radio rows — real radio dots, vertical list */
.book-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  border: 0;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  background: transparent;
  width: 100%;
  max-width: none;
}
.book-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  height: auto;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-martinique);
  cursor: pointer;
  border-radius: 0;
  background: transparent;
  transition: none;
  white-space: nowrap;
}
.book-option input {
  position: static;
  opacity: 1;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  border: 1.5px solid var(--color-border-subtle);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--duration-snappy) var(--ease-out);
}
.book-option input:checked {
  border-color: var(--color-coral);
}
.book-option input:checked::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-coral);
  transform: translate(4px, 0);
}
.book-option:hover { color: var(--color-martinique); }
.book-option:has(input:checked) {
  background: transparent;
  color: var(--color-martinique);
}

/* Service checkboxes — card grid */
.book-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 640px) {
  .book-services { grid-template-columns: repeat(2, 1fr); }
}

.book-service {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-martinique);
  background: transparent;
  transition: none;
}
.book-service input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.book-service-check {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  border: 1.5px solid var(--color-border-subtle);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background var(--duration-snappy) var(--ease-out),
              border-color var(--duration-snappy) var(--ease-out);
}
.book-service-check svg {
  width: 11px; height: 11px;
  stroke: var(--color-white);
  stroke-width: 2.5;
  fill: none;
  opacity: 0;
  transition: opacity var(--duration-snappy) var(--ease-out);
}
.book-service:hover {
  border-color: transparent;
}
.book-service:has(input:checked) {
  border-color: transparent;
  background: transparent;
}
.book-service:has(input:checked) .book-service-check {
  background: var(--color-coral);
  border-color: var(--color-coral);
}
.book-service:has(input:checked) .book-service-check svg { opacity: 1; }

/* Submit */
.book-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-6);
  padding-top: 0;
  border-top: 0;
  flex-wrap: wrap;
}
.book-submit {
  height: 52px;
  padding-inline: var(--space-8);
  font-size: 0.9375rem;
  font-weight: 500;
  gap: var(--space-3);
}
.book-submit-fine {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-mono-loose);
  text-transform: uppercase;
  color: var(--color-body-on-white);
  max-width: 36ch;
  line-height: 1.5;
}

/* Confirmation panel */
.book-confirm {
  text-align: center;
  padding-block: var(--space-16);
}
.book-confirm .eyebrow {
  color: var(--color-coral);
  display: block;
  margin-bottom: var(--space-6);
}
.book-confirm h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-6);
}
.book-confirm h2 em.accent { color: var(--color-coral); }
.book-confirm p {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 44ch;
  margin: 0 auto;
  color: var(--color-body-on-white);
}

/* ------------------------------------------------------------
   HERO — LIGHT-SPEED MOTION LINES
   Coral horizontal streaks behind the headline. Subtle by default,
   toggle in the hero corner to switch off.
   ------------------------------------------------------------ */


/* ============================================================
   HERO GALLERY — vertical motion gallery on the right of the
   hero text. Four selectable layouts cycled via the toggle in
   the bottom-right of the hero. Each .hg-card is a 9:16 video
   placeholder; brands drop in <video> tags later.
   ============================================================ */

.hero { overflow: hidden; position: relative; }

/* Two-column hero grid at desktop. Text left, gallery right. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: stretch;
}
.hero-content { min-width: 0; }

/* Gallery viewport — fixed height, content flows past it; mask
   fades the top/bottom edges so cards appear/disappear softly. */
.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  width: 100%;
  height: clamp(420px, 56vh, 580px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.hg-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  will-change: transform;
}

.hg-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-card);
  background: var(--color-surface-tint);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--space-4);
  color: #d8d0c0;
}
/* Inner viewfinder hairline kept only while video is still loading; removed
   once .is-loaded so it doesn't double-up with the video edge in Safari. */
.hg-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: calc(var(--radius-card) - 2px);
  pointer-events: none;
  transition: opacity 400ms ease;
}
.hg-card.is-loaded::before { opacity: 0; }
.hg-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(28px, 4vw, 44px);
  height: clamp(28px, 4vw, 44px);
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  transform: translate(-50%, -50%);
  display: inline-flex;
}
.hg-play::after {
  content: "";
  margin: auto;
  width: 0; height: 0;
  border-left: 9px solid rgba(255,255,255,0.85);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transform: translateX(1px);
}
.hg-card-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-mono-loose);
  text-transform: uppercase;
  opacity: 0.70;
}


/* Video fills the card; label sits on top with a soft chip for legibility.
   Video is always visible — the loader simply overlays it while it's
   still buffering / for the min-show window. */
.hg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

/* Shimmer sweep while video loads. Cards sit on a near-white tint, so the
   gradient and spinner are tinted toward the brand dark (Martinique) rather
   than white — otherwise the loader is invisible against the card. */
.hg-card .hg-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(100deg, transparent 0%, rgba(46,44,68,0.04) 35%, rgba(46,44,68,0.10) 50%, rgba(46,44,68,0.04) 65%, transparent 100%),
    #ececf1;
  background-size: 220% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  background-repeat: no-repeat, no-repeat;
  animation: hg-shimmer 1.6s ease-in-out infinite;
  transition: opacity 400ms ease;
}
/* Spinner pip in the centre of the loader */
.hg-card .hg-loader::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid rgba(46,44,68,0.18);
  border-top-color: #ef513d;
  animation: hg-spin 0.9s linear infinite;
}
.hg-card.is-loaded .hg-loader { opacity: 0; }

@keyframes hg-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes hg-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hg-card .hg-loader { animation: none; }
  .hg-card .hg-loader::after { animation: none; }
  .hg-video { transition: none; }
}

.hg-card .hg-card-label {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 3;
}

/* ----- Animations ----- */
@keyframes hg-scroll-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes hg-scroll-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

/* ----- Cascade — three columns, alternating directions, varied speeds ----- */
.hero-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-gallery .hg-col[data-col="1"] { animation: hg-scroll-up   22s linear infinite; }
.hero-gallery .hg-col[data-col="2"] { animation: hg-scroll-down 28s linear infinite; }
.hero-gallery .hg-col[data-col="3"] { animation: hg-scroll-up   18s linear infinite; }

/* ----- Responsive ----- */

/* Tablet — single gallery column under the headline area */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-12);
  }
  .hero-gallery {
    height: clamp(360px, 50vh, 460px);
    max-width: 720px;
    margin-inline: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Phone — drop to two columns, shorter height. */
@media (max-width: 640px) {
  .hero-gallery {
    height: clamp(280px, 44vh, 380px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-gallery .hg-col[data-col="3"] { display: none; }
}

/* Below the smallest phones: hide the gallery so the hero text can breathe. */
@media (max-width: 380px) {
  .hero-gallery { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-gallery .hg-col,
  .hero-gallery .hg-card { animation: none !important; }
}
