/*
  David Anishchenko Real Estate
  Design: "open house". Light and bright like a staged home: a cool mist page,
  crisp white cards with hairline borders, lake-navy for headings and dark bands,
  lit-window amber for the main action. The homepage photo bleeds in from the
  right and fades into the page; David's small photo card sits in front of it.
  One type family (Archivo): wide and heavy for headings, normal for reading.
  To recolour the site, change the tokens below.
*/

/* ---------- Tokens ---------- */
:root {
  --navy: #12293F;
  --navy-deep: #0B1C2D;
  --navy-2: #1A3652;
  --navy-3: #234767;
  --bg: #F3F5F8;
  --sky: #E7EDF3;
  --white: #FFFFFF;
  --amber: #F2A83B;
  --amber-hi: #FFBE5C;
  --amber-soft: #FCEFD9;
  --amber-ink: #8A5200;
  --ink: #18232F;
  --muted: #4F5D6E;
  --hair: #DCE2E9;
  --hair-strong: #C3CDD8;
  --on-navy: #FFFFFF;
  --on-navy-soft: rgba(232, 240, 248, .86);
  --line-navy: rgba(232, 240, 248, .18);
  --focus: #B06A00;
  --error: #B3261E;
  --shadow-sm: 0 1px 2px rgba(18, 41, 63, .06), 0 2px 6px -2px rgba(18, 41, 63, .06);
  --shadow-card: 0 1px 2px rgba(18, 41, 63, .05), 0 18px 40px -22px rgba(18, 41, 63, .3);
  --shadow-lift: 0 1px 2px rgba(18, 41, 63, .06), 0 26px 50px -22px rgba(18, 41, 63, .38);

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --header-h: 76px;
  --arch: 1000px 1000px 0 0;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6l-6 6'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6l-6 6'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.04;
  letter-spacing: -.012em;
  color: var(--navy);
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--amber); color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.band--navy :focus-visible, .finale :focus-visible, .site-footer :focus-visible, .topbar :focus-visible { outline-color: var(--amber); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 14px 22px; border-radius: 12px; background: var(--amber); color: var(--navy); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display { font-size: clamp(2.7rem, 6vw, 5.5rem); font-stretch: 125%; line-height: .97; letter-spacing: -.022em; }
.h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-stretch: 122%; letter-spacing: -.018em; }
.h3 { font-size: clamp(1.25rem, 1.7vw, 1.45rem); font-stretch: 112%; line-height: 1.15; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.22rem); line-height: 1.6; max-width: 34em; }
.muted { color: var(--muted); }
.text-link { font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 100%; min-height: 56px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 14px;
  font-weight: 700; font-size: 1rem; line-height: 1.15; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn .i { width: 20px; height: 20px; stroke-width: 2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
/* Main action: amber with an arrow that nudges forward on hover */
.btn-amber { background: var(--amber); color: var(--navy); box-shadow: inset 0 -2px 0 rgba(120, 60, 0, .16), 0 12px 24px -14px rgba(194, 112, 0, .85); }
.btn-amber::after { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .25s var(--ease); }
.btn-amber:hover { background: var(--amber-hi); }
.btn-amber:hover::after { transform: translateX(3px); }
.btn-navy { background: var(--navy); color: var(--on-navy); box-shadow: 0 12px 24px -16px rgba(18, 41, 63, .9); }
.btn-navy:hover { background: var(--navy-3); }
.btn-line { border-color: var(--hair-strong); background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-line:hover { border-color: var(--navy); }
.btn-line-light { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); color: var(--on-navy); }
.btn-line-light:hover { border-color: var(--white); background: var(--white); color: var(--navy); }
.btn-sm { min-height: 46px; padding: 0 18px; border-radius: 12px; font-size: .95rem; }
.btn-sm.btn-amber::after { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .btn-row .btn { flex: 1 1 100%; } }

/* Round quick-contact buttons with a label underneath */
.qa { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 30px 0 0; padding: 0; list-style: none; }
.qa a { display: grid; justify-items: center; gap: 7px; min-width: 62px; color: var(--muted); font-size: .82rem; font-weight: 600; line-height: 1.2; text-decoration: none; }
.qa__icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--hair); border-radius: 50%; background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); transition: background-color .2s, border-color .2s; }
.qa__icon .i { width: 22px; height: 22px; }
.qa a:hover { color: var(--navy); }
.qa a:hover .qa__icon { border-color: var(--amber); background: var(--amber-soft); }

/* Small icon tile used in the info strip and lists */
.ticon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--amber-soft); color: var(--navy); }
.ticon .i { width: 22px; height: 22px; }

/* ---------- Top info bar + header ---------- */
.topbar { background: var(--navy); color: var(--on-navy-soft); font-size: .84rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; }
.topbar p { margin: 0; }
.topbar__links { display: flex; gap: 24px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: var(--on-navy); font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.topbar .i { width: 16px; height: 16px; color: var(--amber); }
@media (max-width: 1023px) { .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--hair); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 12px 30px -20px rgba(18, 41, 63, .45); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.wordmark { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--navy); text-decoration: none; }
.wordmark__mark { flex: none; width: 40px; height: 40px; }
.wordmark b { display: block; font-weight: 800; font-stretch: 118%; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.05; }
.wordmark small { display: block; margin-top: 3px; font-size: .76rem; line-height: 1.15; color: var(--muted); }
.nav { display: none; gap: 2px; }
.nav a { padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--ink); text-decoration: none; transition: background-color .2s; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { background: var(--amber-soft); color: var(--navy); font-weight: 700; box-shadow: inset 0 -2px 0 var(--amber); }
.header-phone { display: none; align-items: center; gap: 8px; padding: 10px 6px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.header-phone .i { width: 19px; height: 19px; color: var(--amber-ink); }
.header-phone:hover { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }
.header-cta { display: none; }
.menu-toggle { display: grid; place-content: center; gap: 6px; width: 48px; height: 48px; padding: 0; border: 1px solid var(--hair-strong); border-radius: 12px; background: var(--white); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease); }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}
@media (min-width: 1180px) { .header-phone { display: inline-flex; } }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  display: flex; flex-direction: column; gap: 26px;
  padding: 10px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--white); color: var(--ink); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
.menu-open { overflow: hidden; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 15px 0; border-bottom: 1px solid var(--hair); font-weight: 800; font-stretch: 118%; font-size: clamp(1.5rem, 6.6vw, 2rem); line-height: 1.1; color: var(--navy); text-decoration: none; }
.mobile-menu nav a[aria-current="page"] { color: var(--amber-ink); }
.mm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mm-actions .btn:first-child { grid-column: 1 / -1; }
.mm-contact { margin: 0; color: var(--muted); }
.mm-contact a { color: var(--navy); font-weight: 600; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
/* Home photo: a random one from SITE.heroPhotos on each visit (see config.js).
   It bleeds in from the right edge and fades into the page behind the text. */
.hero__bg { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 42%; background: var(--sky);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%); mask-image: linear-gradient(90deg, transparent 0, #000 32%); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transition: opacity .8s ease; }
.js .hero__bg img:not(.is-ready) { opacity: 0; }
.js:not(.door-seen) .hero__bg img { animation: settle 2.6s var(--ease) .7s both; }
@media (max-width: 899px) {
  .hero__bg { left: 0; bottom: auto; height: calc(clamp(170px, 50vw, 250px) + 160px);
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
}
.hero__grid { display: grid; gap: 28px; align-items: center; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero__lead { max-width: 29em; margin-top: 24px; color: var(--ink); }
.hero .btn-row { margin-top: 34px; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; min-height: min(780px, calc(100svh - var(--header-h) - 40px)); }
}
@media (max-width: 899px) { .hero__media { order: -1; } }

/* Hero headline words (animated on first visit) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > span { display: inline-block; }

/* David's photo: a small square card, like the headshot on his current website.
   It sits in front of the home photo so the house stays the main picture. */
.pcard { margin: 0; width: 248px; padding: 10px 10px 14px; border: 1px solid var(--hair); border-radius: 20px; background: var(--white); box-shadow: 0 30px 60px -28px rgba(9, 22, 36, .6); }
.pcard__img { overflow: hidden; aspect-ratio: 1 / 1; border-radius: 12px; background: var(--sky); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pcard figcaption { display: grid; gap: 2px; padding: 12px 6px 0; }
.pcard b { font-weight: 800; font-stretch: 115%; font-size: 1.04rem; line-height: 1.2; color: var(--navy); }
.pcard figcaption span { font-size: .8rem; line-height: 1.3; color: var(--muted); text-wrap: balance; }
@media (min-width: 900px) {
  .hero__media { align-self: end; justify-self: end; }
}
/* Phones and tablets: a slim card with the photo on the left */
@media (max-width: 899px) {
  .pcard { display: flex; align-items: center; gap: 14px; width: max-content; max-width: 100%; padding: 8px 20px 8px 8px; border-radius: 18px; }
  .pcard__img { flex: none; width: 76px; border-radius: 12px; }
  .pcard figcaption { padding: 0; }
  .hero__media { padding-top: clamp(170px, 50vw, 250px); }
}

/* ---------- Door-opening intro (homepage, first visit only) ---------- */
.door { display: none; }
.js:not(.door-seen) .door { display: block; position: absolute; inset: 0; z-index: 20; pointer-events: none; perspective: 1800px; }
.door::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 50% 50%, rgba(255, 210, 140, .6), transparent 70%); opacity: 0; animation: doorLight 1.6s ease-out .7s both; }
.door__leaf { position: absolute; top: 0; bottom: 0; width: 50.2%; background: var(--navy); backface-visibility: hidden; will-change: transform; }
.door__leaf::before, .door__leaf::after { content: ""; position: absolute; left: 16%; right: 16%; border: 2px solid rgba(242, 168, 59, .42); border-radius: 8px; }
.door__leaf::before { top: 8%; bottom: 55%; }
.door__leaf::after { top: 51%; bottom: 8%; }
.door__leaf--l { left: 0; transform-origin: left center; box-shadow: inset -2px 0 0 rgba(0, 0, 0, .35); animation: leafLeft 1.3s cubic-bezier(.55, 0, .2, 1) .75s both; }
.door__leaf--r { right: 0; transform-origin: right center; box-shadow: inset 2px 0 0 rgba(255, 255, 255, .05); animation: leafRight 1.3s cubic-bezier(.55, 0, .2, 1) .75s both; }
.door__knob { position: absolute; top: 50%; left: 26px; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE2AE, var(--amber) 52%, #B86F08); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.door__knob::after { content: ""; position: absolute; top: 11px; left: 15px; width: 48px; height: 8px; border-radius: 6px; background: linear-gradient(#FFD58A, #C47E14); transform-origin: 0 50%; animation: lever .55s ease-in-out .15s both; }
.js:not(.door-seen) .hero .w > span { animation: wordRise .9s var(--ease) both; animation-delay: calc(1.25s + var(--i, 0) * 70ms); }
.js:not(.door-seen) .hero .fade { animation: fadeUp .9s var(--ease) both; animation-delay: var(--d, 1.7s); }
.js:not(.door-seen) .hero .pcard { animation: fadeUp .9s var(--ease) 1.5s both; }

@keyframes lever { from { transform: rotate(0); } to { transform: rotate(40deg); } }
@keyframes leafLeft { 0% { transform: rotateY(0); } 80% { opacity: 1; } 100% { transform: rotateY(-102deg); opacity: 0; visibility: hidden; } }
@keyframes leafRight { 0% { transform: rotateY(0); } 80% { opacity: 1; } 100% { transform: rotateY(102deg); opacity: 0; visibility: hidden; } }
@keyframes doorLight { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wordRise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }

/* ---------- Info strip under the hero ---------- */
.strip { background: var(--white); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.strip ul { display: grid; margin: 0; padding: 0; list-style: none; }
.strip li { display: flex; align-items: center; gap: 14px; padding: 18px 0; }
.strip li + li { border-top: 1px solid var(--hair); }
.strip b { display: block; font-weight: 700; color: var(--navy); line-height: 1.25; }
.strip li div span { display: block; margin-top: 2px; font-size: .88rem; line-height: 1.35; color: var(--muted); }
@media (min-width: 760px) {
  .strip ul { grid-template-columns: repeat(3, 1fr); }
  .strip li, .strip li + li { padding: 24px 20px; border-top: 0; border-left: 1px solid var(--hair); }
  .strip li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- City ticker (from David's current website) ---------- */
.ticker { overflow: hidden; background: var(--navy); color: var(--on-navy); }
.ticker__track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__group a { display: inline-flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); padding: 22px 0 22px clamp(20px, 2.6vw, 36px); font-weight: 800; font-stretch: 125%; font-size: clamp(1.35rem, 2.7vw, 2.15rem); line-height: 1; letter-spacing: -.01em; white-space: nowrap; color: inherit; text-decoration: none; }
.ticker__group a:hover { color: var(--amber-hi); }
.ticker .i { width: .7em; height: .7em; color: var(--amber); stroke-width: 2.6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band--white { background: var(--white); }
.band--sky { background: var(--sky); }
.band--navy { background: var(--navy); color: var(--on-navy-soft); }
.band--navy h2, .band--navy h3 { color: var(--on-navy); }
.head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.head p { font-size: clamp(1.04rem, 1.3vw, 1.14rem); color: var(--muted); max-width: 32em; }
.band--navy .head p { color: var(--on-navy-soft); }
@media (min-width: 900px) {
  .head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; max-width: none; }
  .head--split > div { max-width: 46rem; display: grid; gap: 16px; }
}
.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--top { align-items: start; } }
.split > *, .contact-layout > *, .footer-top > *, .head > * { min-width: 0; }

/* ---------- Service cards: photo on top, short text, tinted link chip ---------- */
.doors { display: grid; gap: 14px; }
@media (min-width: 640px) { .doors { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .doors { grid-template-columns: repeat(4, 1fr); } }
.door-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hair); border-radius: 22px; background: var(--white); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.door-card:hover { border-color: var(--hair-strong); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.door-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky); }
.door-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.door-card:hover .door-card__img img { transform: scale(1.04); }
.door-card > div:last-child { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.door-card h3 { margin: 0 0 8px; font-size: 1.28rem; }
.door-card p { margin: 0 0 18px; font-size: .98rem; line-height: 1.55; color: var(--muted); }
.more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: auto; padding: 0 14px 0 16px; border-radius: 999px; background: var(--amber-soft); color: var(--navy); font-weight: 700; font-size: .92rem; transition: background-color .2s; }
.more::after { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat; }
.door-card:hover .more { background: var(--amber); }
@media (max-width: 639px) {
  .door-card { flex-direction: row; border-radius: 18px; }
  .door-card__img { flex: none; width: 112px; aspect-ratio: auto; }
  .door-card > div:last-child { padding: 16px 16px 16px 18px; }
  .door-card h3 { margin-bottom: 4px; font-size: 1.14rem; }
  .door-card p { margin-bottom: 12px; font-size: .92rem; }
  .more { min-height: 34px; padding: 0 12px 0 14px; font-size: .86rem; }
}

/* ---------- Home tours (Instagram) ---------- */
.tours { display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 340px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: thin; scrollbar-color: var(--hair-strong) transparent; }
@media (min-width: 1000px) {
  .tours { grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 24px; overflow: visible; margin: 0; padding: 0; }
}
.tour { display: flex; flex-direction: column; margin: 0; padding: 10px; border: 1px solid var(--hair); border-radius: 22px; background: var(--white); box-shadow: var(--shadow-card); scroll-snap-align: start; }
.tour__frame { overflow: hidden; border-radius: 14px; background: var(--white); }
.tour__frame iframe { display: block; width: 100%; height: 620px; border: 0; background: var(--white); }
.tour figcaption { padding: 14px 8px 6px; }
.tour figcaption b { display: block; font-weight: 800; font-stretch: 115%; font-size: 1.12rem; color: var(--navy); }
.tour figcaption span { font-size: .86rem; color: var(--muted); }

/* ---------- Principles (David's own words) ---------- */
.principles { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.principles li { display: flex; align-items: flex-start; gap: 18px; padding: 22px 24px; border: 1px solid var(--hair); border-radius: 20px; background: var(--white); box-shadow: var(--shadow-sm); }
.band--white .principles li { background: var(--bg); box-shadow: none; }
.principles li::before { content: ""; flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--amber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 20.5V11a5.5 5.5 0 0 1 11 0v9.5' fill='none' stroke='%2312293F' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat; }
.principles b { display: block; padding-top: 2px; font-weight: 800; font-stretch: 115%; font-size: clamp(1.18rem, 1.8vw, 1.42rem); line-height: 1.2; color: var(--navy); }
.principles span { display: block; margin-top: 4px; color: var(--muted); }

.statement { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.32; letter-spacing: -.01em; color: var(--navy); max-width: 30em; }

/* ---------- Ticks ---------- */
.ticks { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }
.ticks .i { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--amber-soft); color: var(--navy); stroke-width: 2.6; }
.band--navy .ticks li { color: var(--on-navy); }

/* ---------- Steps: numbered rows divided by hairlines ---------- */
.steps { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--hair); }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 64px); } }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 20px; align-content: start; padding: 26px 0; border-bottom: 1px solid var(--hair); }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid var(--hair-strong); border-radius: 50%; background: var(--white); font-weight: 800; font-size: 1.15rem; line-height: 1; color: var(--navy); }
.steps h3 { margin: 6px 0 6px; font-size: 1.3rem; }
.steps p { margin: 0; color: var(--muted); }
.band--navy .steps, .band--navy .steps li { border-color: var(--line-navy); }
.band--navy .steps li::before { border-color: rgba(242, 168, 59, .7); background: transparent; color: var(--amber); }
.band--navy .steps p { color: var(--on-navy-soft); }
/* Wide screens: heading on the left, the steps as one list on the right */
@media (min-width: 1000px) {
  .container:has(> .head + .steps) { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 72px; align-items: start; }
  .container:has(> .head + .steps) > .head { margin-bottom: 0; }
  .container:has(> .head + .steps) > .steps { grid-template-columns: 1fr; }
}

/* ---------- Inner page heading ---------- */
.page-head { overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--hair); }
.page-head__grid { display: grid; gap: 44px; align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 84px); }
.page-head h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); font-stretch: 125%; line-height: .98; letter-spacing: -.022em; }
.page-head .lead { margin-top: 22px; color: var(--ink); }
.page-head .btn-row { margin-top: 32px; }
.page-head__arch { justify-self: center; width: min(100%, 400px); aspect-ratio: 4 / 5; overflow: hidden; border: 8px solid var(--white); border-bottom: 0; border-radius: var(--arch); background: var(--sky); box-shadow: var(--shadow-lift); }
.page-head__arch img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .page-head__grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
@media (max-width: 899px) { .page-head__arch { width: min(72vw, 320px); } }
/* David's photo on inner pages: a plain rectangle, like on his current website */
.page-head__photo { justify-self: center; width: min(100%, 320px); aspect-ratio: 4 / 5; overflow: hidden; border: 8px solid var(--white); border-radius: 22px; background: var(--sky); box-shadow: var(--shadow-lift); }
.page-head__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .page-head__photo { justify-self: start; width: min(60vw, 250px); } }
.page-head--plain .page-head__grid { grid-template-columns: 1fr; }
/* Contact page: heading with David's small photo card beside it */
.contact-intro { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-intro { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; } .contact-intro .pcard { width: 220px; } }
.page-head--form .page-head__grid { align-items: start; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(24px, 3.6vw, 42px); border: 1px solid var(--hair); border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-card); }
.form-card > h2, .form-card > h3 { margin-bottom: 8px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .94rem; color: var(--navy); }
.field .optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 13px 16px;
  border: 1.5px solid #D3DBE4; border-radius: 12px;
  background: var(--bg); font-size: 1rem; line-height: 1.4;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2312293F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.field input::placeholder, .field textarea::placeholder { color: #75838F; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--hair-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background-color: var(--white); box-shadow: 0 0 0 4px rgba(242, 168, 59, .45); }
.field [aria-invalid="true"] { border-color: var(--error); background-color: #FCF3F1; }
.field-error { margin: 0; font-size: .9rem; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 22px; }
.form-note { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
.form-status { margin-top: 16px; }
.form-status:empty { display: none; }
.alert { padding: 16px 18px; border-radius: 14px; font-size: .96rem; }
.alert p { margin: 0 0 .5em; }
.alert p:last-child { margin: 0; }
.alert a { font-weight: 700; }
.alert--success { background: #E2F1E8; color: var(--navy); }
.alert--error { background: #FBECE9; color: #7E2A22; }

/* ---------- Closing call to action: a navy panel with the doorway outline ---------- */
.finale { padding: clamp(56px, 8vw, 104px) 0; background: var(--bg); }
.finale > .container { position: relative; isolation: isolate; overflow: hidden; width: calc(100% - var(--gutter) * 2); max-width: var(--max); padding: clamp(64px, 8vw, 112px) clamp(22px, 5vw, 72px); border-radius: 32px; background: var(--navy); color: var(--on-navy-soft); text-align: center; }
.finale > .container::before { content: ""; position: absolute; left: 50%; top: clamp(18px, 3vw, 34px); bottom: 0; z-index: -1; width: calc(100% - clamp(28px, 5vw, 72px)); transform: translateX(-50%); border: 2px solid rgba(242, 168, 59, .45); border-bottom: 0; border-radius: 50% 50% 0 0 / clamp(60px, 14vw, 200px) clamp(60px, 14vw, 200px) 0 0; }
.finale h2 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); font-stretch: 125%; letter-spacing: -.02em; color: var(--on-navy); }
.finale p { max-width: 32em; margin: 20px auto 0; font-size: clamp(1.06rem, 1.35vw, 1.18rem); }
.finale .btn-row { justify-content: center; margin-top: 36px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: repeat(5, 1fr); } }
.contact-tile { display: flex; flex-direction: column; gap: 14px; min-height: 164px; padding: 22px; border: 1px solid var(--hair); border-radius: 20px; background: var(--white); color: var(--navy); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s; }
.contact-tile:hover { border-color: var(--amber); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.contact-tile .i { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--amber-soft); color: var(--navy); }
.contact-tile b { margin-top: auto; font-weight: 800; font-stretch: 118%; font-size: 1.35rem; line-height: 1.1; }
.contact-tile span { font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.contact-tile--primary { grid-column: 1 / -1; border-color: var(--amber); background: var(--amber); box-shadow: 0 16px 34px -18px rgba(194, 112, 0, .8); }
.contact-tile--primary:hover { border-color: var(--amber-hi); background: var(--amber-hi); }
.contact-tile--primary .i { background: var(--navy); color: var(--amber); }
.contact-tile--primary span { color: rgba(18, 41, 63, .85); font-weight: 600; }
@media (min-width: 1000px) {
  .contact-tile--primary { grid-column: auto; }
  .contact-tile { padding: 22px 20px; }
  .contact-tile span { font-size: .8rem; }
}
/* Small phones: one tile per row, icon on the left, so nothing is squeezed */
@media (max-width: 479px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-tile { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; min-height: 0; padding: 16px 18px; }
  .contact-tile .i { grid-row: span 2; }
  .contact-tile b { margin-top: 0; font-size: 1.22rem; }
}
.contact-layout { display: grid; gap: 56px; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; } }
.contact-layout .head { margin-bottom: 28px; }

/* Planner */
.planner { padding: clamp(24px, 3.6vw, 42px); border: 1px solid var(--hair); border-radius: 24px; background: var(--white); box-shadow: var(--shadow-card); }
.planner__top { display: flex; align-items: center; gap: 14px; min-height: 44px; margin-bottom: 22px; }
.planner__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px 0 0; border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.planner__back:hover { color: var(--navy); }
.planner__back[hidden] { display: inline-flex; visibility: hidden; }
.planner__progress { flex: 1; height: 8px; border-radius: 6px; background: var(--sky); overflow: hidden; }
.planner__progress i { display: block; height: 100%; width: 20%; border-radius: 6px; background: var(--amber); transition: width .5s var(--ease); }
.planner__count { font-size: .88rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pstep { display: none; }
.pstep.is-on { display: block; animation: fadeUp .45s var(--ease); }
.pstep h3 { margin-bottom: 6px; }
.pstep > p { color: var(--muted); margin-bottom: 20px; }
.choices { display: grid; gap: 10px; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 12px 18px; border: 1.5px solid var(--hair); border-radius: 14px; background: var(--bg); color: var(--navy); font-weight: 700; font-size: 1rem; line-height: 1.3; text-align: left; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.choice:hover { border-color: var(--amber); background: var(--white); }
.choice small { display: block; margin-top: 3px; font-size: .85rem; font-weight: 500; color: var(--muted); }
.choice .i { width: 26px; height: 26px; color: var(--amber-ink); }
.choice.is-selected { border-color: var(--navy); background: var(--navy); color: var(--on-navy); box-shadow: 0 0 0 3px rgba(242, 168, 59, .45); }
.choice.is-selected small { color: var(--on-navy-soft); }
.choice.is-selected .i { color: var(--amber); }
.choice--full { grid-column: 1 / -1; }
.choice--quiet { background: transparent; border-style: dashed; }
.summary { margin: 18px 0 22px; padding: 6px 18px; border: 1px solid var(--hair); border-radius: 14px; background: var(--bg); }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: .96rem; }
.summary div:last-child { border-bottom: 0; }
.summary span { color: var(--muted); }
.summary b { color: var(--navy); text-align: right; }
.send-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.send-grid .wide { grid-column: 1 / -1; }
.send-grid .btn { padding: 0 14px; }
.planner__restart { margin-top: 14px; padding: 8px 0; border: 0; background: none; color: var(--muted); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Privacy ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin: 2em 0 .6em; font-size: 1.6rem; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.notice { max-width: 44rem; margin-top: 26px; padding: 18px 22px; border: 1px solid rgba(242, 168, 59, .7); border-radius: 16px; background: var(--amber-soft); color: var(--ink); font-size: .96rem; }
.notice strong { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(64px, 8vw, 96px) 0 40px; background: var(--navy-deep); color: var(--on-navy-soft); font-size: .97rem; }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; } }
.footer-brand .wordmark { margin-bottom: 18px; color: var(--on-navy); }
.footer-brand .wordmark small { color: var(--on-navy-soft); }
.footer-brand .wordmark__mark rect { fill: var(--navy-3); }
.footer-brand p { max-width: 26em; }
.site-footer h2 { margin-bottom: 16px; font-size: 1rem; font-stretch: 112%; color: var(--on-navy); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .i { color: var(--amber); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(242, 168, 59, .5); border-radius: 50%; color: var(--amber); }
.social a:hover { border-color: var(--amber); background: rgba(242, 168, 59, .12); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-navy); font-size: .87rem; }
.footer-legal p { margin: 0 0 6px; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }

/* ---------- Mobile contact bar ---------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--white); border-top: 1px solid var(--hair); box-shadow: 0 -10px 30px -18px rgba(18, 41, 63, .4); transition: transform .3s var(--ease); }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 64px; color: var(--navy); font-size: .8rem; font-weight: 700; text-decoration: none; }
.action-bar a:first-child { background: var(--amber); font-weight: 800; }
.action-bar .i { width: 22px; height: 22px; stroke-width: 1.9; }
.menu-open .action-bar { transform: translateY(110%); }
.has-action-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .action-bar { display: none; } .has-action-bar { padding-bottom: 0; } }

/* ---------- Small phones ---------- */
@media (max-width: 400px) {
  .btn { padding: 12px 20px; }
  .choices--2 { grid-template-columns: 1fr; }
  .wordmark { gap: 10px; }
  .wordmark__mark { width: 34px; height: 34px; }
  .wordmark b { font-size: .95rem; white-space: nowrap; }
  .wordmark small { font-size: .7rem; }
  .qa { gap: 8px 10px; }
  .qa a { min-width: 58px; }
  .contact-tile { column-gap: 14px; padding: 14px 16px; grid-template-columns: 40px minmax(0, 1fr); }
  .contact-tile .i { width: 40px; height: 40px; padding: 9px; }
  .contact-tile span { font-size: .8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .door { display: none !important; }
  .ticker__track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker__group + .ticker__group { display: none; }
}
