/* Our Story — "Timeline". The name pulls apart into its meaning, a rail draws through the years,
   and the four values replace one another in place. Scroll drives all three; --p is 0–1 progress. */
.page-story main { margin-top: calc(-1 * var(--header-height)); overflow-x: clip; }
.page-story h2 > span { display: inline-block; }
.page-story h2 .accent { color: var(--accent); }

/* 1. Name split */
.name-split { --p: 0; position: relative; height: 230vh; background: radial-gradient(ellipse at 50% 45%, #4a3325 0%, #1a1411 58%, var(--ink) 100%); }
.name-split__stage { position: sticky; top: 0; display: grid; place-content: center; justify-items: center; height: 100vh; height: 100svh; padding: var(--header-height) 24px 40px; overflow: hidden; text-align: center; }
.name-split__words { display: flex; align-items: baseline; justify-content: center; margin: 0; font-size: clamp(54px, 10vw, 170px); line-height: .9; white-space: nowrap; }
.nw { display: inline-block; will-change: transform; }
.nw--space { transform-origin: right center; transform: translate(calc(var(--p) * -5vw), calc(var(--p) * -14vh)) scale(calc(1 - var(--p) * .22)); }
.nw--arabica { color: var(--accent); transform-origin: left center; transform: translate(calc(var(--p) * 5vw), calc(var(--p) * 14vh)) scale(calc(1 - var(--p) * .22)); }
.nw-dash { display: inline-block; color: var(--cream-soft); opacity: calc(1 - var(--p) * 2.2); transform: scaleX(calc(1 - var(--p))); }
.nd { position: absolute; max-width: 30ch; margin: 0; color: var(--cream-soft); font-size: clamp(14px, 1.3vw, 18px); text-align: left; opacity: clamp(0, (var(--p) - .3) * 3, 1); }
.nd strong { color: var(--cream); }
.nd--space { left: 8vw; top: 17vh; transform: translateY(calc((1 - var(--p)) * 20px)); }
.nd--arabica { right: 8vw; bottom: 16vh; text-align: right; transform: translateY(calc((1 - var(--p)) * -20px)); }
.name-split__tagline { position: absolute; left: 0; right: 0; bottom: 9vh; margin: 0; font: 600 clamp(18px, 2vw, 28px) var(--display); letter-spacing: .02em; opacity: clamp(0, (var(--p) - .62) * 3.5, 1); }
.name-split__tagline span { color: var(--accent); }
.name-split .eyebrow { position: absolute; top: calc(var(--header-height) + 24px); left: 0; right: 0; opacity: calc(1 - var(--p) * 1.6); }
.name-split__cue { position: absolute; bottom: 4vh; left: 50%; translate: -50% 0; font-size: 12px; opacity: calc(1 - var(--p) * 3); }
.no-js .name-split, .reduce-scrub .name-split { --p: 1; height: auto; }
.no-js .name-split__stage, .reduce-scrub .name-split__stage { position: relative; min-height: 100vh; }

/* 2. Founder */
.founder { padding: clamp(90px, 10vw, 150px) 0; background: var(--ink); }
.founder__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.founder h2 { font-size: clamp(48px, 6vw, 94px); }
.founder__lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }
.founder__copy > p:not(.eyebrow):not(.founder__lead) { max-width: 52ch; color: var(--cream-soft); }
.founder__photo { margin: 0; }
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 14px 14px; }
.founder__photo figcaption { margin-top: 12px; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.founder__roles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 100px); border-top: 1px solid #ffffff1f; }
.founder__roles > div { padding: 26px 26px 0 0; }
.founder__roles > div + div { padding-left: 26px; border-left: 1px solid #ffffff14; }
.founder__roles h3 { color: var(--accent); font-size: 20px; }
.founder__roles ul { margin: 0; padding: 0; list-style: none; color: var(--cream-soft); font-size: 14px; }
.founder__roles li { padding: 6px 0; border-bottom: 1px dashed #ffffff14; }

/* 3. Timeline: the rail fills with scroll; dots light when the fill passes them. */
.timeline { --p: 0; padding: clamp(90px, 10vw, 150px) 0; background: #17120f; }
.timeline__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.timeline__head { position: sticky; top: calc(var(--header-height) + 30px); }
.timeline__head h2 { font-size: clamp(48px, 6vw, 94px); }
.timeline__track { position: relative; padding-left: 44px; }
.tl-rail { position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: #ffffff1a; }
.tl-fill { position: absolute; inset: 0; background: var(--accent); transform: scaleY(var(--p)); transform-origin: top; }
.tl-list { margin: 0; padding: 0; list-style: none; }
.tl-item { position: relative; padding: 0 0 clamp(56px, 7vw, 96px); opacity: .38; transform: translateX(-6px); transition: opacity 500ms ease, transform 600ms var(--ease); }
.tl-item.is-reached { opacity: 1; transform: none; }
.tl-dot { position: absolute; left: -44px; top: 8px; width: 18px; height: 18px; border: 2px solid #ffffff40; border-radius: 50%; background: #17120f; transition: border-color 300ms ease, background-color 300ms ease, transform 400ms var(--ease); }
.tl-item.is-reached .tl-dot { border-color: var(--accent); background: var(--accent); transform: scale(1.15); }
.tl-year { margin-bottom: 8px; color: var(--accent); font: 700 clamp(38px, 4.5vw, 64px)/1 var(--display); letter-spacing: -.03em; }
.tl-item h3 { margin-bottom: 10px; }
.tl-item p:last-child { max-width: 46ch; margin: 0; color: var(--cream-soft); }
.no-js .tl-item, .reduce-scrub .tl-item { opacity: 1; transform: none; }
.no-js .tl-fill, .reduce-scrub .tl-fill { transform: none; }

/* 4. Values: one word at a time, blurred and tracked out as it leaves. */
.values { position: relative; height: 340vh; background: var(--ink); }
.values__stage { position: sticky; top: 0; display: grid; place-content: center; justify-items: center; height: 100vh; height: 100svh; padding: 0 24px; text-align: center; }
.values__words { display: grid; margin: 0; padding: 0; list-style: none; }
.value-word { grid-area: 1 / 1; font: 700 clamp(64px, 13vw, 220px)/.9 var(--display); letter-spacing: -.05em; text-transform: uppercase; opacity: 0; filter: blur(14px); transform: scale(.94); transition: opacity 520ms ease, filter 620ms var(--ease), transform 720ms var(--ease), letter-spacing 720ms var(--ease); }
.value-word.is-active { opacity: 1; filter: none; transform: none; }
.value-word.is-past { letter-spacing: .04em; transform: scale(1.04); }
.value-index { display: block; margin-bottom: 14px; color: var(--accent); font: 600 12px var(--body); letter-spacing: .14em; }
.values__belief { max-width: 42ch; margin: 32px 0 0; color: var(--cream-soft); font-size: clamp(15px, 1.4vw, 19px); }
.values__count { position: absolute; bottom: 6vh; color: var(--muted); font-size: 11px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.values__count span { color: var(--accent); }
.no-js .values, .reduce-scrub .values { height: auto; padding: 100px 0; }
.no-js .values__stage, .reduce-scrub .values__stage { position: static; height: auto; }
.no-js .values__words, .reduce-scrub .values__words { gap: 8px; }
.no-js .value-word, .reduce-scrub .value-word { grid-area: auto; opacity: 1; filter: none; transform: none; font-size: clamp(48px, 8vw, 120px); }
.no-js .values__count, .reduce-scrub .values__count { display: none; }

/* 5. Close */
.story-close { padding: clamp(90px, 10vw, 140px) 0; background: var(--roast); }
.story-close__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.story-close h2 { margin: 0; font-size: clamp(56px, 8vw, 128px); line-height: .86; }
.story-close p { color: var(--cream-soft); font-size: 17px; }

@media (max-width: 800px) {
  .founder__grid, .timeline__grid, .story-close__inner { grid-template-columns: 1fr; }
  .founder__roles { grid-template-columns: 1fr; }
  .founder__roles > div + div { padding-left: 0; border-left: 0; }
  .timeline__head { position: static; }
  .name-split__words { flex-direction: column; align-items: center; font-size: 19vw; line-height: .95; }
  .nw-dash { display: none; }
  .nd { max-width: 24ch; }
  .nd--space { left: 24px; top: 15vh; }
  .nd--arabica { right: 24px; bottom: 17vh; }
  .nw--space { transform-origin: center; transform: translateY(calc(var(--p) * -12vh)); }
  .nw--arabica { transform-origin: center; transform: translateY(calc(var(--p) * 12vh)); }
}
