/* Turtle House — 2026-11-20 redesign · v17 OwnerRez form shell + widget CSS 2026-11-21
   Archetype: Elevated Desert Lodge
   Palette: warm charcoal surfaces · muted clay accent · near-white paper
   Typography: Fraunces variable (display — hero h1, stats, footer) · Figtree (body/UI)
   Three intentional motions: hero entrance, section reveal, gallery hover lift */

/* ===== TOKENS ===== */
:root {
  --ink: #1c1a18;
  --muted: #6e6560;
  --paper: #fafafa;
  --tint: #f4efe8;
  --sand: #ede6d9;
  --accent: #e07a2f;
  --accent-dark: #c45f1a;
  --accent-light: #f0a35c;
  --deep: #1e1b18;
  --deep-mid: #2d2823;
  --content-max: 1080px;
  --space: 1.25rem;
  --header-h: 60px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-ui: 'Figtree', system-ui, -apple-system, sans-serif;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ===== RESET + BASE ===== */
*, *::before, *::after { box-sizing: border-box }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block }
a { color: var(--accent-dark) }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { left: 0; top: 0 }

.wrap { width: min(100% - 2rem, var(--content-max)); margin-inline: auto }
section { scroll-margin-top: calc(var(--header-h) + var(--space)) }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--deep);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s ease, border-color .3s ease;
}

/* Desktop: starts transparent over hero, turns solid on scroll */
@media (min-width: 760px) {
  .site-header {
    background: transparent;
    border-bottom-color: transparent;
  }
  .site-header.is-scrolled {
    background: var(--deep);
    border-bottom-color: rgba(255,255,255,.08);
  }
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: #fff;
}
.brand-mark { width: 36px; height: auto }
.brand-name {
  font-family: var(--font-ui);
  font-weight: 600; letter-spacing: .04em;
  display: flex; flex-direction: column; line-height: 1.1; color: #fff;
}
.brand-sub {
  font-size: .58rem; font-weight: 600;
  letter-spacing: .15em; color: rgba(255,255,255,.65);  /* reduced: Figtree tracks wider than DM Sans */
}

.primary-nav { display: none; gap: 1.5rem; align-items: center }
.primary-nav a {
  text-decoration: none; font-weight: 500; font-size: .88rem;
  letter-spacing: .02em; color: rgba(255,255,255,.85);
  transition: color .15s ease;
}
.primary-nav a:hover { color: #fff }
.primary-nav .nav-cta {
  color: #fff; font-weight: 600;
  border: 1px solid rgba(255,255,255,.35);
  padding: .45rem 1.1rem; border-radius: var(--r-sm);
}
.primary-nav .nav-cta:hover { border-color: rgba(255,255,255,.75) }
@media (min-width: 760px) { .primary-nav { display: flex } }

/* Hamburger */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px;
  background: none; border: 0; cursor: pointer; margin-left: auto;
}
.nav-toggle-bar {
  display: block; width: 22px; height: 1.5px;
  background: #fff; border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) 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(-6.5px) rotate(-45deg) }
@media (min-width: 760px) { .nav-toggle { display: none } }

/* Mobile nav drawer */
@media (max-width: 759px) {
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 59;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep-mid); border-bottom: 1px solid rgba(255,255,255,.08);
    padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .18s ease, opacity .18s ease, visibility .18s;
  }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto }
  .primary-nav a {
    padding: 1rem .5rem; font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    min-height: 48px; display: flex; align-items: center;
    color: rgba(255,255,255,.85);
  }
  .primary-nav a:last-of-type { border-bottom: 0 }
  .primary-nav .nav-cta {
    margin-top: .75rem; background: var(--accent); color: #fff;
    justify-content: center; border-radius: var(--r-md);
    border: 0; padding: 1rem;
  }
  .primary-nav .nav-cta:hover { background: var(--accent-dark) }
}

.nav-scrim {
  position: fixed; inset: 0; top: var(--header-h); z-index: 58;
  background: rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s;
}
.nav-scrim.is-visible { opacity: 1; visibility: visible }

/* ===== HERO ===== */
.hero {
  position: relative;
  isolation: isolate; /* keep overlay blend inside the hero stack */
  min-height: 100dvh; min-height: 100vh; /* dvh for mobile chrome bars */
  display: flex; align-items: flex-end;
  color: #fff; background: var(--deep); overflow: hidden;
}

/* Pull hero up behind transparent header on desktop */
@media (min-width: 760px) {
  .hero { margin-top: calc(-1 * var(--header-h)) }
}

.hero-media {
  position: absolute; inset: -4% -6%;
  will-change: transform;
}
.hero-media .hero-img {
  width: 100%; height: 100%; object-fit: cover; opacity: .93;
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: linear-gradient(
    to bottom,
    rgba(180, 72, 18, 0) 12%,
    rgba(196, 84, 22, .35) 42%,
    rgba(168, 62, 14, .62) 72%,
    rgba(110, 38, 8, .88) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  isolation: isolate; /* keep title/CTA crisp above the blend */
  padding: 0 0 3.5rem;
}
@media (min-width: 760px) {
  .hero-content {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 5.5rem;
  }
}

/* Motion 1 — hero entrance (staggered children) */
@keyframes hero-entrance {
  from { opacity: 0; transform: translateY(18px) }
  to   { opacity: 1; transform: none }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: hero-entrance .75s var(--ease-out) both;
  }
  .hero-content > *:nth-child(1) { animation-delay: .05s }
  .hero-content > *:nth-child(2) { animation-delay: .18s }
  .hero-content > *:nth-child(3) { animation-delay: .3s }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 11vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.025em;        /* Fraunces tracks naturally tight at display scale */
  font-optical-sizing: auto;      /* engage the opsz axis for large-size refinement */
  margin: 0 0 .85rem;
}
.hero-tag {
  font-family: var(--font-ui);
  font-size: clamp(.8rem, 2vw, .9rem);
  font-weight: 500;
  letter-spacing: .11em;          /* Figtree's round terminals need less tracking than DM Sans */
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin: 0 0 2.25rem;
}

/* Facts-strip moved to The House — hide if still in DOM */
.facts-strip { display: none }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .95rem 2.25rem;
  border-radius: var(--r-md);
  font-family: var(--font-ui); font-weight: 600;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; min-height: 52px;
  border: 0; cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--accent); color: #fff }
.btn-primary:hover { background: var(--accent-dark) }
.btn-primary:active { transform: scale(.98) }

/* ===== SECTIONS ===== */
.section { padding: 4rem 0 }
.section h2 {
  font-family: var(--font-ui); font-weight: 700;  /* Figtree 700 gives stronger hierarchy than 600 */
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -.015em; line-height: 1.1;
  margin: 0 0 1.25rem;
}
.lede {
  font-size: 1.08rem; color: var(--muted);
  max-width: 46em; margin: 0 0 2.5rem; line-height: 1.72;
}
.section-dark { background: var(--deep); color: rgba(255,255,255,.88) }
.section-dark h2 { color: #fff }
.section-dark a { color: rgba(255,255,255,.75) }
.section-dark .lede { color: rgba(255,255,255,.6) }
.section-tint { background: var(--tint) }

/* ===== PROP STATS (moved from hero pills) ===== */
.prop-stats {
  list-style: none; padding: 0;
  margin: 0 0 3rem;
  display: flex; flex-wrap: wrap; gap: 2rem 3rem;
}
.prop-stats li {
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
}
.stat-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: 2.2rem; line-height: 1; color: var(--accent);
  font-optical-sizing: auto;      /* Fraunces opsz at ~36pt size */
}
.stat-label {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);  /* Figtree: slightly less tracking */
}

/* ===== AMENITIES ===== */
.amenities {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0; grid-template-columns: 1fr;
}
@media (min-width: 600px) { .amenities { grid-template-columns: 1fr 1fr } }
.amenities li {
  display: flex; align-items: center; gap: .65rem;
  font-size: .95rem; font-weight: 500;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.amenities li::before {
  content: ''; flex: none;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* ===== VIDEO ===== */
.video-wrap { max-width: 760px; margin: 0 auto }
.lite-video {
  position: relative; cursor: pointer;
  background: #000; border-radius: var(--r-lg);
  overflow: hidden; aspect-ratio: 16/9;
}
.video-thumb { width: 100%; height: 100%; object-fit: cover }
.lite-video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.45);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; padding-left: .15rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s ease, transform .2s var(--ease-out);
}
.lite-video:hover .play {
  background: rgba(255,255,255,.28);
  transform: translate(-50%,-50%) scale(1.1);
}
.lite-video .tour-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; background: #000;
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .4rem;
}
@media (min-width: 600px) { .gallery { gap: .65rem } }

@keyframes gallery-fade { from { opacity: 0 } to { opacity: 1 } }

.gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--r-sm); cursor: zoom-in;
  opacity: 0; animation: gallery-fade .5s ease forwards;
  /* Motion 3 — gallery hover lift */
  transition: transform .3s var(--ease-out);
}
.gallery img:hover { transform: scale(1.04) }

/* ===== FAQ ===== */
details {
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding: 1.1rem 0; margin: 0;
}
details:first-of-type { border-top: 1px solid rgba(0,0,0,.1) }
details summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; color: var(--ink); user-select: none;
}
details summary::-webkit-details-marker { display: none }
details summary::after {
  content: '+'; font-size: 1.5rem; font-weight: 300;
  color: var(--accent); flex: none; line-height: 1;
  transition: transform .2s var(--ease-out);
}
details[open] summary::after { transform: rotate(45deg) }
details p { margin: .75rem 0 .2rem; color: var(--muted); line-height: 1.65 }

/* ===== BOOK SECTION ===== */
.section-book { background: var(--sand) }
.ownerrez-widget {
  margin-top: 1.5rem;
  max-width: 560px;
  margin-inline: auto;
  padding: 1.25rem 1.15rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(30, 27, 24, .1);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 28px rgba(30, 27, 24, .06);
}
.ownerrez-widget iframe {
  display: block;
  width: 100% !important;
  border: 0 !important;
  background: transparent;
}
.widget-placeholder {
  border: 2px dashed var(--accent); border-radius: var(--r-md);
  padding: 2rem; text-align: center; color: var(--muted);
}

/* ===== SHARE ===== */
.share-row {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30,27,24,.1);
  text-align: center;
}
.share-label {
  margin: 0 0 .75rem;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.share-actions {
  display: flex; flex-wrap: wrap; gap: .65rem;
  justify-content: center;
}
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; min-height: 44px;
  padding: .65rem 1.15rem;
  border-radius: var(--r-md); border: 0;
  font-family: var(--font-ui); font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-decoration: none;
  cursor: pointer; transition: background .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.share-btn:active { transform: scale(.98) }
.share-fb {
  background: #1877f2; color: #fff;
}
.share-fb:hover { background: #166fe5; color: #fff }
.share-copy {
  background: var(--deep); color: #fff;
}
.share-copy:hover { background: var(--deep-mid); color: #fff }
.share-copy.is-copied { background: var(--accent) }
.share-actions-footer { margin-top: 1.25rem }
.share-fb-ghost {
  background: transparent;
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.28);
}
.share-fb-ghost:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.45);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--deep); color: rgba(255,255,255,.72);
  padding: 3.5rem 0 5rem;
}
.footer-inner { text-align: center }
.footer-mark {
  display: block;
  width: 72px; height: auto;
  margin: 0 auto 1rem;
  opacity: .95;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.35rem;
  margin: 0 0 .35rem; color: #fff;
  letter-spacing: .01em;          /* Fraunces at this size tracks slightly wider — trim back */
  font-optical-sizing: auto;
}
.site-footer p { margin: .3rem 0; font-size: .9rem }
.site-footer a { color: rgba(255,255,255,.72) }
.site-footer a:hover { color: #fff }
.footer-small { font-size: .78rem; color: rgba(255,255,255,.4); margin-top: 1.5rem }

.footer-policies {
  list-style: none; padding: .75rem 0 0; margin: .5rem 0 0;
  display: flex; flex-wrap: wrap; gap: .25rem .75rem; justify-content: center;
}
.modal-trigger {
  background: none; border: 0; color: rgba(255,255,255,.65);
  padding: 0; font: inherit; font-size: .88rem;
  text-decoration: underline; cursor: pointer;
}
.modal-trigger:hover { color: #fff }

/* ===== STICKY CTA (desktop fallback) ===== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: .75rem;
  background: rgba(30,27,24,.97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
}
.sticky-cta .btn { width: 100% }
@media (min-width: 760px) { .sticky-cta { display: none } }

/* ===== TAB BAR (mobile only) ===== */
.tab-bar { display: none }

/* ===== MOBILE APP SHELL ===== */
@media (max-width: 759px) {
  body {
    height: 100dvh; min-height: 0; overflow: hidden;
    -webkit-tap-highlight-color: transparent;
  }
  header.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 70;
    background: var(--deep); /* always solid on mobile */
  }
  main#appMain {
    height: calc(100dvh - var(--header-h));
    margin-top: var(--header-h);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  .tab-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: flex; align-items: stretch; justify-content: space-around;
    background: rgba(30,27,24,.97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .tab-item {
    background: none; border: 0;
    color: rgba(255,255,255,.48);
    font-family: var(--font-ui); font-size: .68rem; font-weight: 500;
    letter-spacing: .03em; cursor: pointer; flex: 1;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; transition: color .15s ease;
  }
  .tab-item svg { width: 20px; height: 20px; fill: currentColor }
  .tab-item.active, .tab-item:active { color: var(--accent-light) }
  /* Tab bar replaces sticky CTA on phones */
  .sticky-cta { display: none }
  .section { padding: 2.75rem 0 }
  /* Hero fills the scroll viewport under the fixed header (not full 100dvh) */
  .hero {
    min-height: calc(100dvh - var(--header-h));
    min-height: calc(100vh - var(--header-h));
  }
  /* Keep CTA clear of the fixed tab bar */
  .hero-content {
    padding: 0 0 calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .hero-actions .btn { flex: 1 1 100%; text-align: center }
  .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) }
}

/* ===== GALLERY LIGHTBOX (fullscreen + swipe) ===== */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  width: 100%; height: 100%;
  height: 100dvh;
  background: #000;
  touch-action: none;
  overscroll-behavior: none;
}
.gallery-lightbox.is-open { display: block }
.gallery-lightbox[hidden] { display: none !important }

.lb-viewport {
  position: absolute; inset: 0;
  overflow: hidden;
  cursor: grab;
}
.lb-viewport.is-dragging { cursor: grabbing }
.lb-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform .32s var(--ease-out);
}
.lb-track.is-dragging { transition: none }
.lb-slide {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  user-select: none; -webkit-user-select: none;
}
.lb-slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lb-nav:hover { background: rgba(255,255,255,.28) }
.lb-prev { left: max(10px, env(safe-area-inset-left, 0px)) }
.lb-next { right: max(10px, env(safe-area-inset-right, 0px)) }
.lb-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.45rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { background: rgba(255,255,255,.3) }
.lb-chrome {
  position: absolute;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  pointer-events: none;
}
.lb-logo {
  width: 36px; height: auto;
  opacity: .85;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.45));
}
.lb-count {
  color: rgba(255,255,255,.78); font-size: .82rem; font-weight: 500;
  letter-spacing: .12em;
  padding: .3rem .7rem;
  background: rgba(0,0,0,.4); border-radius: 999px;
}
@media (max-width: 759px) {
  /* Swipe is primary on phones — keep arrows as light affordances */
  .lb-nav { width: 40px; height: 40px; font-size: 1.25rem; opacity: .7 }
}

/* ===== MODALS ===== */
dialog.modal {
  border: 0; border-radius: var(--r-lg); padding: 0;
  max-width: 34rem; width: min(92vw, 34rem);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
dialog.modal::backdrop { background: rgba(0,0,0,.5) }

.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--deep-mid); color: #fff;
  padding: 1rem 1.25rem; border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.modal-head h3 {
  margin: 0; font-family: var(--font-ui); font-size: 1rem; font-weight: 600;
}
.modal-close {
  background: rgba(255,255,255,.12); border: 0; color: #fff;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.1rem; line-height: 1; cursor: pointer; flex: none;
}
.modal-close:hover { background: rgba(255,255,255,.28) }
.modal-body {
  padding: 1.5rem 1.5rem 1.75rem; max-height: 70vh; overflow: auto;
}
.modal-body p { margin: 0 0 1rem; color: var(--ink); line-height: 1.65 }
.modal-body p:last-child { margin-bottom: 0 }
.modal-body .policy-block {
  margin: 0 0 1.25rem; padding: 1rem 1.15rem;
  background: var(--tint); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink);
}
.modal-body strong { color: var(--accent-dark) }

@media (prefers-reduced-motion: no-preference) {
  dialog.modal[open] { animation: modal-in .2s var(--ease-out) }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) }
  to   { opacity: 1; transform: none }
}

/* ===== MOTION 2 — SECTION REVEAL ===== */
/* JS adds [data-reveal] + .is-visible — never static so no-JS never hides content */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none }
}

/* ===== PARALLAX (desktop pointer — existing behaviour) ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-media { transition: none }
  .hero-media, .hero-media .hero-img { transform: none !important }
}
