/* Thesis page: painted head, scroll-written statement, pinned "how we invest",
   and the two halves of where we enter, each with a line figure that draws
   itself (a sprout for zero to one, a branching network for one to ten).
   Builds on paint.css (shared) and pages.css (.stages / .stage). No figures
   or counts appear on this page by design. */

/* Full-bleed painted hero, like the home frame: the night expressway under a
   charcoal wash, paper type bottom-left, a slow zoom and a scroll parallax. */
.th-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night, #1e1c1b);
  color: var(--paper);
}
.th-hero__art { position: absolute; inset: -6% 0 -6% 0; z-index: -2; margin: 0; transform: translate3d(0, var(--hy, 0px), 0); }
.th-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: th-zoom 24s var(--ease-out, ease-out) both; }
@keyframes th-zoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.th-hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 28, 27, 0.6) 0%, rgba(30, 28, 27, 0.12) 34%, rgba(30, 28, 27, 0.4) 64%, rgba(30, 28, 27, 0.92) 100%),
    linear-gradient(90deg, rgba(30, 28, 27, 0.72) 0%, rgba(30, 28, 27, 0.1) 62%);
}
.th-hero__inner { padding-block: clamp(140px, 22vh, 220px) clamp(48px, 9vh, 96px); }
.th-hero__kicker {
  font-family: var(--face-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 14px;
}
.th-hero__kicker::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
.th-hero__title {
  margin-top: 22px;
  max-width: 14ch;
  font-size: clamp(2.8rem, 1.4rem + 5.2vw, 6.4rem);
  line-height: 1.02;
  color: var(--paper);
}
.th-hero__title em { color: var(--accent); }
.th-hero__lede { margin-top: 26px; max-width: 42ch; font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem); color: rgba(244, 241, 233, 0.92); }
.th-hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  font-family: var(--face-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
}
.th-hero__cue::after { content: ""; width: 1px; height: 34px; background: currentColor; transform-origin: top; animation: th-cue 2.4s ease-in-out infinite; }
@keyframes th-cue { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.th-hero__cue:hover, .th-hero__cue:focus-visible { color: var(--accent); }

/* The statement gets the whole screen: one sentence, set large, room around it. */
.th-statement {
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding-block: clamp(96px, 14vw, 200px);
}
.th-statement__text {
  max-width: 26ch;
  margin-inline: auto;
  font-family: var(--face-text);
  font-stretch: normal;
  font-weight: 300;
  font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ink-warm);
}

.th-stages { overflow-x: clip; padding-top: clamp(24px, 3vw, 48px); }
.th-stages__title { max-width: 20ch; margin-bottom: clamp(32px, 4vw, 56px); }
.halves { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); }
.half { display: grid; grid-template-rows: auto 1fr; gap: 22px; }
.half__figure { position: relative; }
.half__art { --ratio: 16 / 10; }
.half__draw {
  position: absolute;
  right: 6%;
  bottom: 4%;
  width: 46%;
  max-width: 260px;
  filter: drop-shadow(0 1px 0 rgba(244, 241, 233, 0.9));
}
.half__kicker {
  font-family: var(--face-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 14px;
}
.half:first-child .half__kicker { color: var(--red); }
.stages--half { grid-template-columns: 1fr; }
.stages--half .stage + .stage { padding-left: 0; border-left: 0; } /* one column: every stage starts on the same left edge */

/* No red rules on this page: the core stages are marked by their tag alone. */
.th-stages .stage--core { background: none; }
.th-stages .stage { border-top: 1px solid var(--line, rgba(46, 43, 41, 0.14)); }

/* Hover or focus a half: the faded card gives way to the full-colour painting,
   the frame lifts a little and the line figure redraws. */
.half { outline: none; }
.half__art img { transition: transform 1600ms cubic-bezier(0.2, 0.75, 0.1, 1), opacity 700ms ease; }
.half__art .half__full { opacity: 0; }
.half:hover .half__full, .half:focus-visible .half__full { opacity: 1; }
.half:hover .half__art.is-in img, .half:focus-visible .half__art.is-in img,
.half:hover .half__art img, .half:focus-visible .half__art img { --zoom: 1.05; }
.half:hover .half__draw, .half:focus-visible .half__draw { animation: half-redraw 1.4s var(--ease-out, ease-out); }
@keyframes half-redraw { from { --p: 0; } to { --p: 1; } }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.half:focus-visible { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

/* Converge: on scroll the halves slide in from either side and meet, while a
   thin line draws across the gap between them. --c runs 0 to 1. */
.halves[data-converge] { --c: 1; position: relative; }
.paint-motion .halves[data-converge] .half--left { transform: translate3d(calc((1 - var(--c)) * -12vw), 0, 0) rotate(calc((1 - var(--c)) * -2deg)); }
.paint-motion .halves[data-converge] .half--right { transform: translate3d(calc((1 - var(--c)) * 12vw), 0, 0) rotate(calc((1 - var(--c)) * 2deg)); }
.converge__line { grid-column: 1 / -1; position: relative; height: 1px; margin-top: clamp(16px, 3vw, 40px); }
.converge__line span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--ink) 18%, var(--accent) 50%, var(--ink) 82%, transparent);
  transform: scaleX(var(--c, 1));
  opacity: 0.5;
}

@media (max-width: 900px) {
  .halves { grid-template-columns: 1fr; }
  .paint-motion .halves[data-converge] .half--left,
  .paint-motion .halves[data-converge] .half--right { transform: none; }
  .th-hero__title { max-width: 12ch; }
}
@media (prefers-reduced-motion: reduce) {
  .th-hero__art img, .th-hero__cue::after { animation: none; }
  .th-hero__art { transform: none; }
  .halves[data-converge] .half--left, .halves[data-converge] .half--right { transform: none !important; }
  .half:hover .half__draw, .half:focus-visible .half__draw { animation: none; }
}
