/* ==========================================================================
   The Styled Story: draft marketing site
   Palette pulled from L3-titlecase.svg: forest #1F3A31, pale gold #E3D0A3,
   line gold #C8AF7E, deep gold #B0935F, ivory #EEE7D7
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic-var.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --forest: #1F3A31;
  --forest-ink: #1B332B;
  --gold-pale: #E3D0A3;
  --gold: #C8AF7E;
  --gold-deep: #B0935F;
  --gold-ink: #7A6234;          /* accessible gold for small text on light grounds */
  --ivory: #EEE7D7;
  --paper: #F8F4EC;
  --greige: #E8E0D0;
  --ink: #33443D;
  --ink-soft: #4A5A53;
  --on-dark: #EEE7D7;
  --on-dark-soft: #CFC6B3;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --hair: 1px solid rgba(176, 147, 95, .55);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 1.0625rem; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--forest); margin: 0; line-height: 1.08; letter-spacing: -.005em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-deep); }
h2 { font-size: clamp(2.3rem, 1.55rem + 2.6vw, 3.6rem); margin-bottom: 1.5rem; text-wrap: balance; }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--gold-pale); color: var(--forest); padding: .6rem 1rem; font-size: .85rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 1px solid var(--gold-deep); outline-offset: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--ivory { background: var(--ivory); }

/* ---------- Labels & ornaments ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--sans); font-weight: 400; font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: var(--gold-deep); flex: none; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 2.5rem; height: 1px; background: var(--gold-deep); flex: none; }
.eyebrow--light { color: var(--gold-pale); }
.eyebrow--light::before { background: var(--gold); }

.ornament { display: flex; align-items: center; justify-content: center; gap: .9rem; color: var(--gold-deep); }
.ornament span { width: 3.5rem; height: 1px; background: currentColor; opacity: .8; }
.ornament svg { width: 14px; height: 14px; }
.ornament--light { color: var(--gold); }

.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(3rem, 6vw, 4.75rem); }
.section-head p:last-child { margin-bottom: 0; }
.section-head--narrow p { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--sans); font-weight: 400; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; padding: 1.05rem 2.1rem; border: 1px solid transparent; border-radius: 0;
  cursor: pointer; transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  line-height: 1.2; white-space: nowrap;
}
.btn--sm { padding: .78rem 1.35rem; font-size: .7rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold-pale); color: var(--forest); border-color: var(--gold-pale); }
.btn--gold:hover { background: var(--ivory); border-color: var(--ivory); }
.btn--ghost-light { color: var(--on-dark); border-color: rgba(200, 175, 126, .75); background: transparent; }
.btn--ghost-light:hover { background: rgba(227, 208, 163, .12); border-color: var(--gold-pale); }
.btn--forest { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.btn--forest:hover { background: transparent; color: var(--forest); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--forest);
  border-bottom: 1px solid rgba(200, 175, 126, .28);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(10, 22, 18, .6); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; flex: none; }
.brand__mark { width: auto; height: 46px; }
.brand__word {
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark);
  line-height: 1; white-space: nowrap;
}
.brand__word em { font-style: italic; text-transform: none; letter-spacing: .02em; font-size: 1.45em; color: var(--gold-pale); margin: 0 .12em; }
.nav__menu { display: flex; align-items: center; gap: 2.2rem; }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-size: .72rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-soft);
  text-decoration: none; padding-block: .4rem; background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
  transition: color .25s ease, background-size .35s ease;
}
.nav__links a:hover { color: var(--on-dark); background-size: 100% 1px; }
.nav__toggle { display: none; }

@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .brand__mark { height: 40px; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--gold-pale);
  }
  .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .3s ease, opacity .3s ease; }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -7px; } .nav__bars::after { top: 7px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1.5rem;
    background: var(--forest); padding: 1rem var(--gutter) 2rem; border-bottom: 1px solid rgba(200, 175, 126, .28);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
  }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links li + li { border-top: 1px solid rgba(200, 175, 126, .16); }
  .nav__links a { display: block; padding-block: 1rem; font-size: .78rem; background: none; }
  .nav__cta { align-self: flex-start; }
}
@media (max-width: 420px) {
  .brand { gap: .7rem; }
  .brand__word { font-size: .88rem; letter-spacing: .24em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--forest); color: var(--on-dark); text-align: center; overflow: hidden;
  background-image: radial-gradient(ellipse 70% 55% at 50% 30%, rgba(227, 208, 163, .07), transparent 70%);
}
.hero__frame { position: absolute; inset: clamp(.9rem, 2.2vw, 1.75rem); border: 1px solid rgba(200, 175, 126, .35); pointer-events: none; }
.hero__frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(200, 175, 126, .16); }
.hero__inner { position: relative; padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(4.5rem, 8vw, 6.5rem); display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: clamp(230px, 26vw, 360px); margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.hero__title {
  color: var(--on-dark); font-weight: 300; font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.1rem); line-height: 1.04;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 1.4rem; max-width: 15ch; text-wrap: balance;
}
.hero__title em { color: var(--gold-pale); }
.hero__lede { max-width: 38rem; color: var(--on-dark-soft); font-size: clamp(1rem, .95rem + .25vw, 1.15rem); margin-bottom: 2.4rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Pillars ---------- */
.pillars { padding-block: clamp(4.5rem, 8vw, 7rem); text-align: center; border-bottom: var(--hair); }
.statement {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); line-height: 1.25;
  color: var(--forest); max-width: 34ch; margin: 0 auto clamp(3rem, 6vw, 4.5rem); text-wrap: balance;
}
.statement em { color: var(--gold-deep); }
.pillars__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillars__list li { padding: .5rem clamp(1rem, 3vw, 2.75rem); }
.pillars__list li + li { border-left: var(--hair); }
.pillars__num { display: block; font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 1.15rem; margin-bottom: .2rem; }
.pillars__list h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 400; letter-spacing: .3em; text-transform: uppercase; margin-bottom: .75rem; }
.pillars__list p { color: var(--ink-soft); font-size: .98rem; margin: 0 auto; max-width: 24ch; }
@media (max-width: 720px) {
  .pillars__list { grid-template-columns: 1fr; }
  .pillars__list li { padding: 1.75rem 0; }
  .pillars__list li + li { border-left: 0; border-top: var(--hair); }
}

/* ---------- Image placeholders ---------- */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #F2ECE0 0%, var(--greige) 100%);
  border: 1px solid rgba(176, 147, 95, .75); aspect-ratio: 4 / 5; overflow: hidden;
}
.ph::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(200, 175, 126, .5); pointer-events: none; border-radius: inherit; }
.ph__label {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: .65rem; padding: 0 1rem; text-align: center;
  font-size: .64rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink);
}
.ph__label::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--gold-deep); transform: rotate(45deg); }
.ph--arch { border-radius: 1000px 1000px 0 0; }
.ph--arch::before { border-radius: 1000px 1000px 0 0; }
.ph--tall { aspect-ratio: 4 / 5.4; }
.ph--portrait { aspect-ratio: 3 / 4; }

/* ---------- Split sections ---------- */
.split__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; padding-bottom: 3.5rem; max-width: 500px; width: 100%; justify-self: center; }
.split__media .ph--tall { width: 82%; }
.split__media .ph--inset { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1; box-shadow: 0 0 0 10px var(--paper); }
.split--reverse .split__media .ph--tall { margin-left: auto; }
.split--reverse .split__media .ph--inset { right: auto; left: 0; }
.section--ivory .split__media .ph--inset { box-shadow: 0 0 0 10px var(--ivory); }
.split__copy > p:not(.eyebrow) { color: var(--ink-soft); max-width: 34rem; }
.split__copy .btn { margin-top: 1rem; }

.checklist { margin: 1.75rem 0 2rem; border-top: var(--hair); }
.checklist li { position: relative; padding: .85rem 0 .85rem 1.9rem; border-bottom: var(--hair); color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: .2rem; top: 1.45rem; width: 7px; height: 7px; background: var(--gold-deep); transform: rotate(45deg);
}
.checklist--light { border-color: rgba(200, 175, 126, .35); }
.checklist--light li { color: var(--on-dark); border-color: rgba(200, 175, 126, .35); }
.checklist--light li::before { background: var(--gold); }

.offerings { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.25rem; margin: 1.75rem 0 2rem; }
.offerings div { padding: 1.15rem 0; border-top: var(--hair); }
.offerings dt { font-family: var(--serif); font-size: 1.4rem; color: var(--forest); line-height: 1.2; margin-bottom: .3rem; }
.offerings dd { margin: 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.6; }

@media (max-width: 900px) {
  .split__grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 440px; }
}
@media (max-width: 520px) { .offerings { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 58px; left: 12%; right: 12%; height: 1px; background: rgba(176, 147, 95, .55); }
.step { text-align: center; position: relative; }
.step__arch {
  position: relative; width: 92px; height: 116px; margin: 0 auto 1.75rem; background: var(--paper);
  border: 1px solid var(--gold-deep); border-radius: 1000px 1000px 0 0; display: flex; align-items: center; justify-content: center;
}
.step__arch::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(200, 175, 126, .55); border-radius: inherit; }
.step__arch span { font-family: var(--serif); font-style: italic; font-size: 1.9rem; color: var(--gold-deep); padding-top: .6rem; }
.step h3 { font-size: 1.65rem; margin-bottom: .75rem; }
.step p { color: var(--ink-soft); font-size: .98rem; margin: 0 auto; max-width: 26ch; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 3rem; }
  .step__arch { width: 80px; height: 100px; margin-bottom: 1.25rem; }
}

/* ---------- Story / team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.team__card { text-align: center; }
.team__card .ph { margin-bottom: 1.75rem; }
.team__card h3 { font-size: 2rem; }
.team__role { font-size: .72rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); margin: .5rem 0 .9rem; }
.team__bio { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--ink-soft); margin: 0 auto; max-width: 30ch; }
@media (max-width: 820px) {
  .team { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; row-gap: 3.5rem; }
}

/* ---------- Realtors ---------- */
.realtors { background: var(--paper); padding-bottom: var(--section-y); }
.realtors__card {
  position: relative; background: var(--forest); color: var(--on-dark-soft);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.75rem, 7vw, 6.5rem);
}
.realtors__card::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(200, 175, 126, .4); pointer-events: none; }
.realtors__card::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(200, 175, 126, .16); pointer-events: none; }
.realtors__crest { width: 100%; max-width: 340px; justify-self: center; opacity: .95; }
.realtors h2 { color: var(--on-dark); }
.realtors h2 em { color: var(--gold-pale); }
.realtors__copy > p:not(.eyebrow) { max-width: 34rem; }
.realtors .checklist { margin-top: 1.5rem; }
@media (max-width: 900px) {
  .realtors__card { grid-template-columns: 1fr; text-align: left; }
  .realtors__crest { max-width: 220px; }
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.contact__intro > p:not(.eyebrow) { color: var(--ink-soft); max-width: 30rem; }
.contact__details { margin: 2.25rem 0 0; border-top: var(--hair); }
.contact__details div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: var(--hair); align-items: baseline; }
.contact__details dt { font-size: .68rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); }
.contact__details dd { margin: 0; color: var(--forest); font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; overflow-wrap: anywhere; }
.contact__details a { text-decoration: none; background: linear-gradient(var(--gold-deep), var(--gold-deep)) left bottom / 100% 1px no-repeat; padding-bottom: 2px; }
.contact__details a:hover { color: var(--gold-ink); }

.form { background: var(--paper); padding: clamp(1.75rem, 4vw, 3.25rem); position: relative; border: var(--hair); }
.form::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(200, 175, 126, .28); pointer-events: none; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.75rem; }
.field { display: block; margin: 0 0 1.6rem; position: relative; }
.field > span, .field legend {
  display: block; font-size: .68rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .45rem;
}
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--forest); background: transparent;
  border: 0; border-bottom: 1px solid rgba(176, 147, 95, .7); border-radius: 0; padding: .55rem 0; outline: none;
  transition: border-color .25s ease;
}
.field textarea { resize: vertical; min-height: 8rem; border: 1px solid rgba(176, 147, 95, .7); padding: .8rem .9rem; line-height: 1.6; }
.field textarea::placeholder { color: #8E978F; }
.field input:focus, .field textarea:focus { border-color: var(--forest); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field--choice { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(176, 147, 95, .7); }
.choice label { position: relative; cursor: pointer; }
.choice label + label { border-left: 1px solid rgba(176, 147, 95, .7); }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; text-align: center; padding: .85rem .5rem; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); transition: background-color .25s, color .25s; }
.choice input:checked + span { background: var(--forest); color: var(--gold-pale); }
.choice input:focus-visible + span { outline: 1px solid var(--gold-deep); outline-offset: -5px; }
.form .btn { margin-top: .5rem; }
.form__status { margin: 1rem 0 0; font-size: .92rem; color: var(--ink-soft); text-align: center; min-height: 1.5em; }
.form__status:empty { display: none; }
.form__status.is-error { color: #8A3B2E; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form__row--2 { grid-template-columns: 1fr; }
  .contact__details div { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--on-dark-soft); padding-block: clamp(4rem, 8vw, 6rem) 2rem; text-align: center; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: rgba(200, 175, 126, .3); }
.footer__inner { display: flex; flex-direction: column; align-items: center; }
.footer__logo { width: clamp(180px, 18vw, 230px); margin-bottom: 2.75rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; margin-bottom: 1.75rem; }
.footer__links a, .footer__contact { font-size: .72rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.footer__links a { text-decoration: none; color: var(--on-dark); }
.footer__links a:hover { color: var(--gold-pale); }
.footer__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 0; color: var(--on-dark-soft); letter-spacing: .14em; text-transform: none; font-size: .9rem; font-weight: 300; }
.footer__contact li { padding: 0 1.25rem; }
.footer__contact li + li { border-left: 1px solid rgba(200, 175, 126, .35); }
.footer__contact a { text-decoration: none; }
.footer__contact a:hover { color: var(--gold-pale); }
.footer__base {
  width: 100%; margin-top: 3.25rem; padding-top: 1.75rem; border-top: 1px solid rgba(200, 175, 126, .25);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: #A9B1A6;
}
.footer__base p { margin: 0; }
.footer__tagline { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold); letter-spacing: .02em; }
@media (max-width: 720px) {
  .footer__contact { flex-direction: column; gap: .5rem; }
  .footer__contact li + li { border-left: 0; }
  .footer__base { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
}

/* ==========================================================================
   Polish pass (after screenshot review)
   ========================================================================== */
h1, h2, h3, .statement, .contact__details dd, .footer__tagline { font-variant-numeric: lining-nums; }
.statement em { display: block; }
.team { max-width: 1040px; margin-inline: auto; }

@media (max-width: 560px) {
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .eyebrow { font-size: .68rem; letter-spacing: .22em; }
  .eyebrow:not(.eyebrow--center)::before { width: 1.5rem; }
  .eyebrow--center::before, .eyebrow--center::after { width: 1.75rem; }

  /* Process becomes a vertical timeline */
  .steps { row-gap: 2.25rem; }
  .steps::before { display: block; top: 50px; bottom: 50px; left: 39px; right: auto; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 80px 1fr; column-gap: 1.4rem; text-align: left; align-items: start; }
  .step__arch { grid-row: span 2; margin: 0; }
  .step h3 { margin: .9rem 0 .4rem; font-size: 1.55rem; }
  .step p { margin: 0; max-width: none; }

  .team { max-width: 290px; }

  /* Realtors band goes full-bleed */
  .realtors .container { padding-inline: 0; }
  .realtors__card { padding: 3.5rem calc(var(--gutter) + .75rem); }
  .realtors__card::before { inset: 10px; }
  .realtors__card::after { inset: 15px; }
}

.footer__logo { width: clamp(220px, 20vw, 270px); }
.footer__contact { letter-spacing: .04em; }
.footer__base { align-items: baseline; }
.footer__base .footer__tagline { font-family: var(--sans); font-style: normal; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
@media (min-width: 1081px) and (max-width: 1260px) {
  .nav { gap: 1.25rem; }
  .nav__menu { gap: 1.4rem; }
  .nav__links { gap: 1.2rem; }
  .brand__word { letter-spacing: .24em; }
}
.team__phone { margin: .55rem 0 .9rem; font-size: .9rem; letter-spacing: .14em; font-weight: 400; }
.team__phone a { color: var(--gold-ink); text-decoration: none; background: linear-gradient(var(--gold-deep), var(--gold-deep)) left bottom / 100% 1px no-repeat; padding-bottom: 3px; }
.team__phone a:hover { color: var(--forest); }
.footer__contact a { color: var(--on-dark); }
.footer__contact--meta { margin-top: .9rem; }
@media (max-width: 720px) {
  .footer__base { align-items: center; }
}
@media (max-width: 560px) {
  .steps::before { display: none; }
  .step { position: relative; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; left: 39px; top: 100px; width: 1px;
    height: calc(100% - 100px + 2.25rem); background: rgba(176, 147, 95, .55);
  }
}

/* ---------- Arched portrait frames (team) ---------- */
.arch-frame {
  position: relative; padding: 8px; margin-bottom: 1.75rem;
  border: 1px solid rgba(176, 147, 95, .85); border-radius: 1000px 1000px 0 0; background: var(--paper);
}
.arch-frame picture, .arch-frame img { display: block; width: 100%; border-radius: 1000px 1000px 0 0; }
.arch-frame img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; background: var(--greige); }
.arch-frame::after {   /* hairline on the photo edge, echoing the crest's double arch */
  content: ""; position: absolute; inset: 8px; border-radius: 1000px 1000px 0 0;
  box-shadow: inset 0 0 0 1px rgba(200, 175, 126, .55); pointer-events: none;
}

/* ==========================================================================
   Multi-page additions
   ========================================================================== */

/* ---------- Current page in nav + footer ---------- */
.nav__links a[aria-current="page"] { color: var(--gold-pale); background-size: 100% 1px; }
.nav__cta[aria-current="page"] { background: var(--gold-pale); color: var(--forest); border-color: var(--gold-pale); }
.footer__links a[aria-current="page"] { color: var(--gold-pale); text-decoration: underline; text-decoration-color: var(--gold-deep); text-underline-offset: .45em; }
@media (max-width: 1080px) {
  .nav__links a[aria-current="page"] { position: relative; padding-left: 1.25rem; background: none; }
  .nav__links a[aria-current="page"]::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--gold); transform: rotate(45deg);
  }
  .nav__menu { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
}

/* ---------- Inline text links ---------- */
.text-links a, .compare__note a, .process__more a, .accordion__body a, .notice a, .portfolio__ig a {
  color: var(--forest); text-decoration: none; font-weight: 400;
  background: linear-gradient(var(--gold-deep), var(--gold-deep)) left bottom / 100% 1px no-repeat; padding-bottom: 1px;
}
.compare__note a:hover, .process__more a:hover, .accordion__body a:hover, .notice a:hover, .portfolio__ig a:hover { color: var(--gold-ink); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .75rem; font-size: .74rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  color: var(--forest); text-decoration: none; padding-bottom: .35rem; border-bottom: 1px solid var(--gold-deep); transition: color .25s ease, gap .25s ease;
}
.link-arrow::after { content: ""; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.link-arrow:hover { color: var(--gold-ink); gap: 1rem; }
.btn--ghost-dark { color: var(--forest); border-color: rgba(176, 147, 95, .85); background: transparent; }
.btn--ghost-dark:hover { background: rgba(200, 175, 126, .14); border-color: var(--gold-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.split__copy .btn-row .btn { margin-top: 0; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; background: var(--forest); color: var(--on-dark); text-align: center; overflow: hidden;
  background-image: radial-gradient(ellipse 70% 70% at 50% 20%, rgba(227, 208, 163, .07), transparent 70%);
}
.page-hero__inner { position: relative; padding-block: clamp(4.25rem, 8vw, 6.75rem); display: flex; flex-direction: column; align-items: center; }
.page-hero--compact .page-hero__inner { padding-block: clamp(3.75rem, 7vw, 5.5rem); }
.page-hero .eyebrow { margin-bottom: 1.6rem; }
.eyebrow--light.eyebrow--center::after { background: var(--gold); }
.page-hero__title {
  color: var(--on-dark); font-weight: 300; font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.5rem); line-height: 1.05;
  max-width: 18ch; margin: 0 0 1.4rem; text-wrap: balance;
}
.page-hero__title em { color: var(--gold-pale); }
.page-hero__lede { max-width: 38rem; color: var(--on-dark-soft); font-size: clamp(1rem, .95rem + .25vw, 1.15rem); margin: 0; text-wrap: pretty; }
.page--about .page-hero__lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); color: var(--gold-pale); }
.page-hero__jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 0; margin-top: 2.25rem; }
.page-hero__jump a {
  font-size: .7rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark);
  text-decoration: none; padding: .2rem 1.25rem;
}
.page-hero__jump a + a { border-left: 1px solid rgba(200, 175, 126, .4); }
.page-hero__jump a:hover { color: var(--gold-pale); }

/* ---------- Home: intro, service cards, teasers ---------- */
.intro__family {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.4rem); line-height: 1.45; color: var(--ink-soft);
  max-width: 40ch; margin: clamp(2.75rem, 5vw, 3.75rem) auto 1.5rem; text-wrap: balance;
}
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); max-width: 1040px; margin-inline: auto; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--paper); border: var(--hair); padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 3.5vw, 3rem);
}
.card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(200, 175, 126, .28); pointer-events: none; }
.card__media { display: block; width: min(100%, 290px); margin-bottom: 2.25rem; text-decoration: none; }
.ph--card { aspect-ratio: 4 / 4.8; }
.card h3 { font-size: clamp(2rem, 1.7rem + .8vw, 2.4rem); margin-bottom: 1rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--gold-ink); }
.card__body { display: flex; flex-direction: column; align-items: center; flex: 1; }
.card__body > p:not(.eyebrow) { color: var(--ink-soft); max-width: 28rem; margin-bottom: 1.75rem; }
.card .link-arrow { margin-top: auto; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; max-width: 520px; } }

.realtors--teaser .realtors__card { grid-template-columns: .6fr 1.4fr; }
.realtors--teaser .realtors__crest { max-width: 260px; }
.realtors--teaser .btn { margin-top: .5rem; }
.realtors--page { padding-top: var(--section-y); }
@media (max-width: 900px) { .realtors--teaser .realtors__card { grid-template-columns: 1fr; } .realtors--teaser .realtors__crest { max-width: 180px; } }

/* ---------- Shared call to action band ---------- */
.cta-band { background: var(--ivory); padding-block: clamp(4.5rem, 9vw, 7.5rem); text-align: center; border-top: var(--hair); }
.section--ivory + .cta-band { background: var(--paper); }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { margin: 1.75rem 0 1.1rem; }
.cta-band p { color: var(--ink-soft); max-width: 34rem; margin-bottom: 2.25rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Services ---------- */
.split__copy > p + p:not(.eyebrow) { margin-top: -.25rem; }
.compare__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); max-width: 980px; margin-inline: auto; }
.compare__col { position: relative; padding: clamp(2rem, 4vw, 3rem); border: var(--hair); background: var(--ivory); }
.compare__col::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(200, 175, 126, .3); pointer-events: none; }
.compare__col h3 { font-size: 2rem; margin-bottom: .4rem; }
.compare__col > p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); margin: 0; }
.compare__col .checklist { margin: 1.25rem 0 0; }
.compare__col .checklist li:last-child { border-bottom: 0; }
.compare__note, .process__more { text-align: center; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; color: var(--ink-soft); }
@media (max-width: 760px) { .compare__grid { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Placeholder / draft notices ---------- */
.notice {
  display: flex; align-items: center; gap: 1.25rem; max-width: 820px; margin: 0 auto clamp(2.75rem, 5vw, 4rem);
  padding: 1.1rem 1.5rem; background: var(--ivory); border: 1px dashed var(--gold-deep);
}
.notice p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }
.notice__badge {
  flex: none; font-size: .62rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  background: var(--forest); color: var(--gold-pale); padding: .4rem .8rem;
}
@media (max-width: 560px) { .notice { flex-direction: column; align-items: flex-start; gap: .8rem; } }

/* ---------- Portfolio ---------- */
.portfolio__ig { text-align: center; margin: clamp(2.75rem, 5vw, 3.75rem) 0 0; color: var(--ink-soft); }

/* ---------- About: arched family feature ---------- */
.feature__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.feature__media { position: relative; margin: 0; width: 100%; max-width: 520px; justify-self: center; }
.feature__media::before {   /* offset outline arch, echoing the crest's double arch */
  content: ""; position: absolute; inset: 0; transform: translate(18px, 18px); border: 1px solid rgba(176, 147, 95, .55);
  border-radius: 1000px 1000px 0 0; pointer-events: none;
}
.arch-frame--feature { margin-bottom: 0; padding: 12px; }
.arch-frame--feature img { aspect-ratio: 4 / 5; object-position: 50% 0; }
.arch-frame--feature::after { inset: 12px; }
.feature__copy > p:not(.eyebrow) { color: var(--ink-soft); max-width: 34rem; }
.values { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; margin-top: 2rem; padding-top: 1.6rem; border-top: var(--hair); }
.values li { display: flex; align-items: center; gap: .65rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--forest); }
.values svg { width: 12px; height: 12px; color: var(--gold-deep); flex: none; }
@media (max-width: 900px) {
  .feature__grid { grid-template-columns: 1fr; }
  .feature__media { max-width: 460px; }
}
@media (max-width: 560px) {
  .feature__media { max-width: calc(100% - 14px); justify-self: start; }
  .feature__media::before { transform: translate(12px, 12px); }
  .arch-frame--feature { padding: 8px; }
  .arch-frame--feature::after { inset: 8px; }
}

/* ---------- FAQ accordion ---------- */
.faq__wrap { max-width: 880px; }
.faq__group + .faq__group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.faq__heading { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); margin-bottom: 1.25rem; }
.accordion { border-top: var(--hair); }
.accordion__item { border-bottom: var(--hair); }
.accordion__item summary {
  position: relative; list-style: none; cursor: pointer; padding: 1.3rem 3rem 1.3rem 0;
  font-family: var(--serif); font-size: clamp(1.25rem, 1.15rem + .35vw, 1.45rem); line-height: 1.3; color: var(--forest);
  transition: color .25s ease;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%; width: 15px; height: 15px; transform: translateY(-50%);
  background: linear-gradient(var(--gold-deep), var(--gold-deep)) center / 15px 1px no-repeat,
              linear-gradient(var(--gold-deep), var(--gold-deep)) center / 1px 15px no-repeat;
  transition: background-size .3s ease;
}
.accordion__item[open] summary::after { background-size: 15px 1px, 1px 0; }
.accordion__item summary:hover { color: var(--gold-ink); }
.accordion__item summary:focus-visible { outline-offset: 2px; }
.accordion__body { padding: 0 3rem 1.5rem 0; color: var(--ink-soft); }
.accordion__body p { margin: 0; }
@media (max-width: 560px) { .accordion__body { padding-right: 0; } .accordion__item summary { padding-right: 2.25rem; } }

/* ---------- Contact page ---------- */
.form__title { font-family: var(--serif); font-size: 1.75rem; color: var(--forest); line-height: 1.2; margin-bottom: 1.6rem; }
.form__preview { margin: 1rem 0 0; font-size: .82rem; line-height: 1.55; color: var(--gold-ink); text-align: center; }
/* Footer tagline shown in its exact case (no uppercase transform) */
.footer__base .footer__tagline { font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: .01em; text-transform: none; color: var(--gold); }

/* ---------- Fixes after multi-page screenshot review ---------- */
.choice label { display: flex; }
.choice span { flex: 1; display: flex; align-items: center; justify-content: center; }
.page-hero__lede { text-wrap: balance; }
@media (max-width: 560px) {
  .page-hero__inner, .hero__inner { padding-inline: calc(var(--gutter) + .9rem); }
  .page-hero__jump { flex-direction: column; align-items: center; gap: .35rem; margin-top: 1.75rem; }
  .page-hero__jump a + a { border-left: 0; }
  .page-hero__jump a { padding: .35rem 1rem; }
  .values { flex-direction: column; gap: .6rem; }
}
@media (max-width: 420px) {
  .choice span { letter-spacing: .12em; padding-inline: .35rem; font-size: .72rem; }
}

/* ==========================================================================
   Finished-room photography (portfolio.items in site.config.json)
   ========================================================================== */
/* Photo inside any .ph slot: fills the slot, cropped by object-fit; the slot's inner hairline sits on top */
.ph--photo { background: var(--greige); }
.ph--photo picture { position: absolute; inset: 0; }
.ph--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ph--photo picture, .ph--photo img { border-radius: inherit; }
.ph--photo::before { z-index: 1; border-color: rgba(248, 244, 236, .7); }

/* Home hero with full-bleed photo behind a forest veil */
.hero--photo { background-color: var(--forest); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg picture, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {   /* forest veil: lighter overall, a softer darker zone behind the crest and text */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 60% at 50% 48%, rgba(27, 51, 43, .8) 0%, rgba(27, 51, 43, .66) 50%, rgba(27, 51, 43, 0) 100%),
    linear-gradient(180deg, rgba(31, 58, 49, .52) 0%, rgba(31, 58, 49, .4) 45%, rgba(31, 58, 49, .56) 100%);
}
.hero--photo .hero__frame { z-index: 1; border-color: rgba(227, 208, 163, .55); }
.hero--photo .hero__inner { z-index: 2; }
.hero--photo .hero__logo { filter: drop-shadow(0 1px 10px rgba(16, 32, 26, .55)); }
.hero--photo .hero__title { text-shadow: 0 1px 2px rgba(16, 32, 26, .35), 0 2px 22px rgba(16, 32, 26, .5); }
.hero--photo .hero__lede { color: #E6DFCF; text-shadow: 0 1px 2px rgba(16, 32, 26, .6), 0 0 18px rgba(16, 32, 26, .55); }
.hero--photo .ornament { filter: drop-shadow(0 1px 4px rgba(16, 32, 26, .6)); }
.hero--photo .btn--ghost-light { background: rgba(27, 51, 43, .45); border-color: rgba(227, 208, 163, .85); color: #F3EDE0; }
.hero--photo .btn--ghost-light:hover { background: rgba(27, 51, 43, .7); }
.hero--photo .btn--gold { box-shadow: 0 6px 22px -10px rgba(16, 32, 26, .7); }
@media (max-width: 720px) {
  .hero__bg::after {
    background:
      radial-gradient(ellipse 85% 60% at 50% 40%, rgba(27, 51, 43, .6) 0%, rgba(27, 51, 43, 0) 100%),
      linear-gradient(180deg, rgba(27, 51, 43, .56), rgba(27, 51, 43, .66) 50%, rgba(27, 51, 43, .58));
  }
}

/* Home: finished-room showcase (three arches, centre one raised) */
.showcase__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); max-width: 1080px; margin-inline: auto; align-items: end; }
.showcase__item { margin: 0; text-align: center; }
.showcase__media { display: block; aspect-ratio: 3 / 4.1; }
.showcase__item:nth-child(2) .showcase__media { aspect-ratio: 3 / 4.4; }
.showcase__item figcaption, .gallery__item figcaption {
  margin-top: 1.1rem; font-size: .72rem; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink);
}
.showcase__cta { text-align: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 720px) {
  .showcase__grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
  .showcase__item:first-child { grid-column: 1 / -1; width: 78%; justify-self: center; }
  .showcase__item:first-child .showcase__media { aspect-ratio: 4 / 4.4; }
  .showcase__item:nth-child(n+2) .showcase__media { aspect-ratio: 3 / 4.2; }
  .showcase__item figcaption { margin-top: .75rem; font-size: .66rem; }
}

/* Portfolio: gallery grid. "wide" items span two columns, "tall" items are arched portraits */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: row dense;
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
}
.gallery__item { margin: 0; display: flex; flex-direction: column; }
.gallery__item--wide { grid-column: span 2; }
.gallery__media { flex: 1; min-height: clamp(380px, 37vw, 540px); aspect-ratio: auto; }
.gallery__item--wide .gallery__media::before { inset: 10px; }
.gallery__item figcaption { text-align: center; }
.gallery__item figcaption::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 .8rem .15em 0; background: var(--gold-deep); transform: rotate(45deg); }
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__media { min-height: 0; aspect-ratio: 3 / 4; }
  .gallery__item--wide .gallery__media { aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; row-gap: 2rem; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item--tall { width: 82%; justify-self: center; }
  .gallery__item--tall .gallery__media { aspect-ratio: 4 / 5; }
}

/* ---------- Photo behind an inner-page header (page entry "heroPhoto" in site.config.json) ----------
   Same veil, darker centre zone and text shadows as the Home hero (.hero__bg::after above). */
.page-hero--photo { background-color: var(--forest); }
.page-hero--photo .hero__frame { z-index: 1; border-color: rgba(227, 208, 163, .55); }
.page-hero--photo .page-hero__inner { z-index: 2; }
.page-hero--photo .page-hero__title { text-shadow: 0 1px 2px rgba(16, 32, 26, .35), 0 2px 22px rgba(16, 32, 26, .5); }
.page-hero--photo .page-hero__lede { color: #E6DFCF; text-shadow: 0 1px 2px rgba(16, 32, 26, .6), 0 0 18px rgba(16, 32, 26, .55); }
.page-hero--photo .eyebrow { color: var(--gold-pale); text-shadow: 0 1px 3px rgba(16, 32, 26, .7); }
.page-hero--photo .eyebrow::before, .page-hero--photo .eyebrow::after { box-shadow: 0 1px 3px rgba(16, 32, 26, .6); }
.page-hero--photo .page-hero__jump a { color: #F3EDE0; text-shadow: 0 1px 2px rgba(16, 32, 26, .75), 0 0 12px rgba(16, 32, 26, .6); }
.page-hero--photo .page-hero__jump a + a { border-left-color: rgba(227, 208, 163, .6); }

/* ---------- Portfolio: "small" items (use three together for a row) ---------- */
.gallery__item--small .gallery__media { flex: none; min-height: 0; aspect-ratio: 4 / 3.1; }
@media (max-width: 900px) {
  .gallery__item--small .gallery__media { aspect-ratio: 4 / 3.4; }
  .gallery__item--small:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .gallery__item--small:last-child:nth-child(odd) .gallery__media { aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
  /* phones: wide and tall items take the full row; small tiles sit two to a row (blocks of six -> 2 x 3) */
  .gallery { grid-template-columns: 1fr 1fr; column-gap: .9rem; }
  .gallery__item--wide, .gallery__item--tall { grid-column: 1 / -1; }
  .gallery__item--small .gallery__media { aspect-ratio: 4 / 3.6; }
  .gallery__item--small .gallery__media::before { inset: 6px; }
  .gallery__item--small figcaption { font-size: .6rem; margin-top: .6rem; }
  .gallery__item--small figcaption::before { width: 5px; height: 5px; margin-right: .55rem; }
  .gallery__item--small:last-child:nth-child(odd) .gallery__media { aspect-ratio: 3 / 2; }
}
/* Two-column (tablet) layout: a closing arch that would sit alone is centred on its own row */
@media (min-width: 561px) and (max-width: 900px) {
  .gallery__item--tall:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .gallery__item--small .gallery__media { flex: 1 1 auto; }   /* a small tile beside an arch fills the row height */
}

/* ---------- Realtors panels: arched photo in place of the crest (Realtors page + Home teaser) ----------
   Same arch as the team/feature frames: fine gold outline, ivory band, gold hairline on the photo edge,
   plus a pale-gold offset arch behind it. Optional --zoom / --zoom-origin on .arch-frame--zoom crop in
   further (CSS only; the photo file is untouched). */
.realtors__media { position: relative; margin: 0; width: 100%; max-width: 380px; justify-self: center; }
.realtors__media::before {
  content: ""; position: absolute; inset: 0; transform: translate(16px, 16px);
  border: 1px solid rgba(227, 208, 163, .4); border-radius: 1000px 1000px 0 0; pointer-events: none;
}
.arch-frame--panel { margin: 0; padding: 10px; background: var(--ivory, #EEE7D7); border-color: rgba(200, 175, 126, .95); }
.arch-frame--panel::after { inset: 10px; }
.arch-frame--panel picture { overflow: hidden; border-radius: 1000px 1000px 0 0; }
.arch-frame--panel img { aspect-ratio: 3 / 4; object-position: 50% 50%; }
.arch-frame--zoom img { transform: scale(var(--zoom, 1)); transform-origin: var(--zoom-origin, 50% 50%); }
.realtors--teaser .realtors__media { max-width: 300px; }
.realtors--teaser .arch-frame--panel img { aspect-ratio: 4 / 5; }
@media (max-width: 900px) {
  .realtors__media { max-width: 320px; margin-bottom: .75rem; }
  .realtors--teaser .realtors__media { max-width: 280px; }
}
@media (max-width: 560px) {
  .realtors__media { max-width: calc(100% - 64px); }
  .realtors--teaser .realtors__media { max-width: calc(100% - 84px); }
  .realtors__media::before { transform: translate(12px, 12px); }
  .arch-frame--panel { padding: 8px; }
  .arch-frame--panel::after { inset: 8px; }
}
