/* =========================================================
   Ethan Hong — ethanhongrobot.com
   Design: bright & modern. White page, one bold accent,
   big type, photo-forward.
   ========================================================= */

:root {
  --ink: #141414;
  --ink-2: #4A4A4A;        /* body text */
  --ink-3: #6E6E6E;        /* meta text */
  --paper: #FFFFFF;
  --soft: #F6F4F1;         /* warm off-white panels */
  --line: #E7E5E1;
  --accent: #F2542D;       /* signal orange — shapes, highlights, big type */
  --accent-text: #C2381A;  /* darker orange for small text on white (AA) */
  --accent-soft: #FFE9E2;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.15; }
p { margin: 0 0 1.1em; max-width: 68ch; }
strong { color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.03em; white-space: nowrap;
}
.logo::after { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-left: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 11px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { color: var(--accent-text); }
.nav a.nav-resume {
  margin-left: 8px; border: 1.5px solid var(--ink); font-size: 0.85rem; padding: 6px 14px;
}
.nav a.nav-resume:hover { background: var(--ink); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav a { padding: 14px 4px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: none; }
  .nav a.nav-resume { margin: 16px 0 0; text-align: center; border-radius: 999px; border-bottom: 1.5px solid var(--ink); }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1rem; padding: 14px 22px; border-radius: 999px;
  border: 2px solid var(--ink); transition: transform .15s, background .15s;
}
.btn:hover { color: #fff; background: #000; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn[aria-disabled="true"] {
  background: var(--soft); color: var(--ink-3); border-color: var(--line); cursor: default; transform: none;
}
.btn .tag-soon {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
  background: var(--accent-soft); color: var(--accent-text); padding: 3px 8px; border-radius: 999px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink);
  text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.arrow-link::after { content: "→"; transition: transform .15s; }
.arrow-link:hover { color: var(--accent-text); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: calc(var(--section) * .6) 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 800; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); margin-bottom: 14px;
}
.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.55; color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--wide-text { grid-template-columns: 1.25fr 1fr; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 820px) {
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { max-width: 60ch; }
.hero-image { margin-top: clamp(32px, 5vw, 56px); }

/* ---------- Media ---------- */
.media { margin: 0; }
.media img, .video {
  width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); background: var(--soft);
}
.ratio-16x9 img, .video { aspect-ratio: 16 / 9; }
.ratio-4x3 img { aspect-ratio: 4 / 3; }
.ratio-4x5 img { aspect-ratio: 4 / 5; }
.ratio-1x1 img { aspect-ratio: 1 / 1; }
.ratio-3x4 img { aspect-ratio: 3 / 4; }
.media figcaption { font-size: 0.92rem; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.media figcaption strong { color: var(--ink); }

.video { position: relative; overflow: hidden; border: 0; display: block; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px;
  border: 2px dashed #CFCBC5; border-radius: var(--radius); color: var(--ink-3); padding: 20px; font-size: 0.95rem;
}
.video-placeholder::before {
  content: "▶"; display: grid; place-items: center; margin: 0 auto; width: 64px; height: 64px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.4rem; padding-left: 4px;
}
.video-placeholder strong { color: var(--ink); font-size: 1.05rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .gallery, .gallery--2 { grid-template-columns: 1fr; } }

/* ---------- Big statement ---------- */
.statement {
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.025em;
  max-width: 24ch; margin: 1.2em 0;
  padding-left: 22px; border-left: 6px solid var(--accent);
}
.statement--center { margin-left: auto; margin-right: auto; text-align: center; border: 0; padding: 0; max-width: 22ch; }
.statement--center::before { content: ""; display: block; width: 56px; height: 6px; background: var(--accent); border-radius: 3px; margin: 0 auto 28px; }

/* ---------- Home hero ---------- */
.home-hero { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.home-hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); margin-bottom: .3em; }
.home-hero h1 .wave { color: var(--accent); }
.home-hero .lead { max-width: 40ch; }
.nowrap { white-space: nowrap; }

.photo-grid {
  list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 20px);
}
.photo-grid figure { margin: 0; }
.photo-grid img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.photo-grid li:hover img { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 14px 32px rgba(20,20,20,.14); }
.photo-grid li:nth-child(even):hover img { transform: translateY(-4px) rotate(.6deg); }
.photo-grid figcaption { font-size: .88rem; font-weight: 600; color: var(--ink-3); margin-top: 8px; line-height: 1.35; }
.photo-grid figcaption a { color: var(--accent-text); text-decoration: none; }
.photo-grid figcaption a:hover { text-decoration: underline; }
@media (max-width: 760px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.intro .question { margin-top: 8px; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }
.question {
  margin: 36px 0; padding: 28px 30px; background: var(--soft); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.2; letter-spacing: -0.02em;
  position: relative; padding-right: 72px;
}
.question::before { content: "?"; position: absolute; right: 22px; top: 6px; font-size: 4.5rem; color: var(--accent); opacity: .25; line-height: 1; }

/* ---------- TEDx module ---------- */
.tedx {
  background: var(--accent); color: var(--ink); border-radius: calc(var(--radius) * 1.4);
  padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: auto 1fr 240px; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.tedx h2, .tedx p, .tedx .eyebrow { color: var(--ink); }
.tedx p { font-size: 1.15rem; }
.tedx .date {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 26px; text-align: center;
  font-family: var(--font-display); line-height: 1; min-width: 150px;
}
.tedx .date .m { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; font-weight: 700; color: var(--accent); }
.tedx .date .d { display: block; font-size: 4.2rem; font-weight: 800; margin: 6px 0; }
.tedx .date .y { display: block; font-size: 1rem; font-weight: 600; opacity: .8; }
.tedx .btn { background: var(--ink); }
.tedx h2 { font-size: clamp(1.5rem, 6.2vw, 3rem); overflow-wrap: anywhere; }
.tedx-photo { margin: 0; }
.tedx-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; transform: rotate(2deg); box-shadow: 0 16px 36px rgba(20,20,20,.22); }
@media (max-width: 960px) { .tedx { grid-template-columns: auto 1fr; } .tedx-photo { grid-column: 1 / -1; max-width: 300px; justify-self: center; } }
@media (max-width: 700px) { .tedx { grid-template-columns: 1fr; } .tedx .date { justify-self: start; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,20,20,.08); border-color: transparent; color: var(--ink-2); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; background: var(--soft); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 1rem; margin-bottom: 18px; }
.card .go { margin-top: auto; font-weight: 700; color: var(--ink); }
.card .go::after { content: " →"; color: var(--accent); }

/* ---------- RoboCup timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.timeline .yr { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.timeline .place { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.timeline .place img { height: auto; width: 28px; height: 21px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); white-space: nowrap;
}
.timeline li.win { background: linear-gradient(90deg, var(--accent-soft), transparent); }
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 64px 1fr; }
  .timeline .yr { font-size: 1.3rem; }
  .timeline .badge { grid-column: 2; justify-self: start; }
}

/* ---------- History chain ---------- */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 32px 0; padding: 0; list-style: none; }
.chain li {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 10px 22px;
}
.chain li.arrow { border: 0; background: none; padding: 0 2px; color: var(--accent); }
.chain li:last-child { background: var(--ink); color: #fff; }
.prompts { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.prompts li {
  font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.25rem;
  background: var(--soft); border-radius: var(--radius-sm); padding: 18px 22px; border-left: 5px solid var(--accent);
}
@media (max-width: 560px) { .prompts { grid-template-columns: 1fr; } }

/* ---------- Explore ---------- */
.big-stat { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.big-stat .num {
  font-family: var(--font-display); font-weight: 800; color: var(--accent);
  font-size: clamp(6rem, 18vw, 12rem); line-height: .8; letter-spacing: -0.05em;
}
.big-stat h1 { margin-bottom: .1em; max-width: 9ch; }
.map { margin: 0; background: var(--soft); border-radius: calc(var(--radius) * 1.4); padding: clamp(16px, 3vw, 40px); }
.map img { width: 100%; height: auto; }
.map figcaption { display: flex; gap: 20px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-3); margin-top: 14px; }
.map .key::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; background: var(--accent); }
.map .key.off::before { background: #E7E5E1; }

.countries { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .countries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .countries { grid-template-columns: 1fr; } }
.countries li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.countries .c-name { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.countries .c-name img { width: 32px; height: 24px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; object-fit: cover; }
.countries .c-places { display: block; font-size: .95rem; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.countries li.wide { grid-column: 1 / -1; }

/* ---------- Sports ---------- */
.events { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; padding: 0; list-style: none; }
.events li {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink);
  background: var(--accent-soft); border-radius: var(--radius-sm); padding: 10px 18px;
}
.belt { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.belt .stripe { width: 72px; height: 16px; background: var(--ink); border-radius: 3px; position: relative; }
.belt .stripe::after { content: ""; position: absolute; right: 10px; top: 0; bottom: 0; width: 12px; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); }
.belt span { font-weight: 700; color: var(--ink); }

/* ---------- Publications ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.filters button {
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 999px;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pub-group { margin-top: 56px; }
.pub-group > h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.pub-group > h3 { margin-top: 40px; color: var(--ink-3); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-body); font-weight: 800; }
.pubs { list-style: none; padding: 0; margin: 0; }
.pub { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pub .yr { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); padding-top: 2px; }
.pub h4 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.25; margin-bottom: 8px; letter-spacing: -0.01em; }
.pub .type {
  display: inline-block; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-text); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; margin-right: 8px; vertical-align: 1px;
}
.pub .venue { color: var(--ink-2); font-size: 1rem; }
.pub .role { display: block; font-size: .95rem; color: var(--ink-3); margin-top: 4px; }
.pub .role strong { color: var(--accent-text); font-weight: 700; }
.pub p { font-size: 1rem; margin: 10px 0 0; }
.pub.has-cover { grid-template-columns: 72px 1fr 120px; }
.pub .cover img { aspect-ratio: 3 / 4; width: 120px; height: auto; object-fit: cover; border-radius: 8px; background: var(--soft); }
.pub .upcoming { background: var(--accent); color: var(--ink); }
@media (max-width: 640px) {
  .pub, .pub.has-cover { grid-template-columns: 1fr; gap: 6px; }
  .pub .cover { order: -1; }
}
.is-hidden { display: none !important; }

/* ---------- Next page ---------- */
.next {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 36px; margin-top: 8px;
}
.next .label { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.next a.big {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 3rem); color: var(--ink);
  text-decoration: none; letter-spacing: -0.03em;
}
.next a.big::after { content: " →"; color: var(--accent); }
.next a.big:hover { color: var(--accent-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9C9C9; padding: 72px 0 40px; margin-top: var(--section); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; line-height: 1; letter-spacing: -0.03em; margin: 0 0 16px; }
.footer-name span { color: var(--accent); }
.site-footer h4 { font-family: var(--font-body); color: #8C8C8C; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .email { font-size: 1.2rem; font-weight: 700; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2E2E2E; font-size: .9rem; color: #8C8C8C; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.section + .site-footer, .next-section + .site-footer { margin-top: 0; }

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

/* ---------- Food Angel page ---------- */
.stats { list-style: none; padding: 0; margin: clamp(32px, 5vw, 48px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats li { background: var(--soft); border-radius: var(--radius); padding: 22px 24px; border-top: 5px solid var(--accent); }
.stats .n { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.stats .l { display: block; margin-top: 8px; font-size: 1rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

.decisions { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.decisions li { background: #fff; border-radius: var(--radius-sm); padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 1.05rem; }
.decisions .k { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; background: var(--accent); color: var(--ink); border-radius: 999px; padding: 5px 12px; min-width: 96px; text-align: center; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); counter-reset: none; }
.steps li { position: relative; }
.steps .step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.steps h3 { margin: 0; }
.steps p { font-size: 1rem; margin-bottom: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.clip video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #000; display: block; }
.steps li { display: flex; flex-direction: column; }
.steps .media { margin-top: auto; }

/* ---------- Sports page ---------- */
.sport-jump { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sport-jump a { display: inline-block; font-weight: 700; color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; }
.sport-jump a:hover { background: var(--ink); color: #fff; }
.stats--stack { grid-template-columns: 1fr; margin-top: 0; }
.stats--stack li { background: #fff; }
.photo-grid .media img { border-radius: var(--radius-sm); }

.belts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.8vw, 20px); position: relative; }
.belts li { display: flex; flex-direction: column; gap: 10px; }
.belt-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .85rem; color: var(--ink); }
.belt-chip::before { content: ""; width: 34px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); background: var(--c); }
.belt--yellow { --c: #F6C915; }
.belt--green { --c: #2E9E4F; }
.belt--brown { --c: #7A4A26; }
.belt--redblack { --c: linear-gradient(90deg, #C8102E 0 50%, #141414 50% 100%); }
.belt--black { --c: #141414; }
.belts .media figcaption { font-size: .88rem; }
@media (max-width: 900px) { .belts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- History page ---------- */
.then-now { margin-top: 40px; }
.then-now img { width: 100%; height: auto; border-radius: var(--radius); background: #fff; }
.gallery .media figcaption strong { color: var(--ink); }
.gallery:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
.gallery:has(> :nth-child(5):last-child) > :nth-child(-n+3) { grid-column: span 2; }
.gallery:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 760px) {
  .gallery:has(> :nth-child(5):last-child) { grid-template-columns: 1fr; }
  .gallery:has(> :nth-child(5):last-child) > * { grid-column: auto !important; }
}

/* ---------- Publications & Talks page ---------- */
.talks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .talks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .talks { grid-template-columns: 1fr; } }
.talk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.talk img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.talk-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.talk-meta { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin-bottom: 8px; }
.talk h4 { font-size: 1.15rem; line-height: 1.25; margin-bottom: 8px; letter-spacing: -0.01em; }
.talk p { font-size: .97rem; margin: 0 0 12px; }
.talk .arrow-link { margin-top: auto; align-self: flex-start; }
.talk--tedx { border: 0; background: var(--accent); }
.talk--tedx .talk-meta, .talk--tedx h4, .talk--tedx p { color: var(--ink); }
.talk--tedx img { object-position: 50% 30%; }
.talk--tedx .arrow-link { border-bottom-color: var(--ink); }

.media-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.media-list li { border-bottom: 1px solid var(--line); }
.media-list a { display: grid; grid-template-columns: 160px 1fr auto; gap: 6px 24px; align-items: baseline; padding: 18px 4px; text-decoration: none; color: var(--ink-2); }
.media-list a::after { content: "↗"; color: var(--accent); font-weight: 800; grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.media-list a:hover .m-title { color: var(--accent-text); }
.m-outlet { font-weight: 800; color: var(--ink); grid-row: 1 / span 2; }
.m-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.1rem; line-height: 1.3; }
.m-note { font-size: .92rem; color: var(--ink-3); grid-column: 2; }
@media (max-width: 600px) { .media-list a { grid-template-columns: 1fr auto; } .m-outlet { grid-row: auto; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); } .m-note { grid-column: 1; } .media-list a::after { grid-column: 2; grid-row: 1 / span 3; } }
.talk--tedx { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; }
.talk--tedx img { height: 100%; aspect-ratio: auto; max-height: 360px; }
.talk--tedx .talk-body { justify-content: center; padding: clamp(20px, 3vw, 40px); }
.talk--tedx h4 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.talk--tedx p { font-size: 1.1rem; }
@media (max-width: 600px) { .talk--tedx { grid-template-columns: 1fr; } .talk--tedx img { max-height: none; aspect-ratio: 4 / 3; } }

/* ---------- Explore page ---------- */
.photo-grid .media figcaption { font-size: .88rem; font-weight: 600; }
.mosaic > li:first-child { grid-column: span 2; }
.mosaic > li:first-child .media { height: 100%; display: flex; flex-direction: column; }
.mosaic > li:first-child img { aspect-ratio: auto; flex: 1; min-height: 0; height: 100%; }
@media (max-width: 760px) { .mosaic > li:first-child img { aspect-ratio: 16 / 9; } }
.map .key.pin::before { width: 10px; height: 10px; border-radius: 50%; background: #141414; box-shadow: 0 0 0 2px #fff; }
.map .key.pin--state::before { background: #fff; box-shadow: inset 0 0 0 2.5px #141414; }
.region-maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.region-maps figure { margin: 0; background: var(--soft); border-radius: var(--radius); padding: 12px; overflow: hidden; }
.region-maps img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.region-maps figcaption { font-size: .9rem; font-weight: 700; color: var(--ink); margin: 10px 4px 2px; }
@media (max-width: 860px) { .region-maps { grid-template-columns: 1fr; } }
.region-maps a { display: block; }
.region-maps a:hover img { outline: 3px solid var(--accent); outline-offset: -3px; }
.map-note { font-size: .88rem; color: var(--ink-3); margin-top: 10px; }

.lessons { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: lesson; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lessons li { counter-increment: lesson; background: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); position: relative; }
.lessons li::before { content: "0" counter(lesson); display: block; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--accent-text); letter-spacing: .05em; margin-bottom: 12px; }
.lessons h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.lessons p { margin: 0; }
@media (max-width: 760px) { .lessons { grid-template-columns: 1fr; } }
.video-fallback { display: inline-block; margin-top: 10px; font-size: .92rem; font-weight: 700; color: var(--ink-3); text-decoration: none; }
.video-fallback:hover { color: var(--accent-text); }
.video-link { position: absolute; inset: 0; display: block; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-link img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .4s; }
.video-link:hover img { opacity: 1; transform: scale(1.02); }
.video-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.video-play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.video-link:hover .video-play { transform: scale(1.08); }
.video-label { position: absolute; left: 16px; bottom: 16px; background: rgba(20,20,20,.85); color: #fff; font-weight: 700; font-size: .95rem; padding: 8px 14px; border-radius: 999px; }
.explore-hero { align-items: start; }
.explore-hero .media { margin-top: 8px; }
@media (max-width: 820px) { .explore-hero .media { max-width: 480px; } }
.explore-hero .big-stat { flex-wrap: nowrap; gap: 14px; }
.explore-hero .big-stat .num { font-size: clamp(5rem, 10vw, 8.5rem); }
.explore-hero .big-stat h1 { max-width: 8ch; font-size: clamp(2rem, 3.6vw, 3.2rem); }
