/* Fifteen: a tennis school (design concept). v3, dark green.
   Order: tokens → base → grounds, guides and type → buttons, chips and fields → header and menu → sections in page
   order → dock and dialog → motion → responsive. */

/* ---------- tokens: forest grounds, pale lines, one ball accent ---------- */
:root {
  --deep: #0F1712;              /* dark sections */
  --night: #0A100C;             /* footer */
  --forest: #17221B;            /* panels on dark */
  --forest-2: #1F2D24;
  --paper: #ECEEE7;             /* light sections */
  --paper-2: #E1E5DC;           /* fields and chips on paper */
  --paper-hi: #F5F6F1;          /* the booking panel */
  --ink: #0F1712;
  --muted: #56615A;             /* 5.6 on paper */
  --on-dark: #EDF0E9;
  --sage: #8D9B90;              /* the second tone on dark: 6.4 on deep */
  --sage-p: #7F8C82;            /* the second tone of headlines on paper, large text only */
  --ball: #D2E37B;              /* the one accent */
  --ball-2: #E0EE9C;
  --err: #B3261E;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 48px;                  /* the page margin */
  --gx: 20px;                   /* half a column gap: the court lines sit in the middle of the gaps */
  --cg: calc(var(--gx) * 2);
  --cols: 4;
  --r: 6px;                     /* photos, buttons, chips */
  --r-lg: 12px;                 /* panels */
  --nav-h: 88px;
  --sec: clamp(96px, 9vw, 152px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@font-face { font-family: "Inter Tight"; src: url("../assets/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; background: var(--deep); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r); background: var(--ball); color: var(--ink); text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 3px; }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { position: relative; z-index: 1; width: 100%; padding: 0 var(--pad); }

/* ---------- grounds, the court lines and type ---------- */
section { position: relative; }
.dark { background: var(--deep); color: var(--on-dark); --line: rgb(237 240 233 / .14); --line-2: rgb(237 240 233 / .3); --gl: rgb(237 240 233 / .075); --t2: var(--sage); --soft: var(--sage); --bullet: var(--ball); --focus: var(--ball); }
.paper { background: var(--paper); color: var(--ink); --line: rgb(15 23 18 / .14); --line-2: rgb(15 23 18 / .28); --gl: rgb(15 23 18 / .08); --t2: var(--sage-p); --soft: var(--muted); --bullet: var(--ink); --focus: var(--ink); }
.t2 { color: var(--t2); }
/* the court lines: hairlines in the middle of the column gaps, and just outside the outer columns */
.guides { position: absolute; top: 0; bottom: 0; left: calc(var(--pad) - var(--gx)); right: calc(var(--pad) - var(--gx)); z-index: 0; pointer-events: none; background-image: linear-gradient(to right, var(--gl) 1px, transparent 1px); background-size: calc((100% - 1px) / var(--cols)) 100%; background-repeat: repeat-x; }
.hero, .prog { --cols: 5; }
.cols { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--cg); }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: 0; }
.label::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--bullet); }
.h2 { font: 450 clamp(40px, 4.4vw, 68px)/1 var(--sans); letter-spacing: -.04em; text-wrap: balance; }
.lead { max-width: 30em; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.45; color: var(--soft); text-wrap: pretty; }
.statement { font: 400 clamp(26px, 2.6vw, 40px)/1.14 var(--sans); letter-spacing: -.03em; text-wrap: pretty; }
/* a section head on the columns: the title from the left, the paragraph from the second half */
.sec-head { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--cg); row-gap: 28px; align-items: end; }
.sec-title { grid-column: 1 / span 2; display: grid; gap: 24px; justify-items: start; }
.sec-side { grid-column: 3 / -1; display: grid; gap: 24px; justify-items: start; padding-bottom: 6px; }
.prog .sec-title { grid-column: 1 / span 3; }
.prog .sec-side { grid-column: 4 / -1; }
.frame { position: relative; overflow: hidden; overflow: clip; border-radius: var(--r); background: var(--forest); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }   /* absolute, so a tall photo can't stretch its frame */

/* ---------- buttons, chips and fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 0 16px 0 18px; border: 0; border-radius: var(--r); font-size: 15px; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s, box-shadow .25s; }
.btn .i { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-ball { background: var(--ball); color: var(--ink); }
.btn-ball:hover { background: var(--ball-2); }
.btn-ball:focus-visible { outline-color: var(--ball); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line-2); color: inherit; }
.btn-line:hover { background: rgb(237 240 233 / .07); }
.btn-ink { background: var(--deep); color: var(--on-dark); }
.btn-ink:hover { background: var(--forest-2); }
.btn-ink:disabled { background: var(--paper-2); color: var(--muted); cursor: default; }
.btn-ink:disabled .i { transform: none; }
.btn-soft { background: var(--paper-2); color: var(--ink); }
.btn-soft:hover { background: #D6DBD0; }
.btn-sm { min-height: 40px; padding: 0 12px 0 14px; gap: 12px; font-size: 14px; }
.chips { display: grid; gap: 8px; }
.chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.chip > span { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.chip b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.chip small { font-size: 13.5px; color: var(--muted); transition: color .2s; }
.chip:hover > span { background: var(--paper-2); }
.chip input:checked + span { background: var(--deep); box-shadow: none; color: var(--on-dark); }
.chip input:checked + span small { color: var(--sage); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 500; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px var(--gap, 16px); }
.opt { font-weight: 400; color: var(--muted); }
.input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: #8A938C; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.input[aria-invalid="true"] { border-color: var(--err); }

/* ---------- header ---------- */
/* one element, two states. top: clear over the hero, full width. bar: once the page scrolls, a dark green glass bar
   inset from the screen edge. Everything that changes is a CSS transition (inset, corners, fill, height, padding), so
   the header eases from one to the other instead of swapping. */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-dark); pointer-events: none; --inset-x: 16px; --inset-y: 10px; --dur: .75s; }
.nav::before { content: ""; position: absolute; inset: 0; border-radius: 0; background: rgb(15 23 18 / 0); box-shadow: inset 0 0 0 1px rgb(237 240 233 / 0), 0 18px 40px -24px rgb(0 0 0 / 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: inset var(--dur) var(--ease), border-radius var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), -webkit-backdrop-filter var(--dur) var(--ease); }
.nav-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; height: var(--nav-h); padding: 0 var(--pad); pointer-events: auto; transition: height var(--dur) var(--ease), padding var(--dur) var(--ease); }
.nav[data-state="bar"]::before { inset: var(--inset-y) var(--inset-x); border-radius: var(--r-lg); background: rgb(15 23 18 / .9); box-shadow: inset 0 0 0 1px rgb(237 240 233 / .09), 0 18px 40px -24px rgb(0 0 0 / .7); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); }
.nav[data-state="bar"] .nav-in { height: calc(64px + var(--inset-y) * 2); padding: 0 calc(var(--inset-x) + 20px); }
.logo { justify-self: start; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-tile { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--ball); color: var(--ink); font: 800 13px/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.logo-word { font: 600 20px/1 var(--sans); letter-spacing: -.035em; }
.links { position: relative; display: flex; align-items: center; gap: 28px; height: 100%; }
.links a { font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; opacity: .78; transition: opacity .2s; }
.links a:hover, .links a[aria-current] { opacity: 1; }
.nav-line { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ball); opacity: 0; transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s, bottom var(--dur) var(--ease); }
.nav[data-state="bar"] .nav-line { bottom: var(--inset-y); }
.nav[data-state="top"] .nav-line { opacity: 0 !important; }
.nav-cta { justify-self: end; }
.menu-btn { display: none; justify-self: end; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: inherit; font-size: 15px; font-weight: 500; }
.menu-btn .i { width: 16px; height: 16px; }
:is(.nav, .menu) :focus-visible { outline-color: var(--ball); }
/* the menu: the whole screen in dark green, big links on hairlines */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--deep); color: var(--on-dark); --line: rgb(237 240 233 / .16); }
.menu-panel { display: flex; flex-direction: column; height: 100%; padding: 16px var(--pad) calc(24px + env(safe-area-inset-bottom)); overflow: auto; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.menu-x { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; color: inherit; }
.menu-x .i { width: 22px; height: 22px; }
.menu nav { display: grid; margin-top: auto; padding-top: 40px; border-top: 1px solid var(--line); }
.menu nav a { display: block; padding: 14px 0 12px; border-bottom: 1px solid var(--line); font: 450 clamp(30px, 8vw, 40px)/1.05 var(--sans); letter-spacing: -.035em; text-decoration: none; }
.menu nav { border-top: 0; }
.menu .btn { width: 100%; margin-top: 28px; }

/* ---------- hero: the words on the dark ground, the night serve fading into it, the ladder on the baseline ---------- */
.hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: max(720px, 100svh); overflow: hidden; overflow: clip; }
.hero-pic { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 74%; filter: brightness(1.12) contrast(1.04); }
.hero-pic::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to right, var(--deep) 0, rgb(15 23 18 / .72) 16%, rgb(15 23 18 / .2) 38%, rgb(15 23 18 / 0) 55%),
  linear-gradient(to top, var(--deep) 0, rgb(15 23 18 / .6) 16%, rgb(15 23 18 / 0) 38%),
  linear-gradient(to bottom, rgb(15 23 18 / .45), rgb(15 23 18 / 0) 22%); }
.hero-in { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--cg); align-items: end; padding-top: calc(var(--nav-h) + 56px); padding-bottom: clamp(40px, 6vh, 72px); }
.hero-copy { grid-column: 1 / span 3; display: grid; gap: 28px; justify-items: start; }
.hero-t { font: 450 clamp(56px, 6.6vw, 104px)/.98 var(--sans); letter-spacing: -.045em; }
.hero-t .line { display: block; overflow: hidden; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-t .line > span { display: inline-block; }
.hero-foot { display: grid; gap: 28px; justify-items: start; }
.hero-lead { max-width: 27em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.45; color: rgb(237 240 233 / .8); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* the next free first lesson: a glass card on the photo */
.score-card { grid-column: 4 / -1; justify-self: end; display: grid; gap: 6px; width: min(100%, 320px); padding: 18px 18px 14px; border-radius: var(--r-lg); background: rgb(23 34 27 / .62); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-decoration: none; transition: background-color .3s, transform .5s var(--ease); }
.score-card:hover { background: rgb(31 45 36 / .78); transform: translateY(-3px); }
.sc-when { margin-top: 8px; font: 450 30px/1 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sc-meta { font-size: 14px; color: var(--sage); }
.sc-go { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ball); }
.sc-go .i { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.score-card:hover .sc-go .i { transform: translateX(3px); }
/* the ladder: five cells on the hero's baseline, between the court lines */
.ladder { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--cg); }
.ladder::before { content: ""; position: absolute; top: 0; left: calc(var(--pad) - var(--gx)); right: calc(var(--pad) - var(--gx)); border-top: 1px solid var(--line); }
.ladder a { display: grid; gap: 6px; padding: 20px 0 30px; text-decoration: none; }
.ladder b { font: 450 24px/1 var(--sans); letter-spacing: -.035em; transition: color .25s; }
.ladder span { font-size: 13px; color: var(--sage); }
.ladder a:hover b { color: var(--ball); }

/* ---------- how we coach ---------- */
.about { padding: var(--sec) 0; }
.about-top { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--cg); row-gap: 24px; align-items: start; }
.about-top .label { padding-top: .7em; }
.about-top .statement { grid-column: 2 / -1; }
.about-row { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--cg); row-gap: 40px; margin-top: clamp(64px, 7vw, 112px); }
.about-pic { grid-column: 1 / span 2; aspect-ratio: 5 / 4; }
.about-pic img { object-position: 50% 30%; }
.about-side { grid-column: 3 / -1; display: grid; align-content: space-between; gap: 40px; justify-items: start; }
.about-facts { width: 100%; }
.about-facts li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--cg); align-items: end; padding: 22px 0 20px; border-top: 1px solid var(--line); }
.about-facts li:last-child { border-bottom: 1px solid var(--line); }
.about-facts b { font: 450 clamp(52px, 5vw, 80px)/.85 var(--sans); letter-spacing: -.05em; }
.about-facts span { max-width: 16em; padding-bottom: 4px; font-size: 15px; line-height: 1.4; color: var(--muted); }

/* ---------- programmes: five levels between the court lines ---------- */
.prog { padding: var(--sec) 0; }
.prog-nav { display: none; gap: 8px; }
.pn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: none; box-shadow: inset 0 0 0 1px var(--line-2); color: inherit; transition: background-color .2s, opacity .2s; }
.pn .i { width: 18px; height: 18px; }
.pn:hover:not(:disabled) { background: rgb(237 240 233 / .07); }
.pn:disabled { opacity: .35; cursor: default; }
.lv-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--cg); margin-top: clamp(64px, 7vw, 112px); }
.lv { display: flex; flex-direction: column; }
.lv-n { padding-bottom: 20px; font: 450 clamp(40px, 3.8vw, 60px)/.9 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; transition: color .3s; }
.lv .frame { aspect-ratio: 4 / 5; }
.lv .frame img { transition: transform 1.2s var(--ease); }
.lv h3 { margin-top: 20px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.lv > p:not(.lv-n) { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--sage); }
.lv-d { display: grid; margin-top: auto; padding-top: 20px; font-size: 14px; }
.lv-d div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.lv-d dt { color: var(--sage); }
.lv-d dd { text-align: right; font-weight: 500; }
.lv:hover .lv-n { color: var(--ball); }
.lv:hover .frame img { transform: scale(1.04); }

/* ---------- the level finder ---------- */
.lvl { padding: var(--sec) 0; }
.finder { display: grid; gap: clamp(48px, 4.4vw, 72px); margin-top: clamp(64px, 7vw, 112px); }
.q { min-width: 0; margin: 0; padding: 0; border: 0; }
.q-h { float: left; width: 100%; display: flex; align-items: baseline; gap: 16px; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--line); font: 450 clamp(22px, 2vw, 28px)/1.1 var(--sans); letter-spacing: -.03em; }
.q-h + * { clear: both; }
.q-n { flex: none; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.tiles { display: grid; gap: 12px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { position: relative; isolation: isolate; display: block; aspect-ratio: 4 / 3; overflow: hidden; overflow: clip; border-radius: var(--r); background: var(--forest); cursor: pointer; transition: box-shadow .3s; }
.tiles-3 .tile { aspect-ratio: 16 / 10; }
.tile input { position: absolute; inset: 0; z-index: 4; margin: 0; opacity: 0; cursor: pointer; }
.tile-img, .tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-img img { filter: brightness(.72) saturate(.7); transition: filter .5s, transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 30% 0 0; z-index: 1; background: linear-gradient(rgb(10 16 12 / 0), rgb(10 16 12 / .35) 45%, rgb(10 16 12 / .82)); pointer-events: none; }
.tile-t { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; display: grid; gap: 2px; color: var(--on-dark); }
.tile-t b { font: 450 clamp(20px, 1.7vw, 25px)/1.05 var(--sans); letter-spacing: -.035em; }
.tile-t span { font-size: 13.5px; color: rgb(237 240 233 / .78); }
.tile-ck { position: absolute; top: 12px; left: 12px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 5px; background: var(--ball); color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); }
.tile-ck .i { width: 15px; height: 15px; }
.tile:hover .tile-img img { filter: brightness(.86) saturate(.9); }
.tile input:checked ~ .tile-img img { filter: none; transform: scale(1.03); }
.tile input:checked ~ .tile-ck { opacity: 1; transform: none; }
.tile:has(input:checked) { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.tile:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 6px; }
.q-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--cg); row-gap: 48px; }

/* the answer: a scoreboard reading on a dark panel */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--cg); margin-top: clamp(64px, 7vw, 112px); padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); }
.board-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.board-prog { color: var(--sage); }
.board-score { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--cg); align-items: end; padding: clamp(28px, 3.4vw, 52px) 0; }
.board-n { grid-column: 1 / span 2; font: 450 clamp(120px, 15vw, 248px)/.78 var(--sans); letter-spacing: -.06em; color: var(--ball); font-variant-numeric: tabular-nums; }
.board-next { grid-column: 3 / -1; max-width: 20em; padding-bottom: .3em; font: 400 clamp(20px, 1.9vw, 28px)/1.18 var(--sans); letter-spacing: -.025em; text-wrap: pretty; }
.board-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--cg); row-gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.board-stats dt { font-size: 13px; color: var(--sage); }
.board-stats dd { margin-top: 8px; font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.board-how { grid-column: 1 / -1; margin-top: 24px; }
.board-how summary { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 2px; border-bottom: 1px solid var(--line-2); font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.board-how summary::-webkit-details-marker { display: none; }
.board-how summary .i { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.board-how[open] summary .i { transform: rotate(180deg); }
.board-how-t { max-width: 62em; margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--sage); }

/* booking the free first lesson */
.book { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--cg); row-gap: 28px; margin-top: 12px; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--line); --line: rgb(15 23 18 / .12); --line-2: rgb(15 23 18 / .24); }
.book-head { grid-column: 1 / span 2; display: grid; gap: 16px; align-content: start; justify-items: start; }
.book-t { font: 450 clamp(30px, 3vw, 44px)/1 var(--sans); letter-spacing: -.04em; }
.book-sub { max-width: 24em; font-size: 15px; color: var(--muted); }
.book-form { grid-column: 3 / -1; min-width: 0; }
.bk-1, .bk-2 { display: grid; gap: 18px; min-width: 0; }
.bk-days, .bk-times { min-width: 0; margin: 0; padding: 0; border: 0; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day, .tm { position: relative; display: block; cursor: pointer; }
.day input, .tm input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.day span { display: grid; justify-items: center; gap: 2px; padding: 10px 4px 9px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.day small { font-size: 12px; color: var(--muted); }
.day b { font-size: 21px; font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.day:hover span, .tm:hover input:not(:disabled) + span { background: var(--paper); }
.day input:checked + span, .tm input:checked + span { background: var(--deep); box-shadow: none; color: var(--on-dark); }
.day input:checked + span small, .tm input:checked + span small { color: var(--sage); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; min-height: 64px; }
.tm span { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.tm b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tm small { font-size: 12.5px; color: var(--muted); }
.tm input:disabled + span { box-shadow: inset 0 0 0 1px var(--line); color: #6B756E; cursor: default; }
.tm input:disabled + span b { text-decoration: line-through; text-decoration-thickness: 1px; }
.tm input:disabled + span small { color: #6B756E; }
.tm input:disabled { cursor: default; }
.day input:focus-visible + span, .tm input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.times-empty { grid-column: 1 / -1; padding: 12px 0; font-size: 15px; color: var(--muted); }
.bk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.bk-pick { font-size: 15px; }
.bk-pick b, .bk-chosen b { font-weight: 600; }
.bk-chosen { padding: 12px 14px; border-radius: var(--r); background: #E7EFC2; font-size: 15px; }
.bk-err { font-size: 14px; color: var(--err); }
.bk-err:empty { display: none; }
.bk-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- courts: the night photo across the page, the figures on the court lines ---------- */
.courts { display: flex; flex-direction: column; justify-content: space-between; gap: 96px; min-height: min(100svh, 980px); padding: var(--sec) 0 0; overflow: hidden; overflow: clip; }
.courts-pic { position: absolute; inset: 0; }
.courts-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.courts-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--deep), rgb(15 23 18 / .55) 30%, rgb(15 23 18 / .25) 55%, rgb(15 23 18 / .9)); }
.courts-in { display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 96px; }
.courts-head { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--cg); row-gap: 24px; align-items: end; }
.courts-head .sec-title { grid-column: 1 / span 2; }
.courts-head .lead { grid-column: 3 / -1; color: rgb(237 240 233 / .78); }
.courts-stats { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--cg); }
.courts-stats::before { content: ""; position: absolute; left: calc(var(--pad) - var(--gx)); right: calc(var(--pad) - var(--gx)); margin-top: 0; border-top: 1px solid var(--line); }
.courts-stats > div { padding: 22px 0 44px; }
.courts-stats dt { font-size: 13px; color: var(--sage); }
.courts-stats dd { margin-top: 22px; font: 450 clamp(52px, 5.4vw, 88px)/.85 var(--sans); letter-spacing: -.05em; }
.courts-stats p { margin-top: 14px; font-size: 14px; color: rgb(237 240 233 / .75); }

/* ---------- coaches ---------- */
.coaches { padding: var(--sec) 0; }
.co-row { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--cg); row-gap: 48px; margin-top: clamp(64px, 7vw, 112px); }
.co .frame { aspect-ratio: 4 / 5; }
.co .frame img { transition: transform 1.2s var(--ease); }
.co:hover .frame img { transform: scale(1.04); }
.co-t { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.co h3 { font: 450 clamp(22px, 1.9vw, 28px)/1.05 var(--sans); letter-spacing: -.035em; }
.co-role { font-size: 13.5px; color: var(--muted); }
.co > p:not(.co-lv) { margin-top: 12px; max-width: 30em; font-size: 15px; line-height: 1.45; color: var(--muted); }
.co-lv { display: flex; gap: 6px; margin-top: 16px; }
.co-lv span { padding: 4px 9px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.co-more { display: grid; align-content: end; gap: 20px; justify-items: start; padding-bottom: 4px; }
.co-more p { font: 400 clamp(20px, 1.7vw, 24px)/1.2 var(--sans); letter-spacing: -.025em; }

/* ---------- questions ---------- */
.qs { padding: var(--sec) 0; }
.qs::before { content: ""; position: absolute; top: 0; left: calc(var(--pad) - var(--gx)); right: calc(var(--pad) - var(--gx)); z-index: 1; border-top: 1px solid var(--line); }
.qs-in { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--cg); row-gap: 48px; align-items: start; }
.qs-in .sec-title { grid-column: 1 / span 2; }
.qa { grid-column: 3 / -1; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font: 450 clamp(18px, 1.5vw, 21px)/1.2 var(--sans); letter-spacing: -.025em; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.qa details[open] summary .i { transform: rotate(45deg); }
.qa details p { max-width: 34em; padding: 0 0 24px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }

/* ---------- final call and footer ---------- */
.final { display: flex; align-items: flex-end; min-height: min(88svh, 860px); padding: var(--sec) 0 clamp(56px, 6vw, 96px); overflow: hidden; overflow: clip; }
.final-pic { position: absolute; inset: 0; }
.final-pic img { width: 100%; height: 100%; object-fit: cover; }
.final-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(15 23 18 / .25), rgb(15 23 18 / .35) 40%, rgb(15 23 18 / .92)); }
.final-in { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--cg); row-gap: 32px; align-items: end; }
.final-t { grid-column: 1 / span 3; font: 450 clamp(56px, 6.6vw, 104px)/.98 var(--sans); letter-spacing: -.045em; }
.final-side { grid-column: 4 / -1; display: grid; gap: 24px; justify-items: start; padding-bottom: 8px; }
.final-lead { font-size: 16px; line-height: 1.45; color: rgb(237 240 233 / .8); }
.foot { position: relative; padding: clamp(64px, 6vw, 96px) 0 0; background: var(--night); overflow: hidden; overflow: clip; }
.foot-in { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--cg); row-gap: 48px; }
.foot-l { grid-column: 1 / span 2; display: grid; gap: 22px; align-content: start; justify-items: start; }
.foot-note { max-width: 28em; font-size: 14.5px; line-height: 1.5; color: var(--sage); }
.foot-contact { font-size: 14.5px; line-height: 1.6; }
.foot-nav { grid-column: 3 / -1; display: grid; align-content: start; border-top: 1px solid var(--line); }
.foot-nav a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); font: 450 clamp(26px, 2.4vw, 36px)/1.1 var(--sans); letter-spacing: -.035em; text-decoration: none; transition: color .25s; }
.foot-nav a .i { width: 20px; height: 20px; opacity: .45; transition: opacity .2s, transform .35s var(--ease); }
.foot-nav a:hover { color: var(--ball); }
.foot-nav a:hover .i { opacity: 1; transform: translateX(4px); }
.foot-word-w { margin-top: clamp(56px, 6vw, 96px); }
.foot-word { margin-bottom: -.16em; font: 500 36.2vw/.8 var(--sans); letter-spacing: -.065em; color: #16211A; white-space: nowrap; }

/* ---------- dock (phones) and dialog ---------- */
.dock { display: none; }
.dlg { width: min(540px, calc(100vw - 32px)); padding: 32px; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .7); --bullet: var(--ink); --line: rgb(15 23 18 / .14); }
.dlg::backdrop { background: rgb(6 10 8 / .7); }
.dlg-x-f { position: absolute; top: 14px; right: 14px; }
.dlg-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r); background: var(--paper-2); }
.dlg .label { margin-bottom: 14px; }
.dlg-t { margin-bottom: 12px; font: 450 32px/1.02 var(--sans); letter-spacing: -.04em; }
.dlg > p:not(.label) { font-size: 15.5px; color: var(--muted); }
.sent-sum { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 20px 0 24px; padding: 16px 0; border-block: 1px solid var(--line); font-size: 15px; }
.sent-sum dt { color: var(--muted); }

/* ---------- smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- motion ---------- */
@keyframes rise { to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { scale: 1.08; opacity: .4; } to { scale: 1; opacity: 1; } }
@keyframes draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.js .hero-t .line > span { transform: translateY(110%); animation: rise 1.2s var(--ease) .15s forwards; }
.js .hero-t .line:nth-child(2) > span { animation-delay: .25s; }
.js .hero [data-fade] { opacity: 0; animation: fadeup 1s var(--ease) .55s forwards; }
.js .hero .label[data-fade] { animation-delay: .1s; }
.js .hero .score-card[data-fade] { animation-delay: .85s; }
.js .hero .ladder[data-fade] { animation-delay: 1s; }
.js .hero-pic img { animation: settle 2.4s var(--ease) both; }
/* the court lines draw down each section as it comes in */
.io .guides { clip-path: inset(0 0 100% 0); transition: clip-path 1.8s var(--ease); }
.io .guides.in { clip-path: inset(0); }
.js .hero .guides { clip-path: inset(0); animation: draw 1.8s var(--ease) .2s both; }
.io [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.io [data-reveal].in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: top; }
.split .w > span { display: inline-block; }
.io .split .w > span { transform: translateY(105%); transition: transform 1s var(--ease) calc(var(--wi, 0) * 55ms); }
.io .split.in .w > span { transform: none; }
.io .frame.unveil img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease) var(--d, 0s), transform 1.2s var(--ease); }
.io .frame.unveil.in img { clip-path: inset(0 0 0 0); }
.io .foot-word { transform: translateY(40%); transition: transform 1.4s var(--ease); }
.io .foot-word.in { transform: none; }
.board-n.is-flip { animation: flip .14s ease-out; }
@keyframes flip { from { opacity: .2; transform: translateY(6%); } }
@supports (animation-timeline: view()) {
  .courts-pic img, .final-pic img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes drift { from { transform: translateY(-6%) scale(1.12); } to { transform: translateY(6%) scale(1.12); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .hero-t .line > span, .io [data-reveal], .io .split .w > span, .io .foot-word { transform: none; opacity: 1; }
  .js .hero [data-fade] { opacity: 1; }
  .io .frame.unveil img, .io .guides { clip-path: none; }
  .courts-pic img, .final-pic img { animation: none !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  .links { gap: 22px; }
}
@media (max-width: 1199px) {
  :root { --pad: 36px; --gx: 16px; }
  /* the ladder becomes a row to swipe, with Prev / Next */
  .prog-nav { display: flex; }
  .lv-row { display: flex; gap: var(--cg); margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; }
  .lv-row::-webkit-scrollbar { display: none; }
  .lv { flex: 0 0 min(36vw, 340px); scroll-snap-align: start; }
  .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { grid-column: 1 / span 4; }
  .score-card { grid-column: 4 / -1; }
}
@media (max-width: 999px) {
  :root { --nav-h: 72px; --cols: 2; }
  /* phones and tablets: the same bar with Menu */
  .nav { --inset-x: 10px; --inset-y: 8px; }
  .nav-in { grid-template-columns: minmax(0, 1fr) auto; }
  .nav[data-state="bar"] .nav-in { height: calc(56px + var(--inset-y) * 2); padding: 0 calc(var(--inset-x) + 14px); }
  .links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  /* the hero: the photo on top, the words below on the dark ground */
  .hero { min-height: 0; }
  .hero-pic { position: relative; width: 100%; height: min(92vw, 640px); margin-bottom: -28vw; }
  .hero-pic img { object-position: 50% 72%; }
  .hero-pic::after { background: linear-gradient(to top, var(--deep) 0, var(--deep) 10%, rgb(15 23 18 / .8) 28%, rgb(15 23 18 / 0) 60%), linear-gradient(to bottom, rgb(15 23 18 / .6), rgb(15 23 18 / 0) 30%); }
  .hero .guides { top: 0; }
  .hero-in { grid-template-columns: minmax(0, 1fr); row-gap: 32px; padding-top: 0; }
  .hero-copy, .score-card { grid-column: 1 / -1; }
  .score-card { justify-self: stretch; width: auto; }
  .hero-t { font-size: clamp(52px, 11vw, 96px); }
  .sec-head, .about-top, .about-row, .courts-head, .qs-in, .final-in, .book, .board-score, .q-row { grid-template-columns: minmax(0, 1fr); }
  .sec-title, .sec-side, .prog .sec-title, .prog .sec-side, .about-top .statement, .about-pic, .about-side, .courts-head .sec-title, .courts-head .lead, .qs-in .sec-title, .qa, .final-t, .final-side, .book-head, .book-form, .board-n, .board-next, .foot-l, .foot-nav { grid-column: 1 / -1; }
  .about-top .label { padding-top: 0; }
  .about-pic { aspect-ratio: 4 / 3; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .board-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .courts-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --pad: 20px; --gx: 10px; }
  body { font-size: 16px; }
  .ladder { --cols: 5; column-gap: 8px; }
  .ladder a { padding: 16px 0 22px; }
  .ladder b { font-size: 19px; }
  .ladder span { display: none; }
  .hero { --cols: 5; }
  .hero .guides { left: calc(var(--pad) - 4px); right: calc(var(--pad) - 4px); }
  .hero-btns .btn { flex: 1 1 100%; }
  .h2 { font-size: clamp(38px, 10.6vw, 56px); }
  .statement { font-size: clamp(24px, 6.6vw, 32px); }
  .about-facts li { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; }
  .about-facts b { font-size: 52px; }
  .lv { flex-basis: 76vw; }
  .tiles-3, .tiles-4 { grid-template-columns: minmax(0, 1fr); }
  .tile, .tiles-3 .tile { aspect-ratio: 16 / 8; }
  .chips-3 { grid-template-columns: minmax(0, 1fr); }
  .chip > span { grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; }
  .board { padding: 22px 18px; margin-inline: -6px; }
  .board-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book { padding: 22px 18px; margin-inline: -6px; }
  .days { gap: 4px; }
  .day span { padding: 8px 2px; }
  .day b { font-size: 18px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .bk-bar .btn, .bk-btns .btn { flex: 1 1 100%; }
  .courts { gap: 64px; min-height: 0; }
  .courts-in { gap: 64px; }
  .courts-stats > div { padding: 18px 0 32px; }
  .co-row { display: flex; gap: 12px; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; }
  .co-row::-webkit-scrollbar { display: none; }
  .co { flex: 0 0 76vw; scroll-snap-align: start; }
  .co-more { flex: 0 0 64vw; }
  .qa summary { padding: 18px 0; }
  .final { min-height: 0; padding-top: 50vw; }
  .final-t { font-size: clamp(48px, 13vw, 72px); }
  .foot-word { font-size: 34.6vw; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgb(15 23 18 / .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgb(237 240 233 / .12); transform: translateY(110%); transition: transform .5s var(--ease); }
  .dock.on { transform: none; }
  .dock .btn { width: 100%; }
  body.has-dock .foot { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
