/* =============================================================================
   NewChapters Cleanings — component & layout styles
   Uses only the semantic tokens from tokens.css (--color-*, --text-*, --space-*…).
   Mobile first. Breakpoints: 48em (768) · 64em (1024) · 90em (1440) · 120em (1920)
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent; /* no grey flash on tap; :active states give the feedback instead */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: clip; /* nothing may ever widen the page sideways */
  overscroll-behavior-x: none; /* a sideways swipe does not drag the whole page off and leave an empty strip */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-sans-regular);
  line-height: var(--lh-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

a {
  color: var(--color-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
/* Hover only where the pointer can hover: on touch, :hover would stick after a tap. */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--color-link-hover); text-decoration-thickness: 2px; }
}
a:active { color: var(--color-link-hover); }

:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
::selection { background: var(--color-selection-bg); color: var(--color-selection-fg); }

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

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  z-index: var(--z-skip);
  padding: var(--space-xs) var(--space-sm);
  background: var(--nc-carbon);
  color: var(--nc-ivory);
  font-weight: var(--fw-sans-strong);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--nc-gold); }

.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 2.5rem; } /* header turns solid after 40 px of scroll */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); /* landscape notch */
}

/* ---------- Typography ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-sans-strong);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-text-accent);
}
.eyebrow::before {
  content: '';
  flex: none;
  width: 2rem;
  height: 1px;
  background: var(--color-decor);
}

.section-title,
.hero__title,
.not-found__title {
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
  color: var(--color-text);
}
.section-title { margin-top: var(--space-sm); font-size: var(--text-2xl); }

.section-lead {
  margin-top: var(--space-md);
  max-width: 40ch;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.section { padding-block: var(--space-section); }
.section-head { max-width: 46rem; margin-bottom: var(--space-block); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: var(--tap-min);
  padding: 0.875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-sans-strong);
  line-height: 1;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--color-action-bg); color: var(--color-action-fg); }
.btn--ghost { background: transparent; color: var(--color-action2-fg); border-color: var(--color-action2-border); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--color-action-bg-hover); color: var(--color-action-fg); }
  .btn--ghost:hover { background: var(--color-action2-bg-hover); color: var(--color-action2-fg-hover); border-color: var(--color-action2-bg-hover); }
}
.btn--primary:active { background: var(--color-action-bg-active); }
.btn--ghost:active { background: var(--color-action2-bg-hover); color: var(--color-action2-fg-hover); border-color: var(--color-action2-bg-hover); }
.btn--lg { min-height: 3.25rem; padding: 1.125rem 2rem; }
.btn--block { width: 100%; }
.btn:disabled,
.btn[aria-disabled='true'] {
  background: var(--color-disabled-bg);
  color: var(--color-disabled-fg);
  border-color: var(--color-disabled-border);
  cursor: var(--cursor-disabled);
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-bg); /* solid paper once scrolled: no backdrop blur (cost on every scroll frame) */
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--color-line); } /* JS sets it after 40 px */
/* At the top of the page the header floats over the dark cover photo. */
.js .site-header:not(.is-scrolled) {
  --color-text: var(--nc-ivory);
  --color-text-secondary: var(--nc-ivory);
  --color-decor: var(--nc-gold);
  --color-focus: var(--nc-gold);
  background: transparent;
  color: var(--nc-ivory);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: var(--header-h);
}
.brand {
  position: relative;
  z-index: calc(var(--z-overlay) + 1);
  display: inline-flex;
  align-items: center;
  flex: none; /* the monogram never shrinks to make room for the nav */
  min-height: var(--tap-min);
  color: inherit;
}
.brand__logo { width: auto; height: 2.5rem; }

.nav-toggle {
  position: relative;
  z-index: calc(var(--z-overlay) + 1);
  display: inline-grid;
  place-content: center;
  gap: 7px;
  width: var(--tap-min);
  height: var(--tap-min);
  margin-right: -0.625rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-text);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 1.625rem;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.site-nav__list { display: flex; flex-direction: column; gap: var(--space-2xs); }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: inherit;
  text-decoration: none;
}
.site-nav__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.site-nav__phone, .site-nav__book {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: inherit;
  font-weight: var(--fw-sans-strong);
  text-decoration: none;
  letter-spacing: 0.02em;
}
@media (hover: hover) and (pointer: fine) { .site-nav__phone:hover, .site-nav__book:hover { text-decoration: underline; } }

/* Without JS the nav is a plain, always-visible list. */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: var(--space-xs); }
html:not(.js) .site-nav__list { flex-direction: row; flex-wrap: wrap; gap: 0 var(--space-md); }

/* Mobile/tablet off-canvas menu (JS on, < 64em) */
@media (max-width: 63.99em) {
  .js .site-nav {
    --color-focus: var(--nc-gold);
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-xl);
    padding: calc(var(--header-h) + var(--space-xl)) var(--gutter) calc(var(--space-xl) + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain; /* scrolling the menu never drags the page behind it */
    background: var(--nc-carbon);
    color: var(--nc-ivory);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
  }
  /* The menu is the book's contents: each link carries its chapter numeral (decorative, hidden from AT). */
  .js .site-nav__list { counter-reset: chapter; }
  .js .site-nav__link { gap: var(--space-sm); }
  .js .site-nav__link::before {
    counter-increment: chapter;
    content: counter(chapter, upper-roman) / '';
    min-width: 2.5ch;
    font-size: var(--text-lg);
    color: var(--nc-gold);
  }
  /* Areas is not a chapter: no numeral, so Gallery stays III. Empty ::before keeps the name aligned. */
  .js .site-nav__link--aside::before { counter-increment: none; content: '' / ''; }
  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--dur-base) var(--ease-out);
  }
  .js .site-nav__link {
    font-family: var(--font-serif);
    font-weight: var(--fw-serif);
    font-size: var(--text-3xl);
    line-height: 1.1;
  }
  .js .site-nav__link[aria-current] { color: var(--nc-gold); }
  .nav-open { overflow: hidden; }
  .nav-open .nav-toggle,
  .nav-open .brand { color: var(--nc-ivory); }
  .nav-open .brand__logo { filter: none; }
  .nav-open .site-header { border-bottom-color: transparent; background: transparent; }
  .js .site-nav .btn--primary { width: 100%; }
}
/* Desktop navigation (≥ 64em) */
@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: var(--space-xl); }
  .site-nav__list { flex-direction: row; gap: var(--space-lg); }
  .site-nav__link {
    position: relative;
    font-size: var(--text-xs);
    font-weight: var(--fw-sans-strong);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--color-text-secondary);
  }
  .site-nav__link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0.6rem;
    height: 1px;
    background: var(--color-decor);
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease-out);
  }
  .site-nav__link[aria-current] { color: var(--color-text); }
  .site-nav__link[aria-current]::after { opacity: 1; }
  @media (hover: hover) and (pointer: fine) {
    .site-nav__link:hover { color: var(--color-text); }
    .site-nav__link:hover::after { opacity: 1; }
  }
  .site-nav__actions { gap: var(--space-md); flex-wrap: nowrap; }
  .site-nav__phone { font-size: var(--text-sm); }
  .site-nav__link, .site-nav__phone, .site-nav__book { white-space: nowrap; }
}
/* 1024–1279px: tighter nav gaps so the monogram, five links, phone and button share one line */
@media (min-width: 64em) and (max-width: 79.99em) {
  .site-nav { gap: var(--space-md); }
  .site-nav__list { gap: var(--space-md); }
  .site-nav__book { display: none; } /* no room beside the phone at 1024–1279 px (72 px overflow); the cover keeps "Book Online" */
}
/* "Service Areas" fits the desktop bar only from 1440 px (100 px overflow at 1024, 59 px at 1280); the footer link and #areas stay */
@media (min-width: 64em) and (max-width: 89.99em) { .site-nav__item--aside { display: none; } }

/* ---------- Media (photo frames) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xs);
  background: var(--color-bg-alt);
}
.media picture { display: contents; } /* inline <picture> would break the img's height: 100% */
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Book furniture: plates, leaders, running heads, drop caps ---------- */
.plate { aspect-ratio: var(--ar-portrait); border-radius: 0; }
.plate-caption {
  display: none;
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.plate-caption__no {
  margin-right: var(--space-2xs);
  font-size: var(--text-xs);
  font-weight: var(--fw-sans-strong);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-text-accent);
}
@media (min-width: 64em) { .plate-caption { display: block; } }
/* Dotted leader between a title and its number, as in a printed contents page. */
.leader {
  flex: 1 1 1.5rem;
  min-width: 1.5rem;
  border-bottom: 1px dotted var(--color-decor);
  transform: translateY(-0.3em);
}
@media (max-width: 47.99em) { .leader { display: none; } }
.running-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-bottom: var(--border-hairline);
  font-size: var(--text-xs);
  font-weight: var(--fw-sans-strong);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
@media (max-width: 47.99em) { .running-head > :first-child { display: none; } }
.dropcap::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: 4.2em;
  line-height: 0.8;
  color: var(--color-text);
}

/* ---------- Cover: the book's jacket. Full-bleed photo, charcoal scrim, ivory title bottom-left; the header floats over it ---------- */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h) - 1px); /* header height + its 1px border */
  color: var(--color-text);
}
.hero__grid {
  display: flex;
  align-items: flex-end;
  min-height: max(100svh, 36rem);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0;
  background: var(--nc-carbon);
}
/* Scrim: keeps ivory text ≥ 4.5:1 even over the bright floor and ceiling of the photo. */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(25 24 22 / 0.55), rgb(25 24 22 / 0) 22%),
    linear-gradient(to top, rgb(25 24 22 / 0.9) 0%, rgb(25 24 22 / 0.8) 45%, rgb(25 24 22 / 0.45) 100%);
}
.hero__media img { object-position: 52% 55%; }
.hero .eyebrow { color: var(--color-text); text-shadow: 0 1px 10px rgb(25 24 22 / 0.7); } /* gold on the photo measured 3.6:1; ivory keeps small caps ≥ 4.5:1 (the rule stays gold) */
.hero__content {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding: calc(var(--header-h) + var(--space-xl)) max(var(--gutter), env(safe-area-inset-right, 0px)) var(--space-2xl) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.hero__title {
  margin-top: var(--space-md);
  max-width: 15ch;
  font-size: var(--text-4xl);
  line-height: var(--lh-tight);
}
.hero__lead {
  margin-top: var(--space-md);
  max-width: 38ch;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-text);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}
/* Phones: the two calls to action stack, full width and equal, as on the JEIKO landing (2026-11-20). */
@media (max-width: 29.99em) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
.hero__call { margin-top: var(--space-sm); font-size: var(--text-sm); }
.hero__call a { display: inline-block; padding-block: 0.375rem; color: inherit; font-weight: var(--fw-sans-strong); } /* ≥ 24 px target */
/* Plate caption, as on a book jacket (decorative; the image alt carries the description). */
.hero__plate { display: none; }
@media (min-width: 48em) {
  .hero__content { padding-bottom: clamp(var(--space-2xl), 11vh, 8rem); }
}
@media (min-width: 64em) {
  .hero__plate {
    display: block;
    position: absolute;
    right: max(var(--gutter), env(safe-area-inset-right, 0px));
    top: calc(var(--header-h) + var(--space-lg)); /* top-right: the reservation card takes the bottom-right corner */
    z-index: 1;
    font-size: var(--text-xs);
    font-weight: var(--fw-sans-strong);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--nc-stone);
    text-shadow: 0 1px 8px rgb(25 24 22 / 0.7);
  }
}

/* ---------- Contents page: chapter list on paper, right after the cover ---------- */
.contents { position: relative; overflow: clip; padding-block: var(--space-2xl) var(--space-3xl); } /* transparent: the window light shows through */
.contents__title {
  margin-bottom: var(--space-lg);
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-3xl);
  line-height: 1;
  letter-spacing: var(--ls-display);
}
.contents__link {
  display: grid;
  gap: var(--space-3xs);
  padding-block: var(--space-sm);
  border-top: var(--border-hairline);
  color: var(--color-text);
  text-decoration: none;
}
.contents__list li:last-child .contents__link { border-bottom: var(--border-hairline); }
.contents__line { display: flex; align-items: baseline; gap: var(--space-xs); min-width: 0; }
.contents__name,
.contents__num {
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-xl);
  line-height: 1.2;
}
.contents__num { flex: none; min-width: 2.5ch; margin-left: auto; text-align: right; color: var(--color-text-accent); }
.contents__sub { font-size: var(--text-sm); color: var(--color-text-secondary); }
@media (hover: hover) and (pointer: fine) {
  .contents__link:hover .contents__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
}
.contents__link:active .contents__name { color: var(--color-text-accent); }
@media (min-width: 64em) {
  .contents { padding-block: var(--space-3xl); }
  .contents__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: start; }
  .contents__title { grid-column: 1 / span 4; margin-bottom: 0; }
  .contents__list { grid-column: 6 / -1; }
}

/* The page's only entrance: the cover copy fades in once, as one group. The photo stays still. */
@keyframes hero-fade { from { opacity: 0; } }
.hero__content { animation: hero-fade var(--dur-base) var(--ease-emphasis) both; }

/* ---------- Chapters ---------- */
.chapter { padding-bottom: var(--space-section); }
.chapter-head { max-width: 46rem; margin-block: var(--space-2xl) var(--space-block); }
.chapter-head__numeral {
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--color-text-accent);
}
.chapter-head__title {
  margin-top: var(--space-sm);
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-2xl);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.chapter-lead {
  margin-top: var(--space-md);
  max-width: 40ch;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}
/* Chapter II only: the one large typographic moment. The numeral is ornament (aria-hidden), so champagne is allowed at this size. */
.chapter-head--grand { max-width: none; display: grid; gap: var(--space-md); }
.chapter-head--grand .chapter-head__numeral { font-size: var(--text-numeral); line-height: 0.78; letter-spacing: -0.04em; color: var(--color-decor); }
.chapter-head--grand .chapter-head__title { margin-top: 0; }
.chapter-head--split { max-width: none; display: grid; gap: var(--space-md); align-items: end; }
@media (min-width: 64em) {
  .chapter-head--grand { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: end; }
  .chapter-head--grand .chapter-head__numeral { grid-column: 1 / span 5; }
  .chapter-head--grand .chapter-head__text { grid-column: 6 / -1; padding-bottom: var(--space-lg); }
  .chapter-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); }
  .chapter-head--split .chapter-lead { margin-top: 0; justify-self: end; }
}
/* The quiet way to the form at the end of each chapter. */
.chapter-end { margin-top: var(--space-xl); }
.chapter-end a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: var(--tap-min);
  font-size: var(--text-xs);
  font-weight: var(--fw-sans-strong);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-text-accent);
  text-decoration: none;
}
.chapter-end a::after { content: '→' / ''; font-size: var(--text-base); letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { .chapter-end a:hover { text-decoration: underline; } }

/* ---------- Services ---------- */
/* Services read as the chapter's table of contents: three parts, eight entries numbered II.1–II.8. */
.parts { display: grid; gap: var(--space-2xl); }
.part__title {
  font-size: var(--text-xs);
  font-weight: var(--fw-sans-strong);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-text-accent);
}
.part__intro { margin-top: var(--space-xs); max-width: 44ch; color: var(--color-text-secondary); }
.service-list { margin-top: var(--space-md); }
.service-line {
  display: block;
  padding-block: var(--space-sm) var(--space-md);
  border-top: var(--border-hairline);
  color: var(--color-text);
  text-decoration: none;
}
.service-list li:last-child .service-line { border-bottom: var(--border-hairline); }
.service-line__head { display: flex; align-items: baseline; gap: var(--space-xs); }
.service-line__name {
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-xl);
  text-wrap: balance;
  line-height: 1.2;
}
.service-line__num,
.service-line__cta {
  font-size: var(--text-xs);
  font-weight: var(--fw-sans-strong);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-accent);
}
.service-line__num { flex: none; min-width: 4.5ch; }
.service-line__cta { white-space: nowrap; }
.service-line__cta::after { content: ' →' / ''; letter-spacing: 0; }
.service-line__desc { display: block; margin-top: var(--space-2xs); max-width: 52ch; color: var(--color-text-secondary); }
@media (hover: hover) and (pointer: fine) {
  .service-line:hover .service-line__name,
  .service-line:hover .service-line__cta { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
}
.service-line:active .service-line__name { color: var(--color-text-accent); }
@media (min-width: 64em) {
  .parts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--grid-gap); }
}

/* ---------- Areas we serve: client-confirmed zones, one per cell under a hairline; neighborhoods as chips (not links) ---------- */
.areas__list { display: grid; gap: var(--space-lg) var(--grid-gap); }
.areas__zone { padding-top: var(--space-sm); border-top: var(--border-hairline); }
.areas__places {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: var(--space-xs);
}
.areas__places li {
  padding: var(--space-3xs) var(--space-2xs);
  border: var(--border-hairline);
  border-radius: var(--radius-sm);
  background: var(--color-bg-raised);
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--color-text-secondary);
}
@media (min-width: 40em) { .areas__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .areas__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.services__cta,
.areas__more {
  margin-top: var(--space-block);
  font-size: var(--text-lg);
  text-align: center;
  color: var(--color-text-secondary);
  text-wrap: balance;
}
.asterism {
  display: block;
  margin-bottom: var(--space-md);
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--color-text-accent);
}

/* ---------- About ---------- */
.about__grid { display: grid; gap: var(--space-xl); margin-top: var(--space-2xl); }
/* One column: the heading comes before the tall photo, so the "About" link lands on the title, not on the picture. */
@media (max-width: 47.99em) { .about__body { order: -1; } }
.about__body > p:not(.chapter-end) { max-width: var(--measure); color: var(--color-text-secondary); }
.about__body > p + p { margin-top: var(--space-sm); }
.about__body .chapter-head { margin-top: 0; margin-bottom: var(--space-lg); }
.values { margin-top: var(--space-xl); border-top: var(--border-hairline); }
.values__item {
  display: grid;
  gap: var(--space-3xs);
  padding-block: var(--space-md);
  border-bottom: var(--border-hairline);
  color: var(--color-text-secondary);
}
.values__name {
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-xl);
  line-height: 1.2;
  color: var(--color-text);
}
@media (min-width: 48em) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: start; }
  .about__media { grid-column: 1 / span 5; margin-top: var(--space-3xl); }
  .about__body { grid-column: 7 / -1; }
  .values__item { grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; gap: var(--space-md); }
}

/* ---------- Gallery ---------- */
.section-head--split { max-width: none; display: grid; gap: var(--space-md); align-items: end; }
@media (min-width: 64em) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); }
  .section-head--split .section-lead { margin-top: 0; justify-self: end; }
}
.gallery__grid {
  overflow-x: clip;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.gallery__item { aspect-ratio: var(--ar-landscape); grid-column: 1 / -1; }
.gallery__item--portrait { aspect-ratio: var(--ar-portrait); }
.gallery__item--dining img { object-position: 50% 40%; } /* square original, cropped to landscape: keeps the lamp */

@media (min-width: 48em) {
  .gallery__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  /* Vanity beside a stack of two landscapes (half and half: the 4:5 portrait barely crops). The sink and oven shots left the gallery (2026-11-16). */
  .gallery__item--vanity { grid-column: 1 / span 6; grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; }
  .gallery__item--kitchen { grid-column: 7 / -1; grid-row: 1; }
  .gallery__item--dining { grid-column: 7 / -1; grid-row: 2; }
  .gallery__item--shower { grid-column: 3 / -1; grid-row: 3; margin-top: var(--space-xl); }
}

/* ---------- Bands: pinned photographs that open to full bleed while the page scrolls past ---------- */
.band { position: relative; height: 150svh; view-timeline: --band block; }
.band__stage { position: sticky; top: 0; display: grid; place-items: center; height: 100svh; overflow: hidden; }
.band__media { position: absolute; inset: 0; border-radius: 0; background: var(--nc-carbon); }
.band__media::after { content: ''; position: absolute; inset: 0; background: rgb(25 24 22 / 0.42); }
.band__media img { object-position: 50% 40%; }
.band__words {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-4xl);
  line-height: 1;
  letter-spacing: var(--ls-display);
  color: var(--nc-ivory);
  text-shadow: 0 2px 24px rgb(25 24 22 / 0.5);
}
@media (min-width: 48em) { .band { height: 180svh; } }
/* Light interlude: a pale still life, so the words take the ink colour over an ivory veil. */
.band--light .band__media { background: var(--nc-ivory-200); }
.band--light .band__media::after { background: rgb(244 238 223 / 0.28); }
.band--light .band__media img { object-position: 50% 62%; }
.band--light .band__words { color: var(--nc-carbon); text-shadow: 0 1px 20px rgb(251 248 240 / 0.8); }

/* ---------- Process ---------- */
.process { background: var(--color-bg-alt); }
.steps { display: grid; gap: var(--space-xl); counter-reset: step; }
.step { position: relative; padding-top: var(--space-lg); }
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--color-decor);
}
.step__number {
  display: block;
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--color-text-accent); /* champagne-700: numerals are read as text (≥ 4.7:1) */
}
.step__title {
  margin-top: var(--space-md);
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-xl);
  line-height: 1.2;
}
.step p { margin-top: var(--space-xs); color: var(--color-text-secondary); max-width: 34ch; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); } }
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: var(--space-xl); }
.faq__list { border-top: var(--border-hairline); max-width: 46rem; }
.faq__item { border-bottom: var(--border-hairline); }
.faq__question {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: var(--space-md) 3rem var(--space-md) 0;
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-xl);
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::before,
.faq__question::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 1rem;
  height: 1.5px;
  background: var(--color-text-accent);
  transition: transform var(--dur-base) var(--ease-in-out);
}
.faq__question::after { transform: rotate(90deg); }
.faq__item[open] > .faq__question::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) { .faq__question:hover { color: var(--color-text-accent); } }
.faq__question:active { color: var(--color-text-accent); }
.faq__answer { padding: 0 3rem var(--space-lg) 0; color: var(--color-text-secondary); }
.faq__answer p { max-width: var(--measure); }
.faq__grid { margin-top: var(--space-2xl); }
.faq__grid > .chapter-head { margin-block: 0; }
@media (min-width: 64em) {
  .faq__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: start; }
  .faq__grid > .chapter-head { grid-column: 1 / span 5; }
  .faq__list { grid-column: 7 / -1; }
}
@media (min-width: 90em) {
  .faq__grid > .chapter-head { position: sticky; top: calc(var(--header-h) + var(--space-xl)); }
}

/* ---------- Quote: the back cover (dark) ---------- */
.quote { padding-top: var(--space-section); background: var(--color-bg); color: var(--color-text); }
.quote__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); } /* minmax(0) lets long words wrap at 320 px */
.quote__intro .chapter-head { margin-top: 0; margin-bottom: 0; }

.quote__intro .chapter-lead { max-width: 34ch; }
.contact-card {
  display: grid;
  gap: var(--space-2xs);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--border-hairline);
}
.contact-card__label { font-size: var(--text-sm); color: var(--color-text-secondary); }
.contact-card__phone {
  justify-self: start;
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-2xl);
  line-height: 1.1;
  color: var(--color-text);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .contact-card__phone:hover { color: var(--color-text-accent); text-decoration: underline; text-decoration-thickness: 1px; }
}
.contact-card__email, .contact-card__book { justify-self: start; overflow-wrap: anywhere; padding-block: 0.375rem; } /* ≥ 24 px target (WCAG 2.5.8) */

/* Light form card on the carbon section (design-system §9 / Figma): re-scope light roles. */
.quote-form {
  color-scheme: light;
  --color-bg: var(--nc-ivory);
  --color-bg-alt: var(--nc-ivory-200);
  --color-text: var(--nc-carbon);
  --color-text-secondary: var(--nc-carbon-700);
  --color-text-muted: var(--nc-carbon-600);
  --color-text-accent: var(--nc-champagne-700);
  --color-line: rgb(25 24 22 / 0.16);
  --color-line-strong: var(--nc-carbon-500);
  --color-link: var(--nc-champagne-700);
  --color-link-hover: var(--nc-carbon);
  --color-field-bg: #fff;
  --color-field-border: var(--nc-carbon-500);
  --color-field-border-hover: var(--nc-carbon-700);
  --color-field-border-focus: var(--nc-carbon);
  --color-placeholder: var(--nc-carbon-600);
  --color-focus: var(--nc-carbon);
  --color-error: var(--nc-error);
  --color-error-bg: var(--nc-error-bg);
  --focus-ring: var(--border-width-focus) solid var(--color-focus);
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  background: var(--nc-ivory-50);
  color: var(--color-text);
  border-radius: var(--radius-sm);
}
@media (min-width: 48em) { .quote-form { padding: var(--space-xl); } }
@media (min-width: 64em) {
  .quote__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: start; }
  .quote__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--space-xl)); }
  .quote-form { grid-column: 7 / -1; }
}

/* Form chapters: 01 Your details / 02 Your space (brand chapter numbering, design-system §1). */
.form-group { display: grid; gap: var(--space-md); min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.form-group + .form-group { margin-top: var(--space-lg); }
.form-group__legend {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  padding: 0;
  font-size: var(--text-xs);
  font-weight: var(--fw-sans-strong);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-text-accent);
  inline-size: 100%;
}
.form-group__legend::after { content: ''; flex: 1; align-self: center; border-top: var(--border-hairline); }
.form-group__index { font-variant-numeric: tabular-nums; }

.field { display: grid; gap: var(--space-2xs); min-width: 0; }
.field-row { display: grid; gap: var(--space-md); }
@media (min-width: 48em) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field__label { font-size: var(--text-sm); font-weight: var(--fw-sans-strong); letter-spacing: 0.02em; }
.field__optional { font-weight: var(--fw-sans-regular); color: var(--color-text-muted); }
.field__input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8125rem 1rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-field-bg);
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius-sm);
  appearance: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field__input::placeholder { color: var(--color-placeholder); }
@media (hover: hover) and (pointer: fine) { .field__input:hover { border-color: var(--color-field-border-hover); } }
.field__input:focus-visible { border-color: var(--color-field-border-focus); }
.field__input--area { min-height: 8rem; resize: vertical; }
.field__input[aria-invalid='true'] { border-color: var(--color-error); border-width: 2px; padding: calc(0.8125rem - 1px) calc(1rem - 1px); }
.field__select { position: relative; }
.field__select::after {
  content: '';
  position: absolute;
  right: 1.125rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field__select .field__input { padding-right: 3rem; cursor: pointer; }
.field__select option, .field__select optgroup { background: #fff; color: var(--nc-carbon); }
.field__hint { font-size: var(--text-sm); color: var(--color-text-muted); }
.field__error {
  display: flex;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  font-weight: var(--fw-sans-strong);
  color: var(--color-error);
}
.field__error:empty { display: none; }
.field__error::before {
  content: '!';
  flex: none;
  display: inline-grid;
  place-content: center;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  border-radius: 50%;
  background: var(--color-error);
  color: var(--color-bg);
  font-size: 0.75rem;
  line-height: 1;
}

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

.quote-form__note { font-size: var(--text-sm); color: var(--color-text-muted); }

.form-status {
  overflow-wrap: anywhere; /* the fallback email must wrap at 320 px (WCAG 1.4.10) */
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--color-line-strong);
  background: var(--color-bg-alt);
  font-size: var(--text-sm);
}
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.form-status[data-state='error'] { border-left-color: var(--color-error); background: var(--color-error-bg); }
.form-status[data-state='success'] { border-left-color: var(--color-text-accent); }
.form-status[data-state='success'] strong { display: block; margin-bottom: var(--space-3xs); font-weight: var(--fw-sans-strong); }
.form-status ul { margin: var(--space-2xs) 0 0; padding-left: 1.25rem; }
.quote-form.is-sent .btn { visibility: visible; }

/* ---------- Footer (dark) ---------- */
.site-footer { background: var(--color-bg); color: var(--color-text-secondary); padding-top: var(--space-2xl); border-top: var(--border-hairline); }
.site-footer__grid { display: grid; gap: var(--space-xl); padding-bottom: var(--space-2xl); }
.site-footer__logo { width: min(20rem, 100%); min-width: 17.5rem; height: auto; }
.site-footer__title {
  margin-bottom: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-sans-strong);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-text-accent);
}
.site-footer ul { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); }
.site-footer a { color: var(--color-text); text-decoration-color: var(--color-line-strong); }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--color-text-accent); } }
.site-footer__nav a { display: inline-flex; min-height: 1.75rem; align-items: center; }
.site-footer__contact { display: grid; justify-items: start; gap: var(--space-2xs); font-size: var(--text-sm); }
.site-footer__contact a { overflow-wrap: anywhere; padding-block: 0.25rem; } /* ≥ 24 px target */
.site-footer__phone { font-family: var(--font-serif); font-weight: var(--fw-serif); font-size: var(--text-xl); text-decoration: none; }
.site-footer__contact .btn { margin-top: var(--space-sm); color: var(--color-action2-fg); }
@media (hover: hover) and (pointer: fine) { .site-footer__contact .btn:hover { color: var(--color-action2-fg-hover); } }
.site-footer__contact .btn:active { color: var(--color-action2-fg-hover); }
.site-footer__base {
  padding-block: var(--space-md) calc(var(--space-md) + env(safe-area-inset-bottom));
  border-top: var(--border-hairline);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
@media (min-width: 48em) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .site-footer__grid { grid-template-columns: 1.4fr 0.8fr 1fr 1fr; column-gap: var(--grid-gap); }
  .site-footer__brand { grid-column: auto; }
}

/* ---------- Mobile CTA bar ---------- */
.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2xs);
  padding: var(--space-2xs) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--space-2xs) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--color-bg);
  border-top: var(--border-hairline);
  transition: transform var(--dur-base) var(--ease-out);
}
.cta-bar .btn { min-height: 3rem; }
.js body:not(.cta-ready) .cta-bar,
.quote-in-view .cta-bar,
.book-in-view .cta-bar,
.hero-cta-in-view .cta-bar,
.nav-open .cta-bar {
  transform: translateY(110%);
  visibility: hidden; /* off-screen links must leave the tab order (WCAG 2.4.11) */
  transition: transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
@media (max-width: 47.99em) {
  body:has(.cta-bar) { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 48em) { .cta-bar { display: none; } }
/* Very short viewports (phone landscape, 200 % zoom): a fixed bar would eat the screen and cover the cover text.
   The cover buttons and each chapter's closing link remain. */
@media (max-width: 47.99em) and (max-height: 30em) {
  .cta-bar { display: none; }
  body:has(.cta-bar) { padding-bottom: env(safe-area-inset-bottom, 0px); }
  html { scroll-padding-bottom: 0; }
}
/* Short landscape screens (phone sideways, 200 % zoom): with the CTA bar hidden, the cover's buttons must fit the first screen
   (at 844×390 the 74 px title pushed them to y = 553). */
@media (max-height: 30em) and (orientation: landscape) {
  .hero__grid { min-height: 100svh; } /* the 36rem floor is taller than these screens */
  .hero__content { padding-top: calc(var(--header-h) + var(--space-sm)); padding-bottom: var(--space-md); }
  .hero__title { margin-top: var(--space-xs); max-width: 22ch; font-size: clamp(1.75rem, 9vh, 2.5rem); }
  .hero__lead { margin-top: var(--space-xs); max-width: 60ch; font-size: var(--text-base); }
  .hero__actions { margin-top: var(--space-sm); }
}

/* ---------- 404 ---------- */
/* ---------- Legal pages: privacy, terms, accessibility (2026-11-19). A quiet reading page. ---------- */
.legal-bar { border-bottom: var(--border-hairline); }
.legal-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--header-h); }
.legal-bar__brand img { width: auto; height: 2.5rem; }
.legal-bar__back, .legal-foot a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--color-text); }
.legal { padding-block: var(--space-2xl) var(--space-section); }
.legal__inner { max-width: 46rem; }
.legal__title { margin-top: var(--space-xs); font-size: var(--text-3xl); }
.legal__meta { margin-top: var(--space-xs); color: var(--color-text-secondary); }
.legal h2 { margin-top: var(--space-2xl); font-size: var(--text-xl); }
.legal h3 { margin-top: var(--space-lg); font-family: var(--font-sans); font-size: var(--text-base); font-weight: var(--fw-sans-strong); }
.legal p, .legal ul { margin-top: var(--space-sm); max-width: 68ch; }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal li + li { margin-top: var(--space-2xs); }
.legal code { font-size: 0.9em; overflow-wrap: anywhere; }
.legal-foot { padding-block: var(--space-lg) calc(var(--space-lg) + env(safe-area-inset-bottom)); border-top: var(--border-hairline); font-size: var(--text-sm); color: var(--color-text-secondary); }
.legal-foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); }
.legal-foot__links, .site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 var(--space-md); }
.legal-foot a[aria-current] { color: var(--color-text-accent); }
.site-footer__legal { margin-top: 0; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: inherit; } /* stand-alone touch targets: 44 px (A11Y-11b) */

.not-found { min-height: 100svh; display: grid; align-items: center; padding-block: var(--space-2xl); }
.not-found__inner { display: grid; justify-items: start; gap: var(--space-md); max-width: 46rem; }
.not-found__brand img { width: auto; height: 4.5rem; }
.not-found__brand { margin-bottom: var(--space-lg); }
.not-found__title { font-size: var(--text-3xl); }
.not-found__actions { margin-top: var(--space-sm); }
.not-found__contact { margin-top: var(--space-lg); color: var(--color-text-secondary); }

/* ---------- Gilding (dark pages only): gold-leaf type, gold thread, back-cover photograph ---------- */
/* Gilt type: a vertical ivory → gold sweep repeated per line (1lh), like gold-leaf stamping on a spine.
   Only on dark surfaces, where even the darkest stop (champagne) is ≥ 6.3:1 on carbon. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  [data-theme='dark'] :is(.hero__title, .chapter-head__numeral, .chapter-head__title) {
    background-image: linear-gradient(180deg, var(--nc-ivory) 18%, var(--nc-gold) 62%, var(--gilt-low, var(--nc-champagne)) 100%);
    background-size: 100% 1lh;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  /* Over the cover photo the lowest stop stays soft gold: the scrim is lighter there than flat carbon. */
  .hero__title { --gilt-low: var(--nc-gold); }
}
@media (forced-colors: active) {
  [data-theme='dark'] :is(.hero__title, .chapter-head__numeral, .chapter-head__title) { background: none; color: CanvasText; }
}

/* Gold thread: a hairline that is brightest in the middle and fades out at both ends. */
.contact-card,
.site-footer {
  border-top: 0;
  background-image: linear-gradient(90deg, transparent, var(--nc-champagne) 30%, var(--nc-gold) 50%, var(--nc-champagne) 70%, transparent);
  background-size: 100% 1px;
  background-repeat: no-repeat;
}

/* Back cover: chapter VI closes the book with the cover photograph, almost black, fading into the colophon. */
.quote { position: relative; isolation: isolate; }
.quote__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0;
  background: var(--nc-carbon);
}
.quote__media img { object-position: 70% 60%; }
.quote__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(25 24 22 / 0.8), rgb(25 24 22 / 0.86) 60%, var(--nc-carbon));
}

/* Primary CTA lifts a hair on a real hover, with a warm gold shadow underneath. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn--primary { transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
  .btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgb(178 151 96 / 0.75); }
  .btn--primary:active { transform: none; box-shadow: none; }
}

/* ---------- /book/: Booking Koala form at full height under a slim bar (no page scroll around a scrolling frame) ---------- */
.page-book { height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); } /* the column never grows past the screen */
.book-bar { display: flex; align-items: center; gap: var(--space-md); padding-block: var(--space-xs); border-bottom: var(--border-hairline); }
.book-bar__brand img { display: block; width: auto; height: 2.5rem; }
.book-bar__title { margin: 0; margin-right: auto; font-family: var(--font-serif); font-weight: var(--fw-serif); font-size: var(--text-xl); }
.book-bar a:not(.book-bar__brand) { display: inline-flex; align-items: center; min-height: var(--tap-min); color: inherit; font-weight: var(--fw-sans-strong); white-space: nowrap; }
/* iPhone Safari widens an iframe to its content (Booking Koala is ~400 px) and pushes the page past the right edge:
   1px + min-width:100% pins it to its container. */
.book__frame { display: block; width: 1px; min-width: 100%; height: 100%; border: 0; }
.book__alt { margin: 0; padding-block: var(--space-xs); font-size: var(--text-sm); border-top: var(--border-hairline); }
.book__alt a { display: inline-block; padding-block: 0.375rem; }
.book-bar__brand { flex-shrink: 0; } /* the monogram never collapses to nothing on a small phone */
@media (max-width: 29.99em) { .book-bar a.book-bar__home { display: none; } } /* the monogram already links home; a.class beats the inline-flex rule above */

/* =============================================================================
   Depth & interaction (2026-11-16, client: "3D, profundidad, interactiva, imagen de fondo al hacer scroll")
   Depth comes from layers that move at different speeds: with the scroll (CSS scroll-driven animations)
   or towards a fine pointer (a few CSS variables set by main.js). Every movement sits behind
   prefers-reduced-motion: no-preference; scroll effects also behind @supports (animation-timeline).
   Only transform, translate, rotate, scale, opacity and one background-position move.
   ========================================================================== */

/* Window light on the paper: a fixed layer under every ivory page, so the chapters scroll over it.
   Tone-mapped into [ivory-200 … ivory-50] (scripts/generated-images.mjs): text keeps at least its ivory-200 contrast. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--nc-ivory) url('/img/g/light-wall-1280.webp') 50% 30% / cover no-repeat;
  background-image: image-set(url('/img/g/light-wall-1280.avif') type('image/avif'), url('/img/g/light-wall-1280.webp') type('image/webp'));
  pointer-events: none;
}
@media (min-width: 90em) {
  body::before { background-image: image-set(url('/img/g/light-wall-2060.avif') type('image/avif'), url('/img/g/light-wall-2060.webp') type('image/webp')); }
}

/* ---------- Cover in layers: photo · gilt frame · copy · reservation card ---------- */
.hero__frame {
  position: absolute;
  inset: calc(var(--header-h) + var(--space-xs)) clamp(0.75rem, 1.6vw, 1.75rem) clamp(0.75rem, 1.6vw, 1.75rem);
  z-index: 0;
  border: 1px solid rgb(216 197 150 / 0.42);
  pointer-events: none;
}
.hero__frame::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgb(216 197 150 / 0.18); }

/* The reservation card floats over the bottom-right of the cover (desktop; phones have the "Book Online" button). */
.hero-card { display: none; }
@media (min-width: 64em) {
  .hero-card {
    position: absolute;
    right: calc(max(var(--gutter), env(safe-area-inset-right, 0px)) + var(--space-md));
    bottom: clamp(var(--space-2xl), 11vh, 8rem);
    z-index: 2;
    display: grid;
    gap: var(--space-2xs);
    width: clamp(16rem, 22vw, 20rem);
    padding: var(--space-lg);
    background: rgb(251 248 240 / 0.96);
    color: var(--nc-carbon);
    text-decoration: none;
    border: 1px solid rgb(178 151 96 / 0.6);
    box-shadow: 0 32px 64px -24px rgb(0 0 0 / 0.6);
  }
  .hero-card::before { content: ''; position: absolute; inset: -7px; border: 1px solid rgb(216 197 150 / 0.4); pointer-events: none; }
  .hero-card__eyebrow,
  .hero-card__cta {
    font-size: var(--text-xs);
    font-weight: var(--fw-sans-strong);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--nc-champagne-700);
  }
  .hero-card__title { font-family: var(--font-serif); font-weight: var(--fw-serif); font-size: var(--text-xl); line-height: 1.15; text-wrap: balance; }
  .hero-card__cta { margin-top: var(--space-xs); }
  .hero-card__cta::after { content: ' →' / ''; letter-spacing: 0; }
  @media (hover: hover) and (pointer: fine) {
    .hero-card:hover .hero-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  }
}

/* ---------- Reservations: the booking form, second on the page ---------- */
.booking { padding-block: var(--space-section); overflow-x: clip; } /* the frame settling in 3D must never widen the page */
.booking__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
.booking__title {
  margin-top: var(--space-md);
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-3xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.booking__lead { margin-top: var(--space-md); max-width: 38ch; font-size: var(--text-lg); line-height: 1.5; color: var(--color-text-secondary); text-wrap: pretty; }
.booking__steps { margin-top: var(--space-xl); border-top: var(--border-hairline); }
.booking__steps li {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-bottom: var(--border-hairline);
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: var(--text-xl);
  line-height: 1.2;
}
.booking__num {
  flex: none;
  min-width: 2.5ch;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-sans-strong);
  letter-spacing: var(--ls-caps);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-accent);
}
.booking__alt { margin-top: var(--space-lg); font-size: var(--text-sm); line-height: 2; color: var(--color-text-secondary); }
.booking__alt a { font-weight: var(--fw-sans-strong); }
/* The form's folio: a titled bar over a clean sheet, framed by a gold rule and an outer hairline (the cover card's language).
   No photograph behind it: Booking Koala paints its own light form, and anything peeking out reads as a mistake. */
.booking__stage { position: relative; }
.booking__frame {
  position: relative;
  z-index: 1;
  background: var(--nc-ivory-50);
  border: 1px solid rgb(178 151 96 / 0.55);
  box-shadow: 0 40px 80px -48px rgb(25 24 22 / 0.45), var(--shadow-md);
}
.booking__frame::before { content: ''; position: absolute; inset: -7px; border: 1px solid rgb(178 151 96 / 0.25); pointer-events: none; }
.booking__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-md);
  padding: var(--space-xs) var(--space-md);
  border-bottom: 1px solid rgb(178 151 96 / 0.4);
  background: var(--nc-ivory); /* champagne-700 on it: 5.2:1 */
}
.booking__label,
.booking__fallback {
  font-size: var(--text-xs);
  font-weight: var(--fw-sans-strong);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.booking__label { color: var(--nc-champagne-700); }
.booking__label::before { content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.75em; border: 1px solid currentColor; rotate: 45deg; vertical-align: 0.1em; } /* a small lozenge, the folio's mark */
.booking__fallback { display: inline-block; padding-block: 0.375rem; color: var(--nc-carbon); text-decoration: none; } /* ≥ 24 px target */
.booking__fallback::after { content: ' ↗' / ''; letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { .booking__fallback:hover { text-decoration: underline; text-underline-offset: 0.25em; } }
.booking__window { position: relative; height: min(80svh, 52rem); }
.booking__iframe.is-focused { outline: var(--border-width-focus) solid var(--nc-carbon); outline-offset: 10px; } /* set by main.js: a frame that holds the focus never matches :focus or :focus-within */
/* Shown behind the (transparent) frame until Booking Koala paints its form. */
.js .booking__window::after {
  content: 'Loading the booking form…';
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.booking__iframe { position: relative; z-index: 1; display: block; width: 1px; min-width: 100%; height: 100%; border: 0; } /* 1px + min-width: see .book__frame (iPhone Safari) */
.booking__noscript { display: grid; place-content: center; height: 100%; }
@media (max-width: 29.99em) { .booking__label { display: none; } .booking__bar { justify-content: flex-end; } } /* one line on phones: the folio needs no title there */
/* Phones: the form comes sooner (the three steps repeat what the form itself walks through). */
@media (max-width: 47.99em) {
  .booking { padding-top: var(--space-2xl); }
  .booking__steps { display: none; }
}
@media (min-width: 64em) {
  .booking__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: center; }
  .booking__intro { grid-column: 1 / span 4; }
  .booking__stage { grid-column: 6 / -1; }
  .booking__window { height: min(84svh, 54rem); }
}

/* ---------- Contents: a plate of each chapter follows the pointer ---------- */
.contents__preview { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 64em) {
  .contents__preview {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* behind the "Contents" title: type over plate, the cover's layering in miniature */
    width: 13rem;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--nc-ivory-200) center / cover no-repeat; /* image set by main.js on first hover: nothing loads until then */
    border: 1px solid rgb(178 151 96 / 0.55);
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out);
  }
  .contents__preview.is-on { opacity: 1; }
  .contents__grid { position: relative; z-index: 1; }
}

/* ---------- Colophon wordmark: the name in black marble with gold veins ---------- */
.wordmark {
  padding-block: var(--space-xl) var(--space-lg);
  overflow: clip;
  content-visibility: auto; /* its marble is only fetched near the screen */
  contain-intrinsic-size: auto 18vw;
}
.wordmark span {
  display: block;
  font-family: var(--font-serif);
  font-weight: var(--fw-serif);
  font-size: min(17.5vw, 21rem);
  line-height: 0.85;
  letter-spacing: -0.035em;
  text-align: center;
  white-space: nowrap;
  color: var(--nc-carbon);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wordmark span {
    background: var(--nc-carbon) url('/img/g/marble-dark-1280.webp') 20% 60% / 150% auto no-repeat;
    background-image: image-set(url('/img/g/marble-dark-1280.avif') type('image/avif'), url('/img/g/marble-dark-1280.webp') type('image/webp'));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) { .wordmark span { background: none; color: CanvasText; } }

/* ---------- Pointer depth (mouse/trackpad only) ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* Cover: the photo leans away from the pointer, the frame and the card towards it. */
  .hero__media img { scale: 1.06; translate: calc(var(--px, 0) * -1.4%) calc(var(--py, 0) * -1.4%); transition: translate 900ms var(--ease-out); }
  .hero__frame { translate: calc(var(--px, 0) * 0.9rem) calc(var(--py, 0) * 0.6rem); transition: translate 900ms var(--ease-out); }
  .hero__content { translate: calc(var(--px, 0) * 0.35rem) calc(var(--py, 0) * 0.25rem); transition: translate 900ms var(--ease-out); }
  /* Plates and the card tilt under the pointer, with a soft sheen where the light would catch. */
  [data-tilt] {
    transform: perspective(60rem) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 700ms var(--ease-out), translate 900ms var(--ease-out);
  }
  [data-tilt].is-tilting { transition-duration: 140ms, 900ms; }
  .hero-card { translate: calc(var(--px, 0) * 1.4rem) calc(var(--py, 0) * 1rem); }
  .media[data-tilt]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgb(255 248 230 / 0.4), transparent 60%);
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity 400ms var(--ease-out);
    pointer-events: none;
  }
  .media[data-tilt].is-tilting::after { opacity: 1; }
}

/* ---------- Scroll depth ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The cover photo sinks slower than the page. */
    .hero__media img { animation: depth-sink linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes depth-sink { to { transform: translateY(12%) scale(1.05); } }

    /* Chapter numerals lift off the page like a turning leaf. */
    .chapter-head__numeral { transform-origin: 50% 100%; animation: page-lift linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    @keyframes page-lift { from { transform: perspective(40rem) rotateX(62deg); } }

    /* The booking folio settles flat as it arrives. */
    .booking__frame { transform-origin: 50% 0; animation: frame-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    @keyframes frame-settle { from { transform: perspective(90rem) rotateX(7deg) translateY(2.5rem); } }

    /* Every plate opens like a window as it reaches the screen, the photograph drifting into place behind the opening:
       the bands' move in miniature, all through the book. No scale here: these image boxes must stay inside the page. */
    .about__media .plate, .gallery__item { view-timeline: --plate block; animation: open-window linear both; animation-timeline: --plate; animation-range: entry 0% cover 40%; }
    .about__media .plate img, .gallery__item img { animation: drift-in linear both; animation-timeline: --plate; animation-range: entry 0% cover 40%; }
    @keyframes open-window { from { clip-path: inset(9% 7%); } to { clip-path: inset(0); } } /* both ends as inset(): none would not interpolate */
    @keyframes drift-in { from { translate: 0 8%; } } /* the gap it leaves at the top stays under the 9% inset */

    /* The bands: each pinned photograph opens from a small window to full bleed, eases back,
       and its three words surface one by one once the window is nearly open. */
    .band__media { animation: band-open linear both; animation-timeline: --band; animation-range: entry 35% contain 45%; }
    @keyframes band-open { from { clip-path: inset(22% 26%); } to { clip-path: inset(0); } }
    .band__media img { animation: band-zoom linear both; animation-timeline: --band; animation-range: entry 35% contain 100%; }
    @keyframes band-zoom { from { scale: 1.3; } to { scale: 1; } }
    .band__words span { animation: word-rise linear both; animation-timeline: --band; }
    .band__words span:nth-child(1) { animation-range: contain 15% contain 40%; }
    .band__words span:nth-child(2) { animation-range: contain 35% contain 60%; }
    .band__words span:nth-child(3) { animation-range: contain 55% contain 80%; }
    @keyframes word-rise { from { opacity: 0; translate: 0 1.5rem; } }

    /* Back cover: the marble drifts slower than the page; the veins slide through the wordmark. */
    .quote__media img { height: 120%; animation: marble-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes marble-drift { from { translate: 0 -15%; } to { translate: 0 0; } }
    .wordmark span { animation: vein-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes vein-drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }

    /* Phones and touch screens: photographs stay where they are while the page moves (no shrinking windows,
       no drift, no empty margins around them). Desktop keeps the effects. */
    @media (max-width: 47.99em), (hover: none) {
      .hero__media img, .about__media .plate, .about__media .plate img, .gallery__item, .gallery__item img,
      .band__media, .band__media img, .quote__media img { animation: none; }
    }
  }
}

/* ---------- Touch: 44 px hit areas ----------
   WCAG 2.5.8 asks 24 px; a thumb needs 44 (UI/UX Pro Max `touch-target-size`, Apple HIG). Standalone links only:
   links inside a sentence stay inline (2.5.8 exception) so the text keeps its rhythm. Desktop is untouched. */
@media (pointer: coarse) {
  .hero__call a, .booking__fallback, .contact-card__phone, .contact-card__email, .contact-card__book,
  .site-footer__nav a, .site-footer__contact a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; }
  /* The cards sit above the form: grow the hit area, not the layout, so the form still starts on the first screen at 360 px (CTA-02). */
  .contact-card__phone, .contact-card__email, .contact-card__book { margin-block: -0.25rem; }
}

/* ---------- Print ---------- */
/* ---------- Cookie consent: only when GA4 is configured (decision 2026-11-17) ---------- */
.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: calc(var(--z-sticky) + 1); /* over the mobile CTA bar, under the header and the open menu */
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-sm) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--space-sm) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--color-bg);
  color: var(--color-text);
  border-top: var(--border-hairline);
  font-size: var(--text-sm);
}
.consent[hidden] { display: none; }
.consent__text { margin: 0; max-width: 62ch; }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.consent__actions .btn { flex: 1 1 8rem; min-height: 2.75rem; }
@media (min-width: 48em) {
  .consent { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-md); }
  .consent__actions .btn { flex: 0 0 auto; }
}
/* While the banner is open: the CTA bar steps aside and nothing focused or scrolled-to hides under it (WCAG 2.4.11). */
.consent-open .cta-bar { visibility: hidden; }
html.consent-open { scroll-padding-bottom: calc(var(--consent-h, 0px) + 1rem); }
html.consent-open body { padding-bottom: var(--consent-h, 0px); }
.site-footer__consent {
  min-height: var(--tap-min);
  margin-top: var(--space-2xs);
  padding: 0.25rem 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

@media print {
  .site-header, .nav-toggle, .cta-bar, .consent, .site-footer__consent, .hero__media, .hero__frame, .hero-card, .booking, .contents__preview, .wordmark, .quote__media, .band, .quote-form { display: none !important; }
  body::before { display: none; }
  body { background: #fff; color: #000; }
}
