/* Tokens — light shell (header + hero); dark sections below */
@font-face {
  font-family: "Junicode";
  src: url("https://cdn.jsdelivr.net/npm/@typopro/web-junicode@3.7.5/TypoPRO-Junicode-Regular.woff")
    format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-cream: #faf9f6;
  --color-ink: #1a1714;
  --color-muted: rgba(26, 23, 20, 0.62);
  --color-border: rgba(26, 23, 20, 0.12);
  --color-accent: #c9a227;
  --font-display: "Junicode", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-height: 4.25rem;
  --space-section: clamp(4rem, 12vw, 8rem);
  --max-width: 72rem;
  --max-width-hero: 90rem; /* 1440px at 16px root */
  --details-grid-gap: clamp(1.5rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.5;
}

#main {
  scroll-margin-top: calc(var(--header-height) + 0.5rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #1a1714;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
  min-height: var(--header-height);
  width: min(100% - 2rem, var(--max-width-hero));
  margin-inline: auto;
  padding-block: 0.75rem;
}

.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: min-content;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-self: start;
  color: inherit;
  text-decoration: none;
}

.site-logo__mark {
  display: block;
  width: 2.5rem;
  height: auto;
}

.site-nav {
  justify-self: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--color-ink);
  text-decoration: none;
}

.site-nav a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-nav__cta {
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink);
  text-decoration: none;
}

.site-nav__toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--color-cream);
  color: var(--color-ink);
  cursor: pointer;
  overflow: visible;
}

.site-nav__backdrop,
.site-nav__panel {
  display: none;
}

@media (min-width: 56.063rem) {
  .site-nav__panel {
    display: contents;
  }
}

.site-nav__toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.site-nav__toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: 1.25rem;
}

.site-nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.site-nav__toggle.is-active .site-nav__toggle-bar:nth-child(1) {
  transform: translateY(0.45rem) rotate(45deg);
}

.site-nav__toggle.is-active .site-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav__toggle.is-active .site-nav__toggle-bar:nth-child(3) {
  transform: translateY(-0.45rem) rotate(-45deg);
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ——— Sections (default / dark below hero) ——— */
.site-section {
  padding-block: var(--space-section);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-section:last-of-type {
  border-bottom: none;
}

.site-section--dark {
  background: #1a1714;
  color: #f2ebe3;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.section-inner {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.placeholder {
  margin: 0;
  color: rgba(242, 235, 227, 0.65);
  font-size: 0.95rem;
}

.site-section--dark .placeholder {
  color: rgba(242, 235, 227, 0.65);
}

/* ——— Details (under hero) ——— */
.site-section--details {
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--color-cream);
  border-top: 1px solid rgba(26, 23, 20, 0.22);
  border-bottom: 1px solid rgba(26, 23, 20, 0.22);
}

.details__inner {
  width: min(100% - 2rem, 1440px);
  max-width: 1440px;
}

.details__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--details-grid-gap);
  row-gap: clamp(1.25rem, 3vw, 1.75rem);
  margin: 0;
}

.details__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.details__label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(26, 23, 20, 0.55);
}

.details__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.35vw + 0.9rem, 1.375rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

@media (max-width: 48rem) {
  .details__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 30rem) {
  .details__grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Meet the family ——— */
.site-section--family {
  padding-block: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  border-bottom: 1px solid rgba(26, 23, 20, 0.22);
}

.family__inner {
  width: min(100% - 2rem, 1440px);
  max-width: 1440px;
  padding-inline: 0;
}

.family__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(22rem, 62vh, 40rem);
  column-gap: 0;
  row-gap: 0;
}

.family__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
  padding-inline: clamp(1.25rem, 4vw, 3rem) clamp(0.5rem, 2vw, 1rem);
  min-width: 0;
  background-color: var(--color-cream);
}

.family__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.5vw + 1.25rem, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.family__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 3vw, 2rem);
}

.family__person {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 1.125rem;
  align-items: center;
}

.family__avatar {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 2px;
  background: rgba(26, 23, 20, 0.06);
}

.family__meta {
  min-width: 0;
}

.family__name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
}

.family__role {
  margin: 0.2rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: var(--color-muted);
}

.family__role em {
  font-style: italic;
}

.family__figure {
  margin: 0;
  min-height: 100%;
  min-width: 0;
  overflow: hidden;
  background-color: var(--color-cream);
}

.family__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding-block: 32px;
  background-color: var(--color-cream);
  object-fit: cover;
  object-position: center;
}

@media (min-width: 48.0625rem) {
  /* Match .details__grid: photo = cols 1–2 (like first two items), gutter = same column-gap */
  .family__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--details-grid-gap);
  }

  .family__figure {
    grid-column: 1 / 3;
  }

  .family__content {
    grid-column: 3 / -1;
    padding-inline: 0 clamp(0.5rem, 2vw, 1rem);
  }

  .family__photo {
    transform: scaleX(-1);
  }
}

@media (max-width: 48rem) {
  .family__grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    min-height: 0;
  }

  .family__figure,
  .family__content {
    grid-column: auto;
  }

  .family__figure {
    min-height: min(58vw, 22rem);
    max-height: min(70vw, 28rem);
  }

  .family__content {
    padding-block: clamp(2rem, 5vw, 3rem);
    padding-inline: 0;
  }

  .family__photo {
    min-height: min(58vw, 22rem);
    max-height: min(70vw, 28rem);
    transform: none;
  }
}

.placeholder code {
  font-size: 0.85em;
  color: var(--color-accent);
}

/* ——— Day in the life ——— */
.site-section--day {
  --day-bg: #a67c6c;
  --day-ink: #3d2a24;
  --day-ink-soft: rgba(61, 42, 36, 0.88);
  --day-max-width: 1440px;
  --day-frame-width: min(100vw, var(--day-max-width));
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3.5rem);
  background: var(--day-bg);
  color: var(--day-ink);
  border-bottom: 1px solid rgba(61, 42, 36, 0.12);
}

.day__intro-inner {
  width: min(100% - 2rem, 1440px);
  max-width: 1440px;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.day__title {
  --day-title-fill: 0;
  --day-title-empty: rgba(61, 42, 36, 0.28);
  --day-title-full: rgba(248, 242, 236, 0.98);
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding-left: 20px;
  font-family: var(--font-display);
  font-size: 90px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    var(--day-title-full) 0%,
    var(--day-title-full) calc(var(--day-title-fill) * 100%),
    var(--day-title-empty) calc(var(--day-title-fill) * 100%),
    var(--day-title-empty) 100%
  );
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.day__scene {
  position: relative;
  width: 100%;
}

.day__rail {
  width: 100%;
}

.day__scroll-tail {
  pointer-events: none;
  width: 100%;
  flex-shrink: 0;
}

/* Desktop: sticky panel + scroll tail — no GSAP pin (avoids pin-spacer / reparent bugs) */
@media (min-width: 56.063rem) {
  .site-section--day {
    padding-block: 0;
    background: var(--day-bg);
    border-bottom: none;
    overflow: visible;
  }

  .day__sticky {
    position: sticky;
    top: var(--header-height);
    z-index: 1;
    box-sizing: border-box;
    min-height: calc(100svh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    max-height: calc(100svh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }

  .day__scene {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    width: min(100%, var(--day-max-width));
    margin-inline: auto;
    padding-block: clamp(0.75rem, 2vw, 1.25rem) clamp(0.5rem, 1.5vw, 1rem);
    overflow: hidden;
    background: var(--day-bg);
    border-bottom: 1px solid rgba(61, 42, 36, 0.12);
  }

  .day__intro-inner {
    flex: 0 0 auto;
    align-self: center;
    width: 100%;
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
  }

  .day__title {
    margin-top: 70px;
  }

  .day__viewport {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
  }

  .day__track {
    align-items: center;
    max-height: 100%;
  }

  .day__card:first-child {
    margin-left: 10px;
  }
}

.day__viewport {
  overflow: hidden;
  width: 100%;
}

.day__track {
  display: flex;
  flex-direction: row;
  width: max-content;
  will-change: transform;
}

.day__card {
  --day-card-pad-inline: clamp(0.35rem, 1.2vw, 0.65rem);
  position: relative;
  flex: 0 0 calc(var(--day-frame-width) / 3 * 1.3);
  width: calc(var(--day-frame-width) / 3 * 1.3);
  box-sizing: border-box;
  padding-inline: var(--day-card-pad-inline);
}

.day__media {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(61, 42, 36, 0.15);
  aspect-ratio: 1;
}

.day__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.day__copy {
  position: absolute;
  inset-inline: var(--day-card-pad-inline);
  bottom: 0;
  padding: clamp(0.85rem, 2vw, 1.25rem);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(26, 23, 20, 0.5) 38%,
    rgba(26, 23, 20, 0.88) 100%
  );
  color: #f2ebe3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.day__copy-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.45rem;
}

.day__copy-title {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.day__copy-time {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  font-style: italic;
  opacity: 0.92;
}

.day__copy-body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(242, 235, 227, 0.92);
}

/* First card: copy visible by default; hide when another card is hovered */
.day__card:first-child .day__copy {
  opacity: 1;
}

.day__scene:has(.day__card:hover) .day__card:first-child:not(:hover) .day__copy {
  opacity: 0;
}

.day__card:hover .day__copy {
  opacity: 1;
}

/* Keyboard: match hover behavior */
.day__card:focus {
  outline: none;
}

.day__card:focus-visible {
  outline: 2px solid var(--color-cream);
  outline-offset: 3px;
}

.day__card:focus-visible .day__copy {
  opacity: 1;
}

.day__scene:has(.day__card:focus-visible) .day__card:first-child:not(:focus-visible) .day__copy {
  opacity: 0;
}

@media (max-width: 56rem) {
  .day__sticky {
    position: static;
    max-height: none;
    min-height: 0;
    display: block;
  }

  .day__scroll-tail {
    display: none;
    height: 0 !important;
    min-height: 0;
  }

  .day__title {
    font-size: 48px;
    padding-left: 0;
    line-height: 1.08;
  }

  .day__track {
    flex-direction: column;
    width: 100% !important;
    transform: none !important;
  }

  .day__card {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }

  .day__card + .day__card {
    margin-top: clamp(1.25rem, 4vw, 2rem);
  }

  .day__media {
    margin-inline: 16px;
  }

  /* Same bottom gradient overlay as desktop hover; always visible (no hover on touch). */
  .day__copy {
    position: absolute;
    inset-inline: 16px;
    bottom: 0;
    margin-top: 0;
    padding: clamp(0.85rem, 2vw, 1.25rem);
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(26, 23, 20, 0.5) 38%,
      rgba(26, 23, 20, 0.88) 100%
    );
    color: #f2ebe3;
    opacity: 1;
    pointer-events: none;
  }

  .day__copy-body {
    color: rgba(242, 235, 227, 0.92);
  }

  .day__scene:has(.day__card:hover) .day__card:first-child:not(:hover) .day__copy,
  .day__scene:has(.day__card:focus-visible) .day__card:first-child:not(:focus-visible) .day__copy {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .day__track {
    flex-wrap: wrap;
    width: 100% !important;
    transform: none !important;
  }

  .day__card {
    flex: 0 0 50%;
    width: 50%;
    max-width: none;
  }
}

/* Desktop-only: stacked copy under image when horizontal scroll is disabled */
@media (prefers-reduced-motion: reduce) and (min-width: 56.063rem) {
  .day__copy {
    position: static;
    opacity: 1 !important;
    margin-top: 0.65rem;
    padding: 0;
    background: none;
    color: var(--day-ink-soft);
    pointer-events: auto;
  }

  .day__copy-body {
    color: var(--day-ink-soft);
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 40rem) {
  .day__card {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* ——— History (section 5) ——— */
#section-history {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.site-section--history {
  --history-bg: #332c2b;
  --history-ink: #f7f2ec;
  --history-muted: rgba(247, 242, 236, 0.78);
  --history-accent: #a67c7c;
  --history-max-width: 1440px;
  --history-screen-gutter: 16px;
  --history-media-max: 209px;
  --history-media-height: calc(var(--history-media-max) * 318 / 209);
  --history-sticky-center-top: calc(50svh - (var(--history-media-height) * 0.5));
  --history-copy-max: 38rem;
  --history-sticky-gap: 50px;
  padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: clamp(13rem, 30vw, 22rem);
  background: var(--history-bg);
  color: var(--history-ink);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Flush to viewport: image column lines up 16px from screen left */
.site-section--history .history__inner.section-inner {
  width: min(100% - 2rem, var(--history-max-width));
  max-width: var(--history-max-width);
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

.history__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.history__media {
  min-width: 0;
  justify-self: start;
}

.history__viewport {
  position: relative;
  width: min(100%, var(--history-media-max));
  max-width: var(--history-media-max);
  margin-inline: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #1c1817;
  aspect-ratio: 209 / 318;
  /* Reserve height when out-of-flow children do not contribute to layout */
  min-height: var(--history-media-height);
}

.history__filmstrip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.history__slide {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 209 / 318;
}

.history__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.history__title {
  margin: 0;
  max-width: 38rem;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--history-ink);
}

.history__title-accent {
  display: inline;
  color: var(--history-accent);
}

.history__body {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 38rem;
  font-size: 32px;
  font-weight: 200;
  line-height: 1.5;
  color: var(--history-muted);
}

.history__body p {
  margin: 0 0 1.25rem;
}

.history__body p[data-history-split] {
  white-space: normal;
}

.history__char {
  display: inline-block;
  opacity: 0.2;
  color: currentColor;
}

.history__body p:last-child {
  margin-bottom: 0;
}

.history__lead {
  color: inherit;
}

.history__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0 0.1rem;
  padding: 0;
  vertical-align: -0.05em;
  border: 0;
  border-radius: 0;
  background: url("../assets/images/info_icon.png") center / contain no-repeat;
  color: transparent;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.history__info:hover,
.history__info:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
  outline: none;
}

.history__dialog {
  width: min(calc(100% - 2rem), 22rem);
  max-width: 100%;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #faf9f6;
  color: #1a1714;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35);
}

.history__dialog::backdrop {
  background: rgba(12, 10, 9, 0.55);
}

.history__dialog-panel {
  position: relative;
  padding: 1.25rem 1.25rem 1rem;
}

.history__dialog-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: rgba(26, 23, 20, 0.55);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.history__dialog-close:hover,
.history__dialog-close:focus-visible {
  color: #1a1714;
  background: rgba(26, 23, 20, 0.06);
  outline: none;
}

.history__dialog-title {
  margin: 0 2rem 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a1714;
}

.history__dialog-text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(26, 23, 20, 0.78);
}

.history__dialog-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (min-width: 48.0625rem) {
  .history__grid {
    /* Keep title on first row; align media top with copy row start. */
    grid-template-columns: var(--history-media-max) minmax(18rem, var(--history-copy-max));
    grid-template-areas:
      ". title"
      "media copy";
    column-gap: clamp(3.25rem, 7.5vw, 6.5rem);
    row-gap: clamp(1.5rem, 3vw, 2.25rem);
    justify-content: center;
    align-items: start;
  }

  .history__media {
    grid-area: media;
    position: sticky;
    top: calc(var(--header-height) + var(--history-sticky-gap));
    padding-bottom: 0;
    justify-self: start;
    max-width: 100%;
    margin-inline: 0;
  }

  .history__viewport {
    margin-inline: 0;
    max-width: var(--history-media-max);
  }

  .history__title {
    grid-area: title;
    width: 100%;
    max-width: none;
  }

  .history__copy {
    grid-area: copy;
    padding-bottom: 0;
    width: 100%;
    min-width: 0;
  }

  .history__body {
    margin-top: 0;
    max-width: none;
  }
}

@media (max-width: 48rem) {
  .site-section--history {
    --history-sticky-gap: 30px;
  }

  .site-section--history .history__inner.section-inner {
    padding-inline: 0;
  }

  .history__media {
    position: sticky;
    top: calc(var(--header-height) + var(--history-sticky-gap));
    z-index: 3;
    isolation: isolate;
    width: 100%;
    min-height: calc(150px * 318 / 209);
    padding-bottom: 35px;
    background: var(--history-bg);
  }

  .history__media::before {
    content: "";
    position: absolute;
    top: calc(-1.75rem - 2px);
    left: 0;
    width: 100%;
    height: calc(1.75rem + 4px);
    background: var(--history-bg);
    z-index: 2;
    pointer-events: none;
  }

  .history__viewport {
    width: min(100%, 150px);
    max-width: 150px;
    min-height: 0;
    margin-left: var(--history-screen-gutter);
    position: relative;
    z-index: 1;
  }

  .history__title {
    order: 1;
    padding-inline: var(--history-screen-gutter) clamp(1rem, 4vw, 2rem);
  }

  .history__media {
    order: 2;
  }

  .history__copy {
    order: 3;
    position: relative;
    z-index: 1;
    padding-inline: var(--history-screen-gutter) clamp(1rem, 4vw, 2rem);
  }

  .history__title {
    font-size: 28px;
    line-height: 1.14;
  }

  .history__body {
    font-size: 24px;
    line-height: 1.45;
  }

  .site-section--history {
    padding-bottom: clamp(9rem, 24vw, 14rem);
  }
}

/* ——— Training / dummy retrieve (section 6) ——— */
#section-training {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.site-section--training {
  --training-ink: #f7f2ec;
  --training-ink-dim: rgba(247, 242, 236, 0.22);
  --training-gutter: clamp(1rem, 4vw, 2.5rem);
  padding-block: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0f1410;
  color: var(--training-ink);
  /* No overflow:hidden/clip on pinned sections — breaks ScrollTrigger pin in some cases */
}

.site-section--training .training__inner.section-inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  box-sizing: border-box;
}

/* Taller than viewport so scroll can scrub while the stage stays sticky */
.training__scrub-rail {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  /* min-height set in JS: (100dvh - header) + scrub distance */
}

/* Full-viewport stack: video fills frame; copy is an overlay (50% width) */
.training__stage {
  position: sticky;
  top: var(--header-height);
  z-index: 1;
  isolation: isolate;
  min-height: calc(100svh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  width: 100%;
  box-sizing: border-box;
}

.training__video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0d0a;
}

.training__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0a0d0a;
  /* Promote layer so scrubbed frame updates aren’t stuck compositing a stale bitmap (WebKit). */
  transform: translateZ(0) scaleX(-1);
}

/* ~40% readable band from the left fading to clear on the right */
.training__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.5) 28%,
    rgba(0, 0, 0, 0.22) 48%,
    rgba(0, 0, 0, 0.06) 65%,
    transparent 100%
  );
}

.training__copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 50%;
  max-width: 50%;
  min-height: calc(100svh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding: clamp(2rem, 6vw, 4rem) var(--training-gutter)
    clamp(2rem, 6vw, 4rem) var(--training-gutter);
}

.training__body {
  margin: 0;
  max-width: 100%;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(2rem, min(5.2vw, 8.2dvh), 96px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--training-ink);
}

.training__body[data-training-split] {
  white-space: normal;
}

.training__word {
  display: inline-block;
  opacity: 0.22;
  color: currentColor;
  will-change: opacity;
}

@media (max-width: 48rem) {
  .training__copy {
    width: 100%;
    max-width: 100%;
    min-height: calc(100svh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    align-items: flex-start;
    padding-top: clamp(1.75rem, 7vw, 3rem);
    padding-bottom: clamp(1rem, 4vw, 1.75rem);
  }

  .training__body {
    font-size: clamp(1.4rem, 5vw, 1.95rem);
    line-height: 1.3;
  }

  .training__gradient {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.5) 30%,
      rgba(0, 0, 0, 0.18) 56%,
      transparent 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .training__word {
    will-change: auto;
  }
}

/* --- Dummy training steps (section 7) --- */
#section-dummy-training {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.site-section--dummy-training {
  background: #faf9f6;
  color: #1a1714;
  border-bottom: 1px solid rgba(26, 23, 20, 0.14);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.site-section--dummy-training .dummy-training__inner.section-inner {
  width: min(100% - 2rem, 1440px);
  max-width: 1440px;
}

.dummy-training__layout {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  column-gap: clamp(2rem, 6vw, 5rem);
  align-items: stretch;
}

.dummy-training__sticky-col {
  min-width: 0;
  align-self: stretch;
}

.dummy-training__sticky {
  position: sticky;
  top: calc(var(--header-height) + 50px);
  display: grid;
  gap: 0.9rem;
}

.dummy-training__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.dummy-training__intro {
  margin: 0;
  max-width: 16rem;
  font-size: 20px;
  line-height: 1.45;
  color: rgba(26, 23, 20, 0.84);
}

.dummy-training__steps {
  min-width: 0;
  display: grid;
  gap: clamp(2.75rem, 7vw, 4.25rem);
}

.dummy-step {
  display: grid;
  gap: 0.8rem;
}

.dummy-step__head {
  display: grid;
  gap: 0.4rem;
}

.dummy-step__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.dummy-step__text {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  color: rgba(26, 23, 20, 0.84);
}

.dummy-step__media {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.dummy-step__video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 983 / 523;
  height: auto;
  object-fit: cover;
  background: #101513;
  border-radius: 2px;
}

.dummy-step__toggle {
  position: absolute;
  left: 0.65rem;
  bottom: 1.2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.34rem 0.62rem;
  border: 1px solid rgba(250, 249, 246, 0.55);
  border-radius: 999px;
  background: rgba(16, 21, 19, 0.38);
  color: #faf9f6;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dummy-step__toggle:hover,
.dummy-step__toggle:focus-visible {
  background: rgba(16, 21, 19, 0.56);
  border-color: rgba(250, 249, 246, 0.85);
  outline: none;
}

.dummy-step__toggle-icon {
  width: 0.9rem;
  text-align: center;
}

.dummy-step__progress {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.5rem;
  z-index: 2;
  height: 4px;
  background: rgba(250, 249, 246, 0.42);
  border-radius: 999px;
  overflow: hidden;
}

.dummy-step__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: #faf9f6;
  will-change: transform;
}

@media (max-width: 48rem) {
  .dummy-training__layout {
    grid-template-columns: 1fr;
    row-gap: 1.75rem;
  }

  .dummy-training__steps {
    gap: 80px;
  }

  .dummy-training__sticky {
    position: static;
    gap: 0.65rem;
  }

  .dummy-training__intro {
    max-width: 34rem;
  }
}

@media (max-width: 48rem) {
  .site-section--dummy-training {
    padding-block: clamp(2.25rem, 8vw, 3.25rem);
  }

  .dummy-training__title,
  .dummy-step__title {
    font-size: clamp(1.6rem, 5.6vw, 2rem);
  }

  .dummy-training__intro,
  .dummy-step__text {
    font-size: clamp(1rem, 3.7vw, 1.25rem);
  }
}

/* --- 3 pillars of training (section 8) --- */
#section-training-pillars {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.site-section--training-pillars {
  background: #2c2729;
  color: #e8e3e0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: clamp(3rem, 8vw, 5.5rem);
  --pillars-white: #f6f4f2;
  --pillars-white-soft: rgba(246, 244, 242, 0.76);
  --pillars-white-body: rgba(246, 244, 242, 0.68);
}

.site-section--training-pillars .training-pillars__inner.section-inner {
  width: min(100% - 2rem, 1440px);
  max-width: 1440px;
}

.training-pillars__header {
  margin-bottom: clamp(1.75rem, 5vw, 3rem);
}

.training-pillars__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 4.75rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--pillars-white);
}

.training-pillars__lede {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  font-size: clamp(0.95rem, 1.2vw, 1.25rem);
  line-height: 1.45;
  color: var(--pillars-white-soft);
}

.training-pillars__lede-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
  transition: color 180ms ease;
}

.training-pillars__lede-link:visited {
  color: inherit;
}

.training-pillars__lede-link:hover,
.training-pillars__lede-link:focus-visible {
  color: var(--pillars-white);
}

.training-pillars__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.25vw, 1.75rem);
}

.training-pillars__item {
  min-width: 0;
}

.training-pillars__trigger {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.training-pillars__trigger:focus-visible {
  outline: 2px solid #f2ebe3;
  outline-offset: 4px;
}

.training-pillars__media {
  position: relative;
  display: block;
  border-radius: 2px;
  overflow: hidden;
}

.training-pillars__image {
  display: block;
  width: 100%;
  height: auto;
}

.training-pillars__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.training-pillars__item-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.training-pillars__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  min-width: 1.3rem;
  height: 1.3rem;
  font-size: 1.2rem;
  line-height: 1;
  transform-origin: 50% 50%;
}

.training-pillars__panel {
  overflow: hidden;
  color: var(--pillars-white-body);
  margin-top: 0.75rem;
}

.training-pillars__panel[hidden] {
  display: none;
}

.training-pillars__panel p {
  margin: 0 0 0.65rem;
  font-size: clamp(0.95rem, 1.1vw, 1.25rem);
  line-height: 1.45;
}

.training-pillars__panel p:last-child {
  margin-bottom: 0;
}

@media (max-width: 62rem) {
  .training-pillars__list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .training-pillars__item-title {
    font-size: clamp(1.35rem, 5.8vw, 2rem);
  }

  .training-pillars__panel {
    margin-top: 0.65rem;
  }
}

/* ——— Hero ——— */
.site-section--hero {
  padding-block: 0;
  border-bottom: none;
}

.hero__inner {
  width: min(100% - 2rem, 1440px);
  max-width: 1440px;
  padding-inline: 0;
  padding-block: clamp(1.25rem, 3vw, 2rem);
  /* Viewport budget lives here so vertical padding is included (border-box). */
  min-height: calc(100svh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
}

.hero__grid {
  /* Bottom row ≈ 30% / 70% — at 1440px inner width, video lands ~990px before gap */
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  row-gap: clamp(1rem, 3vw, 1.5rem);
  align-items: end;
  flex: 1 1 auto;
}

.hero__intro {
  /* Span full grid width so 512px is the real measure (not capped by the 3fr column). */
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  width: 512px;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding-top: clamp(0.5rem, 2vw, 1rem);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 95%;
  letter-spacing: -0.02em;
  letter-spacing: -2%;
  color: var(--color-ink);
}

.hero__lead {
  margin: 0;
  max-width: 100%;
  font-size: 20px;
  line-height: 1.55;
  color: var(--color-muted);
}

.hero__word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero__word {
  display: inline-block;
  will-change: transform, opacity;
}

.hero__profile {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1.125rem;
  row-gap: 0.75rem;
  align-items: start;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.hero__profile-meta {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-self: center;
}

.hero__profile-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.hero__profile-role {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  font-style: italic;
  font-weight: 500;
  color: var(--color-muted);
}

.hero__profile-photo {
  grid-column: 1;
  grid-row: 1;
  width: 58px;
  height: 58px;
  align-self: center;
  object-fit: cover;
  border-radius: 2px;
  background: rgba(26, 23, 20, 0.06);
}

.hero__profile-quote {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  padding: 0;
  border: 0;
}

.hero__profile-quote p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
  text-align: left;
  max-width: 100%;
}

.hero__media {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: stretch;
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.hero__video-shell {
  /* Cap height with min() so wide viewports (~1400px) don’t push the quote/video below the fold */
  --video-max-h: min(52dvh, 34rem);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(26, 23, 20, 0.08) 0%,
    rgba(26, 23, 20, 0.04) 100%
  );
  aspect-ratio: 16 / 10;
  width: min(100%, calc(var(--video-max-h) * 16 / 10));
  max-height: var(--video-max-h);
  margin-inline-start: auto;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.hero__video-reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--color-cream);
  pointer-events: none;
}

.hero__video-toggle {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(250, 249, 246, 0.35);
  border-radius: 999px;
  background: rgba(26, 23, 20, 0.55);
  color: var(--color-cream);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.hero__video-toggle:hover {
  background: rgba(26, 23, 20, 0.72);
  border-color: rgba(250, 249, 246, 0.5);
}

.hero__video-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.hero__video-toggle:active {
  transform: scale(0.96);
}

.hero__video-toggle__icon {
  grid-area: 1 / 1;
  display: block;
}

.hero__video-toggle__icon--play {
  margin-left: 2px;
}

.hero__video-toggle.is-paused .hero__video-toggle__icon--pause,
.hero__video-toggle:not(.is-paused) .hero__video-toggle__icon--play {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 56rem) {
  /* One hairline between bar and dropdown (same token as list dividers); avoid double rule with header border. */
  .site-header:has(.site-nav.is-open) {
    border-bottom-color: transparent;
  }

  .site-header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--max-width-hero);
    padding-block: 0.65rem;
    padding-inline: max(0.75rem, env(safe-area-inset-left))
      max(0.75rem, env(safe-area-inset-right));
  }

  .site-header__actions {
    margin-left: auto;
  }

  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: auto;
    bottom: 0;
    left: 50%;
    z-index: 65;
    width: 100vw;
    max-width: none;
    margin: 0;
    margin-left: -50vw;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .site-nav__backdrop {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(0, 0, 0, 0.74) 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .site-nav__panel {
    display: block;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    background: var(--color-cream);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }

  .site-nav.is-open .site-nav__backdrop {
    opacity: 1;
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-nav__list li {
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav__list li:last-child {
    border-bottom: none;
  }

  .site-nav__list a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    box-sizing: border-box;
    width: 100%;
    padding-inline: 1rem;
    color: var(--color-ink);
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-decoration: none;
  }

  .site-nav__list a:hover,
  .site-nav__list a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .hero__inner {
    /* More air below the header; bottom stays tight so the quote stays in view. */
    padding-top: clamp(1.75rem, 7vw, 2.75rem);
    padding-bottom: clamp(0.5rem, 2vw, 0.875rem);
  }

  .hero__grid {
    --hero-intro-top-push: clamp(2.75rem, 14vh, 6.5rem);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-items: stretch;
    /* Keep rows content-height; extra viewport space stays below the profile, not between video + Mom. */
    align-content: start;
    row-gap: 0;
    min-height: 0;
    /* Space below header — padding here avoids pulling the video up with negative margins (overlap). */
    padding-top: var(--hero-intro-top-push);
  }

  .hero__intro {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
    width: 100%;
    margin-top: 0;
    /* Space before video; padding keeps the gap stable in the grid. */
    padding-bottom: 20px;
    margin-bottom: 0;
    gap: clamp(0.875rem, 2.5vw, 1.25rem);
    position: relative;
    z-index: 1;
  }

  .hero__title {
    font-size: clamp(2rem, 6.5vw + 0.85rem, 2.625rem);
    line-height: 1.02;
  }

  .hero__lead {
    font-size: clamp(0.9375rem, 1.2vw + 0.8rem, 1.0625rem);
    line-height: 1.5;
  }

  .hero__media {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: stretch;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    /* Fixed gap between full-bleed video and Mom + quote below. */
    margin-bottom: 70px;
    position: relative;
    z-index: 0;
  }

  .hero__profile {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    row-gap: 0.625rem;
  }

  .hero__video-shell {
    aspect-ratio: 16 / 10;
    width: 100%;
    max-width: none;
    /* Slightly shorter than before so extra top padding + quote still fit one screen. */
    max-height: min(52vw, 38dvh, 20rem);
    margin-inline: 0;
    border-radius: 0;
  }
}

/* Short viewports on wide layouts only — avoids overriding stacked-hero mobile type. */
@media (max-height: 55rem) and (min-width: 56.063rem) {
  .hero__title {
    font-size: clamp(2rem, 5vw + 1.5rem, 3.5rem);
  }

  .hero__lead {
    font-size: clamp(1rem, 1.5vw + 0.75rem, 1.125rem);
  }

  .hero__grid {
    row-gap: clamp(0.65rem, 2vw, 1rem);
  }

  .hero__video-shell {
    --video-max-h: min(42dvh, 24rem);
    max-height: var(--video-max-h);
    width: min(100%, calc(var(--video-max-h) * 16 / 10));
  }
}

/* --- Are you ready quiz (section 9) --- */
#section-ready-quiz {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.site-section--ready-quiz {
  background: #f5f5f5;
  color: #121212;
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.site-section--ready-quiz .ready-quiz__inner.section-inner {
  width: min(100% - 2rem, 1440px);
  max-width: 1440px;
}

.ready-quiz__layout {
  display: grid;
  grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr);
  column-gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.ready-quiz__sticky-col {
  min-width: 0;
}

.ready-quiz__sticky {
  position: sticky;
  top: calc(var(--header-height) + 50px);
  display: grid;
  gap: 0.9rem;
}

.ready-quiz__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ready-quiz__intro {
  margin: 0;
  max-width: 18rem;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.5;
  color: rgba(18, 18, 18, 0.72);
}

.ready-quiz__main {
  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

.ready-quiz__progress {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.56);
}

.ready-quiz__question {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ready-quiz__options {
  margin-top: clamp(1rem, 2vw, 1.4rem);
  display: grid;
  gap: 0.7rem;
}

.ready-quiz__option {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  background: #fbfbfb;
  color: #121212;
  text-align: left;
  padding: 0.8rem 0.95rem;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.ready-quiz__option:hover {
  border-color: #9f9f9f;
  transform: translateY(-1px);
}

.ready-quiz__option:focus-visible {
  outline: 2px solid #121212;
  outline-offset: 2px;
}

.ready-quiz__option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid #b8b8b8;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.ready-quiz__option-label {
  min-width: 0;
}

.ready-quiz__option.is-selected {
  border-color: #7f7f7f;
  background: #f0f0f0;
}

.ready-quiz__option.is-correct {
  border-color: #3e9b56;
  background: #eaf8ee;
}

.ready-quiz__option.is-wrong {
  border-color: #c24646;
  background: #fdeaea;
  opacity: 1;
}

.ready-quiz__feedback {
  min-height: 3.1rem;
  margin: 1rem 0 0;
  font-size: clamp(0.96rem, 1vw, 1.12rem);
  line-height: 1.45;
  color: rgba(18, 18, 18, 0.82);
}

.ready-quiz__feedback[data-state="correct"] {
  color: #101010;
}

.ready-quiz__feedback[data-state="wrong"] {
  color: #2a2a2a;
}

.ready-quiz__actions {
  margin-top: 0.65rem;
}

.ready-quiz__next {
  border: 1px solid #121212;
  border-radius: 999px;
  background: #121212;
  color: #ffffff;
  min-height: 2.65rem;
  padding: 0.45rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ready-quiz__next:hover:not(:disabled) {
  transform: translateY(-1px);
}

.ready-quiz__next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 56rem) {
  .ready-quiz__layout {
    grid-template-columns: 1fr;
    row-gap: 1.35rem;
  }

  .ready-quiz__sticky {
    position: static;
  }

  .ready-quiz__intro {
    max-width: 36rem;
  }

  .ready-quiz__main {
    border-radius: 8px;
  }
}

/* --- Adventures (section 10) — 12-col grid, 24px gutter, ~16px side inset --- */
#section-adventures {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.site-section--adventures {
  --adventures-bg: #2e2624;
  --adventures-ink: #d1cdc7;
  --adventures-muted: rgba(209, 205, 199, 0.72);
  --adventures-gutter: 24px;
  background: var(--adventures-bg);
  color: var(--adventures-ink);
  border-bottom: none;
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(12rem, 22vw, 18rem);
}

.site-section--adventures .adventures__inner.section-inner {
  width: min(100% - 2rem, 1440px);
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 0;
}

.adventures__title {
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--adventures-ink);
}

.adventures__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--adventures-gutter);
  row-gap: 0;
  align-items: start;
}

.adventures__card {
  min-width: 0;
}

.adventures__media-outer {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  /* Match section bg so scrub/opacity 0 does not read as a black tile */
  background: var(--adventures-bg);
}

.adventures__media {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.adventures__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adventures__copy {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
  will-change: transform, opacity;
}

.adventures__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.adventures__card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.9vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--adventures-ink);
}

.adventures__num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.9vw, 2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--adventures-muted);
}

.adventures__desc {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 1.45vw, 1.5rem);
  line-height: 1.55;
  color: var(--adventures-muted);
  max-width: 100%;
}

/* Desktop staggered placement (matches design-ref intent) */
@media (min-width: 56.063rem) {
  .adventures__grid {
    /* Larger vertical breathing room to match design reference spacing. */
    row-gap: clamp(6.5rem, 14vw, 13rem);
  }

  .adventures__card--1 {
    grid-column: 2 / span 4;
    grid-row: 1;
  }

  .adventures__card--2 {
    grid-column: 8 / span 4;
    grid-row: 1;
    /* In the reference this starts much lower, near/below card 1's bottom. */
    margin-top: clamp(11rem, 24vw, 20rem);
  }

  .adventures__card--3 {
    grid-column: 1 / span 4;
    grid-row: 2;
    margin-top: clamp(4.75rem, 12vw, 10rem);
  }

  .adventures__card--4 {
    grid-column: 9 / span 4;
    grid-row: 2;
    /* Keep a pronounced gap between card 3 and card 4. */
    margin-top: clamp(12rem, 24vw, 21rem);
  }

  .adventures__card--5 {
    grid-column: 2 / span 4;
    grid-row: 3;
    margin-top: clamp(7rem, 16vw, 13rem);
  }
}

/* Tablet: two columns, simplified rhythm */
@media (max-width: 56rem) and (min-width: 36.001rem) {
  .adventures__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--adventures-gutter);
    row-gap: clamp(2rem, 5vw, 3rem);
  }

  .adventures__card--1,
  .adventures__card--2,
  .adventures__card--3,
  .adventures__card--4,
  .adventures__card--5 {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }
}

/* Mobile: single column */
@media (max-width: 36rem) {
  .adventures__grid {
    grid-template-columns: 1fr;
    row-gap: clamp(2rem, 6vw, 2.75rem);
  }

  .adventures__card--1,
  .adventures__card--2,
  .adventures__card--3,
  .adventures__card--4,
  .adventures__card--5 {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 0;
  }
}

/* --- Footer image (section 11) --- */
.site-section--footer {
  --footer-transition-color: #2e2624;
  padding-block: 0;
  background: var(--footer-transition-color);
  border-bottom: none;
  margin-top: 0;
}

.site-section--footer .footer__inner.section-inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.footer__media {
  position: relative;
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.footer__media::before {
  content: none;
}

.footer__image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px;
}

.footer__comment-wrap {
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3rem);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-block: -1px;
  padding-top: calc(clamp(1.25rem, 3vw, 2rem) + 1px);
  padding-bottom: calc(clamp(2rem, 5vw, 3rem) + 1px);
  background: linear-gradient(
    to bottom,
    #2e2624 0%,
    #8e7c74 46%,
    #faf9f6 100%
  );
}

.footer__comment-form {
  --footer-surface: rgba(255, 255, 255, 0.11);
  --footer-surface-strong: rgba(255, 255, 255, 0.16);
  --footer-border: rgba(250, 249, 246, 0.34);
  --footer-radius: 10px;
  display: grid;
  gap: 0.9rem;
  width: min(100% - 2rem, 600px);
  max-width: 600px;
  padding: clamp(0.9rem, 2vw, 1.2rem);
  border: none;
  border-radius: 0;
  background: transparent;
  color: #f2ebe3;
}

.footer__quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--footer-border);
  border-radius: var(--footer-radius);
  background: var(--footer-surface);
}

.footer__quote-copy {
  display: grid;
  gap: 0.35rem;
}

.footer__comment-intro {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.9vw, 1.14rem);
  line-height: 1.55;
}

.footer__comment-intro::before {
  content: '"';
}

.footer__comment-intro::after {
  content: '"';
}

.footer__comment-about {
  margin: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.2;
  opacity: 0.95;
}

.footer__quote-author {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.84);
}

.footer__about-image {
  display: block;
  width: 40px;
  height: 40px;
  margin-top: 0.15rem;
  border-radius: 50%;
  border: 1px solid rgba(250, 249, 246, 0.5);
  object-fit: cover;
}

.footer__comment-input {
  width: 100%;
  min-height: 6.5rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--footer-border);
  border-radius: var(--footer-radius);
  background: var(--footer-surface);
  color: #faf9f6;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.footer__comment-input::placeholder {
  color: rgba(250, 249, 246, 0.68);
}

.footer__comment-input:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.95);
  outline-offset: 1px;
}

.footer__comment-actions {
  width: 100%;
}

.footer__comment-submit {
  width: 100%;
  border: 1px solid var(--footer-border);
  border-radius: var(--footer-radius);
  background: var(--footer-surface);
  color: #faf9f6;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer__comment-submit:hover,
.footer__comment-submit:focus-visible {
  background: var(--footer-surface-strong);
  border-color: rgba(250, 249, 246, 0.68);
}

.footer__comment-submit:active {
  transform: translateY(1px);
}

.footer__comment-status {
  min-height: 1.3rem;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(250, 249, 246, 0.88);
}

.footer__comment-status.is-error {
  color: #ffd3d3;
}

@media (max-width: 40rem) {
  .footer__quote {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer__quote-copy {
    justify-items: center;
  }

  .footer__comment-about {
    text-align: center;
  }

  .footer__comment-actions {
    width: 100%;
  }
}

