/* ==========================================================================
   Buccaneers Beach Lodge — Wild Coast editorial
   Design tokens → base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — four colours plus neutrals, all pairs checked to WCAG AA.
     amber is decorative only (3.2:1 on sand); amber-ink is the text-safe tone. */
  --sand:         #F4EEE4;
  --sand-deep:    #EAE1D3;
  --sand-warm:    #FBF7F1;
  --ink:          #1C2621;
  --ink-soft:     #4A5852;
  --forest:       #2E4B3F;
  --forest-deep:  #1B2E26;
  --amber:        #C2703A;
  /* amber-ink is the text-safe tone: 5.6:1 on --sand, 5.0:1 on --sand-deep */
  --amber-ink:    #8F4C21;
  --amber-light:  #E8B07E;
  --sea:          #6E8F8A;

  --line:         rgba(28, 38, 33, 0.14);
  --line-strong:  rgba(28, 38, 33, 0.28);
  --line-light:   rgba(244, 238, 228, 0.20);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Karla", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-hero:   clamp(2.75rem, 7.4vw, 6rem);
  --fs-h1:     clamp(2.25rem, 5.2vw, 4rem);
  --fs-h2:     clamp(1.75rem, 3.6vw, 2.85rem);
  --fs-h3:     clamp(1.25rem, 1.9vw, 1.6rem);
  --fs-lead:   clamp(1.075rem, 1.45vw, 1.3rem);
  --fs-body:   1.0625rem;
  --fs-small:  0.9375rem;
  --fs-kicker: 0.75rem;

  /* Spacing — 8px rhythm */
  --sp-1: 0.5rem;   --sp-2: 1rem;    --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 3rem;     --sp-6: 4rem;    --sp-7: 6rem;    --sp-8: 8rem;
  --section-y: clamp(4.5rem, 9vw, 9.5rem);
  --gutter:    clamp(1.25rem, 5vw, 4rem);
  --measure:   68ch;

  /* Layers */
  --z-base: 0; --z-raised: 10; --z-sticky: 40; --z-header: 60;
  --z-overlay: 80; --z-lightbox: 100;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:      420ms;

  --shadow-sm: 0 1px 2px rgba(28, 38, 33, 0.05), 0 4px 14px rgba(28, 38, 33, 0.06);
  --shadow-md: 0 2px 6px rgba(28, 38, 33, 0.07), 0 18px 44px rgba(28, 38, 33, 0.11);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 40;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.25em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img, svg { max-width: 100%; display: block; }
/* The tint is a placeholder so photographs don't flash white while they load.
   It must not apply to transparent artwork — it would paint a solid rectangle
   behind the logo instead of letting the header show through. */
img { height: auto; background: var(--sand-deep); }
.brand img,
.footer__brand img { background: none; }

ul, ol { margin: 0 0 1.25em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

::selection { background: var(--amber); color: #fff; }

:focus-visible {
  outline: 3px solid var(--amber-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.site-header--transparent .nav__link:focus-visible { outline-color: var(--amber-light); }

.skip-link {
  position: absolute; left: var(--sp-2); top: -100%;
  z-index: var(--z-lightbox);
  background: var(--forest); color: var(--sand);
  padding: 0.85rem 1.4rem; border-radius: 2px;
  font-size: var(--fs-small); text-decoration: none;
  transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: var(--sp-2); }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap  { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.wrap--wide   { max-width: 1480px; }

.section    { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }
.section--sand-deep { background: var(--sand-deep); }
.section--warm      { background: var(--sand-warm); }

.section--forest {
  background: var(--forest-deep);
  color: var(--sand);
}
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--sand-warm); }

.on-dark { color: var(--sand); }
.on-dark .kicker { color: var(--amber-light); }
.on-dark .rule::before { background: var(--amber-light); }
.on-dark .lead { color: rgba(244, 238, 228, 0.86); }

/* Kicker + hairline rule — the recurring editorial signature */
.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-kicker);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin: 0 0 var(--sp-3);
}

.rule { position: relative; padding-top: var(--sp-3); }
.rule::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 3.5rem; height: 2px; background: var(--amber);
}
.rule--center { text-align: center; padding-top: var(--sp-4); }
.rule--center::before { left: 50%; transform: translateX(-50%); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 58ch;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .kicker { text-align: center; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--sand-warm);
  --btn-bd: var(--forest);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.85rem 1.9rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: 2px;
  font-family: var(--font-body);
  font-size: var(--fs-small); font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform 180ms var(--ease-out);
}
.btn:hover  { --btn-bg: var(--forest-deep); --btn-bd: var(--forest-deep); }
.btn:active { transform: translateY(1px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--forest); --btn-fg: var(--sand-warm); --btn-bd: var(--forest); }

.btn--light { --btn-bg: transparent; --btn-fg: var(--sand-warm); --btn-bd: rgba(244,238,228,0.5); }
.btn--light:hover { --btn-bg: var(--sand-warm); --btn-fg: var(--forest-deep); --btn-bd: var(--sand-warm); }

.btn--solid-light { --btn-bg: var(--sand-warm); --btn-fg: var(--forest-deep); --btn-bd: var(--sand-warm); }
.btn--solid-light:hover { --btn-bg: var(--amber-light); --btn-bd: var(--amber-light); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

/* Text link with an underline that grows on hover */
.link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-small); font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--amber-ink); text-decoration: none;
  padding-block: 0.6rem;
}
.link::after {
  content: ""; width: 1.35rem; height: 1px; background: currentColor;
  transition: width var(--dur) var(--ease-out);
}
.link:hover::after { width: 2.5rem; }
.on-dark .link { color: var(--amber-light); }

/* --------------------------------------------------------------------------
   5. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  min-height: 5.5rem; /* room for the circular badge to breathe */
}

/* The mark is white line art, so it needs an ink version for the solid sand header
   and the supplied white one for the photographic hero and the dark footer. */
.brand {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
  padding-block: 0.5rem; /* keeps the link a 44px tap target */
}
/* No `display` here: `.brand img` (0,1,1) would outrank `.brand__light` (0,1,0)
   and defeat the variant swap. Flex already blockifies these children. */
.brand img {
  width: clamp(60px, 6.4vw, 72px);
  height: auto;
}
.brand__light { display: none; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__cta { display: none; }
.nav__link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.6rem;
  transition: color var(--dur) var(--ease-out);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0.1rem;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--amber-ink); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: inline-flex; }

/* Transparent state — header sits over a hero until the page scrolls */
.site-header--transparent {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header--transparent .nav__link { color: var(--sand-warm); }
/* Over a photo the amber is too low-contrast for 15px text, so the current page
   is marked by its underline (already shown via aria-current) rather than colour. */
.site-header--transparent .nav__link[aria-current="page"] { color: var(--sand-warm); }
.site-header--transparent .brand__dark  { display: none; }
.site-header--transparent .brand__light { display: block; }
.site-header--transparent .btn--ghost {
  --btn-fg: var(--sand-warm); --btn-bd: rgba(244,238,228,0.5);
}
.site-header--transparent .btn--ghost:hover {
  --btn-bg: var(--sand-warm); --btn-fg: var(--forest-deep); --btn-bd: var(--sand-warm);
}
.site-header--transparent .nav-toggle__bar { background: var(--sand-warm); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; padding: 0;
  position: relative; z-index: calc(var(--z-overlay) + 1);
}
.nav-toggle__box { display: block; width: 1.5rem; height: 0.85rem; position: relative; }
.nav-toggle__bar {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform 300ms var(--ease-out), opacity 200ms var(--ease-out),
              background var(--dur) var(--ease-out);
}
.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle__bar:nth-child(3) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: var(--sand-warm); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--forest-deep);
}
.hero--page { min-height: clamp(24rem, 62svh, 34rem); align-items: flex-end; }

.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 58%;
}
/* Two scrims: one lifts the headline off the photo, one keeps the transparent
   header legible no matter how bright the sky is behind it. */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top,
      rgba(21,32,26,0.88) 0%,
      rgba(21,32,26,0.44) 40%,
      rgba(21,32,26,0.20) 62%,
      rgba(21,32,26,0.58) 88%,
      rgba(21,32,26,0.74) 100%);
}

.hero__body {
  position: relative; z-index: var(--z-raised);
  width: 100%;
  padding-bottom: clamp(3.5rem, 8vh, 7rem);
  padding-top: 8rem;
  color: var(--sand-warm);
}
.hero__title {
  font-size: var(--fs-hero);
  color: var(--sand-warm);
  max-width: 16ch;
  margin-bottom: var(--sp-3);
  text-shadow: 0 2px 30px rgba(15, 24, 19, 0.35);
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 90;
  color: var(--amber-light);
}
.hero__lead {
  font-size: var(--fs-lead);
  color: rgba(247, 243, 236, 0.92);
  max-width: 46ch;
  margin-bottom: var(--sp-4);
}
.hero__kicker {
  color: var(--amber-light);
  font-size: var(--fs-kicker);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.hero--page .hero__title { font-size: var(--fs-h1); max-width: 18ch; }

/* Scroll cue */
.hero__cue {
  position: absolute; left: 50%; bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: var(--z-raised);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: rgba(247, 243, 236, 0.75);
  font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none;
}
.hero__cue span { display: block; width: 1px; height: 2.5rem; background: currentColor; opacity: 0.6; }
.hero__cue:hover { color: var(--amber-light); }

/* --------------------------------------------------------------------------
   7. Editorial rows — image + text, alternating
   -------------------------------------------------------------------------- */
.editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.editorial + .editorial { margin-top: clamp(4rem, 8vw, 8rem); }
.editorial__media { grid-column: 1 / span 6; position: relative; }
.editorial__body  { grid-column: 8 / span 5; }
.editorial--flip .editorial__media { grid-column: 7 / span 6; order: 2; }
.editorial--flip .editorial__body  { grid-column: 1 / span 5; order: 1; }

.editorial__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.editorial__media--wide img { aspect-ratio: 4 / 3; }

/* Small caption plate that overlaps the image edge */
.editorial__plate {
  position: absolute; right: -1px; bottom: 1.75rem;
  background: var(--sand-warm);
  padding: 0.9rem 1.4rem;
  font-size: var(--fs-kicker);
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber-ink);
  box-shadow: var(--shadow-sm);
}
.editorial--flip .editorial__plate { right: auto; left: -1px; }

.editorial__body h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.editorial__body h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }

/* Archive strip — old family photographs, deliberately small and quiet */
.archive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2.25rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.archive__item { margin: 0; }
.archive__item img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 2px;
  filter: sepia(0.12) saturate(0.9);
}
.archive__item figcaption {
  margin-top: 0.75rem;
  font-size: var(--fs-kicker);
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   8. Full-bleed bands
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  min-height: clamp(22rem, 56svh, 34rem);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--sand-warm);
}
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
/* Weighted to the left, where the copy sits, so the amber kicker clears AA
   even against the brightest frame in the set. */
.band__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(19,30,24,0.92) 0%,
    rgba(19,30,24,0.84) 40%,
    rgba(19,30,24,0.70) 62%,
    rgba(19,30,24,0.36) 100%);
}
.band__body {
  position: relative; z-index: var(--z-raised);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  max-width: 46rem;
}
.band__body h2 { font-size: var(--fs-h2); color: var(--sand-warm); margin-bottom: var(--sp-3); }

/* Pull quote */
.quote { max-width: 34rem; }
.quote blockquote {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.9vw, 2.35rem);
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 90;
  line-height: 1.3;
  color: var(--sand-warm);
  text-wrap: balance;
}
.quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-kicker);
  font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber-light);
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.5rem, 2.6vw, 2.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { display: flex; flex-direction: column; }
.card__media { overflow: hidden; border-radius: 2px; margin-bottom: var(--sp-3); }
.card__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.card__media--tall img { aspect-ratio: 3 / 4; }
a.card:hover .card__media img,
.card--hover:hover .card__media img { transform: scale(1.045); }

.card__eyebrow {
  font-size: var(--fs-kicker); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber-ink); margin-bottom: 0.6rem;
}
.card h3 { font-size: var(--fs-h3); margin-bottom: 0.65rem; }
.card p { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: 0.9rem; }
.card .link { margin-top: auto; }
a.card { text-decoration: none; color: inherit; }

.on-dark .card p { color: rgba(244,238,228,0.78); }
.on-dark .card__eyebrow { color: var(--amber-light); }

/* Numbered feature list — no icons, just typographic hierarchy */
.features { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.feature__num {
  font-family: var(--font-display);
  font-size: 1.25rem; font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 40;
  color: var(--amber-ink);
  line-height: 1.4;
}
.feature h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.feature p { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }
.on-dark .features, .on-dark .feature { border-color: var(--line-light); }
.on-dark .feature p { color: rgba(244,238,228,0.78); }
.on-dark .feature__num { color: var(--amber-light); }

/* Spec pills used on room cards */
.specs { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.specs li {
  font-size: 0.8125rem; letter-spacing: 0.04em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.25rem 0.7rem; border-radius: 999px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Rooms — editorial rows with a data column
   -------------------------------------------------------------------------- */
.room {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}
.room:last-child { border-bottom: 0; }
.room__media { grid-column: 1 / span 7; }
.room__body  { grid-column: 8 / span 5; }
.room--flip .room__media { grid-column: 6 / span 7; order: 2; }
.room--flip .room__body  { grid-column: 1 / span 5; order: 1; }
.room__media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px;
}
.room__count {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; color: var(--amber-ink); margin-bottom: 0.5rem;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 40;
}
.room h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); margin-bottom: var(--sp-2); }
.room p { font-size: var(--fs-small); color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   11. Gallery
   -------------------------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.filter {
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--fs-small); font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-soft); cursor: pointer;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.filter:hover { border-color: var(--forest); color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--forest); border-color: var(--forest); color: var(--sand-warm);
}

/* Fixed row height + spans gives a designed mosaic rather than a uniform
   contact sheet; grid-auto-flow: dense back-fills gaps when a filter is on. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(140px, 15.5vw, 235px);
  grid-auto-flow: dense;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}
.gallery__item {
  position: relative; display: block;
  padding: 0; border: 0; background: var(--sand-deep);
  border-radius: 2px; overflow: hidden; cursor: pointer;
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(19,30,24,0.55), rgba(19,30,24,0) 55%);
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1rem 1.1rem;
  color: var(--sand-warm);
  font-size: var(--fs-kicker); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-align: left;
  opacity: 0; transform: translateY(0.4rem);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap { opacity: 1; transform: translateY(0); }
.gallery__item[hidden] { display: none; }
.gallery__item--tall    { grid-row: span 2; }
.gallery__item--wide    { grid-column: span 2; }
.gallery__item--feature { grid-column: span 2; grid-row: span 2; }

.gallery__empty {
  grid-column: 1 / -1; text-align: center;
  padding-block: var(--sp-6); color: var(--ink-soft);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  background: rgba(15, 24, 19, 0.94);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden; pointer-events: none;
  /* visibility must flip instantly on open (a hidden dialog cannot take focus)
     but wait for the fade on close — so delay it only in the closing direction. */
  transition: opacity 300ms var(--ease-out), visibility 0s linear 300ms;
}
.lightbox.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 300ms var(--ease-out), visibility 0s linear 0s;
}
.lightbox__figure { margin: 0; max-width: min(100%, 1200px); text-align: center; }
.lightbox__figure img {
  max-width: 100%; max-height: 78svh;
  width: auto; margin-inline: auto;
  border-radius: 2px; background: transparent;
}
.lightbox__figure figcaption {
  margin-top: var(--sp-3);
  color: rgba(244,238,228,0.82);
  font-size: var(--fs-small); letter-spacing: 0.06em;
}
.lightbox__count {
  display: block; margin-top: 0.4rem;
  font-size: var(--fs-kicker); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--amber-light);
}
.lightbox__btn {
  position: absolute;
  width: 3.25rem; height: 3.25rem;
  display: grid; place-items: center;
  background: rgba(244,238,228,0.1);
  border: 1px solid rgba(244,238,228,0.28);
  border-radius: 999px;
  color: var(--sand-warm); cursor: pointer;
  transition: background var(--dur) var(--ease-out);
}
.lightbox__btn:hover { background: rgba(244,238,228,0.24); }
.lightbox__btn svg { width: 1.15rem; height: 1.15rem; }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__prev  { left:  clamp(0.75rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: clamp(0.75rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-size: var(--fs-kicker); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field .req { color: var(--amber-ink); }
.field input, .field textarea, .field select {
  min-height: 3rem;
  padding: 0.8rem 1rem;
  font-family: var(--font-body); font-size: var(--fs-body);
  color: var(--ink);
  background: var(--sand-warm);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(46, 75, 63, 0.16);
}
.field__hint { font-size: 0.8125rem; color: var(--ink-soft); letter-spacing: 0; text-transform: none; font-weight: 400; }

/* --------------------------------------------------------------------------
   13. Contact / info blocks
   -------------------------------------------------------------------------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { margin: 0; padding-block: var(--sp-3); border-bottom: 1px solid var(--line); }
.info-list li:first-child { padding-top: 0; }
.info-list dt, .info-list .info-list__label {
  font-size: var(--fs-kicker); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber-ink); margin-bottom: 0.45rem;
}
.info-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.info-list a:hover { color: var(--amber-ink); border-color: currentColor; }
.info-list__note { font-size: var(--fs-small); color: var(--ink-soft); }

.map-frame {
  border: 0; width: 100%; aspect-ratio: 16 / 10;
  border-radius: 2px; background: var(--sand-deep);
  filter: saturate(0.82);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(244, 238, 228, 0.78);
  padding-block: clamp(3.5rem, 7vw, 6rem) var(--sp-4);
  font-size: var(--fs-small);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--amber-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line-light);
}
.footer-grid h2 {
  font-family: var(--font-body);
  font-size: var(--fs-kicker); font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: var(--sp-2);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer__brand img { width: 132px; height: auto; margin-bottom: var(--sp-3); }
.footer__tag { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--sand); max-width: 24ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  justify-content: space-between; align-items: center;
  padding-top: var(--sp-4);
  font-size: 0.8125rem;
  color: rgba(244, 238, 228, 0.55);
}
.social { display: flex; gap: 0.5rem; }
.social a {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border: 1px solid var(--line-light); border-radius: 999px;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.social a:hover { background: rgba(244,238,228,0.12); border-color: rgba(244,238,228,0.4); }
.social svg { width: 1.05rem; height: 1.05rem; }

/* --------------------------------------------------------------------------
   15. Mobile action bar — phone only, designed for thumbs
   -------------------------------------------------------------------------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: none;
  background: var(--sand-warm);
  border-top: 1px solid var(--line);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
  box-shadow: 0 -6px 24px rgba(28, 38, 33, 0.10);
}
.action-bar .btn { flex: 1; min-height: 3rem; padding-inline: 0.75rem; font-size: 0.8125rem; }

/* --------------------------------------------------------------------------
   16. Motion — reveals
   -------------------------------------------------------------------------- */
/* Scoped to .js so content is never hidden if the script fails to run. */
.js .reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Sentinel that tells the header when it has left the hero. */
.header-sentinel {
  position: absolute; top: 64px; left: 0;
  width: 1px; height: 1px;
  pointer-events: none; visibility: hidden;
}

/* --------------------------------------------------------------------------
   17. Responsive — phone and tablet layouts are re-composed, not shrunk
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .nav {
    position: fixed; inset: 0;
    z-index: var(--z-overlay);
    flex-direction: column;
    align-items: flex-start; justify-content: center;
    gap: 0;
    background: var(--forest-deep);
    padding: 6rem var(--gutter) 3rem;
    transform: translateY(-100%);
    visibility: hidden;
    /* Flip to visible instantly on open, but hold it until the panel has slid
       away on close — transitioning visibility itself would delay the open. */
    transition: transform 480ms var(--ease-out), visibility 0s linear 480ms;
    overflow-y: auto;
  }
  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 480ms var(--ease-out), visibility 0s linear 0s;
  }
  .nav__link {
    color: var(--sand-warm);
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.9rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: none;
    padding-block: 0.55rem;
    width: 100%;
    border-bottom: 1px solid var(--line-light);
    opacity: 0; transform: translateY(1rem);
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  }
  .nav.is-open .nav__link { opacity: 1; transform: none; transition-delay: var(--nav-delay, 0ms); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--amber-light); }
  .nav__cta { display: block; width: 100%; margin-top: var(--sp-4); }
  .nav__cta .btn { width: 100%; }

  .editorial, .room { grid-template-columns: 1fr; gap: var(--sp-4); }
  .editorial__media, .editorial__body,
  .room__media, .room__body { grid-column: 1 / -1; }
  .editorial--flip .editorial__media, .room--flip .room__media { order: 0; }
  .editorial--flip .editorial__body,  .room--flip .room__body  { order: 1; }
  .editorial__media img { aspect-ratio: 3 / 2; }
  .editorial__plate { right: var(--sp-2); left: auto; bottom: -0.85rem; }
  .editorial--flip .editorial__plate { left: auto; right: var(--sp-2); }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 22vw, 220px); }
  .gallery__item--wide, .gallery__item--feature { grid-column: span 2; }
  .gallery__item--feature { grid-row: span 2; }
}

@media (max-width: 620px) {
  :root { --fs-body: 1rem; }

  .hero { min-height: 92svh; }
  .hero__body { padding-bottom: 6.5rem; }
  .hero__title { max-width: 13ch; }
  .hero--page { min-height: 26rem; }
  .hero__cue { display: none; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .archive { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .archive__item:last-child { grid-column: span 2; }

  /* Link lists are thumb targets on a phone, not prose — give them real height */
  .footer-grid li a,
  .info-list p a {
    display: inline-block;
    padding-block: 0.6rem;
  }
  .footer-grid li { margin-bottom: 0; }
  .form__row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Phone gallery: one strong column, no span tricks, uniform crop */
  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 0.75rem; }
  .gallery__item,
  .gallery__item--tall,
  .gallery__item--wide,
  .gallery__item--feature {
    aspect-ratio: 4 / 3; grid-row: auto; grid-column: auto;
  }
  .gallery__cap { opacity: 1; transform: none; }
  .gallery__item::after { opacity: 1; }

  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }

  .feature { grid-template-columns: 1fr; gap: 0.5rem; padding-block: var(--sp-3); }
  .feature__num { font-size: 1rem; }

  .action-bar { display: flex; }
  body { padding-bottom: 4.5rem; }
  .site-footer { padding-bottom: 5.5rem; }

  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__figure img { max-height: 64svh; }
}

/* --------------------------------------------------------------------------
   18. Reduced motion + print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card__media img, .gallery__item img { transition: none; }
}

@media print {
  .site-header, .action-bar, .hero__cue, .filters, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
