/* ==========================================================================
   Dimora di' Carduccio — Tuscan Botanical Field Guide (N1 + N2 Synthesis)
   Self-hosted Lexend · OKLCH sRGB-verified tokens · Compositor-only 60fps
   ========================================================================== */

@font-face {
  font-family: 'Lexend';
  src: url('../fonts/lexend-var-normal.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Semantic palette — extracted from maps-01..06 & estate sign */
  --ground: oklch(0.962 0.011 85);
  --surface: oklch(0.935 0.013 85);
  --surface-elevated: oklch(0.985 0.006 85);
  --ink: oklch(0.22 0.015 135);
  --ink-muted: oklch(0.42 0.018 130);

  --forest: oklch(0.21 0.018 138);
  --forest-card: oklch(0.26 0.018 138);
  --forest-ink: oklch(0.955 0.010 85);
  --forest-muted: oklch(0.77 0.014 88);

  --terracotta: oklch(0.50 0.13 30);
  --terracotta-hover: oklch(0.44 0.13 30);
  --terracotta-bright: oklch(0.68 0.13 32);
  --olive: oklch(0.46 0.06 130);
  --stone: oklch(0.66 0.035 82);

  /* Architectural guide lines (11-15% opacity) */
  --rule: oklch(0.22 0.015 135 / 0.13);
  --rule-strong: oklch(0.22 0.015 135 / 0.24);
  --rule-dark: oklch(0.955 0.010 85 / 0.14);
  --rule-dark-strong: oklch(0.955 0.010 85 / 0.28);

  /* Layout geometry — single shared inset & container */
  --max-w: 1280px;
  --inset: clamp(18px, 3.6vw, 48px);
  --section-pad: clamp(64px, 8.5vw, 120px);
  --radius-frame: 4px;
  --radius-pill: 999px;

  /* Fixed z-index scale (baseline-ui) */
  --z-base: 1;
  --z-guides: 10;
  --z-sticky: 20;
  --z-dock: 30;
  --z-mbar: 40;
  --z-dialog: 50;

  /* Typography */
  --font: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base reset — html scroll-behavior MUST stay auto (horizontal-scroll-scenes rule #11) */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-x: clip;
}

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

img {
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.band-dark :focus-visible,
.closing-band :focus-visible {
  outline-color: var(--terracotta-bright);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-dialog);
  padding: 10px 16px;
  background: var(--forest);
  color: var(--forest-ink);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translate3d(0, -160%, 0);
  transition: transform 0.18s var(--ease-out);
}

.skip-link:focus {
  transform: translate3d(0, 0, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Shared container aligned to vertical architectural guides */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--inset);
}

/* ==========================================================================
   N1: Continuous Vertical Architectural Guides (pointer-transparent layer)
   ========================================================================== */
.field-guides {
  position: fixed;
  inset: 0;
  z-index: var(--z-guides);
  pointer-events: none;
}

.field-guides__inner {
  position: relative;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
}

.field-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--rule);
}

.field-guide--left {
  left: calc(var(--inset) - 10px);
}

.field-guide--right {
  right: calc(var(--inset) - 10px);
}

.field-guide--split {
  left: 58.333%;
  display: none;
}

@media (min-width: 960px) {
  .field-guide--split {
    display: block;
  }
}

/* Sparse diagonal registration ticks anchored to real grid/photo intersections */
.reg-tick {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  pointer-events: none;
}

.reg-tick::before,
.reg-tick::after {
  content: "";
  position: absolute;
  background-color: currentColor;
  opacity: 0.42;
}

.reg-tick::before {
  width: 18px;
  height: 1px;
  top: 50%;
  left: 0;
  transform: rotate(-45deg);
}

.reg-tick::after {
  width: 7px;
  height: 7px;
  top: 0;
  left: 0;
  background: transparent;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

/* Typography helpers */
.t-num {
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 300;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.folio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.band-dark .folio,
.closing-band .folio {
  border-bottom-color: var(--rule-dark);
  color: var(--forest-muted);
}

.folio__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Anchored sections scroll margin */
section[id],
header[id],
div[id] {
  scroll-margin-top: 24px;
}

/* Buttons & Pills (strictly <= 200ms feedback, compositor/local paint only) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--terracotta);
  color: var(--surface-elevated);
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--rule-strong);
  color: var(--ink);
}

.btn--dark-primary {
  background-color: var(--terracotta-bright);
  color: var(--forest);
}

.btn--dark-ghost {
  background-color: transparent;
  border-color: var(--rule-dark-strong);
  color: var(--forest-ink);
}

.btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   CHAPTER 01 — HERO (Quiet upper-left promise + compact upper-right dock + low full-bleed lawn band)
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(12px, 1.8vw, 20px);
  background-color: var(--ground);
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(14px, 2vw, 20px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
}

.brand__mark {
  width: 40px;
  height: 30px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand__loc {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-dock {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dock__links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .hero-dock__links {
    display: flex;
  }
}

.hero-dock__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.16s var(--ease-out);
}

.hero-dock__cta {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* Upper-left promise + right metadata margin */
.hero__intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.6vw, 32px);
  padding-top: clamp(18px, 2.8vw, 32px);
  padding-bottom: clamp(18px, 2.6vw, 28px);
}

@media (min-width: 960px) {
  .hero__intro {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: end;
  }
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--olive);
}

.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero__sub {
  max-width: 48ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.52;
  color: var(--ink-muted);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 960px) {
  .hero__aside {
    padding-left: clamp(20px, 3vw, 40px);
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.84rem;
}

.hero__fact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.hero__fact-val {
  font-weight: 500;
  color: var(--ink);
}

/* Low full-bleed sunlit lawn & veranda band */
.hero__band {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background-color: var(--forest);
}

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 54dvh;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 74%;
}

.hero__caption-bar {
  background-color: var(--surface);
  border-top: 1px solid var(--rule);
}

.hero__caption-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 12px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.hero__caption-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   N1: Masked Word Reveal (progressive enhancement, static fallback)
   ========================================================================== */
.masked-reveal .word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.masked-reveal .word {
  display: inline-block;
  transform: translate3d(0, 108%, 0);
  transition: transform 0.72s var(--ease-out) var(--word-delay, 0s);
}

.masked-reveal.is-revealed .word {
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .masked-reveal .word {
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   CHAPTER 02 — PALE EDITORIAL SPREAD + INTERACTIVE SPECIMEN FIELD GUIDE
   ========================================================================== */
.spread {
  padding-block: var(--section-pad);
  background-color: var(--ground);
}

.spread__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 64px);
}

@media (min-width: 960px) {
  .spread__grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    align-items: start;
  }
}

.spread__heading {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 18ch;
}

/* N1: Scroll-scrubbed word reveal (strictly compositor opacity + translate3d) */
.scrub-copy {
  max-width: 52ch;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.56;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 28px;
}

.scrub-copy em {
  font-style: normal;
  color: var(--terracotta);
  font-weight: 400;
}

.scrub-word {
  display: inline-block;
  opacity: calc(0.42 + (0.58 * var(--wp, 1)));
  transform: translate3d(0, calc((1 - var(--wp, 1)) * 0.12em), 0);
}

@media (prefers-reduced-motion: reduce) {
  .scrub-word {
    opacity: 1;
    transform: none;
  }
}

.spread__note {
  max-width: 54ch;
  font-size: 0.95rem;
  color: var(--ink-muted);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* Interactive Specimen Field Guide ([role="tablist"]) */
.specimen {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-frame);
  background-color: var(--surface-elevated);
  overflow: hidden;
}

.specimen__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
  background-color: var(--surface);
}

@media (min-width: 540px) {
  .specimen__tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.specimen__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ink-muted);
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s var(--ease-out);
}

@media (min-width: 540px) {
  .specimen__tab {
    border-bottom: 0;
  }
  .specimen__tab:last-child {
    border-right: 0;
  }
}

.specimen__tab[aria-selected="true"] {
  background-color: var(--forest);
  color: var(--forest-ink);
}

.specimen__tab-idx {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.specimen__tab[aria-selected="true"] .specimen__tab-idx {
  color: var(--forest-muted);
}

.specimen__tab-name {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

.specimen__panel {
  padding: 18px;
}

.specimen__panel[hidden] {
  display: none;
}

.specimen__figure {
  margin: 0 0 16px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background-color: var(--surface);
  aspect-ratio: 16 / 10;
}

.specimen__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specimen__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}

.specimen__title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--ink);
}

.specimen__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ==========================================================================
   CHAPTER 03 — NATIVE-SCROLL HORIZONTAL ZONE ATLAS (horizontal-scroll-scenes)
   ========================================================================== */
.atlas-section {
  background-color: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.atlas-track {
  position: relative;
}

.atlas-stage {
  padding-block: var(--section-pad);
}

.atlas-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.atlas-heading {
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.atlas-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atlas-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule-strong);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s var(--ease-out);
}

.atlas-nav__btn[aria-current="step"] {
  background-color: var(--forest);
  border-color: var(--forest);
  color: var(--forest-ink);
}

.atlas-viewport {
  overflow: hidden;
}

.atlas-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.atlas-scene {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-frame);
  background-color: var(--ground);
}

.atlas-scene__media {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
  background-color: var(--surface);
}

.atlas-scene__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atlas-scene__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.atlas-scene__num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.atlas-scene__title {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.atlas-scene__text {
  font-size: 0.96875rem;
  color: var(--ink-muted);
  max-width: 44ch;
}

.atlas-scene__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
}

.atlas-scene__tags li {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  background-color: var(--surface-elevated);
}

.atlas-progress {
  display: none;
  margin-top: 20px;
  height: 2px;
  background-color: var(--rule);
  overflow: hidden;
}

.atlas-progress__bar {
  height: 100%;
  width: 100%;
  background-color: var(--terracotta);
  transform-origin: left center;
  transform: scaleX(0.25);
}

/* Desktop sticky horizontal scroll scene stage (active only when JS enables .is-hscroll) */
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .atlas-track.is-hscroll {
    height: 220vh;
  }

  .atlas-track.is-hscroll .atlas-stage {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 36px;
  }

  .atlas-track.is-hscroll .atlas-rail {
    display: flex;
    gap: 0;
    transform: translate3d(0, 0, 0);
  }

  .atlas-track.is-hscroll .atlas-scene {
    flex: 0 0 100%;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 36px;
    padding: 28px;
    align-items: stretch;
  }

  .atlas-track.is-hscroll .atlas-progress {
    display: block;
  }
}

/* ==========================================================================
   CHAPTER 04 — LE VOCI DEGLI OSPITI (Quiet Light Editorial Surface)
   ========================================================================== */
.voices {
  padding-block: var(--section-pad);
  background-color: var(--ground);
}

.voices__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.voices__title {
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 20ch;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  background-color: var(--surface-elevated);
  font-size: 0.875rem;
}

.rating-pill__score {
  font-weight: 600;
  color: var(--terracotta);
}

.voices__grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}

@media (min-width: 760px) {
  .voices__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quote-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(24px, 3vw, 36px);
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background-color: var(--surface-elevated);
}

.quote-cell blockquote {
  margin: 0;
  font-size: 1.03125rem;
  line-height: 1.6;
  color: var(--ink);
}

.quote-cell__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.quote-cell__author {
  font-weight: 500;
  color: var(--ink);
}

/* ==========================================================================
   CHAPTER 05 — OCCASIONI & FAQ (Dark Olive-Charcoal Participation Cards)
   ========================================================================== */
.band-dark {
  padding-block: var(--section-pad);
  background-color: var(--forest);
  color: var(--forest-ink);
}

.band-dark__lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

@media (min-width: 900px) {
  .band-dark__lead {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
  }
}

.band-dark__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--forest-ink);
}

.band-dark__sub {
  font-size: 1rem;
  color: var(--forest-muted);
  max-width: 48ch;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 76px);
}

@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.event-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--rule-dark-strong);
  border-radius: var(--radius-frame);
  background-color: var(--forest-card);
}

.event-card__media {
  margin: 0 0 18px;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rule-dark);
  background-color: var(--forest);
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__num {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-bright);
  margin-bottom: 8px;
}

.event-card__title {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--forest-ink);
  margin-bottom: 10px;
}

.event-card__desc {
  font-size: 0.9375rem;
  color: var(--forest-muted);
  margin-bottom: 18px;
}

.event-card__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--forest-ink);
}

.event-card__list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.event-card__list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--terracotta-bright);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* Practical info + accessible <details> FAQ */
.practical {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 60px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--rule-dark);
}

@media (min-width: 900px) {
  .practical {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    align-items: start;
  }
}

.practical__title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.practical__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.9rem;
  color: var(--forest-muted);
}

.practical__meta strong {
  color: var(--forest-ink);
  font-weight: 500;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-dark-strong);
}

.faq-item {
  border-bottom: 1px solid var(--rule-dark-strong);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 14px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 400;
  color: var(--forest-ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__plus {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--terracotta-bright);
  transition: transform 0.18s var(--ease-out);
}

.faq-item[open] .faq-item__plus {
  transform: rotate(45deg);
}

.faq-item__body {
  padding: 0 0 18px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--forest-muted);
  max-width: 60ch;
}

/* ==========================================================================
   CHAPTER 06 — OVERSIZED CLOSING WOODLAND BAND & FOOTER
   ========================================================================== */
.closing-band {
  position: relative;
  background-color: var(--forest);
  color: var(--forest-ink);
  border-top: 1px solid var(--rule-dark);
  overflow: hidden;
}

.closing-band__bg {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 9vw, 128px);
}

.closing-band__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.closing-band__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.closing-band__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: oklch(0.16 0.018 138 / 0.78);
}

.closing-band__display {
  font-size: clamp(2.4rem, 6.2vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--forest-ink);
  margin-bottom: 20px;
  max-width: 15ch;
}

.closing-band__sub {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--forest-muted);
  max-width: 50ch;
  margin-bottom: 30px;
}

.closing-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.closing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-dark-strong);
}

@media (min-width: 760px) {
  .closing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.closing-col__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-bright);
  margin-bottom: 8px;
}

.closing-col__text {
  font-size: 0.9375rem;
  color: var(--forest-ink);
  line-height: 1.55;
}

.closing-col__text a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.16s ease, transform 0.16s var(--ease-out);
}

.site-footer {
  background-color: var(--forest);
  border-top: 1px solid var(--rule-dark);
  padding-block: 24px;
  color: var(--forest-muted);
  font-size: 0.84rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--rule-dark-strong);
  border-radius: var(--radius-pill);
  color: var(--forest-ink);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: border-color 0.16s ease, transform 0.16s var(--ease-out);
}

/* ==========================================================================
   MOBILE BOTTOM ACTION BAR (.mbar) — auto-hide via compositor transform
   ========================================================================== */
.mbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-mbar);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule-dark-strong);
  background-color: var(--forest);
  color: var(--forest-ink);
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s var(--ease-out);
}

.mbar.is-hidden {
  transform: translate3d(0, 150%, 0);
  pointer-events: none;
}

.mbar__wa {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.875rem;
}

.mbar__tel {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  .mbar {
    display: none;
  }
}

/* Reserve bottom padding on mobile so footer is never covered by .mbar */
@media (max-width: 899px) {
  .site-footer {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   WHATSAPP DIALOG (<dialog id="wa-dialog">)
   ========================================================================== */
.wa-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background-color: var(--ground);
  color: var(--ink);
  overflow-y: auto;
}

.wa-dialog::backdrop {
  background-color: oklch(0.15 0.015 135 / 0.65);
}

.wa-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule);
}

.wa-dialog__title {
  font-size: 1.2rem;
  font-weight: 400;
}

.wa-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s var(--ease-out);
}

.wa-dialog__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wa-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

.wa-field select,
.wa-field input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-frame);
  background-color: var(--surface-elevated);
  color: var(--ink);
}

.wa-preview {
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-frame);
  background-color: var(--surface);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}

.wa-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wa-status {
  min-height: 1.25em;
  font-size: 0.84rem;
  color: var(--olive);
  font-weight: 500;
}

/* Hover states strictly guarded for fine pointer devices */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translate3d(0, -1px, 0);
  }

  .btn--primary:hover {
    background-color: var(--terracotta-hover);
  }

  .btn--ghost:hover {
    border-color: var(--ink);
    background-color: oklch(0.22 0.015 135 / 0.05);
  }

  .btn--dark-primary:hover {
    background-color: oklch(0.73 0.13 32);
  }

  .btn--dark-ghost:hover {
    border-color: var(--forest-ink);
    background-color: oklch(0.955 0.010 85 / 0.10);
  }

  .hero-dock__links a:hover {
    color: var(--ink);
    background-color: oklch(0.22 0.015 135 / 0.05);
    transform: translate3d(0, -1px, 0);
  }

  .specimen__tab:hover {
    background-color: oklch(0.22 0.015 135 / 0.06);
    color: var(--ink);
    transform: translate3d(0, -1px, 0);
  }

  .specimen__tab[aria-selected="true"]:hover {
    background-color: var(--forest-card);
    color: var(--forest-ink);
    transform: translate3d(0, -1px, 0);
  }

  .atlas-nav__btn:hover {
    border-color: var(--ink);
    color: var(--ink);
    transform: translate3d(0, -1px, 0);
  }

  .atlas-nav__btn[aria-current="step"]:hover {
    background-color: var(--forest-card);
    border-color: var(--forest-card);
    color: var(--forest-ink);
    transform: translate3d(0, -1px, 0);
  }

  .closing-col__text a:hover {
    color: var(--terracotta-bright);
    transform: translate3d(0, -1px, 0);
  }

  .site-footer__top:hover {
    border-color: var(--forest-ink);
    transform: translate3d(0, -1px, 0);
  }

  .wa-dialog__close:hover {
    border-color: var(--ink);
    transform: scale(1.04);
  }
}

/* Print readability rules */
@media print {
  .field-guides,
  .hero-dock,
  .mbar,
  .wa-dialog,
  .atlas-nav,
  .atlas-progress,
  .site-footer__top {
    display: none !important;
  }

  body,
  .band-dark,
  .closing-band {
    background: #ffffff !important;
    color: #111111 !important;
  }

  .closing-band__photo,
  .closing-band__scrim {
    display: none !important;
  }
}

/* Reduced-motion global guard */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
