:root {
  --plum: #2b0d3a;
  --plum-2: #431459;
  --violet: #6a2c91;
  --magenta: #d6336c;
  --rose: #ff8fb1;
  --gold: #f4c362;
  --gold-deep: #c8912b;
  --cream: #fff7f0;
  --blush: #fbeef2;
  --ink: #2a1b2e;
  --muted: #7a6680;
  --line: #ecdde6;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(67, 20, 89, .10), 0 2px 6px rgba(67, 20, 89, .06);
  --radius: 20px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --c-vt: #d6336c;
  --c-ub: #6a2c91;
  --c-bb: #1f8a8a;
  --c-fx: #e07b1a;
  --c-aa: #c8912b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--magenta); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(214, 51, 108, .45), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(106, 44, 145, .7), transparent 60%),
    linear-gradient(160deg, var(--plum) 0%, var(--plum-2) 55%, #5a1a55 100%);
  display: flex;
  flex-direction: column;
}
.sparkles, .sparkles::before, .sparkles::after {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 120px, #ffe7b0, transparent),
    radial-gradient(2px 2px at 160px 60px, #fff, transparent),
    radial-gradient(1px 1px at 230px 180px, #ffd1e0, transparent),
    radial-gradient(1.5px 1.5px at 300px 90px, #fff, transparent);
  background-size: 340px 220px;
  opacity: .55;
  animation: twinkle 6s ease-in-out infinite;
}
.sparkles::before { content: ''; background-size: 520px 330px; animation-delay: -2s; opacity: .4; }
.sparkles::after { content: ''; background-size: 260px 400px; animation-delay: -4s; opacity: .35; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .7; } }

.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ribbon {
  fill: none; stroke-width: 3; stroke-linecap: round; opacity: .8;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: draw 3.2s cubic-bezier(.6, .1, .2, 1) forwards;
}
.ribbon.r2 { stroke-width: 2; animation-delay: .4s; opacity: .6; }
.ribbon.r3 { stroke-width: 1.5; animation-delay: .8s; opacity: .45; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.topnav {
  position: relative; z-index: 2;
  display: flex; gap: 28px; justify-content: flex-end;
  padding: 26px 40px;
}
.topnav a {
  color: rgba(255, 255, 255, .82); text-decoration: none;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.topnav a:hover { color: var(--gold); }

.hero-inner {
  position: relative; z-index: 2; flex: 1;
  max-width: 1180px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  padding: 20px 40px 120px;
}
.hero-text { max-width: 640px; }
.eyebrow {
  margin: 0 0 14px; color: var(--gold);
  font-size: 14px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
}
.name {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(76px, 15vw, 188px); line-height: .9; letter-spacing: -.02em;
}
.name span {
  background: linear-gradient(100deg, #fff 0%, #ffe3ec 35%, var(--gold) 70%, #fff3d1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(244, 195, 98, .25));
}
.tagline {
  margin: 22px 0 30px; font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px);
  color: rgba(255, 255, 255, .9); font-weight: 500;
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 14px; color: rgba(255, 255, 255, .85);
}
.chip b { font-family: var(--serif); font-size: 20px; color: #fff; }

.hero-photo {
  margin: 0; flex: 0 0 auto;
  width: min(380px, 34vw); aspect-ratio: 4 / 5;
  border-radius: 200px 200px 28px 28px;
  padding: 8px;
  background: linear-gradient(160deg, var(--gold), var(--rose) 60%, var(--violet));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  transform: rotate(2deg);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 194px 194px 22px 22px;
}

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 2px; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section.alt { background: var(--blush); }
.kicker {
  margin: 0; color: var(--magenta);
  font-size: 13px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
}
h2 {
  margin: 8px 0 40px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.05; color: var(--plum);
}
h3 { font-family: var(--serif); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 24px; position: relative; overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(244, 195, 98, .25), transparent 70%);
}
.stat-value { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--plum); line-height: 1; }
.stat-label { margin-top: 10px; font-weight: 700; color: var(--ink); }
.stat-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.bio {
  margin: 48px auto 0; max-width: 760px; text-align: center;
  font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--plum-2);
  white-space: pre-line;
}

/* event personal bests */
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; border-top: 5px solid var(--ec);
  display: flex; flex-direction: column;
}
.event-head { display: flex; align-items: center; gap: 12px; }
.event-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ec) 14%, white); color: var(--ec);
}
.event-icon svg { width: 26px; height: 26px; }
.event-name { font-weight: 700; }
.event-code { font-size: 12px; color: var(--muted); letter-spacing: .14em; }
.event-score { margin-top: 22px; font-family: var(--serif); font-size: 48px; font-weight: 700; color: var(--ec); line-height: 1; }
.event-meet { margin-top: 6px; font-size: 14px; color: var(--muted); }
.spark { margin-top: auto; padding-top: 18px; }
.spark svg { width: 100%; height: 44px; overflow: visible; }

/* chart */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 18px; border-radius: 999px; font: 500 15px var(--sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab i { width: 10px; height: 10px; border-radius: 50%; background: var(--ec); }
.tab[aria-selected="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.chart-card {
  position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 20px 8px;
}
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); }
.chart .grid text, .chart .xlab { fill: var(--muted); font: 12px var(--sans); }
.chart .xlab.name { fill: var(--ink); font-weight: 500; }
.chart .season-band { fill: var(--blush); }
.chart .season-label { fill: var(--violet); font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.chart .line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { opacity: .12; }
.chart .dot { stroke: #fff; stroke-width: 3; cursor: pointer; transition: r .15s; }
.chart .dot:hover, .chart .dot:focus { r: 9; outline: none; }
.chart .val { font: 700 13px var(--sans); fill: var(--ink); }
.chart .pb-star { font-size: 14px; }
.chart-tip {
  position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
  background: var(--plum); color: #fff; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; white-space: nowrap; box-shadow: 0 8px 20px rgba(43, 13, 58, .3);
}
.chart-tip b { font-family: var(--serif); font-size: 20px; color: var(--gold); }
.insights { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.insights li {
  background: #fff; border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.insights li b { display: block; color: var(--plum); font-family: var(--serif); font-size: 22px; margin-bottom: 2px; }

/* journal */
.season-head {
  display: flex; align-items: center; gap: 16px; margin: 44px 0 20px;
  font-family: var(--serif); font-size: 24px; color: var(--violet); font-style: italic;
}
.season-head:first-child { margin-top: 0; }
.season-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.meet {
  display: grid; grid-template-columns: 120px 1fr; gap: 0;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 22px; overflow: hidden;
}
.meet-date {
  background: linear-gradient(170deg, var(--plum), var(--violet));
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 8px; text-align: center;
}
.meet-date .m { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.meet-date .d { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1; margin: 4px 0; }
.meet-date .y { font-size: 13px; opacity: .8; }
.meet-body { padding: 24px 28px; min-width: 0; }
.meet-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.meet-title h3 { margin: 0; font-size: 26px; color: var(--plum); }
.meet-meta { color: var(--muted); font-size: 14px; }
.meet-scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.sc {
  border-radius: 14px; padding: 12px 8px; text-align: center; position: relative;
  background: color-mix(in srgb, var(--ec) 8%, white);
  border: 1px solid color-mix(in srgb, var(--ec) 18%, white);
}
.sc.aa { background: linear-gradient(160deg, #fff6df, #ffeccc); border-color: #f0d79a; }
.sc .lab { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ec); font-weight: 700; }
.sc .v { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); }
.sc .v.none { color: var(--muted); font-size: 18px; }
.sc .pb {
  position: absolute; top: -9px; right: -6px; background: var(--gold); color: var(--plum);
  font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 999px; letter-spacing: .06em;
  box-shadow: 0 3px 8px rgba(200, 145, 43, .4);
}
.sc .place {
  display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--plum);
  background: #fff; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--line);
}
.medals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.medal {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  border-radius: 999px; background: var(--blush); font-size: 14px; font-weight: 500;
}
.medal .disc {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 700 12px var(--sans); color: var(--plum);
  background: radial-gradient(circle at 35% 30%, #fff6d8, var(--gold) 55%, var(--gold-deep));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
}
.medal.silver .disc { background: radial-gradient(circle at 35% 30%, #fff, #cfd5dc 55%, #9aa3ad); }
.medal.bronze .disc { background: radial-gradient(circle at 35% 30%, #ffe6d2, #d79660 55%, #a2622f); }
.medal.ribbon .disc { background: radial-gradient(circle at 35% 30%, #ffe1ec, var(--rose) 60%, #e8608e); color: var(--plum); }
.meet-notes { margin: 14px 0 0; color: var(--ink); white-space: pre-line; }
.meet-media { display: flex; gap: 10px; margin-top: 18px; overflow-x: auto; padding-bottom: 4px; }
.meet-media button { flex: 0 0 auto; }

.thumb {
  position: relative; border: 0; padding: 0; cursor: pointer; border-radius: 14px; overflow: hidden;
  background: var(--plum); width: 120px; height: 120px;
}
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.thumb:hover img, .thumb:hover video { transform: scale(1.06); }
.thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: linear-gradient(transparent 40%, rgba(43, 13, 58, .55));
}
.thumb .play::before {
  content: ''; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%232b0d3a'/%3E%3C/svg%3E") center / 24px no-repeat;
}

/* gallery */
.gallery { columns: 3 280px; column-gap: 18px; }
.gallery .g-item {
  break-inside: avoid; margin: 0 0 18px; width: 100%; height: auto; display: block;
  border-radius: 18px; box-shadow: var(--shadow);
}
.gallery .g-item img, .gallery .g-item video { width: 100%; height: auto; object-fit: initial; }
.gallery .g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; text-align: left;
  color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(43, 13, 58, .8));
  opacity: 0; transition: opacity .25s;
}
.gallery .g-item:hover .g-cap { opacity: 1; }
.empty {
  column-span: all; text-align: center; padding: 60px 20px; border-radius: var(--radius);
  border: 2px dashed var(--line); color: var(--muted); background: #fff;
}
.empty b { display: block; font-family: var(--serif); font-size: 26px; color: var(--plum); margin-bottom: 6px; }

/* footer */
.footer {
  background: linear-gradient(160deg, var(--plum), var(--plum-2));
  color: rgba(255, 255, 255, .8); text-align: center; padding: 80px 0 60px;
}
.footer-big { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 5vw, 48px); color: #fff; margin: 0 0 12px; }
.footer-big span { color: var(--gold); }
.footer a { color: var(--gold); }
.footer-love { margin-top: 26px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 5, 28, .94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-body { margin: 0; max-width: min(1100px, 88vw); max-height: 88vh; text-align: center; }
.lb-body img, .lb-body video { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 12px; }
.lb-body figcaption { color: #fff; margin-top: 14px; font-size: 16px; }
.lb-body figcaption small { display: block; color: var(--gold); margin-top: 2px; font-size: 13px; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff;
  width: 52px; height: 52px; border-radius: 50%; font-size: 32px; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ribbon { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .stats, .events { grid-template-columns: repeat(2, 1fr); }
  .insights { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; justify-content: center; }
  .hero-photo { width: min(260px, 60vw); }
}
@media (max-width: 640px) {
  .topnav { justify-content: center; gap: 18px; padding: 18px 12px; }
  .topnav a { font-size: 12px; }
  .hero-inner { padding: 10px 22px 110px; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
  .stats, .events { gap: 14px; }
  .stat { padding: 20px 18px; }
  .stat-value { font-size: 34px; }
  .event-score { font-size: 38px; }
  .chart { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -8px; }
  .chart svg { min-width: 680px; }
  .meet { grid-template-columns: 1fr; }
  .meet-date { flex-direction: row; gap: 10px; justify-content: flex-start; padding: 12px 20px; }
  .meet-date .d { font-size: 26px; margin: 0; }
  .meet-body { padding: 20px; }
  .meet-scores { grid-template-columns: repeat(2, 1fr); }
  .sc.aa { grid-column: span 2; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 20px; transform: none; }
}
@media (max-width: 420px) {
  .stats, .events { grid-template-columns: 1fr; }
}
