/* ============================================================
   hero.css — homepage hero
   Warm paper field, confident serif headline on the left,
   arched portrait of Chris on the right, and a calm muted
   Jacksonville skyline band grounding the whole section.
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

/* --- Jacksonville skyline: soft, muted band across the bottom --- */
.hero__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background-image: url("../../images/jacksonville-skyline-2880w.webp");
  background-size: cover;
  background-position: center 42%;
  filter: saturate(0.55) brightness(1.06) contrast(0.98);
  opacity: 0.42;
  /* fade the top edge up into the paper so there is no hard seam */
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.85) 34%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.85) 34%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero__skyline {
    background-image: url("../../images/jacksonville-skyline-960w.webp");
  }
}
/* soft blue wash over the skyline to pull it into the palette */
.hero__skyline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
              rgba(47, 74, 107, 0.28),
              rgba(246, 243, 236, 0.10));
  mix-blend-mode: multiply;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: 0;   /* gap above Chris lives on the figure, so text centers in full height */
  /* Height follows Chris's height, so his head stays just under the menu
     no matter how tall the screen is. The floor only guards very short screens. */
  min-height: 520px;
}

/* ---------- Left: the message ---------- */
.hero__content { max-width: 34rem; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: clamp(2.2rem, 4.15vw, 3.75rem);  /* was 2.6/5.4vw/4.15rem until 2026-09-18 */
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
/* Homepage headline is Chris's own (2026-09-17) and longer than the mockup's:
   the hero headline size came down for it (all full heroes share it), and the
   homepage text column is wider, so it holds three lines on desktop. */
@media (min-width: 901px) {
  .home .hero__inner { grid-template-columns: 1.2fr 0.8fr; }
  .home .hero__content { max-width: none; }
}
.hero__title em {
  font-style: italic;
  color: var(--blue);
}

/* Eyebrow inside the h1 (render.php): renders exactly like the standalone
   <p class="eyebrow hero__kicker">. The kicker is inline-flex, so it sits on a
   line box sized by the surrounding body text; .hero__kicker-line rebuilds that
   line with the body type values instead of the h1's. */
.hero__title--topic > span { display: block; }
.hero__kicker-line {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: normal;
  text-wrap: wrap;
}

.hero__subtitle {
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 32rem;
  margin-bottom: var(--space-5);
}
/* let a short subline run the full content column on one line */
.hero__subtitle--wide { max-width: none; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__content { align-self: center; }

/* ---------- Right: free-standing cutout of Chris ---------- */
.hero__figure {
  position: relative;
  align-self: end;          /* stands on the bottom edge, in the skyline band */
  justify-self: center;
  width: min(100%, 500px);
  padding-top: 40px;        /* breathing room above Chris, without shifting the text */
}

.hero__cutout {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  /* soft grounding shadow so he doesn't read as pasted-on */
  filter: drop-shadow(0 26px 26px rgba(50, 47, 42, 0.22));
}
/* Desktop fetches a smaller srcset candidate than the original, and its
   rounded dimensions would shift the hero's height (which follows the photo)
   by a fraction of a pixel. Keep the original's ratio there. */
@media (min-width: 901px) {
  .hero__cutout { aspect-ratio: var(--cutout-ratio, auto); }
}

/* subtle light pedestal behind him where he meets the skyline */
.hero__figure::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 92%;
  height: 34%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(246, 243, 236, 0.85) 0%,
              rgba(246, 243, 236, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Variant: office-grounded band ---------- */
.hero--office .hero__skyline {
  background-image: url("../../images/office-2880w.webp");
  background-position: center 40%;
}
@media (max-width: 900px) {
  .hero--office .hero__skyline {
    background-image: url("../../images/office-960w.webp");
  }
}
/* compact: Chris ~30% smaller, so the hero is shorter overall */
.hero--compact .hero__inner { min-height: 340px; }
.hero--compact .hero__figure { width: min(100%, 350px); padding-top: 24px; }
/* slightly smaller title so headings sit on two clean lines beside the compact figure */
.hero--compact .hero__title { font-size: clamp(2.2rem, 4.4vw, 3.1rem); }

/* ---------- Entrance on load ---------- */
.hero__content > * {
  opacity: 0;
  animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero__content > *:nth-child(1) { animation-delay: 0.08s; }
.hero__content > *:nth-child(2) { animation-delay: 0.18s; }
.hero__content > *:nth-child(3) { animation-delay: 0.30s; }
.hero__content > *:nth-child(4) { animation-delay: 0.42s; }
/* h1 with the eyebrow: its two lines take the first two steps, so the
   subtitle and buttons keep their third and fourth */
.hero__title--topic { opacity: 1; animation: none; }
.hero__title--topic > span {
  opacity: 0;
  animation: heroRise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero__title--topic > .hero__kicker-line { animation-delay: 0.08s; }
.hero__title--topic > .hero__title-text { animation-delay: 0.18s; }
.hero__title--topic + .hero__subtitle,
.hero__title--topic + .hero__actions { animation-delay: 0.30s; }
.hero__title--topic + .hero__subtitle + .hero__actions { animation-delay: 0.42s; }
.hero__cutout {
  opacity: 0;
  animation: heroFigure 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s both;
}
@media (prefers-reduced-motion: reduce) {
  .hero__content > *, .hero__title--topic > span, .hero__cutout { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: clamp(1.5rem, 5vw, 2.5rem);
    padding-block: clamp(1.25rem, 4vw, 1.75rem) 0;   /* he still stands on the bottom */
    min-height: 0;
  }
  .hero__content { max-width: 38rem; margin-inline: auto; order: 1; }
  .hero__figure { order: 2; width: min(82%, 360px); padding-top: 0; }
  .hero__kicker { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__skyline { height: 40%; opacity: 0.4; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
