/* ============================================================
   ELMIRA EVER AFTER — design system
   "The painting is a real place."
   Built from DESIGN-BRIEF.md v1.0 — tokens, surfaces, shell,
   components, motion. No frameworks.
   ============================================================ */

/* ---------- 1. Fonts (self-hosted, variable, latin) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the Fraunces swap is CLS-free */
@font-face {
  font-family: "Fraunces-fallback";
  src: local("Georgia");
  size-adjust: 105%;
  ascent-override: 92%;
  descent-override: 24%;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* palette (from the painting — see DESIGN-BRIEF §3; AA table verified) */
  --petrol:      #0d6993;
  --petrol-deep: #194b6b;
  --turq:        #64c2d2;
  --turq-light:  #79cbd7;
  --mist:        #cee2e1;
  --mist-dim:    #bfc4c4;
  --ink:         #151a21;
  --ink-soft:    #303a3f;
  --blush:       #e8c4b8;
  --paper:       #fffdfa;
  --night:       #0d1620;

  /* fluid type scale — 360px → 1440px poles. ONLY these steps. */
  --step--1: clamp(0.83rem, 0.80rem + 0.14vw, 0.94rem);
  --step-0:  clamp(1.0625rem, 1.02rem + 0.20vw, 1.1875rem);
  --step-1:  clamp(1.27rem, 1.19rem + 0.37vw, 1.55rem);
  --step-2:  clamp(1.60rem, 1.42rem + 0.78vw, 2.15rem);
  --step-3:  clamp(2.00rem, 1.68rem + 1.44vw, 3.00rem);
  --step-4:  clamp(2.50rem, 1.93rem + 2.55vw, 4.20rem);
  --step-5:  clamp(3.00rem, 1.90rem + 5.50vw, 6.50rem);

  /* fluid space scale */
  --space-2xs: clamp(0.50rem, 0.48rem + 0.10vw, 0.69rem);
  --space-xs:  clamp(0.75rem, 0.71rem + 0.17vw, 1.00rem);
  --space-s:   clamp(1.00rem, 0.95rem + 0.24vw, 1.19rem);
  --space-m:   clamp(1.50rem, 1.39rem + 0.49vw, 2.00rem);
  --space-l:   clamp(2.00rem, 1.78rem + 0.98vw, 3.00rem);
  --space-xl:  clamp(3.00rem, 2.67rem + 1.47vw, 4.50rem);
  --space-2xl: clamp(4.00rem, 3.56rem + 1.96vw, 6.00rem);
  --space-3xl: clamp(6.00rem, 5.33rem + 2.94vw, 9.00rem);
  --section-pad: clamp(5rem, 4rem + 6vw, 9rem);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-s: 250ms;
  --dur-m: 450ms;
  --dur-l: 700ms;

  /* type families */
  --font-display: "Fraunces", "Fraunces-fallback", Georgia, serif;
  --font-prose: "Source Serif 4", Georgia, serif;
  --font-ui: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  /* default surface = light */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --link: var(--petrol);
  --accent-em: var(--petrol-deep);
  --rule: color-mix(in srgb, var(--ink) 14%, transparent);

  color-scheme: light;
}

/* ---------- 3. Reset-lite & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-prose);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 380;
  font-variation-settings: "SOFT" 60;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
.h2-quiet { font-size: var(--step-3); }
h1 em, h2 em, h3 em, .pull-quote em {
  font-style: italic;
  font-weight: 420;
  color: var(--accent-em);
}
p { text-wrap: pretty; }
p, ul, ol, blockquote { max-width: 62ch; }
strong { font-weight: 600; }

/* paper grain — procedural, sitewide, barely-there */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay; /* visible on both light and dark surfaces */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--turq); color: var(--ink); }

/* links */
a { color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* two-layer focus ring — visible on every surface */
:focus-visible {
  outline: 2px solid var(--turq);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-s);
  top: var(--space-s);
  z-index: 1000;
  background: var(--petrol-deep);
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  padding: 0.75em 1.25em;
  transform: translateY(-300%);
  transition: transform var(--dur-s);
  text-decoration: none;
}
.skip-link:focus-visible { transform: none; }

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

/* ---------- 4. Surfaces ---------- */
.surface-light { --bg: var(--paper); --fg: var(--ink); --fg-soft: var(--ink-soft); --link: var(--petrol); --accent-em: var(--petrol-deep); --rule: color-mix(in srgb, var(--ink) 14%, transparent); background: var(--bg); color: var(--fg); }
.surface-mist  { --bg: var(--mist);  --fg: var(--ink); --fg-soft: var(--ink-soft); --link: var(--petrol-deep); --accent-em: var(--petrol-deep); --rule: color-mix(in srgb, var(--ink) 18%, transparent); background: var(--bg); color: var(--fg); }
.surface-dusk  { --bg: var(--petrol-deep); --fg: var(--mist); --fg-soft: color-mix(in srgb, var(--mist) 82%, var(--petrol-deep)); --link: var(--turq-light); --accent-em: var(--blush); --rule: color-mix(in srgb, var(--mist) 22%, transparent); background: var(--bg); color: var(--fg); }
.surface-night { --bg: var(--night); --fg: var(--mist); --fg-soft: color-mix(in srgb, var(--mist) 78%, var(--night)); --link: var(--turq-light); --accent-em: var(--blush); --rule: color-mix(in srgb, var(--mist) 18%, transparent); background: var(--bg); color: var(--fg); }
.surface-dusk :focus-visible, .surface-night :focus-visible { box-shadow: 0 0 0 5px var(--paper); }

/* ---------- 5. Layout shell ---------- */
.shell {
  --content-max: 68ch;
  --wide-max: 1140px;
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--space-m), 1fr)
    [wide-start] minmax(0, calc((min(var(--wide-max), 100vw) - var(--content-max)) / 2))
    [content-start] min(var(--content-max), calc(100% - 2 * var(--space-m)))
    [content-end] minmax(0, calc((min(var(--wide-max), 100vw) - var(--content-max)) / 2))
    [wide-end] minmax(var(--space-m), 1fr)
    [full-end];
}
.shell > * { grid-column: content; }
.shell > .u-wide { grid-column: wide; }
.shell > .u-full { grid-column: full; }

section { padding-block: var(--section-pad); }
.section-tight { padding-block: var(--space-2xl); }
.hero, .page-hero { padding-block: 0; }

/* eyebrow label */
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-soft);
  margin-bottom: var(--space-s);
}

.lede { font-size: var(--step-1); line-height: 1.55; }

/* painted marks -------------------------------------------------- */
/* pine divider (replaces hr) */
.pine-rule {
  border: 0;
  display: flex;
  justify-content: center;
  margin-block: var(--space-xl);
  color: var(--fg-soft);
}
.pine-rule::before {
  content: "";
  width: 22px;
  height: 26px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1 15.2 8.4 13.6 8.2 17.4 15.1 15.3 15 19.2 22.6 13.1 22.8 13.2 26.8 10.9 26.9 11 22.9 4.9 22.7 8.8 15.2 6.8 15.1 10.4 8.3 8.9 8.5 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1 15.2 8.4 13.6 8.2 17.4 15.1 15.3 15 19.2 22.6 13.1 22.8 13.2 26.8 10.9 26.9 11 22.9 4.9 22.7 8.8 15.2 6.8 15.1 10.4 8.3 8.9 8.5 Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* checked inclusion list */
.list-pine { list-style: none; padding: 0; display: grid; gap: var(--space-xs); }
.list-pine li { display: grid; grid-template-columns: 1.1em 1fr; gap: 0.6em; align-items: baseline; }
.list-pine li::before {
  content: "";
  width: 0.85em; height: 1em;
  align-self: start;
  margin-top: 0.28em;
  background-color: var(--accent-em);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1 15.2 8.4 13.6 8.2 17.4 15.1 15.3 15 19.2 22.6 13.1 22.8 13.2 26.8 10.9 26.9 11 22.9 4.9 22.7 8.8 15.2 6.8 15.1 10.4 8.3 8.9 8.5 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1 15.2 8.4 13.6 8.2 17.4 15.1 15.3 15 19.2 22.6 13.1 22.8 13.2 26.8 10.9 26.9 11 22.9 4.9 22.7 8.8 15.2 6.8 15.1 10.4 8.3 8.9 8.5 Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* treeline seam — the painting's actual brush edge between sections */
.seam {
  height: clamp(36px, 6vw, 84px);
  background: var(--seam-color, var(--paper));
  margin-top: calc(-1 * clamp(36px, 6vw, 84px) + 1px);
  position: relative;
  z-index: 2;
}
@supports (mask-image: url("")) or (-webkit-mask-image: url("")) {
  .seam {
    -webkit-mask: url("../../img/edge-treeline.svg") center / 100% 100% no-repeat;
    mask: url("../../img/edge-treeline.svg") center / 100% 100% no-repeat;
  }
  .seam--flip {
    -webkit-mask-image: url("../../img/edge-treeline-flip.svg");
    mask-image: url("../../img/edge-treeline-flip.svg");
  }
}
@supports not ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .seam { display: none; }
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  min-height: 44px;
  padding: 0.9em 1.8em;
  border: 0;
  cursor: pointer;
}
.btn--fill { background: var(--petrol-deep); color: #fff; }
.surface-dusk .btn--fill, .surface-night .btn--fill { background: var(--paper); color: var(--ink); }
.btn--fill .btn__arrow { transition: translate var(--dur-s) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--fill:hover .btn__arrow { translate: 4px 0; }
}
.btn--line {
  background: none;
  padding: 0.9em 0.2em;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 50%, transparent);
}
.btn--line:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }

/* ---------- 7. Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  /* own gradient tint so header text never depends on image content for contrast */
  background: linear-gradient(180deg, rgba(13, 22, 32, 0.62), rgba(13, 22, 32, 0));
  transition: background-color var(--dur-s), border-color var(--dur-s), backdrop-filter var(--dur-s);
  border-bottom: 1px solid transparent;
}
.site-header :focus-visible { box-shadow: 0 0 0 5px var(--paper); }
.site-header.scrolled {
  background: color-mix(in srgb, var(--night) 72%, transparent);
  border-bottom-color: color-mix(in srgb, var(--mist) 18%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-header.scrolled { background: rgba(13, 22, 32, 0.94); }
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-s) var(--space-m);
  max-width: 1400px;
  margin-inline: auto;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 430;
  font-size: var(--step-1);
  view-transition-name: wordmark;
  letter-spacing: 0.01em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav__link {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.5em 0.1em;
  background: linear-gradient(currentColor, currentColor) left 100% / 0% 1px no-repeat;
  transition: background-size var(--dur-s) var(--ease-out);
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  .site-nav__link:hover { background-size: 100% 1px; }
}
.site-nav__link:focus-visible { background-size: 100% 1px; }
/* brush tick under current page */
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.25em;
  height: 6px;
  background-color: var(--turq-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.5 C8 2.5 16 2 31 3.5 C16 4.5 9 5.5 2 6.8 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.5 C8 2.5 16 2 31 3.5 C16 4.5 9 5.5 2 6.8 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.site-nav__cta { color: var(--turq-light); }
/* mid widths: drop the header CTA (it duplicates Plan a Visit) before anything clips */
@media (min-width: 48rem) and (max-width: 66rem) {
  .site-nav__cta { display: none; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid color-mix(in srgb, var(--mist) 45%, transparent);
  color: var(--mist);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.6em 1.1em;
  min-height: 44px;
  cursor: pointer;
}

@media (max-width: 47.99rem) {
  .nav-toggle { display: inline-flex; align-items: center; }
  /* keep the bar controls clickable above the full-screen overlay */
  .nav-toggle, .wordmark { position: relative; z-index: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    display: none;
    background: linear-gradient(color-mix(in srgb, var(--night) 88%, transparent), var(--night)) var(--night);
    padding: min(20vh, 9rem) var(--space-l) var(--space-l);
  }
  .site-nav.open { display: block; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: var(--space-m); }
  .site-nav__link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--paper);
  }
  .site-nav__link[aria-current="page"]::after { bottom: 0; }
  .site-nav__cta {
    margin-top: var(--space-m);
    background: var(--paper);
    color: var(--ink);
    padding: 0.6em 1.2em;
    font-family: var(--font-ui);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}

/* ---------- 8. Heroes ---------- */
/* Home signature hero: painting -> real place */
.hero {
  position: relative;
  height: 100svh;
  background: var(--night);
}
.js-hero .hero { height: 200svh; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.hero__photo, .hero__painting {
  position: absolute;
  inset: 0;
}
.hero__photo picture, .hero__painting picture { height: 100%; }
.hero__photo img, .hero__painting img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__painting img { object-position: center 40%; }
.hero__photo { display: none; }
.js-hero .hero__photo { display: block; }
.hero__painting { will-change: opacity; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 22, 32, 0.55) 0%, transparent 22%, transparent 52%, rgba(13, 22, 32, 0.72) 100%);
}
.hero__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-l) var(--space-m) var(--space-xl);
  max-width: 1400px;
  margin-inline: auto;
  color: var(--paper);
}
.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-s);
  color: var(--mist);
}
.hero__title { color: var(--paper); max-width: 14ch; }
.hero__title em { color: var(--blush); }
.hero__sub { font-size: var(--step-1); margin-block: var(--space-s) var(--space-m); max-width: 44ch; color: var(--mist); }
/* h1 + sub materialize as the painting dissolves (JS drives opacity) */
.js-hero .hero__reveal { opacity: 0; }
/* reduced-motion + JS: plain cut to the real place */
.js-static .hero__photo { display: block; }
.js-static .hero__painting { display: none; }
/* no-JS fallback: the photo appears as a plain cut right after the hero */
.hero-fallback { margin: 0; }
.js-hero .hero-fallback, .js-static .hero-fallback { display: none; }

/* phones: photo-first hero, title immediate — the painted crossfade is a
   wide-screen moment (portrait cover-crops the painting mid-letter) */
@media (max-width: 47.99rem) {
  .hero, .js-hero .hero { height: 100svh; }
  .hero__painting { display: none; }
  .hero__photo { display: block; }
  .js-hero .hero__reveal { opacity: 1 !important; }
  .hero__hint { display: none !important; }
  .hero-fallback { display: none; }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-m); align-items: center; }
.hero__content .btn--line { color: var(--paper); }
.hero__hint {
  position: absolute;
  left: 50%;
  bottom: var(--space-s);
  translate: -50% 0;
  color: var(--mist);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: none;
}
.js-hero .hero__hint { display: block; }

/* interior page hero (photo, static) */
.page-hero {
  position: relative;
  min-height: clamp(24rem, 72svh, 46rem);
  display: grid;
  align-items: end;
  background: var(--night);
}
.page-hero--short { min-height: clamp(18rem, 52svh, 30rem); }
.page-hero__media { position: absolute; inset: 0; overflow: hidden; }
.page-hero__media picture { height: 100%; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 22, 32, 0.55) 0%, transparent 24%, transparent 50%, rgba(13, 22, 32, 0.74) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: var(--space-3xl) var(--space-m) var(--space-xl);
  color: var(--paper);
}
.page-hero h1 { font-size: var(--step-5); max-width: 14ch; }
.page-hero h1 em, .hero h1 em { color: var(--blush); }
.page-hero__sub { font-size: var(--step-1); margin-top: var(--space-s); max-width: 44ch; color: var(--mist); }

/* ---------- 9. Components ---------- */
/* fact strip */
.fact-strip {
  list-style: none;
  margin: 0; padding: 0;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.fact-strip li {
  flex: 1 1 auto;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  padding: var(--space-s) var(--space-m);
  border-left: 1px solid var(--rule);
}
.fact-strip li:first-child { border-left: 0; }
@media (max-width: 47.99rem) {
  .fact-strip { flex-direction: column; }
  .fact-strip li { border-left: 0; border-top: 1px solid var(--rule); text-align: left; }
  .fact-strip li:first-child { border-top: 0; }
}

/* editorial split (image + offset text) */
.split {
  display: grid;
  gap: var(--space-l);
  align-items: start;
}
@media (min-width: 48rem) {
  .split { grid-template-columns: repeat(12, 1fr); }
  .split__media { grid-column: 1 / 8; }
  .split__body { grid-column: 9 / 13; padding-top: clamp(2rem, 14vh, 9rem); }
  .split--rev .split__media { grid-column: 6 / 13; order: 2; }
  .split--rev .split__body { grid-column: 1 / 5; order: 1; }
}
.split__media img { width: 100%; }

figure.frame { margin: 0; }
figure.frame figcaption {
  font-size: var(--step--1);
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
  color: var(--fg-soft);
  padding-top: var(--space-2xs);
}

/* clipped media hover */
.media-clip { overflow: hidden; }
.media-clip img { transition: scale var(--dur-m) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a:hover .media-clip img, .media-clip a:hover img { scale: 1.04; }
}

/* pull quote */
.pull-quote {
  margin: 0;
  padding-left: var(--space-m);
  border-left: 3px solid var(--turq);
}
.surface-dusk .pull-quote, .surface-night .pull-quote { border-left-color: var(--turq-light); }
.pull-quote blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.pull-quote figcaption {
  margin-top: var(--space-s);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-soft);
}

/* gallery */
.gallery {
  list-style: none;
  margin: 0; padding: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-s);
}
.gallery li { margin: 0; }
.gallery .wide2 { grid-column: span 2; }
@media (max-width: 41rem) { .gallery .wide2 { grid-column: span 1; } }
.gallery figure { margin: 0; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 1400px);
  max-height: 92svh;
}
.lightbox::backdrop { background: rgba(13, 22, 32, 0.93); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 80svh; width: auto; max-width: 100%; margin-inline: auto; }
.lightbox figcaption { color: var(--mist); font-family: var(--font-ui); font-size: var(--step--1); letter-spacing: 0.06em; padding-top: var(--space-xs); text-align: center; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  background: none; border: 0;
  color: var(--mist);
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9em 1.1em;
  min-height: 44px;
  cursor: pointer;
}
.lightbox__close { position: absolute; top: 0; right: 0; }
.lightbox__nav { display: flex; justify-content: center; gap: var(--space-m); padding-top: var(--space-2xs); }

/* sticky-split property tour */
.tour { display: grid; gap: var(--space-l); }
@media (min-width: 48rem) {
  .tour { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl); }
  .tour__media { position: sticky; top: clamp(4rem, 12vh, 7rem); align-self: start; }
}
.tour__media { margin: 0; }
.tour__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tour__stop { padding-block: clamp(2rem, 10vh, 6rem); border-top: 1px solid var(--rule); }
.tour__stop:first-of-type { border-top: 0; padding-top: 0; }
.tour__stop h3 { font-size: var(--step-2); margin-bottom: var(--space-s); }
@media (max-width: 47.99rem) {
  .tour__media--rep { display: none; }
  .tour__stop img { width: 100%; margin-block: var(--space-s); }
}
@media (min-width: 48rem) {
  /* desktop: the pinned crossfade stack carries the imagery */
  .tour__stop figure { display: none; }
}

/* pricing cards */
.price-cards { display: grid; gap: var(--space-m); }
@media (min-width: 48rem) { .price-cards { grid-template-columns: 1fr 1fr; } }
.price-card {
  border: 1px solid var(--rule);
  padding: var(--space-l);
  display: grid;
  gap: var(--space-s);
  align-content: start;
}
.price-card h3 { font-size: var(--step-2); }
.price-card .price {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 380;
  line-height: 1;
  color: var(--accent-em);
}
.surface-dusk .price-card .price { color: var(--blush); }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.3;
  padding: var(--space-s) 2.5rem var(--space-s) 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.7em; height: 0.7em;
  border-right: 2px solid var(--fg-soft);
  border-bottom: 2px solid var(--fg-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-s) var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .faq__body { padding-bottom: var(--space-m); }

/* form */
.form { display: grid; gap: var(--space-m); max-width: 40rem; }
.form label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.5em;
}
.form .hint { font-size: var(--step--1); color: var(--fg-soft); margin-top: 0.4em; font-family: var(--font-ui); letter-spacing: 0.02em; }
.form input, .form textarea {
  width: 100%;
  background: color-mix(in srgb, var(--paper) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--mist) 40%, transparent);
  color: var(--fg);
  padding: 0.8em 1em;
  min-height: 48px;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:user-invalid, .form textarea:user-invalid { border-color: var(--blush); border-width: 2px; }
.form .error { color: var(--blush); font-family: var(--font-ui); font-size: var(--step--1); margin-top: 0.4em; }
.form .reply-promise { font-family: var(--font-ui); font-size: var(--step--1); letter-spacing: 0.04em; color: var(--fg-soft); }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* closing CTA */
.closing-cta { text-align: center; }
.closing-cta h2 { font-size: var(--step-4); margin-bottom: var(--space-m); }
.closing-cta .hero__actions { justify-content: center; }

/* footer */
.site-footer { font-size: var(--step--1); }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-l);
  padding-block: var(--space-2xl) var(--space-l);
}
.site-footer h2 {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-s);
  color: var(--fg-soft);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5em; }
.site-footer__art img { max-width: 190px; border: 4px solid color-mix(in srgb, var(--mist) 25%, transparent); }
.site-footer__art p { margin-top: var(--space-s); max-width: 26ch; }
.place-line {
  border-top: 1px solid var(--rule);
  padding-block: var(--space-m);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--fg-soft);
}

/* lodging cards */
.card-row { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.card-row .card { border: 1px solid var(--rule); padding: var(--space-m); }
.card-row .card h3 { font-size: var(--step-1); margin-bottom: var(--space-2xs); }
.card-row .card p { font-size: var(--step--1); color: var(--fg-soft); }

/* sticky-tour crossfading figures (sticky itself is a positioned ancestor) */
.tour__media--stack .tour__fig {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity var(--dur-l) var(--ease-out);
}
.tour__media--stack .tour__fig.active { opacity: 1; }
.tour__media--stack .tour__fig:first-child { position: relative; }

/* ---------- 10. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    translate: 0 18px;
    transition: opacity var(--dur-l) var(--ease-out), translate var(--dur-l) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  html.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
}
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* inner-parallax drift on selected full-bleed figures (progressive) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .drift { overflow: hidden; }
    .drift img {
      animation: drift linear both;
      animation-timeline: view();
      scale: 1.12;
    }
    @keyframes drift {
      from { translate: 0 4%; }
      to { translate: 0 -4%; }
    }
  }
}

/* ---------- 11. Print ---------- */
@media print {
  .site-header, .seam, .hero__hint, .closing-cta, body::before { display: none; }
  .hero { height: auto; }
  .hero__sticky { position: static; height: auto; }
  .hero__photo, .hero__scrim { display: none; }
  body, .surface-mist, .surface-dusk, .surface-night, .surface-light {
    background: #fff !important;
    color: #000 !important;
  }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
