@font-face {
  font-family: Satoshi;
  src: url('/assets/fonts/satoshi-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Satoshi;
  src: url('/assets/fonts/satoshi-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Satoshi;
  src: url('/assets/fonts/satoshi-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fcfcfb;
  --surface: #f1f1ee;
  --ink: #131417;
  --ink-2: #45484f;
  --muted: #6c6f77;
  --line: #e5e5e1;
  --line-strong: #c9cac6;
  --accent: #1f3fd6;
  --accent-hover: #1832b0;
  --accent-soft: #e9edfd;
  --hairline: rgb(19 20 23 / .08);
  /* One grid for every section: label, content, aside. */
  --label: 196px;
  --aside: 252px;
  --gap: 56px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1012;
    --surface: #1b1c1f;
    --ink: #f0f0ee;
    --ink-2: #c2c4c9;
    --muted: #8e9198;
    --line: #26282c;
    --line-strong: #43464c;
    --accent: #8fa1ff;
    --accent-hover: #aab7ff;
    --accent-soft: #1b2142;
    --hairline: rgb(255 255 255 / .1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Satoshi, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 500; color: var(--ink); }
.icon { flex-shrink: 0; width: 1em; height: 1em; fill: currentColor; }

.shell { width: min(1120px, 100% - 80px); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: none; z-index: 1; }

.text-link { text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.text-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.copy-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

/* Clicking the email address copies it; a short note appears above whatever was clicked. */
[data-copy] { position: relative; }
[data-copy]::after { content: 'Copied'; position: absolute; bottom: calc(100% + 8px); left: 50%; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s; }
[data-copy].is-copied::after { opacity: 1; transform: translate(-50%, 0); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.wordmark { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.site-nav { display: flex; gap: 32px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; transition: color .15s; }
.site-nav a:hover { color: var(--ink); }

/* Hero: the portrait sits in the label column, so every section below shares its edges. */
.hero, .row, .site-footer { display: grid; grid-template-columns: var(--label) minmax(0, 1fr) var(--aside); column-gap: var(--gap); }
.hero { align-items: center; padding: 48px 0 76px; }
.portrait { width: min(168px, 100%); aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 22px; background: var(--surface); outline: 1px solid var(--hairline); outline-offset: -1px; }
.hero-text { grid-column: 2 / -1; }
.hero h1 { font-size: clamp(38px, 4vw, 52px); font-weight: 700; line-height: .95; letter-spacing: -.045em; }
/* On the narrowest phones the timeline link wraps to its own line, flush left. */
.hero-history { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 16px; color: var(--muted); font-size: 15px; }
.hero-history .text-link { color: var(--ink-2); }
.hero-lead { max-width: 28em; margin-top: 22px; color: var(--ink); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; letter-spacing: -.01em; text-wrap: balance; }

/* Section rows: small label, content, and an aside. */
.row { align-items: first baseline; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.row-label { position: sticky; top: 28px; color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.5; }

/* About */
.about-copy p { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.about-copy p + p { margin-top: 18px; }
.about-copy .about-lead { color: var(--ink); font-size: 19px; line-height: 1.5; letter-spacing: -.01em; }
.timeline-wrap { position: sticky; top: 28px; }
.aside-title { color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.5; }
.timeline { display: grid; gap: 20px; margin-top: 20px; padding-left: 20px; border-left: 1px solid var(--line); }
.timeline-item { position: relative; font-size: 14px; line-height: 1.45; }
.timeline-item::before { content: ''; position: absolute; top: 5px; left: -25px; width: 9px; height: 9px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--bg); }
.timeline-item:first-child::before { border-color: var(--accent); background: var(--accent); }
.timeline-when { display: block; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.timeline-role { margin-top: 2px; color: var(--ink); font-size: 15px; font-weight: 500; }
.timeline-org, .timeline-aside { color: var(--muted); font-weight: 400; }

/* Channels lead the page; each opens with its newest upload at full column width. */
.channels { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.channel { display: grid; grid-template-rows: subgrid; grid-row: span 6; }
.channel-head { margin-bottom: 12px; }
.channel-head h3 { font-size: clamp(23px, 2.2vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; text-wrap: initial; }
.channel-description { max-width: 36em; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.channel > a { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px; color: var(--accent); font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .15s, text-decoration-color .15s; }
.channel > a .icon { width: 12px; height: 12px; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.channel > a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
.channel > a:hover .icon { transform: translate(2px, -2px); }
/* The lists share the channels' rows, so the two columns stay level whatever the title lengths. */
.vids { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 16px; margin-top: 18px; }
.vids a { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 16px; align-items: center; }
.vids img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--surface); outline: 1px solid var(--hairline); outline-offset: -1px; transition: opacity .15s; }
.vids strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; font-weight: 500; line-height: 1.4; transition: color .15s; }
.vids li:first-child { margin-bottom: 8px; }
.vids li:first-child a { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.vids li:first-child img { border-radius: 14px; }
.vids li:first-child strong { -webkit-line-clamp: 3; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; }
.vids a:hover strong { color: var(--accent); }
.vids a:hover img { opacity: .9; }

/* Footer */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--line); }
.foot-email { grid-column: 2 / -1; max-width: 38em; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.foot-email strong { font-weight: 700; }
.foot-email .copy-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .15s; }
.foot-email .copy-link:hover { color: var(--accent-hover); }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-top: 48px; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a, .footer-nav button { display: inline-flex; align-items: center; min-height: 44px; transition: color .15s; }
.footer-nav a:hover, .footer-nav button:hover { color: var(--ink); }

/* Tablet: the aside joins the content column. */
@media (max-width: 1080px) {
  :root { --label: 148px; --gap: 40px; }
  .hero, .row, .site-footer { grid-template-columns: var(--label) minmax(0, 1fr); }
  .row-aside, .channels { grid-column: 2; }
  .row-aside { margin-top: 24px; }
  .timeline-wrap { position: static; margin-top: 48px; }
  .channels { column-gap: 32px; }
}

/* Narrow tablet: the channels stack. */
@media (max-width: 900px) {
  .channels { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .channel { display: block; grid-row: auto; }
  .vids { grid-template-rows: none; }
}

/* Phone: one column. */
@media (max-width: 720px) {
  html { scroll-padding-top: 16px; }
  body { font-size: 16px; }
  .shell { width: calc(100% - 40px); }
  .site-header { height: 72px; }
  .site-nav { gap: 22px; font-size: 14px; }
  .hero, .row, .site-footer { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 20px 0 48px; }
  .portrait { width: 88px; border-radius: 16px; }
  .hero-text { grid-column: 1; margin-top: 24px; }
  .hero h1 { font-size: clamp(30px, 9vw, 34px); }
  .hero-history { margin-top: 12px; font-size: 14px; }
  .hero-lead { margin-top: 18px; font-size: 18px; }
  .row { padding: 36px 0 44px; }
  .row-label { position: static; margin-bottom: 10px; font-size: 14px; }
  .row-aside, .channels { grid-column: 1; }
  .channels { row-gap: 44px; }
  .row-videos .row-label { margin-bottom: 24px; }
  .row-aside { margin-top: 20px; }
  .about-copy .about-lead { font-size: 18px; }
  .vids a { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .site-footer { padding-top: 40px; }
  .foot-email { grid-column: 1; font-size: 16px; }
  .footer-bottom { margin-top: 32px; }
  .footer-nav { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
