/* =========================================================================
   Leone Residence — v2 "editorial cinema"
   Single stylesheet, no build step.

   The DOM contract from v1 is unchanged: every class and data- hook the
   markup and main.js rely on still exists. What changed is the visual
   language — near-black burgundy grounds, gold hairlines, oversized display
   type, cinematic full-bleed imagery, and slow weighted motion.

   Modern CSS used, each behind @supports so older browsers simply get the
   static layout:
     · cross-document view transitions   (page-to-page morph)
     · scroll-driven animations          (reveal tied to scroll position)
     · @property                         (animatable gradient angle)
     · oklch() + color-mix()             (richer, more consistent colour)

   Sections:
     1. Tokens        6. Buttons & links      11. Cards & rates
     2. Reset         7. Header & nav         12. Gallery & lightbox
     3. Type          8. Hero                 13. Map, forms, footer
     4. Layout        9. Sections             14. Utilities
     5. Motion       10. Editorial figures
   ========================================================================= */

/* 1. Tokens ------------------------------------------------------------- */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Burgundy runs from near-black to the brand red. */
  --ink: #140509;
  --burgundy-950: #1c060c;
  --burgundy-900: #2a0810;
  --burgundy-800: #3d0b18;
  --burgundy-700: #5a1024;   /* brand primary */
  --burgundy-600: #74172f;
  --burgundy-500: #8f2440;

  --gold-100: #f4e8c9;
  --gold-200: #e8d5a0;
  --gold-300: #dcc07c;
  --gold-400: #c9a24b;       /* brand accent */
  --gold-500: #ab8434;
  --gold-600: #856324;

  --bone-50: #fdfbf7;
  --bone-100: #f7f2e9;
  --bone-200: #efe7d8;
  --bone-300: #e0d4bf;
  --bone-400: #c4b499;

  --text-900: #1a1512;
  --text-700: #453d36;
  --text-500: #6f655b;

  --page: var(--bone-50);
  --text: var(--text-900);
  --muted: var(--text-500);

  --font-display: "Cormorant Garamond", "Hoefler Text", Garamond, Georgia, serif;
  --font-sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --shell: 84rem;
  --section-y: clamp(5rem, 11vw, 12rem);

  /* Slow and weighted — nothing springs or bounces. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 5.5rem;
  --hair: 1px solid color-mix(in srgb, var(--gold-400) 34%, transparent);
  --shadow: 0 32px 80px -40px rgb(20 5 9 / 0.45);
}

@supports (color: oklch(50% 0.1 20)) {
  :root {
    --burgundy-700: oklch(31% 0.115 18);
    --burgundy-600: oklch(37% 0.125 18);
    --gold-400: oklch(73% 0.096 87);
    --gold-300: oklch(81% 0.084 87);
  }
}

/* 2. Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Author display rules outrank the UA's [hidden] rule, and several
   components set display on classes that also get toggled with [hidden]. */
[hidden] { display: none !important; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--burgundy-700);
  color: var(--bone-50);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* 3. Type --------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.display-1 { font-size: clamp(3.4rem, 1.2rem + 9vw, 9.5rem); }
.display-2 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.25rem); }
.display-3 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.25rem); }
.display-4 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); }

/* Letterspaced label with a gold rule running off the end. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-500);
}
/* border-top instead of a filled height:1px box — a 1px-tall background
   rectangle sits on a fractional device-pixel boundary under non-integer
   browser zoom/OS display scaling and can render as an antialiased diagonal
   smear over its length; a border snaps to a crisp single device pixel much
   more reliably. Same reasoning on every hairline below. */
.eyebrow::after {
  content: "";
  width: clamp(2rem, 6vw, 4.5rem);
  height: 0;
  border-top: 1px solid currentColor;
  opacity: 0.5;
}
.eyebrow--light { color: var(--gold-300); }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before {
  content: "";
  width: clamp(2rem, 6vw, 4.5rem);
  height: 0;
  border-top: 1px solid currentColor;
  opacity: 0.5;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.42vw, 1.3125rem);
  line-height: 1.62;
  color: var(--text-700);
  max-width: var(--measure);
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-child { color: var(--text-700); }

.rule {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--gold-400);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1px solid;
  border-image: linear-gradient(to right, transparent, currentColor, transparent) 1;
  opacity: 0.6;
}
.rule img { width: 2.75rem; }
.rule--start::before { display: none; }
.rule--short { max-width: 15rem; }

/* 4. Layout ------------------------------------------------------------- */

.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}
.shell--narrow { --shell: 56rem; }
.shell--wide { --shell: 100rem; }

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

.section--burgundy {
  background: var(--burgundy-900);
  color: var(--bone-100);
  overflow: hidden;
}
.section--burgundy .lede,
.section--burgundy .prose { color: color-mix(in srgb, var(--bone-100) 78%, transparent); }
.section--burgundy .eyebrow { color: var(--gold-300); }

.section--cream { background: var(--bone-100); }

.stack > * + * { margin-top: var(--stack-gap, 1.6rem); }
.grid { display: grid; gap: var(--grid-gap, 2rem); }

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-start { grid-template-columns: 1.2fr 1fr; }
  .split--wide-end { grid-template-columns: 1fr 1.2fr; }
  .split__media--first { order: -1; }
}

.section-head {
  display: grid;
  gap: 1.4rem;
  max-width: 46rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

/* 5. Motion ------------------------------------------------------------- */

/* Cross-document page transitions: navigating between pages cross-fades
   rather than flashing white. Chromium today, ignored elsewhere. */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 0.35s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-0.75rem); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(1.25rem); } }

/* The header and the floating button persist across the transition. */
.site-header { view-transition-name: site-header; }
.wa-float { view-transition-name: wa-float; }

/* Reveal-on-scroll, driven by IntersectionObserver in main.js so behaviour
   is identical in every browser. */
[data-reveal] {
  opacity: 0;
  transform: translateY(2.25rem);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 105ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="right"] { transform: translateX(-2.5rem); }
[data-reveal="scale"] { transform: scale(0.94); }

/* Clip on the <picture>, not the figure — .framed's offset gold border is an
   ::before that deliberately sits outside the element, and an overflow:hidden
   on the figure itself would crop it away. */
.media-reveal picture { display: block; overflow: hidden; }
.media-reveal > img { display: block; }
.media-reveal img {
  transform: scale(1.16);
  transition: transform 1.8s var(--ease);
}
.media-reveal.is-visible img { transform: scale(1); }

/* Per-word display reveal. main.js wraps each word in .word > span. */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-inline-end: 0.06em;
}
.word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--w, 0) * 85ms + 150ms);
}
.is-lit .word > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .media-reveal img { transform: none; }
  .word > span { transform: none; }
}

/* Opening curtain. */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--burgundy-950);
  transition: clip-path 1s var(--ease-io), opacity 0.5s 0.5s;
  clip-path: inset(0 0 0 0);
}
.curtain img {
  width: clamp(4.5rem, 9vw, 6.5rem);
  animation: crest-in 1.2s var(--ease) both;
}
.curtain.is-done {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  pointer-events: none;
}
@keyframes crest-in {
  from { opacity: 0; transform: scale(0.8) rotate(-6deg); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } }

/* 6. Buttons & links ---------------------------------------------------- */

.btn {
  --btn-fg: var(--burgundy-700);
  --btn-bd: currentColor;
  --btn-fill: var(--burgundy-700);
  --btn-hover-fg: var(--bone-50);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1.05em 2.3em;
  border: 1px solid var(--btn-bd);
  background: transparent;
  color: var(--btn-fg);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.5s var(--ease),
    border-color 0.5s var(--ease),
    transform 0.12s ease-out;
}
/* Fill sweeps in from the leading edge rather than bottom-up. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--btn-hover-fg); }

.btn--gold {
  --btn-fg: var(--gold-300);
  --btn-bd: color-mix(in srgb, var(--gold-400) 70%, transparent);
  --btn-fill: var(--gold-400);
  --btn-hover-fg: var(--burgundy-950);
}
.btn--solid {
  --btn-fg: var(--bone-50);
  --btn-bd: var(--burgundy-700);
  --btn-fill: var(--burgundy-600);
  background: var(--burgundy-700);
}
.btn--light {
  --btn-fg: var(--bone-50);
  --btn-bd: color-mix(in srgb, var(--bone-50) 45%, transparent);
  --btn-fill: var(--bone-50);
  --btn-hover-fg: var(--burgundy-900);
}
.btn--wa { --btn-fg: #128c4a; --btn-bd: #128c4a; --btn-fill: #128c4a; --btn-hover-fg: #fff; }
.btn--wa.btn--light { --btn-fg: var(--bone-50); --btn-bd: color-mix(in srgb, var(--bone-50) 45%, transparent); }
.btn--sm { padding: 0.75em 1.6em; font-size: 0.6875rem; }
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-500);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  transition: color 0.4s, border-color 0.4s, gap 0.4s var(--ease);
}
.link:hover { gap: 1.1rem; border-color: currentColor; }
.link--light { color: var(--gold-300); }

/* 7. Header & nav ------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition:
    transform 0.55s var(--ease),
    background 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.85rem; margin-inline-end: auto; }
.brand img { width: 2.9rem; transition: width 0.5s var(--ease); }
.brand__text { display: grid; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
}
.brand__place {
  font-size: 0.5rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  opacity: 0.72;
}

.nav { display: none; }
@media (min-width: 64rem) {
  .nav { display: flex; align-items: center; gap: clamp(1.5rem, 2.6vw, 2.5rem); }
}
.nav a {
  position: relative;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-block: 0.4rem;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.nav a:hover { opacity: 1; }
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 0;
  border-bottom: 1px solid currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav a[aria-current="page"] { color: var(--gold-300); opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 0.85rem; }
.header-actions .btn { display: none; }
@media (min-width: 48rem) { .header-actions .btn { display: inline-flex; } }

.site-header--over { color: var(--bone-50); }
.site-header--over .brand__place { color: var(--gold-200); }
.site-header--solid {
  background: color-mix(in srgb, var(--burgundy-950) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  color: var(--bone-50);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--gold-400) 26%, transparent);
}
.site-header--solid .brand img { width: 2.3rem; }
.site-header--light {
  background: color-mix(in srgb, var(--bone-50) 92%, transparent);
  backdrop-filter: blur(14px);
  color: var(--text-900);
  box-shadow: 0 1px 0 var(--bone-300);
}
.site-header--hidden { transform: translateY(-105%); }

.burger {
  display: grid;
  /* place-items alone centers each line within its own row, but leaves
     align-content at its grid default of "stretch" — the three rows then
     stretch to fill the button's full height instead of packing together,
     which threw off the X-transform math below. align-content: center packs
     them tight first, then centers that group. */
  place-items: center;
  align-content: center;
  width: 2.9rem; height: 2.9rem;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  background: none;
  cursor: pointer;
  transition: border-color 0.3s;
}
.burger:hover { border-color: currentColor; }
@media (min-width: 64rem) { .burger { display: none; } }
.burger span {
  display: block;
  width: 1.15rem; height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: var(--gutter);
  background: var(--burgundy-950);
  color: var(--bone-50);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.85s var(--ease-io);
}
.mobile-nav.is-open { clip-path: inset(0 0 0 0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  line-height: 1.25;
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease),
    color 0.3s;
  transition-delay: calc(var(--i) * 70ms + 200ms);
}
.mobile-nav.is-open a { opacity: 1; transform: none; }
.mobile-nav a:hover { color: var(--gold-300); }
.mobile-nav__foot {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--bone-100) 70%, transparent);
}

body.is-locked { overflow: hidden; }

/* 8. Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  color: var(--bone-50);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 52%;
  animation: kenburns 32s var(--ease-io) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.22) translate3d(-2%, -1.5%, 0); }
}

/* Two scrims: one down the leading edge for text, one up from the floor. */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right,
      rgb(20 5 9 / 0.82) 0%, rgb(20 5 9 / 0.42) 42%, rgb(20 5 9 / 0.05) 78%),
    linear-gradient(to bottom,
      rgb(20 5 9 / 0.55) 0%, rgb(20 5 9 / 0.1) 30%,
      rgb(20 5 9 / 0.5) 74%, rgb(20 5 9 / 0.92) 100%);
}

.hero__inner {
  padding-block: clamp(8rem, 18vh, 12rem) clamp(5rem, 11vh, 8rem);
  display: grid;
  gap: 1.75rem;
  justify-items: start;
  max-width: 52rem;
}
.hero__title { color: var(--bone-50); line-height: 0.92; }
.hero__title em {
  display: block;
  font-style: italic;
  color: var(--gold-300);
  margin-inline-start: 0.08em;
}
.hero__lede {
  color: color-mix(in srgb, var(--bone-100) 82%, transparent);
  max-width: 36rem;
}

.hero__scroll {
  position: absolute;
  inset-block-end: 2rem;
  inset-inline-start: var(--gutter);
  display: none;
  align-items: center;
  gap: 1rem;
  font-size: 0.625rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bone-100) 75%, transparent);
}
@media (min-width: 48rem) { .hero__scroll { display: flex; } }
.hero__scroll::after {
  content: "";
  width: 4.5rem; height: 0;
  border-top: 1px solid;
  border-image: linear-gradient(to right, var(--gold-300), transparent) 1;
  transform-origin: left;
  animation: scroll-cue 2.8s var(--ease-io) infinite;
}
@keyframes scroll-cue {
  0%, 100% { transform: scaleX(0.3); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
}

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(26rem, 62vh, 40rem);
  isolation: isolate;
  color: var(--bone-50);
  overflow: hidden;
}
.page-hero img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 34s var(--ease-io) infinite alternate;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgb(20 5 9 / 0.78), rgb(20 5 9 / 0.3) 60%, rgb(20 5 9 / 0.08)),
    linear-gradient(to bottom, rgb(20 5 9 / 0.5), rgb(20 5 9 / 0.2) 45%, rgb(20 5 9 / 0.85));
}
.page-hero__inner {
  padding-block: clamp(7rem, 14vh, 10rem) clamp(3rem, 7vh, 4.5rem);
  display: grid;
  gap: 1.1rem;
  max-width: 46rem;
}

.breadcrumb {
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bone-100) 70%, transparent);
}
.breadcrumb a { color: var(--gold-300); }
.breadcrumb ol { display: flex; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 0.6rem; opacity: 0.45; }

/* 9. Sections ----------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}
@media (min-width: 56rem) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { position: relative; padding-inline-start: 1.75rem; }
.stat::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0.35rem 0.5rem;
  width: 0;
  border-left: 1px solid;
  border-image: linear-gradient(to bottom, var(--gold-400), transparent) 1;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3.6vw, 5rem);
  line-height: 1;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bone-100) 66%, transparent);
}

.amenities {
  display: grid;
  gap: 1px;
  background: var(--bone-200);
  border-block: 1px solid var(--bone-200);
}
@media (min-width: 40rem) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .amenities { grid-template-columns: repeat(3, 1fr); } }
.amenity {
  position: relative;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: clamp(2rem, 3.5vw, 3rem);
  background: var(--bone-50);
  transition: background 0.55s var(--ease);
}
/* Gold rule grows along the top edge on hover. */
.amenity::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.amenity:hover { background: #fff; }
.amenity:hover::before { transform: scaleX(1); }
.amenity svg {
  width: 1.9rem; height: 1.9rem;
  stroke: var(--gold-500);
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amenity h3 { font-size: 1.45rem; }
.amenity p { font-size: 0.9375rem; color: var(--muted); }

.statement {
  position: relative;
  isolation: isolate;
  color: var(--bone-50);
  text-align: center;
  overflow: hidden;
}
.statement__media { position: absolute; inset: 0; z-index: -2; }
.statement__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}
.statement::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgb(20 5 9 / 0.7), rgb(20 5 9 / 0.44) 45%, rgb(20 5 9 / 0.74));
}
.statement__inner {
  padding-block: clamp(7rem, 16vw, 13rem);
  display: grid;
  gap: 2.25rem;
  justify-items: center;
}
.statement blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 4rem);
  font-style: italic;
  line-height: 1.16;
  max-width: 20ch;
  text-wrap: balance;
}

/* 10. Editorial figures -------------------------------------------------- */

/* Offset gold frame behind an image. */
.framed { position: relative; isolation: isolate; }
.framed::before {
  content: "";
  position: absolute;
  inset: 1.75rem -1.75rem -1.75rem 1.75rem;
  border: 1px solid color-mix(in srgb, var(--gold-400) 55%, transparent);
  z-index: -1;
}
.framed img { width: 100%; }

/* 11. Cards & rates ------------------------------------------------------ */

.cards { display: grid; gap: clamp(1.75rem, 3vw, 2.75rem); }
@media (min-width: 46rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bone-50);
  border: 1px solid var(--bone-200);
  overflow: hidden;
  transition:
    box-shadow 0.7s var(--ease),
    transform 0.7s var(--ease),
    border-color 0.7s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--gold-400) 45%, transparent);
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bone-200);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.card:hover .card__media img { transform: scale(1.08); }
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(20 5 9 / 0.35), transparent 45%);
}
.card__tag {
  position: absolute;
  inset-block-start: 1.1rem;
  inset-inline-start: 1.1rem;
  z-index: 1;
  padding: 0.4rem 0.95rem;
  background: color-mix(in srgb, var(--burgundy-950) 88%, transparent);
  backdrop-filter: blur(6px);
  color: var(--gold-200);
  font-size: 0.5625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 3vw, 2.4rem);
}
.card__body .price { margin-top: auto; }
.card__title { font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.15rem); }
.card__desc { font-size: 0.9375rem; color: var(--muted); }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0; margin: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--text-700);
}
.specs li { display: flex; align-items: center; gap: 0.45rem; }
.specs svg {
  width: 1.05rem; height: 1.05rem;
  stroke: var(--gold-500); fill: none;
  stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding-top: 1.1rem;
  border-top: var(--hair);
}
.price__amount {
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1;
  color: var(--burgundy-700);
  font-variant-numeric: tabular-nums;
}
.price__unit { font-size: 0.8125rem; color: var(--muted); }
.price__alt { margin-inline-start: auto; font-size: 0.8125rem; color: var(--muted); }

.toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--bone-300);
  background: var(--bone-100);
  border-radius: 999px;
}
.toggle button {
  padding: 0.6rem 1.7rem;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.toggle button[aria-pressed="true"] {
  background: var(--burgundy-700);
  color: var(--bone-50);
}

.table-wrap { overflow-x: auto; }
.rate-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.rate-table :is(th, td) {
  padding: 1.25rem 1.4rem;
  text-align: start;
  border-bottom: 1px solid var(--bone-200);
}
.rate-table thead th {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--gold-400);
}
.rate-table tbody tr { transition: background 0.4s; }
.rate-table tbody tr:hover { background: var(--bone-100); }
.rate-table td:first-child {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.rate-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 12. Gallery & lightbox -------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.filters button {
  padding: 0.65rem 1.6rem;
  border: 1px solid var(--bone-300);
  background: none;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.45s, border-color 0.45s, background 0.45s;
}
.filters button:hover { border-color: var(--gold-400); color: var(--burgundy-700); }
.filters button[aria-pressed="true"] {
  background: var(--burgundy-700);
  border-color: var(--burgundy-700);
  color: var(--bone-50);
}

.gallery { columns: 1; column-gap: 1.5rem; }
@media (min-width: 40rem) { .gallery { columns: 2; } }
@media (min-width: 68rem) { .gallery { columns: 3; } }
.gallery figure { break-inside: avoid; margin: 0 0 1.5rem; }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bone-200);
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
}
.gallery img { width: 100%; transition: transform 1.4s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.gallery button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(20 5 9 / 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.gallery button:hover::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.25rem;
  padding: clamp(1rem, 3vw, 2.25rem);
  background: color-mix(in srgb, var(--burgundy-950) 97%, transparent);
  backdrop-filter: blur(8px);
  color: var(--bone-100);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lightbox__count { font-size: 0.6875rem; letter-spacing: 0.24em; color: var(--gold-300); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lightbox__stage img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  animation: lb-in 0.6s var(--ease);
}
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; } }
.lightbox__caption {
  text-align: center;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--bone-100) 72%, transparent);
  max-width: 46rem;
  margin-inline: auto;
}
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 3.1rem; height: 3.1rem;
  border: 1px solid color-mix(in srgb, var(--bone-50) 28%, transparent);
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.4s, border-color 0.4s;
}
.lightbox__btn:hover {
  background: color-mix(in srgb, var(--bone-50) 12%, transparent);
  border-color: var(--gold-400);
}
.lightbox__btn svg { width: 1.15rem; height: 1.15rem; stroke: currentColor; fill: none; stroke-width: 1.25; }
.lightbox__nav { position: absolute; inset-block: 0; display: grid; place-items: center; padding-inline: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox__nav--prev { inset-inline-start: 0; }
.lightbox__nav--next { inset-inline-end: 0; }

/* 13. Map, forms, footer -------------------------------------------------- */

.map-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--bone-300);
  background: var(--bone-200);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 62rem) { .map-frame { aspect-ratio: 21 / 9; } }

.directions {
  display: grid;
  gap: 1px;
  background: var(--bone-200);
  border-block: 1px solid var(--bone-200);
}
@media (min-width: 48rem) { .directions { grid-template-columns: repeat(2, 1fr); } }
.direction {
  display: grid;
  gap: 0.4rem;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--bone-50);
  transition: background 0.5s;
}
.direction:hover { background: #fff; }
.direction dt {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.direction dd { margin: 0; font-size: 1rem; }
.direction dd span { color: var(--muted); }

.contact-list { display: grid; gap: 1.75rem; list-style: none; padding: 0; margin: 0; }
.contact-list dt {
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.35rem;
}
.contact-list dd { margin: 0; font-size: 1.15rem; }
.contact-list a { transition: color 0.3s; }
.contact-list a:hover { color: var(--gold-500); }

.field { display: grid; gap: 0.5rem; }
.field > label {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.field :is(input, select, textarea) {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--bone-300);
  border-radius: 2px;
  background: #fff;
  font-weight: 300;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.field :is(input, select, textarea):focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-400) 18%, transparent);
  outline: none;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field__error { font-size: 0.8125rem; color: #a3242f; min-height: 1.25rem; }
.field[data-invalid] :is(input, select, textarea) { border-color: #a3242f; }

.form-grid { display: grid; gap: 1.4rem 1.75rem; }
@media (min-width: 40rem) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .field--full { grid-column: 1 / -1; }
}

.form-note { font-size: 0.875rem; color: var(--muted); }

.form-status {
  padding: 1.1rem 1.4rem;
  border-inline-start: 2px solid var(--gold-400);
  background: var(--bone-100);
  font-size: 0.9375rem;
}
.form-status[data-tone="error"] { border-color: #a3242f; background: #fbf1f1; }

.wa-float {
  position: fixed;
  inset-block-end: clamp(1rem, 3vw, 2rem);
  inset-inline-end: clamp(1rem, 3vw, 2rem);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 3.6rem; height: 3.6rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 34px -10px rgb(37 211 102 / 0.7);
  transform: scale(0);
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
.wa-float.is-in { transform: scale(1); }
.wa-float:hover { box-shadow: 0 18px 44px -10px rgb(37 211 102 / 0.85); }
.wa-float svg { width: 1.8rem; height: 1.8rem; fill: currentColor; }

.site-footer {
  position: relative;
  background: var(--burgundy-950);
  color: color-mix(in srgb, var(--bone-100) 76%, transparent);
  padding-block: clamp(4rem, 8vw, 6.5rem) 2.25rem;
  font-size: 0.9375rem;
  overflow: hidden;
}
.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: var(--gold-300); }
.footer-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 {
  font-size: 0.625rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1.35rem;
}
.footer-brand img { width: 3.5rem; margin-bottom: 1.5rem; }
.footer-brand p { max-width: 32ch; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.footer-bottom {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--gold-400) 20%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--bone-100) 55%, transparent);
}

/* 14. Utilities ----------------------------------------------------------- */

.note {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-inline-start: 2px solid var(--gold-400);
  background: var(--bone-100);
  font-size: 0.9375rem;
  color: var(--text-700);
}
.section--burgundy .note {
  background: color-mix(in srgb, var(--bone-50) 6%, transparent);
  color: color-mix(in srgb, var(--bone-100) 80%, transparent);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0; margin: 0; list-style: none; }
.tag-list li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--bone-300);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-700);
  transition: border-color 0.4s, color 0.4s;
}
.tag-list li:hover { border-color: var(--gold-400); color: var(--burgundy-700); }
.section--burgundy .tag-list li {
  border-color: color-mix(in srgb, var(--gold-400) 32%, transparent);
  color: color-mix(in srgb, var(--bone-100) 78%, transparent);
}

.fade-img { opacity: 0; transition: opacity 0.9s var(--ease); }
.fade-img.is-loaded { opacity: 1; }

/* Scroll-driven refinement. Where the browser supports it, the statement
   image scrubs its zoom against scroll position instead of sitting still.
   Everything else already works without this. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement__media img {
      animation: statement-zoom linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes statement-zoom {
      from { transform: scale(1.02) translateY(-2%); }
      to { transform: scale(1.2) translateY(2%); }
    }
  }
}


/* 15. Press states -------------------------------------------------------
   Hover alone reads as a hyperlink; a physical give on press is what makes
   a control feel like a control. Kept small and fast so it never lags. */

.btn:active { transform: translateY(1px) scale(0.99); }
.toggle button:active,
.filters button:active,
.lightbox__btn:active,
.burger:active { transform: scale(0.97); }
.wa-float:active { transform: scale(0.94); }
.link:active { opacity: 0.7; }
.card:active { transform: translateY(-2px); }
.gallery button:active img { transform: scale(1.02); }

.toggle button,
.filters button,
.lightbox__btn,
.burger,
.link { transition-property: all; transition-duration: 0.4s; }
.toggle button:active,
.filters button:active,
.lightbox__btn:active,
.burger:active,
.wa-float:active { transition-duration: 0.1s; }

/* 16. Texture ------------------------------------------------------------
   A fixed grain veil over the whole page. Flat vector surfaces read as
   sterile; this is the cheapest way to put a little tooth back into them.
   Sits above everything, catches no pointer events. */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { body::after { opacity: 0.025; } }

/* 17. Depth on the dark bands --------------------------------------------
   A flat burgundy field behind centred text looks unfinished. A wide, soft
   pool of the lighter burgundy gives the band a light source. */

.section--burgundy::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 90% at 50% -10%,
      color-mix(in srgb, var(--burgundy-700) 75%, transparent) 0%,
      transparent 62%);
}
.section--burgundy > * { position: relative; }

/* 18. Breaking the three-column row --------------------------------------
   An even row of three equal cards is the most generic layout there is.
   Dropping the middle one out of alignment turns it into a composition. */

@media (min-width: 72rem) {
  .cards--3 > :nth-child(2) { transform: translateY(2.75rem); }
  .cards--3 > :nth-child(2):hover { transform: translateY(calc(2.75rem - 6px)); }
  .cards--3 > :nth-child(2):active { transform: translateY(calc(2.75rem - 2px)); }
}

/* 19. Layout utilities ---------------------------------------------------
   These replace the inline style attributes the markup used to carry. */

.btn-row--center { justify-content: center; }
.section-head--flush { margin-bottom: 0; }
.section-head--full { max-width: none; }
.split--top { align-items: start; }
.split--baseline { align-items: end; gap: 2rem; }
.stack--tight { --stack-gap: 0.75rem; }
.self-start { justify-self: start; }
.note--spaced { margin-top: 2rem; }
.note ul { margin: 0.5rem 0 0; padding-inline-start: 1.15rem; }
.note p + ul { margin-top: 0.6rem; }
.rule--medallion { width: min(100%, 22rem); }
.map-frame--tall { aspect-ratio: 4 / 3; }
.centred-note { margin-top: 2rem; text-align: center; }
.page-hero .lede { color: var(--bone-200); }

/* Full-height band, used by the 404 page. */
.section--full {
  min-height: 100svh;
  display: grid;
  align-content: center;
}

/* Radio group inside the enquiry form. */
.field--group { border: 0; padding: 0; margin: 0; }
.field--group legend {
  padding: 0;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 0.65rem;
}
.radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  cursor: pointer;
}
.radio input { width: auto; accent-color: var(--burgundy-700); }

/* "(optional)" inside an otherwise letterspaced caps label. */
.label-hint { text-transform: none; letter-spacing: 0; opacity: 0.8; }

.footer-bottom--plain { margin-top: 0; border-top: 0; padding-top: 0; }
.btn-row--spaced { margin-top: clamp(2rem, 4vw, 3rem); }
.btn-row--top { margin-top: 1.5rem; }
.stack--form { --stack-gap: 1.5rem; }

/* 20. Reviews -------------------------------------------------------------
   One star glyph, reused three ways: read-only in review cards and the
   average-rating summary, and as the clickable input in the submission
   form. Filled vs empty is a fill-colour swap, not a different icon. */

.star { width: 1.15em; height: 1.15em; }
.star--filled { fill: var(--gold-400); }
.star--empty { fill: none; stroke: var(--gold-400); stroke-width: 1.4; }

.rating-summary {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.rating-summary__stars { display: inline-flex; gap: 0.15rem; }
.rating-summary__stars .star { width: 1.4rem; height: 1.4rem; }
.rating-summary__figure {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--burgundy-700);
}
.rating-summary__count { font-size: 0.9375rem; color: var(--muted); }

.reviews {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 46rem) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.review-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--bone-50);
  border: 1px solid var(--bone-200);
  transition: box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}
.review-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold-400) 40%, transparent); }
.review-card__head { display: flex; align-items: center; gap: 0.85rem; }
.review-card__avatar {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  flex: none;
  border-radius: 50%;
  background: var(--burgundy-700);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.review-card__who { display: grid; gap: 0.15rem; }
.review-card__name { font-weight: 400; }
.review-card__meta { font-size: 0.8125rem; color: var(--muted); }
.review-card__stars { display: inline-flex; gap: 0.1rem; }
.review-card__stars .star { width: 1rem; height: 1rem; }
.review-card__text { font-size: 0.9375rem; color: var(--text-700); }

/* Shown while REVIEWS is empty; JS hides it once there is at least one. */
.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  max-width: 34rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  border: 1px dashed var(--bone-300);
  background: var(--bone-100);
}
.empty-state svg {
  width: 2.25rem; height: 2.25rem;
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.empty-state p { font-size: 0.9375rem; color: var(--muted); max-width: 32ch; }

/* Star-rating input: five buttons sharing one focus/press treatment. */
.star-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.star-input button {
  display: grid;
  place-items: center;
  padding: 0.3rem;
  border: 0;
  background: none;
  cursor: pointer;
}
/* JS (initReviewForm) sets the star--filled/star--empty class on each
   button's <svg> directly, matching the read-only stars elsewhere. Before JS
   runs, or if it doesn't, the plain unclassed svg still reads as a star. */
.star-input button svg {
  width: 1.6rem; height: 1.6rem;
  fill: none;
  stroke: var(--bone-400);
  stroke-width: 1.4;
  transition: transform 0.2s, stroke 0.3s, fill 0.3s;
}
.star-input button:hover svg,
.star-input button:focus-visible svg { transform: scale(1.12); stroke: var(--gold-400); }
/* .star-input button svg above sets fill:none at higher specificity than the
   shared .star--filled rule, which would otherwise leave "filled" stars
   unfilled — restate the fill explicitly so JS's class swap actually shows. */
.star-input button svg.star--filled { fill: var(--gold-400); stroke: var(--gold-400); }
.star-input__label {
  margin-inline-start: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
