/* =========================================================================
   The Grove @ Rt. 59 — 140 Route 59, Monsey NY
   Core stylesheet: tokens, base, layout, components, header/footer, motion.
   Page-specific styles live in assets/css/pages/*.css
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette — drawn from the brochure and the interior renders */
  --ink: #15130f;          /* warm near-black */
  --ink-2: #3b3630;        /* body text */
  --stone: #7d746a;        /* muted text */
  --stone-2: #a79d91;
  --ivory: #fbf8f3;        /* page background */
  --paper: #ffffff;
  --linen: #f3ece2;        /* soft panels */
  --sand: #e7dccd;         /* brochure beige */
  --sand-2: #d8c9b5;
  --oak: #c3a27b;
  --brass: #a8834f;
  --brass-2: #8c6c3e;
  --blush: #e9a39c;        /* brochure accent, used sparingly */
  --blush-2: #d98b84;
  --night: #121110;        /* dark sections */
  --night-2: #1c1a17;

  --line: rgba(21, 19, 15, 0.14);
  --line-strong: rgba(21, 19, 15, 0.32);
  --line-light: rgba(255, 255, 255, 0.22);

  /* Type */
  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --fs-mega: clamp(3.4rem, 10.2vw, 10.5rem);
  --fs-h1: clamp(3rem, 7.4vw, 7.4rem);
  --fs-h2: clamp(2.5rem, 5.2vw, 5.2rem);
  --fs-h3: clamp(1.9rem, 3.1vw, 3rem);
  --fs-h4: clamp(1.45rem, 2vw, 1.9rem);
  --fs-lead: clamp(1.15rem, 1.45vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.72rem;

  /* Layout */
  --max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(6rem, 12vw, 11.5rem);
  --header-h: 92px;
  --header-h-sm: 70px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);        /* expo-out: reveals */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);    /* curtains, wipes */
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-1: 0.35s;
  --dur-2: 0.7s;
  --dur-3: 1.2s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--ivory);
  color: var(--ink-2);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; background-size: cover; background-position: center; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 1.5px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  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: -4rem; z-index: 1000;
  background: var(--ink); color: var(--ivory); padding: .8rem 1.2rem;
  font-size: var(--fs-small); transition: top var(--dur-1) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3, .h4 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.display { font-size: var(--fs-mega); line-height: 0.86; text-transform: uppercase; letter-spacing: -0.012em; }
.h1 { font-size: var(--fs-h1); line-height: 0.9; text-transform: uppercase; }
.h2 { font-size: var(--fs-h2); line-height: 0.95; text-transform: uppercase; }
.h3 { font-size: var(--fs-h3); line-height: 1.02; }
.h4 { font-size: var(--fs-h4); line-height: 1.1; }
.italic, em.serif { font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: 0; }
.accent { color: var(--blush-2); }
.on-dark .accent { color: var(--blush); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.muted { color: var(--stone); }
.small { font-size: var(--fs-small); }

.label {
  font-family: var(--f-sans);
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.label--muted { color: var(--stone); }
.label--brass { color: var(--brass); }
.eyebrow { display: inline-flex; align-items: center; gap: .9rem; }
.eyebrow::before {
  content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .6;
}
.index-num {
  font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--brass);
  letter-spacing: 0;
}

/* Rich text defaults */
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 38rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1680px; }
.container--narrow { max-width: 1040px; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--flush-top { padding-top: 0; }
.bg-linen { background: var(--linen); }
.bg-sand { background: var(--sand); }
.bg-paper { background: var(--paper); }
.on-dark { background: var(--night); color: rgba(255, 255, 255, 0.72); }
.on-dark .display, .on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark .h4, .on-dark .label { color: #fff; }
.on-dark .muted, .on-dark .label--muted { color: rgba(255, 255, 255, 0.55); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.2vw, 2.25rem); }
.stack > * + * { margin-top: var(--stack, 1.5rem); }
.rule { height: 1px; background: var(--line); border: 0; }
.on-dark .rule { background: var(--line-light); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--ivory); --btn-fill: var(--brass-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .85rem;
  min-height: 3.35rem; padding: 0 1.75rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fill);
  transform: translateY(101%); transition: transform var(--dur-2) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { border-color: var(--btn-fill); }
.btn .arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-fill: var(--sand); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-fill: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--ivory); border-color: var(--ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-fill: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { color: var(--ink); border-color: #fff; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.arrow { width: 1.1em; height: 1.1em; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  padding-block: .45rem; position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transform: scaleX(1); transition: transform .6s var(--ease-in-out);
}
.link-arrow:hover::after { transform-origin: left; animation: line-sweep .9s var(--ease-in-out); }
@keyframes line-sweep { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }
.link-arrow .arrow { transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(5px); }
.on-dark .link-arrow { color: #fff; }

.text-link { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 2px; }
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  color: #fff;
  transition: height .6s var(--ease-out), background-color .6s var(--ease-out), color .6s var(--ease-out), box-shadow .6s var(--ease-out), transform .6s var(--ease-out);
}
.site-header::before { /* soft scrim so white nav stays legible on bright photography */
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 9, 8, .38), rgba(10, 9, 8, 0));
  transition: opacity .6s var(--ease-out);
}
.site-header__inner {
  position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-header.is-solid, .site-header.is-light-page {
  color: var(--ink);
}
.site-header.is-solid {
  height: var(--header-h-sm);
  background: rgba(251, 248, 243, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid::before, .site-header.is-light-page::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; color: inherit; flex: none; }
.brand svg { height: 50px; width: auto; transition: height .6s var(--ease-out); }
.site-header.is-solid .brand svg { height: 42px; }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.4rem); }
.nav a {
  position: relative; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  padding-block: .5rem; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a.nav__cta {
  padding: .85rem 1.3rem; border: 1px solid currentColor; margin-left: .4rem;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.nav a.nav__cta::after { display: none; }
.nav a.nav__cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
.site-header.is-solid .nav a.nav__cta:hover, .site-header.is-light-page .nav a.nav__cta:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.menu-toggle {
  display: none; align-items: center; gap: .8rem; height: 44px; padding-left: .5rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.menu-toggle__bars { position: relative; width: 26px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8px; }
.menu-open .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 85; background: var(--night); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h-sm) + 3rem) var(--gutter) 2.5rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s linear .8s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-in-out); }
.menu-open .site-header { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mobile-menu__list li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
.mobile-menu__list a {
  display: flex; align-items: baseline; justify-content: space-between; padding: .9rem 0 .7rem;
  font-family: var(--f-display); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1; text-transform: uppercase;
  transform: translateY(110%); transition: transform .8s var(--ease-out);
}
.mobile-menu__list a span { font-family: var(--f-sans); font-size: .7rem; letter-spacing: .2em; color: var(--blush); }
.menu-open .mobile-menu__list a { transform: none; }
.menu-open .mobile-menu__list li:nth-child(1) a { transition-delay: .25s; }
.menu-open .mobile-menu__list li:nth-child(2) a { transition-delay: .3s; }
.menu-open .mobile-menu__list li:nth-child(3) a { transition-delay: .35s; }
.menu-open .mobile-menu__list li:nth-child(4) a { transition-delay: .4s; }
.menu-open .mobile-menu__list li:nth-child(5) a { transition-delay: .45s; }
.menu-open .mobile-menu__list li:nth-child(6) a { transition-delay: .5s; }
.mobile-menu__foot { display: grid; gap: .35rem; font-size: .95rem; color: rgba(255,255,255,.7); opacity: 0; transition: opacity .6s var(--ease-out) .5s; }
.menu-open .mobile-menu__foot { opacity: 1; }
.mobile-menu__foot a { color: #fff; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  :root { --header-h: 76px; --header-h-sm: 64px; }
  .brand svg { height: 42px; }
  .site-header.is-solid .brand svg { height: 38px; }
}
@media (min-width: 1081px) { .mobile-menu { display: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; min-height: min(92vh, 980px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--night);
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img, .page-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,.35) 0%, rgba(10,9,8,0) 30%, rgba(10,9,8,.05) 55%, rgba(10,9,8,.62) 100%);
}
.page-hero__content { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(3rem, 7vw, 6.5rem); }
.page-hero .label { color: rgba(255,255,255,.85); }
.page-hero .h1, .page-hero .display { color: #fff; }
.page-hero__sub { max-width: 34rem; margin-top: 1.6rem; color: rgba(255,255,255,.86); font-size: var(--fs-lead); line-height: 1.5; }
.page-hero--short { min-height: min(70vh, 760px); }

/* Text-only hero for utility pages */
.page-intro { padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 7rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; background: var(--sand); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--ratio { aspect-ratio: var(--ratio, 4 / 5); }
.media figcaption, .caption {
  font-size: .78rem; letter-spacing: .04em; color: var(--stone); margin-top: .9rem;
  display: flex; gap: .75rem; align-items: baseline;
}
.caption .index-num { font-size: .95rem; }
.on-dark .caption { color: rgba(255,255,255,.55); }
.zoomable { cursor: zoom-in; }

/* Image hover — slow scale */
.hover-zoom img { transition: transform 1.6s var(--ease-out); }
.hover-zoom:hover img { transform: scale(1.04); }

/* ---------- Brand line pattern (from the brochure's interlocking arches) ---------- */
.arches {
  --arch-color: var(--blush);
  height: 120px; width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='120' viewBox='0 0 64 120'%3E%3Cg fill='none' stroke='%23e9a39c' stroke-width='1.1'%3E%3Crect x='4' y='6' width='56' height='108' rx='28'/%3E%3Crect x='-28' y='22' width='56' height='92' rx='28'/%3E%3Crect x='36' y='22' width='56' height='92' rx='28'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: auto 100%;
  opacity: .85;
}
.arches--brass { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='120' viewBox='0 0 64 120'%3E%3Cg fill='none' stroke='%23a8834f' stroke-width='1'%3E%3Crect x='4' y='6' width='56' height='108' rx='28'/%3E%3Crect x='-28' y='22' width='56' height='92' rx='28'/%3E%3Crect x='36' y='22' width='56' height='92' rx='28'/%3E%3C/g%3E%3C/svg%3E"); opacity: .45; }
.arches--dark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='120' viewBox='0 0 64 120'%3E%3Cg fill='none' stroke='%23574a3d' stroke-width='1'%3E%3Crect x='4' y='6' width='56' height='108' rx='28'/%3E%3Crect x='-28' y='22' width='56' height='92' rx='28'/%3E%3Crect x='36' y='22' width='56' height='92' rx='28'/%3E%3C/g%3E%3C/svg%3E"); opacity: .7; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding-block: 1.4rem; }
.marquee__track { display: inline-flex; gap: 3rem; animation: marquee 48s linear infinite; will-change: transform; }
.marquee__item { font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 3rem; }
.marquee__item::after { content: ""; width: .5rem; height: .5rem; transform: rotate(45deg); border: 1px solid var(--brass); }
.marquee__item:nth-child(even) { font-style: italic; text-transform: none; color: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Feature list (the brochure's ■ bullet list) ---------- */
.ticks { display: grid; gap: 0; }
.ticks li {
  display: flex; align-items: center; gap: .85rem; padding: .95rem 0; border-bottom: 1px solid var(--line);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.ticks li::before { content: ""; width: .55rem; height: .55rem; background: var(--ink); flex: none; }
.ticks li:first-child { border-top: 1px solid var(--line); }
.on-dark .ticks li { color: #fff; border-color: var(--line-light); }
.on-dark .ticks li::before { background: var(--blush); }

/* ---------- Forms ---------- */
.field { position: relative; display: grid; gap: .45rem; }
.field label, .field .field__label { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.field .optional { color: var(--stone); letter-spacing: .1em; text-transform: none; font-weight: 400; }
.input, .select, .textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: .8rem 0; font-size: 1.05rem; color: var(--ink); border-radius: 0; appearance: none; -webkit-appearance: none;
  transition: border-color .4s var(--ease-out);
}
.textarea { resize: vertical; min-height: 7.5rem; line-height: 1.6; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315130f' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .2rem center; padding-right: 1.8rem; cursor: pointer;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-bottom-color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: var(--stone-2); }
.field__line { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); pointer-events: none; }
.field:focus-within .field__line { transform: scaleX(1); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-bottom-color: #b5473a; }
.field__error { font-size: .8rem; color: #b5473a; min-height: 0; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.checkbox input { width: 1.05rem; height: 1.05rem; accent-color: var(--ink); margin-top: .25rem; }

.chip {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 2.5rem; padding: 0 1.1rem;
  border: 1px solid var(--line-strong); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: transparent; transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--chip-color, var(--brass)); }

/* ---------- CTA band (shared closing section) ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; background: var(--night); }
.cta-band__media { position: absolute; inset: 0; opacity: .5; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__inner { position: relative; padding-block: clamp(7rem, 14vw, 13rem); text-align: center; display: grid; justify-items: center; gap: 1.8rem; }
.cta-band .display { color: #fff; }
.cta-band__script { font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2.2rem); color: var(--blush); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.66); padding-top: clamp(5rem, 9vw, 8rem); font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.88); transition: color .3s; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.footer-brand svg { height: 76px; width: auto; color: #fff; }
.footer-brand p { margin-top: 1.6rem; max-width: 20rem; line-height: 1.6; }
.footer-col h3 { font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--blush); margin-bottom: 1.25rem; }
.footer-col li + li { margin-top: .55rem; }
.footer-contact strong { display: block; color: #fff; font-weight: 500; }
.footer-word {
  font-family: var(--f-display); text-transform: uppercase; color: rgba(255,255,255,.07);
  font-size: clamp(5rem, 19.5vw, 20rem); line-height: .78; letter-spacing: -.01em; white-space: nowrap;
  margin-bottom: -0.06em; user-select: none; text-align: center; overflow: hidden;
}
.footer-bottom { border-top: 1px solid var(--line-light); padding-block: 1.6rem 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .78rem; color: rgba(255,255,255,.45); }
.footer-legal { max-width: 58rem; font-size: .72rem; line-height: 1.6; color: rgba(255,255,255,.38); padding-bottom: 1.5rem; }
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(12, 11, 10, .96); color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility 0s linear .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-out); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem var(--gutter); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(1rem, 6vw, 6rem); min-height: 0; }
.lightbox__stage img { max-height: calc(100vh - 11rem); width: auto; max-width: 100%; object-fit: contain; background: none; opacity: 0; transform: scale(.985); transition: opacity .6s var(--ease-out), transform .9s var(--ease-out); }
.lightbox__stage img.is-ready { opacity: 1; transform: none; }
.lightbox__caption { padding: 1rem var(--gutter) 1.6rem; text-align: center; font-family: var(--f-display); font-size: 1.35rem; font-style: italic; color: rgba(255,255,255,.85); }
.lightbox__btn { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border: 1px solid var(--line-light); color: #fff; transition: background-color .3s, color .3s; }
.lightbox__btn:hover { background: #fff; color: var(--ink); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
@media (max-width: 700px) { .lightbox__nav { top: auto; bottom: -4.2rem; transform: none; } }

/* ---------- Page curtain (transitions between pages) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 300; background: var(--ivory); pointer-events: none;
  display: grid; place-items: center; color: var(--ink);
  transform: translateY(0); transition: transform .85s var(--ease-in-out);
}
.curtain svg { width: 64px; height: auto; opacity: 0; transition: opacity .4s var(--ease-out); }
.curtain.is-intro svg { opacity: 1; }
html.is-loaded .curtain { transform: translateY(-100%); }
html.is-leaving .curtain { transform: translateY(0); transition-duration: .6s; }
html.is-leaving.is-loaded .curtain { transform: translateY(0); }
html:not(.js) .curtain { display: none; }

/* ---------- Motion primitives ---------- */
/* Everything is visible by default; JS adds .motion-ok when it is safe to animate. */
.motion-ok [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.motion-ok [data-reveal="fade"] { transform: none; }
.motion-ok [data-reveal="left"] { transform: translate3d(-34px, 0, 0); }
.motion-ok [data-reveal].is-in { opacity: 1; transform: none; }

.motion-ok [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-in-out); transition-delay: var(--d, 0s); }
.motion-ok [data-reveal="clip"] img:not([data-parallax]) { transform: scale(1.18); transition: transform 2.2s var(--ease-out); transition-delay: var(--d, 0s); }
.motion-ok [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.motion-ok [data-reveal="clip"].is-in img:not([data-parallax]) { transform: scale(1); }
.motion-ok [data-reveal="clip-side"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.5s var(--ease-in-out); transition-delay: var(--d, 0s); }
.motion-ok [data-reveal="clip-side"].is-in { clip-path: inset(0 0 0 0); }

/* Split-line headings: JS wraps each line in .line > .line__inner */
.line { display: block; overflow: hidden; padding: 0 .1em .16em 0; margin: 0 -.1em -.16em 0; }
.line__inner { display: block; }
.motion-ok [data-reveal="lines"] { opacity: 1; transform: none; }
.motion-ok [data-reveal="lines"] .line__inner { transform: translate3d(0, 105%, 0); transition: transform 1.25s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 0.09s); }
.motion-ok [data-reveal="lines"].is-in .line__inner { transform: none; }

.motion-ok [data-reveal="rule"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-in-out); transition-delay: var(--d, 0s); }
.motion-ok [data-reveal="rule"].is-in { transform: scaleX(1); }

[data-parallax] { will-change: transform; }
.parallax-frame { overflow: hidden; position: relative; }
/* oversized and centred so the image can drift ±9% without exposing an edge */
.parallax-frame > img, .parallax-frame > picture img { position: absolute; left: 0; top: -9%; height: 118%; width: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .curtain { display: none; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; } .mt-4 { margin-top: 4rem; }
.flex { display: flex; } .wrap { flex-wrap: wrap; } .gap-1 { gap: 1rem; } .items-center { align-items: center; } .between { justify-content: space-between; }
.nowrap { white-space: nowrap; }
.no-scroll { overflow: hidden; }
.qa .curtain { display: none; }
/* QA mode (?qa): freeze viewport-relative heights so full-page screenshots are representative */
.qa .hero, .qa .statement { height: 900px !important; min-height: 0 !important; max-height: 900px !important; }
.qa .page-hero { min-height: 820px !important; }
.qa .details__visual { max-height: 820px !important; }
.qa .details__item { min-height: 380px !important; }

/* ---------- Refinements ---------- */
.display, .h1, .h2, .h3, .h4 { text-wrap: balance; }
.lead, .prose p, .page-hero__sub { text-wrap: pretty; }

/* Header scroll progress — a single brass hairline once the header is solid */
.site-header__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity .5s var(--ease-out); pointer-events: none; }
.site-header.is-solid .site-header__progress { opacity: 1; }

/* Phone-only sticky action bar */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 80;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
    transform: translateY(160%); transition: transform .7s var(--ease-out);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; box-shadow: 0 12px 30px -12px rgba(20, 14, 8, .45); }
  .mobile-cta__call { background: rgba(251, 248, 243, .94); color: var(--ink); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .mobile-cta__tour { background: var(--ink); color: var(--ivory); }
  .page-contact .mobile-cta { display: none; }
}
.brand .logo--h { height: 44px; }
.site-header.is-solid .brand .logo--h { height: 36px; }
@media (max-width: 1080px) { .brand .logo--h { height: 34px; } .site-header.is-solid .brand .logo--h { height: 30px; } }

/* ---------- Launch band (big status banner at the top of a page) ---------- */
.launch-band { margin-top: var(--header-h); background: var(--night); color: #fff; position: relative; overflow: hidden; }
.launch-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brass), transparent); opacity: .7; }
.launch-band__inner { padding-block: clamp(2.2rem, 4.5vw, 4rem); display: grid; gap: clamp(.9rem, 1.6vw, 1.4rem); }
.launch-band__label { display: inline-flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.7); }
.launch-band__dot { position: relative; width: .5rem; height: .5rem; border-radius: 50%; background: var(--blush); }
.launch-band__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--blush); animation: launch-ping 2.6s var(--ease-out) infinite; }
@keyframes launch-ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.launch-band__text { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2.5rem, 5.6vw, 6.4rem); line-height: .95; letter-spacing: -.005em; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .28em; }
.launch-band__dash { color: rgba(255,255,255,.45); }
.launch-band__link { position: relative; display: inline-flex; align-items: center; gap: .18em; color: var(--blush); padding-bottom: .04em; }
.launch-band__link::after { content: ""; position: absolute; left: 0; right: .9em; bottom: -.02em; height: 1px; background: currentColor; transform-origin: left; transition: transform .8s var(--ease-in-out); }
.launch-band__link:hover::after { transform: scaleX(.35); }
.launch-band__arrow { width: .62em; height: .62em; transition: transform .7s var(--ease-out); }
.launch-band__link:hover .launch-band__arrow { transform: translateY(.12em); }
.launch-band + * { padding-top: 0 !important; }
@media (max-width: 700px) { .launch-band__dash { display: none; } .launch-band__text { flex-direction: column; align-items: flex-start; } }
.launch-band__soon { display: inline-flex; align-items: center; gap: .32em; }
.launch-band__soon .launch-band__dot { width: .14em; height: .14em; min-width: 7px; min-height: 7px; flex: none; }
.launch-band__text { font-size: clamp(2.5rem, 5.1vw, 6rem); }
.launch-band__soon .launch-band__dot { width: .16em; height: .16em; }
.launch-band__text { align-items: center; }
.launch-band__soon, .launch-band__link, .launch-band__dash { line-height: 1; padding-block: .06em; }
@media (max-width: 700px) { .launch-band__text { align-items: flex-start; row-gap: .12em; } }

/* ---------- Header "Schedule a Tour" CTA ---------- */
.nav a.nav__tour, .header-actions__tour {
  background: #fff; color: var(--ink); border: 1px solid #fff; margin-left: .2rem;
}
.nav a.nav__tour:hover, .header-actions__tour:hover { background: transparent; color: #fff; border-color: #fff; }
.site-header.is-solid .nav a.nav__tour, .site-header.is-light-page .nav a.nav__tour,
.site-header.is-solid .header-actions__tour, .site-header.is-light-page .header-actions__tour { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.site-header.is-solid .nav a.nav__tour:hover, .site-header.is-light-page .nav a.nav__tour:hover,
.site-header.is-solid .header-actions__tour:hover, .site-header.is-light-page .header-actions__tour:hover { background: var(--brass-2); border-color: var(--brass-2); color: #fff; }
.menu-open .site-header .header-actions__tour { opacity: 0; pointer-events: none; }
.header-actions { display: none; align-items: center; gap: .9rem; }
.header-actions__tour { display: inline-flex; align-items: center; padding: .7rem .95rem; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: background-color .5s var(--ease-out), color .5s var(--ease-out), border-color .5s var(--ease-out), opacity .4s; }
@media (max-width: 1320px) and (min-width: 1081px) { .nav { gap: clamp(.9rem, 1.6vw, 1.6rem); } .nav a { letter-spacing: .16em; } }
@media (max-width: 1080px) { .header-actions { display: inline-flex; } }
@media (max-width: 460px) {
  .menu-toggle [data-menu-label] { display: none; }
  .brand .logo--h, .site-header.is-solid .brand .logo--h { height: 28px; }
  .header-actions { gap: .7rem; }
}
.mobile-menu__tour { justify-self: start; margin-bottom: 1.2rem; }
html { overflow-x: clip; }
@media (max-width: 460px) {
  .site-header__inner { gap: .75rem; }
  .brand .logo--h, .site-header.is-solid .brand .logo--h { height: 26px; }
  .header-actions__tour { padding: .62rem .72rem; font-size: .58rem; letter-spacing: .12em; }
  .menu-toggle { padding-left: .25rem; }
}
@media (max-width: 350px) { .header-actions__tour { display: none; } }
