/* ============================================================
   4726 Winnetka Ave / Single property listing site
   Built by Door3D. Editorial broadsheet direction.
   Agent identity leads: navy #1F3A6E + gold #C9A227.
   Door3D signature appears in the services row and footer.
   ============================================================ */

/* ---------- Local fonts, no CDN, no Google Fonts ---------- */
@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/Montserrat-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Titillium Web';
  src: url('assets/fonts/TitilliumWeb-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Titillium Web';
  src: url('assets/fonts/TitilliumWeb-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Titillium Web';
  src: url('assets/fonts/TitilliumWeb-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Armen brand */
  --navy: #1f3a6e;
  --navy-deep: #16294d;
  --navy-ink: #101a2e;
  --gold: #c9a227;
  --gold-ink: #8a6a12;          /* AA-safe gold for small text on cream */
  --gold-soft: rgba(201, 162, 39, 0.14);

  /* Door3D brand */
  --green: #296216;
  --green-deep: #17350e;
  --door-gold: #c48d26;

  /* Ground */
  --cream: #f6f3ea;
  --surface: #fffdf8;
  --text: #101a2e;
  --muted: #5e6472;
  --line: rgba(31, 58, 110, 0.16);
  --line-soft: rgba(31, 58, 110, 0.08);
  --on-dark: #f2eee2;
  --on-dark-muted: rgba(242, 238, 226, 0.72);

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;

  --shadow-lg: 0 30px 70px rgba(16, 26, 46, 0.16);
  --shadow-md: 0 18px 44px rgba(16, 26, 46, 0.1);
  --shadow-sm: 0 6px 18px rgba(16, 26, 46, 0.07);

  --max: 1180px;
  --pad: clamp(18px, 4vw, 44px);
  --ease: 240ms cubic-bezier(0.22, 0.61, 0.36, 1);

  --display: 'Montserrat', 'Franklin Gothic Medium', sans-serif;
  --body: 'Titillium Web', 'Trebuchet MS', sans-serif;

  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(
      118deg,
      rgba(31, 58, 110, 0.028) 0 1px,
      transparent 1px 9px
    ),
    radial-gradient(120% 60% at 82% -10%, rgba(201, 162, 39, 0.13), transparent 60%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  transition: top 160ms ease;
}
.skip:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.shell {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

.band { padding-block: clamp(52px, 8vw, 104px); }
.band--tight { padding-block: clamp(40px, 6vw, 72px); }

.band--paper {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

/* ---------- Section heads ---------- */
.head {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 22px);
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.head__title {
  font-size: clamp(1.6rem, 1.05rem + 2.4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--navy-deep);
}

.head__rule {
  flex: 1 1 auto;
  height: 1px;
  min-width: 20px;
  background: linear-gradient(90deg, var(--line), transparent);
  transform: translateY(-6px);
}

.head__note {
  flex: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ============================================================
   HEADER
   ============================================================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(201, 162, 39, 0.42);
}

.masthead__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  padding-block: 10px;
}

.masthead__id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}

.masthead__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: clamp(0.98rem, 0.9rem + 0.4vw, 1.22rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.masthead__name::before {
  content: "";
  width: 3px;
  height: 1.05em;
  flex: none;
  background: var(--gold);
}

.masthead__sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  padding-left: 13px;
}

.masthead__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
  border-bottom: 1px solid rgba(201, 162, 39, 0.55);
  padding-bottom: 2px;
  transition: color var(--ease), border-color var(--ease);
}
.masthead__tel:hover { color: var(--gold); border-color: var(--gold); }
.masthead__tel svg { flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--gold);
  color: #16140a;
  box-shadow: 0 12px 26px rgba(201, 162, 39, 0.28);
}
.btn--gold:hover { background: #d9b23a; }

.btn--navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 30px rgba(31, 58, 110, 0.26);
}
.btn--navy:hover { background: var(--navy-deep); }

.btn--outline {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--wide { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 84vh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(48px, 9vw, 92px) 0;
  background: var(--navy-deep);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 70% at 22% 18%, #2c4d86 0%, transparent 58%),
    linear-gradient(160deg, #22406f 0%, #101a2e 62%, #0b1220 100%);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.02) 46%, rgba(2, 5, 10, 0.7) 80%, rgba(2, 5, 10, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24) 0%, transparent 58%);
}

.hero__body { padding-bottom: clamp(26px, 4vw, 46px); }

.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: clamp(16px, 2.4vw, 26px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(242, 238, 226, 0.26);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
  backdrop-filter: blur(6px);
}

.tag--gold {
  border-color: var(--gold);
  background: var(--gold);
  color: #16140a;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 1.1rem + 5.4vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 16ch;
}

.hero h1 .h1-sub {
  display: block;
  margin-top: 0.16em;
  font-size: 0.34em;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.hero__sold {
  margin-top: clamp(16px, 2.2vw, 24px);
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  max-width: 46ch;
}

.hero__seal {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  top: clamp(24px, 5vw, 56px);
  width: clamp(94px, 12vw, 138px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.85);
  outline: 1px solid rgba(201, 162, 39, 0.34);
  outline-offset: 6px;
  background: rgba(201, 162, 39, 0.94);
  color: #16140a;
  transform: rotate(-7deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.hero__seal b {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  letter-spacing: 0.1em;
  line-height: 1;
}

.hero__seal span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}

/* Stat rail */
.rail {
  border-top: 1px solid rgba(242, 238, 226, 0.2);
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.42), rgba(11, 18, 32, 0.78));
  backdrop-filter: blur(10px);
}

.rail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat {
  padding: clamp(18px, 2.6vw, 30px) clamp(12px, 2vw, 26px);
  border-left: 1px solid rgba(242, 238, 226, 0.16);
}
.stat:first-child { border-left: 0; padding-left: 0; }

.stat__k {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat__v {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 0.9rem + 1.7vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #fff;
}

.stat__v small {
  font-size: 0.46em;
  letter-spacing: 0.06em;
  color: var(--on-dark-muted);
  margin-left: 4px;
}

/* ============================================================
   GALLERY
   ============================================================ */
.grid-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  grid-auto-flow: dense;
  gap: clamp(10px, 1.4vw, 16px);
}

.tile {
  position: relative;
  display: block;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, #e7e2d4, #d8d3c4);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

/* A wide tile covers two columns plus the gap between them.
   2.72 keeps its height equal to a 4:3 single tile, so rows
   stay flush at every column count. */
.tile--wide { grid-column: span 2; aspect-ratio: 2.72; }

@media (max-width: 620px) {
  .tile--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1), filter var(--ease);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(16, 26, 46, 0.1);
  background: linear-gradient(180deg, transparent 58%, rgba(11, 18, 32, 0.45));
  opacity: 0;
  transition: opacity var(--ease);
}

.tile:hover img, .tile:focus-visible img { transform: scale(1.045); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }

.tile__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--ease), transform var(--ease);
}
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }

.tile.is-missing { display: none; }

.gallery__empty {
  padding: clamp(30px, 6vw, 60px);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background: rgba(9, 14, 25, 0.96);
  backdrop-filter: blur(4px);
}
.lightbox[data-open="true"] { display: flex; }
body.is-locked { overflow: hidden; }

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px var(--pad);
  border-bottom: 1px solid rgba(242, 238, 226, 0.14);
  color: var(--on-dark);
}

.lightbox__count {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.lightbox__label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iconbtn {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-content: center;
  border-radius: 50%;
  border: 1px solid rgba(242, 238, 226, 0.28);
  color: var(--on-dark);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.iconbtn:hover { background: var(--gold); border-color: var(--gold); color: #16140a; }

.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.6vw, 20px);
  padding: clamp(10px, 2vw, 26px) var(--pad);
  min-height: 0;
}

.lightbox__stage img {
  flex: 1;
  min-width: 0;
  max-height: 100%;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lightbox__foot {
  padding: 0 var(--pad) 18px;
  color: var(--on-dark-muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 640px) {
  .lightbox__stage { padding-inline: 8px; }
  .iconbtn { width: 40px; height: 40px; }
}

[hidden] { display: none !important; }

/* ============================================================
   PROPERTY
   ============================================================ */
.prop {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 900px) {
  .prop { grid-template-columns: minmax(0, 1fr); }
}

.prop__lead {
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  margin-bottom: 20px;
}

.prop__lead::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.1em;
  line-height: 0.76;
  padding: 0.08em 0.12em 0 0;
  color: var(--gold-ink);
}

.prop__body { color: var(--muted); }
.prop__body + .prop__body { margin-top: 1em; }

.highlights {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.highlights h3 {
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.highlights li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.98rem;
}
.highlights li:last-child { border-bottom: 0; padding-bottom: 0; }

.highlights li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.specs { margin-top: clamp(28px, 4vw, 44px); }

.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}

.specs__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px dotted rgba(31, 58, 110, 0.28);
}

.specs__row dt {
  flex: none;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.specs__row dd {
  margin: 0 0 0 auto;
  text-align: right;
  font-weight: 600;
  color: var(--navy-deep);
}

/* ============================================================
   FEATURES
   ============================================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}

.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.chip--alt::before { background: var(--navy); }

.split2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 4vw, 52px);
}

.sub {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 16px;
}

/* ============================================================
   SCHOOLS
   ============================================================ */
.schools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.school {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(20px, 2.4vw, 26px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.school__score {
  flex: none;
  width: 58px; height: 58px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--gold-soft);
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--navy-deep);
}

.school__score small {
  display: block;
  font-family: var(--body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  margin-top: 2px;
}

.school h3 {
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.school__meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.schools__note {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ============================================================
   LOCATION
   ============================================================ */
.loc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

@media (max-width: 860px) {
  .loc { grid-template-columns: minmax(0, 1fr); }
}

.loc__copy p + p { margin-top: 1em; color: var(--muted); }

.loc__pins {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.map {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eae5d6;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
  min-height: 300px;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.map__plate {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(22, 41, 77, 0.94);
  color: var(--on-dark);
  box-shadow: var(--shadow-md);
}

.map__plate b {
  display: block;
  font-family: var(--display);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}

.map__plate span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--on-dark-muted);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   AGENT
   ============================================================ */
.agent {
  position: relative;
  padding: clamp(28px, 4.6vw, 60px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(201, 162, 39, 0.2), transparent 58%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 60%, #0f1c36 100%);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.agent::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 162, 39, 0.34);
  border-radius: calc(var(--r-lg) - 6px);
  pointer-events: none;
}

.agent__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

@media (max-width: 700px) {
  .agent__inner { grid-template-columns: minmax(0, 1fr); }
}

.agent__mono {
  width: clamp(84px, 10vw, 110px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.6);
  background: rgba(201, 162, 39, 0.14);
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--gold);
}

.agent h2 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #fff;
}

.agent__creds {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.agent__tag {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(1.02rem, 0.9rem + 0.7vw, 1.42rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.agent__since {
  margin-top: 6px;
  color: var(--on-dark-muted);
  font-size: 0.94rem;
}

.agent__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  margin: clamp(22px, 3vw, 30px) 0;
  background: rgba(242, 238, 226, 0.18);
  border: 1px solid rgba(242, 238, 226, 0.18);
  border-radius: var(--r-md);
  overflow: hidden;
}

.agent__stat {
  padding: 16px 18px;
  background: rgba(11, 18, 32, 0.44);
}

.agent__stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gold);
}

.agent__stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.agent__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px 28px;
}

.agent__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(242, 238, 226, 0.14);
  font-size: 0.95rem;
}

.agent__row dt {
  flex: none;
  width: 68px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.agent__row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
}

.agent__row a { border-bottom: 1px solid rgba(201, 162, 39, 0.5); transition: color var(--ease); }
.agent__row a:hover { color: var(--gold); }

/* ============================================================
   FORM
   ============================================================ */
.showing {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 880px) {
  .showing { grid-template-columns: minmax(0, 1fr); }
}

.showing__copy h2 {
  font-size: clamp(1.7rem, 1.15rem + 2.2vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 16px;
}

.showing__copy p { color: var(--muted); }

.showing__direct {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.showing__direct b { display: block; font-family: var(--display); color: var(--navy-deep); letter-spacing: -0.01em; }
.showing__direct a { font-size: 1.12rem; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--gold); }

.form {
  position: relative;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.field textarea { min-height: 108px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 58, 110, 0.16);
}

.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.form__fine {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.form.is-sent .form__body { display: none; }

.form__done { display: none; text-align: center; padding: clamp(14px, 3vw, 30px) 0; }
.form.is-sent .form__done { display: block; }

.form__done .check {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 2px solid var(--gold);
  color: var(--navy-deep);
}

.form__done h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.form__done p { color: var(--muted); }

.linkbtn {
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--green-deep);
  color: var(--on-dark);
  padding-block: clamp(44px, 6vw, 72px) 32px;
}

.foot__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(26px, 4vw, 48px);
  padding-bottom: clamp(26px, 4vw, 40px);
  border-bottom: 1px solid rgba(242, 238, 226, 0.16);
}

.foot__by {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--door-gold);
  margin-bottom: 16px;
}

.foot__logo { width: clamp(150px, 20vw, 200px); height: auto; }
.foot__logo-fallback {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.foot__blurb { margin-top: 16px; color: var(--on-dark-muted); font-size: 0.94rem; max-width: 42ch; }

.foot h3 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--door-gold);
  margin-bottom: 14px;
}

.foot__list li { padding: 6px 0; }
.foot__list a { border-bottom: 1px solid rgba(196, 141, 38, 0.4); transition: color var(--ease); }
.foot__list a:hover { color: var(--door-gold); }

.foot__legal {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(242, 238, 226, 0.62);
}

.foot__legal strong { color: rgba(242, 238, 226, 0.85); font-weight: 600; }

/* ============================================================
   MOTION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .svc:hover { transform: none; }
  .tile:hover img { transform: none; }
}

/* ============================================================
   SMALL SCREENS
   ============================================================ */
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .masthead__tel span.tel-text { display: none; }
  .masthead__tel {
    width: 44px;
    height: 44px;
    flex: none;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(201, 162, 39, 0.6);
    border-radius: 50%;
  }
  .masthead__sub { font-size: 0.66rem; letter-spacing: 0.12em; }
  .hero__seal { width: 82px; top: 18px; }
  .stat:first-child { padding-left: 0; }
  .stat { border-left: 0; border-top: 1px solid rgba(242, 238, 226, 0.16); }
  .rail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-left: 1px solid rgba(242, 238, 226, 0.16); padding-left: 16px; }
}

/* Two row header on narrow phones so the brokerage line never
   wraps into a ragged block beside the button. */
@media (max-width: 560px) {
  .masthead__inner {
    min-height: 0;
    flex-wrap: wrap;
    row-gap: 10px;
    padding-block: 12px;
  }
  .masthead__id { flex: 1 0 100%; margin-right: 0; }
  .masthead__sub { white-space: nowrap; }
  .masthead__tel { order: 2; }
  .masthead .btn--gold { order: 3; flex: 1 1 auto; }
  html { scroll-padding-top: 130px; }
}

@media (max-width: 430px) {
  .btn { padding: 0 16px; font-size: 0.74rem; letter-spacing: 0.1em; }
  .head { flex-wrap: wrap; }
  .head__note { width: 100%; }
}
