/* ==========================================================================
   Jason Neroni — site styles
   Coastal light: bone, espresso, terracotta, olive.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;

  /* Surfaces */
  --bone: #F5EFE6;
  --paper: #FBF8F2;
  --sand: #ECE3D4;
  --white: #FFFFFF;
  --night: #201A16;
  --night-2: #2A231E;

  /* Text */
  --ink: #2A2420;
  --ink-soft: #5F544B;
  --muted: #6E6257;
  --on-night: #F5EFE6;
  --on-night-soft: #BFB3A3;

  /* Accents */
  --terra: #B5532F;        /* large display type & decoration only (4.3:1) */
  --terra-deep: #9A4325;   /* text, links, buttons (5.7:1) */
  --olive: #6B7048;
  --ember: #E0905F;        /* accent on dark surfaces */

  /* Lines */
  --line: #DACDBB;
  --line-strong: #8C7F72;  /* form borders: 3.4:1 non-text contrast */
  --line-night: rgb(245 239 230 / .16);

  /* Feedback */
  --error: #A3271B;
  --error-bg: #FBEDEA;
  --success: #4E5A2C;

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Zapfino", "Italianno", "Snell Roundhand", cursive;
  --script-scale: 1;       /* .no-zapfino raises this so the fallback matches Zapfino's width */

  --fs-hero: clamp(3.1rem, 1.5rem + 6.2vw, 8rem);
  --fs-h2: clamp(2.5rem, 1.75rem + 3.2vw, 4.875rem);
  --fs-h3: clamp(1.625rem, 1.4rem + .9vw, 2.25rem);
  --fs-lead: clamp(1.125rem, 1.03rem + .4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .75rem;

  /* Layout */
  --maxw: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(5.5rem, 3.5rem + 8vw, 10.5rem);
  --header-h: 76px;
  --radius: 4px;
  --radius-lg: 20px;
  --arch: 999px 999px var(--radius) var(--radius);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 600ms;
  --dur-4: 1000ms;

  /* Layers */
  --z-header: 40;
}

.no-zapfino { --script-scale: 2.15; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p, figure, blockquote, dl, dd { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--terra-deep); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--ember); }
::selection { background: var(--terra-deep); color: var(--paper); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.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;
}

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 200;
  padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--ink); color: var(--bone); text-decoration: none; font-weight: 600;
  transform: translateY(-200%); transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }

/* ---------- 3. Type ---------- */
.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.h2 em, .intro-title em, .footer-cta-text em {
  font-style: italic; font-weight: 400; color: var(--terra);
}
.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); }

.eyebrow,
.section-label {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.section-label { margin-bottom: 1.75rem; }
/* On narrow screens, wrap whole phrases onto a new line instead of squeezing them into columns. */
.eyebrow { flex-wrap: wrap; row-gap: .4rem; }
.section-label .n {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.125rem; letter-spacing: .02em; text-transform: none;
  color: var(--terra-deep);
}
.section-label .rule { width: 2.75rem; height: 1px; background: currentColor; opacity: .45; }

/* ---------- 4. Buttons & links ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  --btn-fill: var(--terra-deep);
  --btn-fg-hover: var(--bone);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 3.25rem; padding: .85rem 1.6rem;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .9375rem; font-weight: 500; letter-spacing: .02em; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  touch-action: manipulation;
  transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform var(--dur-3) var(--ease-out);
}
.btn .icon { transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) {
  .btn:hover { color: var(--btn-fg-hover); border-color: var(--btn-fill); }
  .btn:hover::before { transform: translateY(0); }
  .btn:hover .icon { transform: translateX(3px); }
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline-offset: 4px; }

.btn--sm { min-height: 2.75rem; padding: .55rem 1.2rem; font-size: .875rem; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--light { --btn-bg: var(--bone); --btn-fg: var(--ink); --btn-fill: var(--ember); --btn-fg-hover: var(--night); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: 0;
  border: 0; background: none;
  font-weight: 500; text-decoration: none; cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 100% calc(50% + .8em);
  transition: background-size var(--dur-3) var(--ease-out), color var(--dur-2);
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) {
  .link-arrow:hover { background-size: 0 1px; color: var(--terra-deep); }
  .link-arrow:hover .icon { transform: translateX(4px); }
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: inherit;
  transition: background-color var(--dur-2), border-color var(--dur-2), transform var(--dur-1);
}
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) { .icon-btn:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); } }
.icon-btn--light { border-color: rgb(245 239 230 / .35); }
@media (hover: hover) { .icon-btn--light:hover { background: var(--bone); color: var(--night); border-color: var(--bone); } }

/* ---------- 5. Image frames ---------- */
.ph {
  position: relative; display: block; overflow: hidden;
  background-color: var(--sand);
  background-size: cover; background-position: center;
  border-radius: var(--radius);
}
.ph picture { position: absolute; inset: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph[data-parallax] picture { inset: -7% 0; }

.ph--arch { border-radius: var(--arch); }
.ph--round { border-radius: 50%; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--fill { position: absolute; inset: 0; border-radius: 0; }

/* Fade photos in as they arrive (only when JS is running). */
.js .ph img { opacity: 0; transition: opacity .9s var(--ease-out); }
.js .ph img.is-loaded { opacity: 1; }

figcaption { margin-top: .9rem; font-size: .8125rem; letter-spacing: .02em; color: var(--muted); }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center;
  box-shadow: inset 0 -1px 0 var(--line);
  transition: transform var(--dur-3) var(--ease-out);
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgb(245 239 230 / .86);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity var(--dur-2);
}
.site-header.is-scrolled::before { opacity: 1; }

.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-script); font-size: calc(1.2rem * var(--script-scale)); font-weight: 400;
  line-height: 1; padding-top: .3em; text-decoration: none; white-space: nowrap;
}
.primary-nav ul { display: flex; gap: clamp(1.5rem, 3.2vw, 3.75rem); }
.primary-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-script); font-size: calc(1.02rem * var(--script-scale)); font-weight: 400;
  line-height: 1; padding-top: .3em; text-decoration: none; white-space: nowrap;
  transition: color var(--dur-2);
}
.primary-nav a[aria-current="true"] { color: var(--terra-deep); }
@media (hover: hover) {
  .primary-nav a:hover { color: var(--terra-deep); }
}
.header-actions { display: flex; align-items: center; gap: .75rem; }

.menu-toggle {
  display: none; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent;
}
.menu-toggle-lines, .menu-toggle-lines::before {
  display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
}
.menu-toggle-lines { position: relative; transform: translateY(-3px); }
.menu-toggle-lines::before { content: ""; position: absolute; top: 6px; width: 12px; right: 0; transition: width var(--dur-2) var(--ease-out); }
@media (hover: hover) { .menu-toggle:hover .menu-toggle-lines::before { width: 18px; } }

@media (max-width: 1023px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 480px) {
  .header-cta { display: none; }
}

/* ---------- 7. Menu (mobile) ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; color: inherit; }
dialog::backdrop { background: rgb(32 26 22 / .5); }

.menu {
  position: fixed; inset: 0; width: 100%; height: 100dvh; margin: 0;
  background: var(--bone); color: var(--ink);
  opacity: 0; transform: translateY(-1.5rem);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), overlay .3s allow-discrete, display .3s allow-discrete;
}
.menu[open] {
  display: flex; opacity: 1; transform: none;
  transition-duration: .5s, .7s, .5s, .5s;
}
@starting-style { .menu[open] { opacity: 0; transform: translateY(-1.5rem); } }

.menu-inner { display: flex; flex-direction: column; min-height: 100%; padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.menu-inner > nav { margin-block: auto; }
.menu-links { padding-block: 2rem; }
.menu-links li {
  border-bottom: 1px solid var(--line);
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms + 120ms);
}
@starting-style { .menu[open] .menu-links li { opacity: 0; transform: translateY(1.25rem); } }
.menu-links a {
  display: flex; align-items: baseline; gap: 1.25rem; padding-block: .85rem;
  font-family: var(--font-display); font-size: clamp(2.1rem, 1.5rem + 3vw, 3.25rem); line-height: 1.05;
  text-decoration: none;
}
.menu-links .n { font-family: var(--font-body); font-size: .75rem; letter-spacing: .15em; color: var(--terra-deep); }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; color: var(--ink-soft); }

/* ---------- 8. Hero ---------- */
.script { font-family: var(--font-script); font-weight: 400; font-style: normal; letter-spacing: 0; }

.hero {
  --strip-h: clamp(240px, 34svh, 440px);
  position: relative; overflow: clip;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: var(--header-h);
}
/* Landing (NewLandingPage2, 2026-11-16; reworked 2026-11-23 from the user's landing mockup, drawn at
   1600x894): the name nearly as wide as the text column, then a large upright line, the flourish, two
   italic lines and a small place line, all centred under it; the portrait on the right. The block runs
   wider than the page container: the text starts close to the left edge and the portrait ends where the
   container does. Everything grows with the window's width but stops at its height, so the food strip
   always keeps its place at the bottom of the first screen. */
.hero-grid {
  --hero-gap: clamp(1.25rem, 1.85vw, 2.25rem);
  /* The height the text may use: the screen minus the header, the food strip and the padding. */
  --copy-room: calc(100svh - var(--header-h) - var(--strip-h) - 3rem);
  /* 1% of the width, up to the 1920px where the landing stops growing. */
  --w1: min(1vw, 19.2px);
  /* One unit sizes the whole text block: 1% of the width (16px at the mockup's 1600px), but no more
     than the height allows, so on short windows the name and lines shrink together. */
  --u: min(var(--w1), calc(var(--copy-room) / 29.5));
  /* The portrait: about a fifth of the width (316px at 1600px, as in the mockup), and short enough
     that the food strip stays on screen. It stops growing at 1920px along with the text. */
  --arch-w: min(max(calc(var(--w1) * 19.75), 200px), calc((100svh - var(--header-h) - var(--strip-h) - 5rem) * .777));
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--hero-gap);
  align-items: center;
  max-width: 1920px;
  padding-block: clamp(.75rem, 2svh, 1.75rem) clamp(1rem, 2.4svh, 2.5rem);
  padding-inline: clamp(1rem, 1.6vw, 2rem) clamp(1rem, calc(var(--w1) * 4.4), 6.5rem);
}
.hero-copy { position: relative; z-index: 2; text-align: center; }
.hero-head { display: flex; justify-content: center; }

/* Zapfino's swashes reach far outside the line box, so the name gets room to breathe. */
.hero-name {
  font-size: calc(var(--u) * 8.8 * var(--script-scale));
  /* Room for the swashes: the N's top stroke rises about .4em above the text, and the J's reaches back
     past the letter. Without the top room, the N touched the header's line on shorter windows. */
  line-height: 1.25; padding: .45em 0 0 .33em;
  white-space: nowrap; color: var(--ink);
}
/* The lines under the name (23 Nov 2026), in Cormorant Garamond like Jason's letter before them (the
   letter is kept in saved-for-later/). Sizes match the mockup at 1600px: the first line italic at
   about 55px, the two middle lines at about 32px, the place line italic at about 22px. */
.hero-lines {
  /* Pulled up into the empty space under the name (the J's tail only reaches down at the far left).
     The left padding centres the lines under the name's letters rather than the J's long swash. */
  margin-top: calc(var(--u) * -1.52); padding-left: calc(var(--u) * 4);
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
}
.hero-lead { font-style: italic; font-size: calc(var(--u) * 3.46); line-height: 1.1; }
.hero-lines > p:not(.hero-lead) { font-style: italic; font-size: calc(var(--u) * 2.013); line-height: 1.6; }
.hero-lines > p.hero-place { font-size: max(1rem, calc(var(--u) * 1.37)); margin-top: calc(var(--u) * .45); }
.hero-lines > p { text-wrap: balance; }   /* on phones, wrapped lines split evenly instead of leaving one word alone */
.hero-lines-sep { padding-inline: .3em; color: var(--ink-soft); }
/* The stand-in font has ordinary proportions, so it doesn't need Zapfino's extra line height. */
.no-zapfino .hero-name { line-height: .86; padding-top: 0; }   /* its swashes stay near the letters, so it
   needs almost none of the room above the name that Zapfino's N does (the font is 2.15x, so .45em was ~100px) */
.flourish {
  display: block; aspect-ratio: 1200 / 54;
  background: var(--ink);
  -webkit-mask: url("../flourish.png") center / contain no-repeat;
  mask: url("../flourish.png") center / contain no-repeat;
}
.hero-lines > .flourish { width: calc(var(--u) * 24.8); margin: calc(var(--u) * 1.15) auto calc(var(--u) * 1.2); }

.hero-media { position: relative; }
.hero-arch { position: relative; margin-inline: auto; width: var(--arch-w); }
.hero-arch .ph { aspect-ratio: 4 / 5.15; }
.hero-inset {
  position: absolute; left: -24%; bottom: 15%;
  width: 42%; z-index: 2;
}
.hero-inset .ph { aspect-ratio: 1; border: 5px solid var(--bone); box-shadow: 0 28px 50px -28px rgb(42 36 32 / .55); }

.hero-badge {
  position: absolute; right: -17.5%; top: -1%; z-index: 2;
  width: clamp(96px, 8vw, 132px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--bone);
  color: var(--ink);
}
.hero-badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-badge-ring text { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; fill: currentColor; }
.hero-badge-spark { width: 26%; height: 26%; color: var(--terra); }

/* Food strip: a slow, endless pan across Jason's dishes. Two identical sets of photos sit side by
   side; the track slides left by exactly one set, then loops, so the seam never shows. */
.food-strip { position: relative; height: var(--strip-h); overflow: hidden; background: var(--sand); }
/* Clip the long track side to side only, so a hovered photo can lift up out of the strip. */
@supports (overflow: clip) { .food-strip { overflow-x: clip; overflow-y: visible; } }
.strip-track { display: flex; width: max-content; height: 100%; }
.strip-set { display: flex; height: 100%; }
.strip-item { flex: none; height: 100%; aspect-ratio: 4 / 5; }
.strip-item .ph { width: 100%; height: 100%; border-radius: 0; }
@media (prefers-reduced-motion: no-preference) {
  .strip-track { animation: strip-pan var(--strip-dur, 120s) linear infinite; will-change: transform; }
  .food-strip.is-paused .strip-track,
  .food-strip.is-offscreen .strip-track { animation-play-state: paused; }

  /* Mouse users: hovering a photo pauses the pan and lifts that photo 15%, growing up from the
     strip's bottom edge, while every other photo washes out 50% so the lifted one stands alone.
     Moving to another photo hands the lift to it; leaving the strip restores full colour and resumes. */
  @media (hover: hover) and (pointer: fine) {
    .strip-track:hover { animation-play-state: paused; }
    .strip-item {
      position: relative; transform-origin: 50% 100%;
      transition: transform .5s var(--ease-out), z-index 0s .5s;  /* stay on top until it has shrunk back */
    }
    .strip-item::after {
      content: ""; position: absolute; inset: 0; pointer-events: none;
      background: var(--bone); opacity: 0;
      transition: opacity .45s var(--ease-out);
    }
    .strip-track:hover .strip-item:not(:hover)::after { opacity: .5; }
    .strip-item .ph { transition: box-shadow .5s var(--ease-out); }
    .strip-item:hover { z-index: 2; transform: scale(1.15); transition: transform .5s var(--ease-out), z-index 0s; }
    .strip-item:hover .ph { box-shadow: 0 30px 56px -18px rgb(32 26 22 / .6); }
  }
}
@keyframes strip-pan { to { transform: translate3d(-50%, 0, 0); } }

.strip-toggle {
  position: absolute; right: var(--gutter); bottom: 1rem; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgb(245 239 230 / .88); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -10px rgb(32 26 22 / .5);
  opacity: .82; transition: opacity var(--dur-2), transform var(--dur-1);
}
.strip-toggle:hover, .strip-toggle:focus-visible { opacity: 1; }
.strip-toggle:active { transform: scale(.94); }
.strip-toggle .icon { width: 1.15rem; height: 1.15rem; }
.strip-toggle .icon-play, .strip-toggle[aria-pressed="true"] .icon-pause { display: none; }
.strip-toggle[aria-pressed="true"] .icon-play { display: block; }

/* Reduced motion: no auto-scroll. The strip becomes a row you can swipe or scroll yourself. */
@media (prefers-reduced-motion: reduce) {
  .food-strip { overflow-x: auto; scrollbar-width: none; }
  .food-strip::-webkit-scrollbar { display: none; }
  .strip-set[aria-hidden="true"], .strip-toggle { display: none; }
}

@media (max-width: 1023px) {
  .hero { --strip-h: clamp(220px, 30svh, 300px); min-height: auto; }
  /* One column: the name and the lines, centred, then the photo centred below. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding: 1.5rem var(--gutter) 2.75rem; row-gap: 2.5rem; }
  /* The photo column shrinks to the photo, so the inset and badge sit on its edges, not the screen's. */
  .hero-media { justify-self: center; width: min(62%, 340px); }
  .hero-arch { width: 100%; }
  .hero-name { font-size: calc(10.4vw * var(--script-scale)); }
  .hero-lines { margin-top: .75rem; padding-left: 0; }
  .hero-lead { font-size: clamp(1.4rem, 4.6vw, 2.4rem); line-height: 1.2; }
  .hero-lines > p:not(.hero-lead) { font-size: clamp(1.125rem, 2.9vw, 1.5rem); line-height: 1.5; }
  .hero-lines > p.hero-place { font-size: 1rem; margin-top: .75rem; }
  .hero-lines > .flourish { width: min(60%, 20rem); margin: 1rem auto; }
  .hero-inset { left: -18%; bottom: 6%; }
  .hero-badge { right: -16%; top: -7%; }
  .food-strip { --strip-dur: 90s; }
}
@media (max-width: 600px) {
  .hero-lines > .flourish { width: 66%; }
  .hero-media { width: 64%; }
  .hero-badge { width: 84px; right: -15%; top: -5%; }
}

/* ---------- 8b. Intro: a video window that opens to full screen as you scroll ----------
   Static state first (no JavaScript, reduced motion): one screen showing the clip's last frame,
   lightened 50% toward the page colour, with the text over it. */
/* --scene-scroll is the scene's scroll distance while the stage is stuck; the script sets it from the
   scene's steps (drop 300 + open 1500). This default matches, so nothing shifts when the script starts. */
.intro { --scene-scroll: 1800px; --intro-lighten: .5; position: relative; }
.intro-stage {
  position: relative; min-height: 100svh; overflow: hidden;   /* hides the window while it's tucked above */
  display: flex; flex-direction: column; justify-content: flex-end;
}
.intro-window { position: absolute; inset: 0; background: var(--night); }
.intro-video, .intro-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro-video { display: none; }
.intro-wash { position: absolute; inset: 0; background: var(--bone); opacity: var(--intro-lighten); pointer-events: none; }
.intro-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end;
  /* 100vh − 100svh is the phone toolbar, so the text never ends up underneath it */
  padding-block: calc(var(--header-h) + 3rem) calc(clamp(2.5rem, 9svh, 6rem) + (100vh - 100svh));
}

/* With motion: the section is one scroll distance taller than the screen, and a screen-sized stage
   sticks while it plays. The window (the middle 10%, 45%–55% each way) slides out from under the
   marquee's bottom line, the top edge of this section, and down to the centre, then opens to full
   screen while the clip scrubs (never zoomed: the whole frame shows) and the wash lightens it. The starting
   transform below tucks the window just above the stage's top edge, where the stage clips it out of
   sight, so it's hidden in the right place before the script runs. */
.motion .intro { height: calc(var(--scene-scroll) + 100vh); }
.motion .intro-stage { position: sticky; top: 0; height: 100vh; min-height: 0; }
/* A stuck stage keeps changing where it sits in the page as you scroll. If the browser picked something
   in it to anchor the scroll position to, it would nudge the page a few pixels on each scroll. */
.motion [data-scene-stage] { overflow-anchor: none; }
.motion .intro-window { clip-path: inset(45%); transform: translateY(-55vh); }
.motion .intro-video { display: block; }
.motion .intro-still { display: none; }
.motion .intro-wash { opacity: 0; }
.motion [data-reveal-title] { visibility: hidden; }
.motion [data-reveal-copy] { opacity: 0; transform: translateY(48px); }

.intro-title {
  grid-column: 1 / span 8;
  font-family: var(--font-display); font-size: var(--fs-hero); font-weight: 500;
  line-height: .93; letter-spacing: -.028em; text-wrap: balance;
}
.intro-copy { grid-column: 9 / -1; padding-bottom: .5rem; }
.intro-copy .lead { max-width: 30rem; color: var(--ink); }   /* full-strength ink: it sits on the lightened video */
.intro-title em { color: var(--terra-deep); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.25rem; }
@media (max-width: 1023px) {
  .intro-title, .intro-copy { grid-column: 1 / -1; }
  .intro-copy { padding-bottom: 0; margin-top: 1rem; }
}

/* ---------- 9. Marquee ---------- */
.marquee { overflow: hidden; padding-block: clamp(1.4rem, 2.6vw, 2.4rem); border-block: 1px solid var(--line); }
.marquee-track {
  display: flex; width: max-content; gap: 2.25rem;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.75rem); line-height: 1.05;
  color: var(--terra); white-space: nowrap;
  will-change: transform;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 2.25rem; }
.marquee-track svg { width: .38em; height: .38em; color: var(--olive); }

/* ---------- 10. Story ---------- */
.story-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.story-media { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 2rem); }
.story-copy { grid-column: 7 / -1; padding-top: clamp(0rem, 4vw, 4rem); }
.story-copy .h2 { margin-bottom: 2.5rem; }
.prose { max-width: 38rem; }
.prose p + p { margin-top: 1.25rem; }
.prose p:not(.lead) { color: var(--ink-soft); }
.statement {
  margin-block: 3.5rem;
  padding-left: 1.5rem; border-left: 1px solid var(--terra);
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.85rem); line-height: 1.12;
  max-width: 34rem;
}
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.facts dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: .5rem; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; }

.career { margin-top: clamp(5rem, 9vw, 8rem); }
.career-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--ink);
}
.timeline li {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 0 1.5rem; align-items: baseline;
  padding-block: 1.5rem; border-bottom: 1px solid var(--line);
}
.t-year { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--terra-deep); }
.t-name {
  font-family: var(--font-display); font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.4rem); line-height: 1.1;
  transition: transform var(--dur-3) var(--ease-out), color var(--dur-2);
}
.t-meta { text-align: right; font-size: var(--fs-small); color: var(--muted); }
/* The listing under the mouse: the script marks it is-hovered (see initTimelineHover in main.js, which
   keeps the page from jumping as listings open and close). Without JS, plain :hover does the same. */
@media (hover: hover) {
  html:not(.js) .timeline li:hover .t-name,
  .timeline li.is-hovered .t-name { transform: translateX(10px); color: var(--terra-deep); }
}

/* Media under each listing. Closed, it takes no space. Pointing at a listing opens it to fit whatever
   is inside (more photos, a taller opening); with nothing inside yet it opens to --t-media-space.
   It opens below the name, so the name stays under the pointer, and the whole row (name plus its
   media) counts as pointed at, so the pointer can move down into the photos without it closing.
   A listing with no .t-media element doesn't open at all.
   How tall it opens: the script measures what's inside and keeps it in --t-media-h, and the height
   animates to that. (The usual CSS-only way, a grid row growing from 0fr to 1fr, is measured wrongly
   by Safari for wrapping rows of photos: Hotel Alma opened to 4,479px for 725px of photos.) Without
   the script, --t-media-h is unset and a listing opens straight to its natural height. */
.timeline { --t-media-space: clamp(160px, 20vw, 280px); }
.t-media {
  grid-column: 1 / -1;
  height: 0; overflow: hidden;
  transition: height .5s var(--ease-out);
}
.t-media-clip {
  display: flow-root;   /* keeps its contents' margins inside it, so its height is the whole opening */
  opacity: 0; transition: opacity .3s;
}
.t-media-clip:empty::before { content: ""; display: block; height: var(--t-media-space); }
/* Keyboard focus inside a listing opens it; so does a film that's playing, until it's paused,
   so a visitor can move the mouse away and keep watching. */
.timeline li:has(:focus-visible) .t-media,
.timeline li.is-playing .t-media { height: var(--t-media-h, auto); }
.timeline li:has(:focus-visible) .t-media-clip,
.timeline li.is-playing .t-media-clip { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  html:not(.js) .timeline li:hover .t-media,
  .timeline li.is-hovered .t-media { height: var(--t-media-h, auto); transition-duration: .75s; }
  html:not(.js) .timeline li:hover .t-media-clip,
  .timeline li.is-hovered .t-media-clip { opacity: 1; transition: opacity .5s .15s; }
}
/* Touch screens can't hover: tapping a listing that has media opens or closes it (the script adds
   is-open), and a small plus after the name shows which listings have something inside. */
@media (hover: none), (pointer: coarse) {
  .timeline li.is-open .t-media { height: var(--t-media-h, auto); }
  .timeline li.is-open .t-media-clip { opacity: 1; }
  .timeline li:has(.t-media-clip > *) { cursor: pointer; }
  .timeline li:has(.t-media-clip > *) .t-name::after {
    content: "+"; display: inline-block; margin-left: .45em;
    font-family: var(--font-body); font-size: .62em; font-weight: 400; line-height: 1;
    color: var(--terra-deep); vertical-align: .15em;
    transition: transform var(--dur-3) var(--ease-out);
  }
  .timeline li.is-open .t-name::after { transform: rotate(45deg); }
}
/* Layout for photos added later: a row that wraps, lined up with the names. */
.t-media-grid {
  display: flex; flex-wrap: wrap; gap: 1rem;
  padding: 1.75rem 0 .5rem calc(9rem + 1.5rem);
}
.t-media-grid img, .t-media-grid video {
  height: clamp(150px, 17vw, 250px); width: auto; max-width: 100%;
  border-radius: var(--radius); object-fit: cover;
}
/* Films with sound and controls. Side by side they share the row at the same height: each one's
   share of the width follows its shape (--ar, width / height), so a wide film gets more room.
   No film grows taller than --film-max-h, so a tall phone film on its own (Dante) stays a narrow
   column instead of stretching across the row. */
.t-media-film {
  --ar: 16 / 9; --film-max-h: min(70vh, 640px);
  flex: calc(var(--ar)) 1 0; min-width: 0; max-width: calc(var(--film-max-h) * var(--ar));
}
.t-media-film video {
  display: block; width: 100%; height: auto; aspect-ratio: var(--ar);
  background: var(--night);
}
.t-media-film figcaption { margin-top: .75rem; }
@media (max-width: 700px) { .t-media-film { flex-basis: 100%; } }

/* Photo thumbnails: a justified grid. Each photo's share of a row follows its shape (--ar), so every
   row lines up at both edges without cropping anything; the last row keeps its natural size.
   Selecting a photo opens it large in the photo viewer, with arrows through that listing's photos. */
.t-media-photos {
  --thumb-h: clamp(110px, 10vw, 150px);
  display: flex; flex-wrap: wrap; gap: .75rem;
  padding: 1.75rem 0 .5rem calc(9rem + 1.5rem);
}
.t-media-grid + .t-media-photos { padding-top: 1.25rem; }
.t-media-photos::after { content: ""; flex: 10000 1 0; }   /* soaks up the last row's spare room */
.t-thumb {
  --ar: 4 / 3;
  flex: calc(var(--ar)) 1 calc(var(--thumb-h) * var(--ar));
  min-width: 0; padding: 0; border: 0; background: none;
  border-radius: var(--radius); cursor: zoom-in;
}
.t-thumb .ph { width: 100%; aspect-ratio: var(--ar); border-radius: inherit; }
.js .t-thumb .ph img { transition: opacity .9s var(--ease-out), transform .6s var(--ease-out); }
@media (hover: hover) { .t-thumb:hover .ph img { transform: scale(1.05); } }

@media (max-width: 1023px) {
  .story-media, .story-copy { grid-column: 1 / -1; }
  .story-media { position: relative; top: 0; max-width: 560px; }
  .story-copy { padding-top: 2rem; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; gap: 1.25rem; }
  .timeline li { grid-template-columns: 1fr; gap: .35rem; }
  .t-meta { text-align: left; }
  .t-media { margin-top: -.35rem; }   /* no extra gap while closed */
  .t-media-grid { padding-left: 0; padding-top: 1.25rem; }
  .t-media-photos { --thumb-h: 92px; gap: .5rem; padding-left: 0; padding-top: 1.25rem; }
}

/* ---------- 11. Cooking (dark) ---------- */
.section--dark { background: var(--night); color: var(--on-night); }
.section--dark .section-label { color: var(--on-night-soft); }
.section--dark .section-label .n,
.section--dark .h2 em { color: var(--ember); }

.section-head { max-width: 54rem; margin-bottom: clamp(3.5rem, 7vw, 6.5rem); }
.section-head--split { max-width: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
.section-head--split > div { grid-column: 1 / span 7; }
.section-head--split > .lead { grid-column: 9 / -1; }
@media (max-width: 1023px) {
  .section-head--split > div, .section-head--split > .lead { grid-column: 1 / -1; }
}

.chapters { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.chapters-media {
  grid-column: 1 / span 6;
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.chapters-frame {
  position: relative; overflow: hidden;
  height: min(74svh, 700px); aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: var(--arch);
  background: var(--night-2);
}
.chapters-frame .ph { opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease-out), transform 1.6s var(--ease-out); }
.chapters-frame .ph.is-active { opacity: 1; transform: none; }
.chapters-count { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--on-night-soft); }
.chapters-count span { color: var(--ember); font-style: italic; }

.chapters-list { grid-column: 8 / -1; }
.chapter {
  min-height: 82svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 4rem;
  border-top: 1px solid var(--line-night);
}
.chapter:first-child { border-top: 0; }
.chapter-img { display: none; }
.chapter-num { font-family: var(--font-display); font-style: italic; font-size: 1.375rem; color: var(--ember); }
.chapter-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(3.25rem, 2rem + 4vw, 6rem); line-height: .95; letter-spacing: -.02em;
  margin-block: .5rem 1.75rem;
}
.chapter-text { max-width: 31rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--on-night-soft); }
.chapter-points { margin-top: 2.25rem; max-width: 31rem; border-top: 1px solid var(--line-night); }
.chapter-points li {
  display: flex; align-items: center; gap: .9rem;
  padding-block: .85rem; border-bottom: 1px solid var(--line-night);
  font-size: var(--fs-small); color: var(--on-night);
}
.chapter-points li::before { content: ""; width: 1rem; height: 1px; background: var(--ember); flex: none; }

@media (max-width: 1023px) {
  .chapters { display: block; }
  .chapters-media { display: none; }
  .chapter { min-height: 0; padding-block: 3rem 3.5rem; border-top: 0; }
  .chapter-img { display: block; aspect-ratio: 4 / 5; width: min(100%, 520px); margin-bottom: 2.25rem; background-color: var(--night-2); }
}

/* ---------- 12. Private dining ---------- */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 2.6vw, 2.75rem); align-items: start; }
.offer:nth-child(2) { margin-top: clamp(2rem, 6vw, 6rem); }
.offer:nth-child(3) { margin-top: clamp(1rem, 3vw, 3rem); }
.offer-img { aspect-ratio: 4 / 5; }
.offer-img picture { transition: transform 1.4s var(--ease-out); }
/* Crop in on photos whose white plate rim would otherwise draw a second arch inside the frame. */
.ph--zoom picture { inset: -13%; max-width: none; }
@media (hover: hover) { .offer:hover .offer-img picture { transform: scale(1.045); } }
.offer-body { padding-top: 1.75rem; }
.offer-meta { font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--terra-deep); }
.offer .h3 { margin-block: .65rem .85rem; }
.offer-body > p:not(.offer-meta) { color: var(--ink-soft); margin-bottom: 1rem; max-width: 26rem; }

.process {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter);
  margin-top: clamp(5rem, 10vw, 9rem);
}
.process-title { grid-column: 1 / span 3; }
.steps { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.step { position: relative; padding-top: 1.75rem; }
.step-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: left; }
.step-num { font-family: var(--font-display); font-style: italic; font-size: 2.25rem; line-height: 1; color: var(--terra-deep); }
.step h4 { font-family: var(--font-display); font-size: 1.625rem; line-height: 1.15; margin-block: .85rem .6rem; }
.step p { font-size: var(--fs-small); color: var(--ink-soft); }

@media (max-width: 1023px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer:nth-child(2) { margin-top: 3rem; }
  .offer:nth-child(3) { margin-top: 0; }
  .process-title, .steps { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .offers { grid-template-columns: 1fr; gap: 3.5rem; }
  .offer:nth-child(n) { margin-top: 0; }
  .offer-img { width: min(100%, 460px); }
  .steps { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ---------- 13. Gallery ---------- */
.kitchen { background: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2.25rem); align-items: start; }
.g-item { grid-column: span var(--span, 4); margin-top: var(--mt, 0); }
.g-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; border-radius: var(--radius); }
.g-btn .ph { aspect-ratio: var(--ar, 4 / 5); }
.g-btn picture { transition: transform 1.4s var(--ease-out); }
.g-cap {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .8rem; font-size: .8125rem; letter-spacing: .03em; color: var(--muted);
}
.g-cap span:last-child { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--terra-deep); }
@media (hover: hover) {
  .g-btn:hover picture { transform: scale(1.05); }
  .g-btn:hover .g-cap span:first-child { color: var(--ink); }
}
@media (max-width: 1023px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-item { grid-column: span 1; margin-top: 0; }
  .g-item .ph { aspect-ratio: 4 / 5; }
  .g-item:nth-child(6n + 1) { grid-column: 1 / -1; }
  .g-item:nth-child(6n + 1) .ph { aspect-ratio: 4 / 3; }
}

/* ---------- 14. Consulting ---------- */
.section--sand { background: var(--sand); }
.consulting-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.consulting-copy { grid-column: 1 / span 6; }
.consulting-copy .h2 { margin-bottom: 1.75rem; }
.consulting-copy .lead { max-width: 34rem; }
.consulting-media { grid-column: 8 / -1; position: sticky; top: calc(var(--header-h) + 2rem); }
.services { margin-block: 3rem 3rem; border-top: 1px solid var(--line-strong); }
.service {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem;
  padding-block: 1.6rem; border-bottom: 1px solid var(--line-strong);
}
.service-num { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--terra-deep); padding-top: .2rem; }
.service h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.3rem + .7vw, 1.9rem); line-height: 1.15; }
.service p { margin-top: .45rem; max-width: 33rem; color: var(--ink-soft); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line-strong); }
.stats div { display: flex; flex-direction: column; gap: .4rem; }
.stats dd { order: -1; font-family: var(--font-display); font-size: clamp(2.4rem, 1.7rem + 2.4vw, 3.75rem); line-height: .95; color: var(--terra-deep); font-variant-numeric: lining-nums tabular-nums; }
.stats dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stats-note { margin-top: 1rem; font-size: var(--fs-small); color: var(--muted); }

.projects { margin-bottom: 3rem; }
.projects-title { font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.project-list { margin-top: 1.25rem; display: grid; gap: 1rem; }
.project { padding: 1.5rem 1.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.project-meta { font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-deep); }
.project h4 { margin-top: .4rem; font-family: var(--font-display); font-size: clamp(1.5rem, 1.3rem + .7vw, 1.9rem); font-weight: 500; line-height: 1.15; }
.project p:last-child { margin-top: .5rem; color: var(--ink-soft); }

@media (max-width: 1023px) {
  .consulting-copy, .consulting-media { grid-column: 1 / -1; }
  .consulting-media { position: relative; top: 0; max-width: 520px; margin-top: 2rem; }
}

/* ---------- 15. Press ---------- */
.accolades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) var(--gutter); }
.accolade { display: flex; flex-direction: column; gap: .75rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.accolade-title { font-family: var(--font-display); font-size: clamp(2.4rem, 1.7rem + 2.4vw, 4rem); line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.accolade-sub { font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; line-height: 1.6; text-transform: uppercase; color: var(--muted); }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(4rem, 8vw, 6.5rem); }
.quote { padding-left: 1.25rem; border-left: 1px solid var(--terra); }
.quote blockquote, .quote-text { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); line-height: 1.28; }
.quote figcaption { margin-top: 1.25rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--terra-deep); }

.honors {
  display: flex; align-items: baseline; gap: .5rem 1.25rem;
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
  max-width: 62rem; color: var(--ink-soft); line-height: 1.8;
}
.honors-label { flex: none; font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
/* Each honor stays whole; the separator dot trails its item, so a wrapped line never starts with one. */
.honors-list { display: flex; flex-wrap: wrap; column-gap: .9rem; }
.honors-list li { white-space: nowrap; }
.honors-list li:not(:last-child)::after { content: "·"; margin-left: .9rem; color: var(--line-strong); }
@media (max-width: 700px) {
  /* Phones: one honor per line, no dots. */
  .honors { flex-direction: column; gap: .75rem; }
  .honors-list { display: grid; gap: .55rem; line-height: 1.5; }
  .honors-list li { white-space: normal; }
  .honors-list li:not(:last-child)::after { content: none; }
}

.presskit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper);
}
.presskit p { margin-top: .5rem; max-width: 36rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .accolades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .accolades { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- 16. Inquire & form ---------- */
.inquire-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.inquire-intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 2rem); }
.inquire-intro .h2 { margin-bottom: 1.75rem; }
.inquire-form-wrap { grid-column: 7 / -1; }
.contact-list { margin-top: 2.75rem; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-list .icon { margin-top: .2rem; color: var(--terra-deep); }
.contact-list div { display: flex; flex-direction: column; }
.contact-label { font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; }
.contact-list a:hover { color: var(--terra-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact-list div > span:not(.contact-label) { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; }

.form, .form-success {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  box-shadow: 0 40px 80px -56px rgb(42 36 32 / .45);
}
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.field--full, .form-summary, .form-actions, .form-status, .field-group { grid-column: 1 / -1; }
.field label, .field-group legend { font-size: .875rem; font-weight: 600; letter-spacing: .01em; }
.req { color: var(--terra-deep); }
.optional { font-weight: 400; color: var(--muted); }

.input {
  width: 100%; min-height: 3.25rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--white);
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.input:hover { border-color: var(--ink-soft); }
.input:focus-visible { outline: 2px solid var(--terra-deep); outline-offset: 1px; border-color: var(--terra-deep); }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
textarea.input { min-height: 9.5rem; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2420' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem;
}
.hint { font-size: .8125rem; color: var(--muted); }
.field-error { display: flex; align-items: flex-start; gap: .4rem; font-size: .875rem; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }
.field-error .icon { width: 1.05rem; height: 1.05rem; margin-top: .15rem; }

.field-group {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem;
  margin: 0; padding: 1.5rem 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0;
}
.field-group[hidden] { display: none; }
.field-group:not([hidden]) { animation: rise .5s var(--ease-out); }
.field-group legend { float: left; width: 100%; padding: 0; margin-bottom: .25rem; font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; }
.field-group legend + * { clear: both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.form-summary {
  padding: 1rem 1.25rem; border: 1px solid var(--error); border-radius: 10px;
  background: var(--error-bg); color: var(--error); font-size: var(--fs-small);
}
.form-summary ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.form-summary a { color: var(--error); font-weight: 600; }
.form-summary:focus-visible { outline-color: var(--error); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .25rem; }
.form-note { font-size: .8125rem; color: var(--muted); }
.form-status { font-size: var(--fs-small); color: var(--error); }
.form-status:empty { display: none; }
.form-status a { color: inherit; font-weight: 600; }

.spinner {
  display: none; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 1.5px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
[data-submit][aria-busy="true"] .spinner { display: block; }
[data-submit][aria-busy="true"] .icon { display: none; }
[data-submit][aria-busy="true"] { cursor: progress; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

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

.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.form-success[hidden] { display: none; }
.form-success:not([hidden]) { animation: rise .6s var(--ease-out); }
.form-success p { color: var(--ink-soft); max-width: 30rem; }
.success-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--success); color: var(--paper); }
.success-icon .icon { width: 1.6rem; height: 1.6rem; }

@media (max-width: 1023px) {
  .inquire-intro, .inquire-form-wrap { grid-column: 1 / -1; }
  .inquire-intro { position: relative; top: 0; }
  .inquire-form-wrap { margin-top: 1rem; }
}
@media (max-width: 600px) {
  .form, .field-group { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); padding-top: clamp(4.5rem, 9vw, 8rem); padding-bottom: calc(1.75rem + env(safe-area-inset-bottom)); overflow: hidden; }
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line-night);
}
.footer-cta-text { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1; letter-spacing: -.015em; max-width: 14ch; }
.footer-cta-text em { color: var(--ember); }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer-col { grid-column: span 2; }
.footer-col:last-child { grid-column: span 3; }
.footer-col--about { grid-column: span 5; }
.footer-col--about p { max-width: 26rem; color: var(--on-night-soft); }
.footer-h { margin-bottom: .75rem; font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-night-soft); }
.footer-col a { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; text-decoration: none; color: var(--on-night); transition: color var(--dur-2); }
.footer-col a:hover { color: var(--ember); }

.wordmark {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(3.4rem, 15.4vw, 15.5rem); line-height: .8; letter-spacing: -.035em;
  white-space: nowrap; text-align: center; color: var(--on-night);
  padding-block: .1em .22em; overflow: hidden;
}
.wordmark .c { display: inline-block; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line-night);
  font-size: .8125rem; color: var(--on-night-soft);
}
.to-top { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-night); text-decoration: none; }
.to-top:hover { color: var(--ember); }
/* Designer credit: an email link, underlined so it reads as a link among the plain footer notes. */
.site-credit a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: inherit; text-decoration: underline; text-decoration-color: var(--line-night);
  text-underline-offset: .25em; transition: color var(--dur-2), text-decoration-color var(--dur-2);
}
.site-credit a:hover { color: var(--ember); text-decoration-color: currentColor; }

@media (max-width: 1023px) {
  .footer-col, .footer-col:last-child { grid-column: span 4; }
  .footer-col--about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-col { grid-column: span 6; }
  .footer-col--about, .footer-col:last-child { grid-column: 1 / -1; }
}

/* ---------- 18. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100dvh; margin: 0;
  background: rgb(24 20 17 / .97); color: var(--on-night);
  grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0;
  transition: opacity .25s var(--ease-out), overlay .25s allow-discrete, display .25s allow-discrete;
}
.lightbox[open] { display: grid; opacity: 1; transition-duration: .4s; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }

.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem var(--gutter); }
.lb-top { padding-top: calc(.75rem + env(safe-area-inset-top)); }
.lb-bottom { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
.lb-count { font-size: .8125rem; letter-spacing: .14em; color: var(--on-night-soft); }
.lb-caption { flex: 1; text-align: center; font-family: var(--font-display); font-size: 1.375rem; }
.lb-stage {
  position: relative; display: grid; place-items: center; min-height: 0; padding-inline: var(--gutter); touch-action: pan-y; cursor: zoom-out;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);   /* a fixed-size cell, so a tall photo shrinks to fit instead of spilling out */
}
.lb-stage picture { display: contents; }
.lb-stage source { display: none; }
.lb-stage img {
  grid-area: 1 / 1;   /* in the sized cell, not an extra row after the <source> */
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius); cursor: default;
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.lb-stage img.is-swapping { opacity: 0; transform: scale(.985); }
@starting-style { .lightbox[open] .lb-stage img { transform: scale(.96); } }

/* ---------- 19. Motion states (only when JS + motion allowed) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.motion [data-split] { visibility: hidden; }
.motion [data-reveal-img] { clip-path: inset(100% 0 0 0); }
.motion .step-line { transform: scaleX(0); }

/* Hero intro runs in pure CSS so it starts on first paint, even before scripts load. */
.motion [data-hero-write] { animation: write-in 2.4s cubic-bezier(.65, 0, .35, 1) .2s both; }
.motion [data-hero-flourish] { animation: draw-out 1.6s cubic-bezier(.65, 0, .35, 1) 2.2s both; }
.motion [data-hero-strip] { animation: fade-rise 1.4s var(--ease-out) .6s both; }
.motion [data-hero-fade] { animation: fade-rise 1.1s cubic-bezier(.215, .61, .355, 1) both; animation-delay: calc(.7s + var(--d, 0) * 100ms); }
.motion [data-hero-arch] .ph { animation: arch-reveal 1.6s cubic-bezier(.87, 0, .13, 1) .05s both; }
.motion [data-hero-arch] img { animation: settle 2.2s var(--ease-out) .25s both; }
.motion [data-hero-inset] { animation: pop 1.2s cubic-bezier(.34, 1.4, .64, 1) .95s both; }
.motion [data-hero-badge] { animation: pop 1.3s var(--ease-out) 1.1s both; }
@keyframes write-in { from { clip-path: inset(-60% 100% -80% -10%); } to { clip-path: inset(-60% -10% -80% -10%); } }
@keyframes draw-out { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes arch-reveal {
  from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); }
  to   { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
}
@keyframes settle { from { transform: scale(1.25); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.motion [data-wordmark] .c { transform: translateY(105%); }

/* Word-by-word heading reveal */
.w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .06em .08em .14em; margin: -.06em -.08em -.14em;
}
.wi { display: inline-block; will-change: transform; }

/* ---------- 20. Review mode (?review) — highlights copy that needs real content ---------- */
.review [data-todo] { outline: 2px dashed #C8920E; outline-offset: 4px; position: relative; }
.review [data-todo]::after {
  content: "Replace"; position: absolute; top: -.75rem; right: -.25rem; z-index: 5;
  padding: 3px 7px; border-radius: 3px;
  background: #C8920E; color: #201A16;
  font: 600 10px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  pointer-events: none;
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
