/* ==========================================================================
   Help The Poor Initiative — Our Story
   Page-specific only. Tokens, header, footer, page banner, buttons and the
   CTA band all come from css/style.css.

   Two first-person accounts on one page. The problem this layout solves is
   attribution: across a 1,000-word read the reader must never lose track of
   who is speaking. So each account gets a sticky author rail that stays beside
   the prose, mirrored between the two so they read as a matched pair rather
   than a repeated template.

   Hierarchy: the founder's account is the origin of the organisation, so it
   comes first, sits on white, and is set one step larger. The co-founder's sits
   on the alt surface with the rail mirrored — different weight, equal care.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Opening standfirst
   -------------------------------------------------------------------------- */
.overture { padding: 62px 0 8px; }

.overture-inner {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.overture p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.62;
  color: var(--green-deep);
}

.overture p + p {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   2. A voice — one person's account
   -------------------------------------------------------------------------- */
.voice { padding: 68px 0; }

.voice--founder { --accent: var(--green); }

.voice--cofounder {
  --accent: var(--navy);
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

/* --- Section head ------------------------------------------------------- */
.voice-head {
  max-width: 46rem;
  margin-bottom: 44px;
}

.voice-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.voice-eyebrow svg { flex: none; }

.voice-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.012em;
  color: var(--ink-strong);
}

/* The co-founder's account is a chapter, not the opening — one step down. */
.voice--cofounder .voice-head h2 { font-size: clamp(1.35rem, 2.9vw, 1.95rem); }

.voice-standfirst {
  max-width: 40rem;
  margin-top: 14px;
  font-size: clamp(1.02rem, 1.9vw, 1.15rem);
  line-height: 1.7;
  color: var(--muted);
}

/* --- The two-column body ------------------------------------------------ */
.voice-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

/* Mirrored for the second voice. The rail is second in the source too, so the
   reading order matches the visual order without any grid-order trickery. */
.voice--cofounder .voice-grid { grid-template-columns: minmax(0, 1fr) 300px; }

/* --------------------------------------------------------------------------
   3. Author rail — who is speaking, held in view while you read
   -------------------------------------------------------------------------- */
.voice-rail {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.voice-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Portrait slot. Deliberately an emblem, not a stock face — the same decision
   the team grid makes. When the real photograph exists, replace the whole
   .voice-portrait block with:
     <div class="media media--1x1"><img src="assets/img/team-1.jpg" alt="…"></div>
   and nothing else needs to change. */
.voice-portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  background: linear-gradient(155deg,
              color-mix(in srgb, var(--accent) 13%, #fff) 0%,
              var(--surface-alt) 100%);
}

.voice-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 118%,
              color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%);
}

/* Real portrait, layered over the emblem. The inline onerror removes the <img>
   if the file is not there yet, uncovering the emblem — so the rail never shows
   a broken image, and dropping the photo in needs no edit. */
.voice-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform var(--speed) var(--ease);
}

.voice-card:hover .voice-photo { transform: scale(1.04); }

.voice-portrait svg {
  position: relative;
  width: 58%;
  height: auto;
  transition: transform var(--speed) var(--ease);
}

.voice-card:hover .voice-portrait svg { transform: translateY(-4px) scale(1.04); }

.voice-portrait .media { width: 100%; height: 100%; border-radius: 0; }

.voice-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink-strong);
}

.voice-role {
  margin-top: 5px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent);
}

.voice-note {
  margin-top: 9px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. The prose itself
   -------------------------------------------------------------------------- */
/* ~66 characters. Longer and the eye loses the line return on a long read. */
.prose { max-width: 41rem; }

.prose p {
  margin-top: 22px;
  font-size: 1.0625rem;
  line-height: 1.86;
  color: var(--ink);
}

.prose > p:first-child { margin-top: 0; }

.prose strong { font-weight: 700; color: var(--ink-strong); }

/* Opening paragraph carries the reader in. */
.prose-lede {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.1vw, 1.32rem) !important;
  font-weight: 600;
  line-height: 1.62 !important;
  color: var(--green-deep) !important;
}

/* --- Movements within one account --------------------------------------- */
.prose h3 {
  margin-top: 54px;
  margin-bottom: 4px;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--accent);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* A short rule above each, so the parts read as movements in one piece. */
.prose h3::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 17px;
  border-radius: 3px;
  background: var(--orange);
}

/* --- Dramatic single-line beats ------------------------------------------
   Both authors write standalone lines — "A promise.", "True love acts.",
   "Two stories." Rendering those as ordinary paragraphs throws the rhythm
   away, which in this material is most of the meaning. */
.beat {
  margin-top: 20px !important;
  font-family: var(--font-display);
  font-size: 1.14rem !important;
  font-weight: 700;
  line-height: 1.52 !important;
  color: var(--ink-strong);
}

/* A run of consecutive beats is one thought, not four. */
.beat + .beat { margin-top: 8px !important; }

/* --- Anaphora lists — "I understand…", "True love sees…", "It was born…" -- */
.litany {
  margin-top: 24px;
  padding-left: 26px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 18%, #fff);
  list-style: none;
}

.litany li {
  margin-top: 14px;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink);
}

.litany li:first-child { margin-top: 0; }

/* The repeated opening words are the point of the device — let them carry. */
.litany b { font-weight: 700; color: var(--accent); }

/* --------------------------------------------------------------------------
   5. Pull quotes
   -------------------------------------------------------------------------- */
.quote {
  position: relative;
  margin: 44px 0 8px;
  padding: 34px clamp(24px, 4vw, 40px) 30px;
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  border-radius: var(--radius-lg);
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: -12px;
  left: clamp(18px, 3vw, 28px);
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: 1;
  color: var(--orange);
  opacity: .5;
}

.quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.52;
  color: color-mix(in srgb, var(--accent) 86%, #000);
}

.quote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The line each account closes on. */
.quote--close {
  margin-top: 54px;
  padding: 38px clamp(24px, 4vw, 44px);
  background: linear-gradient(150deg,
              var(--accent) 0%,
              color-mix(in srgb, var(--accent) 55%, #000) 88%);
}

.quote--close::before { color: var(--orange-warm); opacity: .55; }
.quote--close p { color: #fff; }
.quote--close cite { color: rgba(255, 255, 255, .64); }

/* --------------------------------------------------------------------------
   6. Bridge between the two accounts
   -------------------------------------------------------------------------- */
.bridge {
  padding: 26px 0;
  text-align: center;
}

.bridge-inner {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.bridge-inner::before,
.bridge-inner::after {
  content: "";
  width: clamp(30px, 8vw, 78px);
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  opacity: .55;
}

/* --------------------------------------------------------------------------
   7. Closing call
   -------------------------------------------------------------------------- */
.story-close {
  max-width: 44rem;
  margin-inline: auto;
  padding: 76px 0 0;
  text-align: center;
}

.story-close h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--ink-strong);
}

.story-close p {
  max-width: 48ch;
  margin: 12px auto 24px;
  line-height: 1.78;
  color: var(--muted);
}

.story-close-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  /* The rail stops being a sidebar and becomes a header card. Sticky is
     dropped with it — a sticky full-width card would cover the prose. */
  .voice-grid,
  .voice--cofounder .voice-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .voice-rail { position: static; }

  /* Mirrored order must not survive the collapse: the card belongs above the
     words in both accounts. */
  .voice--cofounder .voice-rail { order: -1; }

  .voice-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    max-width: 41rem;
  }

  .voice-portrait { margin-bottom: 0; }
  .prose { max-width: 41rem; }
}

@media (max-width: 768px) {
  .overture { padding: 40px 0 4px; }
  .voice { padding: 46px 0; }
  .voice-head { margin-bottom: 30px; }

  .prose p { font-size: 1rem; line-height: 1.8; }
  .prose h3 { margin-top: 42px; }
  .litany { padding-left: 18px; }
  .litany li { font-size: 1rem; }
  .beat { font-size: 1.07rem !important; }
  .quote { margin: 34px 0 8px; }
  .quote--close { margin-top: 42px; }

  .story-close { padding-top: 54px; }
  .story-close-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  /* Two columns inside the card stop working once the portrait is tiny. */
  .voice-card { grid-template-columns: 1fr; gap: 16px; }
  .voice-portrait { max-width: 132px; }
}
