/* =====================================================================
   NOVA PERFORMANCE ACADEMY — DESIGN SYSTEM
   Black stage, white light. Wide-tracked geometric caps (Jost) echo the
   logo's "PERFORMANCE ACADEMY" line; slanted condensed display type
   (Barlow Condensed italic) echoes the forward lean of the NOVA wordmark.
   ===================================================================== */

:root {
  --black: #000;
  --ink: #050505;
  --surface: #0c0c0d;
  --surface-2: #141416;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --white: #fff;
  --text: #f4f4f5;
  --muted: rgba(244, 244, 245, 0.62);
  --faint: rgba(244, 244, 245, 0.38);
  --glow: rgba(255, 255, 255, 0.55);

  --font-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Futura Condensed ExtraBold", "Arial Narrow", Impact, sans-serif;

  --track-wide: 0.42em;
  --track-mid: 0.22em;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1240px;
  --header-h: 76px;
  --radius-pill: 999px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
::selection { background: var(--white); color: var(--black); }

:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--black); padding: 10px 16px;
  font-size: 13px; letter-spacing: var(--track-mid); text-transform: uppercase; text-decoration: none;
  border-radius: 6px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0;
}
h1.display { font-size: clamp(56px, 8vw, 120px); }
h2.display { font-size: clamp(40px, 5vw, 72px); }
h3 {
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  letter-spacing: var(--track-mid); text-transform: uppercase; margin: 0 0 10px;
}
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 60ch; font-weight: 300; }
.spaced { letter-spacing: var(--track-wide); text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 18px; --pad-x: 34px;
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 48px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border: 1.5px solid var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease),
              box-shadow .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 22px; height: 22px; flex: none; transition: transform .35s var(--ease); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--white); color: var(--black);
  box-shadow: 0 0 40px rgba(255,255,255,.28);
}
.btn--ghost:hover svg { transform: translateX(3px); }
.btn--solid { background: var(--white); color: var(--black); }
.btn--solid:hover, .btn--solid:focus-visible { background: transparent; color: var(--white); }
.btn--sm { --pad-y: 11px; --pad-x: 22px; min-height: 44px; font-size: 12px; gap: 10px; }

.text-link {
  font-size: 12px; font-weight: 500; letter-spacing: var(--track-mid); text-transform: uppercase;
  text-decoration: none; position: relative; padding: 6px 0;
}
.text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.text-link:hover::after, .text-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* =====================================================================
   COMING-SOON LANDING (body.is-holding)
   ===================================================================== */
.holding {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  overflow: hidden;
}
.holding__fx { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.holding__grain {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); }
  50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); } 100% { transform: translate(0,0); }
}
.holding__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 48%, transparent 40%, rgba(0,0,0,.55) 100%);
}

.holding__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px var(--gutter);
  font-size: 12px; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--muted);
}
.holding__bar .text-link { color: var(--text); }
.holding__bar-mark { display: flex; align-items: center; gap: 14px; }
.holding__bar-mark i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--white);
  box-shadow: 0 0 12px var(--glow); animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; box-shadow: 0 0 2px var(--glow); } }

.holding__main {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px var(--gutter) 48px;
}
.holding__logo {
  position: relative;
  width: min(940px, 78vw);
  aspect-ratio: 1525 / 286;
  margin: 0 0 clamp(56px, 8vh, 96px);
}
.holding__logo img { width: 100%; height: auto; filter: drop-shadow(0 0 28px rgba(255,255,255,.14)); }
/* A slow band of light that sweeps across the wordmark — clipped to its shape. */
.holding__logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.95) 50%, transparent 62%) no-repeat;
  background-size: 250% 100%;
  background-position: 160% 0;
  -webkit-mask: url("../img/nova-logo-white.png") center / 100% 100% no-repeat;
          mask: url("../img/nova-logo-white.png") center / 100% 100% no-repeat;
  mix-blend-mode: overlay;
  filter: blur(.4px);
  animation: sheen 7s var(--ease) 2.6s infinite;
}
@keyframes sheen { 0% { background-position: 160% 0; } 45%, 100% { background-position: -60% 0; } }

.holding__status { display: flex; flex-direction: column; align-items: center; width: min(720px, 100%); }
.hairline {
  width: 100%; height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7) 50%, transparent);
  box-shadow: 0 0 10px rgba(255,255,255,.35);
}
.holding__title {
  margin: 0; padding: clamp(26px, 3.6vh, 38px) 0;
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: 0.5em; margin-right: -0.5em; /* re-centre after trailing tracking */
  text-transform: uppercase; line-height: 1;
  text-shadow: 0 0 22px rgba(255,255,255,.45);
}
.holding__title .gap { display: inline-block; width: .7em; }
.holding__copy {
  margin: clamp(34px, 5vh, 52px) 0 clamp(30px, 4.6vh, 44px);
  color: var(--muted); font-weight: 300; font-size: clamp(16px, 1.25vw, 18px);
  max-width: 46ch;
}
.holding__cta { --pad-y: 22px; --pad-x: 54px; font-size: 16px; gap: 30px; }
.holding__cta svg { width: 28px; height: 28px; }
.holding__note { margin: 22px 0 0; font-size: 13px; color: var(--faint); letter-spacing: .06em; }
.holding__note a { color: var(--muted); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.holding__note a:hover { color: var(--white); }

.holding__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px var(--gutter) 30px;
  font-size: 11px; letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--faint);
}
.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--muted); transition: color .3s, background-color .3s;
}
.social a:hover { color: var(--black); background: var(--white); }
.social svg { width: 18px; height: 18px; }

/* Entrance choreography */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 1.4s var(--ease) forwards; animation-delay: var(--d, 0s); }
.reveal--logo { transform: translateX(-60px) skewX(-8deg); filter: blur(14px); animation-name: dash; animation-duration: 1.6s; }
.reveal--line { transform: scaleX(0); animation-name: draw; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes dash { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes draw { to { opacity: 1; transform: scaleX(1); } }

/* =====================================================================
   FULL-SITE CHROME (header, footer) — used by inner pages
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 0 var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
/* Glass state: an eased fade (no visible edge over bright light) */
.site-header::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 150%; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.52) 28%, rgba(0,0,0,.3) 52%, rgba(0,0,0,.12) 76%, rgba(0,0,0,.03) 92%, rgba(0,0,0,0) 100%);
  transition: opacity .3s;
}
.site-header.is-solid::before, .site-header.is-menu::before { opacity: 0; }
.site-header.is-solid {
  background: rgba(5,5,5,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header__brand { display: block; width: 132px; }
.site-header__nav { display: flex; align-items: center; gap: 36px; }
.site-header__nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-header__nav a[aria-current="page"]::after { transform: scaleX(1); }

.page-hero {
  position: relative; padding: calc(var(--header-h) + clamp(80px, 14vh, 160px)) var(--gutter) clamp(64px, 10vh, 120px);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; width: 140vw; height: 120vh; left: -20vw; bottom: 22px;
  border-radius: 50%; border-bottom: 1.5px solid rgba(255,255,255,.45);
  filter: blur(1px); box-shadow: 0 30px 80px -40px rgba(255,255,255,.35);
  transform: rotate(-8deg); pointer-events: none;
}
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section { padding: clamp(72px, 12vh, 140px) var(--gutter); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color .3s, transform .4s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* Placeholder blocks make unfinished content obvious while building */
.placeholder {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 28px; color: var(--faint); font-size: 14px; letter-spacing: .04em;
}
.placeholder strong { color: var(--muted); font-weight: 500; }

/* Timetable */
.timetable { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; }
.timetable__day h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.slot {
  background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--white);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; font-size: 14px; line-height: 1.4;
}
.slot time { display: block; color: var(--faint); font-size: 12px; letter-spacing: .08em; margin-bottom: 4px; }
.slot span { color: var(--muted); font-size: 12px; }

.embed-frame { width: 100%; min-height: 720px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

.site-footer { padding: 64px var(--gutter) 40px; color: var(--faint); font-size: 13px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.site-footer img { width: 180px; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--white); }

/* Banner shown on inner pages while the site is still in coming-soon mode */
.preview-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60;
  background: var(--white); color: var(--black); border-radius: var(--radius-pill);
  padding: 10px 20px; font-size: 11px; font-weight: 600; letter-spacing: var(--track-mid); text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); white-space: nowrap;
}
.preview-banner a { color: inherit; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .holding__logo::after { display: none; }
  .holding__grain { animation: none; }
}
