/* ===== TOKENS ===== */
:root {
  --navy:    #003A5C;
  --blue:    #0077B6;
  --blue-mid:#005A8A;
  --sky:     #90C8F0;
  --ice:     #C8E8FF;
  --white:   #FFFFFF;
  --off:     #F0F8FF;
  --gold-bg: #FFF8DC;
  --gold-txt:#7A5500;
  --text-primary: #0D1F2D;
  --text-sec:     #2C5066;
  --text-muted:   #4A7A9B;
  --border:       #B0D4EC;
  --mono: 'IBM Plex Mono', monospace;
  --head: 'Oswald', sans-serif;
  --body: 'Source Sans 3', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); font-size: 18px; line-height: 1.65; color: var(--text-primary); background: var(--off); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
section { scroll-margin-top: 64px; }

/* ===== NAV ===== */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-logo {
  font-family: var(--head); font-size: 22px; font-weight: 700;
  color: var(--white); letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-logo span { color: #FFD700; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--head); font-size: 16px; font-weight: 500;
  color: var(--ice); letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: #FFD700; }
.burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.burger span {
  display: block; width: 26px; height: 2px; background: var(--ice); border-radius: 2px;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BLUR OVERLAY ===== */
.nav-overlay {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 150;
  background: rgba(0,20,40,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-overlay.open { display: block; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, #003A5C 0%, #005A8A 45%, #0077B6 100%);
  min-height: 88vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.5rem 5rem;
  position: relative; overflow: hidden; scroll-margin-top: 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 48px,
    rgba(255,255,255,0.04) 48px, rgba(255,255,255,0.04) 50px);
}
.hero-photo-wrap {
  width: 200px; height: 200px; border-radius: 50%;
  border: 4px solid #FFD700; overflow: hidden; margin-bottom: 1.75rem;
  position: relative; z-index: 1; background: #005A8A;
  display: flex; align-items: center; justify-content: center;
}
.hero-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 14px; font-family: var(--body); gap: 8px;
}
.hero-photo-placeholder svg { opacity: 0.4; }
.hero h1 {
  font-family: var(--head); font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700; color: var(--white); letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1.1; margin-bottom: 0.5rem;
  position: relative; z-index: 1;
}
.hero-sub {
  font-family: var(--head); font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400; color: var(--ice); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 2rem; position: relative; z-index: 1;
}
.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 1;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--mono); font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 500; color: #FFD700; display: block;
}
.hero-stat .lbl {
  font-family: var(--body); font-size: 14px; color: var(--ice);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.hero-cta {
  margin-top: 2.5rem; position: relative; z-index: 1;
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}
.btn {
  font-family: var(--head); font-size: 16px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 4px; cursor: pointer;
  border: 2px solid transparent; transition: 0.2s; display: inline-block;
}
.btn-gold { background: #FFD700; color: #3A2800; border-color: #FFD700; }
.btn-gold:hover { background: #FFC200; border-color: #FFC200; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.wave { position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.wave svg { display: block; width: 100%; }

/* ===== SECTIONS ===== */
section { padding: 5rem 1.5rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: var(--head); font-size: 13px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--head); font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; color: var(--navy); letter-spacing: 0.04em;
  text-transform: uppercase; line-height: 1.15; margin-bottom: 2.5rem;
}
.section-title span { color: var(--blue); }

/* ===== EVENTS ===== */
#events { background: var(--white); }
.events-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}
.event-card {
  border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--off); overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.event-card:hover { box-shadow: 0 6px 24px rgba(0,90,138,0.14); transform: translateY(-2px); }
.event-card.hidden { display: none; }
.event-card-top {
  background: var(--navy); padding: 0.85rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.event-pool-tag {
  font-family: var(--body); font-size: 13px; font-weight: 600;
  padding: 2px 9px; border-radius: 3px;
  background: rgba(255,255,255,0.14); color: var(--ice); flex-shrink: 0;
}
.event-date { font-family: var(--mono); font-size: 13px; color: var(--ice); flex: 1; }
.event-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.event-card-title-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.6rem;
}
.event-name {
  font-family: var(--head); font-size: 18px; font-weight: 600;
  color: var(--navy); text-transform: uppercase; letter-spacing: 0.03em;
  line-height: 1.2; flex: 1;
}
.event-medal-badge { font-size: 20px; flex-shrink: 0; line-height: 1; padding-top: 2px; }
.event-note { font-size: 15px; color: var(--text-sec); line-height: 1.5; }

/* Show More */
.show-more-wrap { text-align: center; margin-top: 2rem; }
.btn-show-more {
  font-family: var(--head); font-size: 15px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 40px; border-radius: 4px; cursor: pointer;
  background: var(--off); color: var(--navy);
  border: 2px solid var(--border); transition: 0.2s;
}
.btn-show-more:hover { background: var(--ice); border-color: var(--blue); color: var(--blue); }

/* ===== ACHIEVEMENTS ===== */
#achievements { background: var(--off); }
.achievements-list { display: flex; flex-direction: column; gap: 1.5rem; }
.ach-card { border: 1.5px solid var(--border); border-radius: 10px; background: var(--white); overflow: hidden; }
.ach-card-inner { display: grid; grid-template-columns: 200px 1fr; }
.ach-photo {
  background: var(--ice); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-muted); font-family: var(--body);
  text-align: center; padding: 1.25rem; position: relative; min-height: 190px;
}
.ach-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ach-photo-ph { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.6; }
.ach-photo-ph span { font-size: 13px; line-height: 1.4; }
.ach-content { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 0.8rem; }
.ach-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ach-title {
  font-family: var(--head); font-size: 21px; font-weight: 700;
  color: var(--navy); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.2;
}
.ach-time {
  font-family: var(--mono); font-size: 22px; font-weight: 500;
  color: var(--white); background: var(--blue); padding: 5px 16px;
  border-radius: 4px; white-space: nowrap; flex-shrink: 0; align-self: flex-start; line-height: 1.4;
}
.ach-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  font-family: var(--body); font-size: 13px; font-weight: 600;
  padding: 4px 11px; border-radius: 3px;
  background: var(--ice); color: var(--navy);
  line-height: 1.4; display: inline-flex; align-items: center;
}
.tag-style { background: #E8F4FD; color: var(--blue-mid); }
.medal-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--body); font-size: 14px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px; line-height: 1.4;
}
.medal-gold   { background: var(--gold-bg);  color: var(--gold-txt); border: 1px solid #D4A800; }
.medal-silver { background: #F0F0F0; color: #3A3A3A; border: 1px solid #AAAAAA; }
.medal-bronze { background: #FFF0E8; color: #7A3A1A; border: 1px solid #C07840; }
.ach-note { font-size: 16px; color: var(--text-sec); line-height: 1.6; }
.ach-footer { font-family: var(--mono); font-size: 13px; color: var(--text-muted); padding-top: 0.6rem; border-top: 1px solid var(--border); }

/* ===== PROGRESS ===== */
#progress { background: var(--white); }
.progress-controls { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; align-items: center; }
.control-group { display: flex; flex-direction: column; gap: 6px; }
.control-group label {
  font-family: var(--body); font-size: 14px; font-weight: 600;
  color: var(--text-sec); text-transform: uppercase; letter-spacing: 0.08em;
}
.btn-group { display: flex; border: 1.5px solid var(--border); border-radius: 6px; overflow: hidden; }
.btn-tog {
  font-family: var(--head); font-size: 15px; font-weight: 500;
  padding: 10px 20px; background: var(--white); color: var(--text-sec);
  border: none; cursor: pointer; letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
  border-right: 1px solid var(--border); white-space: nowrap;
}
.btn-tog:last-child { border-right: none; }
.btn-tog.active { background: var(--navy); color: var(--white); }
.btn-tog:hover:not(.active) { background: var(--ice); }
.mobile-controls { display: none; flex-direction: column; gap: 10px; margin-bottom: 1.25rem; }
.mobile-ctrl-row { display: flex; align-items: center; gap: 10px; }
.mobile-ctrl-label {
  font-family: var(--body); font-size: 13px; font-weight: 600;
  color: var(--text-sec); text-transform: uppercase; letter-spacing: 0.08em;
  white-space: nowrap; min-width: 58px;
}
.mobile-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex: 1; }
.mobile-scroll::-webkit-scrollbar { display: none; }
.mobile-btn-group {
  display: inline-flex; border: 1.5px solid var(--border); border-radius: 6px;
  overflow: hidden; white-space: nowrap;
}
.mobile-btn-group .btn-tog { font-size: 14px; padding: 8px 14px; }
.chart-wrap { background: var(--off); border: 1.5px solid var(--border); border-radius: 10px; padding: 1.5rem; }
.chart-wrap canvas { max-height: 380px; }
.chart-legend-mobile {
  display: none; flex-direction: column; gap: 6px;
  margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.chart-legend-mobile .leg-row { display: flex; align-items: center; gap: 8px; }
.chart-legend-mobile .leg-swatch { width: 22px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.chart-legend-mobile .leg-label { font-family: var(--body); font-size: 14px; color: var(--text-primary); }
.progress-best { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-top: 2rem; }
.best-card { background: var(--navy); border-radius: 8px; padding: 1.1rem 1.25rem; text-align: center; }
.best-label { font-family: var(--body); font-size: 13px; color: var(--ice); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.best-time  { font-family: var(--mono); font-size: 24px; font-weight: 500; color: #FFD700; }
.best-event { font-family: var(--body); font-size: 13px; color: var(--sky); margin-top: 3px; }

/* ===== ABOUT ===== */
#about { background: var(--navy); }
#about .section-label { color: var(--sky); }
#about .section-title { color: var(--white); }
#about .section-title span { color: #FFD700; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text { font-size: 18px; color: var(--ice); line-height: 1.75; }
.about-text p + p { margin-top: 1rem; }
.about-facts { display: flex; flex-direction: column; gap: 1rem; }
.fact-row {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.08); border-radius: 8px; border-left: 4px solid #FFD700;
}
.fact-icon { font-size: 24px; flex-shrink: 0; }
.fact-text { font-family: var(--body); font-size: 17px; color: var(--ice); }
.fact-text strong { color: var(--white); font-weight: 600; }

/* ===== SOCIAL ===== */
#social { background: var(--off); }
.social-single { display: flex; justify-content: center; }
.social-ig {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--head); font-size: 18px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 18px 48px; border-radius: 6px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff; transition: opacity 0.2s, transform 0.2s;
}
.social-ig:hover { opacity: 0.88; transform: translateY(-2px); }

/* ===== CONTACT ===== */
#contact { background: var(--white); }
.contact-card {
  background: var(--off); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 2.5rem; max-width: 640px; margin: 0 auto; text-align: center;
}
.contact-card p { font-size: 18px; color: var(--text-sec); margin-bottom: 1.5rem; line-height: 1.7; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact-link {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--head); font-size: 16px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 12px 24px; border-radius: 5px;
  border: 2px solid var(--navy); color: var(--navy); transition: 0.2s;
}
.contact-link:hover { background: var(--navy); color: var(--white); }
.contact-link:hover svg { stroke: var(--white); }
.contact-link svg { stroke: var(--navy); transition: stroke 0.2s; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy); text-align: center; padding: 2rem;
  font-family: var(--body); font-size: 15px; color: var(--sky); line-height: 1.7;
}
footer strong { color: var(--ice); font-weight: 600; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 64px; left: 0; width: 100%;
    background: var(--navy); padding: 1.25rem 1.5rem; gap: 1.1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 200;
  }
  .nav-links.open { display: flex; }
  .burger { display: flex; }
  .ach-card-inner { grid-template-columns: 1fr; }
  .ach-photo { min-height: 180px; }
  .ach-content { padding: 1.25rem; }
  .ach-top { flex-wrap: wrap; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  section { padding: 3.5rem 1.25rem; }
  .progress-controls { display: none; }
  .mobile-controls { display: flex; }
  .chart-legend-mobile { display: flex; }
  .chart-wrap canvas { max-height: 300px; }
}
@media (max-width: 480px) {
  .btn-tog { padding: 9px 13px; font-size: 14px; }
}
