/* ==========================================================================
   CR7 Tribute — style.css
   Palette: deep charcoal #0A0A0D + matte champagne gold #C8A962 (low-saturation,
   cinematic "museum wall" mood) + muted era accents per career stage.
   Motion: 0.5s reveals, 0.3s hovers, prefers-reduced-motion supported
   ========================================================================== */

:root {
  --bg-0: #0A0A0D;
  --bg-1: #0F1014;
  --bg-2: #15161C;
  --bg-3: #1B1D24;
  --gold: #C8A962;
  --gold-light: #E3CB8E;
  --gold-dim: #8F7B46;
  --gold-soft: rgba(200, 169, 98, .16);
  --text: #F2F1ED;
  --text-dim: #9B9FA7;
  --text-faint: #6E727B;
  --line: rgba(200, 169, 98, .16);
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-display: "Arial Black", "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "Courier New", monospace;
  --font-sign: "Segoe Script", "Comic Sans MS", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--gold); color: #0A0A0D; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #262A32; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--gold); color: #0A0A0D; padding: 10px 16px;
  border-radius: 0 0 8px 8px; font-weight: 700; transition: top .3s;
}
.skip-link:focus { top: 0; }

/* ---------- Page loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 400;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--bg-0);
  transition: opacity .6s var(--ease), visibility .6s;
}
#loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  font-family: var(--font-display); font-size: 44px; letter-spacing: .04em;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: loaderPulse 1.6s ease-in-out infinite;
}
.loader-ring {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(200, 169, 98, .18);
  border-top-color: var(--gold);
  animation: loaderSpin 1s linear infinite;
}
.loader-text {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .4em;
  color: var(--text-faint); text-transform: uppercase;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderPulse {
  0%, 100% { opacity: .65; } 50% { opacity: 1; }
}
body.is-loading { overflow: hidden; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px;
  font-weight: 700; font-size: 15px; letter-spacing: .06em;
  border-radius: 999px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s;
  border: 1px solid transparent;
}
.btn-gold {
  color: #0A0A0D;
  background: linear-gradient(135deg, #E3CB8E 0%, #C8A962 55%, #9A7E33 100%);
  box-shadow: 0 10px 30px -10px rgba(200, 169, 98, .5);
}
.btn-gold::after {
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -12px rgba(200,169,98,.62); }
.btn-gold:hover::after { left: 130%; }
.btn-gold:active { transform: translateY(-1px) scale(.98); }
.btn-arrow { transition: transform .3s var(--ease); }
.btn-gold:hover .btn-arrow { transform: translateY(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: transparent; color: var(--text-dim);
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  transition: color .3s, border-color .3s, transform .3s var(--ease), background .3s;
}
.btn-ghost:hover { color: var(--gold-light); border-color: var(--gold-dim); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0) scale(.97); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: height .35s var(--ease), background .35s var(--ease), box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 13, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -18px rgba(0,0,0,.8);
}
.nav.shrunk { height: 58px; }
.nav-inner {
  max-width: 1280px; height: 100%; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  font-family: var(--font-display); font-size: 21px; letter-spacing: .02em;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 4px 10px; border-radius: 8px;
  transition: transform .3s var(--ease), box-shadow .3s, font-size .3s;
}
.nav.shrunk .brand-mark { font-size: 17px; }
.brand:hover .brand-mark { transform: scale(1.06); box-shadow: 0 0 24px -6px var(--gold); }
.brand-text { font-weight: 800; font-size: 14px; letter-spacing: .14em; }
.brand-text span { color: var(--text-dim); font-weight: 500; }

.nav-menu ul { display: flex; gap: 6px; }
.nav-link {
  position: relative;
  display: block; padding: 8px 14px;
  font-size: 14.5px; color: var(--text-dim); font-weight: 600;
  letter-spacing: .04em;
  transition: color .3s, transform .3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--text); transform: translateY(-1px); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .35s var(--ease), opacity .3s, width .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -8% -4%; z-index: 0;
  transform: translate3d(0, 0, 0) scale(1.06);
  transition: transform .1s linear;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
  filter: saturate(.78) contrast(1.08) brightness(.78);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(115% 90% at 50% 42%, transparent 52%, rgba(5, 5, 8, .68) 100%);
}
.hero-grad {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 12%, rgba(200,169,98,.12), transparent 55%),
    linear-gradient(180deg, rgba(10,10,13,.64) 0%, rgba(10,10,13,.2) 34%, rgba(10,10,13,.44) 66%, var(--bg-0) 98%);
}
.hero .fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-content {
  position: relative; z-index: 3;
  text-align: center; padding: 120px 24px 96px;
  max-width: 1100px; margin: 0 auto;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9.5vw, 8rem);
  line-height: .98; letter-spacing: .02em;
  text-transform: uppercase;
}
.t-line { display: block; }
.t-line-1 {
  background: linear-gradient(180deg, #FFFFFF 8%, #C6C1B4 55%, #86857F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t-line-2 {
  background: linear-gradient(180deg, #E3CB8E 0%, var(--gold) 55%, #8F7B46 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(200,169,98,.26));
}
.hero-epigraph {
  margin: 22px auto 0; max-width: 560px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .28em;
  color: var(--gold);
}
.hero-sub {
  margin: 18px auto 0; max-width: 640px;
  color: #C8CAD0; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.9;
}
.hero-sub strong {
  color: var(--gold-light); font-family: var(--font-mono); font-weight: 700;
}
.hero-content .btn { margin-top: 38px; }

.hero-scrollhint {
  position: absolute; left: 50%; bottom: 34px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-faint); font-size: 12px; letter-spacing: .3em; font-style: normal;
}
.scroll-line {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, var(--gold-dim));
  overflow: hidden; position: relative;
}
.scroll-line::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--gold-light);
  animation: scrollDrop 2.2s var(--ease) infinite;
}
@keyframes scrollDrop {
  0% { top: -50%; } 60% { top: 110%; } 100% { top: 110%; }
}

.hero-title .t-line, .hero-epigraph, .hero-sub, .hero-content .btn, .hero-scrollhint {
  opacity: 0;
  animation: heroIn .8s var(--ease) forwards;
}
.hero-title .t-line-1 { animation-delay: .15s; }
.hero-title .t-line-2 { animation-delay: .3s; }
.hero-epigraph { animation-delay: .48s; }
.hero-sub { animation-delay: .58s; }
.hero-content .btn { animation-delay: .76s; }
.hero-scrollhint { animation-delay: 1.05s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Stat strip / live header ---------- */
.statstrip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(200,169,98,.05), transparent 60%);
}
.statstrip-inner {
  max-width: 1280px; margin: 0 auto; padding: 30px 28px 34px;
}
.live-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 22px;
  margin-bottom: 26px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  color: var(--text-faint);
}
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(200,169,98,.5);
  animation: liveBreath 2.6s ease-in-out infinite;
  margin-right: 6px;
  vertical-align: 1px;
}
.live-dot.is-live { background: #6FA97E; box-shadow: 0 0 10px rgba(111,169,126,.8); }
@keyframes liveBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,169,98,.45); }
  55% { box-shadow: 0 0 0 7px rgba(200,169,98,0); }
}
[data-live-mode] { color: var(--gold-light); font-weight: 700; }
[data-live-mode].is-live { color: #8FC49E; }

.statgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 18%; bottom: 18%;
  width: 1px; background: var(--line);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 700;
  background: linear-gradient(180deg, #F2F1ED, #A5A19A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { display: block; margin-top: 4px; color: var(--text-dim); font-size: 13px; letter-spacing: .12em; }

/* 金色脉冲：实时数据变更时的高光提醒 */
@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(200,169,98,.55); }
  70% { box-shadow: 0 0 0 18px rgba(200,169,98,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,169,98,0); }
}
.pulse-gold { animation: pulseGold 1.4s var(--ease) 2; border-radius: var(--radius); }
.stat.pulse-gold { border-radius: 8px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(84px, 10vw, 136px) 28px; max-width: 1280px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .34em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  letter-spacing: .02em; line-height: 1.15;
}
.section-desc { margin-top: 14px; color: var(--text-dim); font-size: 15.5px; max-width: 600px; line-height: 1.9; }

/* ---------- Timeline ---------- */
.timeline-section { position: relative; }
.timeline { position: relative; max-width: 980px; margin: 0 auto; }
.timeline-track {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.08);
}
.timeline-progress {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-dim));
  box-shadow: 0 0 16px rgba(200,169,98,.5);
}
.tl-nodes { position: relative; }
.tl-node {
  position: relative;
  width: calc(50% - 46px);
  margin-bottom: 52px;
}
.tl-node:nth-child(odd) { margin-right: auto; }
.tl-node:nth-child(even) { margin-left: auto; }
.tl-dot {
  position: absolute; top: 26px; width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-1); border: 1px solid var(--era, var(--gold-dim));
  color: var(--era, var(--gold));
  font-family: var(--font-display); font-size: 15px;
  box-shadow: 0 0 0 6px var(--bg-0);
  z-index: 2;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.tl-node:nth-child(odd) .tl-dot { right: -78px; }
.tl-node:nth-child(even) .tl-dot { left: -78px; }
.tl-node.is-lit .tl-dot {
  background: linear-gradient(135deg, var(--era, var(--gold-light)), var(--gold));
  color: #0A0A0D; border-color: var(--era, var(--gold-light));
  transform: scale(1.12);
  box-shadow: 0 0 0 6px var(--bg-0), 0 0 26px color-mix(in srgb, var(--era, #C8A962) 65%, transparent);
}
.tl-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid rgba(255,255,255,.06);
  border-top: 2px solid color-mix(in srgb, var(--era, #C8A962) 55%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.tl-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-soft);
  box-shadow: 0 22px 44px -22px rgba(0,0,0,.85), 0 0 0 1px var(--gold-soft);
}
.tl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; }
.tl-years {
  font-family: var(--font-mono); font-size: 13px; color: var(--era, var(--gold));
  letter-spacing: .12em;
}
.tl-club { font-family: var(--font-display); font-size: 21px; letter-spacing: .02em; margin-top: 4px; }
.tl-tagline { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.tl-spirit {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--era, var(--gold-dim));
  color: #B9BCC3; font-size: 13.5px; line-height: 1.7;
  font-style: italic;
}
.tl-chevr {
  flex: none; color: var(--text-faint);
  transition: transform .35s var(--ease), color .3s;
}
.tl-node.is-open .tl-chevr { transform: rotate(180deg); color: var(--gold); }
.tl-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--bg-3);
}
.tl-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) contrast(1.06) brightness(.88);
  transition: transform .6s var(--ease), filter .4s;
}
.tl-card:hover .tl-media img { transform: scale(1.05); filter: saturate(.95) contrast(1.04) brightness(1); }
.tl-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.tl-node.is-open .tl-body { grid-template-rows: 1fr; }
.tl-body-inner { overflow: hidden; }
.tl-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.07);
  border-top: 1px solid rgba(255,255,255,.06);
}
.tl-stat { background: var(--bg-1); padding: 14px 10px; text-align: center; }
.tl-stat b { display: block; font-family: var(--font-mono); font-size: 19px; color: var(--gold-light); }
.tl-stat span { font-size: 11.5px; color: var(--text-faint); letter-spacing: .08em; }
.tl-story { padding: 22px 24px; }
.tl-story h4 { font-size: 15px; color: var(--gold-light); margin-bottom: 8px; letter-spacing: .04em; }
.tl-story p { font-size: 14.5px; color: #C0C3C9; line-height: 1.85; }
.tl-story p + p { margin-top: 12px; }

/* ---------- Data section ---------- */
.data-section {
  max-width: none;
  background:
    radial-gradient(70% 60% at 18% 8%, rgba(200,169,98,.06), transparent 60%),
    radial-gradient(60% 50% at 85% 90%, rgba(200,169,98,.05), transparent 60%),
    var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.data-section .section, .data-section { overflow: hidden; }
.data-section .fx { position: absolute; inset: 0; pointer-events: none; }
.data-section > .section-head, .data-section > .tabs, .data-section > .tab-panels, .data-section > .data-note { position: relative; z-index: 2; }
.data-section > .section-head { margin-inline: auto; }

.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-btn {
  position: relative;
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: transparent; color: var(--text-dim);
  font-size: 14.5px; font-weight: 700; letter-spacing: .05em;
  transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease);
}
.tab-btn:hover { color: var(--text); border-color: var(--gold-dim); transform: translateY(-2px); }
.tab-btn.is-active {
  color: #0A0A0D;
  background: linear-gradient(135deg, #E3CB8E, #C8A962);
  border-color: transparent;
  box-shadow: 0 10px 26px -12px rgba(200,169,98,.55);
}
.data-section > .tabs { margin-bottom: 40px; }

.tab-panels { position: relative; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.dashboard { display: grid; gap: 26px; }
.dash-counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dcard {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.dcard::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 90% at 50% 0%, rgba(200,169,98,.12), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.dcard:hover { transform: translateY(-4px); border-color: var(--gold-soft); box-shadow: 0 18px 36px -20px rgba(0,0,0,.8); }
.dcard:hover::before { opacity: 1; }
.dnum {
  font-family: var(--font-mono); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dlabel { display: block; margin-top: 6px; color: var(--text-dim); font-size: 13px; letter-spacing: .1em; }

.dash-charts { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.chart-card {
  background: rgba(10,10,13,.5);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
}
.chart-title { font-size: 15px; letter-spacing: .08em; color: #C8CAD0; margin-bottom: 22px; }

.barchart {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; height: 240px; padding-top: 8px;
}
.bar {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 8px; height: 100%; min-width: 0;
}
.bar-value { font-family: var(--font-mono); font-size: 13px; color: var(--gold-light); opacity: 0; transition: opacity .4s .5s; }
.bar-fill {
  width: min(48px, 62%);
  height: 0;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-dim));
  box-shadow: 0 0 18px -6px rgba(200,169,98,.55);
  position: relative;
  overflow: hidden;
  transition: height 1.1s var(--ease);
}
.bar-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.32), transparent 40%);
}
.bar.is-animated .bar-value { opacity: 1; }
.bar:hover .bar-fill { filter: brightness(1.15); }
.bar-label {
  font-size: 12px; color: var(--text-dim); letter-spacing: .04em;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}

.donut-wrap { position: relative; width: 190px; height: 190px; margin: 0 auto 18px; }
.donut {
  width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(
    var(--gold) 0 54%,
    var(--gold-dim) 54% 71%,
    var(--gold-soft) 71% 87%,
    #3A3F4A 87% 99%,
    #2A2F38 99% 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%);
  mask: radial-gradient(circle, transparent 58%, #000 59%);
  transform: rotate(-90deg);
  box-shadow: inset 0 0 30px rgba(0,0,0,.4);
}
.donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.donut-total { font-family: var(--font-mono); font-size: 34px; font-weight: 700; color: var(--gold-light); }
.donut-unit { font-size: 12px; color: var(--text-faint); letter-spacing: .2em; }
.donut-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.donut-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }

.dash-filters { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; }
.filter-label { color: var(--text-dim); font-size: 13px; letter-spacing: .1em; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: transparent; color: var(--text-dim);
  font-size: 13px; font-weight: 600;
  transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--gold-dim); transform: translateY(-2px); }
.chip.is-active { color: #0A0A0D; background: var(--gold); border-color: var(--gold); }

.record-list { display: grid; gap: 10px; }
.record-list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 13px 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-left: 2px solid var(--gold-dim);
  border-radius: 0 8px 8px 0;
  font-size: 14px; color: #C8CAD0;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.record-list li:hover { border-left-color: var(--gold); background: rgba(255,255,255,.05); transform: translateX(4px); }
.record-list b { font-family: var(--font-mono); color: var(--gold-light); font-size: 15px; flex: none; }
.record-list span { color: var(--text-faint); margin-left: auto; font-size: 12.5px; flex: none; }
.record-list-standalone { margin: 0; }

.data-note {
  margin-top: 34px; text-align: center;
  color: var(--text-faint); font-size: 12.5px; letter-spacing: .06em;
  line-height: 2;
}
.data-replay { margin-top: 14px; }

/* ---------- Gallery ---------- */
.moments-section .filterbar { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 34px; }
.masonry { columns: 3; column-gap: 22px; }
.mcard {
  position: relative;
  display: block; width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.06);
  background: var(--bg-2);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  animation: cardIn .6s var(--ease) backwards;
}
.mcard.is-hidden { display: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.mcard:hover { transform: translateY(-5px) scale(1.012); box-shadow: 0 26px 50px -24px rgba(0,0,0,.9); border-color: var(--gold-soft); }
.mcard-media { position: relative; overflow: hidden; }
.mcard-media img {
  width: 100%;
  filter: saturate(.78) contrast(1.06) brightness(.86);
  transition: transform .6s var(--ease), filter .4s;
}
.mcard:hover .mcard-media img { transform: scale(1.06); filter: saturate(.95) contrast(1.04) brightness(1); }
.mcard-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 50% 0%, transparent 60%, rgba(5,5,8,.42) 100%),
    linear-gradient(180deg, transparent 42%, rgba(10,10,13,.84) 100%);
}
.mcard-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 20px 16px;
  transform: translateY(8px);
  transition: transform .35s var(--ease);
}
.mcard:hover .mcard-caption { transform: translateY(0); }
.mcard-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--gold); letter-spacing: .16em; }
.mcard-title { font-weight: 800; font-size: 17px; margin-top: 4px; letter-spacing: .02em; }
.mcard-emotion {
  display: block; margin-top: 6px;
  color: #C9C2AE; font-size: 13px; line-height: 1.7; font-style: italic;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s var(--ease), opacity .4s, margin-top .4s;
}
.mcard:hover .mcard-emotion, .mcard:focus-visible .mcard-emotion { max-height: 72px; opacity: 1; }
.mcard-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mcard-tag {
  font-size: 10.5px; letter-spacing: .1em;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--gold-soft); color: var(--gold-light);
}
.masonry .mcard:nth-child(3n+1) .mcard-media img { aspect-ratio: 16 / 10; }
.masonry .mcard:nth-child(3n+2) .mcard-media img { aspect-ratio: 4 / 5; object-fit: cover; }
.masonry .mcard:nth-child(3n+3) .mcard-media img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Honors ---------- */
.honors-section { max-width: 1280px; }
.honors-groups { display: grid; gap: 48px; }
.honors-group-title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 18px; letter-spacing: .06em;
  margin-bottom: 22px;
}
.honors-group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.honors-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px;
}
.honor-tile {
  position: relative;
  background: linear-gradient(170deg, var(--bg-2), var(--bg-1));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 22px 14px 18px;
  text-align: center;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.honor-tile::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(200,169,98,.16), transparent 62%);
  opacity: 0; transition: opacity .3s;
}
.honor-tile:hover { transform: translateY(-5px); border-color: var(--gold-soft); box-shadow: 0 20px 40px -20px rgba(0,0,0,.85); }
.honor-tile:hover::before { opacity: 1; }
.honor-icon {
  position: relative; width: 54px; height: 54px; margin: 0 auto 12px;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(200,169,98,.32));
  animation: iconGlow 4.5s ease-in-out infinite;
}
.honor-tile:hover .honor-icon { animation: none; filter: drop-shadow(0 0 14px rgba(200,169,98,.85)); transform: scale(1.12); }
@keyframes iconGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(200,169,98,.22)); }
  50% { filter: drop-shadow(0 0 12px rgba(200,169,98,.55)); }
}
.honor-name { position: relative; font-weight: 800; font-size: 14.5px; letter-spacing: .02em; }
.honor-count { position: relative; display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 13px; color: var(--gold-light); }
.honor-detail {
  position: relative;
  max-height: 0; opacity: 0;
  overflow: hidden;
  margin-top: 0;
  font-size: 12px; color: var(--text-dim); line-height: 1.6;
  transition: max-height .4s var(--ease), opacity .35s, margin-top .4s;
}
.honor-tile:hover .honor-detail, .honor-tile:focus-visible .honor-detail { max-height: 96px; opacity: 1; margin-top: 10px; }
.honor-detail b { color: var(--gold-light); font-weight: 700; }

/* ---------- Biography ---------- */
.bio-section { max-width: 1100px; }
.bio-tabs { margin-bottom: 36px; }
.bio-panels { position: relative; }
.bio-panel { display: none; }
.bio-panel.is-active { display: block; animation: panelIn .5s var(--ease); }
.bio-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center;
}
.bio-grid.is-flip .bio-media { order: 2; }
.bio-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  aspect-ratio: 4 / 3.4;
}
.bio-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) contrast(1.06) brightness(.88);
  transition: transform .6s var(--ease);
}
.bio-media:hover img { transform: scale(1.04); }
.bio-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(130% 110% at 50% 30%, transparent 55%, rgba(5,5,8,.5) 100%),
    linear-gradient(180deg, transparent 60%, rgba(10,10,13,.6));
}
.bio-media-cap {
  position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; color: var(--gold-light); letter-spacing: .12em;
}
.bio-prose h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 18px; }
.bio-prose p { color: #C0C3C9; font-size: 15.5px; margin-bottom: 18px; line-height: 1.95; }
.bio-prose p.is-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.bio-prose p.is-reveal.is-in { opacity: 1; transform: none; }
.gold-key { color: var(--gold-light); font-weight: 800; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  text-align: center;
  padding: 84px 28px 64px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(200,169,98,.08), transparent 70%),
    var(--bg-0);
}
.footer-quote { font-size: clamp(18px, 2.4vw, 24px); color: #D6D3CB; font-weight: 600; }
.footer-sign {
  font-family: var(--font-sign);
  font-size: clamp(30px, 4vw, 42px);
  color: var(--gold);
  margin-top: 14px;
  transform: rotate(-3deg);
  filter: drop-shadow(0 4px 16px rgba(200,169,98,.28));
}
.footer-tribute { margin-top: 24px; letter-spacing: .3em; color: var(--text-dim); font-size: 13px; }
.footer-share { margin-top: 26px; }
.footer-credit { margin-top: 18px; color: var(--text-faint); font-size: 12px; line-height: 1.9; }

.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #1B1D24, #0F1014);
  color: var(--gold-light);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.8), inset 0 0 0 1px var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #0A0A0D; background: linear-gradient(135deg, #E3CB8E, #C8A962); }
.to-top-progress {
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--p, 0%), transparent var(--p, 0%) 100%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
  mask: radial-gradient(circle, transparent 60%, #000 61%);
  pointer-events: none;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 22px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 8, .82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fadeIn .35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative; z-index: 1;
  width: min(880px, 100%); max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--gold-soft);
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.95);
  animation: modalIn .45s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(10,10,13,.6);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s, transform .3s var(--ease), border-color .3s;
}
.modal-close:hover { background: var(--gold); color: #0A0A0D; border-color: var(--gold); transform: rotate(90deg); }
.modal-figure { position: relative; margin: 0; }
.modal-figure img { width: 100%; max-height: 56vh; object-fit: cover; }
.modal-figure figcaption {
  position: absolute; left: 18px; bottom: 14px;
  font-size: 11.5px; color: rgba(242,241,237,.75); letter-spacing: .06em;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.modal-body { padding: 26px 30px 30px; }
.modal-meta { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: .16em; }
.modal-emotion {
  margin: 14px 0 2px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-dim);
  color: #CBC4B0; font-size: 15px; line-height: 1.8; font-style: italic;
}
.modal-title { font-family: var(--font-display); font-size: 24px; margin: 10px 0 14px; }
.modal-text { color: #C0C3C9; font-size: 15px; line-height: 1.95; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.modal-source {
  display: inline-block;
  font-size: 13px; color: var(--gold-light);
  border-bottom: 1px solid var(--gold-dim);
  transition: color .3s, border-color .3s;
}
.modal-source:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 220;
  transform: translate(-50%, 14px);
  padding: 12px 22px;
  background: rgba(21, 22, 28, .95);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  color: var(--gold-light); font-size: 13.5px; letter-spacing: .04em;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.9);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  pointer-events: none;
  max-width: min(86vw, 480px);
  text-align: center;
}
#toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.noscript { padding: 20px; text-align: center; color: var(--text-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .masonry { columns: 2; }
  .dash-charts { grid-template-columns: 1fr; }
  .dash-filters { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; gap: 26px; }
  .bio-grid.is-flip .bio-media { order: 0; }
  .bio-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,13,.94);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu ul { flex-direction: column; padding: 14px 24px 22px; gap: 2px; }
  .nav-link { padding: 13px 8px; font-size: 16px; }
  .nav-link::after { left: 8px; bottom: 6px; }

  .timeline-track { left: 26px; transform: none; }
  .tl-node { width: calc(100% - 66px); margin-left: auto !important; margin-right: 0 !important; }
  .tl-node .tl-dot { left: -62px !important; right: auto !important; width: 48px; height: 48px; font-size: 13px; top: 24px; }
  .statgrid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat:nth-child(2)::after { display: none; }
  .dash-counters { grid-template-columns: repeat(2, 1fr); }
  .footer { padding-bottom: 96px; }
  .live-bar { font-size: 11px; gap: 6px 16px; }
}

@media (max-width: 560px) {
  .masonry { columns: 1; }
  .section { padding: 72px 20px; }
  .hero-content { padding-top: 110px; }
  .dash-counters { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dcard { padding: 20px 12px; }
  .tl-card-head { padding: 18px; }
  .tl-body-inner { padding-bottom: 0; }
  .tl-stats { grid-template-columns: repeat(3, 1fr); }
  .tl-story { padding: 18px; }
  .honors-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
  .filterbar { gap: 14px; }
  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .modal-body { padding: 22px 20px 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .bio-prose p.is-reveal, .hero-title .t-line, .hero-epigraph, .hero-sub,
  .hero-content .btn, .hero-scrollhint, .mcard-emotion {
    opacity: 1; transform: none;
  }
  .mcard-emotion { max-height: 72px; }
  #loader { display: none; }
}
