/* Delivery page + agent page. Photos lead; type stays small and quiet. */
:root { --navy: #161E29; --ivory: #F6F1E9; --line: #E4DDD0; --ink: #1F2530; --muted: #6E7178; --gold: #C9A265;
  --serif: 'Playfair Display', Georgia, serif; --sans: 'Poppins', system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ivory); color: var(--ink); font: 15px/1.6 var(--sans); }
img, video { display: block; max-width: 100%; }
a { color: var(--navy); }
.loading, .empty { padding: 120px 20px; text-align: center; color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; max-width: 1240px; margin: 0 auto; }
header.top img { height: 30px; width: auto; }
header.top .agent { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.4; }
header.top .agent b { color: var(--ink); font-weight: 500; }

.hero { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #e6dfd2; }
.title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 26px 0 30px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.title h1 { font: 400 34px/1.15 var(--serif); margin: 0; color: var(--navy); }
.title .town { color: var(--muted); margin-top: 4px; }
.title .count { color: var(--muted); font-size: 13px; margin-top: 8px; }
.dl { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: 1px solid var(--navy); background: var(--navy); color: #fff; padding: 11px 18px; font: 500 14px var(--sans); cursor: pointer; border-radius: 2px; text-decoration: none; display: inline-block; }
.btn.ghost { background: transparent; color: var(--navy); border-color: #cfc6b6; }
.btn.ghost:hover { border-color: var(--navy); }
.btn:disabled { opacity: .5; cursor: default; }
.progress { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 20px; text-align: right; }

section { padding: 40px 0 10px; }
section h2 { font: 500 13px var(--sans); color: var(--muted); margin: 0 0 16px; }
.video video { width: 100%; background: #000; aspect-ratio: 16/9; }
.video .vrow { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding: 10px 0 24px; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid button { border: 0; padding: 0; background: #e6dfd2; cursor: zoom-in; aspect-ratio: 3/2; overflow: hidden; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.grid button:hover img { opacity: .92; }
.grid button.tall img { object-position: 50% 12%; }   /* portrait photos (headshots): keep the head in the tile */

footer { max-width: 1240px; margin: 50px auto 0; padding: 30px 32px 50px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); gap: 16px; flex-wrap: wrap; }
footer img { height: 22px; width: auto; }

.lb { position: fixed; inset: 0; background: rgba(12,16,22,.96); z-index: 1000; display: grid; grid-template-rows: 1fr auto; }
.lb .stage { display: grid; place-items: center; padding: 72px 70px 0; min-height: 0; }
.lb .stage img { max-height: calc(100vh - 150px); max-width: 100%; object-fit: contain; }
.lb .bar { display: flex; justify-content: space-between; align-items: center; color: #b9b4aa; font-size: 13px; padding: 16px 24px; }
.lb .bar a { color: #fff; }
.lb .nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; padding: 20px; opacity: .7; }
.lb .nav:hover { opacity: 1; }
.lb .prev { left: 6px; } .lb .next { right: 6px; }
/* Close (Dave 2026-10-19: clients won't know to click off the photo) — a big obvious button, top right */
.lb .x { position: absolute; top: 14px; right: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45); color: #fff; font: inherit; font-size: 15px; letter-spacing: .02em; cursor: pointer; backdrop-filter: blur(6px); }
.lb .x b { font-size: 22px; line-height: 1; font-weight: 400; }
.lb .x:hover { background: rgba(255,255,255,.26); }
.lb .nav { z-index: 2; }

.agentpage h1 { font: 400 32px/1.2 var(--serif); color: var(--navy); margin: 30px 0 6px; }
.agentpage .sub { color: var(--muted); margin: 0 0 30px; }
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
.jobs a { text-decoration: none; color: var(--ink); }
.jobs img { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: #e6dfd2; }
.jobs .a { font-weight: 500; margin-top: 10px; }
.jobs .t { color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .wrap, .hero, header.top, footer { padding-left: 16px; padding-right: 16px; }
  header.top img { height: 24px; }
  .title h1 { font-size: 26px; }
  .grid, .jobs { grid-template-columns: 1fr 1fr; gap: 6px; }
  .jobs { gap: 18px 12px; }
  .dl { width: 100%; } .dl .btn { flex: 1; text-align: center; }
  .progress { text-align: left; }
  .lb .stage { padding: 70px 8px 0; } .lb .nav { font-size: 26px; padding: 10px; }
}
/* download menus (Print / MLS / Web & social) */
.menu { position: relative; display: inline-block; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border: 1px solid #e4ddd0; box-shadow: 0 10px 30px rgba(22,30,41,.14); min-width: 290px; padding: 6px; text-align: left; }
.menu.up .menu-list { top: auto; bottom: calc(100% + 8px); }
.menu-list[hidden] { display: none; }
.menu-list button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; cursor: pointer; font: inherit; color: #1f2530; }
.menu-list button:hover { background: #f6f1e9; }
.menu-list b { display: block; font-weight: 500; font-size: 14px; }
.menu-list span { display: block; font-size: 12px; color: #6e7178; margin-top: 2px; }
.lbdl { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 7px 14px; cursor: pointer; font: inherit; font-size: 13px; }
@media (max-width: 600px) { .menu-list { left: 0; right: auto; min-width: 260px; } .menu.up .menu-list { right: 0; left: auto; } }
/* pay-to-release */
.paycard { display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid #e4ddd0; background: #fff; padding: 26px 28px; margin: 6px 0 34px; flex-wrap: wrap; }
.paycard h2 { margin: 0 0 6px; }
.paycard p { margin: 0; color: #6e7178; max-width: 520px; line-height: 1.55; }
.payact { text-align: right; }
.payact .amt { font-family: 'Playfair Display', Georgia, serif; font-size: 34px; color: #161e29; margin-bottom: 8px; }
.grid.locked .lk { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #ece6dc; }
.grid.locked .lk img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.grid.locked .lk::after { content: '🔒'; position: absolute; right: 8px; bottom: 6px; font-size: 13px; opacity: .85; }
@media (max-width: 600px) { .payact { text-align: left; width: 100%; } .payact .btn { width: 100%; } }

/* ═════════ REC website look for the delivery page (Dave, 2026-10-18) ═════════
   title card with the address → full-screen house → film → gallery that drifts in → navy footer */
html { scroll-behavior: smooth; }
body { background: var(--ivory); }
.eyebrow { font: 600 11px/1.4 var(--sans); letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); }

/* title card */
.intro { position: fixed; inset: 0; z-index: 50; background: var(--navy); color: var(--ivory); display: grid; place-items: center; padding: 24px; cursor: pointer;
  transition: transform 1s cubic-bezier(.7,0,.2,1), opacity .6s .45s ease; }
.intro.out { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.intro .in { text-align: center; max-width: 900px; }
.i-eye { font: 600 11px/1 var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; opacity: 0; animation: d-fade .8s .05s ease forwards; }
.i-addr { font: 400 clamp(40px, 7vw, 86px)/1.08 var(--serif); letter-spacing: -.5px; }
.i-addr span { display: inline-block; opacity: 0; transform: translateY(22px); animation: d-up .9s cubic-bezier(.2,.7,.2,1) forwards; }
.i-rule { height: 1px; background: var(--gold); width: min(300px, 60vw); margin: 26px auto 20px; transform: scaleX(0); animation: d-rule .8s 1.05s cubic-bezier(.6,0,.2,1) forwards; }
.i-town { font: 500 13px/1 var(--serif); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; opacity: 0; animation: d-track 1s 1.35s ease forwards; }
@keyframes d-up { to { opacity: 1; transform: none; } }
@keyframes d-rule { to { transform: scaleX(1); } }
@keyframes d-fade { to { opacity: 1; } }
@keyframes d-track { from { opacity: 0; letter-spacing: .9em; } to { opacity: .85; letter-spacing: .5em; } }

/* nav over the photo, navy once you scroll */
.dnav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; color: var(--ivory); transition: background .35s, padding .35s; }
.dnav img { height: 30px; width: auto; }
.dnav .agent { font-size: 13px; opacity: .85; }
.dnav .agent b { font-weight: 500; }
.dnav.solid { background: var(--navy); padding: 14px 40px; box-shadow: 0 1px 0 rgba(255,255,255,.06); }

/* hero: the house, full screen, a slow push-in once the title card lifts */
.dhero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; color: var(--ivory); background: var(--navy); display: flex; align-items: flex-end; }
.dhero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.1); transition: transform 7s cubic-bezier(.2,.6,.2,1); }
.revealed .dhero .bg { transform: scale(1); }
.dhero.nocover { height: auto; min-height: 0; padding-top: 130px; }   /* no cover photo (tour / plans only): just the title, then the content */
.dhero.nocover .cue { display: none; }
.dhero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,30,41,.55) 0%, rgba(22,30,41,0) 28%, rgba(22,30,41,0) 45%, rgba(22,30,41,.88) 100%); }
.hin { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px 90px; }
.hin > * { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.revealed .hin > * { opacity: 1; transform: none; }
.revealed .hin > :nth-child(2) { transition-delay: .12s; } .revealed .hin > :nth-child(3) { transition-delay: .22s; } .revealed .hin > :nth-child(4) { transition-delay: .34s; }
.dhero h1 { font: 400 clamp(40px, 6vw, 76px)/1.05 var(--serif); margin: 12px 0 8px; letter-spacing: -.5px; }
.htown { font-size: 15px; opacity: .85; }
.hact { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.dhero .progress { text-align: left; color: rgba(246,241,233,.8); }
.cue { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; margin-left: -11px; border: 1px solid rgba(246,241,233,.55); border-radius: 12px; }
.cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--ivory); border-radius: 2px; animation: d-cue 1.8s infinite; }
@keyframes d-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* buttons like the site: ivory pill on dark, navy pill on light */
.btn { border-radius: 8px; padding: 12px 22px; font: 500 14px var(--sans); letter-spacing: .3px; }
.btn.light { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.btn.light:hover { background: #fff; }
.btn.outline { background: transparent; color: var(--ivory); border: 1px solid rgba(246,241,233,.5); }
.btn.outline:hover { border-color: var(--ivory); }

/* sections */
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 20px; margin-bottom: 30px; opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.sec-head.in { opacity: 1; transform: none; }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head h2 { font: 400 clamp(30px, 3.6vw, 44px)/1.1 var(--serif); color: var(--navy); margin: 0; }
.sec-side { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; }
.film { background: var(--navy); padding: 90px 0 70px; }
.film h2 { color: var(--ivory); }
.film video { width: 100%; border-radius: 6px; background: #000; aspect-ratio: 16/9; opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.film video.in { opacity: 1; transform: none; }
.film .vrow { color: rgba(246,241,233,.7); padding: 12px 0 30px; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.film .vrow a { color: var(--ivory); }
.gallery { padding: 90px 0 60px; }
.grid { gap: 8px; }
.grid button { border-radius: 2px; background: #e9e2d6; opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.grid button.in { opacity: 1; transform: none; }
.grid button img { transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.grid button:hover img { transform: scale(1.035); opacity: 1; }
.grid button:first-child { grid-column: span 2; grid-row: span 2; }
.no-anim .grid button, .no-anim .sec-head, .no-anim .film video, .no-anim .hin > * { opacity: 1 !important; transform: none !important; transition: none !important; }

/* navy footer like the site */
footer.dfoot { max-width: none; margin: 0; background: var(--navy); color: rgba(246,241,233,.7); border: 0; padding: 40px max(40px, calc((100vw - 1240px) / 2 + 40px)); }
footer.dfoot a { color: var(--ivory); }
footer.dfoot img { height: 26px; }
/* locked + agent pages share the navy bar */
header.top { max-width: none; background: var(--navy); padding: 18px max(32px, calc((100vw - 1240px) / 2 + 32px)); }
header.top .agent, header.top .agent b { color: var(--ivory); }
.agentpage h1 { margin-top: 44px; }

/* lightbox on navy */
.lb { background: rgba(14,19,27,.97); }
.lb .bar { color: rgba(246,241,233,.7); }

@media (max-width: 760px) {
  .dnav, .dnav.solid { padding: 14px 16px; } .dnav img { height: 24px; } .dnav .agent { font-size: 12px; max-width: 55%; text-align: right; }
  .hin { padding: 0 18px 80px; } .dhero { min-height: 520px; }
  .film, .gallery { padding: 60px 0 40px; }
  .sec-head { grid-template-columns: 1fr; } .sec-side { flex-wrap: wrap; }
  .grid button:first-child { grid-column: span 2; grid-row: auto; }
  footer.dfoot { padding: 30px 16px; }
}
/* while the job loads: same navy as the title card, so the hand-off is seamless */
.loading { position: fixed; inset: 0; background: var(--navy); color: transparent; padding: 0; }

/* Bigger REC logo in the top bar (Dave, 2026-10-18) */
.dnav img { height: 46px; }
.dnav.solid img { height: 38px; }
/* Real Estate Cinema section before the gallery — moving logo + a REC film */
.recad { background: var(--navy); color: var(--ivory); padding: 110px 0; overflow: hidden; }
.recad .ra-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.recad .ra-logo img { height: 64px; width: auto; display: block; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.7,0,.2,1); }
.recad .ra-rule { height: 1px; background: var(--gold); width: 0; margin: 26px 0 30px; transition: width 1.2s .9s cubic-bezier(.7,0,.2,1); }
.recad h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 38px; line-height: 1.15; margin: 0 0 14px; opacity: 0; transform: translateY(14px); transition: opacity .9s 1.3s, transform .9s 1.3s; }
.recad p { opacity: 0; max-width: 420px; line-height: 1.6; color: rgba(246,241,233,.78); margin: 0 0 26px; transition: opacity .9s 1.5s; }
.recad .btn { opacity: 0; transition: opacity .9s 1.7s; }
.recad .ra-film { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #0d131b; opacity: 0; transform: scale(.97); transition: opacity 1.2s .4s, transform 1.6s .4s cubic-bezier(.2,.7,.2,1); }
.recad .ra-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.recad.in .ra-logo img { clip-path: inset(0 0 0 0); }
.recad.in .ra-rule { width: 120px; }
.recad.in h2 { opacity: 1; transform: none; }
.recad.in p, .recad.in .btn { opacity: 1; }
.recad.in .ra-film { opacity: 1; transform: none; }
body.no-anim .recad * { transition: none !important; }
@media (max-width: 760px) {
  .dnav img { height: 32px; } .dnav.solid img { height: 28px; }
  .recad { padding: 72px 0; } .recad .ra-in { grid-template-columns: 1fr; gap: 36px; }
  .recad .ra-logo img { height: 46px; } .recad h2 { font-size: 30px; }
}
/* "Thank you" + REC commercial (2026-10-18) */
.recad .ra-text p { margin: 0 0 16px; max-width: 470px; }
.recad .ra-text p:last-child { margin-bottom: 0; transition-delay: 1.7s; }
.recad .ra-right { opacity: 0; transform: translateY(16px); transition: opacity 1.1s .5s, transform 1.4s .5s cubic-bezier(.2,.7,.2,1); }
.recad.in .ra-right { opacity: 1; transform: none; }
.recad .ra-eye { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.recad .ra-film { opacity: 1; transform: none; }
.recad .ra-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.recad .ra-cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.recad .ra-cap span { font-size: 13px; color: rgba(246,241,233,.7); letter-spacing: .02em; }
.recad .ra-cap .btn { opacity: 1; }

/* two download sizes (Dave 2026-10-19): MLS by default, full size as the second choice */
.dl2 { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dl2 .btn small, .dl2 .lbdl small { opacity: .7; font-size: .8em; margin-left: 6px; letter-spacing: .02em; }
.dl2-full { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: inherit; opacity: .8; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dl2-full:hover { opacity: 1; }
.lb .lbdl.ghost { border-color: rgba(255,255,255,.2); opacity: .85; }

/* Freeman Group jobs (2026-10-20): Freeman & Company's own look — navy #242864, tan #ccb091, Libre Baskerville + Montserrat */
:root.fm { --navy: #242864; --gold: #ccb091; --ivory: #F7F5F0; --serif: 'Libre Baskerville', Georgia, serif; --sans: 'Montserrat', system-ui, sans-serif; }
:root.fm .dnav img { height: 34px; } :root.fm .dnav.solid img { height: 28px; } :root.fm footer.dfoot img { height: 24px; }
:root.fm .dhero h1, :root.fm .i-addr { letter-spacing: 0; }
@media (max-width: 700px) { :root.fm .dnav img { height: 22px; } }

/* download countdown card, bottom-right (2026-10-20) */
.dlcard { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 300px; background: var(--navy); color: var(--ivory); border-radius: 10px; padding: 16px 18px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.35); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; animation: dc-in .35s ease; font-family: var(--sans); }
.dlcard[hidden] { display: none; }
.dc-big { font: 400 38px/1 var(--serif); color: var(--gold); min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.dc-txt b { display: block; font-weight: 500; font-size: 14px; }
.dc-txt span { font-size: 12px; opacity: .7; }
.dc-bar { grid-column: 1 / -1; height: 3px; background: rgba(246,241,233,.15); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.dc-bar i { display: block; height: 100%; background: var(--gold); transition: width .4s ease; }
.dlcard.bad .dc-big { color: #e8a39b; }
@keyframes dc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .dlcard { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* Send to Freeman hub, once sent (2026-10-20) */
.btn.outline.sent { display: inline-flex; align-items: center; gap: 12px; border-color: rgba(201,162,101,.7); }
.btn.outline.sent .hs-ok { color: var(--gold); }
.btn.outline.sent .hs-again { opacity: .75; font-size: 13px; padding-left: 12px; border-left: 1px solid rgba(246,241,233,.3); }
.btn.outline.sent:hover .hs-again { opacity: 1; }

/* lightbox on phones (2026-10-20): swipe + big ‹ › under the photo instead of tiny edge arrows */
.lb .mnav { display: none; }
@media (max-width: 700px) {
  .lb { grid-template-rows: 1fr auto auto; }
  .lb .stage { padding: 70px 0 0; }
  .lb .stage img { max-height: calc(100vh - 230px); }
  .lb .nav { display: none; }
  .lb .mnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); color: #fff; }
  .lb .mnav button { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 0 4px; }
  .lb .mnav button:active { background: rgba(255,255,255,.28); }
  .lb .mnav span { text-align: center; font-size: 15px; }
  .lb .mnav small { display: block; font-size: 11px; opacity: .6; margin-top: 2px; }
  .lb .bar > span:first-child { visibility: hidden; width: 0; }
  .lb .bar { justify-content: center; padding-bottom: 6px; }
}

/* photo viewer open: lock the page (no scrolling behind it, no rubber-band) — 2026-10-20 */
html.lb-open, html.lb-open body { overflow: hidden; overscroll-behavior: none; }
html.lb-open body { position: fixed; left: 0; right: 0; width: 100%; }
.lb { touch-action: none; overscroll-behavior: contain; height: 100dvh; }
/* phones: iOS turns addresses, dates and numbers into dotted-underlined "data detector" links — keep the text plain */
a[x-apple-data-detectors], a[href^="tel:"]:not(.btn) { color: inherit !important; text-decoration: none !important; font: inherit !important; }
@media (max-width: 700px) { .lb { background: #0c1016; } }

/* agent branding from the client portal (2026-10-20) */
.dnav img.brlogo, footer.dfoot img.brlogo { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.dnav.solid img.brlogo { height: 32px; }
.dnav .brname, footer.dfoot .brname { font: 500 18px/1.2 var(--serif); color: var(--ivory); }
/* "want this gallery to be all yours?" — only for the agent, from the portal (Dave, 2026-10-22) */
.bask { position: fixed; inset: 0; z-index: 2000; background: rgba(10,14,20,.55); display: grid; place-items: center; padding: 16px; animation: baskIn .2s; }
.bask-card { width: min(440px, 100%); background: #F6F1E9; color: #161E29; border-radius: 16px; padding: 28px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.bask-eye { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #C9A265; margin-bottom: 8px; }
.bask-card h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 28px; margin: 0 0 10px; line-height: 1.15; }
.bask-card p { font-size: 15px; color: #4A505B; margin: 0 0 20px; }
.bask-card .btn { display: block; background: #161E29; color: #fff; border-color: #161E29; margin-bottom: 10px; }
.bask-no { background: none; border: 0; color: #4A505B; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px; }
@keyframes baskIn { from { opacity: 0; } }
/* thank-you section: contact + Instagram / Facebook (Dave, 2026-10-23 — REC's number is 609-536-9151 from now on) */
.recad .ra-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.recad .ra-soc { width: 42px; height: 42px; border: 1px solid rgba(246,241,233,.35); border-radius: 50%; display: grid; place-items: center; color: var(--ivory); transition: border-color .2s, background .2s; }
.recad .ra-soc:hover { border-color: var(--ivory); background: rgba(246,241,233,.08); }
.recad .ra-soc svg { width: 19px; height: 19px; }
.recad .ra-tel { width: 100%; margin-top: 12px; font-size: 13px; color: rgba(246,241,233,.65); }
.recad .ra-tel a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(201,162,101,.6); }
/* Film section, Freeman-style (Dave, 2026-10-23): words + downloads left, the film right */
.film .film-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 60px; align-items: center; }
.film .filmtxt .eyebrow { color: var(--gold); }
.film .filmtxt h2 { color: var(--ivory); font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; margin: 10px 0 0; }
.film .filmtxt p { color: rgba(246,241,233,.78); margin: 16px 0 26px; max-width: 380px; line-height: 1.6; }
.film .film-dl { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.film .fline { color: var(--ivory); text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.film .fline small { letter-spacing: .04em; text-transform: none; opacity: .6; margin-left: 6px; font-weight: 400; }
.film .filmvids { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.film .fv { flex: 1 1 100%; } .film .fv.tall { flex: 0 1 auto; }
.film .fv video { width: 100%; aspect-ratio: auto; max-height: 78vh; display: block; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.film .fv.tall video { width: auto; height: 70vh; max-width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
@media (max-width: 860px) { .film .film-in { grid-template-columns: minmax(0, 1fr); gap: 32px; } .film .fv.tall video { height: auto; width: 100%; } }
/* Services sections on the property page (Dave, 2026-10-23): 360 tour, floor plans, headshots, extra videos… */
.svcsec { padding: 90px 0 70px; background: var(--ivory, #F6F1E9); }
.svcsec.dark { background: var(--navy); } .svcsec.dark h2 { color: var(--ivory); } .svcsec.dark .svc-cap span, .svcsec.dark figcaption span { color: rgba(246,241,233,.8); } .svcsec.dark .fline { color: var(--ivory); }
.svcsec .sec-head { opacity: 1 !important; transform: none !important; margin-bottom: 28px; }
.svcsec .fline { color: var(--navy); text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.svc-vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.svc-vids figure { margin: 0; } .svc-vids video { width: 100%; display: block; background: #000; border-radius: 6px; max-height: 78vh; }
.svc-vids figcaption, .svc-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 0; font-size: 14px; }
.svc-tour { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #0d131b; box-shadow: 0 30px 70px -30px rgba(0,0,0,.35); }
.svc-tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.svc-cap { margin-bottom: 26px; }
.svc-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.svc-doc { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.svc-doc.img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 1px solid rgba(22,30,41,.1); border-radius: 6px; }
.svc-doc.file { flex-direction: row; align-items: center; gap: 12px; border: 1px solid rgba(22,30,41,.15); border-radius: 8px; padding: 14px; background: #fff; }
.svc-doc.file b { width: 46px; height: 46px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 11px; letter-spacing: .06em; flex: none; }
@media (max-width: 760px) { .svcsec { padding: 60px 0 40px; } }
.svc-doc.file { align-self: start; }
/* film share: Copy link / Copy embed code (Dave, 2026-10-23) */
.fshare { display: inline-flex; gap: 14px; margin-top: 2px; }
.fshare button { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: inherit; opacity: .7; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fshare button:hover { opacity: 1; }
.film .film-dl .fshare { color: var(--ivory); margin: -6px 0 6px; }
.svc-vids .fcap-r { display: inline-flex; align-items: center; gap: 16px; }
/* the agent's own card on a branded page (Dave, 2026-10-23: headshot, name, contact, Visit my website) */
.agentcard { background: var(--ivory); padding: 34px 0; border-bottom: 1px solid var(--line); }
.agentcard .ac-in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.agentcard .ac-hs { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.agentcard .ac-who { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 200px; }
.agentcard .ac-who b { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--ink); }
.agentcard .ac-title { font-size: 14px; font-weight: 500; color: var(--navy); }
.agentcard .ac-contact { font-size: 14px; color: var(--muted); } .agentcard .ac-contact a { color: inherit; text-decoration: none; }
.agentcard .ac-web { background: var(--navy); border-color: var(--navy); color: #fff; border-radius: 10px; padding: 13px 22px; }
/* Film on white, navy type (Dave, 2026-10-23: the navy film band ran straight into the navy REC ad) */
.film { background: #fff; }
.film h2, .film .filmtxt h2 { color: var(--navy); }
.film .filmtxt p { color: var(--muted); }
.film .fline { color: var(--navy); }
.film .film-dl .fshare { color: var(--navy); }
.film .fv video { box-shadow: 0 30px 70px -30px rgba(22,30,41,.45); }
/* several videos (Dave, 2026-11-07): one section per video, alternating white / ivory with a hairline between */
.film.film-multi { padding: 70px 0; } .film.film-multi + .film.film-multi { border-top: 1px solid var(--line); }
.film.film-alt { background: var(--ivory); }
.film.film-multi .filmtxt .eyebrow { letter-spacing: .14em; }
@media (max-width: 760px) { .film.film-multi { padding: 50px 0; } }
.svcsec.dark { background: #fff; } .svcsec.dark h2 { color: var(--navy); } .svcsec.dark .svc-cap span, .svcsec.dark figcaption span { color: var(--muted); } .svcsec.dark .fline { color: var(--navy); }
/* hero shade (Dave, 2026-10-23): fade under the top bar, a dark bottom band and a darker corner behind the address so it pops */
.dhero .shade { background:
  radial-gradient(ellipse 80% 75% at 0% 100%, rgba(22,30,41,.85) 0%, rgba(22,30,41,.55) 40%, rgba(22,30,41,0) 72%),
  linear-gradient(180deg, rgba(22,30,41,.6) 0%, rgba(22,30,41,.18) 16%, rgba(22,30,41,0) 30%),
  linear-gradient(0deg, rgba(22,30,41,.8) 0%, rgba(22,30,41,.35) 28%, rgba(22,30,41,0) 55%); }
.dhero h1, .dhero .htown, .dhero .eyebrow { text-shadow: 0 2px 18px rgba(10,14,20,.45); }
/* cover zoom (office "Cover photo" panel, #z= on the cover link) — the reveal animation zooms from a touch further in */
.dhero .bg { transform: scale(calc(var(--z, 1) * 1.1)); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.revealed .dhero .bg { transform: scale(var(--z, 1)); }
/* hero text sits lower (Dave, 2026-10-23: half the bottom margin) */
.hin { padding-bottom: 45px; }
@media (max-width: 760px) { .hin { padding-bottom: 76px; } }   /* phones: stays clear of the scroll cue in the middle */
/* draft preview from the client portal (Dave, 2026-10-23) */
.draftbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1500; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px);
  background: #C9A265; color: #161E29; padding: 10px 16px; border-radius: 999px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.draftbar a { color: #161E29; font-weight: 600; }
/* phones (Dave, 2026-10-24: text + button sat too low): size the hero to the screen you can actually see (the browser
   bars cover the bottom of 100vh) and lift the block a little */
@media (max-width: 760px) { .dhero { height: 100svh; min-height: 500px; } .hin { padding-bottom: 96px; } }

/* "coming soon" — a booked video / floor plans not uploaded yet (2026-10-26) */
.soon { background: var(--navy); color: var(--ivory); padding: 64px 0; border-top: 1px solid rgba(201,162,101,.35); border-bottom: 1px solid rgba(201,162,101,.35); }
.soon-in { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; }
.soon-ic { width: 88px; height: 88px; border-radius: 50%; border: 1px solid rgba(201,162,101,.6); display: grid; place-items: center; }
.soon-ic svg { width: 38px; height: 38px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round; }
.soon h2 { font: 400 clamp(30px, 4vw, 46px)/1.1 var(--serif); margin: 8px 0 12px; color: var(--ivory); }
.soon p { margin: 0 0 6px; max-width: 620px; color: rgba(246,241,233,.82); font-size: 16px; }
.soon .soon-thx { color: var(--gold); font-style: italic; font-family: var(--serif); font-size: 17px; margin-top: 10px; }
.soon-badge { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(246,241,233,.3); border-radius: 999px; padding: 9px 16px; font: 600 11px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.soon-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: soonpulse 1.6s ease-in-out infinite; }
@keyframes soonpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (max-width: 760px) { .soon { padding: 44px 0; } .soon-in { grid-template-columns: 1fr; gap: 18px; text-align: left; } .soon-ic { width: 64px; height: 64px; } .soon-badge { justify-self: start; } }
.soon-when { font: 400 clamp(22px, 2.6vw, 30px)/1.2 var(--serif); color: var(--ivory); margin: 2px 0 12px; }
.soon-when b { font-weight: 700; color: var(--gold); white-space: nowrap; }
/* floor plans viewer (Dave, 2026-10-29): one level at a time, arrows + level names, Download PDF */
.plans { background: #fff; border: 1px solid rgba(22,30,41,.1); border-radius: 10px; box-shadow: 0 30px 70px -40px rgba(22,30,41,.35); overflow: hidden; }
.plans-stage { position: relative; display: flex; justify-content: center; align-items: center; padding: 28px 72px; background: #fff; }
.plans-img { display: block; max-width: 100%; height: auto; max-height: 76vh; width: auto; object-fit: contain; }
.plans-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--ivory); color: var(--navy); font: 400 30px/1 var(--serif); cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; transition: background .2s, border-color .2s; }
.plans-arrow:hover { background: #fff; border-color: var(--navy); }
.plans-arrow.prev { left: 16px; } .plans-arrow.next { right: 16px; }
.plans-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--ivory); }
.plans-levels { display: flex; gap: 6px; flex-wrap: wrap; }
.plans-levels button { border: 1px solid transparent; background: none; color: var(--muted); font: 500 13px var(--sans); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.plans-levels button:hover { color: var(--navy); }
.plans-levels button.on { background: var(--navy); color: var(--ivory); }
.plans-dl { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .plans-stage { padding: 14px 8px 64px; }
  .plans-arrow { top: auto; bottom: 10px; transform: none; width: 42px; height: 42px; }
  .plans-arrow.prev { left: calc(50% - 50px); } .plans-arrow.next { right: calc(50% - 50px); }
  .plans-bar { padding: 14px 16px; } .plans-dl .btn { width: 100%; text-align: center; }
}
.plans-img { cursor: zoom-in; }
/* 360 tours: same card as the floor plans, the tour live in it */
.tour-stage { position: relative; aspect-ratio: 16 / 9; background: #0d131b; }
.tour-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tours .plans-arrow { z-index: 2; background: rgba(246,241,233,.92); }
.tours .plans-arrow.prev { left: 14px; } .tours .plans-arrow.next { right: 14px; }
.plans-dl .tour-copy { background: none; border: 0; border-bottom: 1px solid var(--gold); cursor: pointer; font: 500 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--navy); padding: 0 0 4px; }
@media (max-width: 760px) {
  .tour-stage { aspect-ratio: 4 / 5; }
  .tours .plans-arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
  .tours .plans-arrow.prev { left: 8px; } .tours .plans-arrow.next { right: 8px; }
}

/* photo sections in the gallery (Dave, 2026-11-10): drone heights, one per address… */
.gsec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 44px 0 14px; padding-top: 18px; border-top: 1px solid rgba(22, 30, 41, .14); }
.gsec h3 { margin: 0; font: 400 clamp(22px, 2.6vw, 30px)/1.15 var(--serif); color: var(--navy); }
.gsec span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #a8823f; white-space: nowrap; }
.grid:empty { display: none; }
/* photo sections as their own blocks (2026-11-13): each has its own heading, count and downloads, and can sit anywhere */
.gal-grp { padding: 70px 0 50px; }
.gallery + .gal-grp, .gal-grp + .gallery { padding-top: 30px; border-top: 1px solid rgba(22, 30, 41, .1); }
.gallery:has(+ .gal-grp) { padding-bottom: 40px; }
