*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --bg: #f1f1f1;
  --surface: #ffffff;
  --sunken: #e3e3e3;
  --ghost: #f8f8f8;
  --ink: #111111;
  --muted: #5b5b5b;
  --line: rgba(17,17,17,0.12);
  --accent: #2f5bff;
  --accent-text: #2447d6;
  --on-accent: #ffffff;
  --inverse: #151515;
  --on-inverse: #f6f6f6;
  --on-inverse-muted: #a9a9a9;
  --inverse-line: rgba(255,255,255,0.18);
  --nav-bg: rgba(241,241,241,0.82);
  --shadow: 0 18px 40px -22px rgba(17,17,17,0.3);

  --radius: 28px;
  --radius-sm: 12px;
  --gap: clamp(12px, 1.4vw, 18px);
  --gutter: clamp(16px, 4vw, 48px);
  --display: 'Inter Tight', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131313;
  --surface: #1e1e1e;
  --sunken: #2a2a2a;
  --ghost: #191919;
  --ink: #f3f3f3;
  --muted: #a6a6a6;
  --line: rgba(255,255,255,0.12);
  --accent-text: #8aa4ff;
  --inverse: #f3f3f3;
  --on-inverse: #131313;
  --on-inverse-muted: #555555;
  --inverse-line: rgba(17,17,17,0.18);
  --nav-bg: rgba(19,19,19,0.82);
  --shadow: 0 18px 40px -22px rgba(0,0,0,0.8);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  /* --t-* are the colors of whatever surface a component sits on; tiles override them */
  --t-bg: var(--bg); --t-fg: var(--ink); --t-muted: var(--muted); --t-line: var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem; font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
[id] { scroll-margin-top: 6rem; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ── NAV ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem; padding-block: 1.1rem;
}
.logo {
  justify-self: start;
  font: 800 1.45rem/1 var(--display); letter-spacing: -0.05em;
  color: var(--ink); text-decoration: none;
}
.nav-links { display: flex; gap: clamp(1.1rem, 2.6vw, 2.4rem); list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 0.5rem 0;
  font: 500 0.8rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 0.75rem; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer;
  background: none; border: 1.5px solid var(--line); color: var(--ink);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.theme-toggle:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; row-gap: 0.35rem; padding-block: 0.8rem 0.45rem; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; gap: 1.6rem; }
}

/* ── BUTTONS & SMALL PARTS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.9rem 1.45rem; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  font: 600 0.8rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 14px; height: 14px; }
.btn-solid { background: var(--inverse); color: var(--on-inverse); }
.btn-solid:hover { background: var(--accent); color: var(--on-accent); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }

.eyebrow {
  display: flex; align-items: center; gap: 0.8rem;
  font: 600 0.75rem/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); flex-shrink: 0; }

.label {
  font: 600 0.72rem/1.3 var(--body); letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--t-muted);
}
.badge {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 0.5rem 0.72rem; border-radius: 999px; border: 1.5px solid var(--t-line);
  font: 600 0.68rem/1 var(--body); letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--t-fg);
}
.badge--fill { background: var(--t-fg); color: var(--t-bg); border-color: transparent; }
.badge--accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }

.links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.link-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--t-line);
  font: 600 0.78rem/1 var(--body); color: var(--t-fg); text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.link-chip:hover { background: var(--t-fg); color: var(--t-bg); border-color: var(--t-fg); }

.text-link {
  font: 600 0.8rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.text-link span, .tile-cta span { transition: translate 0.25s ease; }
.text-link:hover span, .tile--link:hover .tile-cta span { translate: 4px 0; }

/* which board or rig a project ran on */
.hw {
  margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--t-line);
  font-size: 0.86rem; line-height: 1.45; color: var(--t-muted);
}
.hw span {
  display: inline-block; margin-right: 0.6rem;
  font: 600 0.66rem/1 var(--body); letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--t-fg);
}

.logo-chip {
  width: 52px; height: 52px; flex-shrink: 0; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
}

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden; overflow: clip;
  padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(2.75rem, 6vw, 5.5rem);
}
.hero-ghost {
  position: absolute; z-index: 0; right: -2vw; top: 50%; translate: 0 -50%;
  font: 800 clamp(15rem, 40vw, 38rem)/0.8 var(--display); letter-spacing: -0.07em;
  color: var(--ghost); pointer-events: none; user-select: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) auto;
  gap: clamp(1.5rem, 3.5vw, 3.5rem); align-items: center;
}
.hero h1 {
  margin-top: 1.4rem;
  font: 700 clamp(1.5rem, 3.1vw, 2.65rem)/1.05 var(--display); letter-spacing: -0.035em;
}
.hero h1 span { display: block; }
.hero-sub {
  margin-top: 1.5rem; max-width: 34rem;
  font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.65; color: var(--muted);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.status {
  display: inline-flex; align-items: center; gap: 0.65rem; margin-top: 1.6rem;
  font-size: 0.86rem; font-weight: 500;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(47,91,255,0.22);
}

.hero-art { position: relative; justify-self: end; width: min(100%, 500px); aspect-ratio: 1; }
.hero-disc { position: absolute; inset: 0; border-radius: 50%; background: var(--sunken); }
.portrait {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 54%; aspect-ratio: 3 / 4.3;
  border-radius: 999px; overflow: hidden;
  background: var(--surface); border: 8px solid var(--surface); box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
/* background-free cutout photo: the figure stands in front of the disc instead of inside the pill */
.portrait.is-cutout {
  left: 6%; top: 0; translate: none; width: 88%; height: 100%; aspect-ratio: auto;
  border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
}
.portrait.is-cutout img { object-fit: contain; object-position: 50% 100%; }

/* vertical strip beside the portrait: text reads bottom to top */
.hero-social {
  list-style: none; display: flex; gap: 0.6rem;
  writing-mode: vertical-rl; rotate: 180deg;
}
.hero-social .btn { padding: 0; padding-block: 0.75rem; padding-inline: 1.1rem; font-size: 0.74rem; }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .hero-social { grid-column: 2; writing-mode: horizontal-tb; rotate: none; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 span { display: inline; }
  .hero-social { grid-column: auto; }
  .hero-art { justify-self: center; width: min(82vw, 360px); margin-top: 0.5rem; }
  .hero-ghost { top: 0; translate: 0 -8%; }
}

/* ── BENTO ── */
.block { padding-block: clamp(2.5rem, 6vw, 5rem); }
.block-head { max-width: 52rem; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.block-head h2 {
  margin-top: 1rem;
  font: 700 clamp(1.5rem, 2.9vw, 2.3rem)/1.05 var(--display); letter-spacing: -0.04em;
  text-wrap: balance;
}
.block-head .lead { margin-top: 1rem; }
.sub-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.25rem;
}
.sub-head h3 { font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.1 var(--display); letter-spacing: -0.03em; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.tile {
  --t-bg: var(--surface);
  --pad: clamp(1.25rem, 2.2vw, 2rem);
  grid-column: span 4;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: var(--pad);
  background: var(--t-bg); color: var(--t-fg); border-radius: var(--radius);
  transition: translate 0.25s ease, box-shadow 0.25s ease;
}
.tile--sunken { --t-bg: var(--sunken); }
.tile--inverse {
  --t-bg: var(--inverse); --t-fg: var(--on-inverse);
  --t-muted: var(--on-inverse-muted); --t-line: var(--inverse-line);
}
.tile--accent {
  --t-bg: var(--accent); --t-fg: var(--on-accent);
  --t-muted: rgba(255,255,255,0.92); --t-line: rgba(255,255,255,0.35);
}
.tile--media {
  --t-bg: #111111; --t-fg: #ffffff;
  --t-muted: rgba(255,255,255,0.84); --t-line: rgba(255,255,255,0.42);
}
.tile--link:hover { translate: 0 -3px; box-shadow: var(--shadow); }

.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.tile-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tile--media::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--scrim, linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.12) 30%, rgba(10,10,10,0.6) 58%, rgba(10,10,10,0.92) 100%));
}
/* outlined badges need their own backing to stay legible over a bright photo */
.tile--media .badge:not(.badge--fill) {
  background: rgba(10,10,10,0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* the racing tile shows its photo clear on top, with the copy on the dark panel beneath */
.t-admpcc { --scrim: none; padding: 0; grid-row: span 2; }
.tile-figure { position: relative; flex: 1 1 auto; aspect-ratio: 2.1 / 1; }
.tile-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.tile-figure::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.5) 0%, rgba(17,17,17,0) 24%, rgba(17,17,17,0) 52%, #111111 100%);
}
.tile-figure .tile-top { position: absolute; z-index: 1; top: var(--pad); left: var(--pad); }
.t-admpcc .tile-body { position: relative; margin-top: -4.5rem; padding: 0 var(--pad) var(--pad); }
.tile--photo {
  --scrim: linear-gradient(180deg, rgba(10,10,10,0) 38%, rgba(10,10,10,0.9) 100%);
  min-height: 15rem; justify-content: flex-end;
}
.t-iros .tile-bg { object-position: 28% 50%; }
.t-acc .tile-bg { object-position: 24% 60%; }
.photo-cap { font-size: 0.86rem; line-height: 1.35; }
.photo-cap strong { display: block; font: 700 1.1rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--t-fg); }

.tile-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.tile-body { margin-top: auto; padding-top: 2rem; }
.tile h3 { font: 700 clamp(1.15rem, 1.6vw, 1.45rem)/1.18 var(--display); letter-spacing: -0.02em; }
.tile p { color: var(--t-muted); }
.tile .label + h3 { margin-top: 0.75rem; }
.tile-body > h3 { margin-top: 1rem; }
.tile-body > h3 + p, .tile .label + h3 + p { margin-top: 0.6rem; font-size: 0.95rem; line-height: 1.55; max-width: 58ch; }
.tile-lead { margin-top: 0.9rem; font: 700 clamp(1.5rem, 2.3vw, 1.95rem)/1.1 var(--display); letter-spacing: -0.03em; }
.tile-lead + p { margin-top: 0.8rem; font-size: 0.9rem; line-height: 1.5; }

.stat { display: flex; align-items: flex-end; gap: 0.9rem; }
.stat-num { font: 700 clamp(3.4rem, 6vw, 5.4rem)/0.86 var(--display); letter-spacing: -0.055em; color: var(--t-fg); }
.stat-text { max-width: 17ch; padding-bottom: 0.15rem; font-size: 0.86rem; line-height: 1.3; color: var(--t-muted); }
.label + .stat { margin-top: 1.4rem; }
.stat + .rows { margin-top: 1.4rem; }

.tile-link { color: inherit; text-decoration: none; }
.tile-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.tile-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: auto; padding-top: 1.4rem;
  font: 600 0.78rem/1 var(--body); letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--t-fg);
}

.mini-stats { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.mini-stats > div { display: flex; flex-direction: column-reverse; gap: 0.25rem; padding-top: 1.1rem; border-top: 1px solid var(--t-line); }
.mini-stats dd { font: 700 clamp(2.3rem, 3.6vw, 3.1rem)/1 var(--display); letter-spacing: -0.045em; }
.mini-stats dt { font-size: 0.84rem; color: var(--t-muted); }

.rows { list-style: none; margin-top: 1rem; }
.rows li { display: grid; gap: 0.1rem; padding: 0.68rem 0; border-top: 1px solid var(--t-line); }
.rows strong { font: 700 0.95rem/1.3 var(--display); }
.rows span { font-size: 0.84rem; line-height: 1.35; color: var(--t-muted); }

.path { list-style: none; display: grid; margin-top: 1rem; }
.path li { display: flex; align-items: flex-start; gap: 1rem; padding-block: 1rem; border-top: 2px solid var(--t-line); }
.path li:first-child { border-top-color: var(--accent); }
.path h3 { font-size: 1.05rem; }
.path--row { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2.5vw, 2rem); }
.path p { font-size: 0.9rem; line-height: 1.45; }
.path .meta { margin-top: 0.3rem; font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.t-contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: end;
  padding: clamp(1.75rem, 4.5vw, 4rem);
}
.t-contact h2 { margin-top: 0.9rem; font: 700 clamp(1.6rem, 3.4vw, 2.5rem)/1 var(--display); letter-spacing: -0.045em; }
.t-contact h2 + p { margin-top: 1.1rem; max-width: 34rem; }
.contact-mail {
  font: 600 clamp(1.05rem, 2.1vw, 1.6rem)/1.3 var(--display); letter-spacing: -0.02em;
  color: var(--t-fg); overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.contact-mail:hover { color: var(--accent); }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile { grid-column: span 3; }
  .span-6, .span-8, .span-12, .md-6 { grid-column: span 6; }
  .t-admpcc { grid-row: auto; }
}
@media (max-width: 640px) {
  .tile { grid-column: span 6; }
  .t-contact, .path--row { grid-template-columns: 1fr; }
  .tile-figure { aspect-ratio: 16 / 10; }
}

/* ── SCROLL REVEAL ── */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(.22,.61,.36,1), transform 0.6s cubic-bezier(.22,.61,.36,1),
              translate 0.25s ease, box-shadow 0.25s ease;
  transition-delay: var(--delay, 0s), var(--delay, 0s), 0s, 0s;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── PAGE HEAD & SECTIONS (research, about) ── */
.page-head { padding-block: clamp(2.75rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem); }
.page-head h1, .about-head h1 {
  margin-top: 1.2rem;
  font: 700 clamp(1.7rem, 4.1vw, 3.3rem)/1 var(--display); letter-spacing: -0.045em;
  text-wrap: balance;
}
.lead {
  margin-top: 1.4rem; max-width: 46rem;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.5; color: var(--muted);
}

.section {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line);
}
.section > h2 {
  position: sticky; top: 6.5rem; align-self: start;
  font: 700 clamp(1.5rem, 2.5vw, 2.1rem)/1.1 var(--display); letter-spacing: -0.03em;
}
@media (max-width: 820px) {
  .section { grid-template-columns: 1fr; }
  .section > h2 { position: static; }
}

/* ── RESEARCH ── */
.threads {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.threads li { padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.thread-num { font: 700 0.8rem/1 var(--display); letter-spacing: 0.08em; color: var(--accent-text); }
.threads h2, .threads h3 { margin: 0.6rem 0 0.5rem; font: 700 1.3rem/1.15 var(--display); letter-spacing: -0.02em; }
.threads p { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 760px) { .threads { grid-template-columns: 1fr; } }

/* conference photos, reusing the bento photo tiles */
.stage { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.stage .tile { min-height: clamp(16rem, 30vw, 24rem); }

.pubs { list-style: none; }
.pub {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1.5rem;
  padding-block: 1.75rem; border-top: 1px solid var(--line);
}
.pub:first-child { padding-top: 0; border-top: 0; }
.pub h3 { font: 700 clamp(1.12rem, 1.7vw, 1.4rem)/1.2 var(--display); letter-spacing: -0.02em; }
.pub-authors { margin-top: 0.45rem; font-size: 0.9rem; color: var(--muted); }
.pub-authors strong { color: var(--ink); font-weight: 600; }
.pub-take { margin-top: 0.8rem; max-width: 64ch; }
.abstract { margin-top: 0.8rem; }
.abstract summary {
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; list-style: none;
  font: 600 0.76rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text);
}
.abstract summary::-webkit-details-marker { display: none; }
.abstract summary::after { content: '+'; font-size: 1rem; line-height: 0.7; }
.abstract[open] summary::after { content: '\2013'; }
.abstract p { margin-top: 0.7rem; max-width: 70ch; font-size: 0.9rem; line-height: 1.7; color: var(--muted); }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; gap: 0.8rem; } }

.side-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.side {
  display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 1.25rem; align-items: start;
  padding: 1rem; background: var(--surface); border-radius: var(--radius);
}
.side-thumb {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 18px; background: var(--sunken);
  font: 700 3rem/1 var(--display); color: var(--muted); text-decoration: none;
}
.side-thumb img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.4s ease; }
.side:hover .side-thumb img { scale: 1.05; }
.play {
  position: absolute; right: 0.6rem; bottom: 0.6rem; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff;
}
.play svg { width: 14px; height: 14px; margin-left: 2px; }
.side-body { padding: 0.5rem 0.5rem 0.5rem 0; }
.side-body h3 { font: 700 1.1rem/1.2 var(--display); letter-spacing: -0.02em; }
.side-body h3 + p { margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) { .side-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .side { grid-template-columns: 1fr; }
  .side-body { padding: 0 0.5rem 0.5rem; }
}

/* ── ABOUT ── */
.about-head {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
  padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3.5rem);
}
.about-intro .note {
  margin-top: 1.6rem; max-width: 30rem; padding: 0.9rem 1.1rem;
  font-size: 0.86rem; line-height: 1.5; color: var(--muted);
  background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0;
}
.about-intro .hero-cta { margin-top: 1.5rem; }
.about-copy { padding-top: 2.4rem; }
.about-copy p { max-width: 62ch; color: var(--muted); }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy p a {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
@media (max-width: 820px) {
  .about-head { grid-template-columns: 1fr; gap: 1.75rem; }
  .about-copy { padding-top: 0; }
}

.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.facts > div {
  display: flex; flex-direction: column-reverse; gap: 0.3rem;
  padding: 0.9rem 1.1rem; background: var(--surface); border-radius: 18px;
}
.facts dd { font: 700 clamp(1.5rem, 2.4vw, 2rem)/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.facts dt { font-size: 0.76rem; line-height: 1.3; color: var(--muted); }
.facts > div:first-child { background: var(--accent); color: var(--on-accent); }
.facts > div:first-child dt { color: rgba(255,255,255,0.92); }
.facts > div:last-child { background: var(--inverse); color: var(--on-inverse); }
.facts > div:last-child dt { color: var(--on-inverse-muted); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:last-child { grid-column: 1 / -1; }
}

.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-block: clamp(1.75rem, 3.5vw, 2.75rem); }

.timeline { list-style: none; }
.tl {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr) auto; gap: 1.5rem;
  padding-block: 1.6rem; border-top: 1px solid var(--line);
}
.tl:first-child { padding-top: 0; border-top: 0; }
.tl-period {
  padding-top: 0.25rem;
  font: 600 0.78rem/1.4 var(--body); letter-spacing: 0.04em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tl.is-current .tl-period { color: var(--accent-text); }
.tl h3 { font: 700 1.2rem/1.2 var(--display); letter-spacing: -0.02em; }
.tl-org { margin-top: 0.2rem; font-size: 0.92rem; color: var(--muted); }
.tl ul {
  display: grid; gap: 0.5rem; margin-top: 0.85rem; padding-left: 1.1rem; max-width: 70ch;
  font-size: 0.93rem; color: var(--muted);
}
.tl li::marker { color: var(--accent); }
@media (max-width: 640px) {
  .tl { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.4rem; }
  .tl-period { grid-column: 1 / -1; padding-top: 0; }
}

.plain-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
.plain-list--single { grid-template-columns: 1fr; }
.plain-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.plain-list strong { display: block; font: 700 1rem/1.3 var(--display); letter-spacing: -0.01em; }
.plain-list span { font-size: 0.86rem; color: var(--muted); }
.plain-list a { color: inherit; text-decoration: none; }
.plain-list a:hover strong { color: var(--accent-text); }
@media (max-width: 640px) { .plain-list { grid-template-columns: 1fr; } }

.spec > div {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.spec > div:first-child { padding-top: 0; border-top: 0; }
.spec dt {
  padding-top: 0.25rem;
  font: 600 0.74rem/1.4 var(--body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.spec dd a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 640px) { .spec > div { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ── FOOTER ── */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem); padding-block: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--muted);
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); }
