/* Home: one line of work winding down through the years. Sits on top of site.css. */
.home { background: var(--ink); }
.home .site-head { z-index: 40; }

.descent { position: relative; background: var(--ink); color: var(--paper); --fg: var(--paper); --bg: var(--ink); --soft: #BBBBB5; --lo-c: var(--paper); --li-c: var(--lime); --btn: var(--cobalt); --btn-fg: var(--white); }
.pin { position: relative; isolation: isolate; overflow: hidden; }
.grain { position: absolute; inset: 0; background: url(assets/grain.svg); opacity: 0.07; pointer-events: none; z-index: 0; }

.hero-copy { position: relative; z-index: 30; padding: calc(var(--nav-h) + clamp(48px, 9vh, 120px)) var(--gut) 0 var(--edge); max-width: calc(940px + var(--edge)); }
.hero-copy h1 { max-width: 17ch; }
.hero-copy .lead { max-width: 560px; }
.hero-copy .lead { margin-top: 26px; }
.hero-copy .row { margin-top: 34px; }
.scroll-hint { margin-top: clamp(32px, 6vh, 64px); }

/* the line of work: a plain dated list without the pinned stage */
.timeline { list-style: none; margin: 0; padding: 48px var(--gut) 24px; display: grid; gap: 40px; max-width: 1320px; margin-inline: auto; position: relative; z-index: 10; }
.tl-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; position: relative; padding-left: 28px; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: -40px; width: 8px; background: var(--lime); }
.tl-item .tl-info { order: -1; }
.tl-card { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #222; }
.tl-card img, .tl-card video { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 400ms var(--ease-out); }
.tl-year { font: 800 clamp(28px, 3vw, 40px)/1 var(--display); letter-spacing: -0.03em; color: var(--lime); }
.tl-info h3 { margin-top: 12px; font-size: clamp(24px, 2.2vw, 30px); }
.tl-info p:not(.tl-year) { margin-top: 8px; font-size: 18px; max-width: 34ch; }
.now-card { padding: 0 var(--gut) 72px calc(var(--gut) + 28px); max-width: 1320px; margin-inline: auto; position: relative; z-index: 10; }
.now-card h3 { margin-top: 12px; }
.now-card p:not(.tl-year) { margin-top: 8px; }
.years, .ruler { display: none; }
@media (hover: hover) and (pointer: fine) { .tl-card:hover img { transform: scale(1.03); } }
@media (max-width: 759px) { .tl-item { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* desktop with a fine pointer: the stage pins and you travel down the helix as you scroll */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .is-descent .descent { height: calc(var(--n, 13) * 50svh + 5svh); }   /* 50svh per card: the ratio tuned at 13 cards (655svh), kept for any count */
  .is-descent .pin { position: sticky; top: 0; height: 100svh; }
  .is-descent .hero-copy { opacity: var(--copy, 1); transform: translateY(calc((1 - var(--copy, 1)) * -32px)); }
  .is-descent .timeline { position: absolute; inset: 0; padding: 0; margin: 0; max-width: none; display: block; }
  .is-descent .tl-item { position: static; display: block; padding: 0; }
  .is-descent .tl-item::before { display: none; }
  .is-descent .tl-card { position: absolute; left: 0; top: 0; width: 520px; height: 390px; will-change: transform, opacity; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); } /* taste-skill-ignore: the cards float in 3D space */
  .is-descent .tl-info { position: absolute; left: var(--edge); top: 50%; width: min(30vw, 400px); opacity: 0; pointer-events: none; will-change: transform, opacity; }
  .is-descent .tl-info h3 { font-size: clamp(32px, 3.4vw, 48px); }
  .is-descent .tl-year { font-size: clamp(40px, 4vw, 60px); }
  .is-descent .tl-info p:not(.tl-year) { font-size: 21px; }
  .is-descent .now-card { position: absolute; left: var(--edge); top: 50%; padding: 0; opacity: 0; transform: translateY(-50%); }
  .is-descent .now-card h3 { font-size: clamp(32px, 3.4vw, 48px); }
  .is-descent .now-card .tl-year { font-size: clamp(40px, 4vw, 60px); }
  /* what tells you you're moving down: the years drift past behind, and a ruler ticks by at the edge */
  .is-descent .years { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .yr::before { content: attr(data-year); }
.yr { position: absolute; right: 7vw; top: 0; font: 800 clamp(120px, 17vw, 260px)/1 var(--display); letter-spacing: -0.05em; color: transparent;
    -webkit-text-stroke: 1.5px rgba(244, 244, 241, 0.16); will-change: transform, opacity; white-space: nowrap; }
  .is-descent .ruler { display: block; position: absolute; right: 22px; top: 0; bottom: 0; width: 28px; z-index: 2; pointer-events: none; opacity: 0.55;
    background-image: repeating-linear-gradient(to bottom, rgba(244, 244, 241, 0.7) 0 2px, transparent 2px 120px), repeating-linear-gradient(to bottom, rgba(244, 244, 241, 0.35) 0 1px, transparent 1px 24px); /* taste-skill-ignore: a ruler's ticks, part of the device */
    background-size: 28px 120px, 12px 24px; background-repeat: repeat-y; background-position: 0 var(--ruler, 0px), 16px var(--ruler, 0px); } /* taste-skill-ignore: a ruler's ticks, part of the device */
}

/* ---------- the bands after the descent ---------- */
.band { position: relative; background: var(--ink); color: var(--paper); --fg: var(--paper); --bg: var(--ink); --soft: #BBBBB5; --li-c: var(--lime); padding-block: clamp(96px, 11vw, 160px); }
.band::before { content: ""; position: absolute; inset: 0; background: url(assets/grain.svg); opacity: 0.06; pointer-events: none; }
.band--paper { background: var(--paper); color: var(--ink); --fg: var(--ink); --bg: var(--paper); --soft: #555555; --li-c: var(--cobalt); }
.band--paper::before { opacity: 0.12; filter: invert(1); }
.inner { position: relative; max-width: 1320px; margin-inline: auto; padding-inline: var(--gut); }
.band-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: end; }
@media (max-width: 900px) { .band-head { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

.launches { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
@media (max-width: 759px) { .launches { grid-template-columns: minmax(0, 1fr); } }
.launch { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.launch-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #222; }
.launch-img img, .launch-img video { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 500ms var(--ease-out); }
.launch-meta { font-size: 15px; color: var(--soft); }
.launch-title { font: 800 clamp(26px, 2.6vw, 38px)/1.05 var(--display); letter-spacing: -0.03em; }
@media (hover: hover) and (pointer: fine) { .launch:hover .launch-img img { transform: scale(1.03); } .launch:hover .launch-title { color: var(--lime); } }

.films-strip { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.film-tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #222; }
.film-tile video { width: 100%; height: 100%; object-fit: cover; }
.film-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; font-size: 15px; font-weight: 600; color: var(--white);
  background: linear-gradient(to top, rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0)); } /* taste-skill-ignore: neutral scrim under text on footage */
@media (max-width: 759px) { .films-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.about-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.about-row .lead { margin-top: 20px; }
.about-row p + p { margin-top: 20px; }
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 0; }
.nums dt { font: 800 clamp(36px, 3.6vw, 56px)/1 var(--display); letter-spacing: -0.03em; color: var(--cobalt); }
.nums dd { margin: 8px 0 0; font-size: 18px; }
@media (max-width: 900px) {
  .about-row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* stacked: the numbers come before the link, so the link closes the section */
  .about-row > div { display: contents; }
  .about-row > div > p:last-child { order: 3; margin-top: 0; }
  .about-row > div > .lead { margin-top: -20px; }
}

/* film cards sit on the centre of the frame, where the subject is */
.tl-card video, .launch-img video { object-position: center; }

/* round corners, as on the inner pages */
.tl-card, .launch-img, .film-tile { border-radius: var(--r-lg); }

/* ---------- the intro (round 4, "Two Lines Frame"): positions and timing are set by home-intro.js ---------- */
.intro { position: relative; height: max(100svh, 640px); overflow: hidden; background: var(--ink); color: var(--paper);
  --fg: var(--paper); --soft: #BBBBB5; --lo-c: var(--paper); --li-c: var(--lime); --btn: var(--cobalt); --btn-fg: var(--white); }
.intro .lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.intro .lines polyline, .intro .lines path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.intro .outer, .intro .lid { stroke: var(--paper); }
.intro .inner { stroke: var(--lime); }
.intro .track { stroke: #2E2E2E; }
.intro .lid { stroke-dasharray: 1 1; }
.intro .screen { position: absolute; z-index: 2; display: block; overflow: hidden; background: #000; }
.intro .screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-copy { position: absolute; z-index: 4; }
.intro-copy h1 { font-size: clamp(40px, 4.5vw, 64px); max-width: none; }
.intro-copy h1 span { display: block; white-space: nowrap; will-change: transform, opacity; }
.intro-copy .lead { margin-top: 24px; max-width: 34ch; }
.intro-copy .row { margin-top: 32px; }
.intro-cap { position: absolute; z-index: 4; margin: 0; font-size: 15px; color: var(--soft); white-space: nowrap; }
.intro-cap a { color: inherit; text-decoration: none; }
.intro-cap b { color: var(--paper); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .intro-cap a:hover b { color: var(--lime); } }
.intro-skip { position: absolute; z-index: 5; right: var(--edge); bottom: 28px; font: 600 15px var(--text); color: var(--paper); background: #262626; border: 0; border-radius: var(--r-sm); min-height: 44px; padding: 0 16px; cursor: pointer; visibility: hidden; }
.intro:not(.is-live) .screen, .intro:not(.is-live) .lines, .intro:not(.is-live) .intro-cap, .intro:not(.is-live) .intro-skip { display: none; }
.intro:not(.is-live) .intro-copy { position: static; padding: calc(var(--nav-h) + 120px) var(--edge) 0; }
@media (max-width: 759px) { .intro-copy h1 { font-size: 42px; } .intro-copy .lead { font-size: 17px; margin-top: 16px; } .intro-copy .row { margin-top: 20px; } }
.hero-copy h2 { font-size: clamp(36px, 4.4vw, 60px); max-width: 17ch; }

/* the last stop of the timeline: what's happening now, and the way to get in touch */
.now-card .now-more { margin-top: 18px; max-width: 34ch; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; }
.now-card .row { margin-top: 28px; }

/* close the gap between the last stop and the launches */
.is-descent .descent + .band { padding-top: clamp(24px, 4vh, 48px); }
.is-descent .now-card { top: 58%; }

/* the early years: no work to show, so the card is the name set large and what the company is (Nov 7, 2026) */
.tl-text { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; width: 100%; height: 100%; padding: clamp(20px, 2.4vw, 36px); background: var(--cobalt); color: var(--white); }
.tl-text b { font: 800 clamp(30px, 3.4vw, 52px)/0.95 var(--display); letter-spacing: -0.03em; }
.tl-text span { font-size: 16px; color: #DDE2FF; }
.tl-card, .tl-card:hover { text-decoration: none; }
/* the last stop of the timeline sits on a paper panel: the line's end point, and never an empty screen (Nov 7, 2026) */
.is-descent .now-card { background: var(--paper); color: var(--ink); padding: clamp(32px, 3vw, 48px); border-radius: var(--r-lg); width: min(640px, 46vw); --fg: var(--ink); --soft: #555555; --btn: var(--cobalt); --btn-fg: var(--white); }
.is-descent .now-card .tl-year { color: var(--cobalt); }
.is-descent .now-card .link { color: var(--ink); }
/* one year, several stops (Julian, Nov 7, 2026): the cards step down in a tidy cascade, the first one in front,
   each with its company's logo on the strip that stays visible ("too stacked" fixed the same day) */
.tl-card--stack { position: relative; overflow: visible; background: none; }
.tl-card--stack .tl-layer { position: absolute; width: 70%; height: 70%; overflow: hidden; border-radius: var(--r-lg); background: #222;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); transition: transform 400ms var(--ease-out); } /* taste-skill-ignore: the cards are a physical pile */
.tl-card--stack .tl-layer:nth-child(1) { left: 0; top: 0; }
.tl-card--stack .tl-layer:nth-child(2) { left: 15%; top: 15%; }
.tl-card--stack .tl-layer:nth-child(3) { left: 30%; top: 30%; }
.tl-card--stack .tl-layer > img { object-position: center; }
@media (hover: hover) and (pointer: fine) {
  .tl-card--stack:hover .tl-layer:nth-child(1) { transform: translate(-4%, -4%); }
  .tl-card--stack:hover .tl-layer:nth-child(3) { transform: translate(4%, 4%); }
  .tl-card--stack:hover .tl-layer > img { transform: none; }
}
/* the logo plate: says whose photo it is */
.tl-card { position: relative; }
.tl-logo { --ph: clamp(28px, 3.4vw, 48px); position: absolute; left: 3.5%; top: 4.5%; height: var(--ph); max-width: 60%; display: flex; align-items: center; padding: 0 clamp(8px, 2.2%, 14px);
  background: var(--plate, #FFFFFF); border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28); pointer-events: none; }
.tl-layer .tl-logo { --ph: clamp(24px, 2.8vw, 40px); left: 4%; top: 4%; max-width: 80%; border-radius: 8px; }
.tl-card .tl-logo img, .tl-card:hover .tl-logo img { width: auto; height: calc(var(--ph) * var(--ls, 0.5)); max-width: none; object-fit: contain; transform: none; }
.is-descent .tl-card--stack { box-shadow: none; }
.tl-sub + .tl-sub { margin-top: 14px; }
.tl-sub h3 { margin-top: 10px; font-size: clamp(20px, 1.8vw, 26px); }
.tl-info .tl-sub p { margin-top: 4px; font-size: 16px; max-width: 38ch; }
.is-descent .tl-sub h3 { font-size: clamp(22px, 2vw, 28px); }
.is-descent .tl-info .tl-sub p { font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .tl-card--stack .tl-layer { transition: none; } }
.tl-card img[src*="diamondback-brand"] { object-position: right center; }   /* keeps the Diamondback logo in frame */
/* what kind of job each stop was (Julian, Nov 7, 2026): internships and contracts read as such, not as job-hopping */
.tl-info p.tl-type { margin-top: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--soft); }
.is-descent .tl-info p.tl-type { font-size: 17px; }
.tl-info .tl-type + h3 { margin-top: 4px; }
/* one job, two brands: a split card, each half with the store that sells it */
.tl-card--split { display: flex; gap: 4px; background: var(--ink); }
.tl-card--split .tl-half { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.tl-card--split .tl-half > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tl-card--split .tl-half:last-child > img { object-position: 38% center; }
.tl-half .tl-logo { left: 6%; top: 5%; max-width: 88%; }
