/* ============================================================
   HOME — hero, the fork, both paths, statement, timeline
   ============================================================ */

/* the page colour of each path, kept apart from the tone the timeline borrows below */
html { --page: var(--ink); }
html[data-path="3d"] { --page: var(--cream); }

/* ---------- 3D PATH THEME (cream) ---------- */
html[data-path="3d"] {
  --bg: var(--cream);
  --fg: #211c1a;
  --fg-dim: rgba(33, 28, 26, 0.6);
  --fg-faint: rgba(33, 28, 26, 0.14);
  --accent: var(--maroon);
  --line: rgba(33, 28, 26, 0.14);
  color-scheme: light;
}
html[data-path="3d"] [data-branch="animation"] { display: none; }
html[data-path="3d"] [data-branch="3d"] { display: block; }

/* the colour wipe between paths (same-page View Transition) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
html.vt body { transition: none; }
.model.is-entering { transition: none; }

.thin { font-weight: 200; }

.textlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease-out), color 0.3s;
}
.textlink i { font-style: normal; transition: transform 0.5s var(--ease-out); }
.textlink:hover { color: var(--accent); }
.textlink:hover i { transform: translateX(5px); }
.more { display: flex; justify-content: flex-end; margin-top: 28px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  overflow: clip;
}
.hero::before {
  content: ""; position: absolute; left: 50%; bottom: -40vmax;
  width: 110vmax; height: 70vmax; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  pointer-events: none;
}
.hero__frame { position: relative; text-align: center; }
.hero__title {
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: 0.24em;
  font-size: clamp(64px, 11.5vw, 200px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-align: left;
}
.hero__title > span { display: block; overflow: hidden; padding: 0.04em 0.02em; }
.hero__title > span > span { display: block; }
.hero__iam { grid-column: 1; grid-row: 1; font-weight: 150; letter-spacing: -0.01em; }
.hero__first { grid-column: 2; grid-row: 1; color: var(--accent); }
.hero__last { grid-column: 2; grid-row: 2; }
.hero__tag {
  margin-top: clamp(26px, 3vw, 44px);
  font-size: clamp(15px, 1.4vw, 22px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
}
.hero__cue {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-dim);
}
.hero__cue i { position: relative; width: 1px; height: 46px; background: var(--fg-faint); overflow: hidden; }
.hero__cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--accent);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

@media (max-width: 640px) {
  .hero__title { grid-template-columns: auto; font-size: 21vw; }
  .hero__iam { grid-column: 1; grid-row: 1; font-size: 0.42em; padding-bottom: 0.1em; }
  .hero__first { grid-column: 1; grid-row: 2; }
  .hero__last { grid-column: 1; grid-row: 3; }
  .hero__tag span { display: inline-block; }
}

/* ============ INTRO (bio + counters) ============ */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: clamp(40px, 7vw, 120px);
  padding-block: clamp(80px, 12vw, 180px);
}
.intro__side { display: flex; flex-direction: column; gap: 40px; }
.stats { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 40px); }
.stat { display: flex; flex-direction: column-reverse; gap: 6px; }
.stat dd { display: flex; align-items: flex-start; font-size: clamp(68px, 8vw, 132px); font-weight: 800; line-height: 0.85; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat sup { font-size: 0.42em; color: var(--accent); margin-left: 0.04em; line-height: 1; }
.stat dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-dim); }
.intro__bio { display: flex; flex-direction: column; gap: 0.9em; font-size: clamp(22px, 2.55vw, 42px); }
.bio { font-weight: 300; line-height: 1.2; letter-spacing: -0.012em; }
.bio--lead { font-weight: 500; }
.bio em { font-style: normal; color: var(--accent); font-weight: 700; }
.bio mark { background: none; color: var(--accent); font-weight: 700; }
.bio strong { font-weight: 600; }
.bio--quiet { font-size: 0.62em; line-height: 1.5; color: var(--fg-dim); max-width: 36ch; margin-top: 0.6em; }
.line { padding-bottom: 0.06em; } /* room for descenders inside SplitText masks */

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; }
  .stats { flex-direction: row; gap: 48px; }
}

/* ============ THE FORK ============ */
.pick {
  min-height: 78svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  padding: 60px var(--gutter) clamp(100px, 12vw, 160px);
  text-align: center;
}
.pick__hint { font-size: clamp(15px, 1.3vw, 20px); font-weight: 300; color: var(--fg-dim); letter-spacing: 0.02em; }
.pick__options {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(20px, 4vw, 72px); width: 100%; max-width: var(--max);
}
.pick__opt:first-child { justify-self: end; }
.pick__opt:last-child { justify-self: start; }
.pick__or { font-size: clamp(16px, 1.6vw, 24px); font-weight: 200; font-style: italic; color: var(--fg-dim); }
.pick__opt { display: flex; flex-direction: column; align-items: center; gap: 14px; --c: var(--red); }
.pick__opt[data-pick="3d"] { --c: var(--cream); }
html[data-path="3d"] .pick__opt[data-pick="3d"] { --c: var(--maroon); }
html[data-path="3d"] .pick__opt[data-pick="animation"] { --c: var(--red); }
.pick__label {
  position: relative;
  font-size: clamp(44px, 6.4vw, 116px);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: font-weight 0.7s var(--ease-out), color 0.5s, letter-spacing 0.7s var(--ease-out);
}
.pick__label::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 2px;
  background: var(--c);
  transform: scaleX(0.18); transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}
.pick__sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-dim); }
.pick__opt:hover .pick__label,
.pick__opt:focus-visible .pick__label,
.pick__opt[aria-current="true"] .pick__label { font-weight: 750; color: var(--c); letter-spacing: -0.03em; }
.pick__opt:hover .pick__label::after,
.pick__opt:focus-visible .pick__label::after,
.pick__opt[aria-current="true"] .pick__label::after { transform: scaleX(1); }
@media (max-width: 1100px) {
  .pick__options { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
  .pick__opt:first-child, .pick__opt:last-child { justify-self: center; }
}

/* ============ HELLO (both paths) ============ */
.hello { padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(100px, 13vw, 200px); }
.hello__head { margin-bottom: clamp(36px, 5vw, 72px); }
.hello__title { display: flex; flex-direction: column; margin-top: 22px; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.03em; }
.hello__hi { font-size: clamp(64px, 10vw, 176px); font-weight: 800; }
.hello__iam { font-size: clamp(42px, 6.6vw, 116px); padding-left: clamp(0px, 9vw, 160px); }
.hello__iam b { font-weight: 800; color: var(--accent); }

/* Animator mosaic: 2 + 2 wide frames, then 4 vertical reels */
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.reel { position: relative; display: block; overflow: hidden; color: #fff; isolation: isolate; }
.reel--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.reel--tall { aspect-ratio: 9 / 14; }
.reel .media { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.reel::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
  opacity: 0; transition: opacity 0.6s;
}
.reel__title {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; padding: 16px; text-align: center;
  font-size: clamp(13px, 1.45vw, 24px); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: transform 0.8s var(--ease-out), opacity 0.5s;
}
.reel__cta {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s, transform 0.7s var(--ease-out);
}
.reel__cta i { font-style: normal; transition: transform 0.5s var(--ease-out); }
.reel:hover .media, .reel:focus-visible .media { transform: scale(1.045); }
.reel:hover::after, .reel:focus-visible::after { opacity: 1; }
.reel:hover .reel__title, .reel:focus-visible .reel__title { opacity: 0; transform: translateY(-14px); }
.reel:hover .reel__cta, .reel:focus-visible .reel__cta { opacity: 1; transform: none; }
.reel:hover .reel__cta i { transform: translateX(4px); }
@media (hover: none) {
  /* no hover on phones: the title sits at the bottom and the link is always visible */
  .reel::after { opacity: 1; }
  .reel__title { place-items: end start; padding: 14px 14px 38px; font-size: 13px; color: #fff; }
  .reel__cta { opacity: 0.85; transform: none; left: 14px; bottom: 14px; font-size: 10px; }
}
@media (max-width: 760px) {
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Motion graphics: two wide loops + six squares, all playing, hover lifts to 1.2x */
.motion { padding-bottom: clamp(100px, 13vw, 200px); }
.motion__head { margin-bottom: clamp(36px, 5vw, 72px); }
.motion__title {
  display: flex; flex-direction: column; align-items: flex-end;
  margin-top: 22px; text-transform: uppercase; text-align: right;
  font-size: clamp(38px, 6.4vw, 112px); line-height: 0.95; letter-spacing: -0.03em;
}
.motion__title b { font-weight: 800; color: var(--accent); }
.loops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.loop { position: relative; aspect-ratio: 1; }
.loop--wide { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.loop .media {
  position: absolute; inset: 0;
  transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
}
.loop:hover { z-index: 3; }
.loop:hover .media { transform: scale(1.2); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7); }
.loop--wide:hover .media { transform: scale(1.04); }
.loop:nth-child(3) .media, .loop:nth-child(6) .media { transform-origin: left center; }
.loop:nth-child(5) .media, .loop:nth-child(8) .media { transform-origin: right center; }
@media (max-width: 760px) {
  .loops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop--wide { aspect-ratio: 16 / 9; }
  .loop .media { transform-origin: center !important; }
}

/* 3D models: cream cards, the model loop floats on a soft shadow */
.models { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(10px, 1.2vw, 18px); perspective: 1400px; }
.model {
  position: relative;
  aspect-ratio: 1 / 0.95;
  border-radius: var(--radius);
  background: var(--cream-card);
  overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)) scale(var(--zoom, 1));
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
  box-shadow: 0 1px 0 rgba(33, 28, 26, 0.04);
}
.model:hover { --lift: -6px; box-shadow: 0 30px 60px -30px rgba(91, 26, 24, 0.35); }
.model--hero { aspect-ratio: 21 / 8.5; }
/* the Obsero crowd: the bar takes the video's own shape, so the whole frame fills it, nothing cropped */
.model--wide { aspect-ratio: 1920 / 1000; }
.model.model--wide .model__stage { inset: 0; }
.model.model--wide .model__stage::after { display: none; }
.model.model--wide .media { inset: 0; }
.model--wide figcaption { padding: 7px 14px; border-radius: 99px; background: color-mix(in srgb, var(--cream-card) 86%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.model__stage { position: absolute; inset: 0 0 52px; }
.model__stage::after {
  content: ""; position: absolute; left: 50%; bottom: 4%;
  width: 46%; height: 9%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(33, 28, 26, 0.16), transparent);
  pointer-events: none;
}
.model .media { position: absolute; inset: 6% 8% 8%; background: transparent; --ph-ink: rgba(33, 28, 26, 0.35); }
.model .media > video { object-fit: contain; }
.model .media__ph { border-radius: 16px; }
.model figcaption {
  position: absolute; left: clamp(18px, 2vw, 30px); bottom: clamp(16px, 1.6vw, 24px);
  font-size: clamp(15px, 1.25vw, 20px); font-weight: 500; color: var(--fg);
}
.model figcaption span { margin-left: 6px; font-size: 0.62em; font-weight: 600; letter-spacing: 0.18em; color: var(--accent); vertical-align: 0.2em; }

/* main showcase: the banner, and the model turning on a cream band beneath it */
.model--feature { aspect-ratio: auto; display: flex; flex-direction: column; }
.model--feature:hover { --lift: 0px; }
.model__banner { position: relative; aspect-ratio: 16 / 9; background: #2a1d15; }
.model__banner .media { position: absolute; inset: 0; }
.model--feature .model__stage { position: relative; inset: auto; aspect-ratio: 21 / 4.6; }
.model--feature .model__stage .media { inset: 3% 20% 14%; }
/* a still frame (browsers without transparent video) sits whole on the card, like the loop */
.model .media > img { object-fit: contain; }
.model__banner .media > img { object-fit: cover; }

/* the smaller models: one line; the one you point at grows to 1.3×, above its neighbours */
.models__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, calc((100% - 4 * clamp(10px, 1.2vw, 18px)) / 5))); justify-content: center; gap: inherit; position: relative; z-index: 2; }
.model--small { aspect-ratio: 1 / 1.08; z-index: 1; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), z-index 0s 0.6s; }
.model--small .model__stage { inset: 0 0 34px; }
.model--small .media { inset: 8% 8% 6%; }
.model--small figcaption { left: 14px; bottom: 12px; font-size: clamp(12px, 0.95vw, 15px); }
.model--small:hover, .model--small.is-zoomed { --zoom: 1.3; --lift: 0px; z-index: 5; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), z-index 0s; box-shadow: 0 40px 70px -30px rgba(91, 26, 24, 0.45); }
.model--small:first-child { transform-origin: left center; }
.model--small:last-child { transform-origin: right center; }

@media (max-width: 900px) {
  .model--hero { aspect-ratio: 4 / 3; }
  .model--feature .model__stage { aspect-ratio: 16 / 9; }
  .model--feature .model__stage .media { inset: 4% 6% 18%; }
  /* touch: the row scrolls sideways; tap a model to bring it forward */
  .models__row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 26px var(--gutter);
    margin-block: -26px; gap: 10px;
  }
  .models__row::-webkit-scrollbar { display: none; }
  .model--small { flex: 0 0 min(42%, 220px); scroll-snap-align: center; }
  .model--small:hover { --zoom: 1; box-shadow: 0 1px 0 rgba(33, 28, 26, 0.04); }
  .model--small.is-zoomed { --zoom: 1.12; }
  .model--small:first-child, .model--small:last-child { transform-origin: center; }
}

/* ============ ARTIST STATEMENT ============ */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  padding-block: clamp(80px, 10vw, 160px);
}
.statement__portrait { position: relative; padding: 0 9% 9% 4%; }
/* the old website's framing: a 3:4 frame, 320 px wide (260 on phones), the photo centred, no zoom */
.bubble { position: relative; width: min(100%, 320px); margin-left: auto; aspect-ratio: 3 / 4; isolation: isolate; }
.bubble .media { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.bubble .media > img { object-fit: cover; object-position: 50% 50%; }
/* the speech-bubble tail: the portrait is literally "speaking" */
.bubble::after {
  content: ""; position: absolute; top: -9%; right: -14%;
  width: 34%; aspect-ratio: 1;
  background: var(--accent);
  clip-path: polygon(0 100%, 0 28%, 100% 50%);
  z-index: -1;
}
.bubble__ring {
  position: absolute; left: -2%; bottom: 0;
  width: 26%; aspect-ratio: 1;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  opacity: 0.8;
}
.statement__text { display: flex; flex-direction: column; gap: 26px; }
.statement__head { font-size: clamp(30px, 3.7vw, 60px); font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; }
.statement__head em { font-weight: 200; font-style: italic; color: var(--accent); }
.statement__body { font-size: clamp(17px, 1.35vw, 22px); line-height: 1.6; max-width: 46ch; }
.statement__body--soft { color: var(--fg-dim); font-style: italic; font-weight: 300; }
.statement__body .word { transition: none; }
@media (max-width: 820px) {
  .statement { grid-template-columns: 1fr; }
  .statement__portrait { max-width: 420px; }
  .bubble { margin-inline: auto; width: min(100%, 260px); }
}

/* ============ TIMELINE JOURNEY ============ */
.journey { position: relative; padding-top: clamp(80px, 10vw, 160px); }
.journey__intro { display: grid; gap: clamp(28px, 4vw, 56px); margin-bottom: clamp(30px, 5vw, 80px); }
/* the statement: two quiet lines on an accent rule, read like an epigraph */
.journey__quote {
  max-width: 34ch;
  padding-left: clamp(16px, 1.6vw, 24px);
  border-left: 1px solid var(--accent);
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 300; line-height: 1.3; letter-spacing: -0.01em;
}
.journey__quote span { display: block; }
.journey__quote span + span { font-style: italic; font-weight: 200; color: var(--fg-dim); }
.journey__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px 26px; }
.journey__title h2 { font-size: clamp(30px, 3.4vw, 56px); font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.journey__how { max-width: 46ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: var(--fg-dim); }

/* company and client names: small tracked capitals, like a name in film credits */
.co {
  font-size: 0.74em; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg);
  transition: color 0.8s var(--ease-out) 0.2s;
}
.log__list li.is-lit .co { color: var(--accent); }

.years { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
/* keep clear of the year bar on the right */
@media (min-width: 1024px) { .years { padding-right: calc(var(--gutter) + 72px); } }

/* one year = left column that stays in view (year, what it was about, credits)
   + right column with the year's frames and the details */
.year {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(32px, 5vw, 96px);
  padding-block: clamp(80px, 10vw, 150px);
}
/* the divider draws itself as you arrive */
.year::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px;
  background: var(--fg); opacity: 0.35;
  transform: scaleX(var(--draw, 1)); transform-origin: left;
}
.year:first-child::before { display: none; }

.year__side {
  position: sticky; top: calc(var(--nav-h) + 5vh);
  align-self: start;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(18px, 1.8vw, 26px);
}
.year__num {
  display: flex; align-items: center; gap: 18px;
  font-size: clamp(64px, 8.4vw, 150px);
  font-weight: 800; line-height: 0.8; letter-spacing: -0.04em;
  color: var(--accent);
}
.year__num span { display: block; }
.year__num::after { content: ""; width: clamp(26px, 3.2vw, 56px); height: 2px; background: var(--accent); flex: none; }
.year__head { font-size: clamp(20px, 1.9vw, 30px); font-weight: 300; line-height: 1.22; letter-spacing: -0.01em; max-width: 17ch; }

.year__who { width: 100%; max-width: 300px; padding-top: 16px; border-top: 1px solid var(--line); }
.year__who p,
.log__title,
.year__milestone,
.year__now span {
  font-size: 10.5px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-dim);
}
.year__who p { margin-bottom: 12px; }
.year__who ul { display: flex; flex-direction: column; gap: 7px; }
.year__who li { font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

.year__main { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 60px); padding-top: 8px; }

/* frames: the spaces for this year's videos and images, captioned with what they show */
.frames { width: 100%; }
.frames__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.frames__row .media { aspect-ratio: 1; }
.frames--one .frames__row { grid-template-columns: 1fr; }
.frames--two .frames__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.frames--two .media { aspect-ratio: 4 / 3; }
.frames--one .media { aspect-ratio: 21 / 9; }
.frames__cap {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 20px;
  margin-top: 14px;
  font-size: 14px; color: var(--fg-dim);
}
.frames__cap b { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--fg); }
.frames__cap b::before { content: ""; width: 16px; height: 1px; background: var(--accent); flex: none; }
.frames__cap span { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; }

/* the details, in two clearly separate groups */
.log { display: flex; flex-direction: column; gap: clamp(30px, 3vw, 44px); }
.log__group { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 10px clamp(20px, 3vw, 48px); }
.log__title { align-self: start; display: flex; align-items: center; gap: 10px; padding-top: 0.8em; letter-spacing: 0.2em; }
.log__title::before { content: ""; width: 10px; height: 1px; background: var(--accent); flex: none; }
.log__group[data-group="growth"] .log__title::before { background: var(--rose); }
html[data-path="3d"] .log__group[data-group="growth"] .log__title::before { background: #a8456b; }
.log__list li {
  font-size: clamp(17px, 1.35vw, 21px); font-weight: 300; line-height: 1.5;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.log__list li:first-child { border-top: 0; padding-top: 0; }
.log__group[data-group="growth"] .log__list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; }

.tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  --k: var(--fg-dim);
  color: var(--k);
}
.tag[data-kind="personal"] { --k: var(--rose); }
.tag[data-kind="learning"] { --k: var(--teal); }
html[data-path="3d"] .tag[data-kind="personal"] { --k: #a8456b; }
html[data-path="3d"] .tag[data-kind="learning"] { --k: #2c7d7a; }

/* milestone years (first animation, first 3D short) sit in the centre */
.year--c { grid-template-columns: 1fr; justify-items: center; }
.year--c .year__side { position: relative; top: auto; align-items: center; margin-bottom: clamp(30px, 3.4vw, 54px); }
.year--c .year__num { flex-direction: column; gap: 16px; }
.year--c .year__num::after { width: 2px; height: clamp(36px, 4.4vw, 64px); }
.year--c .year__main { width: 100%; align-items: center; padding-top: 0; }
.year__head--big {
  max-width: none; text-align: center;
  font-size: clamp(30px, 4.6vw, 76px); font-weight: 200; line-height: 1.04;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.year--c .year__who { max-width: none; padding-top: 0; border-top: 0; text-align: center; margin-top: calc(clamp(36px, 4vw, 60px) * -0.5); }
.year--c .year__who ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.year--c .year__who li + li::before { content: "/"; margin: 0 14px; color: var(--fg-dim); font-weight: 300; }
.year--c .log { width: 100%; max-width: 940px; }
.year__now {
  width: 100%; max-width: 940px;
  display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 10px clamp(20px, 3vw, 48px);
  padding-top: 22px; border-top: 1px solid var(--fg);
  font-size: clamp(18px, 1.6vw, 25px); font-weight: 500; line-height: 1.4;
}
.year__now span { color: var(--accent); padding-top: 0.6em; }

@media (max-width: 860px) {
  .year { grid-template-columns: 1fr; row-gap: 30px; }
  .year__side { position: relative; top: auto; gap: 16px; }
  .year__num { font-size: clamp(64px, 21vw, 120px); }
  .year__head { max-width: none; }
  .year__who { max-width: none; }
  .year__who ul { flex-direction: row; flex-wrap: wrap; gap: 6px 0; }
  .year__who li + li::before { content: "/"; margin: 0 10px; color: var(--fg-dim); font-weight: 300; }
  .year--c .year__who { margin-top: 0; }
  .year__main { gap: 34px; padding-top: 0; }
  .log__group, .year__now { grid-template-columns: 1fr; }
  .log__title, .year__now span { padding-top: 0; }
  .log__group[data-group="growth"] .log__list li { grid-template-columns: 1fr; gap: 4px; }
  .frames--one .media { aspect-ratio: 16 / 10; }
  .frames__cap { font-size: 13px; }
}

/* year bar: one tick per year, shows where you are and lets you jump */
.yearbar {
  position: fixed; z-index: 70;
  right: clamp(14px, 1.8vw, 30px); top: 50%;
  transform: translate(12px, -50%);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s, transform 0.6s var(--ease-out), visibility 0s linear 0.5s;
}
.yearbar.is-on { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.yearbar ol { position: relative; display: flex; flex-direction: column; gap: 9px; padding-right: 10px; }
.yearbar a {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
  color: var(--fg-dim); opacity: 0.55;
  transition: color 0.3s, opacity 0.3s;
}
.yearbar a::after { content: ""; width: 8px; height: 1px; background: currentColor; flex: none; transition: width 0.5s var(--ease-out); }
.yearbar a:hover { opacity: 1; color: var(--fg); }
.yearbar a.is-done { opacity: 0.8; }
.yearbar a.is-active { opacity: 1; color: var(--accent); font-weight: 700; }
.yearbar a.is-active::after { width: 22px; }
.yearbar__track { position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.yearbar__head { position: absolute; inset: 0; background: var(--accent); transform: scaleY(var(--p, 0)); transform-origin: top; }
@media (max-width: 1023px) {
  .yearbar {
    left: 50%; right: auto; top: auto; bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translate(-50%, 12px);
    padding: 10px 16px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid var(--line);
  }
  .yearbar.is-on { transform: translate(-50%, 0); }
  .yearbar ol { flex-direction: row; align-items: center; gap: 9px; padding-right: 0; }
  .yearbar a { font-size: 0; gap: 0; height: 18px; }
  .yearbar a::after { width: 1px; height: 9px; transition: height 0.4s var(--ease-out); }
  .yearbar a.is-active { font-size: 11px; gap: 7px; }
  .yearbar a.is-active::after { width: 1px; height: 16px; }
  .yearbar__track { display: none; }
}

/* ---------- 2023 → 2024: fog, then daybreak ----------
   2023 loses its colour and its red; between 2023 and 2024 the timeline's thread keeps
   going down through the fog until a light rises from below and the fog lifts;
   from 2024 the timeline is in daylight (cream). --q and --p are set while scrolling. */
.fog {
  --bg: #0c0b0a; --fg: rgba(244, 239, 233, 0.8); --fg-dim: rgba(244, 239, 233, 0.42);
  --fg-faint: rgba(244, 239, 233, 0.1); --accent: #8a4b45; --line: rgba(244, 239, 233, 0.08);
  --rose: #7d6a6e; --teal: #5f7473;
  position: relative; isolation: isolate; color: var(--fg);
}
.fog::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to bottom, var(--page) 0, #0c0b0a min(26vh, 240px));
}
/* slow drifting haze */
.fog::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 22% at 22% 38%, rgba(214, 206, 196, 0.06), transparent 70%),
    radial-gradient(46% 26% at 78% 70%, rgba(214, 206, 196, 0.05), transparent 70%);
  opacity: var(--q, 0.6);
  animation: haze 38s ease-in-out infinite alternate;
}
@keyframes haze { to { transform: translate3d(-4%, 2%, 0); } }
.fog .year { padding-top: clamp(150px, 18vh, 230px); }
.fog .year__num { color: transparent; -webkit-text-stroke: 1px var(--accent); }
.fog .year__num::after { opacity: 0.6; }
.fog .frames .media { filter: grayscale(calc(var(--q, 0.6) * 0.62)) brightness(calc(1 - var(--q, 0.6) * 0.2)); }
.fog .log__list li { color: var(--fg); }

.dawn { position: relative; height: 175vh; background: #0c0b0a; }
.dawn__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; contain: paint; }
.dawn__stage > * { position: absolute; pointer-events: none; }
/* in the dark, the wall of old drawings: barely there at first, warmed as the light comes up,
   feathered at every edge so it melts into the dark above and the fog around it */
.dawn__wall {
  inset: -6% -4%;
  background: url("../../media/timeline/passage/gallery-wall.webp") center 38% / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 42%, #000 30%, rgba(0, 0, 0, 0.5) 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 42%, #000 30%, rgba(0, 0, 0, 0.5) 62%, transparent 100%);
  opacity: calc(0.34 + var(--p, 0) * 0.5);
  filter: grayscale(calc(0.7 - var(--p, 0) * 0.6)) sepia(calc(var(--p, 0) * 0.35)) brightness(calc(0.42 + var(--p, 0) * 0.55));
  transform: scale(calc(1.1 - var(--p, 0) * 0.08)) translate3d(0, calc(var(--p, 0) * -2%), 0);
  will-change: transform, opacity, filter;
}
/* the top of the passage carries the dark of 2023 straight down, so there is no edge between them */
.dawn__stage::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, #0c0b0a, rgba(12, 11, 10, 0));
  opacity: calc(1 - var(--p, 0) * 1.4);
}
/* the light: a low sun rising from below the frame, slow at first, then everywhere */
.dawn__light {
  z-index: 2;
  left: 50%; top: 100%; width: 320vmax; height: 320vmax; margin: -160vmax 0 0 -160vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, #f6f1e6 0%, var(--cream) 58%, rgba(235, 231, 220, 0.55) 70%, rgba(235, 231, 220, 0) 100%);
  transform: scale(calc(var(--p, 0) * var(--p, 0) * 1.08));
  will-change: transform;
}
.dawn__fog { inset: -20%; z-index: 1; will-change: transform, opacity; }
.dawn__fog--far {
  background:
    radial-gradient(38% 20% at 30% 40%, rgba(200, 192, 182, 0.12), transparent 72%),
    radial-gradient(44% 24% at 72% 58%, rgba(200, 192, 182, 0.09), transparent 72%);
  opacity: calc(1 - var(--p, 0) * 0.9);
  animation: drift-far 46s ease-in-out infinite alternate;
}
.dawn__fog--near {
  z-index: 3;
  background:
    radial-gradient(52% 22% at 18% 72%, rgba(214, 206, 196, 0.14), transparent 70%),
    radial-gradient(48% 20% at 86% 30%, rgba(214, 206, 196, 0.1), transparent 70%);
  opacity: calc(1 - var(--p, 0) * 1.25);
  transform: translate3d(0, calc(var(--p, 0) * -12%), 0);
  animation: drift-near 31s ease-in-out infinite alternate;
}
@keyframes drift-far { to { translate: 5% -2%; } }
@keyframes drift-near { to { translate: -7% 3%; } }
/* the thread: the timeline's line, still going */
/* as the light finishes rising, the Azadi Bridge appears inside it */
.dawn__bridge {
  z-index: 6; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 46% 42% at 50% 52%, #000 30%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.15) 84%, transparent 100%);
  mask-image: radial-gradient(ellipse 46% 42% at 50% 52%, #000 30%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.15) 84%, transparent 100%);
  opacity: calc(clamp(0, (var(--p, 0) - 0.5) * 2.4, 1) * 0.56);
  transform: scale(calc(1.08 - var(--p, 0) * 0.08));
  will-change: opacity, transform;
}
.dawn__thread {
  z-index: 7;
  left: 50%; top: 0; width: 1px; height: calc(min(var(--p, 0) * 1.7, 1) * 64%);
  background: linear-gradient(to bottom, rgba(138, 75, 69, 0), #8a4b45 30%, var(--maroon));
}
.dawn__thread i {
  position: absolute; left: 50%; bottom: -4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: var(--maroon);
  box-shadow: 0 0 calc(6px + var(--p, 0) * 34px) calc(var(--p, 0) * 6px) rgba(255, 120, 80, calc(0.25 + var(--p, 0) * 0.35));
}
/* the last stretch is plain daylight, so the timeline carries on without a seam */
.dawn__day { z-index: 5; inset: 0; background: var(--cream); opacity: calc((var(--p, 0) - 0.86) * 7.2); }

.day {
  --bg: var(--cream); --fg: #211c1a; --fg-dim: rgba(33, 28, 26, 0.6); --fg-faint: rgba(33, 28, 26, 0.14);
  --accent: var(--maroon); --line: rgba(33, 28, 26, 0.14); --rose: #a8456b; --teal: #2c7d7a;
  background: var(--cream); color: var(--fg); color-scheme: light;
}
/* behind 2024 to 2026: the film, in the same place on screen the whole way through, moving with
   the scroll; faint and feathered at every edge so it sits inside the cream instead of on top of it. */
.day { position: relative; isolation: isolate; }
.day > :not(.day__film) { position: relative; z-index: 1; }
.day__film { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.day__film-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.day__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 70% 66% at 50% 48%, #000 34%, rgba(0, 0, 0, 0.5) 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 66% at 50% 48%, #000 34%, rgba(0, 0, 0, 0.5) 62%, transparent 100%);
  will-change: opacity;
}
.day__canvas { opacity: var(--fo, 0); }

/* fixed things (menu bar, year bar) take the tone of what's behind them */
html[data-tone="night"] { --bg: #0c0b0a; --fg: var(--paper); --fg-dim: rgba(244, 239, 233, 0.62); --fg-faint: rgba(244, 239, 233, 0.14); --accent: #8a4b45; --line: rgba(244, 239, 233, 0.14); }
html[data-tone="day"] { --bg: var(--cream); --fg: #211c1a; --fg-dim: rgba(33, 28, 26, 0.6); --fg-faint: rgba(33, 28, 26, 0.14); --accent: var(--maroon); --line: rgba(33, 28, 26, 0.14); }

@media (max-width: 860px) {
  .dawn { height: 150vh; }
}
@media (prefers-reduced-motion: reduce) {
  /* a still image of the same moment: the thread meets the first light */
  .dawn { height: 90vh; --p: 0.9; }
  .dawn__stage { position: relative; height: 100%; }
  .dawn__stage::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to bottom, rgba(235, 231, 220, 0), var(--cream)); }
  .fog::after, .dawn__fog { animation: none; }
}

/* models open a question first: the Shop isn't open yet */
.models .model[data-shop] { cursor: pointer; }
.models .model[data-shop]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.gate {
  position: fixed; inset: 0; z-index: 140;
  display: grid; place-items: center; padding: 20px;
  background: rgba(20, 16, 14, 0.42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.35s var(--ease-out);
}
.gate[hidden] { display: none; }
.gate.is-open { opacity: 1; }
.gate__card {
  width: min(100%, 440px); padding: clamp(26px, 3vw, 38px);
  border-radius: var(--radius); background: var(--cream-card); color: #211c1a;
  box-shadow: 0 40px 90px -30px rgba(33, 28, 26, 0.55);
  transform: translateY(18px) scale(0.97); transition: transform 0.5s var(--ease-out);
}
.gate.is-open .gate__card { transform: none; }
.gate__card .slate { color: rgba(33, 28, 26, 0.55); }
.gate__title { margin-top: 10px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.gate__text { margin-top: 10px; font-size: 16px; line-height: 1.5; color: rgba(33, 28, 26, 0.7); }
.gate__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.gate__yes, .gate__stay {
  height: 46px; padding: 0 24px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.gate__yes { background: var(--maroon); color: var(--cream); }
.gate__yes:hover, .gate__yes:focus-visible { background: #7a2421; }
.gate__stay { border: 1px solid rgba(33, 28, 26, 0.22); color: #211c1a; }
.gate__stay:hover, .gate__stay:focus-visible { border-color: #211c1a; }
@media (max-width: 420px) { .gate__yes, .gate__stay { flex: 1 1 100%; } }

/* the end of Home: the way into the other half of the work */
.other { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: 0 clamp(90px, 11vw, 170px); text-align: center; }
.other__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-dim); display: inline-flex; align-items: center; gap: 14px; }
.other__kicker::before, .other__kicker::after { content: ""; width: 34px; height: 1px; background: var(--line); }
.other__link { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 28px; }
.other__label {
  font-size: clamp(38px, 6.4vw, 104px); font-weight: 200; font-style: italic; line-height: 0.95; letter-spacing: -0.02em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.8s var(--ease-out), color 0.4s;
}
.other__sub { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-dim); }
.other__arrow { font-style: normal; font-size: 22px; color: var(--accent); transition: transform 0.6s var(--ease-out); }
.other__link:hover .other__label, .other__link:focus-visible .other__label { background-size: 100% 1px; color: var(--accent); }
.other__link:hover .other__arrow, .other__link:focus-visible .other__arrow { transform: translateY(6px); }
.hire { padding-bottom: clamp(50px, 6vw, 90px); }

/* every company and client */
.clients { padding-block: clamp(90px, 12vw, 170px) clamp(40px, 5vw, 70px); margin-top: clamp(30px, 5vw, 70px); }
.clients__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(30px, 4vw, 56px); }
.clients__title { font-size: clamp(24px, 2.6vw, 42px); font-weight: 300; }
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 54.5s linear infinite;
}
.marquee:hover .marquee__track, .marquee:active .marquee__track { animation-play-state: paused; }
.marquee li {
  display: flex; align-items: center; gap: clamp(30px, 3.6vw, 60px);
  padding: clamp(24px, 2.6vw, 38px) clamp(30px, 3.6vw, 60px) clamp(24px, 2.6vw, 38px) 0;
  font-size: clamp(13px, 1.15vw, 17px); font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap;
  color: var(--fg-dim);
  transition: color 0.3s;
}
.marquee li::after { content: ""; width: 1px; height: 1.3em; background: var(--line); flex: none; }
.marquee li:hover { color: var(--fg); }
/* moves left to right without a seam: the list is doubled in JS and slides by half its width */
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { flex-wrap: wrap; width: auto; animation: none; }
}

/* the ending */
.hire { padding-block: clamp(60px, 8vw, 120px) clamp(100px, 13vw, 200px); text-align: center; }
.hire__link { display: inline-flex; flex-direction: column; align-items: center; gap: 18px; }
.hire__word {
  display: block;
  font-size: clamp(84px, 17vw, 300px);
  font-weight: 800; line-height: 0.85; letter-spacing: -0.05em; text-transform: uppercase;
  color: var(--accent);
  transition: letter-spacing 0.9s var(--ease-out);
}
.hire__link:hover .hire__word { letter-spacing: -0.02em; }
.hire__sub { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-dim); display: inline-flex; gap: 10px; }
.hire__sub i { font-style: normal; transition: transform 0.5s var(--ease-out); }
.hire__link:hover .hire__sub i { transform: translateX(6px); }
