/*
 * The front page: one long page with sections that arrive as you reach them.
 *
 * Built on site.css's tokens so the per-franchise palette still restyles it. Motion is in three
 * layers, each of which degrades to nothing rather than to a broken page:
 *
 *   1. Build: each section is constructed on screen as it arrives — headings typeset word by
 *      word, blocks travelling in from their own side, cards tipping up, photographs wiping in,
 *      lists a line at a time. The class that hides an element is only ever added by script, so
 *      without JavaScript everything is simply visible, and with prefers-reduced-motion the whole
 *      system collapses to a fade. See the Motion section.
 *   2. Scroll-linked: full-bleed bands unroll as they enter and their backdrops settle with the
 *      scroll position; the hero recedes as it leaves. Native where the browser has scroll
 *      timelines, a script parallax where it does not, off under reduced motion.
 *   3. Header: shrinks and becomes opaque once the hero has scrolled past, with a progress line.
 *
 * The header is dark throughout because the logo is a white mark on transparency; putting it on a
 * light surface would mean a second logo.
 */

:root {
  --home-ink-on-dark: #f3f6f8;
  --home-muted-on-dark: #c3d0da;
  --home-band-min: 24rem;
  --reveal-distance: 4.5rem;
  --reveal-duration: 1000ms;
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

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

body.home { overflow-x: hidden; }

/* ---------- Header ---------- */

.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-primary);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  backdrop-filter: none;
  transition: box-shadow var(--transition), background var(--transition);
}

.home-header.is-scrolled {
  background: color-mix(in srgb, var(--brand-primary) 94%, black);
  box-shadow: 0 8px 28px rgb(0 0 0 / 28%);
}

.brand-mark { display: inline-flex; align-items: center; }

.brand-mark img {
  height: 2.75rem;
  width: auto;
  transition: height var(--transition);
}

.home-header.is-scrolled .brand-mark img { height: 2.25rem; }

.home-nav a {
  position: relative;
  color: var(--home-muted-on-dark);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  transition: color var(--transition);
}

.home-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--reveal-ease);
}

.home-nav a:hover,
.home-nav a[aria-current="true"] { color: #fff; }

.home-nav a[aria-current="true"]::after { transform: scaleX(1); }

.phone-link {
  color: var(--home-ink-on-dark);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.phone-link:hover { color: var(--brand-accent); }

.signin-link {
  color: var(--home-muted-on-dark);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color var(--transition);
}

.signin-link:hover { color: #fff; }

/* ---------- Hero ---------- */

.home-hero {
  position: relative;
  min-height: min(92vh, 56rem);
  display: grid;
  align-items: center;
  color: var(--home-ink-on-dark);
  background: var(--brand-primary);
  overflow: hidden;
  isolation: isolate;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.9);
}

/*
 * The backdrop arrives from a tight crop and settles, then takes up the slow drift the old site's
 * hero had the feel of. Transforms only, so it costs nothing after the first frame.
 */
@media (prefers-reduced-motion: no-preference) {
  .home-hero-media img {
    transform-origin: center;
    animation:
      hero-enter 2600ms cubic-bezier(0.16, 1, 0.3, 1) both,
      hero-drift 28s 2600ms ease-in-out infinite alternate;
  }

  @keyframes hero-enter {
    from { transform: scale(1.32); opacity: 0.4; }
    to   { transform: scale(1.02); opacity: 1; }
  }

  @keyframes hero-drift {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to   { transform: scale(1.10) translate3d(-1.5%, -2%, 0); }
  }
}

/* Legibility: a dark wash that is heaviest behind the text and lets the photograph breathe right. */
.home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(6 17 29 / 88%) 0%, rgb(6 17 29 / 70%) 45%, rgb(6 17 29 / 25%) 100%),
    linear-gradient(0deg, rgb(6 17 29 / 80%) 0%, transparent 40%);
}

.home-hero-body {
  position: relative;
  padding: clamp(3.5rem, 10vw, 7rem) 1.25rem;
}

.home-hero-logo {
  display: block;
  width: min(22rem, 70vw);
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 18px rgb(0 0 0 / 45%));
}

.home-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  max-width: 20ch;
  text-wrap: balance;
}

.home-hero .lede {
  color: var(--home-muted-on-dark);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  max-width: 54ch;
}

.home-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  width: 1.6rem;
  height: 2.6rem;
  margin-left: -0.8rem;
  border: 2px solid rgb(255 255 255 / 55%);
  border-radius: 1rem;
  display: block;
}

.home-hero-scroll span {
  position: absolute;
  left: 50%;
  top: 0.45rem;
  width: 0.25rem;
  height: 0.55rem;
  margin-left: -0.125rem;
  border-radius: 0.2rem;
  background: var(--brand-accent);
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero-scroll span { animation: scroll-hint 1.8s ease-in-out infinite; }

  @keyframes scroll-hint {
    0%, 100% { transform: translateY(0); opacity: 1; }
    60%      { transform: translateY(0.8rem); opacity: 0.2; }
  }
}

/* ---------- Sections ---------- */

.home-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.home-section h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  text-wrap: balance;
}

/* ---------- Restore / Protect / Maintain ---------- */

.pillar-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 260ms var(--reveal-ease);
}

.pillar:hover { box-shadow: 0 18px 40px rgb(0 0 0 / 14%); }

.pillar-media { aspect-ratio: 4 / 3; overflow: hidden; }

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--reveal-ease);
}

.pillar:hover .pillar-media img { transform: scale(1.04); }

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.25rem 1.25rem 0.5rem;
}

.pillar h3::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 0.6rem;
  background: var(--brand-accent);
}

.pillar p { margin: 0 1.25rem 1.5rem; color: var(--ink-muted); }

/* ---------- Full-bleed bands ---------- */

.home-band {
  position: relative;
  min-height: var(--home-band-min);
  display: grid;
  align-items: center;
  color: var(--home-ink-on-dark);
  background: var(--brand-primary);
  overflow: hidden;
  isolation: isolate;
}

.home-band-media {
  position: absolute;
  inset: -22% 0;
  z-index: -1;
  will-change: transform;
}

.home-band-media img,
.home-band-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(6 17 29 / 72%);
}

.home-band-video .home-band-media::after { background: rgb(6 17 29 / 62%); }

.home-band-body {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6.5rem) 1.25rem;
  max-width: 52rem;
}

.home-band-body-wide { max-width: var(--shell-max); }

.home-band h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-wrap: balance;
}

.home-band .lede {
  color: var(--home-muted-on-dark);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}

/* Links on the dark bands are white; links inside the white form card are not. The card sits
   inside a band, so the band's rule has to stop at it explicitly. */
.home-band a:not(.book-form a):not(.btn) { color: #fff; text-decoration-color: var(--brand-accent); }

/* Every link on a white surface, whichever section it is in. */
.home-section a:not(.btn):not(.feature-link),
.book-form a:not(.btn) {
  color: var(--brand-primary);
  text-decoration: underline;
  text-decoration-color: var(--brand-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.home-section a:not(.btn):not(.feature-link):hover,
.book-form a:not(.btn):hover { color: var(--brand-accent); }

/* ---------- Autos / Boats / Planes ---------- */

.feature {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--hairline);
}

.feature:first-of-type { border-top: 0; }

@media (min-width: 62rem) {
  .feature-flip .feature-media { order: 2; }
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgb(0 0 0 / 18%);
}

.feature-media img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.feature-body p { line-height: 1.65; }

.feature-extra { color: var(--ink-muted); }

.feature-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--brand-accent);
}

/* ---------- Menu ---------- */

.menu-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  align-items: stretch;
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.menu-media { aspect-ratio: 16 / 10; overflow: hidden; background: #0a1119; }

.menu-media img,
.menu-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.menu-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
}

.menu-body p { margin: 0; color: var(--ink-muted); font-size: 0.92rem; line-height: 1.55; }

.menu-duration {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
}

.price-list {
  margin: 0.25rem 0 0.5rem;
  display: grid;
  gap: 0.35rem;
}

.price-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.92rem;
}

.price-list dt { font-weight: 400; color: var(--ink); }

.price-list dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

/* The button sits on the bottom edge of every card, whatever the text above it did. */
.menu-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Book ---------- */

.home-band-book { align-items: start; }

.book-form {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.contact-list a {
  color: var(--home-ink-on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 25%);
  transition: border-color var(--transition);
}

.contact-list a:hover { border-bottom-color: var(--brand-accent); }

/* ---------- Footer ---------- */

.footer-logo {
  display: block;
  width: 12rem;
  height: auto;
  margin-bottom: 0.75rem;
}

.site-footer a { color: inherit; }

/* ---------- Motion ---------- */

/*
 * Every section is built on screen rather than faded onto it. The choreography, in the order the
 * eye meets it:
 *
 *   - Headings are set word by word: each word rises out of a mask on its own beat, and the gold
 *     rule draws under the line once the last word has landed.
 *   - Blocks travel in from a direction that means something — a photograph from its own side of
 *     the row, the text from the other — and settle with an easing that overshoots nothing.
 *   - Cards tip up from the plane of the page, one after another; the photograph inside each one
 *     wipes in after the card has landed, and its own contents build top to bottom.
 *   - Full-bleed bands unroll over the section above them; their backdrop settles from a tight crop.
 *   - Lists build a line at a time.
 *
 * Only elements the script has claimed are hidden, and only until they enter the viewport. The
 * page at rest, and the page with no script, shows everything. Under prefers-reduced-motion the
 * whole system collapses to a fade; see the end of this section.
 *
 * The direction is the attribute's value: [data-reveal] rises, "left" and "right" travel in from
 * that side, "zoom" grows, "flip" tips up, "words" is the heading treatment, "unroll" the band's.
 * [data-build] on a container builds its direct children in sequence once it is visible.
 * [data-reveal-group] staggers its direct [data-reveal] children.
 */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    clip-path var(--reveal-duration) var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal="left"]  { transform: translateX(-6rem); }
.js [data-reveal="right"] { transform: translateX(6rem); }
.js [data-reveal="zoom"]  { transform: scale(0.8); }

.js [data-reveal="flip"] {
  transform: perspective(1400px) rotateX(24deg) translateY(4rem);
  transform-origin: 50% 100%;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/*
 * The build runs every time an element comes into view. Leaving is the reverse, and it is made
 * quick and undelayed so that an element scrolled away from is simply gone, not seen unbuilding
 * itself at the edge of the screen. A transition takes its timing from the state it is going to,
 * so these rules govern only the way out.
 */
.js [data-reveal]:not(.is-visible),
.js [data-reveal]:not(.is-visible) .w > span,
.js [data-build]:not(.is-visible) > *,
.js [data-reveal]:not(.is-visible) [data-build] > *,
.js [data-reveal]:not(.is-visible) .pillar-media,
.js [data-reveal]:not(.is-visible) .menu-media,
.js [data-reveal]:not(.is-visible) .pillar-media img,
.js [data-reveal]:not(.is-visible) .menu-media img,
.js [data-reveal]:not(.is-visible) .menu-media video,
.js [data-reveal]:not(.is-visible) .price-list div,
.js [data-reveal]:not(.is-visible) .num,
.js [data-reveal]:not(.is-visible) h3::after,
.js [data-reveal]:not(.is-visible)::after,
.js .process-list:not(.is-visible)::before {
  transition-duration: 250ms;
  transition-delay: 0ms;
}

/* Siblings inside a group arrive one after another rather than all at once. */
.js [data-reveal-group] > [data-reveal]:nth-child(2) { --reveal-delay: 140ms; }
.js [data-reveal-group] > [data-reveal]:nth-child(3) { --reveal-delay: 280ms; }
.js [data-reveal-group] > [data-reveal]:nth-child(4) { --reveal-delay: 420ms; }
.js [data-reveal-group] > [data-reveal]:nth-child(5) { --reveal-delay: 560ms; }
.js [data-reveal-group] > [data-reveal]:nth-child(6) { --reveal-delay: 700ms; }

/* ----- Headings, word by word ----- */

/*
 * The script wraps each word in a mask. The heading itself is never faded — its words rise out of
 * their masks on successive beats, so the line is typeset in front of the reader. Until the script
 * has done the wrapping the heading is held back, so it never shows whole and then vanishes.
 */
.js [data-reveal="words"] {
  opacity: 1;
  transform: none;
  transition: none;
}

.js [data-reveal="words"]:not(.is-split) { opacity: 0; }

.js [data-reveal="words"] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* Room for descenders inside the mask, so a "g" is not clipped at rest. */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.js [data-reveal="words"] .w > span {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 900ms var(--reveal-ease);
  transition-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * 55ms);
}

.js [data-reveal="words"].is-visible .w > span { transform: none; }

/* The gold rule draws under the heading once its words have landed. */
.js .home-section h2[data-reveal]::after,
.js .home-band h2[data-reveal]::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.85rem;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--reveal-ease);
  transition-delay: calc(var(--reveal-delay, 0ms) + var(--words, 4) * 55ms + 300ms);
}

.js .home-section h2[data-reveal].is-visible::after,
.js .home-band h2[data-reveal].is-visible::after {
  transform: scaleX(1);
}

/* ----- The hero, on load ----- */

.js .home-hero-body > [data-reveal]:nth-child(1) { --reveal-delay: 200ms; }
.js .home-hero-body > [data-reveal]:nth-child(2) { --reveal-delay: 500ms; }
.js .home-hero-body > [data-reveal]:nth-child(3) { --reveal-delay: 650ms; }
.js .home-hero-body > [data-reveal]:nth-child(4) { --reveal-delay: 1500ms; }
.js .home-hero-body > [data-reveal]:nth-child(5) { --reveal-delay: 1750ms; }

/* Coming back up the page, the hero rebuilds at once rather than replaying its two-second opening. */
.js .home-hero-body > [data-reveal].is-replay:nth-child(1) { --reveal-delay: 0ms; }
.js .home-hero-body > [data-reveal].is-replay:nth-child(2) { --reveal-delay: 80ms; }
.js .home-hero-body > [data-reveal].is-replay:nth-child(3) { --reveal-delay: 160ms; }
.js .home-hero-body > [data-reveal].is-replay:nth-child(4) { --reveal-delay: 500ms; }
.js .home-hero-body > [data-reveal].is-replay:nth-child(5) { --reveal-delay: 650ms; }

.js .home-hero-logo[data-reveal] { transform: scale(0.82) translateY(1rem); }
.js .home-hero-logo[data-reveal].is-visible { transform: none; }

.js .home-hero-scroll {
  opacity: 0;
  transition: opacity 800ms ease 2600ms;
}

.js.is-loaded .home-hero-scroll { opacity: 1; }

/* ----- Containers that build their contents ----- */

/*
 * Each direct child of a [data-build] container arrives on its own beat once the container is on
 * screen. The container's own delay (inherited through the custom property) comes first, so a
 * block that slides in as a whole has landed before its contents begin.
 */
.js [data-build] > * {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 700ms var(--reveal-ease),
    transform 700ms var(--reveal-ease);
  transition-delay: calc(var(--reveal-delay, 0ms) + var(--build-lead, 250ms) + var(--build-i, 0) * 90ms);
}

.js [data-build] > *:nth-child(2) { --build-i: 1; }
.js [data-build] > *:nth-child(3) { --build-i: 2; }
.js [data-build] > *:nth-child(4) { --build-i: 3; }
.js [data-build] > *:nth-child(5) { --build-i: 4; }
.js [data-build] > *:nth-child(6) { --build-i: 5; }
.js [data-build] > *:nth-child(7) { --build-i: 6; }
.js [data-build] > *:nth-child(8) { --build-i: 7; }
.js [data-build] > *:nth-child(9) { --build-i: 8; }
.js [data-build] > *:nth-child(10) { --build-i: 9; }
.js [data-build] > *:nth-child(11) { --build-i: 10; }
.js [data-build] > *:nth-child(12) { --build-i: 11; }
.js [data-build] > *:nth-child(13) { --build-i: 12; }
.js [data-build] > *:nth-child(14) { --build-i: 13; }
.js [data-build] > *:nth-child(15) { --build-i: 14; }
.js [data-build] > *:nth-child(16) { --build-i: 15; }

.js [data-build].is-visible > *,
.js .is-visible [data-build] > * {
  opacity: 1;
  transform: none;
}

/* A container that is not itself revealed needs no lead time before its children start. */
.js [data-build]:not([data-reveal]) { --build-lead: 0ms; }

/* A container that is watched but never moves — its contents do the building. */
.js [data-reveal="static"] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Lists build from the left. */
.js [data-build="lines"] > * { transform: translateX(-2rem); }

/* The form's fields follow its frame: the row of them waits until the row itself has landed. */
.js .book-form .row[data-build] > * { --build-lead: 650ms; }

/* ----- Photographs ----- */

/*
 * A photograph wipes in — from the left where it travels sideways, from below where its card tips
 * up — and the picture inside settles from a slight zoom. Clip-path costs one composited layer.
 */
.js .feature-media[data-reveal] {
  clip-path: inset(0 100% 0 0);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    clip-path 1100ms var(--reveal-ease);
  transition-delay:
    var(--reveal-delay, 0ms),
    var(--reveal-delay, 0ms),
    calc(var(--reveal-delay, 0ms) + 150ms);
}

.js .feature-flip .feature-media[data-reveal] { clip-path: inset(0 0 0 100%); }

.js .pillar-media,
.js .menu-media {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1100ms var(--reveal-ease);
  transition-delay: calc(var(--reveal-delay, 0ms) + 350ms);
}

.js .feature-media[data-reveal].is-visible,
.js .is-visible .pillar-media,
.js .is-visible .menu-media {
  clip-path: inset(0 0 0 0);
}

.js .feature-media img,
.js .pillar-media img,
.js .menu-media img,
.js .menu-media video {
  transform: scale(1.18);
  transition: transform 1800ms var(--reveal-ease);
  transition-delay: calc(var(--reveal-delay, 0ms) + 150ms);
}

.js .feature-media.is-visible img,
.js .is-visible .pillar-media img,
.js .is-visible .menu-media img,
.js .is-visible .menu-media video {
  transform: scale(1);
}

/* ----- Cards: their contents build after the card has landed ----- */

.js .pillar h3::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--reveal-ease);
  transition-delay: calc(var(--reveal-delay, 0ms) + 700ms);
}

.js .pillar.is-visible h3::after { transform: scaleX(1); }

.js .menu-card .price-list div {
  opacity: 0;
  transform: translateX(-1.5rem);
  transition: opacity 500ms var(--reveal-ease), transform 500ms var(--reveal-ease);
  transition-delay: calc(var(--reveal-delay, 0ms) + 600ms + var(--build-i, 0) * 80ms);
}

.js .menu-card .price-list div:nth-child(2) { --build-i: 1; }
.js .menu-card .price-list div:nth-child(3) { --build-i: 2; }
.js .menu-card .price-list div:nth-child(4) { --build-i: 3; }

.js .menu-card.is-visible .price-list div {
  opacity: 1;
  transform: none;
}

/* ----- The process: a line draws down the steps as they arrive ----- */

.process-list { position: relative; }

.process-list::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-accent), color-mix(in srgb, var(--brand-accent) 25%, transparent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1800ms var(--reveal-ease) 200ms;
}

.process-list.is-visible::before { transform: scaleY(1); }

.process-step .num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-left: 0;
  font-size: 1.1rem;
  background: var(--surface);
  border: 2px solid var(--brand-accent);
  border-radius: 50%;
}

.js .process-step .num {
  transform: scale(0.3) rotate(-40deg);
  opacity: 0;
  transition: transform 700ms var(--spring-ease), opacity 400ms ease;
  transition-delay: calc(var(--reveal-delay, 0ms) + 200ms);
}

.js .process-step.is-visible .num {
  transform: none;
  opacity: 1;
}

/* ----- Full-bleed bands unroll over the section above ----- */

.js [data-reveal="unroll"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1300ms var(--reveal-ease);
}

.js [data-reveal="unroll"].is-visible { clip-path: inset(0 0 0 0); }

/* ----- The header: a progress line, and the navigation drops in on load ----- */

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--brand-accent);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left;
  pointer-events: none;
}

.js .home-nav > a {
  opacity: 0;
  transform: translateY(-0.8rem);
  transition: opacity 600ms var(--reveal-ease), transform 600ms var(--reveal-ease), color var(--transition);
  transition-delay: calc(900ms + var(--build-i, 0) * 70ms);
}

.js .home-nav > a:nth-child(2) { --build-i: 1; }
.js .home-nav > a:nth-child(3) { --build-i: 2; }
.js .home-nav > a:nth-child(4) { --build-i: 3; }
.js .home-nav > a:nth-child(5) { --build-i: 4; }
.js .home-nav > a:nth-child(6) { --build-i: 5; }

.js.is-loaded .home-nav > a { opacity: 1; transform: none; }

/* ----- Scroll-linked motion, where the browser has it ----- */

/*
 * With animation-timeline the band's backdrop scales and rises with the scroll position itself —
 * not on a timer, not on an observer, but pinned to the page — the band unrolls as it enters, the
 * hero recedes as it leaves, and the progress line is the scroll position. Where unsupported, the
 * script's parallax and the observer reveal above carry the same intent at lower fidelity.
 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .home-band-media img,
    .js .home-band-media video {
      animation: band-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }

    @keyframes band-settle {
      from { transform: scale(1.22) translate3d(0, -5%, 0); }
      to   { transform: scale(1.02) translate3d(0, 5%, 0); }
    }

    .js [data-reveal="unroll"] {
      transition: none;
      animation: band-unroll linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }

    @keyframes band-unroll {
      from { clip-path: inset(0 0 100% 0); }
      to   { clip-path: inset(0 0 0 0); }
    }

    .js .home-hero-body {
      animation: hero-recede linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }

    @keyframes hero-recede {
      from { opacity: 1; transform: translateY(0); }
      to   { opacity: 0; transform: translateY(-10vh); }
    }

    /* Photographs in the white sections drift against the scroll, a little, all the way down. */
    .js .feature-media.is-visible img {
      animation: feature-drift linear both;
      animation-timeline: view();
      animation-range: entry 100% exit 0%;
      transition: none;
    }

    @keyframes feature-drift {
      from { transform: scale(1.12) translateY(3%); }
      to   { transform: scale(1.12) translateY(-3%); }
    }

    .scroll-progress {
      animation: progress linear both;
      animation-timeline: scroll(root);
    }

    @keyframes progress {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
  }
}

/*
 * Reduced motion reduces; it does not remove. The guidance behind the preference is about
 * movement — things that travel, scale, slide or scroll at odd speeds — not about a fade. So under
 * it the reveals still fade in as they arrive, and everything that moves is held still: no travel,
 * no tip, no wipe, no drift, no parallax, no words rising.
 */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-build] > *,
  .js .home-nav > a,
  .js .process-step .num,
  .js .menu-card .price-list div {
    transform: none;
    transition: opacity 500ms ease;
  }

  .js [data-reveal="words"] .w > span { transform: none; transition: none; }
  .js [data-reveal="unroll"] { clip-path: none; transition: none; }
  .js .feature-media, .js .pillar-media, .js .menu-media { clip-path: none; transition: none; }
  .js .feature-media img, .js .pillar-media img, .js .menu-media img, .js .menu-media video { transform: none; transition: none; }
  .js .home-section h2[data-reveal]::after, .js .home-band h2[data-reveal]::after, .js .pillar h3::after { transform: none; transition: none; }
  .process-list::before { transform: none; transition: none; }
  .js .home-hero-logo[data-reveal] { transform: none; }

  .home-band-media { inset: 0; }
  .pillar, .pillar-media img { transition: none; }
}

/* ---------- Booking: modes and the slot picker ---------- */

.book-modes {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 1.25rem;
  background: var(--surface-alt);
  border-radius: 999px;
}

.book-mode {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.book-mode[aria-selected="true"] {
  background: var(--brand-primary);
  color: #fff;
}

.slot-days {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.slot-day {
  flex: 0 0 auto;
  min-width: 4.4rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  transition: border-color var(--transition), background var(--transition);
}

.slot-day-name {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.slot-day-date { font-size: 0.9rem; font-weight: 600; }

.slot-day[aria-selected="true"] {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
}

.slot-day[aria-selected="true"] span { color: #fff; }

.slot-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.slot-time {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.slot-time:hover { border-color: var(--brand-primary); }

.slot-time[aria-checked="true"] {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #14202b;
  font-weight: 600;
}

.book-form [hidden] { display: none !important; }
