/*
Theme Name: Melvin Listing
Theme URI: https://1332melvin.com
Author: Matt
Description: A custom single-property "For Sale By Owner" listing theme. Edit everything under Appearance → Listing Settings.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: melvin-listing
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #171614;
  --ink-2: #3b3934;
  --muted: #7a756b;
  --paper: #f5f1ea;
  --paper-2: #ece6db;
  --card: #fffdf9;
  --line: rgba(23, 22, 20, .12);
  --accent: #9a7442;       /* brass */
  --accent-2: #2f4a3d;     /* deep evergreen */
  --radius: 18px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(38px, 5.2vw, 72px); }
h2 em, h1 em { font-style: italic; color: var(--accent); }
h3 { font-size: 26px; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent-2); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(8px); background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 22px 0; color: #fff;
  transition: background .4s, padding .4s, color .4s, box-shadow .4s;
}
.nav.is-solid { background: rgba(245, 241, 234, .88); backdrop-filter: blur(16px) saturate(1.4); color: var(--ink); padding: 12px 0; box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { font-family: var(--serif); font-size: 24px; text-decoration: none; letter-spacing: -.01em; }
.nav__brand span { font-style: italic; color: var(--accent); }
.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 600; }
.nav__links a { text-decoration: none; opacity: .85; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { right: 0; }
.nav .btn { padding: 11px 20px; font-size: 14px; }
.nav:not(.is-solid) .btn--solid { background: #fff; color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media .ph { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: kenburns 18s var(--ease) forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,9,.55) 0%, rgba(10,10,9,0) 28%),
    linear-gradient(0deg, rgba(10,10,9,.82) 0%, rgba(10,10,9,.25) 45%, rgba(10,10,9,0) 70%);
}
.hero__content { position: absolute; left: 0; right: 0; bottom: 150px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 0 0 rgba(126,226,168,.7); animation: pulse 2.2s infinite; }
.pill--pending i { background: #f3c25b; }
.pill--sold i { background: #ef7d6b; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(126,226,168,0); } 100% { box-shadow: 0 0 0 0 rgba(126,226,168,0); } }
.hero h1 { font-size: clamp(56px, 10vw, 156px); margin: 22px 0 6px; line-height: .92; letter-spacing: -.035em; }
.hero__sub { font-size: clamp(17px, 1.7vw, 22px); opacity: .9; margin: 0 0 30px; }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__price { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.01em; margin-right: 8px; }
.hero__price small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.hero__stats {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255,255,255,.18);
  background: rgba(15,15,13,.28); backdrop-filter: blur(14px);
}
.hero__stats ul { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); list-style: none; margin: 0 auto; padding: 0; }
.hero__stats li { padding: 22px 0 22px 24px; border-left: 1px solid rgba(255,255,255,.14); }
.hero__stats li:first-child { border-left: 0; padding-left: 0; }
.hero__stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; }
.hero__stats span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.scroll-cue { position: absolute; right: 32px; bottom: 120px; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(#fff, transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Placeholder (no photo yet) ---------- */
.ph { background: linear-gradient(135deg, #3e4a40, #8b7a5f 60%, #c8b28c); display: grid; place-items: center; color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(90px, 12vw, 160px) 0; }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; margin-bottom: 64px; }
.section__head .eyebrow { margin-bottom: 22px; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .lede { color: rgba(245,241,234,.75); }
.section--tint { background: var(--paper-2); }

/* Overview */
.overview { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.overview__media { position: relative; }
.overview__media .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.overview__media .frame img, .overview__media .frame .ph { width: 100%; height: 100%; object-fit: cover; }
.overview__badge {
  position: absolute; right: -28px; bottom: 40px;
  width: 150px; height: 150px; border-radius: 50%; background: var(--accent-2); color: var(--paper);
  display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: 18px; line-height: 1.15;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.overview__badge b { display: block; font-size: 40px; font-weight: 400; }
.overview__text h2 { margin: 22px 0 28px; }
.overview__text .rich p { color: var(--ink-2); margin: 0 0 1.1em; }
.overview__text .rich p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 82px; line-height: .8; padding: 8px 12px 0 0; color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.facts div:nth-child(odd) { padding-right: 22px; }
.facts div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 11vw; gap: 14px; }
.gallery button { all: unset; cursor: zoom-in; position: relative; overflow: hidden; border-radius: 14px; background: #222; }
.gallery button img, .gallery button .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .4s; }
.gallery button:hover img { transform: scale(1.06); }
.gallery button::after { content: attr(data-caption); position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.gallery button:hover::after { opacity: 1; transform: none; }
.gallery button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery .g1 { grid-column: span 7; grid-row: span 4; }
.gallery .g2 { grid-column: span 5; grid-row: span 2; }
.gallery .g3 { grid-column: span 5; grid-row: span 2; }
.gallery .g4 { grid-column: span 4; grid-row: span 3; }
.gallery .g5 { grid-column: span 4; grid-row: span 3; }
.gallery .g6 { grid-column: span 4; grid-row: span 3; }
.gallery__more { position: absolute; inset: 0; background: rgba(10,10,9,.55); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; z-index: 1; transition: background .3s; }
.gallery button:hover .gallery__more { background: rgba(10,10,9,.4); }
.gallery__bar { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 20px; flex-wrap: wrap; }
.gallery__bar p { margin: 0; color: rgba(245,241,234,.6); font-size: 14px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,7,.97); color: #fff; display: none; grid-template-rows: auto 1fr auto; }
.lb.is-open { display: grid; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; font-size: 14px; }
.lb__count { letter-spacing: .14em; }
.lb__stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 0 80px; touch-action: pan-y; }
.lb__stage img { max-height: calc(100svh - 190px); width: auto; object-fit: contain; border-radius: 6px; transition: opacity .25s; }
.lb__cap { text-align: center; font-size: 14px; opacity: .75; min-height: 20px; margin-top: 10px; }
.lb__btn { all: unset; cursor: pointer; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); transition: background .25s; }
.lb__btn:hover { background: rgba(255,255,255,.12); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 18px; } .lb__next { right: 18px; }
.lb__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 24px 22px; scrollbar-width: none; }
.lb__thumbs button { all: unset; cursor: pointer; flex: 0 0 84px; height: 58px; border-radius: 6px; overflow: hidden; opacity: .45; transition: opacity .25s; }
.lb__thumbs button.is-active, .lb__thumbs button:hover { opacity: 1; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; transition: transform .5s var(--ease), box-shadow .5s; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(40,30,10,.35); }
.feature__num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 15px; }
.feature h3 { margin: 10px 0 18px; }
.feature ul { list-style: none; margin: 0; padding: 0; }
.feature li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; font-size: 15px; color: var(--ink-2); }
.feature li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg); }

/* Video / tour */
.tour { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.tour iframe { width: 100%; height: 100%; border: 0; }

/* Floor plans */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; }
.tabs button.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan { display: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.plan.is-active { display: block; animation: fade .4s; }
.plan img { margin: 0 auto; max-height: 760px; width: auto; cursor: zoom-in; }

/* Neighborhood */
.hood { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 520px; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 520px; border: 0; filter: grayscale(.85) contrast(1.05) sepia(.12); transition: filter .6s; }
.map:hover iframe { filter: none; }
.hood__side { display: grid; gap: 24px; align-content: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel h3 { font-size: 22px; margin-bottom: 14px; }
.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.list-rows li span:last-child { color: var(--muted); white-space: nowrap; }

/* Open house */
.oh { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.oh__card { border: 1px solid rgba(245,241,234,.2); border-radius: var(--radius); padding: 26px; display: flex; gap: 20px; align-items: center; }
.oh__date { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); }
.oh__card b { display: block; font-size: 17px; }
.oh__card span { opacity: .7; font-size: 14px; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
.calc__inputs { display: grid; gap: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.field label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.field label output { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--accent-2); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2) var(--p, 50%), var(--paper-2) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent-2); cursor: grab; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent-2); cursor: grab; }
.calc__out { background: var(--accent-2); color: var(--paper); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.calc__total { font-family: var(--serif); font-size: clamp(56px, 6vw, 84px); line-height: 1; letter-spacing: -.02em; }
.calc__total small { font-family: var(--sans); font-size: 16px; opacity: .7; letter-spacing: 0; }
.calc__break { list-style: none; padding: 0; margin: 0; }
.calc__break li { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid rgba(245,241,234,.18); font-size: 15px; }
.calc__note { font-size: 12px; opacity: .6; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); }
.contact h2 { margin: 22px 0 22px; }
.contact__card { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(245,241,234,.18); display: grid; gap: 14px; }
.contact__card a { display: flex; align-items: center; gap: 14px; text-decoration: none; font-size: 18px; }
.contact__card a svg { width: 20px; height: 20px; color: var(--accent); }
.contact__card a:hover { color: #fff; }
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; letter-spacing: .02em; }
.form input:not([type=radio]), .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  transition: border-color .25s, box-shadow .25s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(47,74,61,.12); }
.form textarea { min-height: 120px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { margin: 0; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: 14px; transition: .25s; }
.chips input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + label { outline: 2px solid var(--accent); }
.hp { position: absolute; left: -9999px; }
.form__status { grid-column: 1 / -1; margin: 0; font-size: 15px; font-weight: 600; min-height: 1em; }
.form__status.ok { color: var(--accent-2); }
.form__status.err { color: #b3402f; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }

/* Footer */
.foot { background: #0f0f0d; color: rgba(245,241,234,.6); padding: 60px 0 110px; font-size: 13px; }
.foot__big { font-family: var(--serif); color: var(--paper); font-size: clamp(44px, 9vw, 140px); line-height: .9; letter-spacing: -.035em; margin: 0 0 40px; }
.foot__big em { color: var(--accent); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(245,241,234,.12); padding-top: 24px; }
.foot__row p { margin: 0; max-width: 70ch; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 22px; height: 22px; }

/* Mobile action bar */
.mbar { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; display: none; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(23,22,20,.9); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: translateY(140%); transition: transform .5s var(--ease); }
.mbar.is-on { transform: none; }
.mbar a { text-align: center; padding: 13px 0; border-radius: 999px; color: var(--paper); text-decoration: none; font-weight: 700; font-size: 14px; }
.mbar a:last-child { background: var(--paper); color: var(--ink); }

/* Reveal */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.status-banner { position: relative; z-index: 2; background: var(--accent); color: #fff; text-align: center; padding: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }

/* Generic page content (index.php fallback) */
.page-generic { padding: 160px 0 100px; }
.page-generic .rich { max-width: 760px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav__links, .nav .btn { display: none; }
  .nav__toggle { display: block; color: inherit; }
  .nav.is-open { background: var(--paper); color: var(--ink); }
  .nav.is-open .nav__links { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 10px 24px 28px; gap: 4px; font-size: 22px; font-family: var(--serif); font-weight: 400; box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  .nav.is-open .nav__links a { display: block; padding: 10px 0; }
  .section__head, .overview, .hood, .calc, .contact { grid-template-columns: 1fr; }
  .overview__badge { right: 16px; width: 120px; height: 120px; font-size: 15px; }
  .overview__badge b { font-size: 32px; }
  .gallery { grid-auto-rows: 22vw; }
  .gallery .g1 { grid-column: span 12; grid-row: span 3; }
  .gallery .g2, .gallery .g3 { grid-column: span 6; grid-row: span 2; }
  .gallery .g4, .gallery .g5, .gallery .g6 { grid-column: span 4; grid-row: span 2; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .hero__content { bottom: 200px; }
  .hero::after { background: linear-gradient(0deg, rgba(10,10,9,.9) 0%, rgba(10,10,9,.55) 55%, rgba(10,10,9,.2) 100%); }
  .hero__stats ul { grid-template-columns: repeat(3, 1fr); }
  .hero__stats li { padding: 14px 0 14px 14px; }
  .hero__stats li:nth-child(4) { border-left: 0; padding-left: 0; }
  .hero__stats li:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.14); }
  .hero__row .btn--ghost { display: none; }
  .scroll-cue { display: none; }
  .gallery { grid-auto-rows: 30vw; gap: 8px; }
  .gallery .g4, .gallery .g5, .gallery .g6 { grid-column: span 6; }
  .gallery .g6 { grid-column: span 12; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(n) { padding: 14px 0; border-left: 0; }
  .form { grid-template-columns: 1fr; }
  .lb__stage { padding: 0 8px; }
  .lb__prev, .lb__next { display: none; }
  .mbar { display: grid; }
  .map, .map iframe { min-height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}
