/* ------------------------------------------------------------------
   Netball Tryouts — marketing site
   Palette is the app's own: court navy, logo cyan, ink, bib white.
   Display: Fraunces (serif). Body: Schibsted Grotesk.
   ------------------------------------------------------------------ */

:root {
  --navy: #052454;
  --navy-deep: #02122e;
  --navy-ink: #031838;
  --cyan: #00a8d0;
  --cyan-text: #007ea3;
  --cyan-soft: #e0f4fa;
  --net: #8fa8cc;
  --ink: #111827;
  --ink-muted: #4b5563;
  --ink-subtle: #6b7280;
  --bib: #f6f8fb;
  --paper: #ffffff;
  --brand-soft: #e8f1fa;
  --line: #d9e1ec;
  --ok: #166534;
  --ok-soft: #dcfce7;
  --warn: #92400e;
  --warn-soft: #fef3c7;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 96px);
  --col: minmax(0, 1fr);
  --radius-lg: 28px;
  --radius: 16px;
  --radius-sm: 10px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bib);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; max-width: 62ch; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--paper); color: var(--navy); border-radius: 8px;
}
.skip:focus { top: 16px; }

/* Display type ------------------------------------------------------ */
.h2 {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-weight: 300;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 i { font-style: italic; font-weight: 300; }

/* Line-reveal wrappers: each .line clips its child, the child slides up */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; transform: translateY(110%); will-change: transform; }
.no-js .line > span, .revealed .line > span { transform: none; }

/* Buttons ----------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 500; font-size: .95rem; text-decoration: none; letter-spacing: .005em;
  border: 1.5px solid transparent;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, border-color .3s;
  overflow: hidden; isolation: isolate;
  cursor: pointer;
}
.btn > span { position: relative; z-index: 1; }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: var(--cyan);
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
  border-radius: inherit;
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn--solid { background: var(--cyan); color: var(--navy-deep); }
.btn--solid::after { background: #fff; }
.btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--line:hover { color: var(--navy-deep); border-color: var(--cyan); }
.btn--ghost { background: transparent; color: inherit; padding: 0 14px; }
.btn--ghost::after { display: none; }
.btn--ghost:hover { color: var(--cyan); }

.btn--white { background: #fff; color: var(--navy-deep); }
.btn--white:hover { color: var(--navy-deep); }

/* Section tag (pill with a dot) */
.tag { display: inline-flex; justify-self: start; align-self: start; width: max-content; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.85); margin-bottom: 22px; }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(0,168,208,.25); }
.tag--dark { color: var(--ink-muted); border-color: var(--line); background: var(--bib); }
.tag--hero { background: rgba(2,18,46,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.criteria__head .tag { grid-column: 1 / -1; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--navy); font-size: .76rem; font-weight: 500; }
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--bad { background: #fee2e2; color: #991b1b; }

/* Nav --------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  color: #fff;
  transition: background-color .4s, color .4s, box-shadow .4s, padding .4s;
}
.nav.is-scrolled {
  padding: 10px var(--gutter);
  background: rgba(2, 18, 46, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.nav__brand em { font-style: normal; color: var(--cyan); }
.nav__brand img { height: 63px; width: auto; transition: height .4s; }
.nav.is-scrolled .nav__brand img { height: 48px; }
.nav__brand span { font-size: 1.3rem; }
.nav__links { display: flex; justify-content: center; gap: 2px; justify-self: center; padding: 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(2,18,46,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav__links a { padding: 8px 14px; text-decoration: none; font-size: .9rem; opacity: .85; border-radius: 999px; transition: opacity .3s, background-color .3s; }
.nav__links a:hover { opacity: 1; background: rgba(255,255,255,.1); }
.nav__cta { display: flex; gap: 8px; }
.nav__burger { display: none; width: 44px; height: 44px; background: none; border: 0; border-radius: 999px; cursor: pointer; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .3s, opacity .3s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49; padding: 96px var(--gutter) 40px;
  background: var(--navy-deep); color: #fff;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu a { font-family: var(--serif); font-size: 2rem; text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu[hidden] { display: none; }

/* Hero -------------------------------------------------------------- */
.hero { position: relative; padding: 168px var(--gutter) 0; text-align: center; overflow: hidden; isolation: isolate; color: #fff; background: var(--navy-deep); }
.hero__bg { position: absolute; inset: -10% 0 0; z-index: 0; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .95; }
.hero__grade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(2,18,46,.55) 0%, rgba(2,18,46,.25) 30%, rgba(2,18,46,.7) 62%, var(--navy-deep) 100%); }
.hero__copy { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; display: grid; justify-items: center; }
.hero__title { font-family: var(--serif); font-variation-settings: 'opsz' 144, 'SOFT' 40; font-weight: 300; font-size: clamp(3rem, 7.4vw, 6.8rem); line-height: .98; letter-spacing: -.028em; margin-bottom: 26px; text-wrap: balance; }
.hero__title i { font-style: italic; color: var(--cyan); }
.hero__lede { font-size: clamp(1.05rem, 1.3vw, 1.22rem); color: rgba(255,255,255,.85); max-width: 54ch; opacity: 0; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; opacity: 0; }

.hero__frame-wrap { position: relative; z-index: 3; max-width: 1180px; margin: 72px auto 0; perspective: 1600px; }
.frame { display: grid; grid-template-columns: 200px 1fr; border-radius: 22px 22px 0 0; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 -10px 0 8px rgba(255,255,255,.06), 0 60px 120px -30px rgba(0,0,0,.7); transform-origin: center top; min-height: 520px; text-align: left; font-size: .86rem; }
.frame__side { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 18px 12px; display: grid; gap: 2px; align-content: start; }
.frame__side span { padding: 8px 12px; border-radius: 8px; }
.frame__side span.on { background: rgba(255,255,255,.1); color: #fff; }
.frame__org { display: flex; align-items: center; gap: 8px; padding: 6px 8px 18px; color: #fff; font-weight: 600; }
.frame__main { padding: 24px 28px; }
.frame__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.frame__head small { color: var(--ink-subtle); }
.frame__head b { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; letter-spacing: -.02em; }
.frame__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.frame__stats div { padding: 14px 16px; border-radius: 12px; background: var(--bib); border: 1px solid var(--line); display: grid; gap: 2px; }
.frame__stats small { color: var(--ink-subtle); }
.frame__stats b { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; line-height: 1; color: var(--navy); }
.frame__stats b.warn { color: var(--warn); }
.frame__table { width: 100%; border-collapse: collapse; }
.frame__table th { text-align: left; font-weight: 500; color: var(--ink-subtle); padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: .78rem; }
.frame__table td { padding: 11px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.frame__table td:first-child { font-weight: 600; color: var(--navy); }

.float { position: absolute; will-change: transform; }
.float--sheet { right: -3%; top: 28%; width: min(320px, 44%); }
.float--chip { left: -2%; top: 60%; }

/* Mock UI pieces --------------------------------------------------- */
.ui {
  background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(2,18,46,.55), 0 2px 0 rgba(255,255,255,.6) inset;
  font-size: .86rem;
}
.ui__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 500; }
.ui__num { font-family: var(--serif); font-size: 1.6rem; line-height: 1; letter-spacing: -.02em; color: var(--navy); }
.ui__num small { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--cyan-text); margin-left: 6px; vertical-align: middle; }
.ui__crit { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.ui__crit span:first-child { color: var(--ink-muted); }
.ui__crit--no span:first-child { color: var(--ink-subtle); }
.scale { display: flex; gap: 4px; }
.scale i { width: 18px; height: 18px; border-radius: 6px; background: var(--brand-soft); }
.scale i.on { background: var(--navy); }
.ui__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; }
.ui__tags span, .tags div span { padding: 4px 10px; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan-text); font-size: .78rem; font-weight: 500; }
.ui__foot { padding: 10px 16px; color: var(--ink-subtle); font-size: .78rem; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--navy); font-size: .76rem; font-weight: 500; white-space: nowrap; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--sync { background: var(--warn-soft); color: var(--warn); }
.pill--synced { background: var(--ok-soft); color: var(--ok); }

.board { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.board__side { display: flex; flex-wrap: wrap; gap: 5px; padding: 12px 14px; }
.board__side:first-child { border-right: 1px solid var(--line); }
.board__side b { width: 100%; font-size: .72rem; letter-spacing: .04em; color: var(--ink-subtle); font-weight: 600; margin-bottom: 4px; }
.board__side span { padding: 3px 7px; border-radius: 6px; background: var(--bib); border: 1px solid var(--line); font-variant-numeric: tabular-nums; font-weight: 500; font-size: .78rem; }
.board__side span.hot { background: var(--navy); color: #fff; border-color: var(--navy); }

.ui--chip { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 999px; }
.ui--chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.ui--chip b { display: block; font-weight: 600; }
.ui--chip small { color: var(--ink-subtle); }

.hero__scroll { position: absolute; left: var(--gutter); bottom: 28px; z-index: 3; width: 1px; height: 56px; background: rgba(255,255,255,.18); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--cyan); transform-origin: top; animation: scrollhint 2.2s var(--ease-in-out) infinite; }
@keyframes scrollhint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Statement --------------------------------------------------------- */
.statement { background: var(--navy-deep); color: #fff; padding: clamp(120px, 16vw, 220px) var(--gutter); }
.statement__text {
  max-width: 24ch;
  margin-left: max(0px, calc((100% - 1400px) / 2));
  font-family: var(--serif); font-variation-settings: 'opsz' 96, 'SOFT' 20; font-weight: 300;
  font-size: clamp(1.9rem, 4.4vw, 3.9rem); line-height: 1.12; letter-spacing: -.018em;
}
.scrub-text .w { display: inline-block; opacity: .16; transition: opacity .15s linear; will-change: opacity; }
.no-js .scrub-text .w { opacity: 1; }

/* The day: pinned horizontal ---------------------------------------- */
.day { position: relative; background: var(--bib); color: var(--ink); overflow: hidden; }
.day__head { padding: clamp(96px, 12vw, 160px) var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.day__hint { color: var(--ink-subtle); font-size: 1.05rem; justify-self: end; text-align: right; }
.day__track { display: flex; gap: 24px; padding: 24px var(--gutter) 120px; will-change: transform; }
.stage {
  flex: 0 0 auto; width: min(440px, 82vw);
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px;
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(5,36,84,.25);
}
.stage:nth-child(even) { transform: translateY(40px); }
.stage__n { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--net); font-weight: 300; }
.stage h3 { font-family: var(--serif); font-size: 2rem; line-height: 1; letter-spacing: -.02em; font-variation-settings: 'opsz' 72; }
.stage p { color: var(--ink-muted); font-size: .98rem; }
.stage__ui { margin-top: 6px; }
.stage__ui .ui { box-shadow: none; border: 1px solid var(--line); background: var(--bib); }
.ui--form .row, .ui--mail .row { display: flex; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.ui--form .row:last-child, .ui--mail .row:last-child { border-bottom: 0; }
.row span { color: var(--ink-subtle); }
.row b { font-weight: 500; }
.row--ok b { color: var(--ok); }
.ui--checkin { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.ui--checkin span, .ui--checkin b { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 500; }
.ui--checkin b { background: var(--ok); color: #fff; border-color: var(--ok); }
.ui--warn { padding: 14px 16px; display: grid; gap: 6px; border-left: 3px solid #d97706 !important; }
.ui--warn b { color: var(--warn); }
.ui--warn span { color: var(--ink-muted); }
.ui--warn em { font-style: normal; color: var(--cyan-text); font-weight: 500; }
.ui--sync { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; color: var(--ink-subtle); }
.ui--cov { display: grid; grid-template-columns: 1fr 1fr; }
.ui--cov > div { padding: 12px 14px; display: grid; gap: 2px; }
.ui--cov > div:first-child { border-right: 1px solid var(--line); }
.ui--cov small { color: var(--ink-subtle); font-size: .72rem; letter-spacing: .02em; }
.ui--cov b { font-family: var(--serif); font-size: 1.7rem; line-height: 1; font-weight: 400; color: var(--navy); }
.ui--cov span { color: var(--ink-muted); font-size: .78rem; }
.ui--ratify { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; align-items: center; }
.ui--ratify span { color: var(--ink-subtle); padding: 6px 10px; }
.ui--ratify b { padding: 6px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 500; }

/* Feature panels ---------------------------------------------------- */
.features { display: grid; gap: 24px; padding: 0 var(--gutter) 24px; background: var(--bib); }
.feature {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(40px, 5vw, 80px);
  border-radius: var(--radius-lg);
  overflow: hidden; isolation: isolate;
  min-height: 70vh;
  transform-origin: center top;
}
.feature--dark { background: var(--navy-deep); color: #fff; }
.feature--light { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.feature--paper { background: var(--brand-soft); color: var(--ink); display: block; }
.feature--flip .feature__media { order: 2; }
.feature__body p { color: inherit; opacity: .84; margin-top: 18px; font-size: 1.05rem; }
.feature__body p em { font-family: var(--serif); font-style: italic; font-size: 1.1em; opacity: 1; }
.feature__body .h2 { margin-bottom: 8px; }
.feature__body--wide { max-width: 900px; }
.feature__body--wide .h2 { max-width: 24ch; }
.feature__note { font-size: .92rem !important; opacity: .6 !important; margin-top: 22px; }
.feature__note--center { max-width: none; text-align: center; margin-top: 40px; font-family: var(--serif); font-size: 1.25rem !important; opacity: .9 !important; }

.feature__media { position: relative; border-radius: var(--radius); overflow: visible; will-change: transform; }
.feature__media > img { border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 640px; }
.feature__media--ui { display: grid; place-items: center; }

.constraints { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.constraints li { padding: 12px 0 12px 30px; border-bottom: 1px solid rgba(255,255,255,.14); position: relative; opacity: .9; }
.constraints li::before {
  content: ''; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg) scale(0); transform-origin: center;
  transition: transform .5s var(--ease-out);
}
.constraints li.is-on::before { transform: rotate(-45deg) scale(1); }

.phone {
  position: absolute; right: -6%; bottom: -10%; width: min(250px, 60%);
  background: var(--paper); color: var(--ink); border-radius: 26px; padding: 14px;
  box-shadow: 0 40px 70px -20px rgba(2,18,46,.6), 0 0 0 6px var(--navy-ink), 0 0 0 7px rgba(255,255,255,.12);
  font-size: .8rem;
}
.phone__bar { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 10px; }
.phone__run { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: var(--bib); margin-bottom: 8px; }
.phone__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.phone__grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-variant-numeric: tabular-nums; font-weight: 500; font-size: .74rem; }
.phone__grid .done { background: var(--brand-soft); border-color: transparent; color: var(--navy); }
.phone__grid .now { background: var(--navy); color: #fff; border-color: var(--navy); }
.phone__foot { margin-top: 10px; padding: 10px; text-align: center; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 500; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; max-width: 900px; }
.split__col { background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(5,36,84,.35); }
.split__col h3 { font-family: var(--serif); font-size: 1.8rem; letter-spacing: -.02em; margin-bottom: 14px; font-variation-settings: 'opsz' 72; }
.split__col dl { margin: 0; }
.split__col dl > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.split__col dt { color: var(--ink-muted); }
.split__col dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }
.status { display: inline-block; margin-top: 18px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--navy); font-size: .82rem; font-weight: 500; }
.status--ok { background: var(--ok-soft); color: var(--ok); }

.teams { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; width: 100%; max-width: 560px; }
.teams > div { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 16px; font-size: .84rem; display: grid; gap: 6px; align-content: start; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.teams b { font-weight: 600; margin-bottom: 4px; }
.teams__pool span { padding: 8px 10px; border-radius: 8px; background: var(--bib); border: 1px solid var(--line); }
.teams__roster { transform: translateY(28px); }
.matrix { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 6px 0; }
.matrix span { display: grid; place-items: center; gap: 2px; padding: 8px 0; border-radius: 8px; background: var(--brand-soft); color: var(--navy); font-weight: 600; font-size: .74rem; }
.matrix span i { font-style: normal; font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1; }
.matrix span.warn { background: var(--warn-soft); color: var(--warn); }
.teams small { color: var(--warn); font-weight: 500; }

.audit { width: 100%; max-width: 560px; background: var(--navy-deep); color: #fff; border-radius: var(--radius); padding: 10px 0; font-size: .84rem; box-shadow: 0 40px 70px -30px rgba(5,36,84,.6); }
.audit__row { display: grid; grid-template-columns: 52px 92px 1fr; gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.08); align-items: baseline; }
.audit__row > span:first-child { color: var(--net); font-variant-numeric: tabular-nums; }
.audit__row b { font-weight: 600; color: var(--cyan); }
.audit__row > span:last-child { opacity: .85; }
.audit__row--lock { border-bottom: 0; color: var(--net); }
.audit__row--lock b { color: var(--net); }

.chat { width: 100%; max-width: 540px; display: grid; gap: 10px; font-size: .9rem; }
.chat__q { justify-self: end; max-width: 80%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--cyan); color: var(--navy-deep); font-weight: 500; }
.chat__a { max-width: 92%; padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); line-height: 1.5; }
.chat__a em { font-style: italic; color: #fff; }
.chat__a small { display: block; margin-top: 10px; color: var(--net); font-size: .76rem; }
.chat__a--refuse { border-color: rgba(0,168,208,.5); }

/* Criteria: bibs on a court ---------------------------------------- */
.criteria { background: var(--bib); color: var(--ink); padding: clamp(96px, 12vw, 160px) var(--gutter); }
.criteria__head { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: end; }
.criteria__head p { color: var(--ink-muted); font-size: 1.05rem; }
.court-wrap { max-width: 1180px; margin: 56px auto 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.court { position: relative; aspect-ratio: 3 / 5; max-height: 720px; margin: 0 auto; width: 100%; max-width: 430px; border-radius: 20px; background: var(--navy); color: rgba(255,255,255,.55); box-shadow: 0 40px 80px -40px rgba(5,36,84,.5); position: sticky; top: 100px; }
.court__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.court button { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; place-items: center; gap: 0; width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: rgba(2,18,46,.75); color: #fff; font-family: var(--serif); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: transform .4s var(--ease-out), background-color .3s, border-color .3s, box-shadow .3s; backdrop-filter: blur(4px); }
.court button small { font-family: var(--sans); font-size: .58rem; opacity: .8; white-space: nowrap; }
.court button:hover { transform: translate(-50%, -50%) scale(1.08); border-color: var(--cyan); }
.court button[aria-selected="true"] { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 0 0 8px rgba(0,168,208,.35), 0 20px 40px -10px rgba(0,0,0,.5); }
.court button[aria-selected="true"] small { opacity: .7; }
.domains { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.domains span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; background: var(--paper); }
.rubric__sheet { display: grid; gap: 20px; }
.rubric__group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.rubric__group h3 { font-family: var(--serif); font-size: 1.8rem; letter-spacing: -.02em; margin-bottom: 14px; font-variation-settings: 'opsz' 72; }
.rubric__group li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
.rubric__group li:last-child { border-bottom: 0; }
.rubric__group--common ul { columns: 2; column-gap: 32px; }
.rubric__group--common li { break-inside: avoid; }
[data-pos-criteria] li { animation: rise .5s var(--ease-out) both; }
[data-pos-criteria] li:nth-child(2) { animation-delay: .06s; }
[data-pos-criteria] li:nth-child(3) { animation-delay: .12s; }
[data-pos-criteria] li:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.anchors { margin-top: 20px; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-muted); }
.anchors b { color: var(--ink); font-weight: 600; }
.anchors span { display: flex; gap: 10px; align-items: baseline; }
.anchors i { font-style: normal; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); min-width: 1.2em; }
.tags { display: grid; gap: 10px; }
.tags p { color: var(--ink-muted); }
.tags div { display: flex; flex-wrap: wrap; gap: 8px; }

/* Roles ------------------------------------------------------------- */
.roles { background: var(--navy-deep); color: #fff; padding: clamp(96px, 12vw, 160px) var(--gutter); overflow: hidden; }
.roles__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.roles__head p { opacity: .8; font-size: 1.05rem; }
.roles__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; perspective: 1200px; }
.role {
  padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  display: grid; gap: 10px; align-content: start; transform-style: preserve-3d;
  transition: background-color .4s, border-color .4s;
}
.role:hover { background: rgba(255,255,255,.08); border-color: rgba(0,168,208,.5); }
.role b { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; letter-spacing: -.015em; font-variation-settings: 'opsz' 72; }
.role p { opacity: .8; font-size: .95rem; }
.role small { color: var(--cyan); font-size: .82rem; }
.role:nth-child(4n+2) { margin-top: 36px; }
.role:nth-child(4n+3) { margin-top: 12px; }
.role:nth-child(4n+4) { margin-top: 56px; }

/* Privacy ----------------------------------------------------------- */
.privacy { background: var(--bib); color: var(--ink); padding: clamp(96px, 12vw, 160px) var(--gutter); overflow: hidden; }
.privacy__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: end; }
.privacy__head p { color: var(--ink-muted); font-size: 1.05rem; }
.privacy__photo { position: relative; margin: 64px 0 0; border-radius: var(--radius-lg); overflow: hidden; max-height: 520px; }
.privacy__photo img { width: 100%; height: 520px; object-fit: cover; object-position: center 40%; transform: scale(1.08); will-change: transform; }
.privacy__caption { position: absolute; left: 24px; bottom: 20px; padding: 10px 16px; border-radius: 999px; background: rgba(2,18,46,.7); color: #fff; font-size: .88rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.reveal-stage { margin: 72px 0; display: grid; grid-template-columns: minmax(0, 7fr) 2px minmax(0, 4fr); gap: 48px; align-items: stretch; }
.reveal-stage__card { position: relative; min-height: 560px; }
.plate {
  position: absolute; left: 0; right: 0; border-radius: var(--radius-lg); padding: 32px;
  display: grid; gap: 10px; align-content: start; will-change: transform, opacity;
}
.plate small { font-size: .82rem; letter-spacing: .01em; opacity: .7; }
.plate--score { top: 0; background: var(--navy); color: #fff; min-height: 260px; z-index: 3; right: 12%; }
.plate--score b { font-family: var(--serif); font-size: clamp(4rem, 9vw, 8rem); line-height: .9; font-weight: 300; letter-spacing: -.03em; }
.plate--score b span { font-family: var(--sans); font-size: .22em; font-weight: 600; color: var(--cyan); margin-left: .2em; vertical-align: top; }
.plate--score .pill { justify-self: start; background: rgba(255,255,255,.12); color: #fff; }
.plate--identity { top: 40px; left: 6%; right: 6%; background: var(--paper); border: 1px solid var(--line); z-index: 2; min-height: 220px; box-shadow: 0 30px 60px -30px rgba(5,36,84,.3); }
.plate--identity b { font-family: var(--serif); font-size: 2rem; font-weight: 400; letter-spacing: -.02em; }
.plate--identity span { color: var(--ink-muted); }
.plate--identity em { font-style: normal; color: var(--cyan-text); font-size: .9rem; }
.plate--never { top: 80px; left: 12%; right: 0; background: var(--brand-soft); color: var(--navy); z-index: 1; min-height: 180px; }
.reveal-stage__rail { position: relative; background: var(--line); border-radius: 2px; }
.reveal-stage__rail i { position: absolute; left: 0; right: 0; top: 0; height: 0%; background: var(--cyan); border-radius: 2px; }
.reveal-stage__steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 28px; align-content: start; position: sticky; top: 120px; }
.reveal-stage__steps li { display: grid; gap: 6px; opacity: .4; transition: opacity .5s; }
.reveal-stage__steps li.is-on { opacity: 1; }
.reveal-stage__steps b { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; letter-spacing: -.015em; font-variation-settings: 'opsz' 72; }
.reveal-stage__steps span { color: var(--ink-muted); font-size: .96rem; }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
.rules li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-muted); }
.rules li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* Safeguarding ------------------------------------------------------ */
.safe { position: relative; background: var(--navy-ink); color: #fff; padding: clamp(96px, 12vw, 160px) var(--gutter); overflow: hidden; isolation: isolate; }
.safe__bg { position: absolute; inset: -15% 0; z-index: 0; will-change: transform; }
.safe__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.safe__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-ink) 0%, rgba(3,24,56,.35) 40%, rgba(3,24,56,.6) 100%); }
.safe__inner { position: relative; z-index: 1; }
.safe__lede { margin-top: 18px; opacity: .8; font-size: 1.05rem; }
.safe__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; perspective: 1200px; }
.safe__item { padding: 28px; border-radius: var(--radius); background: rgba(2,18,46,.55); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform-style: preserve-3d; }
.safe__item h3 { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: 10px; font-variation-settings: 'opsz' 72; }
.safe__item p { opacity: .82; font-size: .96rem; }
.safe__item:nth-child(2), .safe__item:nth-child(5) { margin-top: 40px; }

/* Gains ------------------------------------------------------------- */
.gains { background: var(--paper); color: var(--ink); padding: clamp(96px, 12vw, 160px) var(--gutter); }
.thennow { margin-top: 56px; border-top: 1px solid var(--line); }
.thennow__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.thennow__row span { color: var(--ink-subtle); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.thennow__row b { font-weight: 500; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; }
.numbers div { display: grid; gap: 6px; padding-top: 18px; border-top: 2px solid var(--navy); }
.numbers b { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.5rem); line-height: .9; font-weight: 300; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.numbers span { color: var(--ink-muted); font-size: .95rem; max-width: 26ch; }

/* Index ------------------------------------------------------------- */
.index { background: var(--bib); color: var(--ink); padding: clamp(96px, 12vw, 160px) var(--gutter); }
.index__cols { columns: 3; column-gap: 48px; margin-top: 56px; }
.index__group { break-inside: avoid; margin-bottom: 40px; }
.index__group h3 { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 10px; font-variation-settings: 'opsz' 72; }
.index__group li { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-muted); font-size: .95rem; }

/* CTA + footer ------------------------------------------------------ */
.cta { position: relative; padding: clamp(140px, 18vw, 240px) var(--gutter); text-align: center; overflow: hidden; isolation: isolate; color: #fff; background: var(--navy-deep); }
.cta__bg { position: absolute; inset: -10% 0; z-index: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.cta__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-deep) 0%, rgba(2,18,46,.35) 40%, rgba(2,18,46,.75) 100%); }
.cta__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; display: grid; justify-items: center; }
.cta__inner p { margin-top: 24px; opacity: .88; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 40px var(--gutter) 48px; border-top: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; font-size: .9rem; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer nav a { text-decoration: none; opacity: .8; }
.footer nav a:hover { opacity: 1; color: var(--cyan); }
.footer small { grid-column: 1 / -1; opacity: .5; }

/* Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .frame { grid-template-columns: 160px 1fr; }
  .frame__stats { grid-template-columns: repeat(2, 1fr); }
  .roles__grid { grid-template-columns: repeat(2, 1fr); }
  .role:nth-child(n) { margin-top: 0; }
  .role:nth-child(even) { margin-top: 24px; }
  .index__cols { columns: 2; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .safe__grid { grid-template-columns: repeat(2, 1fr); }
  .safe__item:nth-child(n) { margin-top: 0; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; justify-self: end; }
  .hero { padding-top: 130px; }
  .hero__frame-wrap { margin-top: 48px; }
  .frame { grid-template-columns: 1fr; min-height: 0; }
  .frame__side { display: none; }
  .frame__table th:nth-child(4), .frame__table td:nth-child(4), .frame__table th:nth-child(5), .frame__table td:nth-child(5) { display: none; }
  .float { position: static; width: auto !important; transform: none !important; margin-top: 16px; }
  .float--chip .ui--chip { display: inline-flex; }
  .court-wrap { grid-template-columns: 1fr; }
  .court { position: relative; top: auto; max-width: 360px; }
  .day__head, .criteria__head, .roles__head, .privacy__head { grid-template-columns: 1fr; }
  .day__hint { justify-self: start; text-align: left; }
  .day__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 64px; -webkit-overflow-scrolling: touch; }
  .stage { scroll-snap-align: start; }
  .stage:nth-child(even) { transform: none; }
  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature__media > img { aspect-ratio: 3 / 2; max-height: 420px; }
  .feature--flip .feature__media { order: 0; }
  .phone { position: relative; right: auto; bottom: auto; width: 260px; margin: -80px auto 0; transform: none !important; }
  .tags { grid-template-columns: 1fr; gap: 16px; }
  .reveal-stage { grid-template-columns: 1fr; gap: 24px; }
  .reveal-stage__rail { display: none; }
  .reveal-stage__steps { position: static; }
  .plate--score, .plate--identity, .plate--never { left: 0; right: 0; }
  .rules { grid-template-columns: 1fr; }
  .thennow__row { grid-template-columns: 1fr; gap: 8px; }
  .footer { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .split { grid-template-columns: 1fr; }
  .roles__grid { grid-template-columns: 1fr; }
  .role:nth-child(n) { margin-top: 0; }
  .safe__grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr; }
  .index__cols { columns: 1; }
  .teams { grid-template-columns: 1fr; }
  .teams__roster { transform: none; }
  .audit__row { grid-template-columns: 44px 1fr; }
  .audit__row > span:last-child { grid-column: 1 / -1; }
  .rubric__group--common ul { columns: 1; }
  .court button { width: 60px; height: 60px; font-size: 1.2rem; }
}

/* Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line > span { transform: none !important; }
  .hero__lede, .hero__actions { opacity: 1 !important; }
  .scrub-text .w { opacity: 1 !important; }
  .hero__scroll span { animation: none; transform: none; }
  .constraints li::before { transform: rotate(-45deg) scale(1); }
  .stage:nth-child(even) { transform: none; }
  .btn, .btn::after, .court button { transition: none; }
  [data-pos-criteria] li { animation: none; }
}
