/* ===== Nestlewood Realty: Elite ===== */
:root {
  --accent: #f78d2d; --accent-soft: #f9b073; --cream: #f4efe8; --ink: #17161a; --muted: #77716b;
  --serif: "Instrument Serif", Georgia, serif; --sans: "Inter", system-ui, sans-serif;
  --glass: rgba(255,255,255,.12); --glass-line: rgba(255,255,255,.28); --r: 26px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--cream); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
em { font-style: italic; color: var(--accent); }
.wrap { width: min(1240px, 92%); margin: 0 auto; }
.eyebrow { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.1rem; font-weight: 500; }

/* Pill buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95em 1.7em; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.75); color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  backdrop-filter: blur(6px); transition: background .3s, color .3s, transform .3s, border-color .3s; cursor: pointer; background: transparent; font-family: var(--sans); }
.pill:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.pill.light { background: #fff; color: var(--ink); border-color: #fff; }
.pill.light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pill.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill.solid:hover { background: #fff; color: var(--ink); border-color: #fff; }
.pill.sm { padding: .75em 1.3em; font-size: .72rem; }

/* Intro curtain */
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; place-items: center; animation: curtainUp 1.1s cubic-bezier(.77,0,.18,1) 1.1s forwards; }
.curtain img { width: 220px; filter: brightness(0) invert(1); opacity: 0; animation: logoIn 1s ease .1s forwards; }
@keyframes logoIn { from { opacity: 0; transform: translateY(14px); letter-spacing: .3em; } to { opacity: 1; transform: none; } }
@keyframes curtainUp { to { transform: translateY(-100%); } }

/* Cursor glow */
.cursor-glow { position: fixed; z-index: 1; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; left: 0; top: 0;
  background: radial-gradient(circle, rgba(247,141,45,.18), transparent 65%); transform: translate(-50%,-50%); transition: opacity .4s; mix-blend-mode: screen; }

/* Floating nav */
.nav-wrap { position: fixed; top: 22px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; pointer-events: none; }
.nav-pill { pointer-events: auto; display: flex; align-items: center; gap: 1.8rem; padding: .55rem 1.6rem .55rem .7rem; border-radius: 999px;
  background: rgba(20,18,22,.38); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: .82rem; letter-spacing: .04em; transition: background .4s; }
.nav-pill a:not(.nav-logo) { opacity: .85; transition: opacity .2s; } .nav-pill a:not(.nav-logo):hover { opacity: 1; color: var(--accent-soft); }
.nav-logo { background: rgba(255,255,255,.95); border-radius: 999px; padding: .45rem 1rem; }
.nav-logo img { height: 26px; width: auto; }
.nav-cta { pointer-events: auto; position: absolute; right: 3%; top: 50%; transform: translateY(-50%); padding: .8rem 1.4rem; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; transition: transform .3s, background .3s; }
.nav-cta:hover { background: #fff; color: var(--ink); }
.nav-wrap.scrolled .nav-pill { background: rgba(20,18,22,.72); }

/* Hero frame */
.hero { padding: 14px; height: 100vh; min-height: 640px; }
.frame { position: relative; height: 100%; border-radius: var(--r); overflow: hidden; color: #fff; isolation: isolate; }
.frame.small { height: 78vh; min-height: 520px; }
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.scene .layer { animation: drift linear infinite; }
@keyframes drift { to { transform: translateX(-1600px); } }
.scene .sun { animation: sunPulse 6s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
@keyframes sunPulse { from { opacity: .85; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
.scene .bird { animation: fly 22s linear infinite; }
@keyframes fly { from { transform: translate(-120px, 0); } to { transform: translate(1760px, -60px); } }
.hero .scene svg, .contact .scene svg { animation: slowZoom 24s ease-in-out infinite alternate; transform-origin: 50% 80%; }
@keyframes slowZoom { to { transform: scale(1.08); } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity 1.6s ease; }
.hero-video.ready { opacity: 1; }
.fog { position: absolute; z-index: 2; left: -40%; width: 180%; height: 26%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,240,230,.42), rgba(255,240,230,0) 70%); filter: blur(18px); animation: fog 38s linear infinite; }
.fog.f1 { bottom: 18%; } .fog.f2 { bottom: 6%; height: 20%; animation-duration: 52s; animation-direction: reverse; opacity: .8; } .fog.f3 { bottom: 34%; height: 16%; animation-duration: 64s; opacity: .55; }
@keyframes fog { 0% { transform: translateX(-12%); } 50% { transform: translateX(12%); } 100% { transform: translateX(-12%); } }
.shade { position: absolute; inset: 0; z-index: 3; background: linear-gradient(90deg, rgba(10,10,20,.62) 0%, rgba(10,10,20,.2) 55%, rgba(10,10,20,.05)), linear-gradient(0deg, rgba(10,10,20,.55), transparent 45%); }

.trace-line { position: absolute; z-index: 4; left: 0; right: 0; top: 33%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35) 10%, rgba(255,255,255,.35) 90%, transparent); }
.trace-line::after { content: ""; position: absolute; top: -1px; height: 3px; width: 140px; border-radius: 3px; background: #fff; animation: trace 6s ease-in-out infinite; }
@keyframes trace { 0% { left: 4%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 92%; opacity: 0; } }
.chip { position: absolute; left: 6%; top: -16px; display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem; border-radius: 999px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(20,18,22,.45); backdrop-filter: blur(10px); border: 1px solid var(--glass-line); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(247,141,45,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(247,141,45,0); } 100% { box-shadow: 0 0 0 0 rgba(247,141,45,0); } }

.hero-copy { position: absolute; z-index: 5; left: 6%; bottom: 22%; max-width: 760px; }
.kicker { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; opacity: .85; margin: 0 0 1.2rem; }
.hero h1 { font-size: clamp(4.2rem, 10.5vw, 10rem); line-height: .9; }
.hero-sub { font-size: 1.08rem; font-weight: 300; opacity: .9; max-width: 480px; margin: 1.4rem 0 2rem; }
.hero-btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-btns.center { justify-content: center; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.split-words .w > span { display: inline-block; transform: translateY(110%); animation: wordUp 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes wordUp { to { transform: none; } }
.hero-copy .kicker, .hero-sub, .hero-btns, .hero-stats, .glass-card, .trace-line { opacity: 0; animation: fadeUp 1s ease forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero-stats { position: absolute; z-index: 5; left: 6%; bottom: 6%; display: flex; gap: 2.6rem; list-style: none; margin: 0; padding: 0; font-size: .75rem; opacity: .9; }
.hero-stats b { display: block; font: 2rem/1 var(--serif); font-weight: 400; margin-bottom: .2rem; }
.glass-card { position: absolute; z-index: 5; right: 3%; bottom: 6%; width: 270px; padding: 1.1rem; border-radius: 20px; background: rgba(20,18,22,.42);
  backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--glass-line); display: grid; gap: .8rem; }
.glass-card small { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.glass-card p { margin: 0; font-size: .92rem; line-height: 1.4; }
.glass-card img { width: 100%; height: 150px; object-fit: cover; object-position: center 18%; border-radius: 12px; background: #fff; }
.scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 3%; width: 24px; height: 40px; border: 1px solid rgba(255,255,255,.6); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 3px; background: #fff; transform: translateX(-50%); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; top: 6px; } 40% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* Marquee */
.marquee { overflow: hidden; padding: 2.6rem 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.track { display: flex; gap: 2.4rem; width: max-content; animation: marq 32s linear infinite; font: 4.6rem/1 var(--serif); white-space: nowrap; color: var(--ink); }
.track i { font-style: normal; color: var(--accent); font-size: 2rem; align-self: center; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Statement */
.statement { padding: 8rem 0; }
.st-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6rem; align-items: center; }
.st-photo { position: relative; }
.kb { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; background: #fff; }
.kb img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.12) translate(-2%, 2%); } }
.tag-glass { position: absolute; left: 18px; bottom: 18px; padding: .6rem 1rem; border-radius: 999px; background: rgba(20,18,22,.55); color: #fff; backdrop-filter: blur(10px); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.statement h2 { font-size: clamp(2.2rem, 3.6vw, 3.5rem); line-height: 1.12; }
.words .wd { opacity: .14; transition: opacity .5s ease; }
.words .wd.lit { opacity: 1; }
.statement .body { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 2rem 0 2.6rem; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-top: 1px solid rgba(0,0,0,.1); padding-top: 1.6rem; }
.counters b { display: block; font: 2.6rem/1 var(--serif); font-weight: 400; }
.counters span { font-size: .72rem; color: var(--muted); letter-spacing: .06em; }

/* Listings rail */
.listings { padding: 6rem 0 7rem; background: var(--ink); color: #fff; overflow: hidden; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.listings .eyebrow, .tools .eyebrow { color: rgba(255,255,255,.6); }
.head h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.arrows { display: flex; gap: .6rem; }
.arr { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: none; color: #fff; font-size: 1.2rem; cursor: pointer; transition: background .3s, color .3s; }
.arr:hover { background: #fff; color: var(--ink); }
.rail { display: flex; gap: 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 4% 1rem; scrollbar-width: none; scroll-behavior: smooth; }
.rail::-webkit-scrollbar { display: none; }
.home-card { position: relative; flex: 0 0 min(560px, 82vw); aspect-ratio: 4/3.2; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; }
.home-card .img { position: absolute; inset: 0; }
.home-card .img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.home-card:hover .img img { transform: scale(1.02); }
.home-card .info { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 1.1rem 1.3rem; border-radius: 18px; transition: transform .5s; }
.home-card:hover .info { transform: translateY(-6px); }
.glass { background: rgba(20,18,22,.42); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--glass-line); }
.home-card h3 { font-size: 2rem; margin: .4rem 0 .15rem; }
.home-card p { margin: 0; font-size: .85rem; opacity: .85; }
.badge { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--accent); }
.badge.sold { background: #fff; color: var(--ink); }
.progress { height: 2px; background: rgba(255,255,255,.15); margin-top: 2.4rem; border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 30%; background: var(--accent); transition: width .3s; }

/* Areas */
.areas { padding: 7rem 0; }
.panels { display: flex; gap: 1rem; height: 70vh; min-height: 520px; }
.panel { position: relative; flex: 1; border-radius: var(--r); overflow: hidden; color: #fff; cursor: pointer; transition: flex 1s cubic-bezier(.2,.8,.2,1); }
.panel.open { flex: 3.2; }
.p-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,20,.75), transparent 60%); }
.p-copy { position: absolute; left: 2rem; right: 2rem; bottom: 2rem; }
.p-copy .num { font-size: .72rem; letter-spacing: .2em; opacity: .7; }
.panel h3 { font-size: clamp(2.4rem, 4vw, 4rem); margin: .3rem 0 .6rem; white-space: nowrap; }
.panel p, .panel .pill { opacity: 0; transform: translateY(14px); transition: opacity .6s .2s, transform .6s .2s; max-width: 420px; }
.panel.open p, .panel.open .pill { opacity: 1; transform: none; }
.panel p { margin: 0 0 1.2rem; font-weight: 300; }

/* Reviews */
.reviews { padding: 8rem 0; background: #ebe3d8; text-align: center; }
.rv-wrap { max-width: 1000px; }
.quotes { position: relative; min-height: 15rem; }
.q { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(20px); transition: opacity 1s, transform 1s; }
.q.on { opacity: 1; transform: none; }
.q p { font: clamp(2rem, 3.6vw, 3.3rem)/1.15 var(--serif); margin: 0 0 1.6rem; }
.q cite { font-style: normal; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.q-bars { display: flex; justify-content: center; gap: .5rem; margin: 2.4rem 0 1.6rem; }
.q-bars i { width: 60px; height: 3px; border-radius: 3px; background: rgba(0,0,0,.12); overflow: hidden; position: relative; }
.q-bars i.on::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: bar 7s linear forwards; transform-origin: left; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.under { font-size: .85rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Tools */
.tools { position: relative; padding: 9rem 0; color: #fff; overflow: hidden; }
.tools .scene { z-index: 0; }
.stars { position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 12%, #fff, transparent), radial-gradient(1px 1px at 85% 40%, #fff, transparent), radial-gradient(1px 1px at 10% 15%, #fff, transparent), radial-gradient(1.2px 1.2px at 55% 35%, #fff, transparent), radial-gradient(1px 1px at 30% 45%, #fff, transparent), radial-gradient(1.4px 1.4px at 92% 12%, #fff, transparent);
  animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .4; } to { opacity: 1; } }
.tools-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.tool { border-radius: var(--r); padding: 2.6rem; }
.tool h3 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); margin-bottom: 1rem; }
.tool p { font-weight: 300; opacity: .85; margin: 0 0 1.8rem; }
.line-form { display: flex; gap: .6rem; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: .6rem; align-items: center; }
.line-form input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: 1.05rem var(--sans); padding: .6rem 0; }
.line-form input::placeholder { color: rgba(255,255,255,.6); }

/* Contact */
.contact { padding: 14px; }
.c-copy { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.contact h2 { font-size: clamp(3.4rem, 8vw, 7.5rem); }
.c-copy > p { font-weight: 300; opacity: .9; margin: 1rem 0 2rem; }

/* Footer */
.foot { padding: 4rem 0 2rem; }
.foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.foot img { height: 50px; width: auto; }
.foot p { margin: 0; font-size: .88rem; color: var(--muted); }
.soc { display: flex; gap: 1.4rem; font-size: .85rem; } .soc a:hover { color: var(--accent); }
.fine { font-size: .74rem; color: var(--muted); margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(0,0,0,.08); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Phones */
@media (max-width: 900px) {
  .nav-pill a:not(.nav-logo) { display: none; } .nav-pill { padding: .45rem; }
  .nav-cta { right: 4%; padding: .7rem 1.1rem; }
  .hero { padding: 8px; } .frame { border-radius: 20px; }
  .hero-copy { bottom: 30%; left: 7%; right: 7%; }
  .hero-stats { gap: 1.4rem; bottom: 4%; left: 7%; } .hero-stats b { font-size: 1.5rem; }
  .glass-card { display: none; } .scroll-cue { display: none; } .trace-line { top: 24%; }
  .track { font-size: 3rem; }
  .st-grid, .tools-grid { grid-template-columns: 1fr; gap: 3rem; }
  .st-photo { max-width: 420px; }
  .counters { grid-template-columns: 1fr 1fr; row-gap: 1.6rem; }
  .panels { flex-direction: column; height: auto; } .panel { flex: none !important; height: 340px; }
  .panel p, .panel .pill { opacity: 1; transform: none; }
  .statement, .reviews { padding: 5rem 0; } .areas { padding: 5rem 0; } .tools { padding: 5rem 0; }
  .quotes { min-height: 19rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .curtain { display: none; } }
.panel:not(.open) h3 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); white-space: normal; transition: font-size .6s; }
@media (max-width: 900px) { .panel:not(.open) h3 { font-size: 2.6rem; } }

/* ===== Multi-page additions ===== */
.nav-pill a.active { color: var(--accent-soft); opacity: 1; }
.page-hero { padding: 14px; height: 68vh; min-height: 480px; }
.page-hero .frame { height: 100%; }
.ph-copy { position: absolute; z-index: 5; left: 6%; right: 6%; bottom: 12%; }
.ph-copy .crumb { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem; border-radius: 999px; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(20,18,22,.45); backdrop-filter: blur(10px); border: 1px solid var(--glass-line); margin-bottom: 1.4rem; opacity: 0; animation: fadeUp 1s ease .2s forwards; }
.ph-copy .crumb i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ping 2s infinite; }
.ph-copy h1 { font-size: clamp(3.6rem, 9vw, 8rem); line-height: .92; }
.ph-copy p { max-width: 560px; font-weight: 300; font-size: 1.08rem; opacity: 0; margin: 1.2rem 0 0; animation: fadeUp 1s ease .9s forwards; }
.ph-copy .split-words .w > span { animation-delay: .3s; }

.sec { padding: 7rem 0; }
.sec.tight { padding: 5rem 0; }
.sec.dark { background: var(--ink); color: #fff; }
.sec.dark .eyebrow { color: rgba(255,255,255,.6); }
.sec.sand { background: #ebe3d8; }
.sec h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 620px; font-weight: 300; }
.sec.dark .lead { color: rgba(255,255,255,.75); }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }

.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; counter-reset: s; }
.step { counter-increment: s; border-radius: var(--r); padding: 2rem 1.6rem; background: #fff; border: 1px solid rgba(0,0,0,.06); transition: transform .5s, box-shadow .5s; }
.step:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0,0,0,.08); }
.step::before { content: counter(s, decimal-leading-zero); display: block; font: 3rem/1 var(--serif); color: var(--accent); margin-bottom: 1rem; }
.step h3 { font-size: 1.9rem; margin-bottom: .5rem; } .step p { margin: 0; color: var(--muted); font-size: .93rem; }
.sec.dark .step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); } .sec.dark .step p { color: rgba(255,255,255,.7); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid3 .home-card { flex: none; width: 100%; color: #fff; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3.4rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,0,0,.2), transparent); }
.tl { position: relative; }
.tl i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 1.6rem var(--serif); font-style: italic; margin-bottom: 1.2rem; position: relative; }
.tl h3 { font-size: 1.8rem; margin-bottom: .4rem; } .tl p { margin: 0; color: var(--muted); font-size: .93rem; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 1rem; margin-top: 2.6rem; }
.gallery > div { border-radius: var(--r); overflow: hidden; position: relative; }
.gallery > div:first-child { grid-row: span 2; }
.gallery .label { position: absolute; left: 14px; bottom: 14px; z-index: 3; padding: .45rem .9rem; border-radius: 999px; background: rgba(20,18,22,.5); color: #fff; backdrop-filter: blur(10px); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }

.calc { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: var(--r); overflow: hidden; margin-top: 2.6rem; }
.calc .inputs { background: #fff; padding: 2.6rem; display: grid; gap: 1.2rem; }
.calc .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.calc label, .form label { display: grid; gap: .4rem; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.calc input, .form input, .form select, .form textarea { font: 1.05rem var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(0,0,0,.18); padding: .55rem 0; outline: none; transition: border-color .3s; }
.calc input:focus, .form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.calc .result { position: relative; color: #fff; padding: 2.6rem; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.calc .result > *:not(.scene) { position: relative; z-index: 2; }
.calc .result::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,20,.35); z-index: 1; }
.calc .pay { font: clamp(3.6rem, 6vw, 5.4rem)/1 var(--serif); margin: .5rem 0 1.4rem; }
.calc .bd { display: grid; gap: .5rem; font-size: .9rem; border-top: 1px solid rgba(255,255,255,.25); padding-top: 1rem; }
.calc .bd div { display: flex; justify-content: space-between; } .calc .bd span { opacity: .75; }
.fine { font-size: .76rem; color: var(--muted); margin: 0; }

.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split2.top { align-items: start; }
.form { display: grid; gap: 1.4rem; background: #fff; border-radius: var(--r); padding: 2.6rem; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form textarea { resize: vertical; }
.checks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .8rem; }
.checks li { padding-left: 1.8rem; position: relative; } .checks li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.fact { border-radius: 20px; padding: 1.6rem; background: #fff; }
.fact b { display: block; font: 2.2rem/1 var(--serif); font-weight: 400; } .fact span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.area-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; position: relative; }

.contact-list { display: grid; gap: .8rem; margin-top: 2rem; max-width: 380px; }
.contact-list .pill { justify-content: flex-start; color: var(--ink); border-color: rgba(0,0,0,.2); }
.contact-list .pill.solid { color: #fff; }
.booking { border-radius: var(--r); overflow: hidden; position: relative; min-height: 380px; color: #fff; display: grid; place-items: center; text-align: center; padding: 2rem; }
.booking > *:not(.scene) { position: relative; z-index: 2; }
.cal { display: grid; grid-template-columns: repeat(7, 36px); gap: 6px; justify-content: center; margin: 1.2rem 0; }
.cal i { height: 36px; border-radius: 10px; background: rgba(255,255,255,.12); font-style: normal; font-size: .8rem; display: grid; place-items: center; backdrop-filter: blur(6px); }
.cal i.av { background: rgba(247,141,45,.35); } .cal i.sel { background: var(--accent); }

.page-fade { animation: pageIn .9s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .page-hero { padding: 8px; height: 60vh; } .ph-copy { bottom: 10%; }
  .steps4, .timeline, .facts { grid-template-columns: 1fr 1fr; } .timeline::before { display: none; }
  .grid3, .split2, .calc { grid-template-columns: 1fr; gap: 2.6rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px 150px; } .gallery > div:first-child { grid-column: span 2; grid-row: auto; }
  .sec { padding: 4.5rem 0; }
}
@media (max-width: 560px) { .steps4, .facts, .calc .row2, .form .row2 { grid-template-columns: 1fr; } .timeline { grid-template-columns: 1fr; } }

/* Real photo backgrounds (slow zoom) */
.photo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburns 22s ease-in-out infinite alternate; }
.panel .photo-bg { animation-duration: 16s; }

/* Phone layout fixes */
@media (max-width: 900px) {
  .nav-wrap { justify-content: flex-start; padding-left: 4%; }
  .trace-line { display: none; }
}

/* ===== Mobile menu ===== */
.menu-btn { display: none; }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-cta { display: none; }
  .menu-btn { pointer-events: auto; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); z-index: 120; display: flex; align-items: center; gap: .55rem;
    padding: .7rem 1.05rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(20,18,22,.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; }
  .menu-btn span:not(.menu-word) { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s; }
  .menu-btn span:nth-child(2) { margin-left: -24px; transform: translateY(5px); }
  .menu-btn span:nth-child(1) { transform: translateY(-3px); }
  .menu-word { font: 500 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-left: .2rem; }
  body.menu-open .menu-btn { background: var(--accent); border-color: var(--accent); }
  body.menu-open .menu-btn span:nth-child(1) { transform: rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { transform: rotate(-45deg); }
  body.menu-open { overflow: hidden; }

  .mobile-menu { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 110; padding: 96px 7% 2rem; overflow-y: auto;
    background: rgba(18,16,20,.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff;
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
  body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
  .mm-links { display: grid; }
  .mm-links a { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.1);
    font: 2.4rem/1.1 var(--serif); opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .45s; }
  .mm-links a i { font-style: normal; font-size: 1.2rem; color: rgba(255,255,255,.4); }
  .mm-links a.active { color: var(--accent-soft); } .mm-links a.active i { color: var(--accent); }
  body.menu-open .mm-links a { opacity: 1; transform: none; }
  body.menu-open .mm-links a:nth-child(2) { transition-delay: .04s; } body.menu-open .mm-links a:nth-child(3) { transition-delay: .08s; }
  body.menu-open .mm-links a:nth-child(4) { transition-delay: .12s; } body.menu-open .mm-links a:nth-child(5) { transition-delay: .16s; }
  body.menu-open .mm-links a:nth-child(6) { transition-delay: .2s; } body.menu-open .mm-links a:nth-child(7) { transition-delay: .24s; }
  .mm-label { margin: 1.8rem 0 .7rem; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.5); }
  .mm-areas { display: flex; flex-wrap: wrap; gap: .5rem; }
  .mm-areas a { padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); font-size: .88rem; }
  .mm-contact { display: grid; gap: .6rem; margin-top: auto; padding-top: 2rem; }
  .mm-contact .pill { width: 100%; }
}
@media (max-width: 900px) { body.menu-open .nav-wrap { z-index: 130; } }

/* ===== Phone tab bar (always visible) ===== */
.tabbar { display: none; }
@media (max-width: 900px) {
  .nav-wrap { top: 12px; }
  .tabbar { pointer-events: auto; position: absolute; top: calc(100% + 8px); left: 4%; right: 4%; display: flex; justify-content: space-between; gap: 2px; padding: 4px;
    border-radius: 999px; background: rgba(20,18,22,.62); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(255,255,255,.18); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
  .tabbar a { flex: 1; text-align: center; padding: .55rem .2rem; border-radius: 999px; color: rgba(255,255,255,.85); font: 500 .78rem var(--sans); letter-spacing: .02em; white-space: nowrap; transition: background .2s, color .2s; }
  .tabbar a.active { background: var(--accent); color: #fff; }
  body.menu-open .tabbar { opacity: 0; pointer-events: none; }
  .mobile-menu { padding-top: 84px; }
  .ph-copy .crumb { margin-top: 0; }
}
@media (max-width: 900px) {
  .hero { min-height: 720px; }
  .hero-copy { top: 142px; bottom: auto; }
  .page-hero { min-height: 520px; }
}
@media (max-width: 360px) { .hero { min-height: 800px; } .hero h1 { font-size: 3.6rem; } }
@media (max-width: 900px) {
  .nav-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 128px; pointer-events: none; z-index: -1;
    background: rgba(244,239,232,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0,0,0,.06);
    opacity: 0; transition: opacity .3s; }
  .nav-wrap.scrolled::before { opacity: 1; }
  body.menu-open .nav-wrap::before { opacity: 0; }
}
/* Phones: no hamburger menu; show the Let's talk button instead */
@media (max-width: 900px) {
  .nav-cta { display: inline-flex; right: 4%; padding: .75rem 1.15rem; font-size: .72rem; }
  .menu-btn, .mobile-menu { display: none !important; }
}


/* ===== Performance: motion only in the top section of each page ===== */
.still-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.scene.still .layer, .scene.still .sun, .scene.still .bird, .scene.still svg { animation: none !important; }
.tools .stars, .booking .stars { animation: none !important; opacity: .8; }
.panel .photo-bg, .area-photo .photo-bg { animation: none !important; }


/* ===== Home: moving lead-tool section with hover grow ===== */
.tools .stars { animation: twinkle 4s ease-in-out infinite alternate !important; }
.tools .tool { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s, border-color .5s, opacity 1.1s ease; }
.tools .tool.reveal.in:hover { transform: scale(1.045); box-shadow: 0 30px 60px rgba(0,0,0,.35); border-color: rgba(247,141,45,.6); }

/* ===== One-line review strip ===== */
.quote-strip { padding: 4.2rem 0; background: var(--ink); color: #fff; }
.qs-inner { text-align: center; }
.qs-stars { color: var(--accent); letter-spacing: 4px; font-size: 1rem; margin-bottom: 1.2rem; }
.qs-stars span { letter-spacing: .18em; font-size: .7rem; text-transform: uppercase; color: rgba(255,255,255,.6); margin-left: .6rem; }
.qs-stage { position: relative; min-height: 8.5rem; max-width: 980px; margin: 0 auto; }
.qs { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.qs.on { opacity: 1; transform: none; }
.qs p { font: clamp(1.6rem, 3vw, 2.6rem)/1.2 var(--serif); margin: 0 0 1rem; }
.qs cite { font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@media (max-width: 900px) { .qs-stage { min-height: 12rem; } .quote-strip { padding: 3rem 0; } }

/* ===== Résumé cards ===== */
.resumes { background: #ebe3d8; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.res-card { display: grid; grid-template-columns: 170px 1fr; gap: 1.6rem; align-items: center; background: #fff; border-radius: var(--r); padding: 1.4rem; transition: transform .4s, box-shadow .4s; }
.res-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.1); }
.res-card img { width: 100%; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.res-card h3 { font-size: 2.2rem; margin-bottom: .5rem; }
.res-card p:not(.eyebrow) { color: var(--muted); font-size: .92rem; margin: 0 0 1.2rem; }
@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr; } .res-card { grid-template-columns: 110px 1fr; gap: 1rem; } .res-card h3 { font-size: 1.7rem; } }

/* faster, tighter review strip */
.qs { transition: opacity .55s ease, transform .55s ease; }
.qs-stage { min-height: 6.5rem; }
.quote-strip { padding: 3.6rem 0; }
@media (max-width: 900px) { .qs-stage { min-height: 9rem; } }
/* home value: address + phone, stacked */
.line-form.stack { flex-direction: column; align-items: stretch; border-bottom: 0; padding-bottom: 0; gap: .35rem; }
.line-form.stack input { border-bottom: 1px solid rgba(255,255,255,.4); }
.line-form.stack button { align-self: flex-start; margin-top: .8rem; }
.guide-btn { margin-top: .4rem; }
.statement h2.home-story { font-size: clamp(1.9rem, 2.9vw, 2.8rem); line-height: 1.16; }

/* ===== Full review under the one-line strip ===== */
.full-review { max-width: 760px; margin: 2.6rem auto 0; padding-top: 2.4rem; border-top: 1px solid rgba(255,255,255,.12); text-align: left; }
.fr-stars { color: var(--accent); letter-spacing: 4px; font-size: .95rem; margin-bottom: 1rem; }
.full-review blockquote { margin: 0; }
.full-review blockquote p { font: 300 1.12rem/1.7 var(--sans); color: rgba(255,255,255,.88); margin: 0 0 .9rem; }
.full-review blockquote p:first-child { font: clamp(1.5rem, 2.4vw, 2rem)/1.25 var(--serif); color: #fff; }
.full-review figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-top: 1.4rem; }
.full-review figcaption b { font-weight: 500; }
.full-review figcaption span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.full-review figcaption a { margin-left: auto; color: var(--accent-soft); font-size: .88rem; }
@media (max-width: 600px) { .full-review figcaption a { margin-left: 0; width: 100%; } }

/* ===== Phone-or-email note ===== */
.form-note { font-size: .74rem; color: rgba(255,255,255,.6); margin-top: .2rem; }
.form-note.dark { color: var(--muted); margin-top: -.6rem; }
.form-note.err, .form-note.dark.err { color: #ff8a5c; }

/* ===== Relocation: town finder ===== */
.towns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.town { display: flex; flex-direction: column; gap: .8rem; background: #fff; border-radius: var(--r); padding: 1.6rem; border: 1px solid rgba(0,0,0,.06); transition: transform .35s, box-shadow .35s, border-color .35s; }
.town:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(0,0,0,.09); border-color: rgba(247,141,45,.5); }
.t-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.town h3 { font-size: 1.9rem; margin: 0; }
.t-top span { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.town p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.t-drive { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-top: .8rem; border-top: 1px solid rgba(0,0,0,.07); }
.t-drive b { display: block; font: 1.35rem/1.1 var(--serif); font-weight: 400; }
.t-drive span { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.town i { font-style: normal; font-size: .85rem; color: var(--accent); }
@media (max-width: 1000px) { .towns { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .towns { grid-template-columns: 1fr; } }

/* ===== Market update ===== */
.mk { margin-top: 3rem; }
.mk-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid rgba(0,0,0,.1); padding-bottom: .8rem; }
.mk-head h3 { font-size: 2.2rem; margin: 0; }
.mk-head span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.steps4.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps4.three { grid-template-columns: 1fr; } }

/* ===== Footer: areas + Equal Housing logo ===== */
.foot-areas { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 2rem; font-size: .82rem; color: var(--muted); }
.foot-areas span { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; width: 100%; margin-bottom: .2rem; }
.foot-areas a:hover { color: var(--accent); }
.eho-line { display: flex; align-items: center; gap: .7rem; margin: 1.6rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(0,0,0,.08); }
.eho { width: 26px; height: 26px; flex: none; color: var(--muted); }
.foot .soc { flex-wrap: wrap; row-gap: .5rem; }
