/* ==========================================================================
   Hotel Sedona Resort & Spa — investor site
   Single stylesheet. Design tokens per ARCHITECTURE.md section 5.
   ========================================================================== */

:root {
  /* palette — Brand Concept 2025-03-07 p.21 exact values;
     tints/shades of palette colors are sanctioned by the spec */
  --redrock: #AB5025;
  --rosesand: #D5A089;
  --sand: #EAD0C4;            /* Rose Sand 50% tint */
  --cream: #F8F2E9;
  --sky: #7BAFCD;
  --forest: #294820;
  --dusk: #492E1F;
  --dusk-deep: #241712;       /* Dusk shade — footer / dark sections */
  --redrock-deep: #8F4420;    /* Redrock shade — hover states */

  /* derived */
  --ink: var(--dusk);
  --ink-soft: #6B5546;        /* Dusk tint — secondary text (5.9:1 on cream) */
  --hairline: rgba(73, 46, 31, 0.16);
  --hairline-light: rgba(248, 242, 233, 0.22);

  /* type — single family per brand (headlines: 600 caps +130 tracking) */
  --font-display: "soleil", "Segoe UI", Arial, sans-serif;
  --font-body: "soleil", -apple-system, "Segoe UI", sans-serif;
  --track-heads: 0.13em;

  /* rhythm */
  --space-section: clamp(5rem, 14vh, 10rem);
  --width-content: 1200px;
  --width-prose: 44rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 600; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--dusk);
  color: var(--cream);
  font-size: 0.85rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

/* Brand headline treatment: Soleil Semi-Bold, uppercase, +130 tracking.
   Sizes run well below the old serif scale — tracked caps are ~40% wider. */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: var(--track-heads);
  text-transform: uppercase;
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: var(--track-heads);
  text-transform: uppercase;
}

.title-sm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: var(--track-heads);
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--redrock);
  margin-bottom: 1.5rem;
}

/* light accent wherever the eyebrow sits on imagery or a dark band */
.hero .eyebrow,
.page-hero .eyebrow,
.simple-page .eyebrow,
.cta-band .eyebrow { color: var(--rosesand); }

/* interstitials sit on busy photos behind a 58% overlay — go a step lighter */
.interstitial .eyebrow { color: var(--sand); }

/* deeper accent on the sand band — plain redrock is only 3.67:1 there */
.section--sand .eyebrow { color: var(--redrock-deep); }

.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

.prose { max-width: var(--width-prose); }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - 3rem, var(--width-content));
  margin-inline: auto;
}

.section { padding-block: var(--space-section); }

.section--sand { background: var(--sand); }

.section--dark {
  background: var(--dusk);
  color: var(--cream);
}

.section--deep {
  background: var(--dusk-deep);
  color: var(--cream);
}

.section--dark .eyebrow,
.section--deep .eyebrow { color: var(--rosesand); }

.section--dark .lede,
.section--deep .lede { color: rgba(248, 242, 233, 0.85); }

.section-head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out);
}

.btn--brand {
  background: var(--redrock);
  color: var(--cream);
  border-color: var(--redrock);
}
.btn--brand:hover { background: var(--redrock-deep); border-color: var(--redrock-deep); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248, 242, 233, 0.55);
}
.btn--ghost:hover { border-color: var(--cream); background: rgba(248, 242, 233, 0.08); }

.btn--ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: rgba(73, 46, 31, 0.4);
}
.btn--ghost-dark:hover { border-color: var(--ink); background: rgba(73, 46, 31, 0.05); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.text-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--redrock);
  border-bottom: 1px solid var(--rosesand);
  padding-bottom: 0.3rem;
  transition: color 0.25s var(--ease-out);
}
.text-link:hover { color: var(--dusk); }

.section--dark .text-link,
.section--deep .text-link { color: var(--rosesand); }

.section--dark .text-link:hover,
.section--deep .text-link:hover { color: var(--cream); }

.insight-more { margin-top: 2.75rem; }

/* insight links render as discrete rows, one underline rule per link — inline
   a pair reads as one long link (worst once wrapped on mobile, where every
   line carries a rule fragment) */
.insight-more .text-link {
  display: block;
  width: fit-content;
}

.insight-more .text-link + .text-link { margin-top: 1.15rem; }

/* The Location — section head + stat tiles left, static Destination-map
   miniature right (rendered by pipeline/render_map_thumb.py; the figure
   links to the interactive map on the home page); the walkable table
   stretches full-width beneath the pair. Stacks below 1024px. */
.location-cols { display: grid; gap: 2.5rem; align-items: start; }

.location-map-thumb { margin: 0; max-width: 27rem; }

.location-map-thumb a { display: block; }

.location-map-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.location-map-thumb figcaption { margin-top: 0.9rem; }

@media (min-width: 1024px) {
  .location-cols {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem);
    gap: 3rem;
  }
  /* offset tuned at 1440px: the Explore link's bottom sits level with the
     lowest stat-tile label text */
  .location-map-thumb { max-width: none; margin-top: 7.2rem; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}

.brand {
  display: block;
  text-decoration: none;
  color: var(--cream);
  transition: color 0.35s var(--ease-out);
}

/* Wordmark is an alpha mask filled with currentColor, so it follows the
   header's existing color states (hero/scrolled/nav-open) with no asset swap. */
.brand-mark {
  display: block;
  width: 13rem;
  aspect-ratio: 2725 / 489;
  background-color: currentColor;
  -webkit-mask: url("../assets/img/brand/wordmark-horiz-modifier.webp") center / contain no-repeat;
  mask: url("../assets/img/brand/wordmark-horiz-modifier.webp") center / contain no-repeat;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.site-nav a:not(.btn) {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  transition: color 0.3s var(--ease-out);
}

.site-nav a:not(.btn):hover { color: var(--rosesand); }

.site-nav .btn { padding: 0.65rem 1.4rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--cream);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out),
              background-color 0.35s var(--ease-out);
}

/* scrolled state */
.site-header.scrolled {
  background: rgba(248, 242, 233, 0.96);
  box-shadow: 0 1px 0 var(--hairline), 0 8px 28px rgba(73, 46, 31, 0.08);
}
.site-header.scrolled .brand { color: var(--ink); }

/* Home-page handoff: the corner brand hides until the hero wordmark has
   scrolled past the header (main.js toggles .brand-docked), then fades in.
   Scoped to html.js so the brand never disappears without JS. */
html.js .site-header.header-handoff .brand {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out),
              color 0.35s var(--ease-out);
}

html.js .site-header.header-handoff.brand-docked .brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.site-header.scrolled .site-nav a:not(.btn) { color: var(--ink); }
.site-header.scrolled .site-nav a:not(.btn):hover { color: var(--redrock); }
.site-header.scrolled .nav-toggle-bar { background: var(--ink); }

/* mobile nav */
@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .brand-mark { width: 10.5rem; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.75rem;
    background: var(--dusk-deep);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out),
                visibility 0s linear 0.3s;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .site-nav a:not(.btn) {
    color: var(--cream) !important;
    padding: 0.9rem 0;
    width: 100%;
    border-bottom: 1px solid var(--hairline-light);
  }

  .site-nav .btn { margin-top: 1.25rem; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* keep header legible while the dark panel is open */
  .site-header.nav-open { background: var(--dusk-deep); box-shadow: none; }
  .site-header.nav-open .brand { color: var(--cream); }
  .site-header.nav-open .nav-toggle-bar { background: var(--cream); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  isolation: isolate;
  padding-block: 8rem 6rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

/* Background video: sits over the still, which remains the poster/fallback
   for no-JS, reduced-motion, and while the video buffers. With JS the video
   starts transparent and dissolves in once playback begins (.is-playing),
   so the still-to-motion handoff never pops. Without JS it stays visible. */
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.js .hero-media video {
  opacity: 0;
  transition: opacity 0.6s ease;
}

html.js .hero-media video.is-playing { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(36, 23, 18, 0.50) 0%,
      rgba(36, 23, 18, 0.28) 38%,
      rgba(36, 23, 18, 0.44) 78%,
      rgba(36, 23, 18, 0.74) 100%);
}

.hero .wrap { max-width: 62rem; }

.hero h1 { color: var(--cream); }

/* Hero lockup — wordmark primary, tagline (the h1) secondary, lede tertiary.
   Same alpha-mask technique as .brand-mark / .footer-brand. */
.hero-brand {
  width: min(88vw, 40rem);
  aspect-ratio: 2725 / 489;
  margin: 0 auto;
  background-color: var(--cream);
  -webkit-mask: url("../assets/img/brand/wordmark-horiz-modifier.webp") center / contain no-repeat;
  mask: url("../assets/img/brand/wordmark-horiz-modifier.webp") center / contain no-repeat;
}

.hero-tagline {
  margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: var(--track-heads);
  text-transform: uppercase;
}

@media (max-width: 639px) {
  /* stacked wordmark reads larger at phone widths */
  .hero-brand {
    width: min(74vw, 19rem);
    aspect-ratio: 2233 / 1068;
    -webkit-mask-image: url("../assets/img/brand/wordmark-stack-modifier.webp");
    mask-image: url("../assets/img/brand/wordmark-stack-modifier.webp");
  }
}

.hero .lede {
  max-width: 50rem;
  /* the removed hero-stats line used to open this gap below the h1 */
  margin-block-start: 2.25rem;
  margin-inline: auto;
  color: rgba(248, 242, 233, 0.88);
}

.hero .btn-row {
  justify-content: center;
  margin-top: 2.75rem;
}

/* --------------------------------------------------------------------------
   Why Sedona
   -------------------------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.why-intro { position: sticky; top: 7rem; }

.why-figure {
  margin: 2.5rem 0 0;
  max-width: 26rem;
}

.why-figure img { border-radius: 2px; }

.why-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.why-list li {
  padding: 2.2rem 0;
  border-top: 1px solid var(--hairline);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.7;
  font-weight: 400;
}

.why-list li:last-child { border-bottom: 1px solid var(--hairline); }

.why-list strong { font-weight: 600; color: var(--redrock); }

.why-cta { margin-top: 3rem; }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
  .why-figure { display: none; }
}

/* --------------------------------------------------------------------------
   Full-bleed interstitials (parallax on desktop)
   -------------------------------------------------------------------------- */

.interstitial {
  position: relative;
  color: var(--cream);
  text-align: center;
  padding-block: clamp(8rem, 24vh, 15rem);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.interstitial::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(36, 23, 18, 0.58);
}

@media (min-width: 1024px) {
  .interstitial { background-attachment: fixed; }
}

.interstitial--invitation {
  background-image: url("../assets/img/hero/casita-village-tower-1024.webp");
}
/* the daylight render reads dim under the standard 58% scrim; lighten this
   band only, keeping the top heavier where the headline sits over open sky,
   and let a soft text shadow carry the contrast the scrim gives up */
.interstitial--invitation::after {
  background: linear-gradient(
    rgba(36, 23, 18, 0.42),
    rgba(36, 23, 18, 0.28)
  );
}
.interstitial--invitation .eyebrow,
.interstitial--invitation .title,
.interstitial--invitation .lede,
.interstitial--invitation .tagline {
  text-shadow: 0 1px 3px rgba(36, 23, 18, 0.55), 0 2px 28px rgba(36, 23, 18, 0.7);
}
@media (min-width: 1024px) {
  .interstitial--invitation {
    background-image: url("../assets/img/hero/casita-village-tower-1920.webp");
  }
}

.interstitial--pool {
  background-image: url("../assets/img/hero/pool-deck-fire-lounge-1024.webp");
}
@media (min-width: 1024px) {
  .interstitial--pool {
    background-image: url("../assets/img/hero/pool-deck-fire-lounge-1920.webp");
  }
}

.interstitial .wrap { max-width: 56rem; }

.interstitial .lede {
  margin-top: 2.25rem;
  color: rgba(248, 242, 233, 0.9);
}

/* pure white body copy on the Vision band (the 90% cream above is too
   warm/translucent against its lighter-scrimmed daylight render) */
.interstitial--invitation .lede { color: #fff; }

.interstitial .tagline {
  margin-top: 3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--sand);
}

/* --------------------------------------------------------------------------
   Highlights — stat trail (signature element)
   -------------------------------------------------------------------------- */

.highlights .section-head { text-align: center; }

.stat-trail {
  position: relative;
  max-width: 62rem;
  margin-inline: auto;
}

/* dotted gold path down the middle */
.stat-trail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 2px dotted rgba(213, 160, 137, 0.55);
}

.stat {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding-block: clamp(2.5rem, 6vh, 4.5rem);
}

/* redrock marker on the path */
.stat::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--redrock);
}

.stat-copy { text-align: right; padding-right: clamp(1.5rem, 4vw, 3rem); }

.stat:nth-child(even) .stat-copy {
  order: 2;
  text-align: left;
  padding-right: 0;
  padding-left: clamp(1.5rem, 4vw, 3rem);
}

.stat-figure { padding-left: clamp(1.5rem, 4vw, 3rem); }

.stat:nth-child(even) .stat-figure {
  order: 1;
  padding-left: 0;
  padding-right: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  justify-content: flex-end;
}

.stat-figure img {
  width: min(100%, 22rem);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

/* desktop: let the trail span the full wrap and enlarge the figures */
@media (min-width: 768px) {
  .stat-trail { max-width: 75rem; }

  .stat-figure img { width: min(100%, 30rem); }
}

.stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 7.5vw, 6rem);
  line-height: 1;
  color: var(--redrock);
  font-variant-numeric: lining-nums;
}

.stat-label {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 24rem;
  margin-left: auto;
}

.stat:nth-child(even) .stat-label { margin-left: 0; margin-right: auto; }

@media (max-width: 767px) {
  .stat-trail::before { left: 0.4rem; }

  .stat,
  .stat:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 2.2rem;
  }

  /* center the marker on the number: stat padding-top + half the 3.4rem figure */
  .stat::before { left: 0.4rem; top: calc(clamp(2.5rem, 6vh, 4.5rem) + 1.7rem); }

  .stat .stat-copy,
  .stat:nth-child(even) .stat-copy {
    order: 0;
    text-align: left;
    padding: 0;
  }

  .stat .stat-figure,
  .stat:nth-child(even) .stat-figure {
    order: 1;
    padding: 0;
    justify-content: flex-start;
    display: block;
  }

  .stat-label { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Market dynamics — 6-card grid
   -------------------------------------------------------------------------- */

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.market-card {
  border-top: 2px solid var(--rosesand);
  padding-top: 1.6rem;
}

.market-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: var(--track-heads);
  text-transform: uppercase;
  color: var(--redrock);
  margin-bottom: 0.85rem;
}

.market-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

@media (max-width: 1023px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .market-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   The Resort — 8 image cards on dusk; each opens in the gallery lightbox
   -------------------------------------------------------------------------- */

.resort-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.resort-card { grid-column: span 2; }

.resort-card:nth-child(1),
.resort-card:nth-child(2) { grid-column: span 3; }

.resort-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 2px;
}

.resort-card:nth-child(1) img,
.resort-card:nth-child(2) img { aspect-ratio: 16 / 10; }

.resort-card h3 {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: var(--track-heads);
  text-transform: uppercase;
  color: var(--sand);
}

.resort-card p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(248, 242, 233, 0.72);
}

@media (max-width: 1023px) {
  .resort-grid { grid-template-columns: 1fr 1fr; }
  .resort-card,
  .resort-card:nth-child(1),
  .resort-card:nth-child(2) { grid-column: span 1; }
  .resort-card:nth-child(1) img,
  .resort-card:nth-child(2) img { aspect-ratio: 3 / 2; }
}

@media (max-width: 639px) {
  .resort-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Resort gallery lightbox + feature-card rendering cycles
   Cards gain .has-lightbox and a .resort-card-zoom button (wrapping the
   image or cycle stack) from main.js — without JS none of this applies and
   the grid is untouched. Three galleries: the two cycle cards each page
   through their own rendering set; the remaining single-image tiles pool
   into one shared gallery (.is-single hides the stepping UI only if a set
   ever holds one image). Transitions are neutralized by the global
   reduced-motion block.
   -------------------------------------------------------------------------- */

.resort-card.has-lightbox { cursor: pointer; }

.resort-card-zoom {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
}

.resort-card-zoom img {
  transition: transform 0.6s var(--ease-out);
}

.resort-card.has-lightbox:hover .resort-card-zoom img,
.resort-card-zoom:focus-visible img { transform: scale(1.025); }

/* Cycle stack: absolutely stacked slides crossfade under main.js §5b.
   Without JS only the first slide (.is-shown in markup) is visible, so
   the tile reads as a plain image; reduced motion parks it there too.
   The container carries the card's aspect box (the slides are absolute,
   mixed source ratios cover-crop into it, matching the img rules above).
   Declared after .resort-card-zoom img so the combined transition wins. */
.resort-card-cycle {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
}

.resort-card:nth-child(1) .resort-card-cycle,
.resort-card:nth-child(2) .resort-card-cycle { aspect-ratio: 16 / 10; }

@media (max-width: 1023px) {
  .resort-card:nth-child(1) .resort-card-cycle,
  .resort-card:nth-child(2) .resort-card-cycle { aspect-ratio: 3 / 2; }
}

.resort-card-cycle img {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out), transform 0.6s var(--ease-out);
}

.resort-card-cycle img.is-shown { opacity: 1; }

body:has(.lightbox[open]) { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* track the visible viewport - iOS Safari's 100vh runs behind the bottom toolbar */
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem) clamp(3.5rem, 8vw, 6.5rem);
  border: 0;
  background: transparent;
  color: var(--cream);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop { background: rgba(36, 23, 18, 0.93); }

.lightbox-figure {
  margin: 0;
  min-width: 0;
  max-width: min(1400px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  width: auto;
  height: auto;
  min-height: 0; /* let the image give way in the column flex so the caption never spills into the arrow zone on short viewports */
  max-width: 100%;
  max-height: 72vh;
  border-radius: 2px;
  transition: opacity 0.35s var(--ease-out);
}

.lightbox.is-loading .lightbox-figure img { opacity: 0; }

.lightbox-caption {
  margin-top: 1.4rem;
  max-width: 44rem;
  text-align: center;
  flex-shrink: 0;
}

.lightbox-count {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--track-heads);
  text-transform: uppercase;
  color: var(--rosesand);
}

.lightbox-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: var(--track-heads);
  text-transform: uppercase;
  color: var(--sand);
}

.lightbox-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(248, 242, 233, 0.72);
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--hairline-light);
  border-radius: 50%;
  background: rgba(248, 242, 233, 0.06);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.25s var(--ease-out);
}

.lightbox button:hover { background: rgba(248, 242, 233, 0.16); }

.lightbox button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.lightbox-close {
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  width: 46px;
  height: 46px;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.lightbox-prev { left: clamp(0.5rem, 2vw, 1.75rem); }
.lightbox-next { right: clamp(0.5rem, 2vw, 1.75rem); }

/* a one-image gallery has nothing to step through (guard — every current
   set holds 2+) */
.lightbox.is-single .lightbox-count,
.lightbox.is-single .lightbox-arrow { display: none; }

@media (max-width: 639px) {
  .lightbox { padding: 4.5rem 1rem; }
  .lightbox-figure img { max-height: 56vh; }
  .lightbox-caption { margin-top: 1.1rem; }
  /* swipe is the primary gesture on touch layouts; arrows drop to the
     bottom corners (inside the dialog's padding band) as the tap fallback */
  .lightbox-arrow {
    top: auto;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: 44px;
    height: 44px;
  }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
}

/* --------------------------------------------------------------------------
   The Offering — metrics table
   -------------------------------------------------------------------------- */

.offering-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.offering-intro { position: sticky; top: 7rem; }

.offering-intro .btn-row { margin-top: 2.5rem; }

.offering-table {
  border-top: 1px solid var(--hairline-light);
  margin: 0;
}

.offering-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hairline-light);
}

.offering-row dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 242, 233, 0.66);
}

.offering-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 400;
  color: var(--cream);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}

.offering-row dd small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(248, 242, 233, 0.55);
  white-space: normal;
}

@media (max-width: 900px) {
  .offering-layout { grid-template-columns: 1fr; }
  .offering-intro { position: static; }
  .offering-row { flex-direction: column; gap: 0.25rem; }
  .offering-row dd { text-align: left; white-space: normal; }
}

/* --------------------------------------------------------------------------
   Sponsor
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   The Destination — interactive attractions map + site plan below it
   Each spot = photo bubble + name plate below + distance chip above (OM p.39
   call-out style). Hover / keyboard focus swaps the labels for an expanded
   card via CSS alone, so the map works without JS; JS adds tap toggling
   (.is-open).
   -------------------------------------------------------------------------- */

.destination .lede { max-width: 46rem; margin-top: 1.5rem; }

.dest-subhead { margin-top: 3.5rem; }

.dest-map-intro { margin: 0.9rem 0 0; }

.dest-panel { margin-top: 2rem; }

.dest-map {
  margin: 0;
  border-radius: 2px;
  overflow-x: auto;
}

.dest-map-canvas {
  position: relative;
  min-width: 100%;
  /* size container: bubbles/chips/plates below are sized in cqw so they
     shrink with the map between the 1200px wrap cap and the 48rem mobile
     canvas — fixed rem sizes overlapped at mid resize widths */
  container-type: inline-size;
}

.dest-map img {
  display: block;
  width: 100%;
  height: auto;
}

/* 8cqw = the locked 6rem at the full 1200px canvas; the floor keeps bubbles
   tappable just above the 767px switch to the panning mobile canvas */
.dest-spot {
  position: absolute;
  width: 6rem;   /* pre-container-query fallback (also below, on every cqw value) */
  height: 6rem;
  width: clamp(3.5rem, 8cqw, 6rem);
  height: clamp(3.5rem, 8cqw, 6rem);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.dest-spot-btn {
  position: absolute;
  inset: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.dest-spot-btn:focus-visible { outline-color: var(--cream); }

.dest-spot-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--sand);
  border: 2px solid var(--cream);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out);
}

.dest-spot-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* leader lines from each bubble to its exact location (OM p.39 style):
   thin cream elbows ending in a dot, or an arrowhead for off-frame sites */
.dest-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dest-leaders polyline {
  fill: none;
  stroke: var(--cream);
  stroke-width: 2.25px;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.45));
}

.dest-leaders marker path { fill: var(--cream); }

/* location dots: dark center inside a cream ring, so they read on busy terrain */
.dest-leaders circle {
  fill: var(--dusk-deep);
  stroke: var(--cream);
  stroke-width: 7;
}

/* SR-89A / SR-179 (OM p.39 vectors): cream-cased sky lines + route shields,
   drawn beneath the leader lines; widths in SVG units so they scale with
   the map, unlike the fixed-width leaders */
.dest-leaders .dest-road-casing,
.dest-leaders .dest-road {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dest-leaders .dest-road-casing { stroke: var(--cream); stroke-width: 17; }
.dest-leaders .dest-road { stroke: var(--sky); stroke-width: 9; }

/* Route markers are exact MUTCD sign drawings with real sign colors
   (white/black) baked into the markup; only the lift shadow lives here. */
.dest-road-shield {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* the 5.28-acre site, highlighted as in the OM: rust fill, white outline */
.dest-leaders .dest-site {
  fill: var(--redrock);
  fill-opacity: 0.9;
  stroke: var(--cream);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

/* distance chip tucked onto the bubble's upper rim, category-colored
   (z-index lifts it over the photo, which comes later in the DOM) */
.dest-spot-chip {
  position: absolute;
  bottom: calc(100% - 0.45rem);
  bottom: calc(100% - clamp(0.35rem, 0.6cqw, 0.45rem));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-size: clamp(0.5rem, 0.74cqw, 0.55rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.32s var(--ease-out);
}

.dest-spot--walk .dest-spot-chip { background: var(--redrock); }
.dest-spot--mile .dest-spot-chip { background: var(--dusk); }
.dest-spot--park .dest-spot-chip { background: var(--forest); }

/* name plate tucked onto the bubble's lower edge, reading as part of the
   icon (it paints over the photo rim) rather than a floating label */
.dest-spot-plate {
  position: absolute;
  top: calc(100% - 0.45rem);
  top: calc(100% - clamp(0.35rem, 0.6cqw, 0.45rem));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 8rem;
  max-width: clamp(6rem, 10.7cqw, 8rem);
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  background: rgba(36, 23, 18, 0.92);
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-size: clamp(0.48rem, 0.74cqw, 0.55rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--cream);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: opacity 0.18s ease;
}

/* expanded call-out: dark header + cream body, anchored where the plate sat */
.dest-spot-card {
  --tx: -50%;
  --ty: 0.4rem;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  width: 16rem;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(36, 23, 18, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translate(var(--tx), var(--ty)) scale(0.96);
  transition: opacity 0.22s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}

.dest-spot-name {
  margin: 0;
  padding: 0.5rem 0.8rem;
  background: rgba(36, 23, 18, 0.95);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  color: var(--cream);
}

.dest-spot-body {
  padding: 0.6rem 0.85rem 0.75rem;
  background: var(--cream);
  text-align: left;
}

.dest-spot-dist {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dest-spot--walk .dest-spot-dist,
.dest-spot--hotel .dest-spot-dist { color: var(--redrock); }
.dest-spot--mile .dest-spot-dist { color: var(--dusk); }
.dest-spot--park .dest-spot-dist { color: var(--forest); }

.dest-spot-desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* the property itself: rust star bubble + rust plate, echoing the OM call-out */
.dest-spot--hotel {
  width: 6.5rem;
  height: 6.5rem;
  width: clamp(3.8rem, 8.67cqw, 6.5rem);
  height: clamp(3.8rem, 8.67cqw, 6.5rem);
  z-index: 3;
}

.dest-spot--hotel .dest-spot-photo {
  background: var(--redrock);
  font-size: 2.2rem;
  font-size: clamp(1.3rem, 2.94cqw, 2.2rem);
  color: var(--cream);
}

.dest-spot--hotel .dest-spot-plate { background: rgba(171, 80, 37, 0.95); }
.dest-spot--hotel .dest-spot-name { background: rgba(171, 80, 37, 0.97); }

/* card placement variants: --n opens upward (bottom map row),
   --e / --w hug the right / left map edges */
.dest-spot--n .dest-spot-card {
  --ty: -0.4rem;
  top: auto;
  bottom: calc(100% + 0.45rem);
}

.dest-spot--e .dest-spot-card { --tx: 0; left: auto; right: -0.75rem; }
.dest-spot--w .dest-spot-card { --tx: 0; left: -0.75rem; }

/* open states: tap (.is-open via JS), keyboard focus (pure CSS), and — on
   devices that can hover — pointer hover. Chip and plate yield to the card. */
.dest-spot.is-open,
.dest-spot:has(.dest-spot-btn:focus-visible) { z-index: 30; }

.dest-spot.is-open .dest-spot-photo,
.dest-spot:has(.dest-spot-btn:focus-visible) .dest-spot-photo {
  transform: scale(1.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.dest-spot.is-open .dest-spot-chip,
.dest-spot:has(.dest-spot-btn:focus-visible) .dest-spot-chip {
  opacity: 0;
  transform: translateX(-50%) translateY(-0.35rem);
}

.dest-spot.is-open .dest-spot-plate,
.dest-spot:has(.dest-spot-btn:focus-visible) .dest-spot-plate { opacity: 0; }

.dest-spot.is-open .dest-spot-card,
.dest-spot:has(.dest-spot-btn:focus-visible) .dest-spot-card {
  opacity: 1;
  visibility: visible;
  transform: translate(var(--tx), 0) scale(1);
  transition: opacity 0.22s ease, transform 0.3s var(--ease-out), visibility 0s;
}

@media (hover: hover) {
  .dest-spot:hover { z-index: 30; }

  .dest-spot:hover .dest-spot-photo {
    transform: scale(1.5);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  }

  .dest-spot:hover .dest-spot-chip {
    opacity: 0;
    transform: translateX(-50%) translateY(-0.35rem);
  }

  .dest-spot:hover .dest-spot-plate { opacity: 0; }

  .dest-spot:hover .dest-spot-card {
    opacity: 1;
    visibility: visible;
    transform: translate(var(--tx), 0) scale(1);
    transition: opacity 0.22s ease, transform 0.3s var(--ease-out), visibility 0s;
  }
}

.dest-plan { margin: 0; }

.dest-plan a { display: block; }

.dest-plan img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.dest-plan figcaption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: rgba(73, 46, 31, 0.7);
}

@media (max-width: 767px) {
  /* Small screens: the map keeps a 48rem canvas and pans horizontally
     (JS centers it on the hotel), so the photo call-outs stay full-size
     and labeled — the team preferred this over a fit-in-view mobile map
     (tried 2026-08-20, reverted). 767px (not 639px) because below a
     ~720px canvas even cqw-scaled plates hit their legibility floors
     and the bottom call-out row collides. */
  .dest-map-canvas { width: 48rem; }
  .dest-spot { width: 4rem; height: 4rem; }
  .dest-spot--hotel { width: 4.4rem; height: 4.4rem; }
  .dest-spot--hotel .dest-spot-photo { font-size: 1.5rem; }
  .dest-spot-chip { font-size: 0.5rem; bottom: calc(100% - 0.35rem); }
  .dest-spot-plate { font-size: 0.48rem; max-width: 6rem; padding: 0.18rem 0.28rem; top: calc(100% - 0.35rem); }
  /* Mobile-only position nudges; !important because the shared (desktop)
     coordinates live in inline styles on the markup. */
  .dest-spot:has(#spot-steamboat) { left: 35% !important; }
  .dest-spot:has(#spot-sacajawea) { left: 24.7% !important; }
  .dest-spot:has(#spot-hotel) { top: 30% !important; }
  .dest-spot:has(#spot-sinagua) { top: 51% !important; }
  /* Forced break so the max-content plate shrink-wraps its longest line;
     auto-wrapping at the 6rem cap leaves the box at full cap width. */
  .dest-spot-plate .dest-plate-break { display: block; }
  .dest-spot-card { width: 13.5rem; }
  .dest-spot-name { font-size: 0.6rem; }
  .dest-spot-desc { font-size: 0.7rem; }
}

.sponsor .wrap { max-width: 56rem; }

.sponsor-body {
  margin-top: 2.25rem;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.75;
  font-weight: 300;
}

.sponsor-body strong { font-weight: 600; }

.sponsor-cta { margin-top: 2.5rem; }

.sponsor-quote {
  margin: clamp(3.5rem, 8vh, 5.5rem) 0 0;
  padding-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--hairline);
}

.sponsor-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--redrock);
}

.sponsor-quote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Closer — dark sky
   -------------------------------------------------------------------------- */

.closer {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--cream);
  padding-block: clamp(8rem, 22vh, 14rem);
  background-color: var(--dusk-deep); /* fallback while the image loads */
  background-image: url("../assets/img/hero/cathedral-rock-sunset-1024.webp");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

@media (min-width: 1024px) {
  .closer {
    background-image: url("../assets/img/hero/cathedral-rock-sunset-1920.webp");
    background-attachment: fixed;
  }
}

.closer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(36, 23, 18, 0.58);
}

.closer .wrap { position: relative; max-width: 52rem; }

.closer-statement {
  max-width: 40rem;
  margin: 3rem auto;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.55;
  color: rgba(248, 242, 233, 0.88);
}

.closer-welcome {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  letter-spacing: var(--track-heads);
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 3rem;
}

.closer .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--dusk-deep);
  color: rgba(248, 242, 233, 0.65);
  padding-block: clamp(4rem, 10vh, 7rem) 3rem;
  border-top: 1px solid var(--hairline-light);
}

.to-top-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.to-top {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 50%;
  border: 1px solid var(--rosesand);
  color: var(--rosesand);
  display: grid;
  place-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.8;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.to-top:hover {
  background: var(--rosesand);
  color: var(--dusk-deep);
}

.footer-brand {
  width: clamp(9rem, 14vw, 11rem);
  aspect-ratio: 2233 / 1068;
  margin: 0 auto clamp(2rem, 5vh, 3rem);
  background-color: var(--cream);
  -webkit-mask: url("../assets/img/brand/wordmark-stack-modifier.webp") center / contain no-repeat;
  mask: url("../assets/img/brand/wordmark-stack-modifier.webp") center / contain no-repeat;
}

.footer-thanks {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: var(--track-heads);
  text-transform: uppercase;
  color: var(--cream);
  text-align: center;
}

.footer-contacts {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  text-align: center;
}

.footer-contacts-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rosesand);
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.footer-contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 4.5rem);
}

.footer-contact {
  font-size: 0.85rem;
  line-height: 1.9;
}

.footer-contact p:not(.footer-contact-name) { margin: 0; }

.footer-contact-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.footer-contact a,
.footer-contacts-firm a {
  color: rgba(248, 242, 233, 0.65);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

.footer-contact a:hover,
.footer-contacts-firm a:hover { color: var(--rosesand); }

.footer-contacts-firm {
  margin-top: clamp(1.25rem, 3vh, 1.75rem);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.footer-legend {
  max-width: 56rem;
  margin: clamp(2.5rem, 6vh, 4rem) auto 0;
  font-size: 0.74rem;
  line-height: 1.8;
  color: rgba(248, 242, 233, 0.58);
}

.footer-legend p { margin-bottom: 0.9em; }

.footer-meta {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.footer-meta nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.footer-sep { color: rgba(248, 242, 233, 0.4); font-size: 1.1rem; line-height: 1; }
.footer-meta a { color: rgba(248, 242, 233, 0.65); text-decoration: none; }
.footer-meta a:hover { color: var(--rosesand); }

/* --------------------------------------------------------------------------
   Reveal-on-scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* without JS, never hide content */
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Background video is motion; reduced-motion users get the hero still. */
  .hero-media video { display: none; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .interstitial,
  .closer { background-attachment: scroll !important; }
}

/* --------------------------------------------------------------------------
   Nav active state (subpages)
   -------------------------------------------------------------------------- */

.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--rosesand);
  border-bottom: 1px solid var(--rosesand);
  padding-bottom: 0.2rem;
}

.site-header.scrolled .site-nav a[aria-current="page"]:not(.btn) { color: var(--redrock); border-color: var(--redrock); }

@media (max-width: 767px) {
  .site-nav a[aria-current="page"]:not(.btn) { color: var(--rosesand) !important; }
}

/* --------------------------------------------------------------------------
   Page hero — compact dark band for subpages
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--dusk-deep);
  color: var(--cream);
  padding: clamp(9rem, 22vh, 13rem) 0 clamp(3.5rem, 8vh, 5.5rem);
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../assets/img/hero/red-rock-texture-1024.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(36, 23, 18, 0.25), rgba(36, 23, 18, 0.72));
}

.page-hero h1 { color: var(--cream); }

.page-hero .lede {
  max-width: 40rem;
  margin: 1.75rem auto 0;
  color: rgba(248, 242, 233, 0.85);
}

/* --------------------------------------------------------------------------
   Insights — stat tiles, bars, tables, timeline
   -------------------------------------------------------------------------- */

.insight-block { border-top: 1px solid var(--hairline); }
.insight-block:first-of-type { border-top: 0; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.tile { border-top: 2px solid var(--rosesand); padding-top: 1.2rem; }

.tile-value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1;
  color: var(--redrock);
  font-variant-numeric: lining-nums;
}

.tile-label {
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.section--dark .tile-value,
.section--deep .tile-value { color: var(--sand); }
.section--dark .tile-label,
.section--deep .tile-label { color: rgba(248, 242, 233, 0.7); }

/* CSS bar chart — single measure, subject emphasized */
.bar-chart {
  max-width: 44rem;
  margin-top: 2.5rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 0.55rem;
}

.bar-row-label {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: right;
}

.bar-track { display: flex; align-items: center; gap: 0.75rem; }

.bar-fill {
  height: 14px;
  border-radius: 0 4px 4px 0;
  background: var(--rosesand);
  min-width: 2px;
}

.bar-row--subject .bar-fill { background: var(--redrock); }
.bar-row--subject .bar-row-label { color: var(--redrock); font-weight: 600; }

.bar-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

.bar-row--subject .bar-value { color: var(--redrock); }

.chart-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.chart-note {
  margin-top: 0.75rem;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .bar-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .data-table th.num { white-space: normal; } /* let long numeric headers wrap so 3-column tables fit a phone */
  .bar-row-label { text-align: left; }
}

/* data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table caption {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.9rem;
}

.data-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--ink);
}

.data-table td {
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.data-table td:last-child, .data-table th:last-child { padding-right: 0; }

.data-table .num {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

/* tighten tables on narrow screens so they fit without horizontal scroll */
@media (max-width: 480px) {
  .data-table { font-size: 0.88rem; }
  .data-table th {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    padding-right: 0.6rem;
  }
  .data-table td { padding-right: 0.6rem; }
  .data-table .num { font-size: 0.98rem; }
}

/* timeline */
.timeline {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.timeline li {
  position: relative;
  border-top: 2px dotted rgba(171, 80, 37, 0.45);
  padding-top: 1.4rem;
}

.section--dark .timeline li,
.section--deep .timeline li { border-top-color: rgba(213, 160, 137, 0.7); }

.timeline li::before {
  content: "";
  position: absolute;
  top: -5.5px;
  left: 0;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--redrock);
}

.section--dark .timeline li::before,
.section--deep .timeline li::before { background: var(--rosesand); }

.timeline-phase {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--redrock);
}

.section--dark .timeline-phase,
.section--deep .timeline-phase { color: var(--rosesand); }

.timeline-date {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--ink);
}

.section--dark .timeline-date,
.section--deep .timeline-date { color: var(--cream); }

@media (max-width: 639px) {
  .timeline { grid-template-columns: 1fr; }
}

/* CTA band */
.cta-band {
  text-align: center;
  background: var(--dusk);
  color: var(--cream);
}

.cta-band .btn-row { justify-content: center; margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   Insight articles
   -------------------------------------------------------------------------- */

.article-body {
  max-width: 44rem;
  margin-inline: auto;
}

.article-back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.article-back:hover { color: var(--redrock); }

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: var(--track-heads);
  text-transform: uppercase;
  margin: clamp(2.5rem, 6vh, 3.5rem) 0 1.1rem;
  color: var(--redrock);
}

.article-body p { margin-bottom: 1.35em; }

.article-body ul {
  list-style: none;
  margin: 0 0 1.35em;
  padding: 0;
}

.article-body ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7em;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--redrock);
}

.article-body .bar-chart,
.article-body .data-table { margin-block: 2.5rem; }

.article-sources {
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-soft);
}

.article-cta {
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Simple pages (thanks, 404)
   -------------------------------------------------------------------------- */

.simple-page {
  position: relative;
  isolation: isolate;
  min-height: 88svh;
  display: flex;
  align-items: center;
  text-align: center;
  background: var(--dusk-deep);
  color: var(--cream);
  padding-block: clamp(9rem, 20vh, 12rem) var(--space-section);
}

.simple-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../assets/img/hero/red-rock-texture-1024.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.simple-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(36, 23, 18, 0.35), rgba(36, 23, 18, 0.8));
}

.simple-page .wrap { max-width: 46rem; }

.simple-page h1 { color: var(--cream); }

.simple-page .lede { margin-top: 2rem; color: rgba(248, 242, 233, 0.85); }

.simple-page .btn-row { justify-content: center; margin-top: 3rem; }
