/* ==========================================================================
   Ember & Oak Retreat — site stylesheet
   Built on the design system tokens in styles/tokens.css (copied verbatim).
   Direction: organic editorial. No card containers on marketing pages;
   content sits on --paper with generous air, arch-topped imagery, staggered
   figures, hairlines as the only structure.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fluid overrides
   The token scale is authored for desktop. These clamp() overrides keep the
   same top and bottom of the scale while letting it breathe on small screens.
   Token file stays untouched.
   -------------------------------------------------------------------------- */
:root {
  --size-display-1: clamp(44px, 8.4vw, 88px);
  --size-display-2: clamp(34px, 5.6vw, 64px);
  --size-display-3: clamp(28px, 3.8vw, 44px);
  --size-display-4: clamp(24px, 2.8vw, 32px);

  --size-body-lg: clamp(17px, 1.35vw, 19px);
  --size-body: clamp(16px, 1.2vw, 17px);

  --page-margin: clamp(22px, 5vw, 40px);
  --page-margin-lg: clamp(22px, 6vw, 72px);

  --space-9: clamp(40px, 5vw, 72px);
  --space-10: clamp(56px, 7vw, 96px);
  --space-11: clamp(64px, 9vw, 128px);
  --space-12: clamp(80px, 11vw, 160px);

  --arch: 999px 999px var(--radius-image) var(--radius-image);
  --header-h: 88px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Anchored sections stop below the sticky header rather than under it */
[id] { scroll-margin-top: calc(var(--header-h) + var(--space-5)); }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-serif);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* <picture> is only a source wrapper. Letting it box-out breaks grid/flex
   ordering and percentage sizing on the <img> it contains, so it is dissolved. */
picture { display: contents; }
source { display: none; }
figure { margin: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--weight-light); }
ul { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-standard);
}
a:hover { color: var(--text-link-hover); }

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

::selection { background: var(--peach); color: var(--ink); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--espresso);
  color: var(--linen);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--size-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  transition: top var(--duration-base) var(--ease-standard);
}
.skip-link:focus { top: var(--space-4); color: var(--linen); }

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

/* --------------------------------------------------------------------------
   3. Type primitives
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  color: var(--text-display);
}
.d1 { font-size: var(--size-display-1); line-height: var(--lh-display-1); letter-spacing: var(--ls-display-1); }
.d2 { font-size: var(--size-display-2); line-height: var(--lh-display-2); letter-spacing: var(--ls-display-2); }
.d3 { font-size: var(--size-display-3); line-height: var(--lh-display-3); letter-spacing: var(--ls-display-3); }
.d4 { font-size: var(--size-display-4); line-height: var(--lh-display-4); }

.lede {
  font-family: var(--font-serif);
  font-size: var(--size-body-lg);
  line-height: var(--lh-body-lg);
}
.prose {
  font-family: var(--font-serif);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  max-width: 52ch;
}
.prose + .prose { margin-top: var(--space-5); }
.muted { color: var(--text-muted); }
.italic { font-style: italic; }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-eyebrow);
}
.eyebrow--on-dark { color: var(--text-on-dark-muted); }

.mono-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-eyebrow);
}
.mono-strip .dot { opacity: .5; }
/* Forced line break, narrow screens only — see the 560px block below. */
.mono-strip .brk { display: none; }
.mono-strip--on-dark { color: var(--text-on-dark-muted); }

.on-dark { color: var(--text-on-dark); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--page-margin-lg);
}
.wrap--narrow { max-width: 900px; }

.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.section--loose { padding-block: var(--space-10); }
.center { text-align: center; }
.measure-center { max-width: 54ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--size-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 13px var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--cinnamon);
  color: var(--linen);
  transition: background var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              opacity var(--duration-fast) var(--ease-standard);
}
.btn:hover { background: var(--cinnamon-dark); color: var(--linen); }
.btn:active { background: var(--cinnamon-dark); opacity: .9; }

.btn--lg { padding: 16px var(--space-7); font-size: 14px; }

.btn--secondary {
  background: transparent;
  color: var(--text-body);
  border-color: var(--border-default);
}
.btn--secondary:hover { background: var(--surface-sunken); color: var(--text-body); border-color: var(--border-strong); }

.btn--on-dark { background: var(--linen); color: var(--espresso); }
.btn--on-dark:hover { background: var(--linen-dim); color: var(--espresso); }

.btn--on-dark-outline {
  background: transparent;
  color: var(--linen);
  border-color: var(--border-on-dark);
}
.btn--on-dark-outline:hover { background: rgba(248, 247, 243, .12); color: var(--linen); border-color: var(--linen); }

.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--burlap); color: var(--text-subtle);
  opacity: .55; pointer-events: none;
}

.text-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--size-nav);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-body);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.text-link--on-dark { color: var(--text-on-dark); }
.text-link--on-dark:hover { color: var(--linen); opacity: .82; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 20px var(--page-margin-lg);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--duration-slow) var(--ease-standard),
              border-color var(--duration-slow) var(--ease-standard);
}
/* Brand rule: the horizontal lockup is never set below 180px wide. */
.site-header__logo img { width: 180px; height: auto; }
.site-header__logo .logo-light { display: none; }

/* Over-hero variant, before scroll */
body[data-hero="true"] .site-header { backdrop-filter: var(--blur-glass); }
body[data-hero="true"] .site-header .logo-dark { display: none; }
body[data-hero="true"] .site-header .logo-light { display: block; }
body[data-hero="true"] .site-header .nav__link { color: var(--text-on-dark-muted); }
body[data-hero="true"] .site-header .nav__link[aria-current="page"] { color: var(--linen); }
body[data-hero="true"] .site-header .nav__cta { color: var(--linen); border-color: var(--border-on-dark); }
body[data-hero="true"] .site-header .nav__cta:hover { background: rgba(248, 247, 243, .12); border-color: var(--linen); }
body[data-hero="true"] .site-header .nav-toggle { color: var(--linen); }

/* Solid state (scrolled, or non-hero page) */
.site-header.is-solid,
body:not([data-hero="true"]) .site-header {
  background: var(--surface-page);
  border-bottom-color: var(--border-hairline);
  backdrop-filter: none;
}
body[data-hero="true"] .site-header.is-solid .logo-light { display: none; }
body[data-hero="true"] .site-header.is-solid .logo-dark { display: block; }
body[data-hero="true"] .site-header.is-solid .nav__link { color: var(--text-muted); }
body[data-hero="true"] .site-header.is-solid .nav__link[aria-current="page"] { color: var(--text-body); }
body[data-hero="true"] .site-header.is-solid .nav__cta { color: var(--text-body); border-color: var(--border-default); }
body[data-hero="true"] .site-header.is-solid .nav__cta:hover { background: var(--surface-sunken); border-color: var(--border-strong); }
body[data-hero="true"] .site-header.is-solid .nav-toggle { color: var(--text-body); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__link {
  font-family: var(--font-sans);
  font-size: var(--size-nav);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}
.nav__link:hover { color: var(--text-body); }
.nav__link[aria-current="page"] { color: var(--text-body); border-bottom-color: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: var(--space-2);
  margin-right: -8px;
  color: var(--text-body);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--espresso);
  display: flex;
  flex-direction: column;
  padding: 20px var(--page-margin) var(--space-9);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-standard), visibility var(--duration-base);
}
.nav-drawer.is-open { opacity: 1; visibility: visible; }
.nav-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.nav-drawer__top img { width: 180px; height: auto; }
.nav-drawer__close { background: none; border: 0; color: var(--linen); cursor: pointer; padding: var(--space-2); }
.nav-drawer__close svg { width: 26px; height: 26px; }
.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: auto;
  margin-bottom: auto;
}
.nav-drawer__links a {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  font-weight: var(--weight-light);
  color: var(--linen);
}
.nav-drawer__links a[aria-current="page"] { color: var(--peach); }
.nav-drawer__foot {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 720px;
  height: 92vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Only the home hero sits under a transparent header, so only it is pulled up
   behind the chrome. On every other page the header is opaque and the band
   starts below it. */
body[data-hero="true"] .hero { margin-top: calc(-1 * var(--header-h)); }

/* Bands grow with their headline rather than clipping it. */
.hero--band {
  min-height: 420px;
  height: auto;
  max-height: none;
  padding-block: var(--space-9);
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Protection scrim. The design system permits gradients only as protection
   behind type on photography; the hero carries a second, stronger pass because
   the lockup sits over a bright, busy aerial. */
.hero__scrim { position: absolute; inset: 0; background: var(--scrim-full); }
.hero:not(.hero--band) .hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(66% 56% at 50% 42%, rgba(31, 30, 28, .58), rgba(31, 30, 28, 0) 80%),
    linear-gradient(to bottom, rgba(31, 30, 28, .40), rgba(31, 30, 28, .06) 34%, rgba(31, 30, 28, .46));
}
.hero--band .hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(31, 30, 28, .28), rgba(31, 30, 28, .12) 45%, rgba(31, 30, 28, .40));
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-8) var(--page-margin-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}
body[data-hero="true"] .hero__inner {
  padding-top: calc(var(--header-h) + var(--space-6));
  padding-bottom: var(--space-10);
}
.hero__lockup { height: clamp(130px, 20vw, 210px); width: auto; }
.hero__note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--size-body-lg);
  line-height: 1.7;
  color: var(--text-on-dark);
  max-width: 40ch;
  margin-top: var(--space-7);
}
.hero__foot {
  position: absolute;
  left: 0; right: 0;
  bottom: var(--space-7);
  z-index: 2;
}

/* --------------------------------------------------------------------------
   8. Editorial figures
   -------------------------------------------------------------------------- */
.arch { border-radius: var(--arch); }
.rounded { border-radius: var(--radius-image); }

.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-10);
  align-items: center;
}
.figure-pair--flip .figure-pair__media { order: 2; }

.figure-stack { position: relative; padding-right: var(--space-9); }
.figure-stack__main { width: 82%; aspect-ratio: 3 / 4; object-fit: cover; }
.figure-stack__inset {
  position: absolute;
  right: 0;
  bottom: -9%;
  width: 46%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 6px solid var(--surface-page);
}

/* Alternating spread. On desktop the image is inset from the page edge by the
   same margin the prose uses, so it reads as a contained panel rather than
   running off the side of the window. It still goes edge to edge on narrow
   screens, where there is no room to spare. */
.spread {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-10);
  align-items: center;
  padding-block: var(--space-7);
}
.spread--flip { grid-template-columns: 1fr 1.05fr; }
.spread__media {
  width: calc(100% - var(--page-margin-lg));
  height: clamp(360px, 46vw, 560px);
  object-fit: cover;
  border-radius: var(--radius-panel);
}
.spread:not(.spread--flip) .spread__media { margin-left: var(--page-margin-lg); }
.spread--flip .spread__media { order: 2; margin-right: var(--page-margin-lg); }
.spread__body { max-width: 560px; padding-inline: var(--page-margin-lg); }
.spread:not(.spread--flip) .spread__body { padding-left: 0; justify-self: start; }
.spread--flip .spread__body { order: 1; padding-right: 0; justify-self: end; }

/* Staggered gallery of grounds */
.stagger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  align-items: start;
}
.stagger__item:nth-child(2) { margin-top: var(--space-10); }
.stagger__item:nth-child(3) { margin-top: var(--space-5); }
.stagger__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.stagger__item:nth-child(2) img { aspect-ratio: 3 / 4; }
.stagger__caption { margin-top: var(--space-4); }
.stagger__caption h3 {
  font-family: var(--font-display);
  font-size: var(--size-display-4);
  line-height: var(--lh-display-4);
  color: var(--text-display);
  margin-top: var(--space-2);
}
.stagger__caption p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--size-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--text-muted);
  margin-top: var(--space-3);
}

/* Pull quote pause */
.pause { text-align: center; }
.pause img { height: 44px; width: auto; margin: 0 auto; opacity: .8; }
.pause blockquote {
  margin: var(--space-6) auto 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-light);
  font-size: var(--size-display-2);
  line-height: 1.25;
  color: var(--text-display);
}
.pause cite {
  display: block;
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-eyebrow);
}

/* --------------------------------------------------------------------------
   9. Legacy timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; max-width: 960px; margin: 0 auto; }
.timeline__spine {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border-hairline);
}
.timeline__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-block: var(--space-7);
}
.timeline__text { padding-right: var(--space-9); text-align: right; }
.timeline__media { padding-left: var(--space-9); display: flex; justify-content: flex-start; }
.timeline__row--flip .timeline__text { order: 2; padding: 0 0 0 var(--space-9); text-align: left; }
.timeline__row--flip .timeline__media { order: 1; padding: 0 var(--space-9) 0 0; justify-content: flex-end; }
.timeline__media img { width: 88%; aspect-ratio: 4 / 3; object-fit: cover; }
.timeline__text h3 {
  font-family: var(--font-display);
  font-size: var(--size-display-4);
  line-height: var(--lh-display-4);
  color: var(--text-display);
  margin-top: var(--space-3);
}
.timeline__text p {
  font-family: var(--font-serif);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  margin-top: var(--space-3);
}
.timeline__node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface-page);
  border: 1px solid var(--cinnamon);
}

/* --------------------------------------------------------------------------
   10. Amenities / spec lists
   -------------------------------------------------------------------------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-8) var(--space-9);
}
.spec {
  border-top: 1px solid var(--border-hairline);
  padding-top: var(--space-5);
}
.spec__icon { color: var(--cinnamon); margin-bottom: var(--space-4); }
.spec__icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.spec h3 {
  font-family: var(--font-sans);
  font-size: var(--size-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-body);
}
.spec p {
  font-family: var(--font-serif);
  font-size: var(--size-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--text-muted);
  margin-top: var(--space-3);
}

.detail-list { display: grid; gap: 0; }
.detail-list__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-5);
  border-top: 1px solid var(--border-hairline);
  align-items: baseline;
}
.detail-list__row:last-child { border-bottom: 1px solid var(--border-hairline); }
.detail-list__row dt {
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-eyebrow);
}
.detail-list__row dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--size-body);
  line-height: var(--lh-body);
}

/* Image beside a block of text or a short form */
.split {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.split__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.split .inline-form { max-width: 460px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--space-8); }
  .split__media { max-width: 400px; margin-inline: auto; }
}

/* --------------------------------------------------------------------------
   10b. Carousel
   One image at a time, cross-faded. Never auto-plays, never loops on its own —
   the brand does not move unless asked.
   -------------------------------------------------------------------------- */
.carousel { max-width: 1100px; margin-inline: auto; }

.carousel__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-image);
  overflow: hidden;
  background: var(--surface-sunken);
}
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease-standard), visibility var(--duration-slow);
}
.carousel__slide.is-active { opacity: 1; visibility: visible; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel__bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.carousel__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  color: var(--text-body);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard);
}
.carousel__nav:hover { background: var(--surface-sunken); border-color: var(--border-strong); }
.carousel__caption {
  flex: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--size-body);
  color: var(--text-muted);
}
.carousel__nav--play svg { width: 18px; height: 18px; }
.carousel__count {
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-eyebrow);
}
@media (max-width: 560px) {
  .carousel__stage { aspect-ratio: 4 / 3; }
  .carousel__bar { gap: var(--space-3); }
  .carousel__caption { font-size: var(--size-body-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .carousel__slide { transition-duration: 1ms; }
}

/* A figure shown at its own proportions rather than cropped to a ratio */
.figure-natural img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   11. Gallery + lightbox
   -------------------------------------------------------------------------- */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(120px, 13vw, 190px);
  gap: 0;
  border-radius: var(--radius-image);
  overflow: hidden;
}
.mood-grid button {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  overflow: hidden; display: block;
}
.mood-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity var(--duration-base) var(--ease-standard);
}
.mood-grid button:hover img { opacity: .92; }
.mood-grid .t-wide { grid-column: span 2; }
.mood-grid .t-tall { grid-row: span 2; }
.mood-grid .t-big { grid-column: span 2; grid-row: span 2; }
.mood-grid button { position: relative; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--surface-overlay);
  backdrop-filter: var(--blur-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--page-margin);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-standard), visibility var(--duration-base);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  width: auto;
  border-radius: var(--radius-image);
  box-shadow: var(--shadow-overlay);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 0;
  color: var(--linen);
  cursor: pointer;
  padding: var(--space-3);
}
.lightbox__close { top: var(--space-5); right: var(--space-5); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: var(--space-3); }
.lightbox__nav--next { right: var(--space-3); }
.lightbox__close svg, .lightbox__nav svg { width: 28px; height: 28px; stroke-width: 1.5; }
.lightbox__caption {
  position: absolute;
  bottom: var(--space-6);
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   12. Feature band (full-bleed photographic close)
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-block: var(--space-11);
}
.band img.band__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.band__scrim { position: absolute; inset: 0; background: var(--scrim-full); }
.band__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(66% 58% at 50% 48%, rgba(31, 30, 28, .58), rgba(31, 30, 28, 0) 82%),
    linear-gradient(to bottom, rgba(31, 30, 28, .22), rgba(31, 30, 28, .10) 40%, rgba(31, 30, 28, .34));
}
.band__inner {
  position: relative; z-index: 2;
  text-align: center;
  padding-inline: var(--page-margin-lg);
  display: flex; flex-direction: column; align-items: center;
}

/* Espresso statement band, no photograph */
.statement {
  background: var(--surface-inverse);
  color: var(--text-on-dark);
  padding-block: var(--space-11);
}
.statement .display { color: var(--text-on-dark); }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }

.field label,
.field-label {
  font-family: var(--font-sans);
  font-size: var(--size-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-body);
}
.field label .req { color: var(--cinnamon); }
.field .hint {
  font-family: var(--font-serif);
  font-size: var(--size-caption);
  line-height: var(--lh-caption);
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: var(--weight-regular);
}

.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--size-body-sm);
  color: var(--text-body);
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px var(--space-4);
  transition: border-color var(--duration-base) var(--ease-standard),
              background var(--duration-base) var(--ease-standard);
}
.textarea { font-family: var(--font-serif); font-size: var(--size-body); line-height: 1.55; resize: vertical; min-height: 132px; }
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--burlap-dark); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--cinnamon); }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23875F45' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-8);
}

.enquire-layout {
  display: grid;
  grid-template-columns: 1fr .55fr;
  gap: var(--space-11);
  align-items: start;
}
.aside-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.hr {
  border: 0;
  border-top: 1px solid var(--border-hairline);
  margin-block: var(--space-7);
}
.hr--on-dark { border-top-color: var(--border-on-dark); }

.inline-form { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.inline-form .input { flex: 1; }

/* Honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   13b. Waitlist blocks
   -------------------------------------------------------------------------- */
.signup { padding-block: var(--space-10); }
.signup:not(.signup--framed) .wrap { border-top: 1px solid var(--border-hairline); padding-top: var(--space-9); }
.signup--framed {
  padding-block: var(--space-10);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--surface-raised);
}
.inline-form--center {
  max-width: 460px;
  margin-inline: auto;
  margin-top: var(--space-6);
}

.hero__status { margin-bottom: var(--space-6); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-inverse);
  color: var(--text-on-dark);
  padding: var(--space-10) var(--page-margin-lg) var(--space-7);
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.site-footer__mark img { height: 92px; width: auto; }
.site-footer__mark p {
  font-family: var(--font-serif);
  font-size: var(--size-body-sm);
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  margin-top: var(--space-5);
  max-width: 34ch;
}
.site-footer__cols { display: flex; gap: var(--space-10); flex-wrap: wrap; }
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.site-footer__col a, .site-footer__col span {
  font-family: var(--font-serif);
  font-size: var(--size-body-sm);
  color: var(--text-on-dark-muted);
}
.site-footer__col a:hover { color: var(--linen); }
.site-footer__base {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-on-dark-muted);
}

/* --------------------------------------------------------------------------
   15. Reveal motion
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition-duration: 1ms; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .figure-pair { gap: var(--space-9); }
  .spread, .spread--flip { grid-template-columns: 1fr; gap: var(--space-7); padding-block: var(--space-7); }
  .spread .spread__media,
  .spread--flip .spread__media {
    order: 0;
    width: 100%;
    margin-inline: 0;
    height: clamp(300px, 60vw, 460px);
    border-radius: 0;
  }
    .spread__body,
  .spread--flip .spread__body { order: 1; justify-self: stretch; padding-inline: var(--page-margin-lg); max-width: 62ch; }
  .detail-list__row { grid-template-columns: 160px 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 84px; }

  .nav { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Hero: stack the wayfinding strip under the content instead of floating it
     over the calls to action, and let the section grow with its content. */
  .hero {
    min-height: 620px;
    height: auto;
    max-height: none;
    flex-direction: column;
    justify-content: center;
  }
  .hero--band { min-height: 340px; }
  .hero__inner { padding-bottom: var(--space-6); }
  .hero__foot { position: static; padding-bottom: var(--space-8); z-index: 2; }
  .hero__note { margin-top: var(--space-6); font-size: var(--size-body); max-width: 32ch; }
  .hero__inner .btn-row { width: 100%; max-width: 320px; }
  .hero:not(.hero--band) .hero__scrim::after {
    background:
      radial-gradient(78% 42% at 50% 30%, rgba(31, 30, 28, .64), rgba(31, 30, 28, 0) 78%),
      linear-gradient(to bottom, rgba(31, 30, 28, .44), rgba(31, 30, 28, .12) 40%, rgba(31, 30, 28, .50));
  }

  .figure-pair, .figure-pair--flip { grid-template-columns: 1fr; gap: var(--space-9); }
  .figure-pair--flip .figure-pair__media { order: 0; }
  .figure-stack { padding-right: var(--space-7); }
  .figure-stack__main { width: 86%; }

  .stagger { grid-template-columns: 1fr; gap: var(--space-9); }
  .stagger__item:nth-child(n) { margin-top: 0; }
  .stagger__item img, .stagger__item:nth-child(2) img { aspect-ratio: 4 / 3; }

  .timeline__spine { left: 6px; }
  .timeline__row,
  .timeline__row--flip { grid-template-columns: 1fr; gap: var(--space-5); padding-left: var(--space-7); padding-block: var(--space-6); }
  .timeline__text,
  .timeline__row--flip .timeline__text { order: 1; text-align: left; padding: 0; }
  .timeline__media,
  .timeline__row--flip .timeline__media { order: 0; padding: 0; justify-content: flex-start; }
  .timeline__media img { width: 100%; }
  .timeline__node { left: 6px; top: var(--space-6); transform: translate(-50%, 0); }

  .mood-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 40vw; }
  .mood-grid .t-big { grid-column: span 2; grid-row: span 1; }
  .mood-grid .t-wide { grid-column: span 1; }
  .mood-grid .t-tall { grid-row: span 1; }

  .form-grid { grid-template-columns: 1fr; }
  .enquire-layout { grid-template-columns: 1fr; gap: var(--space-9); }
  .aside-figure { max-width: 420px; margin-inline: auto; }

  .detail-list__row { grid-template-columns: 1fr; gap: var(--space-2); }

  .site-footer__inner { flex-direction: column; gap: var(--space-8); }
  .site-footer__base { flex-direction: column; gap: var(--space-2); }
}

@media (max-width: 560px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .inline-form { flex-direction: column; }
  .inline-form .btn { width: 100%; }
  .nav-drawer__links a { font-size: 34px; }
  .mono-strip .brk { display: block; flex-basis: 100%; height: 0; }
  .pause blockquote { max-width: 16ch; }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .nav-drawer, .lightbox, .btn-row, .site-footer { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  body { background: #fff; }
}
