/* Uzair Minhas · personal site
   Cool greys, near-black type, one muted steel-blue accent. Archive photos are desaturated to sit with it. */

@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #f4f6f8;
  --paper-2: #e8ebef;
  --card: #ffffff;
  --ink: #0d1117;
  --ink-2: #3a424e;
  --ink-3: #5a6370;
  --line: rgba(13, 17, 23, 0.12);
  --accent: #2a4d8f;
  --accent-deep: #1c3768;
  --night: #0b0e13;
  --night-2: #141922;
  --night-line: rgba(232, 238, 246, 0.14);
  --night-text: #eef1f5;
  --night-muted: #9ba6b5;
  --accent-night: #93b4ea;
  --photo: saturate(0.3) contrast(1.05);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --radius-sm: 12px;
  --section: clamp(72px, 11vw, 148px);
  --shadow: 0 1px 2px rgba(13, 17, 23, 0.06), 0 18px 48px -18px rgba(13, 17, 23, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0875rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.arrow { display: inline-block; font-family: var(--sans); font-size: 0.85em; transform: translateY(-0.06em); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 10px; }
.skip:focus { top: 12px; color: var(--paper); }

.eyebrow, .kicker, .credit, .crumb, .strip__label, .chip, .facts dt, .archive__date, .proof__n, .shot__meta, .hero__caption {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 500; }
.kicker { color: var(--ink-3); }
.credit { color: var(--ink-3); }
.credit a { text-decoration: underline; }

.glass {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 12px 40px -12px rgba(13, 17, 23, 0.28);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.96); }
}

/* ---------- buttons, chips, links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4em;
  min-height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink);
  font: 500 0.95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.textlink { font-weight: 500; color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.textlink:hover { color: var(--accent-deep); text-decoration-color: currentColor; }
.chip {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2); background: transparent; white-space: nowrap;
}
.chip--accent { border-color: var(--accent); color: var(--accent); }
.chip--night { border-color: var(--night-line); color: var(--accent-night); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(760px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 16px;
}
.nav__name { font-weight: 600; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; padding: 8px 0; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px;
  border-radius: 9px; background: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s, color 0.18s;
}
.nav__links a:hover { background: #fff; color: var(--accent); }
.nav__links a.nav__cta { background: var(--ink); color: var(--paper); }
.nav__links a.nav__cta:hover { background: var(--accent); color: #fff; }
.nav__toggle { display: none; }

@media (max-width: 719px) {
  .nav { flex-wrap: wrap; padding: 6px 6px 6px 16px; }
  .js .nav__toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px;
    border: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.7); color: var(--ink);
    font: 500 0.875rem/1 var(--sans); cursor: pointer;
  }
  .nav__toggle-icon { position: relative; width: 16px; height: 10px; }
  .nav__toggle-icon::before, .nav__toggle-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.2s; }
  .nav__toggle-icon::before { top: 1px; }
  .nav__toggle-icon::after { bottom: 1px; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-icon::before { transform: translateY(3.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-icon::after { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__links { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 0 2px; margin-left: -10px; }
  .nav__links a { display: flex; min-height: 44px; font-size: 1rem; }
  .js .nav__links { display: none; }
  .js .nav[data-open="true"] .nav__links { display: flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--paper-2); }
.hero__backdrop {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(244, 246, 248, 0.3) 0%, rgba(244, 246, 248, 0.5) 55%, var(--paper) 100%),
    linear-gradient(100deg, rgba(42, 77, 143, 0.16), rgba(244, 246, 248, 0) 60%),
    url("/img/hero-backdrop.jpg") center / cover no-repeat;
}
.hero__stage {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: center;
  min-height: min(100svh, 900px); padding-block: 108px 72px;
}
.hero__media { grid-column: 5 / 13; grid-row: 1; position: relative; }
.hero__photo { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero__slide.is-on { opacity: 1; }
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; object-position: var(--pos, 50% 50%); filter: saturate(0.3) contrast(1.05); }
.hero__phone {
  position: absolute; right: clamp(-34px, -2.4vw, -10px); bottom: -11%; width: clamp(140px, 13.5vw, 188px);
  border-radius: 15.5% / 7.4%; overflow: hidden;
  box-shadow: 0 2px 4px rgba(13, 17, 23, 0.2), 0 30px 60px -20px rgba(13, 17, 23, 0.6);
  transform: rotate(4deg);
}
.hero__phone img { width: 100%; }
.hero__card {
  grid-column: 1 / 7; grid-row: 1; position: relative; z-index: 2;
  padding: clamp(22px, 3vw, 40px); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
}
.hero__card .eyebrow { color: var(--accent-deep); }
.hero__card h1 { font-size: clamp(2.3rem, 4.6vw, 4.1rem); margin: 14px 0 18px; }
.hero__intro { color: var(--ink-2); font-size: 1.0625rem; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.hero__caption { color: var(--ink-3); min-height: 2.9em; }
.hero__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero__controls[hidden] { display: none; }
.hero__pause { border: 0; background: none; padding: 6px 0; min-height: 28px; font: 0.75rem/1.4 var(--mono); color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.hero__pause:hover { color: var(--accent); }
.hero__dots { display: flex; gap: 2px; }
.hero__dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero__dot::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--ink); opacity: 0.22; transition: opacity 0.2s, background-color 0.2s; }
.hero__dot[aria-current="true"]::before { opacity: 1; background: var(--accent); }
.hero__dot:hover::before { opacity: 0.6; }

@media (max-width: 899px) {
  .hero__stage { display: block; width: 100%; min-height: 0; padding: 0 0 36px; }
  .hero__photo { border-radius: 0; box-shadow: none; aspect-ratio: 4 / 5; max-height: 74svh; width: 100%; }
  .hero__phone-note { display: none; }
  .hero__phone { display: none; }
  .hero__card { width: calc(100% - 24px); margin: -92px auto 0; padding: 22px 20px 20px; }
  .hero__card h1 { font-size: clamp(2.05rem, 8.6vw, 3rem); }
  .hero__intro { font-size: 1rem; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero__photo { aspect-ratio: 3 / 2; max-height: none; }
  .hero__phone-note { display: inline; }
  .hero__card { width: min(620px, 100% - 48px); margin-left: 24px; }
  .hero__phone { display: block; width: 132px; top: 96px; bottom: auto; right: 28px; }
}

/* ---------- proof strip ---------- */
.proof { margin-top: clamp(28px, 5vw, 56px); }
.proof__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.proof__item { padding: 22px 28px 6px 0; display: grid; gap: 8px; align-content: start; }
.proof__item + .proof__item { padding-left: 28px; border-left: 1px solid var(--line); }
.proof__n { color: var(--accent); }
.proof__claim { font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -0.03em; line-height: 1.12; }
.proof__claim a { text-decoration: none; }
.proof__item p { color: var(--ink-2); font-size: 0.97rem; }
.proof__item .textlink { font-size: 0.92rem; }
@media (max-width: 799px) {
  .proof__list { grid-template-columns: 1fr; }
  .proof__item, .proof__item + .proof__item { padding: 18px 0 20px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.section--night { background: var(--night); color: var(--night-text); }
.section--night .eyebrow { color: var(--accent-night); }
.section--night a:hover { color: var(--accent-night); }
.section--night .credit, .section--night .kicker { color: var(--night-muted); }
.section--note { padding-block: clamp(56px, 8vw, 96px); }
.section__head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-top: 14px; }
.section__intro { margin-top: 20px; max-width: 40em; font-size: 1.125rem; color: var(--ink-2); }
.section--night .section__intro { color: var(--night-muted); }

/* ---------- feature cards ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.feature--flip .feature__media { order: 2; }
.feature__media { position: relative; background: #000; min-height: 100%; }
.feature__media--screens { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 0; padding: clamp(10px, 1.6vw, 22px) clamp(6px, 1vw, 14px); }
.feature__media--screens img { width: 100%; }
.feature__media--frame { display: grid; align-content: center; gap: 14px; padding: clamp(18px, 3vw, 44px); background: linear-gradient(180deg, #1a1f28, #0b0e13); }
.feature__media--frame img { width: 100%; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 24px 60px -20px #000; }
.feature__media-note { font: 0.75rem/1.4 var(--mono); color: #9ba6b5; }
.flow { margin-top: clamp(8px, 2vw, 22px); border-top: 1px solid rgba(255, 255, 255, 0.16); }
.flow li { display: grid; grid-template-columns: 2.4em 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); color: #d5dbe4; font-size: 0.95rem; line-height: 1.4; }
.flow li span { font: 0.75rem/1.75 var(--mono); color: #8793a3; }
.flow li.flow__hl { color: #fff; }
.flow li.flow__hl span { color: var(--accent-night); }
.feature__body { padding: clamp(24px, 3.6vw, 52px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.feature__title { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.feature__title a { text-decoration: none; }
.feature__summary { color: var(--ink-2); font-size: 1.0625rem; max-width: 36em; }
.feature__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.lesson { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; max-width: 36em; }
.lesson__label { font: 500 0.75rem/1.4 var(--mono); color: var(--accent); margin-bottom: 6px; }
.lesson p + p, .lesson p:last-child { font-family: var(--serif); font-size: 1.3rem; line-height: 1.28; letter-spacing: -0.005em; }
.facts { display: grid; gap: 0; width: 100%; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-3); padding-top: 2px; }
.facts dd { font-size: 0.95rem; }
@media (max-width: 899px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__media--screens picture:nth-child(3) { display: none; }
  .feature__media--screens { grid-template-columns: repeat(2, 1fr); padding: 8px 4px; }
  .facts > div { grid-template-columns: 7.5em 1fr; }
}

/* ---------- small cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--brighter .card__media { background: linear-gradient(180deg, #01a99d 0%, #7bd2cc 78%, #9cded9 100%); display: grid; justify-items: center; align-items: start; }
.card--brighter .card__media picture { width: 44%; }
.card--brighter .card__media img { height: auto; object-fit: initial; }
.card--project-heisenberg .card__media img { object-position: 50% 30%; filter: var(--photo); }
.card__body { padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 12px; align-content: start; }
.card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.card__body > p { color: var(--ink-2); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media (max-width: 799px) { .cards { grid-template-columns: 1fr; } }

/* ---------- leadership ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin-bottom: clamp(28px, 4vw, 48px); }
.stat { padding: 22px 28px 26px 0; display: flex; flex-direction: column; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat dt { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.95; }
.stat dd { margin-top: 12px; color: var(--ink-2); max-width: 22em; font-size: 0.97rem; }
.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.example { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.2vw, 44px); display: grid; gap: 12px; align-content: start; }
.example__employer { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.example h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.3vw, 1.95rem); letter-spacing: -0.01em; line-height: 1.14; margin-top: 10px; }
.example > p:not(.kicker):not(.example__employer) { color: var(--ink-2); }
.strip { margin-top: clamp(40px, 6vw, 72px); }
.strip__label { color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; margin-bottom: 14px; }
.strip__label span { text-transform: none; letter-spacing: 0.02em; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.strip__list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.strip__list li { padding: 20px 18px 22px 0; display: grid; gap: 4px; align-content: start; }
.strip__list li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.wordmark { font-size: clamp(1.15rem, 1.7vw, 1.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 6px; }
.strip__role { font-size: 0.9rem; color: var(--ink-2); line-height: 1.35; }
.strip__dates { font: 0.75rem/1.4 var(--mono); color: var(--ink-3); }
.affil { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 48px); }
.affil__list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-2); }
.affil__name { font-weight: 500; color: var(--ink); }
@media (max-width: 899px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 18px 0 20px; border-left: 0; border-bottom: 1px solid var(--line); }
  .examples, .affil { grid-template-columns: 1fr; }
  .strip__list { grid-template-columns: 1fr 1fr; }
  .strip__list li, .strip__list li + li { padding: 16px 12px 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .strip__list li:last-child { border-bottom: 0; }
}
@media (max-width: 479px) { .affil__list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- figures and records (dark sections) ---------- */
.shot { display: grid; gap: 12px; align-content: start; }
.shot__img { border-radius: var(--radius-sm); overflow: hidden; background: var(--night-2); }
.shot__img img { width: 100%; filter: var(--photo); transition: filter 0.4s ease; }
.shot:hover .shot__img img { filter: none; }
.shot figcaption { display: grid; gap: 6px; }
.shot__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--night-muted); }
.shot__caption { color: var(--night-muted); font-size: 0.92rem; max-width: 34em; }
.records { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.record { border: 1px solid var(--night-line); border-radius: var(--radius-sm); padding: 22px; display: grid; gap: 10px; align-content: start; background: var(--night-2); }
.record p:not(.kicker) { font-size: 0.97rem; }
.record .textlink { color: var(--accent-night); text-decoration-color: rgba(147, 180, 234, 0.45); font-size: 0.92rem; }
@media (max-width: 799px) { .records { grid-template-columns: 1fr; } }

/* ---------- journey timeline ---------- */
.journey { overflow: hidden; }
.tl { --p: 1; position: relative; display: grid; gap: clamp(64px, 9vw, 128px); padding-block: 8px 24px; }
.js .tl { --p: 0; }
.tl::before, .tl::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -0.5px; }
.tl::before { background: var(--night-line); }
.tl::after { background: var(--accent-night); transform-origin: top; transform: scaleY(var(--p)); }
.tl__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(64px, 10vw, 150px); align-items: start; }
.tl__node { position: absolute; z-index: 1; left: 50%; top: 0.2em; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--night); border: 1.5px solid var(--night-muted); transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s; }
.tl__item.is-in .tl__node, html:not(.js) .tl__node { background: var(--accent-night); border-color: var(--accent-night); box-shadow: 0 0 0 6px rgba(147, 180, 234, 0.14); }
.tl__text, .tl__quote { grid-column: 1; grid-row: 1; display: grid; gap: 12px; align-content: start; justify-items: start; }
.tl__aside { grid-column: 2; grid-row: 1; display: grid; gap: 22px; align-content: start; }
.tl__item:nth-child(even) > .tl__text, .tl__item:nth-child(even) > .tl__quote { grid-column: 2; }
.tl__item:nth-child(even) > .tl__aside { grid-column: 1; }
.tl__year { font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.04em; color: var(--accent-night); }
.tl__text h3 { font-size: 1.45rem; letter-spacing: -0.025em; line-height: 1.14; }
.tl__item--major .tl__text h3 { font-size: clamp(2rem, 3.7vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.02; }
.tl__text > p:not(.tl__year):not(.tl__links) { color: var(--night-muted); max-width: 30em; }
.tl__item--major .tl__text > p:not(.tl__year):not(.tl__links) { font-size: 1.0625rem; }
.tl__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.92rem; }
.tl__links .textlink { color: var(--accent-night); text-decoration-color: rgba(147, 180, 234, 0.45); }
.tl__links .textlink:hover { color: #fff; }
.tl__quote { margin: 0; }
.tl__quote blockquote { margin: 0; }
.tl__quote blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3.8vw, 3.3rem); line-height: 1.08; letter-spacing: -0.01em; color: var(--night-text); max-width: 13em; }
.tl__quote figcaption { display: grid; gap: 8px; color: var(--night-muted); font-size: 0.92rem; max-width: 32em; }
.tl__aside .shot--tomtoberfest { max-width: 340px; }
.tl__item:nth-child(even) > .tl__aside .shot--tomtoberfest { margin-left: auto; }
.tl__aside .shot--nyc-flyer { width: 78%; margin-left: auto; }
.tl__phones { display: flex; gap: clamp(14px, 2vw, 26px); align-items: flex-start; }
.tl__phones picture { width: min(46%, 210px); border-radius: 15.5% / 7.4%; overflow: hidden; box-shadow: 0 30px 60px -24px #000; }
.tl__phones picture:nth-child(2) { margin-top: 44px; }
.tl__phones img { width: 100%; }
.tl__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--night-text); }
.tl__stats > div { padding: 16px 14px 0 0; }
.tl__stats > div + div { padding-left: 16px; border-left: 1px solid var(--night-line); }
.tl__stats dt { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.tl__stats dd { margin-top: 8px; color: var(--night-muted); font-size: 0.88rem; line-height: 1.35; }
.journey__closing { margin: clamp(64px, 9vw, 120px) auto 0; max-width: 21em; text-align: center; font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
@media (max-width: 899px) {
  .tl { gap: 56px; }
  .tl::before, .tl::after { left: 5px; }
  .tl__item { grid-template-columns: minmax(0, 1fr); padding-left: 32px; row-gap: 22px; }
  .tl__node { left: 5px; }
  .tl__text, .tl__quote, .tl__aside,
  .tl__item:nth-child(even) > .tl__text, .tl__item:nth-child(even) > .tl__quote, .tl__item:nth-child(even) > .tl__aside { grid-column: 1; grid-row: auto; }
  .tl__aside .shot--nyc-flyer { width: 100%; }
  .tl__item:nth-child(even) > .tl__aside .shot--tomtoberfest { margin-left: 0; }
  .journey__closing { text-align: left; margin-left: 0; }
}

/* ---------- archive ---------- */
.archive { margin-top: clamp(56px, 8vw, 104px); }
.archive__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; margin-bottom: 18px; }
.archive__head h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.archive__head p { color: var(--night-muted); font-size: 0.92rem; max-width: 36em; }
.archive__list { border-top: 1px solid var(--night-text); }
.archive__row { display: grid; grid-template-columns: 6.2em minmax(0, 1fr) 9.5em minmax(0, 13em); gap: 8px 20px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--night-line); font-size: 0.95rem; }
.archive__date { color: var(--night-muted); }
.archive__event strong { font-weight: 500; display: block; }
.archive__event span { color: var(--night-muted); font-size: 0.88rem; }
.archive__links { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; font-size: 0.88rem; }
.archive__links a { color: var(--night-text); }
@media (max-width: 799px) {
  .archive__row { grid-template-columns: 5.4em minmax(0, 1fr); }
  .archive__role, .archive__links { grid-column: 2; justify-content: flex-start; }
}

/* ---------- field note band ---------- */
.noteband {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 40px; align-items: end;
  padding: clamp(24px, 3.6vw, 48px); border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card); text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.noteband:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); }
.noteband .kicker { color: var(--accent); grid-column: 1 / -1; }
.noteband h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.06; grid-column: 1; }
.noteband p:not(.kicker) { color: var(--ink-2); max-width: 44em; grid-column: 1; }
.noteband__go { grid-column: 2; grid-row: 2 / 4; font-weight: 500; color: var(--accent); white-space: nowrap; }
@media (max-width: 699px) { .noteband { grid-template-columns: 1fr; } .noteband__go { grid-column: 1; grid-row: auto; margin-top: 8px; } }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--night-text); padding: clamp(48px, 7vw, 88px) 0 28px; }
.footer a:hover { color: var(--accent-night); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.footer__name { font-size: clamp(2.4rem, 7vw, 5.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 0.95; }
.footer__place { margin-top: 12px; color: var(--night-muted); font: 0.8rem/1.4 var(--mono); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 1.0625rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--night-line); color: var(--night-muted); font: 0.75rem/1.5 var(--mono); }

/* ---------- sub pages ---------- */
.sub main { padding-top: clamp(104px, 12vw, 148px); }
.crumb { color: var(--ink-3); margin-bottom: 22px; }
.crumb a { text-decoration: underline; }
.case__head { display: grid; gap: 16px; justify-items: start; max-width: 1240px; }
.case__head h1, .note__head h1, .credits h1, .notfound h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); max-width: 17em; }
.case__lede { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.24; letter-spacing: -0.005em; max-width: 30em; color: var(--ink-2); }
.case__head .facts { max-width: 720px; margin-top: 8px; }
.case__head .feature__links { margin-top: 4px; }
.case__media { margin-top: clamp(36px, 5vw, 64px); border-radius: var(--radius); overflow: hidden; background: #000; }
.case__media--screens { display: grid; grid-template-columns: repeat(4, 1fr); padding: clamp(10px, 2vw, 28px); }
.case__media--screens img { width: 100%; }
.case__media--frame { padding: clamp(14px, 4vw, 56px); background: linear-gradient(180deg, #1a1f28, #0b0e13); }
.case__media--frame picture { max-width: 880px; margin-inline: auto; }
.case__media--frame img { width: 100%; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); }
.case__credit { margin-top: 12px; }
.case__body { margin-top: clamp(48px, 7vw, 96px); }
.case__section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px 40px; padding: clamp(24px, 3.4vw, 40px) 0; border-top: 1px solid var(--line); }
.case__section h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.15; }
.case__section--lesson h2 { color: var(--accent); }
.prose { max-width: 40em; }
.prose p + p { margin-top: 1em; }
.case__section .prose { font-size: 1.0875rem; color: var(--ink-2); }
.case__section .prose p:first-child { color: var(--ink); }
.sources li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sources li:first-child { border-top: 1px solid var(--line); }
.next { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-block: clamp(48px, 7vw, 96px); }
.next__link { display: grid; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; transition: border-color 0.2s; }
.next__link:hover { border-color: var(--accent); }
.next__title { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -0.03em; }
@media (max-width: 799px) {
  .case__media--screens { grid-template-columns: repeat(2, 1fr); }
  .case__section, .next { grid-template-columns: 1fr; }
}

/* field note */
.note__head { display: grid; gap: 18px; justify-items: start; }
.note__body { margin-top: 36px; padding-bottom: var(--section); font-size: 1.125rem; }
.note__lede { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.28; color: var(--ink-2); }
.note__body h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.2em 0 0.7em; }
.step { flex: none; font: 500 0.8rem/1 var(--mono); letter-spacing: 0; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; width: 2.1em; height: 2.1em; display: inline-grid; place-items: center; transform: translateY(-0.3em); }
.note__body ul, .note__body ol { margin: 1em 0; display: grid; gap: 0.6em; }
.note__body ul li { position: relative; padding-left: 1.3em; }
.note__body ul li::before { content: ""; position: absolute; left: 0.1em; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.note__body a { color: var(--accent); }
.note__table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.97rem; }
.note__table th { text-align: left; font: 500 0.75rem/1.4 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; padding: 0 12px 8px 0; border-bottom: 1px solid var(--ink); }
.note__table td { vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.note__table td:first-child { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; width: 3.2em; color: var(--accent); }
.worksheet { margin: 2.6em 0 2em; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.worksheet h2 { margin-top: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.worksheet ol { counter-reset: ws; font-size: 1rem; }
.worksheet li { counter-increment: ws; display: grid; grid-template-columns: 2em 1fr; }
.worksheet li::before { content: counter(ws, decimal-leading-zero); font: 0.75rem/2.2 var(--mono); color: var(--accent); }
.worksheet li > * { grid-column: 2; }
.worksheet li { display: block; padding-left: 2.2em; position: relative; }
.worksheet li::before { position: absolute; left: 0; top: 0; }
@media (max-width: 599px) {
  .note__table thead { display: none; }
  .note__table tr { display: grid; grid-template-columns: 3em 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .note__table td { border: 0; padding: 0; }
  .note__table td:first-child { grid-row: 1 / 3; }
  .note__table td:last-child { grid-column: 2; color: var(--ink-3); font-size: 0.9rem; margin-top: 4px; }
}

/* cv, credits, 404 */
.cv, .credits, .notfound { padding-bottom: var(--section); }
.cv h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.cv__title { font-size: 1.25rem; font-weight: 500; margin-top: 10px; }
.cv__contact { margin-top: 6px; color: var(--ink-2); font-size: 0.95rem; }
.cv__summary { margin-top: 18px; font-size: 1.0875rem; }
.cv__print { margin-top: 20px; }
.cv h2, .credits h2 { font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 44px 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.cv__role { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cv__role-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; }
.cv__role-head h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.cv__role-head h3 span { font-weight: 400; }
.cv__role-head p { font: 0.8rem/1.4 var(--mono); color: var(--ink-3); }
.cv ul { margin-top: 8px; display: grid; gap: 6px; }
.cv ul li { position: relative; padding-left: 1.2em; color: var(--ink-2); }
.cv ul li::before { content: ""; position: absolute; left: 0.1em; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.cv ul.cv__plain li { padding-left: 0; }
.cv ul.cv__plain li::before { display: none; }
.cv a, .credits a { color: var(--accent); }
.credits header { display: grid; gap: 16px; }
.credits section > p { margin-top: 16px; color: var(--ink-2); }
.creditlist li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.creditlist li span { color: var(--ink-2); font-size: 0.92rem; }
.notfound { display: grid; gap: 20px; justify-items: start; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .tl__item[data-reveal] { opacity: 0.34; }
  .js [data-reveal].is-in, .js .tl__item[data-reveal].is-in { opacity: 1; transform: none; }
  .hero__phone { animation: phone-in 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes phone-in { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- print (CV) ---------- */
@media print {
  .nav, .footer, .skip, .cv__print, .crumb { display: none !important; }
  body { background: #fff; font-size: 10.5pt; }
  .sub main { padding-top: 0; }
  .cv { width: 100%; padding: 0; }
  .cv h2 { margin-top: 20px; }
  a { color: inherit !important; text-decoration: none; }
  .arrow { display: none; }
}
