/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Warm gradient-mesh fallback (shows beneath the image slot) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 55% at 22% 20%, #F6EFE9 0%, rgba(246,239,233,0) 60%),
    radial-gradient(55% 50% at 85% 30%, #F0E6DD 0%, rgba(240,230,221,0) 65%),
    radial-gradient(70% 60% at 70% 95%, #EFE4DA 0%, rgba(239,228,218,0) 60%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* The hero image sits behind the cream overlay */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero-media image-slot { width: 100%; height: 100%; }

/* CREAM-TINTED OVERLAY — never dark/mocha.
   Flat cream wash + radial lightening toward the headline so
   the photo reads as quiet warm texture, not a photograph. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 75% at 50% 46%,
       rgba(250,246,243,0) 0%,
       rgba(250,246,243,.35) 55%,
       rgba(250,246,243,.6) 100%),
    rgba(250,246,243, var(--hero-overlay));
}

.hero-overlay[data-glow="off"] {
  background: rgba(250,246,243, var(--hero-overlay));
}

/* optional 5% grain */
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-content {
  max-width: 880px;
  padding-block: 120px 90px;
  text-align: center;
  margin-inline: auto;
}
.hero .eyebrow { margin-bottom: 26px; display: inline-block; }
.hero h1 {
  font-size: clamp(52px, 8vw, 80px);
  margin: 0 0 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero .lead {
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* split hero with headshot card */
.hero-content.split {
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  text-align: left;
}
.hero-content.split .eyebrow { margin-bottom: 22px; }
.hero-content.split h1 { font-size: clamp(48px, 6.4vw, 76px); }
.hero-content.split .lead { margin-left: 0; margin-right: 0; max-width: 34ch; margin-bottom: 16px; }
.hero-content.split .hero-actions { justify-content: flex-start; }

.hero-sig {
  font-family: var(--display);
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 34px;
  max-width: 22ch;
}
.hero-sig em { font-style: italic; color: var(--accent); }

.hero-visual { display: flex; justify-content: center; }
.headshot-card {
  margin: 0;
  width: 100%;
  max-width: 270px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-lg);
  background: var(--bg-2);
  transform: rotate(1.4deg);
  transition: transform .5s var(--ease);
}
.headshot-card:hover { transform: rotate(0deg); }
.headshot-card img { width: 100%; height: auto; display: block; }

@media (max-width: 860px) {
  .hero-content.split {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 110px 80px;
  }
  .hero-content.split .lead { margin-inline: auto; }
  .hero-content.split .hero-sig { margin-inline: auto; }
  .hero-content.split .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .headshot-card { max-width: 280px; transform: none; }
}

/* scroll indicator — thin animated mocha line */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.scroll-cue .label { font-size: 11px; letter-spacing: .26em; }
.scroll-cue .line {
  width: 1.5px;
  height: 54px;
  background: linear-gradient(var(--muted), rgba(107,85,68,0));
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(360%); opacity: 0; }
}

/* ============================================================
   About
   ============================================================ */
.about {
  padding-block: clamp(90px, 13vw, 160px);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

/* arched-top photo with thin blush border + soft warm shadow */
.portrait {
  position: relative;
}
.portrait img.portrait-img {
  display: block;
  width: 100%;
  height: clamp(440px, 48vw, 580px);
  object-fit: cover;
  border-radius: 200px 200px 18px 18px;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-lg);
  filter: sepia(0.12) saturate(1.02) brightness(1.02) contrast(0.98);
}
.portrait image-slot {
  display: block;
  width: 100%;
  height: clamp(440px, 48vw, 580px);
  border-radius: 200px 200px 18px 18px;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
/* gentle warm grade so a cool photo sits in the cream palette */
.portrait image-slot::part(img),
.portrait image-slot img {
  filter: sepia(0.12) saturate(1.02) brightness(1.02) contrast(0.98);
}
.portrait .tag {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: rgba(250,246,243,.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-copy .label { margin-bottom: 20px; display: block; }
.about-copy h2 {
  font-size: clamp(34px, 4.4vw, 46px);
  margin: 0 0 26px;
}
.about-copy h2 em { font-style: italic; color: var(--accent); }
.about-copy p {
  color: var(--text);
  margin: 0 0 18px;
  max-width: 56ch;
}
.about-copy p.muted { color: var(--muted); }

/* stat cards */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  transition: border-color .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.stat:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.stat .num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}
.stat .cap {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   Scroll-reveal
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* hero staggered load — opacity stays 1 at ALL times; only TRANSFORM animates.
   This guarantees the hero is never blank in any context (print/PDF/screenshot/
   frozen-timeline/no-JS) — the worst case is content shown un-shifted. A JS-set
   `preanim` class on <html> holds the start offset, removed on load to play it. */
@media (prefers-reduced-motion: no-preference) {
  .hero .anim {
    transition: transform .85s var(--ease);
  }
  html.preanim .hero .anim {
    transform: translateY(20px);
  }
  html.preanim .hero .anim.d1 { transition-delay: 0s; }
  .hero .anim.d1 { transition-delay: .12s; }
  .hero .anim.d2 { transition-delay: .30s; }
  .hero .anim.d3 { transition-delay: .48s; }
  .hero .anim.d4 { transition-delay: .66s; }
}

/* export/print safety — never animate-hide content on paper */
@media print {
  .hero .anim, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .stats { gap: 10px; }
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats { grid-template-columns: 1fr 1fr; }
}
