/* Programme Team — /team/ */

/* Sections on this page set their own rhythm (main.css halves the top padding of
   any light section that follows another section). */
.page-team .section.profile,
.page-team .section.founders { padding-top: var(--section); }

/* ---------- Tone: the founders' photographs develop from grayscale to colour ----------
   Driven by the element's own scroll progress (--p from data-scrub): grey as it
   enters, full colour through the middle of the viewport, grey again as it leaves.
   Hover / focus always gives full colour. (Facilitator figures are places, shown in colour.) */
.tone img {
  --g: max(clamp(0, calc(1 - (var(--p, 0.5) - 0.14) * 4), 1), clamp(0, calc((var(--p, 0.5) - 0.88) * 8), 1));
  filter: grayscale(var(--g)) contrast(1.03);
  transition: filter 0.6s var(--ease);
}
.tone:hover img, a:hover .tone img, a:focus-visible .tone img, figure:hover .tone img { filter: grayscale(0) contrast(1.03); }
/* Reduced motion: no scroll-driven effects — photographs simply sit in full colour. */
@media (prefers-reduced-motion: reduce) {
  .tone img { filter: none; transition: none; }
}

/* ==========================================================================
   Sequence map — who holds which part of the week
   ========================================================================== */
.sequence .heading { margin-bottom: clamp(56px, 7vw, 100px); }
.sequence .seq {
  position: relative; display: grid; padding-left: 40px;
  --q: clamp(0, calc((var(--p, 1) - 0.17) * 1.6), 1);
}
.seq::before, .seq::after { content: ''; position: absolute; left: 6px; top: 8px; bottom: 24px; width: 1px; background: var(--line); }
.seq::after { background: var(--gold); transform-origin: top; transform: scaleY(var(--q)); }
.seq__stop {
  position: relative; display: grid; gap: 14px; align-content: start; padding-bottom: clamp(44px, 7vw, 64px);
  --lit: clamp(0, calc((var(--q) - var(--n) * 0.25) * 10), 1);
}
.seq__stop:last-child { padding-bottom: 0; }
.seq__head, .seq__main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.seq__head { gap: 12px; }
@media (min-width: 640px) and (max-width: 1023px) {
  .seq__stop { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 56px); }
  .seq__people { margin-top: 0; }
}
.seq__dot { position: absolute; left: -40px; top: 3px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); background: var(--bg); }
.seq__dot::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--gold); opacity: var(--lit); transform: scale(var(--lit)); }
.seq__n { font-family: var(--f-ui); font-size: var(--fs-ui); letter-spacing: 0.24em; color: var(--accent-text); line-height: 1.5; }
.seq__lever { font-family: var(--f-display); font-weight: 300; font-size: var(--fs-m); line-height: 1.02; letter-spacing: -0.006em; }
.seq__line { font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem); line-height: 1.2; color: var(--accent-text); }
.seq__people { display: grid; border-top: 1px solid var(--line); margin-top: 6px; }
.seq__person { display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 18px; align-items: center; min-height: 84px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color 0.3s; }
/* Initials in a fine gold ring (an echo of the TNH monogram), as on the home and The Reset pages */
.seq__mark, .profile__mark {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent);
  font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.18rem; line-height: 1; letter-spacing: 0.04em; padding-right: 0.04em;
  color: var(--accent-text); transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.seq__person:hover .seq__mark, .seq__person:focus-visible .seq__mark { background-color: var(--gold); border-color: var(--gold); color: var(--ink); }
.seq__who { display: grid; gap: 6px; min-width: 0; }
.seq__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 1.15rem + 0.45vw, 1.6rem); line-height: 1.1; }
.seq__role { font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.16em; line-height: 1.5; text-transform: uppercase; color: var(--muted); text-wrap: balance; }
.seq__go { color: var(--accent-text); opacity: 0.7; transition: transform 0.5s var(--ease), opacity 0.3s; }
.seq__go .i-arrow { width: 20px; height: 20px; transform: rotate(90deg); }
.seq__person:hover, .seq__person:focus-visible { color: var(--accent-text); }
.seq__person:hover .seq__go { opacity: 1; transform: translateY(4px); }
.seq__body { color: var(--muted); font-size: 1.02rem; max-width: 30rem; }
.seq__foot { margin-top: clamp(48px, 6vw, 80px); padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 18px; justify-items: start; }
.seq__note { color: var(--muted); font-style: italic; font-size: var(--fs-small); max-width: 40rem; }
/* "The bridge" sits between the numbered levers: set it as a word, not a number */
.seq__stop--bridge .seq__n { font-family: var(--f-display); font-style: italic; font-size: 1.05rem; letter-spacing: 0.01em; line-height: 1.1; }

@media (min-width: 1024px) {
  .sequence .seq {
    padding-left: 0; padding-top: 44px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: 0;
    --q: clamp(0, calc((var(--p, 1) - 0.2) * 3.4), 1);
  }
  .seq::before, .seq::after { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; }
  .seq::after { transform-origin: left; transform: scaleX(var(--q)); }
  .seq__stop { grid-row: span 5; grid-template-rows: subgrid; row-gap: 16px; padding: 0 clamp(20px, 2.4vw, 40px) 0 0; }
  .seq__head, .seq__main { display: contents; }
  .seq__stop + .seq__stop { padding-left: clamp(20px, 2.4vw, 40px); border-left: 1px solid var(--line); }
  .seq__dot { left: 0; top: -44px; }
  .seq__stop + .seq__stop .seq__dot { left: -7px; }
  .seq__lever { font-size: clamp(2rem, 1rem + 1.5vw, 2.9rem); }
  .seq__person { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; }
  .seq__mark { width: 44px; height: 44px; font-size: 1.02rem; }
  .seq__foot { grid-template-columns: 1fr auto; align-items: center; }
}
/* 1024–1279: four narrow columns — the whole row is the link, so the arrow gives way to the name */
@media (min-width: 1024px) and (max-width: 1279px) {
  .seq__person { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .seq__go { display: none; }
}
@media (prefers-reduced-motion: reduce) { .seq, .seq__stop { --q: 1; --lit: 1; } }
.no-js .seq { --q: 1; }

/* ==========================================================================
   Profiles
   ========================================================================== */
.profile { overflow: hidden; overflow: clip; isolation: isolate; padding-bottom: calc(var(--section) * 1.15); }

/* Giant lever word along the bottom edge of each chapter */
.profile__word {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: -0.16em; margin: 0; padding-inline: var(--gutter);
  font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(6rem, 1rem + 21vw, 24rem); line-height: 0.8; letter-spacing: -0.035em;
  white-space: nowrap; color: color-mix(in srgb, var(--fg) 6.5%, transparent); pointer-events: none; user-select: none;
  transform: translate3d(calc((var(--p, 0.5) - 0.5) * -12%), 0, 0);
}
.profile--flip .profile__word { text-align: right; transform: translate3d(calc((var(--p, 0.5) - 0.5) * 12%), 0, 0); }
@media (prefers-reduced-motion: reduce) { .profile__word, .profile--flip .profile__word { transform: none; } }

.profile__grid { display: grid; grid-template-areas: 'head' 'media' 'body'; row-gap: clamp(30px, 4vw, 44px); }
.profile__head { grid-area: head; display: grid; gap: 20px; justify-items: start; }
.profile__mark { width: 64px; height: 64px; font-size: 1.45rem; margin-bottom: 6px; }
.page-team .nobr { white-space: nowrap; }
.profile__n { font-family: var(--f-display); font-style: italic; font-size: 1.5em; letter-spacing: 0; text-transform: none; line-height: 0; }
.profile__name { font-size: clamp(3.1rem, 1.3rem + 5.2vw, 7rem); line-height: 0.92; letter-spacing: -0.02em; }
.profile__name em { display: block; }
.profile__role { font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg); opacity: 0.82; line-height: 1.6; }
.profile__media { grid-area: media; margin: 0; }
/* Landscape frames: the image is a place, so it is never framed like a portrait slot. */
.profile__img { aspect-ratio: var(--frame, 1.25); background: none; } /* the img carries its own placeholder tone; no dark seam at fractional widths */
.profile__media .media__cap { color: var(--muted); flex-wrap: wrap; row-gap: 6px; }
.profile__media .media__cap span:last-child { margin-left: auto; text-align: right; }

/* Rob: a typographic plate — his work spans before, during and after the week, not a place */
.profile__plate {
  position: relative; display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--gold) 11%, transparent), transparent 60%),
    color-mix(in srgb, var(--fg) 3%, transparent);
}
.profile__plate::before { content: ''; position: absolute; inset: clamp(10px, 1.4vw, 16px); border: 1px solid color-mix(in srgb, var(--gold) 20%, transparent); pointer-events: none; }
.profile__plate-mark {
  font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(6rem, 4rem + 8vw, 12rem); line-height: 1;
  letter-spacing: -0.02em; color: var(--fg); padding-right: 0.06em;
}
.profile__plate-mark em { color: var(--accent-text); }
.profile__body { grid-area: body; display: grid; gap: clamp(30px, 3.6vw, 48px); align-content: start; min-width: 0; }
.profile__short { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-s); line-height: 1.22; color: var(--fg); max-width: 30rem; text-wrap: pretty; }
.profile__long { max-width: 34rem; }
.profile__pull { position: relative; font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.75rem); line-height: 1.1; color: var(--accent-text); max-width: 18ch; padding-top: 26px; text-wrap: balance; }
.profile__pull::before { content: ''; position: absolute; top: 0; left: 0; width: 44px; height: 1px; background: var(--gold); }

/* Facts */
.profile__facts { display: grid; border-top: 1px solid var(--line); max-width: 34rem; }
.profile__facts > div { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile__facts dt { font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); }
.profile__facts dd { margin: 0; color: var(--fg); opacity: 0.92; font-size: 1.05rem; line-height: 1.5; }
.profile__marker { gap: 10px; }
.profile__marker dd { font-family: var(--f-display); font-weight: 300; font-size: clamp(3.4rem, 2.4rem + 3vw, 5.4rem); line-height: 0.86; opacity: 1; letter-spacing: -0.02em; }
@media (min-width: 1100px) {
  .profile__facts > div:not(.profile__marker) { grid-template-columns: 150px 1fr; gap: 24px; align-items: baseline; }
}

/* Evidence */
.evidence { display: grid; gap: 14px; padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 3%, transparent); max-width: 34rem; }
.evidence__k { font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); }
.evidence__stat { font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem, 2.2rem + 2.4vw, 4.4rem); line-height: 0.9; color: var(--fg); }
.evidence__stat small { font-size: 0.42em; font-style: italic; color: var(--accent-text); margin-left: 6px; }
.evidence__stat .evidence__x { font-size: 0.62em; font-style: normal; font-weight: 300; margin-left: 4px; }
.evidence__claim { color: var(--fg); opacity: 0.9; font-size: 1.05rem; }
.evidence__src { font-size: 0.9rem; font-style: italic; color: var(--muted); }
.evidence__src a { color: inherit; text-underline-offset: 0.18em; }
.evidence__src a:hover { color: var(--accent-text); }

/* Voices — quotes from each facilitator's own practice */
.voices { display: grid; gap: 26px; max-width: 34rem; }
.voices__k { display: flex; align-items: center; gap: 14px; font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.voices__ast { color: var(--accent-text); margin-left: 2px; letter-spacing: 0; }
.voices__k::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.voice { display: grid; gap: 14px; }
.voice p { position: relative; font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(1.32rem, 1.15rem + 0.6vw, 1.7rem); line-height: 1.28; color: var(--fg); text-indent: -0.42em; text-wrap: pretty; }
.voice p::before { content: '“'; color: var(--accent-text); }
.voice p::after { content: '”'; color: var(--accent-text); }
.voice__by { font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.voice__by strong { font-weight: 400; color: var(--fg); }
.voices__k { flex-wrap: nowrap; }
@media (max-width: 480px) { .voices__k { letter-spacing: 0.16em; } }
.voice + .voice { padding-top: 26px; border-top: 1px solid var(--line); }
.voices__note { font-size: var(--fs-small); font-style: italic; color: var(--muted); }
.voices__note span { color: var(--accent-text); font-style: normal; }

/* Rob — before, during, after */
.arc { display: grid; border-top: 1px solid var(--line); max-width: 34rem; position: relative; }
.arc li { position: relative; display: grid; gap: 6px; padding: 20px 0 20px 30px; border-bottom: 1px solid var(--line); }
.arc li::before { content: ''; position: absolute; left: 0; top: 27px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.arc li:not(:last-child)::after { content: ''; position: absolute; left: 3px; top: 40px; bottom: -27px; width: 1px; background: color-mix(in srgb, var(--gold) 45%, transparent); z-index: 1; }
.arc__when { font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); }
.arc__what { font-family: var(--f-display); font-size: var(--fs-s); line-height: 1.15; color: var(--fg); }
.arc p { color: var(--muted); font-size: 1.02rem; }
.arc p em { font-style: italic; color: var(--fg); }

/* Tablet: stacked — the name, then a wide view of the setting, then the text */
.profile__plate { aspect-ratio: 16 / 10; }
@media (min-width: 768px) and (max-width: 1023px) {
  .profile__img { aspect-ratio: var(--frame-t, 1.6); }
  .profile__plate { aspect-ratio: 2 / 1; }
  .profile--wide .profile__img { aspect-ratio: 3 / 2; }
  .profile--wide .profile__name em { display: inline; }
}

/* Two-column editorial layout: the setting holds (sticky) beside the text */
@media (min-width: 1024px) {
  .profile__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: 'media head' 'media body'; column-gap: clamp(40px, 6.6vw, 124px); }
  .profile--flip .profile__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: 'head media' 'body media'; }
  .profile__head { align-content: start; padding-top: clamp(0px, 3vw, 48px); }
  .profile__media { align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }
  .profile__plate { aspect-ratio: 5 / 4; }

  /* Nuno: the name first, then a wide view of the valley across the chapter, then the text.
     Visual order matches DOM order, and a jump to #nuno lands on his name, not on a landscape. */
  .profile--wide .profile__grid { grid-template-rows: auto auto auto; grid-template-areas: 'head head' 'media media' '. body'; row-gap: clamp(36px, 4vw, 64px); }
  .profile--wide .profile__media { position: static; }
  .profile--wide .profile__img { aspect-ratio: 3 / 2; }
  .profile--wide .profile__head { padding-top: 0; }
  .profile--wide .profile__name em { display: inline; }
}
@media (min-width: 1100px) {
  .profile--wide .profile__img { aspect-ratio: 16 / 8.2; }
}

/* ==========================================================================
   Founders
   ========================================================================== */
.founders__grid { display: grid; gap: clamp(72px, 10vw, 120px); }
@media (min-width: 768px) {
  .founders__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 110px); align-items: start; }
  .founder:nth-child(2) { margin-top: clamp(80px, 12vw, 200px); }
}
.founder { display: grid; gap: clamp(24px, 3vw, 34px); align-content: start; }
/* The founder crops are 440 × 500: shown at their own ratio and never wider than 400px. */
.founder__media { aspect-ratio: 22 / 25; width: 100%; max-width: 400px; }
.founder__media img { transition: filter 0.6s var(--ease), transform 1.6s var(--ease); }
.founder:hover .founder__media img { transform: scale(1.03); }
.founder__body { display: grid; gap: 18px; justify-items: start; max-width: 32rem; }
.founder__meta { font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-text); }
.founder__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 1.5rem + 2.6vw, 4.2rem); line-height: 0.98; letter-spacing: -0.012em; }
.founder__name em { font-style: italic; color: var(--accent-text); }
.founder__bio { color: var(--muted); }
.founder__quote { display: grid; gap: 14px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); width: 100%; }
.founder__lead { color: var(--muted); font-style: italic; font-size: 1.02rem; }
.founder__line { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.6rem); line-height: 1.1; color: var(--fg); text-wrap: balance; }
.founder__line em { font-style: italic; color: var(--accent-text); }
.founder__more { color: var(--muted); font-size: 1.02rem; }

/* Founder Series link card */
.episode { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: center; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line); text-decoration: none; transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease); }
.episode:hover, .episode:focus-visible { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 6%, transparent); }
.episode__img { display: block; width: 72px; aspect-ratio: 9 / 16; overflow: hidden; background: #000; }
.episode__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.episode:hover .episode__img img { transform: scale(1.06); }
.episode__txt { display: grid; gap: 8px; min-width: 0; }
.episode__k { font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); }
.episode__t { font-family: var(--f-display); font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.4rem); line-height: 1.15; color: var(--fg); }
.episode__go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.episode__go .i-arrow { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.episode:hover .episode__go .i-arrow { transform: translateX(4px); }

.founders__foot { margin-top: clamp(72px, 9vw, 140px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); display: grid; gap: 26px; }
.founders__foot > p { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.5rem); line-height: 1.15; max-width: 30ch; text-wrap: balance; }
.founders__foot > p em { font-style: italic; color: var(--accent-text); }
@media (min-width: 1024px) {
  .founders__foot { grid-template-columns: 1fr auto; align-items: end; column-gap: 60px; }
}
