/* ==========================================================================
   Story detail (author.html) — one graduate's success story
   Shared pieces (breadcrumb on the photo, prose, drop cap, share) live in
   content-shared.css; photo hero, callout, avatar, section head and arrow link are
   canonical components.
   Index: hero · quote band · story body · stat asides · skills · actions
          · other stories
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------- */
.story-hero {
  --photo-hero-h: clamp(24rem, 16rem + 22vw, 33.8125rem);
  --photo-hero-focus: 50% 34%;   /* a portrait (382x512): the face sits about a third down the photo */
}
.story-hero .photo-hero__inner { gap: var(--sp-3); }
.story-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-12);
  line-height: 1.5;
}
.story-hero__track {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: var(--sp-1) .875rem;
  color: var(--amber);
  background: color-mix(in srgb, var(--navy) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 60%, transparent);
  border-radius: var(--r-full);
  box-shadow: var(--sh-xs);
}
.story-hero__track-dot {
  width: .375rem;
  height: .375rem;
  border-radius: 50%;
  background: currentColor;
}
.story-hero__cohort {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--text-on-navy);
}
.story-hero__cohort .icon { font-size: .8125rem; }
.story-hero__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-8);
  width: 100%;
}
.story-hero__title { letter-spacing: -.025em; }
.story-hero__lead {
  max-width: 36rem;
  font-size: var(--fs-14);
  line-height: 2;
  color: var(--text-on-navy);
}

/* phones and tablets: a taller photo, so the portrait sits above the text */
@media (max-width: 47.9375rem) {
  .story-hero { --photo-hero-h: 38rem; }
}
/* from 640px a lighter scrim keeps the face clear (phones use the family scrim) */
@media (min-width: 40rem) {
  .story-hero {
    --photo-hero-scrim: linear-gradient(
      to top,
      color-mix(in srgb, var(--navy) 94%, transparent),
      color-mix(in srgb, var(--navy) 52%, transparent) 38%,
      color-mix(in srgb, var(--navy) 12%, transparent) 66%,
      transparent 85%
    );
  }
}

/* ---- Quote band ------------------------------------------------------------ */
.story-quote { background: var(--gray); }
.story-quote__inner {
  --container: 61rem;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-block: var(--sp-10);
}
.story-quote__mark {
  position: absolute;
  inset-block-start: var(--sp-4);
  inset-inline-start: 0;
  z-index: -1;
  width: clamp(5rem, 12vw, 8.75rem);
  height: auto;
  aspect-ratio: 140 / 92;
  color: var(--amber);
  opacity: .3;
}
.story-quote__eyebrow {
  order: -1;
  font-size: var(--fs-11);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .05em;
  color: var(--burgundy);
}
.story-quote__text {
  font-size: clamp(1.25rem, .95rem + 1.5vw, 2rem);
  line-height: 1.375;
  color: var(--ink);
  text-wrap: pretty;
}
.story-quote__source {
  padding-block-start: var(--sp-1);
  font-size: var(--fs-12);
  line-height: 1.5;
  color: var(--text);
}
.story-quote__source::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: var(--sp-8);
  height: 2px;
  margin-inline-end: var(--sp-2);
  background: var(--amber);
}

/* ---- Story body -------------------------------------------------------------- */
.story-body { padding-block: var(--sp-10); background: var(--surface); }
.story-body__inner { --container: 58.5rem; --prose-lh: 2; gap: var(--sp-6); }
.story-section { display: flex; flex-direction: column; gap: var(--sp-2); }

/* ---- Stat asides (figure tile + text + pill) ---------------------------------- */
.story-stat {
  --callout-bg: var(--gray);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  line-height: 1.5;
  box-shadow: var(--sh-xs);
}
.story-stat__tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  font-size: var(--fs-28);
  color: var(--amber-ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-8);
  box-shadow: var(--sh-xs);
}
.story-stat__tile--num .count { justify-items: center; }
.story-stat__tile--num {
  font-size: var(--fs-44);
  font-weight: 700;
  line-height: 1;
  color: var(--burgundy);
}
.story-stat__body {
  flex: 1 1 16rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.story-stat__figure {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  line-height: 1.36;
}
.story-stat__amount { font-size: var(--fs-44); font-weight: 700; color: var(--navy); }
.story-stat__unit { font-size: var(--fs-20); font-weight: 700; color: var(--amber-ink); }
.story-stat__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-4);
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.5;
  color: var(--burgundy);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--burgundy) 20%, transparent);
  border-radius: var(--r-full);
}
.story-stat__pill--amber {
  padding: .375rem var(--sp-3);
  font-size: var(--fs-11);
  color: var(--amber-ink);
  background: var(--amber-soft);
  border-color: transparent;
}
.story-stat__pill .icon { font-size: .9375rem; }

/* ---- Skills -------------------------------------------------------------------- */
.story-skills {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  line-height: 1.5;
  background: var(--gray);
  border-radius: var(--r-8);
}
.story-skills__title {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--navy);
}
.story-skills__title .icon { font-size: .9375rem; }
.story-skills__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.story-skills__chip {
  padding: var(--sp-1) .625rem;
  font-size: var(--fs-11);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
}

/* ---- Actions: share + register ---------------------------------------------------- */
.story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block-start: var(--sp-6);
  line-height: 1.5;
  border-block-start: 1px solid var(--line);
}
.story-actions__share {
  --share-bg: var(--gray);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
.story-actions__label { font-size: var(--fs-12); color: var(--text); }
.story-actions__buttons { gap: var(--sp-2); }
.story-actions__buttons .share__btn { color: var(--ink); }
.story-actions__cta { min-height: 2.75rem; white-space: normal; }

/* ---- Other stories ------------------------------------------------------------------ */
.more-stories { padding-block: var(--sp-10); background: var(--gray); }
.more-stories__head { gap: var(--sp-3); margin-block-end: var(--sp-6); }
.more-stories__eyebrow {
  font-size: var(--fs-11);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .05em;
  color: var(--burgundy);
}
.more-stories__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}
.more-stories__list { display: grid; gap: var(--sp-4); }
.more-stories__list > li { display: flex; }
.mini-story {
  flex: 1;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-color: transparent;
  border-radius: var(--r-8);
  box-shadow: none;
}
.mini-story__photo { --avatar-size: 4rem; box-shadow: var(--sh-xs); }
.mini-story__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.mini-story__name {
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}
.mini-story__role { font-size: var(--fs-12); line-height: 1.5; color: var(--text); }
.mini-story__link { margin-block-start: .125rem; font-size: var(--fs-11); }
.mini-story__link .icon { font-size: .5625rem; }

/* ---- ≥ 768px ---------------------------------------------------------------------------- */
@media (min-width: 48rem) {
  .story-stat { padding: var(--sp-6); }
  .more-stories__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Motion ---------------------------------------------------------------------
   Quote band: blur-in. Stat asides: slide in from alternating sides (the body is
   content-visibility: auto, which also clips what slides in). Skill chips pop one by one
   (60ms apart, set in the markup). Other stories fall in. */
.more-stories__list > li:nth-child(odd) { --drop-tilt: -2.5deg; }
.more-stories__list > li:nth-child(even) { --drop-tilt: 2.5deg; }
@media (prefers-reduced-motion: no-preference) {
  /* NEEDS-SHARED: .photo-hero__inner uses .5s / .06s in components.css; slower here until it moves to the tokens */
  .story-hero .photo-hero__inner > * { animation-duration: var(--t-slow); }
  .story-hero .photo-hero__inner > :nth-child(2) { animation-delay: 120ms; }
  .story-hero .photo-hero__inner > :nth-child(n + 3) { animation-delay: 240ms; }
}


/* English (LTR): the drop cap is a single Latin letter, so it sits closer to the rest of the word.
   PROMOTE → content-shared.css (.dropcap) if more English pages use it. */
[dir="ltr"] .dropcap { margin-inline-end: 1px; }
