/* =========================================================
   Firetower RV & Tiny Home Community
   Design tokens → base → components → sections → motion
   ========================================================= */

:root {
  /* Palette */
  --pine-950: #0D1512;
  --pine-900: #12241B;
  --pine-800: #1F3B2D;
  --pine-700: #2A4D3B;
  --pine-500: #4F7A61;
  --ember-500: #E8692C;
  --ember-400: #F08A4B;
  --ember-700: #A8441A;   /* ember for text on cream (AA) */
  --gold-300: #F4B860;
  --gold-200: #FFC46B;
  --dusk-900: #1B1530;
  --dusk-800: #2A2140;
  --dusk-600: #3A2650;
  --cream-100: #FBF7EE;
  --cream-200: #F5EEDF;
  --sand-300: #E8DCC4;
  --sand-500: #C9BBA0;
  --bark-600: #5D4B3A;
  --ink-900: #1B1A17;
  --ink-700: #3D3a33;
  --ink-500: #5F5A50;

  /* Semantic */
  --bg: var(--cream-200);
  --surface: var(--cream-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --accent: var(--ember-500);
  --accent-text: var(--ember-700);
  --border: rgba(27, 26, 23, .12);
  --on-dark: var(--cream-200);
  --on-dark-muted: rgba(245, 238, 223, .78);
  --focus: var(--ember-500);

  /* Type */
  --font-display: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-hero: clamp(2.75rem, 1.6rem + 5.6vw, 6.25rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.8vw, 3.6rem);
  --fs-h3: clamp(1.4rem, 1.2rem + .8vw, 1.85rem);
  --fs-h4: 1.2rem;
  --fs-lede: clamp(1.08rem, 1rem + .35vw, 1.3rem);

  /* Space (spacious density) */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --space-9: 6rem;  --space-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);

  /* Shape & depth */
  --radius-sm: 8px; --radius: 16px; --radius-lg: 28px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(18, 36, 27, .06), 0 2px 8px rgba(18, 36, 27, .06);
  --shadow-2: 0 4px 12px rgba(18, 36, 27, .08), 0 16px 40px rgba(18, 36, 27, .10);
  --shadow-3: 0 24px 60px rgba(13, 21, 18, .28);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 160ms; --dur: 260ms; --dur-slow: 480ms;

  /* Layers */
  --z-base: 1; --z-raised: 10; --z-header: 100; --z-menu: 200; --z-bar: 90;

  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-anchor: none;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-300); color: var(--ink-900); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 1000; background: var(--ink-900); color: var(--cream-200); padding: .75rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

/* ---------- Type helpers ---------- */
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); line-height: 1.25; }
.h5 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--text-muted); margin-bottom: .25rem; }
.h6 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--ink-700); }
.fine { font-size: .9rem; color: var(--text-muted); }
.accent { color: var(--accent-text); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--gold-300); }
.section-head { max-width: 760px; margin-bottom: var(--space-8); }
.section-head-split { max-width: none; display: grid; gap: var(--space-5); align-items: end; }
@media (min-width: 900px) { .section-head-split { grid-template-columns: 1.2fr 1fr; } }

/* ---------- Icons ---------- */
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; display: inline-block; }
.ico-md { width: 28px; height: 28px; }
.ico-lg { width: 36px; height: 36px; stroke-width: 1.6; }
.ico.star { fill: var(--gold-300); stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--pine-800); --btn-fg: var(--cream-200); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border-radius: var(--radius-pill); border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; text-align: center;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur), box-shadow var(--dur), color var(--dur), border-color var(--dur);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: 80ms; }
.btn .ico { transition: transform var(--dur) var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn-ember { --btn-bg: var(--ember-500); --btn-fg: var(--ink-900); box-shadow: 0 8px 24px -8px rgba(232, 105, 44, .7); }
.btn-ember:hover { --btn-bg: var(--ember-400); box-shadow: 0 14px 34px -10px rgba(232, 105, 44, .85); }
.btn-dark { --btn-bg: var(--ink-900); --btn-fg: var(--cream-200); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--pine-800); --btn-bd: var(--pine-800); }
.btn-outline:hover { --btn-bg: var(--pine-800); --btn-fg: var(--cream-200); }
.btn-ghost-light { --btn-bg: rgba(245, 238, 223, .08); --btn-fg: var(--cream-200); --btn-bd: rgba(245, 238, 223, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost-light:hover { --btn-bg: rgba(245, 238, 223, .16); --btn-bd: var(--cream-200); }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--accent-text); text-decoration: none; min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--pine-800); background: transparent; color: var(--pine-800); cursor: pointer;
  transition: background-color var(--dur), color var(--dur), transform var(--dur) var(--ease-out);
}
.icon-btn:hover { background: var(--pine-800); color: var(--cream-200); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .ico { width: 22px; height: 22px; }

.tag { display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: var(--radius-pill); background: rgba(31, 59, 45, .1); color: var(--pine-800); font-size: .78rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.tag-ember { background: rgba(232, 105, 44, .16); color: var(--ember-700); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; min-height: 44px; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .02em; text-transform: uppercase; }
.brand-sub { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-top: .3rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  color: var(--cream-200);
  transition: background-color var(--dur-slow), box-shadow var(--dur-slow), transform var(--dur-slow) var(--ease-out), color var(--dur);
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled { background: rgba(18, 36, 27, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .5); }
.site-header.is-hidden { transform: translateY(-110%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: .25rem; }
.primary-nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; text-decoration: none; font-weight: 500; font-size: .96rem; border-radius: var(--radius-pill); position: relative; }
.primary-nav a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 8px; height: 2px; background: var(--ember-500); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.primary-nav a:hover::after, .primary-nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-phone { display: none; align-items: center; gap: .4rem; text-decoration: none; font-weight: 700; font-size: .95rem; min-height: 44px; padding: 0 .5rem; }
.header-actions .btn-sm { display: none; }
.menu-toggle { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(245, 238, 223, .35); background: rgba(245, 238, 223, .06); border-radius: 50%; cursor: pointer; color: inherit; }
.menu-toggle .ico { width: 22px; height: 22px; grid-area: 1 / 1; transition: opacity var(--dur), transform var(--dur) var(--ease-out); }
.menu-toggle .ico-close { opacity: 0; transform: rotate(-90deg); }
.menu-toggle[aria-expanded="true"] .ico-open { opacity: 0; transform: rotate(90deg); }
.menu-toggle[aria-expanded="true"] .ico-close { opacity: 1; transform: none; }

@media (min-width: 560px) { .header-actions .btn-sm { display: inline-flex; } }
@media (min-width: 1240px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
  .header-phone { display: inline-flex; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 80% 0%, var(--dusk-600), var(--pine-950) 70%);
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 1rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav a { display: flex; align-items: center; min-height: 56px; font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(245, 238, 223, .12); }
.mobile-menu-foot { display: grid; gap: .75rem; margin-top: 2rem; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100dvh;
  display: flex; align-items: center;
  color: var(--cream-200); overflow: hidden; isolation: isolate;
  background: var(--dusk-900);
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(9rem, 22vh, 14rem);
}
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.ridge { will-change: transform; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 11, 28, .55) 0%, rgba(14, 11, 28, .25) 40%, rgba(14, 11, 28, 0) 65%), linear-gradient(180deg, rgba(14, 11, 28, .55) 0%, rgba(14, 11, 28, .12) 38%, rgba(14, 11, 28, 0) 60%, rgba(13, 21, 18, .2) 100%); pointer-events: none; }
@media (max-width: 767px) { .hero-vignette { background: linear-gradient(180deg, rgba(14, 11, 28, .6) 0%, rgba(14, 11, 28, .35) 50%, rgba(14, 11, 28, .55) 100%); } }
.hero-lede { text-shadow: 0 1px 12px rgba(14, 11, 28, .7); }
.stars circle { fill: #FFF6E0; }
.stars .twinkle { animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; } }
.beacon { animation: beacon 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes beacon { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.cab-glow { animation: glow 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes glow { 50% { opacity: .55; transform: scale(.9); } }

/* Hero video */
.hero-media { background: var(--pine-950) center / cover no-repeat url("../assets/hero-poster.jpg"); overflow: hidden; }
@media (max-width: 767px) and (orientation: portrait) { .hero-media { background-image: url("../assets/hero-poster-mobile.jpg"); } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform-origin: center; will-change: transform; }
.hero-media .hero-vignette {
  background:
    linear-gradient(90deg, rgba(13, 21, 18, .72) 0%, rgba(13, 21, 18, .38) 45%, rgba(13, 21, 18, .08) 75%),
    linear-gradient(180deg, rgba(13, 21, 18, .55) 0%, rgba(13, 21, 18, 0) 30%, rgba(13, 21, 18, 0) 65%, rgba(13, 21, 18, .7) 100%);
}
@media (max-width: 767px) {
  .hero-media .hero-vignette { background: linear-gradient(180deg, rgba(13, 21, 18, .7) 0%, rgba(13, 21, 18, .45) 45%, rgba(13, 21, 18, .75) 100%); }
}
.hero-media .embers { opacity: .55; mix-blend-mode: screen; }
.hero-video-toggle {
  position: absolute; right: var(--gutter); bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(245, 238, 223, .4); background: rgba(13, 21, 18, .45); color: var(--cream-200);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer;
  transition: background-color var(--dur), transform var(--dur) var(--ease-out);
}
.hero-video-toggle:hover { background: rgba(13, 21, 18, .7); }
.hero-video-toggle:active { transform: scale(.94); }
.hero-video-toggle .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; grid-area: 1 / 1; }
.hero-video-toggle .ico-play { display: none; }
.hero-video-toggle[aria-pressed="true"] .ico-play { display: block; }
.hero-video-toggle[aria-pressed="true"] .ico-pause { display: none; }
.hero-video-toggle[hidden] { display: none; }
.hero-content { position: relative; max-width: 1240px; }
.hero-eyebrow { flex-wrap: wrap; gap: .5rem 1.25rem; }
.hero-eyebrow span { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.hero-title {
  font-size: var(--fs-hero); font-weight: 700; line-height: .98; letter-spacing: -.02em;
  max-width: 11ch; margin-bottom: var(--space-5);
  text-shadow: 0 4px 40px rgba(14, 11, 28, .45);
}
.hero-title em { font-style: normal; color: var(--gold-300); display: inline-block; }
.hero-lede { font-size: var(--fs-lede); max-width: 46ch; color: var(--on-dark-muted); margin-bottom: var(--space-6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: var(--space-6); }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: var(--radius-pill); background: rgba(14, 11, 28, .35); border: 1px solid rgba(245, 238, 223, .18); font-size: .9rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-chips strong { color: var(--gold-300); }

@media (max-width: 559px) {
  .hero-ctas .btn { width: 100%; }
  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 3.5rem); }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--ember-500); color: var(--ink-900); overflow: hidden; padding: 1rem 0; position: relative; z-index: 2; }
.marquee-track { display: flex; align-items: center; gap: 1.5rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.marquee-track i { width: 10px; height: 10px; background: var(--ink-900); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.25fr 1fr; gap: var(--space-9); } }
.about-copy p:not(.eyebrow):not(.lede) { color: var(--ink-700); }
.about .h2 { margin-bottom: var(--space-5); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.stat { background: var(--surface); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); display: flex; flex-direction: column-reverse; gap: .35rem; }
.stat dt { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.stat dd { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); font-weight: 700; line-height: 1; color: var(--pine-800); font-variant-numeric: tabular-nums; }
.stat dd small { font-size: .45em; margin-left: .1em; color: var(--accent-text); }

/* ---------- Homes (horizontal) ---------- */
.homes { background: var(--pine-900); color: var(--cream-200); position: relative; overflow: hidden; }
.homes::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 85% 10%, rgba(232, 105, 44, .14), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(79, 122, 97, .25), transparent 70%); pointer-events: none; }
.homes-pin { padding-block: var(--section-y); position: relative; }
.homes-head { margin-bottom: var(--space-7); }
.homes-head .h2 { max-width: 16ch; margin-bottom: var(--space-4); }
.homes-note { color: var(--on-dark-muted); max-width: 60ch; }
.homes-track { display: grid; gap: var(--space-5); padding-inline: var(--gutter); max-width: 1240px; margin-inline: auto; }
@media (min-width: 720px) { .homes-track { grid-template-columns: repeat(2, 1fr); } }

.home-card {
  background: var(--cream-100); color: var(--ink-900);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-3);
  display: flex; flex-direction: column;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow);
}
.home-card:hover { transform: translateY(-6px); }
/* Padding-ratio box + absolutely positioned SVG: renders reliably in every mobile browser (incl. older iOS Safari) */
.home-art { --art-ratio: 55%; position: relative; height: 0; padding-top: var(--art-ratio); overflow: hidden; background: var(--dusk-800); flex: none; }
.home-art svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; transition: transform 1.2s var(--ease-out); }
.home-art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.home-card:hover .home-art img { transform: scale(1.05); }
.home-card:hover .home-art svg { transform: scale(1.04); }
.art-window { animation: windowflicker 5s ease-in-out infinite; }
@keyframes windowflicker { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 50% { opacity: .75; } 53% { opacity: 1; } }
.art-ghost { animation: dash 2.5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.art-porch { animation: beacon 3s ease-in-out infinite; }
.home-body { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.home-title-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.home-title-row .h3 { display: inline-flex; align-items: center; gap: .5rem; }
.home-title-row .h3 .ico { color: var(--ember-700); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem; margin: 0; }
.price-num { font-family: var(--font-display); font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem); font-weight: 700; line-height: 1; color: var(--pine-800); font-variant-numeric: tabular-nums; }
.price-per { color: var(--text-muted); font-weight: 500; }
.price-from { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); align-self: center; }
.checks { display: grid; gap: .55rem; margin-bottom: auto; padding-bottom: var(--space-3); }
.checks li { display: flex; gap: .6rem; align-items: flex-start; }
.checks .ico { color: var(--pine-500); margin-top: .2em; stroke-width: 2.4; }
.home-card-feature { outline: 3px solid var(--ember-500); outline-offset: -3px; }
.home-card-included { background: linear-gradient(160deg, var(--dusk-600), var(--dusk-900)); color: var(--cream-200); justify-content: center; }
.included-list { display: grid; gap: 1rem; margin-bottom: var(--space-5); }
.included-list li { display: flex; align-items: center; gap: .85rem; font-family: var(--font-display); font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); font-weight: 600; }
.included-list .ico { width: 30px; height: 30px; color: var(--gold-300); }
.included-list .muted { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--on-dark-muted); }
.included-list .muted .ico { width: 22px; height: 22px; }
.home-card-included .text-link { color: var(--gold-300); }
.homes-progress { display: none; }

@media (min-width: 1024px) {
  .homes.is-horizontal .homes-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 1rem) 2rem; }
  .homes.is-horizontal .homes-head { margin-bottom: var(--space-5); }
  .homes.is-horizontal .homes-head .h2 { font-size: clamp(2rem, 1.2rem + 2vw, 3rem); max-width: none; margin-bottom: .5rem; }
  .homes.is-horizontal .homes-head .eyebrow { margin-bottom: .5rem; }
  .homes.is-horizontal .home-body { gap: .75rem; padding: 1.4rem 1.6rem; }
  .homes.is-horizontal .checks { gap: .35rem; font-size: .96rem; }
  .homes.is-horizontal .homes-track { display: flex; gap: var(--space-6); max-width: none; margin: 0; padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); width: max-content; }
  .homes.is-horizontal .home-card { width: min(440px, 31vw); flex: none; }
  .homes.is-horizontal .homes-note { display: none; }
  .homes.is-horizontal .home-art { --art-ratio: 46%; }
  .homes.is-horizontal .home-art svg { object-fit: cover; }
  .homes.is-horizontal .homes-progress { display: block; position: absolute; left: 50%; bottom: 2rem; width: min(320px, 40vw); height: 3px; background: rgba(245, 238, 223, .15); transform: translateX(-50%); border-radius: 3px; overflow: hidden; }
  .homes.is-horizontal .homes-progress span { display: block; height: 100%; width: 100%; background: var(--ember-500); transform-origin: left; transform: scaleX(0); }
}
@media (min-width: 1024px) and (max-height: 860px) {
  .homes.is-horizontal .home-art { --art-ratio: 27.5%; }
}
@media (min-width: 1024px) and (max-height: 720px) {
  .homes.is-horizontal .home-art { display: none; }
}

/* ---------- Tiny home detail ---------- */
.tiny-grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 960px) { .tiny-grid { grid-template-columns: 1fr 1.1fr; } }
.tiny .h2 { margin-bottom: var(--space-5); }
.tiny .lede { margin-bottom: var(--space-6); }
.tiny-photo { margin: 0 0 var(--space-6); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 4 / 3; background: var(--sand-300); }
.tiny-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tiny-photo:hover img { transform: scale(1.04); }
.unit-table { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; margin-bottom: var(--space-4); }
.unit-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; padding: 1rem 1.25rem; align-items: center; border-top: 1px solid var(--border); }
.unit-row > span:nth-child(2) { width: 3.5rem; text-align: center; }
.unit-row > span:nth-child(3) { text-align: right; min-width: 6.5rem; font-variant-numeric: tabular-nums; }
.unit-row .ico { color: var(--ember-700); margin-right: .35rem; }
.unit-head { border-top: 0; background: var(--pine-800); color: var(--cream-200); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding-block: .75rem; }
@media (max-width: 480px) { .unit-row { grid-template-columns: 1fr auto; } .unit-row > span:nth-child(2) { display: none; } }

.floorplan { margin: 0; background: var(--pine-900); color: var(--cream-200); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-3); position: relative; overflow: hidden; }
.floorplan::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(245, 238, 223, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 238, 223, .05) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.floorplan > svg { position: relative; width: 100%; height: auto; overflow: visible; }
.fp-lines { color: var(--cream-200); }
.fp-thin { stroke-width: 2; opacity: .6; }
.fp-furn { fill: rgba(244, 184, 96, .22); stroke: var(--gold-300); stroke-width: 1.2; }
.fp-furn-dark { fill: rgba(244, 184, 96, .45); }
.fp-door { stroke: var(--ember-400); }
.fp-labels text { fill: var(--gold-300); }
.fp-dims { color: rgba(245, 238, 223, .5); }
.fp-dim-label { fill: var(--cream-200); paint-order: stroke; stroke: var(--pine-900); stroke-width: 6px; }
.floorplan figcaption { position: relative; font-size: .9rem; color: var(--on-dark-muted); margin-top: var(--space-5); display: grid; gap: .75rem; }
.fp-features { display: flex; flex-wrap: wrap; gap: .4rem; }
.fp-features li { padding: .3rem .7rem; border-radius: var(--radius-pill); background: rgba(245, 238, 223, .08); border: 1px solid rgba(245, 238, 223, .16); color: var(--cream-200); font-size: .82rem; font-weight: 500; }
.fp-original { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-300); font-weight: 700; min-height: 44px; text-decoration: none; justify-self: start; }
.fp-original:hover { text-decoration: underline; }
.fp-porch rect { fill: rgba(244, 184, 96, .12); stroke: var(--gold-300); stroke-width: 1.2; stroke-dasharray: 4 3; }
.fp-porch .fp-step { fill: rgba(244, 184, 96, .2); }
.fp-windows rect { fill: var(--pine-900); stroke: var(--cream-200); stroke-width: 1.2; }
.fp-doors { stroke: var(--ember-400); }
.fp-dash { stroke-dasharray: 3 2; }
.fp-sublabels text { fill: var(--cream-200); opacity: .8; }

/* ---------- Estimator ---------- */
.estimator-section { padding-top: 0; }
.estimator {
  display: grid; gap: var(--space-6);
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); border: 1px solid var(--border);
}
@media (min-width: 960px) { .estimator { grid-template-columns: 1fr 1fr; grid-template-areas: "intro result" "opts result"; column-gap: var(--space-8); } .est-intro { grid-area: intro; } .est-options { grid-area: opts; } .est-result { grid-area: result; } }
.est-intro .h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); margin-bottom: var(--space-4); }
.est-intro p:last-child { color: var(--ink-700); }
.est-options { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; align-content: start; }
.est-opt { position: relative; cursor: pointer; }
@media (max-width: 559px) { .est-options { display: grid; grid-template-columns: 1fr 1fr; } .est-opt span { width: 100%; padding-inline: .8rem; font-size: .95rem; } }
.est-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.est-opt span { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .6rem 1.1rem; border-radius: var(--radius-pill); border: 2px solid var(--border); background: var(--cream-200); font-weight: 600; transition: background-color var(--dur), border-color var(--dur), color var(--dur), transform var(--dur) var(--ease-out); }
.est-opt:hover span { border-color: var(--pine-500); }
.est-opt input:checked + span { background: var(--pine-800); color: var(--cream-200); border-color: var(--pine-800); }
.est-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.est-opt input:active + span { transform: scale(.97); }
.est-result { background: var(--pine-900); color: var(--cream-200); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); display: flex; flex-direction: column; gap: var(--space-4); }
.est-lines { display: grid; gap: .6rem; }
.est-lines div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px dashed rgba(245, 238, 223, .2); }
.est-lines dt { color: var(--on-dark-muted); }
.est-lines dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.est-total { display: flex; flex-direction: column; gap: .25rem; }
.est-total span { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-300); }
.est-total strong { font-family: var(--font-display); font-size: clamp(2.8rem, 2.2rem + 2.5vw, 4.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.est-result .fine { color: var(--on-dark-muted); }

/* ---------- Amenities bento ---------- */
.bento { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); } .bento-wide { grid-column: span 2; } .bento-tall { grid-row: span 2; } }
.bento-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: .6rem;
  position: relative; overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow), border-color var(--dur);
}
.bento-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(232, 105, 44, .35); }
.bento-item > .ico-lg, .bento-split .ico-lg { color: var(--ember-700); margin-bottom: .5rem; transition: transform var(--dur-slow) var(--ease-out); }
.bento-item:hover > .ico-lg { transform: rotate(-8deg) scale(1.08); }
.bento-item p { color: var(--ink-700); margin: 0; }
.bento-green { background: var(--pine-800); color: var(--cream-200); border-color: transparent; }
.bento-green p { color: var(--on-dark-muted); }
.bento-green > .ico-lg { color: var(--gold-300); }
.paw-trail { margin-top: auto; width: 100%; max-width: 260px; color: rgba(244, 184, 96, .55); padding-top: 1.5rem; }
.paw-trail use { fill: none; stroke: currentColor; stroke-width: 1.6; }
.bento-dusk { background: linear-gradient(135deg, var(--dusk-600), var(--dusk-900)); color: var(--cream-200); border-color: transparent; }
.bento-dusk p { color: var(--on-dark-muted); }
.bento-dusk .ico-lg { color: var(--gold-300) !important; }
.bento-split { display: grid; gap: 1.25rem; height: 100%; align-items: end; }
@media (min-width: 640px) { .bento-split { grid-template-columns: 1.4fr 1fr; } }
.bento-badges { display: flex; flex-wrap: wrap; gap: .5rem; align-content: end; }
.bento-badges span { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: var(--radius-pill); background: rgba(245, 238, 223, .1); border: 1px solid rgba(245, 238, 223, .2); font-size: .9rem; font-weight: 600; }

/* ---------- Pond ---------- */
.pond { position: relative; overflow: hidden; isolation: isolate; color: var(--cream-200); background: linear-gradient(180deg, #1C3A47 0%, #12303B 60%, #0E2730 100%); padding-block: clamp(5rem, 4rem + 6vw, 9rem); text-align: center; }
.pond-content { max-width: 720px; position: relative; }
.pond .eyebrow { justify-content: center; }
.pond .eyebrow::before { display: none; }
.pond .h2 { margin-bottom: var(--space-4); }
.pond p:not(.eyebrow) { color: var(--on-dark-muted); font-size: var(--fs-lede); }
.pond-water { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; }
.pond-water span { position: absolute; width: 40vmax; aspect-ratio: 2.6 / 1; border: 2px solid rgba(160, 214, 224, .28); border-radius: 50%; animation: ripple 7s var(--ease-out) infinite; opacity: 0; }
.pond-water span:nth-child(2) { animation-delay: 1.75s; }
.pond-water span:nth-child(3) { animation-delay: 3.5s; }
.pond-water span:nth-child(4) { animation-delay: 5.25s; }
@keyframes ripple { 0% { transform: scale(.1); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }

.pond-content { max-width: 960px; }
.pond-content > p:not(.eyebrow) { max-width: 640px; margin-inline: auto; }
.phase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-7); }
@media (min-width: 900px) { .phase-grid { grid-template-columns: repeat(4, 1fr); } }
.phase-grid li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; min-height: 150px; padding: 1.5rem 1rem; border-radius: var(--radius-lg); background: rgba(14, 39, 48, .55); border: 1px solid rgba(160, 214, 224, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur); }
.phase-grid li:hover { transform: translateY(-4px); border-color: rgba(244, 184, 96, .5); }
.phase-num { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 700; line-height: 1; color: var(--gold-300); font-variant-numeric: tabular-nums; }
.phase-ico { width: 52px; height: 52px; color: var(--gold-300); stroke-width: 1.5; }
.phase-label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--cream-200); text-align: center; }
.phase-label .ico { color: rgba(160, 214, 224, .9); }
.phase-cta { margin-top: var(--space-6); }

/* ---------- Life (day → night) ---------- */
.life { position: relative; color: var(--cream-200); isolation: isolate; overflow: clip; }
.life-sky { position: absolute; inset: 0; z-index: -1; }
.life-sky > i { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease-in-out); }
.life-sky > i[data-sky-layer="morning"] { background: linear-gradient(180deg, #7FA9BE 0%, #D9B48E 60%, #E9A774 100%); opacity: 1; }
.life-sky > i[data-sky-layer="day"] { background: linear-gradient(180deg, #4D8AA8 0%, #8FB5B8 55%, #B9C59E 100%); }
.life-sky > i[data-sky-layer="dusk"] { background: linear-gradient(180deg, #3A2650 0%, #9A4552 45%, #E8692C 80%, #F4B860 100%); }
.life-sky > i[data-sky-layer="night"] { background: linear-gradient(180deg, #0E0B1C 0%, #1B1530 50%, #2A2140 100%); }
.life[data-phase="day"] .life-sky > i[data-sky-layer="day"],
.life[data-phase="dusk"] .life-sky > i[data-sky-layer="dusk"],
.life[data-phase="night"] .life-sky > i[data-sky-layer="night"] { opacity: 1; }
.life-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 21, 18, .25), rgba(13, 21, 18, .55)); }
.life-sun-wrap { position: sticky; top: 0; height: 100vh; height: 100svh; pointer-events: none; overflow: hidden; }
.life-sun { position: absolute; right: 8vw; top: 18vh; width: clamp(120px, 18vw, 240px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #FFE3A3 0 34%, rgba(255, 196, 107, .45) 35% 52%, rgba(255, 196, 107, 0) 70%); transform: translateY(30vh); transition: transform 1.2s var(--ease-out), filter 1.2s, opacity 1.2s; }
.life[data-phase="day"] .life-sun { transform: translateY(-4vh); }
.life[data-phase="dusk"] .life-sun { transform: translateY(46vh); filter: hue-rotate(-20deg) saturate(1.4); }
.life[data-phase="night"] .life-sun { transform: translateY(0); background: radial-gradient(circle, #F5EEDF 0 26%, rgba(245, 238, 223, .18) 27% 44%, rgba(245, 238, 223, 0) 64%); }
.life-stars { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 10%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 15%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 40%, #fff, transparent), radial-gradient(1px 1px at 20% 55%, #fff, transparent), radial-gradient(1px 1px at 45% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 92% 70%, #fff, transparent); background-size: 600px 600px; }
.life[data-phase="night"] .life-stars { opacity: .8; }
.life-inner { position: relative; z-index: 1; padding-block: var(--section-y); }
.life-head { margin-bottom: var(--space-8); max-width: 640px; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.life-panels { display: grid; gap: clamp(2rem, 1rem + 8vh, 7rem); max-width: 560px; }
.life-panel {
  background: rgba(13, 21, 18, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 238, 223, .16); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.life-panel:nth-child(even) { margin-left: auto; }
@media (min-width: 900px) { .life-panels { max-width: none; grid-template-columns: 1fr; } .life-panel { width: min(520px, 48%); } }
.life-time { display: inline-block; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--gold-300); letter-spacing: .08em; margin-bottom: .5rem; }
.life-panel .h3 { margin-bottom: .6rem; }
.life-panel p { color: var(--on-dark-muted); margin: 0; }

/* ---------- Standards ---------- */
.std-grid { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
@media (min-width: 640px) { .std-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .std-grid { grid-template-columns: repeat(3, 1fr); } }
.std-grid li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.std-grid .ico-md { color: var(--pine-500); margin-top: .1rem; }
.std-grid h3 { margin-bottom: .3rem; }
.std-grid p { color: var(--ink-700); font-size: .98rem; margin: 0; }

/* ---------- Reviews ---------- */
.reviews { background: var(--sand-300); overflow: hidden; }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-5); margin-bottom: var(--space-7); }
.rating-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.g-logo { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.g-logo svg { width: 22px; height: 22px; }
.rating-num { display: flex; align-items: center; gap: .6rem; }
.rating-num strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.rating-sub { font-size: .9rem; color: var(--text-muted); margin: 0; }
.stars { --size: 20px; display: inline-block; width: calc(var(--size) * 5); height: var(--size); background: linear-gradient(90deg, #E8A317 calc(var(--rating) / 5 * 100%), rgba(27, 26, 23, .18) 0); -webkit-mask: var(--star-mask) 0 0 / var(--size) var(--size) repeat-x; mask: var(--star-mask) 0 0 / var(--size) var(--size) repeat-x; --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.6l-6.4 3.5L7 14l-5.3-5 7.2-.9z'/%3E%3C/svg%3E"); }

.carousel { position: relative; }
.carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; margin-inline: calc(var(--gutter) * -1); padding: .5rem var(--gutter) 1.5rem; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-viewport:focus-visible { outline-offset: -3px; }
.carousel-track { display: flex; gap: var(--space-5); }
.review-card {
  flex: 0 0 min(88%, 420px); scroll-snap-align: start;
  background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 1.5vw, 2.1rem);
  box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 1rem; position: relative;
  transition: box-shadow var(--dur-slow);
}
.review-card::before { content: "\201C"; position: absolute; right: 1.25rem; top: -.4rem; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: rgba(232, 105, 44, .22); pointer-events: none; }
.review-card.is-active { box-shadow: var(--shadow-2); }
.review-card blockquote { white-space: pre-line; margin: 0; font-size: 1.08rem; line-height: 1.6; color: var(--ink-900); flex: 1; }
.review-card .stars { --size: 18px; }
.review-meta { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pine-800); color: var(--cream-200); font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; flex: none; }
.review-name { font-weight: 700; line-height: 1.2; }
.review-src { font-size: .85rem; color: var(--text-muted); }
.review-card-cta { background: var(--pine-800); color: var(--cream-200); justify-content: center; text-align: left; }
.review-card-cta::before { color: rgba(244, 184, 96, .3); }
.review-card-cta p { color: var(--on-dark-muted); }
.review-card-cta .h3 { margin-bottom: .25rem; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: var(--space-4); }
.carousel-dots { display: flex; gap: .15rem; }
.carousel-dots button { width: 32px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.carousel-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 9px; background: rgba(27, 26, 23, .25); transition: width var(--dur) var(--ease-out), background-color var(--dur); }
.carousel-dots button[aria-selected="true"]::before { width: 24px; background: var(--ember-700); }
.reviews-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: var(--space-6); }

/* ---------- Steps ---------- */
.steps { background: var(--pine-900); color: var(--cream-200); overflow: hidden; }
.steps-list { display: grid; gap: var(--space-5); position: relative; counter-reset: s; }
@media (min-width: 900px) { .steps-list { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.steps-path { display: none; }
@media (min-width: 900px) { .steps-path { display: block; position: absolute; left: 8%; right: 8%; top: 27px; width: 84%; height: 20px; overflow: visible; } .steps-path path { stroke: var(--ember-500); stroke-width: 2; stroke-dasharray: 6 8; fill: none; vector-effect: non-scaling-stroke; } }
.step { position: relative; background: rgba(245, 238, 223, .05); border: 1px solid rgba(245, 238, 223, .12); border-radius: var(--radius-lg); padding: 4.25rem clamp(1.25rem, 1rem + 1vw, 2rem) 2rem; }
.step-num { position: absolute; top: -1px; left: clamp(1.25rem, 1rem + 1vw, 2rem); transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ember-500); color: var(--ink-900); font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; box-shadow: 0 0 0 6px var(--pine-900); }
.steps-list { padding-top: 28px; }
.step .ico-lg { color: var(--gold-300); margin-bottom: 1rem; }
.step h3 { margin-bottom: .5rem; font-size: 1.4rem; }
.step p { color: var(--on-dark-muted); margin: 0; }
.steps-cta { text-align: center; margin-top: var(--space-8); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--space-7); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: var(--space-9); } .faq-intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.faq-intro .h2 { margin-bottom: var(--space-4); }
.faq-intro p:not(.eyebrow) { color: var(--ink-700); }
.faq-list { display: grid; gap: .75rem; }
.faq-list details { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); transition: border-color var(--dur), box-shadow var(--dur); }
.faq-list details[open] { border-color: rgba(232, 105, 44, .45); box-shadow: var(--shadow-1); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: 1rem 1.25rem; font-weight: 700; font-size: 1.05rem; border-radius: var(--radius); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { width: 22px; height: 22px; color: var(--ember-700); transition: transform var(--dur) var(--ease-out); }
.faq-list details[open] summary .ico { transform: rotate(45deg); }
.faq-a { padding: 0 1.25rem 1.25rem; color: var(--ink-700); }
.faq-list details[open] .faq-a { animation: faqIn var(--dur-slow) var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Visit ---------- */
.visit { background: var(--cream-100); }
.visit-grid { display: grid; gap: var(--space-7); align-items: stretch; }
@media (min-width: 960px) { .visit-grid { grid-template-columns: 1fr 1.15fr; } }
.visit .h2 { margin-bottom: var(--space-6); }
.contact-list { display: grid; gap: 1.25rem; margin-bottom: var(--space-6); }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ico-md { color: var(--ember-700); margin-top: .15rem; }
.contact-list p { margin: 0; font-size: 1.08rem; }
.contact-list a { font-weight: 700; }
.hours th { text-align: left; font-weight: 500; padding: .15rem 1.25rem .15rem 0; color: var(--ink-700); }
.hours td { font-weight: 700; font-variant-numeric: tabular-nums; }
.open-badge { display: inline-flex; align-items: center; gap: .35rem; margin-left: .5rem; padding: .15rem .55rem; border-radius: var(--radius-pill); font-size: .7rem; letter-spacing: .08em; background: rgba(27, 26, 23, .08); color: var(--ink-700); vertical-align: middle; }
.open-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-badge.is-open { background: rgba(79, 122, 97, .18); color: #2A5A3E; }
.visit-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; box-shadow: var(--shadow-2); background: var(--sand-300); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade { position: absolute; inset: 0; display: grid; place-items: center; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-art { min-width: 100%; min-height: 100%; }
.map-pin { position: relative; display: grid; place-items: center; margin-bottom: 5rem; }
.map-pin .brand-mark { width: 64px; height: 64px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .3)); position: relative; z-index: 1; }
.map-pulse { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: rgba(232, 105, 44, .45); animation: pulse 2.2s var(--ease-out) infinite; }
@keyframes pulse { to { transform: scale(2.6); opacity: 0; } }
.map-load { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); }
.map-load:hover { transform: translateX(-50%) translateY(-2px); }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; background: radial-gradient(120% 90% at 50% 100%, #9A4552 0%, var(--dusk-600) 40%, var(--dusk-900) 80%); color: var(--cream-200); text-align: center; padding-block: clamp(5rem, 4rem + 6vw, 9rem) clamp(8rem, 6rem + 10vw, 14rem); overflow: hidden; isolation: isolate; }
.final-scene { position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1; }
.final-scene svg { width: 100%; height: 100%; }
.final-inner { max-width: 760px; }
.final-mark { width: 72px; height: 72px; margin: 0 auto var(--space-5); }
.final-cta .h2 { margin-bottom: var(--space-4); }
.final-cta p { color: var(--on-dark-muted); font-size: var(--fs-lede); margin-bottom: var(--space-6); }
.final-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-950); color: var(--on-dark-muted); padding-top: var(--space-8); padding-bottom: calc(var(--space-6) + 72px + env(safe-area-inset-bottom)); font-size: .96rem; }
@media (min-width: 768px) { .site-footer { padding-bottom: var(--space-6); } }
.footer-grid { display: grid; gap: var(--space-6); padding-bottom: var(--space-7); border-bottom: 1px solid rgba(245, 238, 223, .1); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.brand-light { color: var(--cream-200); margin-bottom: 1rem; }
.footer-brand p { max-width: 36ch; }
.vet { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-300); font-weight: 700; }
.footer-col h2 { color: var(--cream-200); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .5rem; }
.footer-col a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer-col a:hover { color: var(--cream-200); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: var(--space-5); font-size: .85rem; }
.footer-base p { margin: 0; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: auto 1fr; gap: .5rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(13, 21, 18, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(245, 238, 223, .1);
  transform: translateY(110%); transition: transform var(--dur-slow) var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar a { white-space: nowrap; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; padding: 0 1.2rem; }
.action-call { color: var(--cream-200); border: 1px solid rgba(245, 238, 223, .35); }
.action-apply { background: var(--ember-500); color: var(--ink-900); }
@media (min-width: 768px) { .action-bar { display: none; } }

/* =========================================================
   Motion states (only when JS opts in via .js-anim)
   ========================================================= */
.js-anim [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-anim [data-hero-item] { opacity: 0; transform: translateY(20px); }
.js-anim .hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js-anim .hero-title .word > span { display: inline-block; transform: translateY(110%); }
.split-ready .hero-title { visibility: visible; }

.magnetic { will-change: transform; }

/* ---------- Apply page ---------- */
.page-hero { position: relative; color: var(--cream-200); background: radial-gradient(120% 120% at 70% 100%, #9A4552 0%, var(--dusk-600) 45%, var(--dusk-900) 85%); padding: calc(var(--header-h) + 4rem) 0 clamp(7rem, 5rem + 8vw, 11rem); overflow: hidden; isolation: isolate; }
.page-hero .final-scene { height: 42%; }
.page-hero h1, .page-hero p { text-shadow: 0 2px 18px rgba(14, 11, 28, .6); }
.page-hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.8rem); line-height: 1; margin-bottom: var(--space-4); max-width: 14ch; }
.page-hero p { color: var(--on-dark-muted); font-size: var(--fs-lede); max-width: 52ch; }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .9rem; margin-bottom: var(--space-5); color: var(--on-dark-muted); }
.crumbs a { color: var(--cream-200); }
.apply-grid { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1024px) { .apply-grid { grid-template-columns: 1fr 340px; } .apply-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.listings-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: clamp(1rem, .75rem + 1.5vw, 2rem); margin-top: calc(-1 * clamp(5rem, 3rem + 6vw, 8rem)); position: relative; z-index: 2; min-height: 560px; }
.listings-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-5); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.listings-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.live-dot { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 700; color: #2A5A3E; }
.live-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3F9A62; box-shadow: 0 0 0 0 rgba(63, 154, 98, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(63, 154, 98, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 154, 98, 0); } }
.appfolio-embed { position: relative; min-height: 500px; }
.appfolio-embed iframe { max-width: 100%; }
.listings-skeleton { display: grid; gap: 1rem; }
.listings-skeleton div { height: 110px; border-radius: var(--radius); background: linear-gradient(90deg, var(--sand-300) 0%, var(--cream-200) 50%, var(--sand-300) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.listings-fallback { text-align: center; padding: 2rem 1rem; }
.listings-fallback p { color: var(--ink-700); max-width: 44ch; margin-inline: auto; }
.aside-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.5rem; margin-bottom: 1rem; }
.aside-card h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.aside-card .checks li { font-size: .98rem; }
.aside-dark { background: var(--pine-900); color: var(--cream-200); border: 0; }
.aside-dark p { color: var(--on-dark-muted); }
.rate-mini { display: grid; gap: .5rem; }
.rate-mini div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--border); font-size: .98rem; }
.rate-mini div:last-child { border-bottom: 0; }
.rate-mini strong { font-variant-numeric: tabular-nums; }


/* =========================================================
   Step animations (How to apply)
   ========================================================= */
.step-num::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ember-500); opacity: 0; pointer-events: none; }
.js-anim .steps-list:not(.is-in) .step-num { transform: translateY(-50%) scale(0); }
.steps-list.is-in .step-num { animation: numPop .7s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * .35s + .2s); }
.steps-list.is-in .step-num::after { animation: numRing 1.4s var(--ease-out) both; animation-delay: calc(var(--i) * .35s + .55s); }
@keyframes numPop { from { transform: translateY(-50%) scale(0) rotate(-90deg); } to { transform: translateY(-50%) scale(1) rotate(0); } }
@keyframes numRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }

.step-ico { overflow: visible; width: 52px; height: 52px; stroke-width: 1.5; }
.step-ico .mag, .step-ico .key { transform-box: view-box; }
.step-ico .key { transform-origin: 7.5px 15.5px; }
.step-ico .glint { stroke: var(--cream-200); opacity: .3; }
.step-ico .sparks { stroke: var(--ember-400); opacity: 0; }
.step-ico .ln { stroke-dasharray: 10; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .js-anim .steps-list:not(.is-in) .step-ico { opacity: 0; transform: translateY(10px); }
  .steps-list.is-in .step-ico { animation: icoIn .6s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1s); }
  .steps-list .step:nth-of-type(1) .step-ico { --d: .45; }
  .steps-list .step:nth-of-type(2) .step-ico { --d: .8; }
  .steps-list .step:nth-of-type(3) .step-ico { --d: 1.15; }
  @keyframes icoIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  /* 1: magnifier scans back and forth, glass glints */
  .steps-list.is-in .step-ico-search .mag { animation: scan 4.5s ease-in-out 1.1s infinite; }
  .steps-list.is-in .step-ico-search .glint { animation: glint 4.5s ease-in-out 1.1s infinite; }
  @keyframes scan { 0%, 100% { transform: translate(0, 0) rotate(0); } 20% { transform: translate(-2.5px, -1.5px) rotate(-6deg); } 45% { transform: translate(2.5px, -2px) rotate(5deg); } 70% { transform: translate(1.5px, 1.5px) rotate(2deg); } }
  @keyframes glint { 0%, 100% { opacity: .25; } 45% { opacity: 1; } }

  /* 2: application lines write themselves */
  .steps-list.is-in .step-ico-file .ln { animation: write 5s ease-in-out infinite; }
  .steps-list.is-in .step-ico-file .ln1 { animation-delay: 1.3s; }
  .steps-list.is-in .step-ico-file .ln2 { animation-delay: 1.6s; }
  .steps-list.is-in .step-ico-file .ln3 { animation-delay: 1.9s; }
  @keyframes write { 0% { stroke-dashoffset: 10; opacity: 1; } 18%, 80% { stroke-dashoffset: 0; opacity: 1; } 92% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 10; opacity: 0; } }

  /* 3: key turns in the lock, sparks fly */
  .steps-list.is-in .step-ico-key .key { animation: turn 4.5s cubic-bezier(.34, 1.56, .64, 1) 1.6s infinite; }
  .steps-list.is-in .step-ico-key .sparks { animation: sparks 4.5s ease-out 1.6s infinite; }
  @keyframes turn { 0%, 45%, 100% { transform: rotate(0); } 58% { transform: rotate(-38deg); } 70% { transform: rotate(10deg); } 78% { transform: rotate(0); } }
  @keyframes sparks { 0%, 66% { opacity: 0; transform: translateX(-2px); } 72% { opacity: 1; } 88%, 100% { opacity: 0; transform: translateX(2px); } }
}

/* =========================================================
   Phase 2 animations
   ========================================================= */
.phase-anim { width: 100%; max-width: 240px; height: auto; overflow: visible; }
.fish-anim .water-line { fill: none; stroke: rgba(160, 214, 224, .45); stroke-width: 1.5; stroke-linecap: round; }
.fish-anim .bubbles circle { fill: none; stroke: rgba(160, 214, 224, .7); stroke-width: 1; opacity: 0; }
.fish-anim .fish-body { fill: rgba(244, 184, 96, .22); stroke: var(--gold-300); stroke-width: 1.8; stroke-linejoin: round; }
.fish-anim .fish-tail { fill: rgba(244, 184, 96, .35); stroke: var(--gold-300); stroke-width: 1.6; stroke-linejoin: round; transform-box: fill-box; transform-origin: 100% 50%; }
.fish-anim .fish-fin { fill: none; stroke: var(--gold-300); stroke-width: 1.4; stroke-linejoin: round; }
.fish-anim .fish-eye { fill: var(--gold-300); }
.fish-anim .fish-swim { transform: translate(80px, 36px); }

.trail-anim .trail-path { fill: none; stroke: rgba(160, 214, 224, .35); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.trail-anim .print { fill: var(--gold-300); }

.phase-num.is-counted { animation: countPop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes countPop { 50% { transform: scale(1.18); } }

@media (prefers-reduced-motion: no-preference) {
  /* Fish swims across the pond, turns around, tail wagging, bubbles rising */
  .fish-anim .fish-swim { animation: swim 9s ease-in-out infinite; }
  .fish-anim .fish { animation: flip 9s step-end infinite; }
  .fish-anim .fish-tail { animation: wag .45s ease-in-out infinite alternate; }
  .fish-anim .bubbles circle { animation: bubble 3.6s ease-in infinite; }
  .fish-anim .bubbles circle:nth-child(2) { animation-delay: 1.2s; }
  .fish-anim .bubbles circle:nth-child(3) { animation-delay: 2.4s; }
  .fish-anim .water-line { animation: waterDrift 3s linear infinite; }
  @keyframes swim {
    0% { transform: translate(28px, 38px); }
    25% { transform: translate(80px, 31px); }
    46%, 50% { transform: translate(134px, 37px); }
    75% { transform: translate(80px, 44px); }
    96%, 100% { transform: translate(28px, 38px); }
  }
  @keyframes flip { 0% { transform: scaleX(1); } 48% { transform: scaleX(-1); } 98% { transform: scaleX(1); } }
  @keyframes wag { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
  @keyframes bubble { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-46px); } }
  @keyframes waterDrift { to { transform: translateX(-28px); } }

  /* Footsteps appear one after another along the trail, then fade behind */
  .trail-anim .print { opacity: 0; animation: footstep 4.2s ease-out infinite; animation-delay: calc(var(--i) * .38s); }
  @keyframes footstep { 0% { opacity: 0; } 5% { opacity: 1; } 50% { opacity: .85; } 72%, 100% { opacity: 0; } }
}


/* =========================================================
   Photo backgrounds (reviews, final CTA)
   ========================================================= */
.has-photo { position: relative; isolation: isolate; overflow: hidden; }
.section-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.section-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; will-change: transform; }
.section-photo::after { content: ""; position: absolute; inset: 0; }

.reviews.has-photo { background: var(--pine-900); color: var(--cream-200); }
.reviews.has-photo .section-photo::after { background: linear-gradient(180deg, rgba(13, 21, 18, .82) 0%, rgba(13, 21, 18, .62) 45%, rgba(13, 21, 18, .85) 100%); }
.reviews.has-photo .eyebrow { color: var(--gold-300); }
.reviews.has-photo .h2 { color: var(--cream-100); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.reviews.has-photo .review-card { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.reviews.has-photo .icon-btn { border-color: rgba(245, 238, 223, .6); color: var(--cream-200); background: rgba(13, 21, 18, .35); }
.reviews.has-photo .icon-btn:hover { background: var(--cream-200); color: var(--pine-900); }
.reviews.has-photo .carousel-dots button::before { background: rgba(245, 238, 223, .35); }
.reviews.has-photo .carousel-dots button[aria-selected="true"]::before { background: var(--ember-500); }
.reviews.has-photo .btn-outline { --btn-fg: var(--cream-200); --btn-bd: rgba(245, 238, 223, .7); background: rgba(13, 21, 18, .3); }
.reviews.has-photo .btn-outline:hover { --btn-bg: var(--cream-200); --btn-fg: var(--pine-900); background: var(--cream-200); }
.reviews.has-photo .text-link { color: var(--gold-300); }
.reviews.has-photo .rating-card, .reviews.has-photo .review-card:not(.review-card-cta) { color: var(--ink-900); }

.final-cta.has-photo { background: var(--dusk-900); padding-block: clamp(6rem, 5rem + 6vw, 10rem); }
.final-cta.has-photo .section-photo::after { background: radial-gradient(120% 90% at 50% 100%, rgba(154, 69, 82, .55) 0%, rgba(42, 33, 64, .72) 45%, rgba(27, 21, 48, .9) 85%); }
.final-cta.has-photo .h2, .final-cta.has-photo p { text-shadow: 0 2px 20px rgba(0, 0, 0, .45); }

/* =========================================================
   Gallery
   ========================================================= */
.gallery { padding-top: 0; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-6); }
.g-tabs { position: relative; display: inline-flex; padding: 5px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.g-tabs button { position: relative; z-index: 1; min-height: 44px; padding: 0 1.3rem; border: 0; border-radius: var(--radius-pill); background: transparent; font-weight: 700; color: var(--ink-700); cursor: pointer; transition: color var(--dur); }
.g-tabs button[aria-selected="true"] { color: var(--cream-200); background: var(--pine-800); }
.g-tabs.has-ink button[aria-selected="true"] { background: transparent; }
.g-tab-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: var(--radius-pill); background: var(--pine-800); transition: transform var(--dur-slow) var(--ease-out), width var(--dur-slow) var(--ease-out); }

.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; gap: .75rem; }
@media (min-width: 720px) { .g-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 1rem; } }
.g-grid[hidden] { display: none; }
.g-item { position: relative; }
.g-port { grid-row: span 2; }
.g-land { grid-column: span 2; }
.g-feature { grid-column: span 2; grid-row: span 2; }
.g-btn { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--sand-300); box-shadow: var(--shadow-1); }
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.g-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13, 21, 18, .75)); }
.g-cap { position: absolute; left: .9rem; right: .9rem; bottom: .75rem; z-index: 1; color: var(--cream-100); font-weight: 700; font-size: .9rem; line-height: 1.3; text-align: left; transform: translateY(4px); transition: transform var(--dur-slow) var(--ease-out); }
.g-btn:hover img { transform: scale(1.06); }
.g-btn:hover .g-cap { transform: none; }
.g-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 719px) { .g-cap { font-size: .8rem; left: .6rem; right: .6rem; bottom: .5rem; } }
.gallery-note { margin-top: var(--space-5); font-size: .92rem; color: var(--text-muted); }

@media (prefers-reduced-motion: no-preference) {
  .g-grid.is-entering .g-item { animation: gIn .7s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
  @keyframes gIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 12, 10, .95); color: var(--cream-200); overflow: hidden; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(8, 12, 10, .95); }
.lb-stage { position: absolute; top: 64px; right: 72px; bottom: 84px; left: 72px; display: grid; place-items: center; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none; transition: opacity var(--dur); }
.lb-img.is-loading { opacity: .35; }
.lb-caption { position: absolute; left: 16px; right: 16px; bottom: calc(28px + env(safe-area-inset-bottom)); text-align: center; font-weight: 700; margin: 0; }
.lb-count { position: absolute; top: calc(24px + env(safe-area-inset-top)); left: 20px; font-size: .9rem; font-weight: 700; letter-spacing: .08em; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(245, 238, 223, .3); background: rgba(13, 21, 18, .6); color: var(--cream-200); cursor: pointer; transition: background-color var(--dur), transform var(--dur) var(--ease-out); }
.lb-btn:hover { background: var(--ember-500); color: var(--ink-900); border-color: transparent; }
.lb-btn:active { transform: scale(.94); }
.lb-btn .ico { width: 22px; height: 22px; }
.lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 719px) {
  .lb-stage { top: 64px; right: 8px; bottom: 132px; left: 8px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); margin: 0; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb-caption { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lb-stage { animation: lbIn .35s var(--ease-out); }
  @keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
  .lb-img.is-swap { animation: lbSwap .3s var(--ease-out); }
  @keyframes lbSwap { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); } }
}
body.lb-open { overflow: hidden; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track > :nth-child(n+19) { display: none; }
  .pond-water span:first-child { opacity: .6; transform: scale(1.4); }
  .embers { display: none; }
}
