/* ==========================================================================
   Harbor & Vine — styles.css
   Demo site by Corivo Digital. Plain CSS, mobile-first, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --olive-900: #141a14;
  --olive-800: #1f2a1f;
  --olive-700: #2a3729;
  --olive-600: #3a4a38;
  --cream-100: #f6f0e3;
  --cream-200: #efe6d2;
  --cream-300: #e3d7bd;
  --cream-400: #cdbf9f;
  --terracotta: #a8502c;        /* button fill: 4.6:1 with cream text */
  --terracotta-hover: #934321;
  --terracotta-light: #e08a5e;  /* accent text on dark: 5.6:1 */
  --terracotta-deep: #8f4121;   /* accent text on cream: 6.3:1 */
  --ink: #1d1f1a;
  --ink-soft: #4a4d44;
  --sage: #9aa78f;              /* muted text on dark: 5.9:1 */

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
  --step-4: clamp(2.75rem, 1.6rem + 5.5vw, 5.5rem);
  --step-5: clamp(3.25rem, 1.5rem + 8.5vw, 8rem);

  /* Rhythm */
  --gutter: 1.25rem;
  --section: clamp(4.5rem, 6vw + 2rem, 9rem);
  --measure: 36em;
  --header-h: 4.25rem;
  --banner-h: 2rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Theme defaults (cream) */
  --bg: var(--cream-100);
  --bg-alt: var(--cream-200);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --accent: var(--terracotta-deep);
  --rule: rgba(29, 31, 26, 0.18);
  --focus: var(--terracotta-deep);
  --art-a: #d9c9a6;
  --art-b: #b9a884;
}

@media (min-width: 48em) {
  :root {
    --gutter: 2.5rem;
  }
}

@media (min-width: 80em) {
  :root {
    --gutter: 4rem;
  }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--olive-900);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 60;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--terracotta);
  color: var(--cream-100);
}

button {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. Themes — sections alternate dark / cream
   -------------------------------------------------------------------------- */
.theme-dark {
  --bg: var(--olive-800);
  --bg-alt: var(--olive-700);
  --fg: var(--cream-100);
  --muted: var(--sage);
  --accent: var(--terracotta-light);
  --rule: rgba(246, 240, 227, 0.16);
  --focus: var(--terracotta-light);
  --art-a: #2f3d2e;
  --art-b: #4d5a44;
  background: var(--bg);
  color: var(--fg);
}

.theme-cream {
  --bg: var(--cream-100);
  --bg-alt: var(--cream-200);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --accent: var(--terracotta-deep);
  --rule: rgba(29, 31, 26, 0.18);
  --focus: var(--terracotta-deep);
  --art-a: #d9c9a6;
  --art-b: #b9a884;
  background: var(--bg);
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   4. Grain texture — SVG turbulence as a data URI, no external files
   -------------------------------------------------------------------------- */
.grain {
  position: relative;
  isolation: isolate;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.grain > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2 * var(--gutter), 78rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 2rem;
}

.grid-12 > * {
  grid-column: 1 / -1;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.lede {
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.45;
  font-weight: 300;
  max-width: var(--measure);
  text-wrap: pretty;
}

.measure {
  max-width: var(--measure);
  text-wrap: pretty;
}

.muted {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--terracotta);
  --btn-fg: var(--cream-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-bg);
}

.btn--primary:hover {
  background: var(--terracotta-hover);
  border-color: var(--terracotta-hover);
  color: var(--cream-100);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: currentColor;
}

.btn--ghost:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15em;
}

.text-link:hover {
  gap: 0.8rem;
}

.text-link svg {
  width: 1em;
  height: 1em;
  transition: transform 0.25s var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   7. Demo banner + skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--terracotta);
  color: var(--cream-100);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--cream-100);
}

.demo-banner {
  margin: 0;
  min-height: var(--banner-h);
  padding: 0.35rem var(--gutter);
  background: var(--olive-900);
  color: var(--cream-300);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.4;
}

.demo-banner a {
  color: var(--terracotta-light);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--cream-100);
  border-bottom: 1px solid rgba(246, 240, 227, 0.08);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  /* Pull the page up underneath so the translucent header sits over the hero */
  margin-bottom: calc(-1 * var(--header-h));
}

/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block for the fixed mobile nav. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 26, 20, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(246, 240, 227, 0.14);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

.site-header.is-scrolled::before {
  background: rgba(20, 26, 20, 0.97);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 80;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand em {
  font-style: italic;
  color: var(--terracotta-light);
  font-weight: 300;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.nav-toggle {
  --bar: var(--cream-100);
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(246, 240, 227, 0.25);
  border-radius: 999px;
  color: var(--cream-100);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--bar);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: calc(var(--header-h)) 0 0 0;
  z-index: 40;
  padding: 2rem var(--gutter) 6rem;
  background: var(--olive-900);
  color: var(--cream-100);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li + li {
  border-top: 1px solid rgba(246, 240, 227, 0.1);
}

.site-nav a:not(.btn) {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60;
  font-size: 2rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  color: var(--terracotta-light);
}

.site-nav__cta {
  margin-top: 2rem;
  align-self: flex-start;
}

.site-nav__tagline {
  margin-top: 1.5rem;
  color: var(--sage);
  font-size: 0.9rem;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 60em) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    padding: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    overflow: visible;
    transition: none;
  }

  .site-nav ul {
    display: flex;
    gap: 1.75rem;
  }

  .site-nav li + li {
    border-top: 0;
  }

  .site-nav a:not(.btn) {
    font-family: var(--font-body);
    font-variation-settings: normal;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.5rem 0;
    position: relative;
  }

  .site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0.1rem;
    height: 1px;
    background: var(--terracotta-light);
    transition: right 0.3s var(--ease);
  }

  .site-nav a:not(.btn):hover::after,
  .site-nav a:not(.btn)[aria-current="page"]::after {
    right: 0;
  }

  .site-nav a:not(.btn):hover {
    color: inherit;
  }

  .site-nav__cta {
    margin-top: 0;
    min-height: 2.6rem;
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
  }

  .site-nav__tagline {
    display: none;
  }

  body.nav-open {
    overflow: auto;
  }
}

/* Sticky mobile reserve bar */
.reserve-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(20, 26, 20, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(246, 240, 227, 0.12);
  transform: translateY(0);
  transition: transform 0.35s var(--ease);
}

.reserve-bar .btn {
  width: 100%;
}

.reserve-bar.is-hidden {
  transform: translateY(110%);
}

@media (min-width: 60em) {
  .reserve-bar {
    display: none;
  }
}

/* Room for the bar on small screens */
@media (max-width: 59.99em) {
  .site-footer {
    padding-bottom: 6rem;
  }
}

/* --------------------------------------------------------------------------
   9. Hero — rotating full-screen scenes
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100svh - var(--banner-h));
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vh, 5rem));
  color: var(--cream-100);
  background: var(--olive-900);
  --bg: var(--olive-900);
  --fg: var(--cream-100);
  --muted: var(--sage);
  --accent: var(--terracotta-light);
  --focus: var(--terracotta-light);
  --slide-ms: 7000ms;
}

/* Gradient fallback underneath the photos */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 55% at 78% 28%, rgba(168, 80, 44, 0.45) 0%, rgba(168, 80, 44, 0) 70%),
    linear-gradient(160deg, #2b3a2a 0%, #1f2a1f 45%, #141a14 100%);
}

/* Photo layer */
.hero__media {
  position: absolute;
  inset: -4% -3%;
  z-index: -2;
  will-change: transform;
}

.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.35s cubic-bezier(0.77, 0, 0.18, 1);
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  filter: saturate(1.05) contrast(1.05);
}

.hero__slide.is-active {
  z-index: 2;
  clip-path: inset(0 0 0 0);
}

.hero__slide.is-leaving {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  transition: none;
}

.hero__slide.is-active img,
.hero__slide.is-leaving img {
  animation: hero-kenburns calc(var(--slide-ms) + 2000ms) linear both;
}

.hero__slide.is-leaving img {
  animation-play-state: paused;
}

.hero.is-paused .hero__slide.is-active img {
  animation-play-state: paused;
}

@keyframes hero-kenburns {
  from { transform: scale(1.14) translate3d(1.5%, 0, 0); }
  to   { transform: scale(1.02) translate3d(-1%, -1%, 0); }
}

/* Legibility shading + grain */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 18, 14, 0.88) 0%, rgba(14, 18, 14, 0.55) 45%, rgba(14, 18, 14, 0.15) 100%),
    linear-gradient(0deg, rgba(14, 18, 14, 0.92) 0%, rgba(14, 18, 14, 0) 42%),
    linear-gradient(180deg, rgba(14, 18, 14, 0.6) 0%, rgba(14, 18, 14, 0) 25%);
}

.hero__shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.16;
  mix-blend-mode: soft-light;
}

.hero__inner {
  position: relative;
  align-self: end;
  display: grid;
  gap: 2rem;
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.hero__copy {
  max-width: 64rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: clamp(1rem, 3vh, 1.75rem);
}

.hero__brand em {
  font-style: italic;
  color: var(--terracotta-light);
}

.hero__brand span {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
  display: block;
  margin-top: 0.35rem;
}

.hero__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta-light);
}

.hero__count {
  font-family: var(--font-display);
  font-size: 1.6em;
  letter-spacing: 0;
  color: var(--cream-100);
}

.hero__total {
  color: var(--sage);
}

.hero__label {
  position: relative;
  padding-left: 2.6rem;
}

.hero__label::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 50%;
  width: 1.7rem;
  height: 1px;
  background: currentColor;
}

/* Stacked scenes: all occupy the same grid cell, so the tallest sets the height */
.hero__stage {
  display: grid;
}

.hero__scene {
  grid-area: 1 / 1;
  pointer-events: none;
  opacity: 0;
}

.hero__scene.is-active {
  pointer-events: auto;
  opacity: 1;
}

/* Outgoing scene: fade and drift up quickly, words frozen in place, so the
   incoming words never cross the old ones */
.hero__scene.is-out {
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.32s ease, transform 0.4s ease;
}

.hero__scene.is-out .w > span,
.hero__scene.is-out .hero__sub {
  transform: none;
  opacity: 1;
  transition: none;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, min(1.2rem + 7.6vw, 12.5vh), 8.25rem);
  font-weight: 300;
  font-variation-settings: "SOFT" 100;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero__headline em {
  display: block;
  font-style: italic;
  color: var(--terracotta-light);
}

/* Word-by-word reveal (spans added by script.js) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 70ms + 380ms);
}

.hero__scene.is-active .w > span {
  transform: translateY(0);
}

.hero__sub {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.45;
  max-width: 30em;
  color: var(--cream-200);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}

.hero__scene.is-active .hero__sub {
  opacity: 1;
  transform: none;
  transition-delay: 0.8s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.25rem, 3.5vh, 2rem);
}

/* "Up next" card */
.hero__next {
  display: none;
}

/* Controls row */
.hero__controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.1rem calc(1.5rem + 4.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(246, 240, 227, 0.16);
}

.hero__tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero__tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  color: var(--sage);
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.55rem;
  transition: color 0.3s var(--ease);
}

.hero__tab:hover,
.hero__tab.is-active {
  color: var(--cream-100);
}

.hero__tab-num {
  font-family: var(--font-display);
  font-size: var(--step-0);
}

.hero__tab-label {
  display: none;
}

.hero__tab-bar {
  order: -1;
  display: block;
  height: 2px;
  background: rgba(246, 240, 227, 0.2);
  overflow: hidden;
}

.hero__tab-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--terracotta-light);
  transform: scaleX(0);
  transform-origin: left;
}

.hero__tab.is-done .hero__tab-fill {
  transform: scaleX(1);
  background: rgba(246, 240, 227, 0.55);
}

.hero__tab.is-active .hero__tab-fill {
  animation: hero-progress var(--slide-ms) linear forwards;
}

.hero.is-paused .hero__tab.is-active .hero__tab-fill {
  animation-play-state: paused;
}

@keyframes hero-progress {
  to { transform: scaleX(1); }
}

.hero__pause {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(246, 240, 227, 0.3);
  background: rgba(20, 26, 20, 0.3);
  color: var(--cream-100);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hero__pause:hover {
  background: rgba(246, 240, 227, 0.12);
  border-color: rgba(246, 240, 227, 0.6);
}

.hero__pause svg {
  width: 1rem;
  height: 1rem;
}

.hero__pause .i-play,
.hero.is-paused .hero__pause .i-pause {
  display: none;
}

.hero.is-paused .hero__pause .i-play {
  display: block;
}

.hero__scroll {
  display: none;
}

@media (min-width: 48em) {
  .hero__brand span {
    display: inline;
    margin-left: 0.5rem;
  }

  .hero__brand span::before {
    content: "· ";
  }

  .hero__tab-label {
    display: block;
    font-size: var(--step--1);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .hero__tab {
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    align-items: baseline;
  }

  .hero__tab-bar {
    grid-column: 1 / -1;
  }
}

@media (min-width: 60em) {
  .hero__controls {
    padding-bottom: 1.5rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .hero__next {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.4rem;
    padding: 0.6rem 1.1rem 0.6rem 0.6rem;
    border: 1px solid rgba(246, 240, 227, 0.2);
    border-radius: 999px;
    background: rgba(20, 26, 20, 0.35);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--cream-100);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.4s var(--ease);
  }

  .hero__next:hover {
    border-color: rgba(246, 240, 227, 0.55);
    background: rgba(20, 26, 20, 0.55);
    transform: translateX(4px);
  }

  .hero__next-thumb {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--olive-700);
    transition: background-image 0.4s;
  }

  .hero__next-text {
    display: grid;
    line-height: 1.25;
  }

  .hero__next-text small {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage);
  }

  .hero__next-label {
    font-family: var(--font-display);
    font-size: var(--step-1);
  }

  .hero__next svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--terracotta-light);
  }

  .hero__scroll {
    display: block;
    position: absolute;
    right: calc(var(--gutter) + 0.5rem);
    top: 50%;
    width: 1px;
    height: 4.5rem;
    background: rgba(246, 240, 227, 0.2);
    overflow: hidden;
  }

  .hero__scroll span {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 40%;
    background: var(--cream-100);
    animation: hero-scroll 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
}

@keyframes hero-scroll {
  from { transform: translateY(-100%); }
  to   { transform: translateY(260%); }
}

/* --------------------------------------------------------------------------
   9b. Dish ticker
   -------------------------------------------------------------------------- */
.ticker {
  overflow: hidden;
  background: var(--terracotta);
  color: var(--cream-100);
  border-block: 1px solid rgba(20, 26, 20, 0.25);
  padding-block: 1rem;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  width: max-content;
  animation: ticker 42s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  white-space: nowrap;
}

.ticker__track .o {
  font-style: normal;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px var(--cream-100);
}

.ticker__track i {
  font-style: normal;
  font-size: 0.6em;
  color: var(--olive-900);
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

@keyframes ticker {
  to { transform: translateX(calc(-50% - 0.875rem)); }
}

/* --------------------------------------------------------------------------
   10. "Photo" placeholders — layered gradients + grain + line illustration
   -------------------------------------------------------------------------- */
.art {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(70% 60% at 30% 25%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(60% 50% at 80% 85%, rgba(168, 80, 44, 0.45) 0%, rgba(168, 80, 44, 0) 70%),
    linear-gradient(155deg, var(--art-a) 0%, var(--art-b) 100%);
  color: var(--fg);
  isolation: isolate;
}

.art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.22;
  mix-blend-mode: soft-light;
}

.art::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid currentColor;
  opacity: 0.25;
  pointer-events: none;
}

.art svg {
  position: absolute;
  inset: 0;
  width: 70%;
  height: 70%;
  margin: auto;
  overflow: visible;
}

.art--wide {
  aspect-ratio: 16 / 10;
}

.art--square {
  aspect-ratio: 1;
}

.art__caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
}

.ill {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill .ill__fill {
  fill: var(--terracotta);
  fill-opacity: 0.55;
  stroke: currentColor;
}

.ill .ill__dot {
  fill: currentColor;
  stroke: none;
}

.ill .ill__soft {
  stroke-opacity: 0.45;
}

/* --------------------------------------------------------------------------
   11. Story
   -------------------------------------------------------------------------- */
.story__title {
  font-size: var(--step-4);
  margin-bottom: 1.5rem;
}

.story__title em {
  font-style: italic;
  color: var(--accent);
}

.story__copy p {
  max-width: var(--measure);
}

.story__art {
  margin-top: 1rem;
}

.chef-note {
  margin-top: 2.5rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.75rem;
}

.chef-note__label {
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.chef-note p {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40;
  font-size: var(--step-1);
  line-height: 1.35;
  max-width: 28em;
}

.chef-note cite {
  font-style: normal;
  font-size: var(--step--1);
  color: var(--muted);
}

.pullquote {
  margin: 3.5rem 0 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--terracotta);
}

.pullquote p {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 80;
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-2);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 20em;
  text-wrap: balance;
}

.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}


/* --------------------------------------------------------------------------
   12. Menu preview + full menu
   -------------------------------------------------------------------------- */
.menu-preview__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.menu-preview__title {
  font-size: var(--step-4);
}

.menu-preview__title em {
  font-style: italic;
  color: var(--accent);
}

.dish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name price"
    "desc desc";
  column-gap: 1.5rem;
  row-gap: 0.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.dish__name {
  grid-area: name;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50;
  font-size: var(--step-1);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.dish__price {
  grid-area: price;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0;
  font-size: var(--step-1);
  color: var(--accent);
  white-space: nowrap;
}

.dish__desc {
  grid-area: desc;
  margin: 0;
  color: var(--muted);
  max-width: 34em;
  font-size: 0.95rem;
}

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 0.15rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--accent);
  line-height: 1.4;
  vertical-align: middle;
  text-transform: uppercase;
}

.tags {
  display: inline-flex;
  gap: 0.3rem;
}

.menu-preview__foot {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.menu-preview__foot p {
  color: var(--muted);
  font-size: var(--step--1);
  max-width: 30em;
}

@media (min-width: 60em) {
  .menu-preview__head {
    grid-template-columns: 7fr 5fr;
    align-items: end;
    margin-bottom: 4rem;
  }

  .menu-preview__head .lede {
    justify-self: end;
    text-align: left;
    max-width: 24em;
  }

  .dish-list--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    column-gap: 4rem;
    border-top: 0;
    padding-bottom: 3.5rem;
  }

  .dish-list--split .dish:nth-child(1),
  .dish-list--split .dish:nth-child(4) {
    border-top: 1px solid var(--rule);
  }

  .dish-list--split .dish:nth-child(n + 4) {
    transform: translateY(3.5rem);
  }
}

/* Full menu page */
.menu-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--olive-900);
  padding-block: calc(var(--header-h) + clamp(4rem, 10vh, 7rem)) clamp(3rem, 6vh, 5rem);
}

.menu-hero__title {
  font-size: var(--step-5);
  font-weight: 300;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.menu-hero__title em {
  font-style: italic;
  color: var(--accent);
}

.menu-hero__meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  color: var(--muted);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-hero__meta strong {
  color: var(--fg);
  font-weight: 500;
}

.menu-hero__art {
  position: absolute;
  right: -4%;
  top: 0;
  width: clamp(10rem, 30vw, 18rem);
  color: var(--accent);
  opacity: 0.55;
  pointer-events: none;
}

.menu-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  list-style: none;
  padding-left: 0;
}

.menu-jump a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.1em;
}

.menu-jump a:hover {
  color: var(--accent);
  border-color: currentColor;
}

.menu-section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.menu-section__head {
  margin-bottom: 2rem;
}

.menu-section__title {
  font-size: var(--step-3);
}

.menu-section__title em {
  font-style: italic;
  color: var(--accent);
}

.menu-section__note {
  color: var(--muted);
  max-width: 28em;
  margin-top: 0.75rem;
}

.menu-section__art {
  width: clamp(5rem, 12vw, 8rem);
  color: var(--accent);
  margin-top: 1rem;
}

@media (min-width: 60em) {
  .menu-section__inner {
    display: grid;
    grid-template-columns: 4fr 8fr;
    column-gap: 4rem;
  }

  .menu-section__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
    margin-bottom: 0;
  }

  .menu-section:nth-of-type(even) .menu-section__inner {
    grid-template-columns: 8fr 4fr;
  }

  .menu-section:nth-of-type(even) .menu-section__head {
    order: 2;
    padding-left: 1rem;
  }
}

.menu-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--muted);
}

.menu-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   13. Reservations form
   -------------------------------------------------------------------------- */
.reserve__title {
  font-size: var(--step-4);
}

.reserve__title em {
  font-style: italic;
  color: var(--accent);
}

.reserve__aside {
  display: grid;
  gap: 1.5rem;
}

.reserve__aside dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  font-size: var(--step--1);
}

.reserve__aside dt {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.reserve__aside dd {
  margin: 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 1.35rem;
}

.form__row {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 40em) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label,
.field__label {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.field .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(29, 31, 26, 0.4);
  border-radius: 0;
  padding: 0.65rem 0;
  transition: border-color 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231d1f1a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.75rem;
  cursor: pointer;
}

.field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--terracotta);
  box-shadow: 0 2px 0 0 var(--terracotta);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(74, 77, 68, 0.55);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-bottom-color: #9c2f1f;
  box-shadow: 0 2px 0 0 #9c2f1f;
}

.field__error {
  font-size: 0.85rem;
  color: #8a2a1c;
  min-height: 0;
}

.field__error:empty {
  display: none;
}

.field__hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.form__actions p {
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 24em;
}

.form__status {
  font-size: 0.95rem;
  color: #8a2a1c;
}

.form__status:empty {
  display: none;
}

.btn[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.form-success {
  padding: 2rem 0 0;
  border-top: 1px solid var(--rule);
}

.form-success h3 {
  font-size: var(--step-3);
  margin-bottom: 1rem;
}

.form-success h3 em {
  font-style: italic;
  color: var(--accent);
}

.form-success p {
  max-width: var(--measure);
}

.form-success .text-link {
  margin-top: 1.25rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 60em) {
  .reserve__head {
    grid-column: 1 / 6;
  }

  .reserve__aside {
    grid-column: 1 / 5;
    align-self: end;
  }

  .reserve__form {
    grid-column: 6 / 13;
    grid-row: 1 / 3;
  }

  .reserve__art {
    grid-column: 1 / 5;
    max-width: 20rem;
  }
}

/* --------------------------------------------------------------------------
   14. Hours & location
   -------------------------------------------------------------------------- */
.hours__title {
  font-size: var(--step-4);
}

.hours__title em {
  font-style: italic;
  color: var(--accent);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours-table caption {
  text-align: left;
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.75rem;
  font-weight: 500;
}

.hours-table th,
.hours-table td {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.hours-table th {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50;
  font-size: var(--step-1);
  font-weight: 400;
  width: 50%;
}

.hours-table td {
  text-align: right;
  color: var(--cream-200);
}

.hours-table tr.is-closed td {
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.hours__note {
  margin-top: 1.25rem;
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 28em;
}

.address {
  font-style: normal;
  display: grid;
  gap: 1.5rem;
}

.address__lines {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60;
  font-size: var(--step-2);
  line-height: 1.2;
}

.address__lines span {
  display: block;
}

.address__contact {
  display: grid;
  gap: 0.35rem;
  color: var(--cream-200);
}

.address__contact a {
  color: inherit;
  text-decoration-color: var(--accent);
}

.address__contact a:hover {
  color: var(--accent);
}

.map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  background:
    radial-gradient(40% 50% at 70% 60%, rgba(168, 80, 44, 0.35) 0%, rgba(168, 80, 44, 0) 70%),
    linear-gradient(135deg, #3a4a38 0%, #2a3729 55%, #22301f 100%);
  isolation: isolate;
}

.map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 240, 227, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 240, 227, 0.07) 1px, transparent 1px);
  background-size: 3rem 3rem;
}

.map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map__pin {
  position: absolute;
  left: 62%;
  top: 48%;
  transform: translate(-50%, -100%);
  width: 2.25rem;
  color: var(--terracotta-light);
}

.map__label {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}

@media (min-width: 60em) {
  .hours__head {
    grid-column: 1 / 13;
    margin-bottom: 1rem;
  }

  .hours__table {
    grid-column: 1 / 5;
  }

  .hours__address {
    grid-column: 6 / 9;
  }

  .hours__map {
    grid-column: 9 / 13;
    align-self: start;
  }

  .map {
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------------------------------------------
   15. Reviews
   -------------------------------------------------------------------------- */
.reviews__title {
  font-size: var(--step-4);
}

.reviews__title em {
  font-style: italic;
  color: var(--accent);
}

.review-list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}

.review {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.review__mark {
  position: absolute;
  top: -0.1rem;
  left: 0;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--terracotta);
  opacity: 0.6;
  transform: translateY(-40%);
}

.review p {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60;
  font-size: var(--step-1);
  line-height: 1.35;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.review footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.review footer::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--terracotta);
}

.review__stars {
  display: inline-flex;
  gap: 0.15rem;
  color: var(--terracotta-deep);
}

.review__stars svg {
  width: 0.85rem;
  height: 0.85rem;
}

@media (min-width: 60em) {
  .reviews__head {
    grid-column: 1 / 7;
  }

  .review-list {
    grid-column: 1 / 13;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 0;
    margin-top: 1rem;
  }

  .review:nth-child(1) {
    grid-column: 1 / 5;
  }

  .review:nth-child(2) {
    grid-column: 6 / 10;
    margin-top: 5rem;
  }

  .review:nth-child(3) {
    grid-column: 9 / 13;
    margin-top: 11rem;
  }
}

/* --------------------------------------------------------------------------
   16. Private events
   -------------------------------------------------------------------------- */
.events {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 85% 20%, rgba(168, 80, 44, 0.5) 0%, rgba(168, 80, 44, 0) 70%),
    linear-gradient(170deg, #26332a 0%, #1f2a1f 60%, #171f17 100%);
}

.events__title {
  font-size: var(--step-4);
}

.events__title em {
  font-style: italic;
  color: var(--accent);
}

.events__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.events__facts strong {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60;
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1;
  color: var(--cream-100);
  margin-bottom: 0.35rem;
}

.events__facts span {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.events__art {
  width: clamp(9rem, 20vw, 14rem);
  color: var(--cream-200);
  margin-left: auto;
}

.events__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 60em) {
  .events__copy {
    grid-column: 1 / 8;
  }

  .events__side {
    grid-column: 9 / 13;
    display: grid;
    align-content: space-between;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--olive-900);
  color: var(--cream-200);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.site-footer a {
  color: inherit;
  text-decoration-color: rgba(246, 240, 227, 0.3);
}

.site-footer a:hover {
  color: var(--terracotta-light);
  text-decoration-color: currentColor;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(246, 240, 227, 0.12);
}

.footer__brand .brand {
  font-size: 1.8rem;
}

.footer__brand p {
  margin-top: 1rem;
  color: var(--sage);
  max-width: 24em;
  font-size: 0.95rem;
}

.footer__col h2 {
  font-family: var(--font-body);
  font-variation-settings: normal;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 1rem;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.footer__col address {
  font-style: normal;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.footer__hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  font-size: 0.95rem;
}

.footer__hours dt {
  color: var(--sage);
}

.footer__hours dd {
  margin: 0;
}

.social {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.social a {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(246, 240, 227, 0.2);
  border-radius: 999px;
  color: var(--cream-200);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.social a:hover {
  border-color: var(--terracotta-light);
  color: var(--terracotta-light);
}

.social svg {
  width: 1.1rem;
  height: 1.1rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--sage);
}

.footer__bottom a {
  color: var(--cream-200);
}

@media (min-width: 48em) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   18. Scroll reveal + reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--delay, 0s);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero__slide { transition: opacity 0.6s ease !important; clip-path: none !important; opacity: 0; }
  .hero__slide.is-active, .hero__slide.is-leaving { opacity: 1; }
  .hero__slide img, .hero__slide.is-active img { animation: none !important; transform: none !important; }
  .w > span { transform: none !important; }
  .hero__sub { opacity: 1 !important; transform: none !important; }
  .hero__scene { opacity: 0; }
  .hero__scene.is-active { opacity: 1; }
  .ticker__track { animation: none; }
}

/* --------------------------------------------------------------------------
   20. Editorial photography — shared photo components
   -------------------------------------------------------------------------- */
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-alt);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.photo[data-parallax] img {
  scale: 1.16;
}

.photo figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.7rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-100);
  background: linear-gradient(90deg, rgba(14, 18, 14, 0.75), rgba(14, 18, 14, 0));
  width: 100%;
  pointer-events: none;
}

.photo__overlay {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 1.25rem 1.25rem !important;
  font-size: 0.95rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: linear-gradient(0deg, rgba(14, 18, 14, 0.85), rgba(14, 18, 14, 0)) !important;
}

.photo__overlay .eyebrow {
  margin: 0;
}

/* Clip-path wipe + settle as images scroll in */
/* The clip lives on the <img>, not the figure: a clipped figure reports
   zero visible area to IntersectionObserver and the reveal never fires. */
@media (prefers-reduced-motion: no-preference) {
  .img-reveal img {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.18);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.18, 1), transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0s);
  }

  .img-reveal figcaption {
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    transition-delay: calc(var(--delay, 0s) + 0.8s);
  }

  .img-reveal.is-visible img {
    clip-path: inset(0 0 0 0);
    transform: none;
  }

  .img-reveal.is-visible figcaption {
    opacity: 1;
  }
}

.eyebrow--light {
  color: var(--terracotta-light);
}

.btn--light {
  background: var(--cream-100);
  color: var(--olive-900);
  border-color: var(--cream-100);
}

.btn--light:hover {
  background: transparent;
  color: var(--cream-100);
}

/* ---- Story ------------------------------------------------------------- */
.story__grid {
  display: grid;
  gap: 2.5rem;
}

.story__collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
}

.photo--tall {
  grid-column: 1 / 11;
  grid-row: 1;
  aspect-ratio: 4 / 5;
}

.photo--small {
  grid-column: 7 / 13;
  grid-row: 1;
  align-self: end;
  aspect-ratio: 4 / 3;
  margin-bottom: -2rem;
  box-shadow: 0 30px 60px -20px rgba(20, 26, 20, 0.45);
  outline: 6px solid var(--bg);
}

.facts {
  list-style: none;
  margin: clamp(3rem, 7vw, 5.5rem) 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.25rem;
}

.facts strong {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 300;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.facts span {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 60em) {
  .story__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 3.5rem;
  }

  .story__head { grid-column: 1 / 7; }
  .story__collage { grid-column: 8 / 13; grid-row: 1 / 3; }
  .story__copy { grid-column: 1 / 7; }

  .photo--small {
    margin-bottom: -3rem;
    margin-right: -1.5rem;
  }

  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Menu preview: hover to preview ------------------------------------ */
.menu-preview__grid {
  display: grid;
  gap: 2.5rem;
}

.menu-preview .dish-list {
  border-top: 1px solid var(--rule);
}

.menu-preview .dish {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.dish__link {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  grid-template-areas: "num thumb body price";
  align-items: center;
  column-gap: 1rem;
  padding: 1.1rem 0;
  color: inherit;
  text-decoration: none;
  transition: padding-left 0.4s var(--ease);
}

.dish__num {
  grid-area: num;
  font-family: var(--font-display);
  font-size: var(--step--1);
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.dish__thumb {
  grid-area: thumb;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
  flex: none;
}

.dish__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish__body {
  grid-area: body;
  min-width: 0;
}

.menu-preview .dish__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50;
  font-size: var(--step-1);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.6rem;
  transition: color 0.3s var(--ease);
}

.menu-preview .dish__desc {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 30em;
}

.menu-preview .dish__price {
  grid-area: price;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0;
  font-size: var(--step-1);
  color: var(--accent);
  white-space: nowrap;
  align-self: start;
  padding-top: 0.15rem;
}

.menu-preview .dish.is-active .dish__num,
.menu-preview .dish:hover .dish__num {
  color: var(--accent);
}

.dish-frame {
  display: none;
}

@media (min-width: 60em) {
  .menu-preview__grid {
    grid-template-columns: 7fr 5fr;
    column-gap: 3rem;
    align-items: start;
  }

  .dish__thumb {
    display: none;
  }

  .dish__link {
    grid-template-columns: 2.5rem 1fr auto;
    grid-template-areas: "num body price";
    padding: 1.4rem 0;
  }

  .menu-preview .dish.is-active .dish__link {
    padding-left: 0.75rem;
  }

  .menu-preview .dish.is-active .dish__name {
    color: var(--accent);
  }

  .dish-frame {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .dish-frame__inner {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 4px;
    background: var(--olive-700);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  }

  .dish-frame__img {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
  }

  .dish-frame__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .dish-frame__img.is-active {
    opacity: 1;
    z-index: 1;
  }

  .dish-frame__img.is-active img {
    transform: scale(1);
  }

  .dish-frame__img figcaption {
    position: absolute;
    left: 1.25rem;
    bottom: 1.1rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--step-2);
    color: var(--cream-100);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.5s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s;
  }

  .dish-frame__img.is-active figcaption {
    opacity: 1;
    transform: none;
  }

  .dish-frame__hint {
    display: block;
    margin-top: 0.9rem;
    text-align: right;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* ---- Full-bleed photo band -------------------------------------------- */
.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(26rem, 70vh, 40rem);
  display: grid;
  align-items: center;
  color: var(--cream-100);
  background: var(--olive-900);
  text-align: center;
}

.band__media,
.events__media {
  position: absolute;
  inset: -22% 0;
  margin: 0;
  z-index: -1;
  will-change: transform;
}

.band__media img,
.events__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::before,
.events::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.band::before {
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(14, 18, 14, 0.2), rgba(14, 18, 14, 0.75)),
    linear-gradient(180deg, rgba(14, 18, 14, 0.4), rgba(14, 18, 14, 0.4));
}

.band__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 10vh, 7rem);
  display: grid;
  justify-items: center;
  gap: 1.75rem;
}

.band__inner .eyebrow::before {
  display: none;
}

.band__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 300;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14em;
  text-wrap: balance;
}

.band__title em {
  display: block;
  font-style: italic;
  color: var(--terracotta-light);
}

/* ---- Reservations aside ------------------------------------------------ */
.photo--card {
  aspect-ratio: 4 / 5;
}

@media (min-width: 60em) {
  .photo--card {
    aspect-ratio: 3 / 4;
  }
}

/* ---- Events: photo panel --------------------------------------------- */
.events {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream-100);
  background: var(--olive-900);
  --fg: var(--cream-100);
  --muted: var(--sage);
  --accent: var(--terracotta-light);
  --bg: var(--olive-900);
  --rule: rgba(246, 240, 227, 0.18);
}

.events::before {
  background:
    linear-gradient(90deg, rgba(14, 18, 14, 0.92) 0%, rgba(14, 18, 14, 0.78) 50%, rgba(14, 18, 14, 0.35) 100%),
    linear-gradient(0deg, rgba(14, 18, 14, 0.6), rgba(14, 18, 14, 0) 40%);
}

.events__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 12vh, 9rem);
}

.events__copy {
  max-width: 40rem;
}

.events__title {
  font-size: var(--step-4);
}

.events__title em {
  font-style: italic;
  color: var(--terracotta-light);
}

.events__facts {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.events__facts strong {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 300;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--terracotta-light);
}

.events__facts span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.events__cta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.events__fine {
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--sage);
  max-width: 34em;
}

@media (prefers-reduced-motion: reduce) {
  .band__media,
  .events__media,
  .photo img {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */
@media print {
  .demo-banner,
  .site-header,
  .reserve-bar,
  .skip-link {
    display: none;
  }

  .theme-dark {
    background: #fff;
    color: #000;
  }
}

/* --------------------------------------------------------------------------
   21. Menu page photo hero
   -------------------------------------------------------------------------- */
.menu-hero__media {
  position: absolute;
  inset: -22% 0;
  margin: 0;
  z-index: -1;
  will-change: transform;
}

.menu-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(14, 18, 14, 0.9) 0%, rgba(14, 18, 14, 0.7) 50%, rgba(14, 18, 14, 0.3) 100%),
    linear-gradient(0deg, rgba(14, 18, 14, 0.95) 0%, rgba(14, 18, 14, 0.1) 60%);
}

.menu-hero > .wrap {
  position: relative;
  z-index: 1;
}

/* Photo-card captions need to hold up over light photos too */
.photo__overlay .eyebrow {
  color: var(--terracotta-light);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.photo__overlay span:not(.eyebrow) {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.photo__overlay {
  background: linear-gradient(0deg, rgba(14, 18, 14, 0.92) 0%, rgba(14, 18, 14, 0.55) 55%, rgba(14, 18, 14, 0) 100%) !important;
}

@media (prefers-reduced-motion: reduce) {
  .menu-hero__media { transform: none !important; }
}
