/* ==========================================================
   CORINTHIAN ESTATE GROUP — /about page
   Page-specific rules only. Shared light-theme vars + header/nav
   overrides live in ../shared-light.css (loaded before this file).
   Grain texture utility (.bg-grain / .bg-grain--dark) and the type
   scale tokens (--fs-*) live in ../style.css as shared primitives.
   ========================================================== */

:root{--header-h:105px} /* measured against the real rendered header */

/* ── HERO (photo, independent of .s-hero on purpose - different
   height formula, overlay direction and text alignment, and this
   codebase has twice already broken from two heroes silently
   sharing a class) ───────────────────────────────────────── */
.ab-hero{
  position:relative;height:clamp(640px,100svh,960px);overflow:hidden;
  display:flex;align-items:center;background:#1C1209;
  padding-top:var(--header-h); /* keeps vertically-centred text clear of the fixed header */
}
.ab-hero-media{position:absolute;top:-15%;bottom:-15%;left:0;right:0;overflow:hidden}
.ab-hero-img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:100% 58%;transform:scale(1.08);
}
.ab-hero.go .ab-hero-img{transform:scale(1);transition:transform 10s cubic-bezier(.22,1,.36,1)}
/* inset:0 so this always covers the full .ab-hero box, top to bottom -
   top:15%/bottom:15% (relative to .ab-hero itself, since this element is
   already a sibling of .ab-hero-media, not nested inside it) left a real
   15%-of-height gap at both edges on desktop. */
.ab-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to right,rgba(28,18,9,.6) 0%,rgba(28,18,9,.25) 40%,rgba(28,18,9,0) 60%);
}
.ab-hero-body{position:relative;z-index:1;width:100%;padding:0 4%}
.ab-hero-in{max-width:560px}
.ab-hero-h{margin-bottom:24px}
.ab-hero-h .h-line{overflow:hidden;display:block}
.ab-hero-h .h-line-in{
  display:block;font-family:var(--serif);font-weight:600;
  font-size:var(--fs-display);line-height:1.05;letter-spacing:-0.01em;
  color:var(--ivory);text-wrap:balance;
  transform:translateY(115%);transition:transform 900ms cubic-bezier(.22,1,.36,1);
}
.ab-hero.go .ab-hero-h .h-line-in{transform:none}
.ab-hero-sub .hs-line{overflow:hidden;display:block}
.ab-hero-sub .hs-line span{
  display:block;font-family:var(--sans);font-weight:300;
  font-size:var(--fs-lead);color:rgba(251,250,245,.9);line-height:1.6;
  opacity:0;transition:opacity 900ms cubic-bezier(.22,1,.36,1) 900ms;
}
.ab-hero.go .ab-hero-sub .hs-line span{opacity:1}

@media(max-width:768px){
  .ab-hero{
    height:clamp(480px,70svh,820px);
    align-items:flex-end;padding-top:0;padding-bottom:32px;
  }
  /* Parallax is desktop-only (see about.js), so the overscan that gives
     it room to pan isn't needed here - and left on, it makes the image
     box ~30% taller than the visible frame. Same bug, same fix, as the
     Home hero's mobile block in ../style.css. */
  .ab-hero-media{top:0;bottom:0}
  /* Position is already inset:0 from the base rule at any size - only the
     gradient direction changes here, since mobile text sits at the
     bottom (align-items:flex-end above) instead of vertically centred. */
  .ab-hero-overlay{
    background:linear-gradient(to top,rgba(28,18,9,.7) 0%,rgba(28,18,9,0) 50%);
  }
  /* A dedicated 9:16 crop (about-hero-mobile.webp, picked up via the
     <picture> element in the markup) now replaces the old trick of
     showing a slice of the 16:9 desktop photo at an 86% object-position.
     The crop itself already keeps all four people centred, so a plain
     center position is correct here - no more per-value tuning needed. */
  .ab-hero-img{object-position:center}
}

/* ── BODY SECTIONS ────────────────────────── */
/* Alternating tone (plus the shared .bg-grain texture, applied in the
   markup) separates sections instead of divider lines. */
.ab-sec{padding:140px 0;background:var(--pg-bg)}
.ab-sec--alt{background:var(--pg-bg-alt)}
.ab-h2{
  font-family:var(--serif);font-weight:600;max-width:900px;
  font-size:var(--fs-h2);line-height:1.1;letter-spacing:-0.01em;color:var(--pg-text);
  text-wrap:balance;
}
.ab-copy{
  font-family:var(--sans);font-weight:300;font-size:var(--fs-body);line-height:1.85;
  color:var(--pg-text-dim);max-width:680px;margin-top:48px;
}
.ab-placeholder{color:var(--pg-text-faint);font-style:italic}
.ab-intro{max-width:560px}

/* How we work — 8 stages, horizontal grid desktop, single column mobile */
.ab-stages{display:grid;grid-template-columns:repeat(4,1fr);gap:2.4rem 1.8rem;margin-top:3.5rem}
.ab-stage{display:flex;flex-direction:column;gap:.6rem;padding-top:1.2rem;border-top:1px solid var(--pg-line)}
.ab-stage-n{font-family:var(--serif);font-weight:600;font-size:var(--fs-number);color:var(--pg-gold)}
.ab-stage-body h3{
  font-family:var(--serif);font-weight:500;font-size:var(--fs-h3);line-height:1.2;color:var(--pg-text);margin-bottom:.4rem;text-wrap:balance;
}
/* .82rem by design - deliberately smaller than --fs-body (1rem floor);
   these are dense 8-up card captions, not flowing body copy, and
   forcing the token here would visibly inflate all 8 at once. Flagged
   in the build plan as a token that doesn't fit; left as-is. */
.ab-stage-body p{font-family:var(--sans);font-weight:300;font-size:.82rem;line-height:1.7;color:var(--pg-text-dim)}

/* Where we work — simple link row */
.ab-loc-links{margin-top:48px;display:flex;gap:.9rem;flex-wrap:wrap;align-items:center}
/* 1.2rem by design - the nearest token (--fs-h3) starts at 1.5rem,
   noticeably larger than this short inline link row calls for.
   Flagged in the build plan; left as-is. */
.ab-loc-links a{
  font-family:var(--serif);font-weight:500;font-size:1.2rem;color:var(--pg-text);
  border-bottom:1px solid transparent;transition:border-color .25s,color .25s;
}
.ab-loc-links a:hover{color:var(--pg-gold);border-color:var(--pg-gold)}
.ab-loc-sep{color:var(--pg-champagne)}

/* Closing CTA */
.ab-closing{background:var(--pg-champagne);padding:140px 0;text-align:center}
.ab-closing-line{
  font-family:var(--serif);font-weight:500;font-size:var(--fs-lead);
  color:var(--pg-text);margin-bottom:1.8rem;
}

/* ── RESPONSIVE ───────────────────────────── */
@media(min-width:768px) and (max-width:1023px){
  .ab-sec{padding:96px 0}
  .ab-closing{padding:96px 0}
}
@media(max-width:1024px){
  .ab-stages{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:767px){
  .ab-sec{padding:72px 0}
  .ab-closing{padding:72px 0}
  .ab-stages{grid-template-columns:1fr;gap:1.8rem}
  .ab-copy{margin-top:32px}
  .ab-loc-links{margin-top:32px}
}
