:root {
  --night: #02070d;
  --night-2: #06121d;
  --deep: #0a2236;
  --frost: #0098e0;
  --frost-bright: #00a7f5;
  --ice: #eef6fb;
  --mute: #8fa8ba;
  --line: rgba(238, 246, 251, 0.12);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ice);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--frost-bright); outline-offset: 3px; border-radius: 4px; }

#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(2, 7, 13, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--mute); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--ice); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--frost);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--frost);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--frost-bright); border-color: var(--frost-bright); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.btn-small { padding: 8px 18px; font-size: 0.95rem; }

/* Hero: the banner, rebuilt as a page */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--frost-bright) 0%, #0079b8 34%, #013a5c 66%, var(--night) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px clamp(16px, 4vw, 40px) 150px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}
.hero-logo { width: clamp(150px, 24vw, 300px); height: auto; filter: drop-shadow(0 12px 32px rgba(0, 20, 40, 0.35)); animation: rise 0.9s ease-out both; }
.hero-copy { animation: rise 0.9s 0.15s ease-out both; }
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.2rem, 13vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-shadow: 0 6px 40px rgba(0, 25, 50, 0.35);
}
.hero-tag { margin: 18px 0 8px; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.1; }
.hero-sub { margin: 0 0 28px; max-width: 34ch; font-size: 1.125rem; color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(110px, 18vw, 220px); z-index: 1; }
.hill-back { fill: #0a2236; }
.hill-front { fill: var(--night-2); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; background: var(--night-2); }
.section-alt { background: var(--night); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.75rem); line-height: 1; }
h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; }
.lead { margin: 0 0 36px; max-width: 56ch; color: var(--mute); font-size: 1.125rem; }
.more { margin: 28px 0 0; }
.more a { color: var(--frost-bright); font-weight: 600; text-underline-offset: 4px; }
.more a:hover { color: #fff; }

.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-live { max-width: 960px; }

.featured { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; margin-bottom: 48px; }
.featured-text p { margin: 0 0 20px; color: var(--mute); }

.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 20px; }
.video-grid a { display: block; text-decoration: none; }
.video-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--deep); transition: transform 0.2s, box-shadow 0.2s; }
.video-grid a:hover img { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--frost); }
.video-grid span { display: block; margin-top: 10px; font-weight: 500; line-height: 1.35; }

.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.clip { position: relative; aspect-ratio: 9 / 16; background: #000; border-radius: 10px; overflow: hidden; }
.clip iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip-empty { grid-column: 1 / -1; padding: 40px 24px; border: 2px dashed var(--line); border-radius: 10px; color: var(--mute); }
.clip-empty a { color: var(--frost-bright); font-weight: 600; }

/* Media kit */
.kit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.kit-about p { margin: 0 0 24px; max-width: 52ch; }
.kit-stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kit-stats div { padding: 18px 20px; background: var(--night-2); border: 1px solid var(--line); border-radius: 10px; }
.kit-stats dt { color: var(--mute); font-size: 0.95rem; }
.kit-stats dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--frost-bright); }
.kit-stats .todo { border-style: dashed; }
.kit-stats .todo dd { font-family: var(--body); font-weight: 500; font-size: 1rem; color: var(--mute); padding-top: 10px; }
.note { margin: 24px 0 0; color: var(--mute); font-size: 0.9rem; }

.footer { padding: 32px 0 40px; background: var(--night); border-top: 1px solid var(--line); color: var(--mute); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ice); }

/* Phones and small screens */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; padding-top: 48px; }
  .hero-logo { width: 130px; }
  .featured, .kit { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; gap: 8px 16px; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 480px) {
  .kit-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo, .hero-copy { animation: none; }
  .video-grid img { transition: none; }
}

.kit-about .email { margin: 14px 0 0; color: var(--mute); font-size: 0.95rem; }

/* ---------- Embeds and fallbacks ---------- */
.embed-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; text-align: center; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #013a5c, var(--night)) center / cover no-repeat;
}
.embed-fallback::before { content: ""; position: absolute; inset: 0; background: rgba(2, 7, 13, 0.45); transition: background 0.2s; }
.embed-fallback:hover::before { background: rgba(2, 7, 13, 0.25); }
.embed-play, .embed-label { position: relative; }
.embed-play { width: 62px; height: 62px; border-radius: 50%; background: var(--frost); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }
.embed-play::after { content: ""; position: absolute; left: 25px; top: 18px; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.embed-label { font-weight: 600; font-size: 0.95rem; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }

.clip-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-items: start; }
.clip-card p { margin: 10px 0 0; font-weight: 500; line-height: 1.35; }
.clip .embed-label { font-size: 0.85rem; }

.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.live-grid h3 { margin-bottom: 12px; }

/* ---------- Partners ---------- */
.section-partner { background: var(--night); }
.partner-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: stretch; }
.sponsor { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 32px); align-items: center; padding: clamp(18px, 3vw, 28px); background: var(--deep); border: 1px solid var(--line); border-radius: 14px; }
.sponsor-logo { display: block; padding: 12px; background: #fbf8f2; border-radius: 12px; }
.sponsor-logo img { width: clamp(120px, 16vw, 190px); height: auto; }
.sponsor-text p { margin: 0 0 12px; }
.sponsor-text .code { color: var(--mute); }
.sponsor-text .code strong { color: var(--frost-bright); font-size: 1.1em; }
.work-with-me ul { margin: 0 0 24px; padding-left: 1.2em; }
.work-with-me li { margin-bottom: 6px; }

.kit-stats-wide { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 28px; }

/* ---------- Media kit page ---------- */
.mk-top { background: linear-gradient(180deg, var(--frost-bright), #0079b8 55%, #013a5c); }
.mk-top-inner { max-width: 1120px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 40px); display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.mk-photo { width: clamp(150px, 26vw, 320px); height: auto; border-radius: 14px; box-shadow: 0 16px 48px rgba(0, 20, 40, 0.45); }
.mk-mark { margin-bottom: 12px; }
.mk-id h1 { font-size: clamp(3.4rem, 9vw, 6.5rem); }
.mk-tag { margin: 12px 0 20px; font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.mk-total { margin: 0; max-width: 34ch; font-size: 1.1rem; color: rgba(255, 255, 255, 0.9); }
.mk-total strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: #fff; }

.mk-section { padding: clamp(36px, 6vw, 64px) 0; background: var(--night-2); }
.mk-section.mk-two { background: var(--night); }
.mk-circles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.mk-circles li { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; text-align: center; border: 2px solid var(--frost); border-radius: 50%; background: rgba(0, 152, 224, 0.08); max-width: 220px; justify-self: center; width: 100%; }
.mk-circles strong { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1; color: var(--frost-bright); }
.mk-circles span { color: var(--mute); font-size: 0.9rem; line-height: 1.3; }

.mk-cols { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 64px); align-items: center; }
.mk-about { margin: 0; max-width: 62ch; }
.mk-snowman { width: clamp(150px, 22vw, 260px); height: auto; }
.mk-list { margin: 0; padding-left: 1.2em; max-width: 56ch; }
.mk-list li { margin-bottom: 10px; }
.mk-current .sponsor-logo { display: inline-block; margin-top: 8px; }

.mk-audience { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mk-audience div { padding: 18px 20px; background: var(--night); border: 1px solid var(--line); border-radius: 10px; }
.mk-audience dt { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin-bottom: 4px; }
.mk-audience dd { margin: 0; color: var(--mute); }
.mk-audience strong { color: var(--frost-bright); font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin-right: 4px; }

.mk-contact { background: var(--night) !important; }
.mk-contact .mk-about { margin-bottom: 24px; }
.mk-contact a:not(.btn) { color: var(--frost-bright); font-weight: 600; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.nav-links a[aria-current="page"] { color: var(--ice); }

@media (max-width: 820px) {
  .live-grid, .partner-grid { grid-template-columns: 1fr; }
  .sponsor { grid-template-columns: 1fr; }
  .mk-top-inner { grid-template-columns: 1fr; }
  .mk-photo { width: 160px; }
  .mk-cols { grid-template-columns: 1fr; }
  .mk-snowman { width: 150px; }
}

@media print {
  #snow, .nav, .no-print, .footer { display: none !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mk-section, .mk-top { break-inside: avoid; }
}

/* ---------- About and schedule ---------- */
.section-about { background: var(--night); padding-top: clamp(40px, 6vw, 72px); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about-text { margin: 0 0 16px; max-width: 58ch; }
.schedule { padding: 22px 26px; background: var(--deep); border: 1px solid var(--line); border-left: 4px solid var(--frost); border-radius: 12px; }
.schedule h3 { margin-bottom: 12px; }
.schedule-days { list-style: none; margin: 0 0 12px; padding: 0; font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.25; }
.schedule-time { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--frost-bright); }
.schedule-where { margin: 0; color: var(--mute); }

/* ---------- Ultimate Pirate Championship tab ---------- */
.upc-tab { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; color: #f3ead2; background: linear-gradient(100deg, #0b7a5c, #3b5560 50%, #9b1219); border: 1px solid rgba(243, 234, 210, 0.35); transition: filter 0.15s; }
.upc-tab:hover { filter: brightness(1.15); }
.upc-short { display: none; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .upc-long { display: none; }
  .upc-short { display: inline; }
}

/* Menu wraps to two rows on mid-size screens so every tab stays visible */
@media (max-width: 1100px) {
  .nav { flex-wrap: wrap; gap: 8px 16px; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; padding-bottom: 2px; }
  .nav .btn { margin-left: auto; }
}
