/* ============================================================
   Components — Todd Shea Real Estate
   ============================================================ */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--panel);
}
.hero__media { position: absolute; inset: 0; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Hero scrim.

   Retuned for the video, which sits around 0.19 mean luminance — roughly
   half as bright as the still it replaced. A lighter pool is enough for
   the headline here, which keeps more of the golden-hour footage visible.
   Verified on the rendered page against the actual glyph positions. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(132% 118% at 8% 90%,
      rgba(22,19,17,0.86) 0%,
      rgba(22,19,17,0.72) 26%,
      rgba(22,19,17,0.48) 46%,
      rgba(22,19,17,0.20) 66%,
      rgba(22,19,17,0.00) 86%),
    linear-gradient(to top,
      rgba(22,19,17,0.45) 0%,
      rgba(22,19,17,0.18) 28%,
      rgba(22,19,17,0.02) 60%,
      rgba(22,19,17,0.00) 100%);
}

@media (max-width: 720px) {
  .hero__scrim {
    background: linear-gradient(to top,
      rgba(22,19,17,0.88) 0%,
      rgba(22,19,17,0.64) 40%,
      rgba(22,19,17,0.26) 74%,
      rgba(22,19,17,0.10) 100%);
  }
}
/* The hero sits on a dark scrimmed photograph, so every element inside it
   uses the dark-surface colour tokens regardless of the light page base. */
.hero__inner { position: relative; width: 100%; padding-block: clamp(3rem, 8vw, 6rem); color: var(--bone); }
.hero h1, .hero h2, .hero h3 { color: var(--bone); }
.hero .eyebrow { color: var(--gold); }
.hero .muted { color: var(--bone-dim); }
.hero h1 { max-width: 15ch; margin-bottom: 1.5rem; }
.hero__lede { max-width: 46ch; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--bone); margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Placeholder art stand-in until real photography lands */
.ph {
  position: relative;
  background: var(--panel-light);
  overflow: hidden;
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--asphalt-dim);
  border: 1px dashed var(--asphalt-faint);
}
.ph--light { background: #E5E0D3; }
.ph--light::after { color: var(--asphalt-dim); border-color: var(--asphalt-faint); }
.section--dark .ph, .section--panel .ph, .hero .ph { background: var(--panel); }
.section--dark .ph::after, .section--panel .ph::after, .hero .ph::after {
  color: var(--bone-dim); border-color: var(--bone-faint);
}

/* ---------- Proof row ---------- */

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (max-width: 720px) { .proof { grid-template-columns: 1fr; gap: 2rem; } }

.proof__item { border-top: 3px solid var(--clay); padding-top: 1.1rem; }
.proof__item:nth-child(2) { border-top-color: var(--gold); }
.proof__item:nth-child(3) { border-top-color: var(--deep); }
.section--dark .proof__item:nth-child(3),
.section--panel .proof__item:nth-child(3) { border-top-color: var(--shorebreak); }
.proof__num {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.proof__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--asphalt-dim);
}
.section--dark .proof__label,
.section--panel .proof__label { color: var(--bone-dim); }

/* ---------- Split (image + copy) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split__media { aspect-ratio: 4 / 5; }

/* The waving-at-the-door photo is 0.65 aspect — taller than the standard
   4:5 slot, which was clipping 313px off the bottom (his legs). This
   variant matches the source so the full frame shows. */
.split__media--tall { aspect-ratio: 1075 / 1657; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
/* The mark is artwork, not a photograph — it is never cropped or
   stretched to fill the slot. Scale proportionally, centred, with room
   around it per the brand sheet's clear-space rule. */
.split__media--mark {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
}
.split__media--mark img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

.split--flip .split__media { order: 2; }
@media (max-width: 880px) { .split--flip .split__media { order: 0; } }

/* ---------- Work / lookbook cards ---------- */

.work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.work__card { text-decoration: none; color: inherit; display: block; }
.work__media { aspect-ratio: 4 / 3; margin-bottom: 1rem; overflow: hidden; background: var(--panel-light); }
.work__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.work__card:hover .work__media img,
.work__card:focus-visible .work__media img { transform: scale(1.04); }
.work__tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--deep-text);
  margin-bottom: 0.5rem;
}
.section--dark .work__tag, .section--panel .work__tag { color: var(--gold); }
.work__title { font-size: 1rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 0.3rem; }
.work__meta { font-size: 0.82rem; color: var(--asphalt-dim); }
.section--dark .work__meta, .section--panel .work__meta { color: var(--bone-dim); }

.work__disclaimer {
  margin-top: 1.75rem;
  font-size: 0.68rem;
  line-height: 1.7;
  color: var(--asphalt-dim);
  max-width: 78ch;
}
.section--dark .work__disclaimer, .section--panel .work__disclaimer { color: var(--bone-dim); }

/* ---------- Off-market capture ---------- */

/* Deep Shorebreak panel — the blue moment on the page.
   Uses the darkened tint so Bone body copy clears 5.12:1. */
.offmarket { background: var(--deep-text); color: var(--bone); }
.offmarket__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) { .offmarket__inner { grid-template-columns: 1fr; } }
.offmarket h2 { margin-bottom: 1rem; }
.offmarket p { color: rgba(244,241,232,0.95); }
.offmarket h2 { color: var(--bone); }

.capture { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.capture input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 1.05rem 1.15rem;
  border: 2px solid var(--bone);
  background: transparent;
  color: var(--bone);
}
.capture input[type="email"]::placeholder { color: rgba(244,241,232,0.6); }
.capture input[type="email"]:focus-visible { outline: 2px solid var(--asphalt); outline-offset: 2px; }
.capture .btn { border-color: var(--asphalt); background: var(--asphalt); color: var(--bone); }
.capture .btn:hover, .capture .btn:focus-visible { background: var(--bone); color: var(--asphalt); border-color: var(--bone); }

.capture-note { font-size: 0.74rem; color: var(--asphalt-dim); margin-top: 0.9rem; max-width: 46ch; }
.offmarket .capture-note { color: rgba(244,241,232,0.8); }
.capture-status { margin-top: 0.9rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Instagram grid ---------- */

/* Eight posts, so fixed column counts that always divide evenly:
   4x2 on desktop, 4x2 on tablet, 2x4 on phones. auto-fit was giving
   a 5+3 split on wide screens and a single column on mobile. */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }
.ig-cell { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--panel-light); display: block; }
.ig-cell img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }
.ig-cell:hover img, .ig-cell:focus-visible img { opacity: 0.72; }
.ig-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ig-handle {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--deep-text); text-decoration: none;
}
.ig-handle:hover, .ig-handle:focus-visible { color: var(--asphalt); }
.section--dark .ig-handle, .section--panel .ig-handle { color: var(--shorebreak); }
.section--dark .ig-handle:hover, .section--panel .ig-handle:hover { color: var(--bone); }
.section--dark .ig-cell, .section--panel .ig-cell { background: var(--panel); }

/* ---------- Testimonials ---------- */

.quote-list { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.quote {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--asphalt-faint);
}
.quote:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 760px) { .quote { grid-template-columns: 1fr; } .quote__media { max-width: 200px; } }
.quote__media { aspect-ratio: 1; }
.quote__media img { width: 100%; height: 100%; object-fit: cover; }
.quote__name { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.35rem; }
.quote__meta { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--deep-text); margin-bottom: 1.15rem; }
.quote__body { max-width: 62ch; }
.quote__body p { margin-bottom: 1rem; }
.quote__more { display: none; }
.quote__body[data-expanded="true"] .quote__more { display: block; }
.quote__toggle {
  background: none;
  border: 0;
  border-bottom: 2px solid var(--deep);
  padding: 0 0 2px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
}

/* ---------- Journal / SB Residency ---------- */

.issue-list { display: grid; gap: 0; }
.issue {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--asphalt-faint);
  text-decoration: none;
  color: inherit;
  transition: padding-inline 0.2s ease;
}
.issue:first-child { border-top: 1px solid var(--asphalt-faint); }
.issue:hover, .issue:focus-visible { padding-inline: 0.75rem; background: var(--panel-light); }
@media (max-width: 720px) { .issue { grid-template-columns: 1fr; gap: 0.5rem; } }
.issue__date { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--deep-text); }
.issue__title { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 0.4rem; }
.issue__sub { font-size: 0.9rem; color: var(--asphalt-dim); margin: 0; max-width: 54ch; }
.issue__no { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: var(--asphalt-dim); white-space: nowrap; }

/* Article body */
.article { max-width: 72ch; margin-inline: auto; }
.article__hero { aspect-ratio: 16 / 9; margin-bottom: clamp(2rem, 5vw, 3rem); }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article p img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 1.5rem auto;
  border-radius: 12px;
}
.article h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: 0.12em; margin-top: 2.75rem; }
.article h2:first-of-type { margin-top: 0; }
.article ul { padding-left: 1.1rem; margin-bottom: 1.15rem; }
.article li { margin-bottom: 0.5rem; }
.article__meta {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--deep-text); margin-bottom: 1rem;
}
.article__signoff {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--asphalt-faint);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.field label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--asphalt-dim);
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.95rem 1.05rem;
  border: 2px solid var(--asphalt-faint);
  background: var(--bone);
  color: var(--asphalt);
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--deep); outline-offset: 2px; border-color: transparent;
}

/* SMS consent — checkbox must never be pre-checked (A2P / TCPA requirement) */
.field--consent { margin-bottom: 1.5rem; }
.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start;
  font-size: 0.82rem; line-height: 1.5; letter-spacing: 0; text-transform: none;
  font-weight: 400; color: var(--asphalt-dim); cursor: pointer;
}
.consent input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: none;
  accent-color: var(--clay); cursor: pointer; padding: 0;
}
.consent a { color: var(--deep-text); text-decoration: underline; }
.consent input:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }

.contact-direct { display: grid; gap: 1.5rem; }
.contact-direct__row { border-top: 1px solid var(--asphalt-faint); padding-top: 1rem; }
.contact-direct__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--asphalt-dim); margin-bottom: 0.35rem; }
.contact-direct__value { font-size: 1.05rem; text-decoration: none; }
.contact-direct__value:hover, .contact-direct__value:focus-visible { color: var(--deep-text); }

/* ---------- Page masthead ---------- */

.masthead { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); }
.masthead h1 { max-width: 18ch; }
.masthead__lede { max-width: 54ch; margin-top: 1.25rem; }

/* ============================================================
   Scroll motion
   Elements are visible by default. The pre-reveal state only
   applies when JS has set data-motion="on" on <html>, so a JS
   failure or reduced-motion preference leaves everything readable.
   ============================================================ */

[data-motion="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

[data-motion="on"] [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* Parallax layer sits slightly oversized so the drift never
   exposes an edge. */
[data-motion="on"] [data-parallax] {
  will-change: transform;
}
.hero__media[data-parallax] {
  top: -8%;
  height: 116%;
}

/* The counters keep a stable width while digits change so the
   layout doesn't jitter mid-count. */
.proof__num {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ---------- Word-by-word headline ---------- */

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
[data-motion="on"] .word__inner {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-motion="on"] [data-words-in="true"] .word__inner {
  transform: none;
}

/* ---------- Stripe draw ---------- */

[data-motion="on"] .stripes span {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-motion="on"] .stripes span:nth-child(2) { transition-delay: 0.12s; }
[data-motion="on"] .stripes[data-drawn="true"] span { transform: none; }

/* ---------- Scroll-scaled media ---------- */

[data-motion="on"] [data-scroll-scale] {
  will-change: transform;
}
/* The media wrapper clips the oversized image so the scale never
   pushes past the card edge. */
.work__media, .split__media { overflow: hidden; }

/* ---------- Mark rotation ---------- */

[data-motion="on"] [data-scroll-rotate] {
  will-change: transform;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .word__inner { transform: none !important; }
  .stripes span { transform: none !important; }
  [data-scroll-scale], [data-scroll-rotate] { transform: none !important; }
}

/* ---------- Life band ----------
   Four portraits directly under the hero. This is deliberately the first
   thing after the headline: the personal material leads, the numbers come
   later on the Todd page. Keep captions to one short line — the pictures
   are doing the work, not the copy.                                     */



.life__item { margin: 0; }
.life__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: var(--panel-light);
}
.life__item--tall  .life__media { aspect-ratio: 3 / 4.4; }
.life__item--short .life__media { aspect-ratio: 4 / 4.6; }
@media (max-width: 460px) {
  .life__item--tall .life__media,
  .life__item--short .life__media { aspect-ratio: 4 / 5; }
}
.life__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.life__item figcaption {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--asphalt-dim);
  max-width: 26ch;
}
.section--dark .life__item figcaption { color: var(--bone-dim); }

.life .section-head h2 { max-width: 22ch; }

/* ---------- The room (SBAOR toast) ---------- */

.room__media { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.room__media img { width: 100%; height: auto; display: block; }
.room__copy { max-width: 58ch; }
.room__copy h2 { margin-bottom: 0.9rem; }

/* ---------- Wide inline figure ----------
   Full-column photograph used where a portrait crop would lose the
   subject — e.g. a building that needs its width to read.            */

.wide-figure {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}
.wide-figure img { width: 100%; height: auto; display: block; }
.wide-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--asphalt-dim);
  max-width: 52ch;
}
.section--dark .wide-figure figcaption,
.section--panel .wide-figure figcaption { color: var(--bone-dim); }



/* ---------- Hero video ----------
   The video plays on capable devices; the <picture> underneath is the
   fallback for reduced-motion, save-data, narrow screens, and any browser
   that can't play either source. JS in motion.js decides which shows.   */

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;                 /* revealed by JS once it can play */
}
.hero__still { display: block; width: 100%; height: 100%; }
.hero__still img { width: 100%; height: 100%; object-fit: cover; }

[data-hero-video="on"] .hero__video { display: block; }
[data-hero-video="on"] .hero__still { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none !important; }
  .hero__still { display: block !important; }
}

/* Credentials grid — six items, so allow a natural wrap rather than
   forcing three columns. Smaller numerals since several are words
   ("Currently", "Nominated") rather than figures. */
.proof--creds {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: clamp(2rem, 4vw, 3rem);
}
.proof--creds .proof__num { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.proof--creds .proof__item:nth-child(4) { border-top-color: var(--clay); }
.proof--creds .proof__item:nth-child(5) { border-top-color: var(--gold); }
.proof--creds .proof__item:nth-child(6) { border-top-color: var(--deep); }

/* ---------- Review stars ----------
   Used in place of client photos, which we don't have. Honest, on-brand,
   and keeps the two-column quote layout intact.                        */

.quote__stars {
  padding-top: 0.4rem;
}
.quote__stars svg {
  width: 108px;
  height: auto;
  fill: var(--gold);
}
@media (max-width: 760px) {
  .quote__stars { padding-top: 0; margin-bottom: 0.25rem; }
  .quote__stars svg { width: 92px; }
}

/* Inline text links — underlined so they read as links without relying
   on colour alone, which fails for anyone who can't distinguish it. */
.inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--deep-text);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}
.inline-link:hover, .inline-link:focus-visible {
  color: var(--deep-text);
  text-decoration-color: currentColor;
}
.section--dark .inline-link, .hero .inline-link, .offmarket .inline-link {
  text-decoration-color: var(--shorebreak);
}
.section--dark .inline-link:hover, .offmarket .inline-link:hover { color: var(--shorebreak); }


/* ---------- Life mosaic ----------
   Two tall columns flanking a stacked pair. Every slot is portrait
   because all four source photos are 3:4 — the previous layout had a
   16:7 banner that kept only 34% of the image height and cropped
   people off at the chest. Captions sit over the photograph.        */

.life__mosaic {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.25fr;
  grid-template-rows: auto auto;
  gap: clamp(0.85rem, 1.6vw, 1.4rem);
  align-items: stretch;
}

/* Left anchor spans both rows */
.life__hero { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
/* Centre column stacks two */
.life__cell:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.life__cell:nth-of-type(3) { grid-column: 2; grid-row: 2; }
/* Right anchor spans both rows */
.life__cell:nth-of-type(4) { grid-column: 3; grid-row: 1 / span 2; }
.life__cell { margin: 0; }

.life__hero, .life__cell { position: relative; overflow: hidden; }
.life__hero .life__media,
.life__cell:nth-of-type(4) .life__media { aspect-ratio: 3 / 4.6; height: 100%; margin: 0; }
.life__cell:nth-of-type(2) .life__media,
.life__cell:nth-of-type(3) .life__media { aspect-ratio: 4 / 3.4; margin: 0; }

.life__hero img, .life__cell img { width: 100%; height: 100%; object-fit: cover; }

.life__hero figcaption,
.life__cell figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  color: var(--bone);
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  line-height: 1.4;
  /* Tuned by measurement, not by eye. A lighter gradient dropped the Gold
     label to 3.5:1 against the brightest photo in the set, which fails AA
     for small text. These stops hold text at ~15:1 and the label at ~6:1
     while the image still reads through the top of the caption area. */
  background: linear-gradient(to top,
    rgba(22,19,17,0.97) 0%,
    rgba(22,19,17,0.92) 30%,
    rgba(22,19,17,0.78) 60%,
    rgba(22,19,17,0.40) 85%,
    rgba(22,19,17,0.00) 100%);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.life__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

@media (max-width: 900px) {
  .life__mosaic { grid-template-columns: 1fr 1fr; }
  .life__hero { grid-column: 1; grid-row: 1; }
  .life__cell:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .life__cell:nth-of-type(3) { grid-column: 1; grid-row: 2; }
  .life__cell:nth-of-type(4) { grid-column: 2; grid-row: 2; }
  .life__hero .life__media,
  .life__cell .life__media,
  .life__cell:nth-of-type(4) .life__media { aspect-ratio: 3 / 4; }
}
@media (max-width: 520px) {
  .life__mosaic { grid-template-columns: 1fr; }
  .life__hero, .life__cell,
  .life__cell:nth-of-type(2), .life__cell:nth-of-type(3), .life__cell:nth-of-type(4) {
    grid-column: 1; grid-row: auto;
  }
  .life__hero .life__media,
  .life__cell .life__media,
  .life__cell:nth-of-type(4) .life__media { aspect-ratio: 4 / 3.6; }
}

/* ---------- Areas map ---------- */

/* The map is a vertical list, not a geographic projection. The coastal
   towns sit within ~20 miles of each other, so a true-to-scale horizontal
   map crammed Santa Barbara, Montecito, Summerland and Carpinteria into
   overlapping labels. This version guarantees legibility by construction:
   one row per town, pins on a shared axis, labels parallel. */
.areas__map { max-width: 620px; margin-inline: auto; }
.areas__map img { width: 100%; height: auto; display: block; }

/* ---------- Centred closing block ---------- */
.closer__title { max-width: 20ch; margin-inline: auto; }
.closer__sub   { margin-inline: auto; }
.closer__cta   { margin-inline: auto; text-align: center; }

/* Legal document pages (privacy, terms) */
.legal-doc { max-width: 68ch; margin: 0 auto; padding: clamp(1rem,4vw,2rem) 0 clamp(3rem,7vw,5rem); }
.legal-doc h2 {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; margin: 2.4rem 0 0.8rem; color: var(--asphalt);
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--clay);
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 1rem; font-weight: 700; margin: 1.6rem 0 0.5rem; color: var(--asphalt); }
.legal-doc p, .legal-doc li { font-size: 0.95rem; line-height: 1.65; color: var(--asphalt-dim); }
.legal-doc p { margin: 0 0 1rem; }
.legal-doc ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.legal-doc li { margin-bottom: 0.4rem; }
.legal-doc a { color: var(--deep-text); text-decoration: underline; }
.legal-doc strong { color: var(--asphalt); }
.legal-doc .legal-doc__updated { font-size: 0.8rem; color: var(--asphalt-dim); font-style: italic; margin-bottom: 2rem; }
.legal-doc__sms { background: var(--panel-light); border-left: 3px solid var(--clay); padding: 1.2rem 1.4rem; margin: 1.5rem 0; }
.legal-doc__sms h2 { border-bottom: none; margin-top: 0; padding-bottom: 0; }
