:root {
  --ink: #07111f;
  --ink-soft: #14243a;
  --paper: #f4f7fb;
  --white: #ffffff;
  --blue: #087dce;
  --blue-bright: #19a8ff;
  --red: #ed292f;
  --muted: #667386;
  --line: rgba(7, 17, 31, 0.12);
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.14);
  --radius: 26px;
  --container: min(1180px, calc(100vw - 48px));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  padding: 18px 0;
  transition: padding .25s ease, background .25s ease, box-shadow .25s ease;
}

.site-header.scrolled {
  padding: 10px 0;
  background: rgba(7, 17, 31, .91);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--container);
  min-height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong {
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand-copy small { color: rgba(255,255,255,.65); font-size: 11px; letter-spacing: .06em; }

.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a {
  position: relative;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color .2s ease;
}
.primary-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  inset: auto 0 -9px;
  height: 2px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.primary-nav a:hover, .primary-nav a.active { color: #fff; }
.primary-nav > a:hover::after, .primary-nav > a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
}
.nav-cta:hover { border-color: var(--blue-bright); background: var(--blue-bright); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; transition: .25s ease; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,17,31,.98) 0%, rgba(7,17,31,.84) 44%, rgba(7,17,31,.22) 79%, rgba(7,17,31,.5) 100%),
    linear-gradient(0deg, rgba(7,17,31,.96) 0%, transparent 35%),
    url("assets/hero-main.jpg") center / cover no-repeat;
  transform: scale(1.035);
  animation: hero-in 1.8s cubic-bezier(.2,.7,.2,1) forwards;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 440px;
  height: 120%;
  top: -10%;
  right: 17%;
  background: linear-gradient(180deg, rgba(25,168,255,.35), rgba(237,41,47,.2));
  filter: blur(90px);
  opacity: .5;
  transform: rotate(14deg);
}

.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.hero-content { min-width: 0; padding: 150px 0 190px; }
.eyebrow, .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow span { width: 40px; height: 2px; background: var(--red); }
.hero h1 {
  max-width: 920px;
  margin: 24px 0 26px;
  font-size: clamp(54px, 7.8vw, 112px);
  line-height: .91;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px rgba(255,255,255,.78); }
.hero-lead {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.button {
  min-height: 54px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--red); box-shadow: 0 14px 30px rgba(237,41,47,.24); }
.button-primary:hover { background: #ff3a3f; }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); }
.button-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.button-dark { color: #fff; background: var(--ink); }

.hero-facts {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(7,17,31,.46);
  backdrop-filter: blur(14px);
}
.hero-facts > div { padding: 25px 4vw; display: grid; gap: 3px; border-right: 1px solid rgba(255,255,255,.12); }
.hero-facts > div:last-child { border-right: 0; }
.hero-facts strong { font-size: clamp(22px, 2.8vw, 38px); letter-spacing: -.04em; }
.hero-facts span { color: rgba(255,255,255,.6); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.scroll-cue { position: absolute; right: 30px; bottom: 130px; width: 22px; height: 40px; border: 1px solid rgba(255,255,255,.35); border-radius: 16px; }
.scroll-cue span { position: absolute; top: 8px; left: 9px; width: 3px; height: 7px; border-radius: 3px; background: #fff; animation: scroll-cue 1.8s infinite; }

.section { padding: 130px 0; }
.split-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px, 8vw, 120px); align-items: start; }
.section-heading h2, .coach h2, .contact h2, .facilities h2 {
  margin: 17px 0 0;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.section-heading h2 span, .coach h2 span, .contact h2 span { color: var(--blue); }
.intro-copy { padding-top: 34px; }
.lead { font-size: clamp(21px, 2.4vw, 29px); line-height: 1.36; letter-spacing: -.025em; }
.intro-copy > p:not(.lead), .coach-copy > p, .facilities-content > p, .contact-copy > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.values { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.values span { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 13px; font-weight: 700; background: #fff; }

.programs { color: #fff; background: var(--ink); }
.section-heading-row { display: grid; grid-template-columns: 1fr 330px; gap: 60px; align-items: end; margin-bottom: 50px; }
.section-heading-row > p { margin: 0; color: rgba(255,255,255,.6); line-height: 1.7; }
.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.program-card {
  position: relative;
  min-height: 390px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: #17253a;
}
.program-card img { position: absolute; z-index: -3; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.program-card:not(.program-featured) img { object-position: center top; }
.program-card:hover img { transform: scale(1.055); }
.program-overlay { position: absolute; z-index: -2; inset: 0; background: linear-gradient(0deg, rgba(7,17,31,.97) 0%, rgba(7,17,31,.48) 45%, rgba(7,17,31,.05) 100%); }
.program-featured { grid-row: span 2; min-height: 798px; }
.program-featured img { object-position: 49% center; }
.program-index { position: absolute; top: 24px; right: 26px; color: rgba(255,255,255,.75); font: 700 12px/1 monospace; }
.program-content { position: absolute; inset: auto 28px 28px; }
.program-content > span { color: var(--blue-bright); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.program-content h3 { margin: 8px 0 0; font-size: clamp(32px, 4vw, 56px); line-height: .95; letter-spacing: -.05em; }
.program-content p { max-width: 470px; margin: 14px 0 0; color: rgba(255,255,255,.67); line-height: 1.6; }
.program-junior { grid-column: span 2; min-height: 330px; background: linear-gradient(135deg, #087dce, #07518c); }
.program-junior .program-content { max-width: 650px; }
.junior-art { position: absolute; inset: 0 0 0 auto; width: 50%; overflow: hidden; }
.junior-art::before, .junior-art::after, .junior-art span { content: ""; position: absolute; border: 2px solid rgba(255,255,255,.15); border-radius: 50%; }
.junior-art::before { width: 460px; height: 460px; top: -150px; right: -100px; }
.junior-art::after { width: 310px; height: 310px; top: -75px; right: -25px; }
.junior-art span:nth-child(1) { width: 160px; height: 160px; top: 2px; right: 49px; background: rgba(237,41,47,.42); }
.junior-art span:nth-child(2) { width: 22px; height: 22px; top: 85px; right: 117px; background: #fff; }
.junior-art span:nth-child(3) { width: 120px; height: 3px; top: 81px; right: 68px; border: 0; border-radius: 0; background: rgba(255,255,255,.86); transform: rotate(-42deg); }

.coach { position: relative; background: #fff; overflow: hidden; }
.coach::before { content: "08"; position: absolute; top: 15px; right: -20px; color: var(--paper); font-size: 320px; font-weight: 900; line-height: 1; letter-spacing: -.08em; }
.coach-layout { position: relative; display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(60px, 9vw, 130px); align-items: center; }
.coach-portrait { position: relative; }
.portrait-frame { position: relative; max-width: 430px; aspect-ratio: 4 / 5; margin-inline: auto; border-radius: 220px 220px 28px 28px; overflow: hidden; background: #dfe5ec; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); border-radius: inherit; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; transform: scale(1.035); }
.dan-badge { position: absolute; right: 3%; bottom: 8%; width: 126px; height: 126px; display: grid; place-content: center; text-align: center; color: #fff; background: var(--red); border: 8px solid #fff; border-radius: 50%; box-shadow: var(--shadow); }
.dan-badge strong { font-size: 40px; line-height: .8; }
.dan-badge sup { font-size: 16px; }
.dan-badge span { margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.coach-copy .lead { max-width: 620px; margin: 28px 0 35px; }
.credentials { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.credentials li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 19px 0; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.55; }
.credentials li span { color: var(--red); font: 700 12px/1.7 monospace; }

.facilities { position: relative; min-height: 740px; display: grid; align-items: end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.facilities-media { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(7,17,31,.95) 0%, rgba(7,17,31,.54) 50%, rgba(7,17,31,.08) 100%), linear-gradient(0deg, rgba(7,17,31,.9), transparent 50%), url("assets/facilities.jpg") center / cover no-repeat; }
.facilities::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(120deg, transparent 55%, rgba(25,168,255,.12)); }
.facilities-content { padding-bottom: 100px; }
.kicker-light { color: #fff; }
.facilities h2 { max-width: 820px; font-size: clamp(55px, 8vw, 110px); }
.facilities h2 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.65); }
.facilities-content > p { max-width: 580px; color: rgba(255,255,255,.67); }
.text-link { display: inline-flex; gap: 18px; margin-top: 20px; color: #fff; font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 7px; }

.contact { background: linear-gradient(180deg, var(--paper), #e9eef5); }
.contact-panel { position: relative; padding: clamp(32px, 6vw, 78px); display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 8vw, 110px); align-items: center; background: #fff; border-radius: 34px; box-shadow: var(--shadow); overflow: hidden; }
.contact-panel::before { content: ""; position: absolute; left: -80px; bottom: -120px; width: 300px; height: 300px; background: rgba(25,168,255,.11); border-radius: 50%; filter: blur(5px); }
.contact-copy { position: relative; }
.contact-copy h2 { max-width: 720px; }
.contact-copy > p { max-width: 650px; }
.contact-card { position: relative; padding: 38px; color: #fff; background: var(--ink); border-radius: 24px; box-shadow: 0 24px 60px rgba(7,17,31,.22); }
.contact-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--blue-bright); background: rgba(25,168,255,.12); border-radius: 50%; }
.contact-icon svg { width: 24px; stroke: currentColor; stroke-width: 1.7; }
.contact-card > span { display: block; margin-top: 28px; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-card h3 { margin: 10px 0 30px; font-size: clamp(30px, 3vw, 43px); line-height: 1.1; letter-spacing: -.04em; }
.contact-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); }
.social-row { display: grid; margin-top: 16px; }
.social-row a { padding: 12px 0; display: flex; justify-content: space-between; color: rgba(255,255,255,.75); font-size: 14px; font-weight: 700; text-decoration: none; }
.social-row a:hover { color: #fff; }

.site-footer { padding: 36px 0; color: rgba(255,255,255,.65); background: #040b14; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.footer-brand img { width: 50px; height: 50px; }
.footer-grid > p { font-size: 13px; letter-spacing: .13em; text-transform: uppercase; }
.footer-meta { justify-self: end; display: grid; justify-items: end; gap: 7px; }
.footer-meta > a { color: rgba(255,255,255,.5); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: color .2s ease; }
.footer-meta > a:hover { color: #fff; }

.back-to-top { position: fixed; z-index: 900; right: 20px; bottom: 20px; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: var(--red); box-shadow: 0 10px 25px rgba(237,41,47,.28); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top.over-footer { bottom: 140px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.25,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.program-card:nth-child(2) { transition-delay: .08s; }
.program-card:nth-child(3) { transition-delay: .14s; }

@keyframes hero-in { from { transform: scale(1.09); opacity: .55; } to { transform: scale(1.035); opacity: 1; } }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(13px); } }

@media (max-width: 980px) {
  :root { --container: min(100% - 34px, 760px); }
  .menu-toggle { display: block; z-index: 2; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { position: fixed; inset: 0; padding: 120px 30px 50px; flex-direction: column; align-items: flex-start; gap: 20px; background: rgba(7,17,31,.98); transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav a { font-size: 28px; }
  .nav-cta { margin-top: 12px; padding: 14px 22px; }
  .split-layout, .coach-layout, .contact-panel { grid-template-columns: 1fr; }
  .section-heading-row { grid-template-columns: 1fr; gap: 22px; }
  .coach-copy { max-width: 670px; }
  .contact-card { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-grid > p { display: none; }
}

@media (max-width: 720px) {
  :root { --container: calc(100% - 28px); --radius: 20px; }
  .site-header { padding: 12px 0; }
  .brand img { width: 50px; height: 50px; }
  .brand-copy small { display: none; }
  .hero { min-height: 860px; align-items: start; }
  .hero-media { background: linear-gradient(180deg, rgba(7,17,31,.58), rgba(7,17,31,.9) 65%, var(--ink) 100%), url("assets/hero-main.jpg") 59% center / cover no-repeat; }
  .hero-content { padding: 150px 0 320px; }
  .hero h1 { font-size: clamp(43px, 13vw, 56px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div { grid-template-columns: 100px 1fr; align-items: center; padding: 14px 20px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero-facts strong { font-size: 21px; }
  .hero-facts span { font-size: 10px; }
  .scroll-cue { display: none; }
  .section { padding: 88px 0; }
  .section-heading h2, .coach h2, .contact h2 { font-size: 42px; }
  .intro-copy { padding-top: 0; }
  .program-grid { grid-template-columns: 1fr; }
  .program-featured { grid-row: auto; min-height: 540px; }
  .program-card { min-height: 360px; }
  .program-junior { grid-column: auto; }
  .program-junior .program-content { right: 25px; }
  .junior-art { width: 75%; opacity: .55; }
  .coach::before { font-size: 190px; }
  .dan-badge { width: 104px; height: 104px; right: -4px; }
  .dan-badge strong { font-size: 34px; }
  .credentials li { grid-template-columns: 35px 1fr; gap: 10px; font-size: 14px; }
  .facilities { min-height: 650px; }
  .facilities-media { background: linear-gradient(0deg, rgba(7,17,31,.98), rgba(7,17,31,.12) 85%), url("assets/facilities.jpg") 58% center / cover no-repeat; }
  .facilities-content { padding-bottom: 60px; }
  .facilities h2 { font-size: 54px; }
  .contact-panel { padding: 26px 20px; border-radius: 24px; }
  .contact-card { padding: 28px; }
  .contact-actions { display: grid; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-meta { justify-self: center; justify-items: center; }
  .footer-brand { justify-self: center; }
  .back-to-top.over-footer { bottom: 185px; }
}

@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 { opacity: 1; transform: none; }
}

.error-page {
  min-height: 100svh;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(25,168,255,.22), transparent 30%),
    linear-gradient(135deg, #07111f, #0b1a2d 70%, #07111f);
}
.error-page main { width: var(--container); min-height: 100svh; margin-inline: auto; padding: 28px 0 70px; display: grid; align-content: space-between; gap: 70px; }
.error-brand { width: max-content; }
.error-card { position: relative; max-width: 850px; padding: 70px 0 40px; }
.error-code { position: absolute; z-index: 0; top: -60px; left: -15px; color: rgba(255,255,255,.035); font-size: clamp(180px, 33vw, 430px); font-weight: 900; line-height: 1; letter-spacing: -.1em; pointer-events: none; }
.error-card > *:not(.error-code) { position: relative; z-index: 1; }
.error-card h1 { margin: 18px 0 24px; font-size: clamp(52px, 8vw, 104px); line-height: .94; letter-spacing: -.065em; }
.error-card h1 em { color: var(--blue-bright); font-style: normal; }
.error-card > p:not(.kicker) { max-width: 570px; color: rgba(255,255,255,.65); font-size: 18px; line-height: 1.65; }
.error-card .button { margin-top: 20px; }
