/* ═══ shared base ═══════════════════════════════════════════════════════
   Nav, scroll mechanics and type are shared across the whole site.
   Each project section owns its own palette and mood below.              */
:root {
  --bg: #0a0a0a;
  --fg: #f2f2f2;
  --muted: #8a8a8a;

  /* 8pt spacing scale - every gap below is one of these, nothing ad hoc */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px;  --s-7: 48px; --s-8: 64px;

  /* section rhythm: band padding is the only large vertical value */
  --band-pad: clamp(3.25rem, 6vw, 5rem);       /* 52 -> 80px  */
  --block-gap: clamp(1.75rem, 3.2vw, 2.75rem); /* 28 -> 44px  */

  --shell: min(1280px, 100%);
  --pad: clamp(1.25rem, 4vw, 3rem);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font: 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }

/* reading progress; the colour is whichever section you are standing in */
#rail {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30;
  background: rgba(255,255,255,.08); pointer-events: none;
}
#rail i {
  display: block; height: 100%; width: 0;
  background: var(--rail, #e62b1e);
  transition: background .5s ease;
}
#nav a.here { opacity: 1; }

/* floating section guide - where you are, not just how far */
#guide {
  position: fixed; right: clamp(.75rem, 2vw, 1.75rem); top: 50%;
  transform: translateY(-50%); z-index: 25;
  display: grid; gap: var(--s-4);
}
#guide a {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--s-3);
  text-decoration: none; color: var(--rail, #f2f2f2);
}
#guide .tick {
  display: block; width: 46px; height: 2px; flex: none;
  background: currentColor; opacity: .3;
  transform: scaleX(.55); transform-origin: right center;
  transition: transform .35s ease, opacity .35s ease;
}
#guide a.here .tick { transform: none; opacity: 1; }
#guide .tag {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  opacity: 0; transform: translateX(6px);
  transition: opacity .3s ease, transform .3s ease;
  white-space: nowrap; order: -1;
}
#guide a.here .tag, #guide a:hover .tag, #guide a:focus-visible .tag { opacity: 1; transform: none; }
@media (max-width: 860px) { #guide { display: none; } }
@media (prefers-reduced-motion: reduce) {
  #guide .tick, #guide .tag { transition: none; }
}
#nav a.here::after {
  content: ""; display: block; height: 1px; margin-top: 3px;
  background: currentColor;
}

#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; gap: 1.75rem; align-items: center;
  padding: 1rem var(--pad);
  mix-blend-mode: difference;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
}
#nav a { color: #fff; text-decoration: none; opacity: .7; }
#nav a:hover, #nav a:focus-visible { opacity: 1; }
#nav .brand { margin-right: auto; opacity: 1; font-weight: 700; }

/* ═══ hero: helmet / face reveal ════════════════════════════════════════ */
#hero {
  min-height: 100vh; padding: var(--pad);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 2rem;
}
#hero h1 { font-size: clamp(2.25rem, 8vw, 6rem); font-weight: 700; letter-spacing: -.03em; line-height: .95; }
.spline-slot { width: min(100%, 860px); aspect-ratio: 1 / 1; max-height: 68vh; display: grid; place-items: center; }
.spline-slot model-viewer, .spline-slot iframe, .spline-slot canvas {
  width: 100%; height: 100%; border: 0; display: block;
  --poster-color: transparent;
  --progress-bar-color: #e62b1e;
  background: transparent;
}


/* ═══ PROJECT 01 — TEDx FTUHanoi 2025 "Aperture" ════════════════════════
   Camera-lens vibe: near-black ground, TED red as the only accent,
   f-stop readouts as chrome, iris geometry, focus-pull on reveal.        */
#tedx {
  --red: #e62b1e;
  --ink: #0b0b0c;
  --ink-2: #141416;
  --paper: #ededea;
  --dim: #8e8e92;
  --rule: rgba(255, 255, 255, .13);
  background: var(--ink); color: var(--paper);
}
#tedx .band { padding-block: var(--band-pad); border-top: 1px solid var(--rule); position: relative; }
#tedx .band--tint { background: var(--ink-2); }
#tedx .big {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 500;
  line-height: 1.25; letter-spacing: -.02em; max-width: 24ch;
}
#tedx .prose > * + * { margin-top: 1.25rem; }
#tedx .prose p { color: #c9c9cc; font-weight: 300; max-width: 62ch; }
#tedx .prose strong { color: var(--paper); font-weight: 500; }

/* f-stop readout — the section's recurring chrome */
.fstop {
  font-size: 12px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--red);
  font-variant-numeric: tabular-nums;
}
.label {
  font-size: 12px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--dim);
}
.label + .big, .label + h2 { margin-top: var(--s-3); }

/* ── title band, with the iris sitting behind it ── */
/* title band: wordmark + poster, facts spanning underneath */
.head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 0 clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.head-grid > div:first-child { grid-column: 1 / -1; }   /* wordmark keeps the full width */
.head-grid > .facts { grid-column: 1; grid-row: 2; }
.head-grid > .poster { grid-column: 2; grid-row: 2; margin-top: var(--block-gap); }
.poster { position: relative; border: 1px solid var(--rule); overflow: hidden; line-height: 0; }
.poster img { width: 100%; height: auto; transition: transform .8s ease, filter .8s ease; filter: saturate(.95); }
.poster:hover img { transform: scale(1.03); filter: none; }
@media (max-width: 800px) {
  .head-grid { grid-template-columns: 1fr; }
  .head-grid > .facts, .head-grid > .poster { grid-column: 1; grid-row: auto; }
  .head-grid > .poster { max-width: 300px; margin-top: 2rem; }
}

.tedx-head { overflow: hidden; padding-block: calc(var(--band-pad) * 1.5) var(--band-pad); }
.tedx-head h2 {
  font-size: clamp(3.5rem, 15vw, 11rem); font-weight: 700;
  letter-spacing: -.045em; line-height: .88; margin-top: .5rem;
}
.tedx-head .sub {
  font-size: clamp(1rem, 2.4vw, 1.5rem); font-weight: 300;
  color: var(--dim); letter-spacing: .01em; margin-top: .75rem;
}
.facts {
  list-style: none; display: grid; gap: var(--s-5) var(--s-7);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: var(--block-gap); padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}
.facts li { font-size: 15px; font-weight: 400; }
.facts span {
  display: block; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dim); margin-bottom: .4rem;
}

/* six-blade iris, built from rotated wedges */
.blades {
  position: absolute; top: -12%; right: -9%;
  width: min(760px, 78vw); aspect-ratio: 1; pointer-events: none;
  animation: iris-breathe 14s ease-in-out infinite;
}
.blades i {
  position: absolute; inset: 0;
  border: 1px solid var(--red); opacity: .34;
  clip-path: polygon(50% 50%, 100% 8%, 100% 92%);
}
.blades i:nth-child(2) { transform: rotate(60deg); }
.blades i:nth-child(3) { transform: rotate(120deg); }
.blades i:nth-child(4) { transform: rotate(180deg); }
.blades i:nth-child(5) { transform: rotate(240deg); }
.blades i:nth-child(6) { transform: rotate(300deg); }
@keyframes iris-breathe { 50% { transform: rotate(18deg) scale(.93); } }

/* ── two-column label / content bands ── */
.split { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

#tedx blockquote {
  border-left: 2px solid var(--red); padding-left: 1.5rem;
  font-style: italic; font-weight: 300; color: var(--dim); max-width: 52ch;
}
#tedx blockquote cite {
  display: block; margin-top: .75rem; font-style: normal;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--red);
}

/* ── the handwritten theme notes ── */
.notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 800px) { .notes { grid-template-columns: 1fr; } }
.notes figure { position: relative; }
.notes figure img { border: 1px solid var(--rule); }
.notes figcaption { margin-top: var(--s-3); }
.notes img { width: 100%; height: auto; filter: saturate(.9) contrast(1.04); transition: transform .8s ease; }
.notes figure:hover img { transform: scale(1.02); }
.notes figure img { max-height: 520px; object-fit: cover; object-position: center 28%; }
.notes .cap { font-size: 13px; color: var(--dim) !important; letter-spacing: .01em; }

/* .split is a 220px label column + content; keep the key art in the content one */
.keyart { display: block; margin-top: var(--block-gap); grid-column: 2; }
@media (max-width: 800px) { .keyart { grid-column: 1; } }
.keyart img { width: 100%; height: auto; border: 1px solid var(--rule); }
.keyart figcaption { margin-top: var(--s-3); }

/* ── the lineup ── */
.talks { display: grid; gap: clamp(2rem, 5vw, 3.5rem); margin-top: var(--block-gap); }
.talk { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
@media (max-width: 800px) { .talk { grid-template-columns: 1fr; } }

.talk-play {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--rule); background: none; cursor: pointer;
  overflow: hidden; line-height: 0;
}
.talk-play img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  /* focus pull: soft until you reach it, sharp on hover */
  filter: saturate(.65) contrast(1.05) blur(6px);
  transform: scale(1.04);
  transition: filter .8s ease, transform .8s ease;
}
.band.in .talk-play img { filter: saturate(.8) contrast(1.02) blur(0); transform: none; }
.talk-play:hover img, .talk-play:focus-visible img { filter: none; transform: scale(1.02); }

/* iris shutter that opens over the thumbnail */
.talk-play .iris {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 40%, rgba(11,11,12,.38) 41%),
    linear-gradient(transparent 55%, rgba(11,11,12,.3));
  transition: opacity .5s ease;
}
.talk-play::after {
  content: ""; position: absolute; inset: 50% auto auto 50%;
  width: 62px; height: 62px; margin: -31px 0 0 -31px;
  border: 2px solid var(--red); border-radius: 50%;
  background: rgba(230, 43, 30, .14);
  transition: transform .4s ease, background .4s ease;
}
.talk-play:hover::after, .talk-play:focus-visible::after { transform: scale(1.12); background: rgba(230, 43, 30, .3); }
.talk-play:hover .iris, .talk-play:focus-visible .iris { opacity: .45; }
.talk-play .dur {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font-size: 11px; letter-spacing: .12em; font-variant-numeric: tabular-nums;
  background: rgba(11, 11, 12, .8); color: var(--paper); padding: 4px 8px;
}
.talk-play iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

.talk-meta h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 500; line-height: 1.25; letter-spacing: -.015em; margin-top: .5rem; }
.talk-meta .who { font-size: 15px; color: var(--paper); margin-top: .6rem; }
.talk-meta .bio { font-size: 14px; font-weight: 300; color: var(--dim); margin-top: .2rem; }

.foot { margin-top: var(--block-gap); font-size: 14px; color: var(--dim); }
/* a lede sits under its heading, not after a block of content */
.foot--lede { margin-top: var(--s-4); max-width: 62ch; }
.foot a { color: var(--red); text-underline-offset: 3px; }

/* ── the curation team ── */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--block-gap); }
@media (max-width: 640px) { .team { grid-template-columns: 1fr; } }
/* the TEDxposure set is three wide, on one row, to keep the band short */
@media (min-width: 641px) { .team--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.team figure { border: 1px solid var(--rule); overflow: hidden; line-height: 0; }
.team img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2;
  filter: grayscale(1) contrast(1.05); transition: filter .7s ease, transform .7s ease; }
.team figure:hover img { filter: none; transform: scale(1.02); }

/* the core-team photograph gets a band to itself, so let it run large */
.core-shot { margin-top: var(--block-gap); display: block; }
/* the width/height attributes make both dimensions definite, so aspect-ratio is
   ignored here - set the height outright and let object-fit do the cropping. */
.core-shot img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; object-position: center bottom;
  border: 1px solid var(--rule); filter: grayscale(1) contrast(1.04); transition: filter .8s ease; }
.core-shot:hover img { filter: none; }
.core-shot figcaption { margin-top: var(--s-3); }

/* ── collage ── */
.collage { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-4); margin-top: var(--block-gap); }
/* ten photographs: force 5 columns once there is room, so the last row is
   full rather than a ragged pair */
@media (min-width: 1100px) { .collage { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.collage img { aspect-ratio: 3 / 2; }
.collage figure { overflow: hidden; border: 1px solid var(--rule); line-height: 0; }
.collage img { width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.92); transition: filter .6s ease, transform .6s ease; }
.collage figure:hover img { filter: none; transform: scale(1.03); }

/* ── links ── */
.links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); margin-top: var(--s-5); }
.links a {
  display: inline-block; padding: .65rem 1.4rem; border: 1px solid var(--rule);
  border-radius: 999px; font-size: 14px; text-decoration: none;
  transition: border-color .25s ease, color .25s ease;
}
.links a:hover, .links a:focus-visible { border-color: var(--red); color: var(--red); }

/* ═══ CV ════════════════════════════════════════════════════════════════
   No project theme here - this is the neutral base the whole site shares. */
#cv {
  --rule: rgba(255, 255, 255, .13);
  --dim: #8a8a8a;
  background: var(--bg); color: var(--fg);
}
#cv .band { padding-block: var(--band-pad); border-top: 1px solid var(--rule); }
#cv .label { color: var(--dim); }
#cv h2 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 700; letter-spacing: -.035em; line-height: .95; margin-top: var(--s-3); }
#cv .facts { border-top-color: var(--rule); }
#cv .facts span { color: var(--dim); }

.cv-head { padding-block: calc(var(--band-pad) * 1.3) var(--band-pad) !important; }

.roles { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.role h3 a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.role h3 a:hover { border-color: currentColor; }
.role h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: -.015em; margin-top: var(--s-2); }
.role-when { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #e62b1e; font-variant-numeric: tabular-nums; }
#union .role-when { color: var(--blue); }
.role-org { font-size: 14px; font-weight: 300; color: var(--dim); margin-top: var(--s-1); }
.role-link { margin-top: var(--s-4); font-size: 14px; }
.role-link a { color: var(--dim); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.role-link a:hover, .role-link a:focus-visible { color: var(--fg); }

.bullets { list-style: none; margin-top: var(--s-4); display: grid; gap: var(--s-3); max-width: 68ch; }
.bullets li { position: relative; padding-left: 1.25rem; font-weight: 300; font-size: 15px; line-height: 1.6; color: #c3c3c7; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: currentColor; opacity: .6; }
.bullets strong { font-weight: 600; color: var(--fg); }
#union .bullets li { color: #3C4C58; }
#union .bullets strong { color: var(--ink); }

.skills { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: var(--s-4) var(--s-5); align-items: baseline; }
.skills dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.skills dd { font-size: 15px; font-weight: 300; }
@media (max-width: 640px) { .skills { grid-template-columns: 1fr; gap: var(--s-2); } .skills dd { margin-bottom: var(--s-4); } }

.certs { list-style: none; display: grid; gap: 0; }
.certs li {
  display: grid; grid-template-columns: 110px minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s-4); align-items: baseline;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--rule);
}
.certs li:first-child { border-top: 1px solid var(--rule); }
.cert-when { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }
.cert-what { font-size: 16px; font-weight: 500; }
.cert-who { font-size: 14px; font-weight: 300; color: var(--dim); }
@media (max-width: 760px) {
  .certs li { grid-template-columns: 1fr; gap: var(--s-1); }
}

/* ═══ placeholders — delete as real content lands ═══════════════════════ */
.ph {
  display: grid; place-items: center; min-height: 180px; padding: 1rem;
  border: 1px dashed var(--rule, rgba(255,255,255,.2)); color: var(--dim, #8a8a8a);
  font-size: .85rem; text-align: center;
}
.todo { color: #e62b1e !important; }

/* ═══ scroll reveal ═════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blades { animation: none; }
  .talk-play img { filter: saturate(.8); transform: none; transition: none; }
}

/* ═══ PROJECT 02 — FTU Union of Students ════════════════════════════════
   Light, institutional, and built on the crest's own azure (#0092E0,
   sampled from the logo) — deliberately the inverse of the TEDx band.   */
#union {
  --blue: #0092E0;
  --blue-deep: #0A5C96;
  --sky: #35A3E8;
  --ice: #E8F6FD;
  --paper: #FFFFFF;
  --ink: #0C1C27;
  --dim: #5A6B78;
  --rule: #D5E6F1;
  background: var(--paper); color: var(--ink);
}
#union .band { padding-block: var(--band-pad); border-top: 1px solid var(--rule); position: relative; }
#union .band--ice { background: var(--ice); }
#union h2 {
  font-size: clamp(2.5rem, 7vw, 4.75rem); font-weight: 700;
  letter-spacing: -.035em; line-height: .95; margin-top: var(--s-2);
}
#union .big { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; max-width: 24ch; }
#union .label { color: var(--dim); }
#union .label + .big { margin-top: var(--s-3); }
#union .prose p { color: #3C4C58; font-weight: 300; max-width: 62ch; }
#union .prose > * + * { margin-top: var(--s-5); }
#union .sub { font-size: clamp(.95rem, 1.6vw, 1.15rem); font-weight: 300; color: var(--dim); margin-top: var(--s-3); }
#union .facts { border-top-color: var(--rule); }
#union .facts span { color: var(--dim); }
#union .foot { color: var(--dim); }

.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--blue);
}

/* the crest, sitting where the TEDx poster sits */
#union .crest { grid-column: 2; grid-row: 2; margin-top: var(--block-gap); }
#union .crest img { width: 100%; max-width: 260px; height: auto; display: block; margin-left: auto; }
@media (max-width: 800px) {
  #union .crest { grid-column: 1; grid-row: auto; }
  #union .crest img { margin-left: 0; }
}

/* the work band is text-only otherwise; this gives it an anchor */
.sfin { display: block; margin-top: var(--block-gap); max-width: 420px; }
.sfin img { width: 100%; height: auto; border: 1px solid var(--rule); }
.sfin figcaption { margin-top: var(--s-3); font-size: 13px; color: var(--dim); }

/* four photographs, two across - one row of four made them postage stamps */
.bnc { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin-top: var(--block-gap); }
@media (min-width: 760px) { .bnc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); } }
.bnc figure { overflow: hidden; border: 1px solid var(--rule); line-height: 0; background: #06121c; }
.bnc img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.bnc figure:hover img { transform: scale(1.03); }

/* Fixed row height, not aspect-ratio on the image: width:100% + height:100%
   makes both dimensions definite, which makes aspect-ratio a no-op and lets a
   portrait photo stretch its whole row. This keeps every row the same height,
   including the one tile that spans two columns. */
.union-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-4); margin-top: var(--block-gap);
  grid-auto-rows: clamp(140px, 14.5vw, 195px);
}
/* seven photographs: four columns, last one spans two so the row fills */
@media (min-width: 1100px) {
  .union-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* eight photos, a clean 4x2 */
}
.union-grid figure { overflow: hidden; border: 1px solid var(--rule); line-height: 0; background: var(--ice); }
.union-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: filter .6s ease, transform .6s ease;
}
.union-grid figure:hover img { transform: scale(1.03); }
#union .todo { color: var(--blue-deep) !important; }

/* ── off the clock ── */
.kickabout { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-4); margin-top: var(--block-gap); }
.kickabout figure { overflow: hidden; border: 1px solid var(--rule); line-height: 0; }
.kickabout img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s ease; }
.kickabout figure:hover img { transform: scale(1.03); }
.clip { margin-top: var(--s-4); }

/* ── the one moving thing that is not the helmet ── */
.clip { display: block; }
.clip video {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule); background: #000;
}
.clip figcaption { margin-top: var(--s-3); font-size: 13px; color: var(--dim); }

/* ═══ lightbox ══════════════════════════════════════════════════════════ */
.zoomable { cursor: zoom-in; }
.lightbox {
  border: 0; padding: 0; max-width: 100%; max-height: 100%;
  width: 100%; height: 100%; background: transparent; color: #f2f2f2;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(6, 6, 8, .97); backdrop-filter: blur(10px); }
.lightbox figure {
  height: 100%; margin: 0; padding: clamp(1rem, 4vw, 3rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-4);
}
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 8rem);
  width: auto; height: auto; object-fit: contain; cursor: zoom-out;
}
.lightbox figcaption {
  font-size: 14px; font-weight: 300; color: #9a9a9e;
  text-align: center; max-width: 60ch;
}
.lightbox-close {
  position: fixed; top: 1rem; right: 1.25rem; z-index: 1;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #f2f2f2;
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .25s ease;
}
.lightbox-close:hover, .lightbox-close:focus-visible { background: rgba(255, 255, 255, .18); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in .2s ease both; }
  @keyframes lb-in { from { opacity: 0; transform: scale(.98); } }
}
