/* ============================================================
   Staff pages — /team/<slug>/ for the five staff members
   ============================================================
   Scoped under .staff-page. Tokens from styles.css; entrance motion
   rides .reveal from animations.css. Composition follows the "Meet
   the Team" carousel: a deep disc the cut-out figure stands on, the
   name and roster index on a hairline, a very large "About her."
   Markup in src/StaffPage.jsx.
   ============================================================ */

/* ---------- 1. Hero ---------- */
.st-hero { position: relative; background: var(--c-ivory); overflow: hidden; }
.st-hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-64) 80px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 42%);
  grid-template-areas: "top top" "title title" "copy stage";
  column-gap: var(--s-64);
  align-items: end;
}
@media (max-width: 1023px) { .st-hero-inner { padding: var(--s-48) 48px 0; column-gap: var(--s-32); } }
@media (max-width: 767px) {
  .st-hero-inner {
    padding: var(--s-32) var(--s-16) 0;
    grid-template-columns: 1fr;
    grid-template-areas: "top" "title" "copy" "stage";
  }
}

.st-top { grid-area: top; display: flex; align-items: center; gap: var(--s-24); }
.st-top-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1;
  color: var(--c-sea-text);
}
.st-top-rule { flex: 1 1 auto; height: 1px; background: var(--c-deep); opacity: 0.6; }
.st-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-sea-text);
  text-decoration: none;
  border-bottom: 1px solid var(--c-seafoam);
  padding-bottom: 2px;
}
.st-top-link:hover { border-bottom-color: var(--c-sea); }
.st-top-link:focus-visible { outline: 2px solid var(--c-sea); outline-offset: 4px; }
@media (max-width: 767px) { .st-top { gap: var(--s-12); } .st-top-name { font-size: 20px; } }

.st-title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 150px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--c-deep);
  margin: var(--s-16) 0 var(--s-24);
}
.st-title .turn { font-style: italic; color: var(--c-sea); }

.st-copy { grid-area: copy; padding-bottom: var(--s-64); max-width: 480px; }
@media (max-width: 767px) { .st-copy { padding-bottom: var(--s-32); max-width: none; } }
.st-lead {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-ink);
  margin: 0 0 var(--s-32);
}
.st-rule { display: flex; gap: var(--s-24); align-items: stretch; margin-bottom: var(--s-32); }
.st-rule-line { width: 1px; flex: 0 0 1px; background: var(--c-deep); }
.st-rule-body { display: grid; gap: 8px; padding: 4px 0; }
.st-tag {
  justify-self: start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-mint);
  border: 1px solid var(--c-seafoam);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-deep);
}
.st-role {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sea-text);
}
.st-cred { font-family: var(--font-sans); font-size: 17px; font-weight: 600; letter-spacing: 0.06em; color: var(--c-deep); }
.st-tagline { font-family: var(--font-display); font-style: italic; font-size: 21px; line-height: 1.35; color: var(--c-sea-text); }
.st-note {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-sea-text);
  max-width: 46ch;
  margin: 0 0 var(--s-24);
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--c-mint);
}
.st-note a { color: var(--c-deep); text-decoration: underline; text-underline-offset: 3px; }
.st-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-16) var(--s-32); }
.st-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-sea-text);
  text-decoration: none;
  border-bottom: 1px solid var(--c-seafoam);
  padding-bottom: 2px;
}
.st-jump:hover { border-bottom-color: var(--c-sea); }
.st-jump:focus-visible { outline: 2px solid var(--c-sea); outline-offset: 4px; }

/* The disc and the figure. The disc is the width of its column; the
   figure is taller than the disc so her head rises above it, and its
   straight-cut hem sits on the section's floor. */
.st-stage {
  grid-area: stage;
  position: relative;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  /* The figure overshoots the disc by 24% of its width (see .st-figure);
     reserve that above the disc so her head never rises into the headline
     when the copy column is shorter than the stage. */
  margin-top: 24%;
  pointer-events: none;
}
.st-disc { position: absolute; inset: 0; border-radius: 50%; background: var(--c-deep); }
/* The picture spans the whole stage and centres the image with flex. It
   must not be positioned from the midpoint with an auto width: that caps
   its width at half the stage, and the global img { max-width: 100% }
   then squashes the figure sideways (measured 0.40 against a 0.61
   natural ratio before this was fixed, 2026-11-06). */
.st-figure {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 124%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.st-figure img { display: block; height: 100%; width: auto; max-width: none; }
.st-stage.reveal { transform: translateY(var(--reveal-rise)); }
.st-stage.reveal.in { transform: none; }
@media (max-width: 767px) {
  .st-stage { max-width: 78vw; justify-self: center; margin-top: max(24%, var(--s-48)); }
  .st-figure { height: 118%; }
}

/* ---------- 2. Story ---------- */
.st-story { background: var(--c-pearl); padding: var(--s-96) 0 var(--s-128); }
.st-story-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: var(--s-96);
  align-items: start;
}
@media (max-width: 1023px) { .st-story { padding: var(--s-64) 0 var(--s-96); } .st-story-inner { padding: 0 48px; gap: var(--s-48); } }
@media (max-width: 767px) { .st-story-inner { grid-template-columns: 1fr; padding: 0 var(--s-16); } }
.st-side { position: sticky; top: var(--s-96); }
@media (max-width: 767px) { .st-side { position: static; order: 2; } }
.st-side-photo { border-radius: 16px; overflow: hidden; background: var(--c-mint); margin-bottom: var(--s-24); box-shadow: var(--e-sm); }
.st-side-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.st-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sea-text);
  margin: 0 0 var(--s-12);
}
.st-chips { display: flex; flex-wrap: wrap; gap: var(--s-8); list-style: none; margin: 0 0 var(--s-32); padding: 0; }
.st-chips li > a, .st-chips li > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--c-stone);
  background: var(--c-white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  transition: background-color var(--d-hover) var(--ease-out), border-color var(--d-hover) var(--ease-out);
}
.st-chips li > a:hover { border-color: var(--c-seafoam); background: var(--c-mint); }
.st-chips li > a svg { color: var(--c-sea); }
.st-chips li > a:focus-visible { outline: 2px solid var(--c-sea); outline-offset: 2px; }
.st-story-head { margin-bottom: var(--s-32); }
.st-story-head .h2 { margin: 0; max-width: 18ch; }
.st-bio p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-ink);
  margin: 0 0 var(--s-24);
  max-width: 64ch;
}
.st-bio p a { color: var(--c-deep); text-decoration: underline; text-underline-offset: 3px; }
.st-dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--c-deep);
}

/* ---------- 2b. Credentials ledger (co-owners) ---------- */
.st-record { background: var(--c-ivory); padding: var(--s-96) 0; border-top: 1px solid var(--c-stone); }
.st-record-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 80px; }
@media (max-width: 1023px) { .st-record { padding: var(--s-64) 0; } .st-record-inner { padding: 0 48px; } }
@media (max-width: 767px) { .st-record-inner { padding: 0 var(--s-16); } }
.st-record-head { max-width: 24ch; margin-bottom: var(--s-48); }
.st-record-head .h2 { margin: 0; }
.st-ledger { margin: 0; display: grid; gap: 0; }
.st-ledger-group {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: var(--s-32);
  padding: var(--s-24) 0;
  border-top: 1px solid var(--c-stone);
}
.st-ledger-group:last-child { border-bottom: 1px solid var(--c-stone); }
@media (max-width: 599px) { .st-ledger-group { grid-template-columns: 1fr; gap: var(--s-8); } }
.st-ledger dt {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sea-text);
  padding-top: 4px;
}
.st-ledger dd { margin: 0; }
.st-ledger ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-ledger li { font-family: var(--font-sans); font-size: 16px; line-height: 1.55; color: var(--c-ink); max-width: 64ch; }

/* ---------- 3. The rest of the team ---------- */
.st-others { background: var(--c-ivory); padding: var(--s-96) 0; }
.st-others-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 80px; }
@media (max-width: 1023px) { .st-others { padding: var(--s-64) 0; } .st-others-inner { padding: 0 48px; } }
@media (max-width: 767px) { .st-others-inner { padding: 0 var(--s-16); } }
.st-others-head { max-width: 30ch; margin-bottom: var(--s-48); }
.st-others-head .h2 { margin: 0; }
.st-others-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-24);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 1023px) { .st-others-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .st-others-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-16); } }
.st-other { display: grid; gap: 6px; text-decoration: none; color: var(--c-ink); }
.st-other-photo { display: block; border-radius: 14px; overflow: hidden; background: var(--c-mint); box-shadow: var(--e-sm); transition: transform var(--d-hover) var(--ease-out), box-shadow var(--d-hover) var(--ease-out); }
.st-other-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .st-other:hover .st-other-photo { transform: translateY(-4px); box-shadow: var(--e-lg); }
}
.st-other:focus-visible { outline: 2px solid var(--c-sea); outline-offset: 4px; border-radius: 14px; }
.st-other-name { font-family: var(--font-display); font-size: 16px; line-height: 1.25; color: var(--c-deep); margin-top: 6px; }
.st-other-role { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-slate); }

/* ---------- 4. Closer ---------- */
.st-close { background: var(--c-mint); padding: var(--s-96) 0; }
.st-close-inner { max-width: 640px; margin: 0 auto; padding: 0 var(--s-24); text-align: center; }
.st-close .gold-line { display: block; width: 36px; height: 1px; background: var(--c-gold-text); margin: 0 auto var(--s-24); }
.st-close h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; color: var(--c-deep); margin: 0 0 var(--s-16); }
.st-close p { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--c-slate); margin: 0 0 var(--s-32); }
.st-close-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-12) var(--s-16); }

@media (prefers-reduced-motion: reduce) {
  .st-stage.reveal, .st-stage.reveal.in, .st-other-photo, .st-chips li > a { transition: none; transform: none; }
}
