/* ==========================================================
   SONET · Serving Opportunities
   Main stylesheet. Mobile first: base styles are for phones,
   media queries add layout for larger screens.
   Brand colours only: Heritage Green, Ivory, Muted Sage, Sage Mist
   (plus a deeper green taken from the monogram artwork and dark
   neutral text).
   ========================================================== */

/* ---------- 1. Brand tokens (edit colours and fonts here) ---------- */
:root {
  /* Colours (all text pairs checked for WCAG AA) */
  --green: #1F4A33;        /* Heritage Green: headings, buttons, small text. 9.8:1 on ivory */
  --green-hover: #173A28;
  --green-deep: #04391F;   /* Court Green: matches the background of the green monogram file */
  --ivory: #FCFCF4;        /* Main background, matches the logo background */
  --sage: #7E957D;         /* Muted Sage: lines, icons, decoration, large text only */
  --sage-mist: #E4EBE1;    /* Cards, soft sections, hover states */
  --sage-whisper: #F2F5EE; /* Very soft section background (a lighter Sage Mist) */
  --ink: #25302A;          /* Body text. 13.3:1 on ivory */
  --ink-soft: #4F5B53;     /* Secondary text. 6.9:1 on ivory */

  /* Type */
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* Spacing and shape */
  --space: clamp(4.5rem, 10vw, 9rem); /* vertical rhythm between sections */
  --radius: 2px;
  --line: 1px solid var(--sage);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Tennis ball icon: the site's running motif (hero, eyebrows, timeline, lists) */
  --ball: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.8' fill='%23FCFCF4' stroke='%231F4A33' stroke-width='1.3'/%3E%3Cpath d='M4.6 3.6c2.4 3.6 2.4 9.2 0 12.8M15.4 3.6c-2.4 3.6-2.4 9.2 0 12.8' fill='none' stroke='%231F4A33' stroke-width='1.1'/%3E%3C/svg%3E");
  --ball-filled: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.8' fill='%231F4A33' stroke='%231F4A33' stroke-width='1.3'/%3E%3Cpath d='M4.6 3.6c2.4 3.6 2.4 9.2 0 12.8M15.4 3.6c-2.4 3.6-2.4 9.2 0 12.8' fill='none' stroke='%23FCFCF4' stroke-width='1.1'/%3E%3C/svg%3E");
  --ball-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.8' fill='none' stroke='%23FCFCF4' stroke-width='1.3'/%3E%3Cpath d='M4.6 3.6c2.4 3.6 2.4 9.2 0 12.8M15.4 3.6c-2.4 3.6-2.4 9.2 0 12.8' fill='none' stroke='%23FCFCF4' stroke-width='1.1'/%3E%3C/svg%3E");
}

/* ---------- 2. Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;          /* 16px minimum for readability */
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--green); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: .005em; }
h3 { font-size: clamp(1.6rem, 3.5vw, 2rem); }
h4 { font-size: 1.45rem; }
h2 em, h3 em { font-style: italic; color: var(--sage); } /* large text, so sage is fine */
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }

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

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; }
.visually-hidden {
  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: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--green); color: var(--ivory); padding: .75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Small shared pieces ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem;
  font-size: clamp(.9rem, 1.6vw, 1.05rem); font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { /* thin sage line ending in a tennis ball */
  content: ""; flex: none; width: 3.2rem; height: 15px;
  background: var(--ball) right center / 15px 15px no-repeat,
              linear-gradient(var(--sage), var(--sage)) left center / calc(100% - 19px) 1px no-repeat;
}
.eyebrow--light { color: var(--ivory); }
.eyebrow--light::before {
  background: var(--ball-light) right center / 15px 15px no-repeat,
              linear-gradient(var(--sage-mist), var(--sage-mist)) left center / calc(100% - 19px) 1px no-repeat;
}
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 40rem; }
.lead--light { color: var(--sage-mist); }
.h-small { font-size: clamp(1.8rem, 3.6vw, 2.3rem); }

.section { padding-block: var(--space); position: relative; isolation: isolate; }
.section-head { margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }
/* Centred heads get a matching line-and-ball on both sides of the label */
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--center .eyebrow::after {
  content: ""; flex: none; width: 3.2rem; height: 15px;
  background: var(--ball) left center / 15px 15px no-repeat,
              linear-gradient(var(--sage), var(--sage)) right center / calc(100% - 19px) 1px no-repeat;
}

/* Court-line divider: a thin double line with a centre mark, like a baseline */
.court-divider {
  height: 14px; width: min(1180px, 100% - 2.5rem); margin: 0 auto;
  border-top: var(--line); border-bottom: var(--line); position: relative;
}
.court-divider::after {
  content: ""; position: absolute; left: 50%; top: -1px; width: 1px; height: 14px; background: var(--sage);
}

/* Buttons: always Heritage Green for strong contrast */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .9rem 2rem;
  font: 600 .76rem/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--green); border-radius: var(--radius); cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn--primary { background: var(--green); color: var(--ivory); box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px rgba(252, 252, 244, .35); }
.btn--primary:hover { background: var(--green-hover); box-shadow: inset 0 0 0 3px var(--green-hover), inset 0 0 0 4px rgba(252, 252, 244, .6); }
.btn--outline { background: transparent; color: var(--green); }
.btn--outline:hover { background: var(--sage-mist); }
.btn--light { background: var(--ivory); color: var(--green); border-color: var(--ivory); box-shadow: inset 0 0 0 3px var(--ivory), inset 0 0 0 4px var(--sage); }
.btn--light:hover { background: var(--sage-mist); box-shadow: inset 0 0 0 3px var(--sage-mist), inset 0 0 0 4px var(--green); }
.btn--sm { min-height: 44px; padding: .7rem 1.3rem; font-size: .7rem; }

.text-link {
  font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(var(--sage), var(--sage)) left bottom / 100% 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.text-link:hover { background-image: linear-gradient(var(--green), var(--green)); }

/* Framed panel: a fine double rule, like an engraved club board */
.frame {
  position: relative; background: var(--ivory);
  border: 1px solid var(--sage);
  box-shadow: inset 0 0 0 6px var(--ivory), inset 0 0 0 7px var(--sage-mist);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}

.tick-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.tick-list li::before { /* tiny tennis ball */
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px;
  background: var(--ball) center / contain no-repeat;
}

.icon { width: 44px; height: 44px; fill: none; stroke: var(--green); stroke-width: 1.1; margin-bottom: 1.1rem; }
.icon--sm { width: 22px; height: 22px; margin: 0; flex: none; stroke-width: 1.3; }

/* Photo frames. Swap the <img> src for your own photos */
.photo { margin: 0; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: var(--sage-mist); }
.photo--arch img { border-radius: 999px 999px var(--radius) var(--radius); } /* soft arch, like a club window */
.photo--framed { padding: 10px; border: 1px solid var(--sage); }   /* fine mount, like a framed print */
.photo figcaption {
  padding-top: .9rem; font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); text-align: center;
}

/* Faint monogram watermark behind a section */
.watermark { overflow: hidden; }
.watermark::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(60vw, 560px); aspect-ratio: 1; top: 4%; left: -12%;
  background: url("../assets/images/sonet-monogram-sage.webp") center / contain no-repeat;
  opacity: .06;
}

/* ---------- 4. Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 1rem;
  background: var(--ivory);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader__mark { width: 120px; height: 120px; clip-path: inset(0 100% 0 0); animation: reveal 1.1s var(--ease) forwards; }
.loader__line { width: 140px; height: 10px; overflow: visible; }
.loader__line path { fill: none; stroke: var(--sage); stroke-width: 1.2; stroke-dasharray: 210; stroke-dashoffset: 210; animation: draw 1s .3s var(--ease) forwards; }
.loader.is-done { opacity: 0; visibility: hidden; }
@keyframes reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- 5. Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 252, 244, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--sage-mist); box-shadow: 0 8px 28px -22px rgba(31, 74, 51, .55); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav__brand img { width: 40px; height: 40px; }
.nav__word { font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; letter-spacing: .34em; color: var(--green); }

.nav__toggle { width: 48px; height: 48px; display: grid; place-content: center; gap: 7px; background: none; border: 0; cursor: pointer; }
.nav__toggle-bar { width: 26px; height: 1.5px; background: var(--green); transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

.nav__menu {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--ivory); border-bottom: var(--line);
  padding: 1rem 1.25rem 1.75rem; display: none;
}
.nav__menu.is-open { display: block; animation: drop .3s var(--ease); }
.nav__links a {
  display: block; padding: .85rem 0; border-bottom: 1px solid var(--sage-mist);
  font-size: .82rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
}
.nav__menu .btn { margin-top: 1.25rem; width: 100%; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 6. Hero ---------- */
.hero { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: var(--space); }
.hero__grid { display: grid; gap: 3rem; align-items: center; margin-bottom: clamp(3.5rem, 8vw, 6rem); }
.hero__copy { text-align: center; }
.hero__logo { width: min(300px, 72%); margin: 0 auto; } /* generous clear space around the logo */

.hero__flourish { position: relative; width: min(340px, 82%); margin: 1rem auto 1.75rem; height: 42px; }
.hero__flourish svg { width: 100%; height: 100%; overflow: visible; }
.draw { fill: none; stroke: var(--sage); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 460; stroke-dashoffset: 460; }
.is-loaded .draw { animation: draw 2.2s .2s var(--ease) forwards; }

/* Tennis ball, gently bouncing */
.ball { position: absolute; width: 16px; height: 16px; background: var(--ball) center / contain no-repeat; }
.ball--hero { right: 2%; top: 2px; opacity: 0; }
.is-loaded .ball--hero { animation: fadein .4s 2.2s forwards, bounce 2.8s 2.6s var(--ease) infinite; }
@keyframes fadein { to { opacity: 1; } }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-12px); }
  45% { transform: translateY(0) scale(1.06, .92); }
}

.hero__title {
  font-weight: 700; font-size: clamp(2.3rem, 5.4vw, 3.7rem); line-height: 1.08; letter-spacing: -.005em;
  max-width: 15ch; margin: 0 auto .9rem; text-align: center;
}
.hero__sub { font-size: 1.1rem; max-width: 30rem; margin: 0 auto 2.2rem; color: var(--ink-soft); }
.hero__actions { display: flex; flex-direction: column; gap: .9rem; align-items: stretch; max-width: 22rem; margin-inline: auto; }
.hero__photo { aspect-ratio: 4 / 5; max-width: 460px; width: 100%; margin-inline: auto; }

/* Pillars: First Serve and Rally */
.pillars { display: grid; gap: 1.5rem; margin-top: clamp(3.5rem, 8vw, 6rem); }
.pillar { display: flex; flex-direction: column; align-items: flex-start; }
.pillar:hover { background: var(--sage-whisper); box-shadow: inset 0 0 0 6px var(--sage-whisper), inset 0 0 0 7px var(--sage); }
.pillar__kicker { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--sage); margin: 0 0 .1rem; line-height: 1.2; }
.pillar__title { font-size: clamp(2.2rem, 4.6vw, 2.9rem); margin-bottom: .6rem; }
.pillar__intro { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.4; color: var(--green); padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--sage-mist); width: 100%; }
.pillar p:not([class]) { color: var(--ink-soft); }
.pillar .text-link { margin-top: auto; }

/* ---------- 7. Journey / timeline ---------- */
.journey__grid { display: grid; gap: 3rem; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.journey__photo { max-width: 420px; }
.journey__photo img { aspect-ratio: 4 / 5; object-position: center 20%; }

.timeline { position: relative; padding-left: 2.4rem; }
.timeline::before { /* the fine vertical line, drawn as you scroll */
  content: ""; position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 1px;
  background: var(--sage); transform-origin: top; transform: scaleY(var(--progress, 0));
  transition: transform .2s linear;
}
.timeline__item { position: relative; padding-bottom: 2.4rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { /* tennis ball marker */
  content: ""; position: absolute; left: calc(-2.4rem - 1px); top: .3rem;
  width: 17px; height: 17px; background: var(--ball) center / contain no-repeat;
}
.timeline__item--now::before { background-image: var(--ball-filled); } /* today: solid ball, gently bouncing */
.timeline__item--now.is-visible::before { animation: bounce 2.8s .8s var(--ease) infinite; }
.timeline__age { font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--green); }
.timeline__item h3 { margin: .25rem 0 .4rem; }
.timeline__item p { color: var(--ink-soft); max-width: 34rem; margin: 0; }
.timeline__item .timeline__note { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--green); margin-bottom: .3rem; }

/* The name */
.name-story { display: grid; gap: 2rem 3.5rem; align-items: center; }
.name-story__mark { text-align: center; }
.name-story__word {
  margin: 0; font-family: var(--font-serif); font-weight: 500; line-height: 1;
  font-size: clamp(3.4rem, 10vw, 5.6rem); letter-spacing: .14em; color: var(--green);
}
.name-story__so { color: var(--sage); }          /* large display text, so sage is fine here */
.name-story__net {                                /* "net" sits on a fine net line */
  position: relative; display: inline-block; padding-bottom: .12em;
  background: repeating-linear-gradient(90deg, var(--sage) 0 1px, transparent 1px 7px) left bottom / 100% .12em no-repeat;
  border-bottom: 1px solid var(--green);
}
.name-story__sum { margin: 1.1rem 0 0; font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--green); letter-spacing: .04em; }
.name-story__say { margin: 1.2rem 0 0; font-size: .9rem; letter-spacing: .06em; color: var(--ink-soft); }
.name-story__say .say { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: var(--green); letter-spacing: .04em; }
.name-story h3 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: .7rem; }
.name-story p:not([class]) { color: var(--ink-soft); }
.name-story__close { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--green); margin: 1.4rem 0 0; }

/* Why Sonet exists: a Heritage Green band with ivory text and a fine inner frame */
.why-band {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .05), transparent 65%),
    var(--green);
  color: var(--ivory); padding-block: clamp(4rem, 9vw, 7.5rem);
}
.why {
  text-align: center; max-width: 64rem; margin-inline: auto;
  border: 1px solid rgba(228, 235, 225, .45);
  box-shadow: inset 0 0 0 6px var(--green), inset 0 0 0 7px rgba(228, 235, 225, .2);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
}
.why__label::after { /* mirror line and ball on the right */
  content: ""; flex: none; width: 3.2rem; height: 15px;
  background: var(--ball-light) left center / 15px 15px no-repeat,
              linear-gradient(var(--sage-mist), var(--sage-mist)) right center / calc(100% - 19px) 1px no-repeat;
}
.why__statement {
  font-family: var(--font-serif); font-weight: 500; color: var(--ivory);
  font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.15; max-width: 22ch; margin: 0 auto 2.25rem; text-wrap: balance;
}
.why__cols { display: grid; gap: .5rem 3rem; text-align: left; font-size: 1.08rem; color: var(--sage-mist); padding-top: 2.25rem; border-top: 1px solid rgba(228, 235, 225, .3); }
.why__cols p:last-child { margin-bottom: 0; }
.why strong { color: var(--ivory); font-weight: 600; }

/* ---------- 8. Coaching ---------- */
.coaching { background: var(--sage-whisper); }
.coaching .frame { background: var(--ivory); }
.programmes { display: grid; gap: 1.25rem; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.programme { display: flex; flex-direction: column; align-items: flex-start; }
.programme h3 { padding-bottom: .7rem; margin-bottom: .9rem; border-bottom: 1px solid var(--sage-mist); width: 100%; }
.programme p { color: var(--ink-soft); flex: 1; margin-bottom: 1.5rem; }

.coaching__split { display: grid; gap: 2.5rem; align-items: center; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.coaching__split .photo img { aspect-ratio: 4 / 3; }

.expect { margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.expect__title { text-align: center; margin-bottom: 2.25rem; }
.steps { display: grid; gap: 1.5rem; }
.step { text-align: center; padding: 1.75rem 1rem 0; border-top: var(--line); }
.step__num {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--sage); border-radius: 50%;
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--green); line-height: 1;
}
.step h4 { margin: .9rem 0 .35rem; }
.step p { color: var(--ink-soft); margin: 0 auto; max-width: 20rem; }

/* ---------- 9. Forms ---------- */
.form-wrap { display: grid; gap: 2rem; }
.form-wrap__intro h3 { font-size: clamp(2rem, 4vw, 2.6rem); }
.form-wrap__intro p { color: var(--ink-soft); }
.form-wrap__photo { display: none; }
.form__row { display: grid; gap: 0 1.25rem; }
.field { margin: 0 0 1.3rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .5rem; }
.optional { font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: .8rem .95rem;
  font: inherit; color: var(--ink); background: var(--ivory);
  border: 1px solid var(--sage); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--sage-mist); }
/* Errors stay in brand colours: a heavier green border plus a clear message */
.field.has-error input, .field.has-error select, .field.has-error textarea { border: 2px solid var(--green); background: var(--sage-whisper); }
.field-error { display: block; color: var(--green); font-weight: 600; font-size: .82rem; margin-top: .4rem; }
.field-error::before { content: "! "; }
.checks { display: grid; gap: .5rem; }
.checks label { display: flex; align-items: center; gap: .6rem; font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0; }
.checks input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--green); }
.form__status { margin: 1rem 0 0; font-weight: 500; color: var(--green); }
.form__status:empty { display: none; }
.form__status.is-success { padding: 1rem 1.25rem; background: var(--sage-mist); border-left: 2px solid var(--green); border-radius: var(--radius); }

/* ---------- 10. Partnerships ---------- */
.partners { padding-top: 0; }
.partners__band { /* same deep green, soft light and fine grain as the monogram artwork, so the mark feels part of it */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 72% 50%, rgba(255, 255, 255, .045), transparent 60%),
    var(--green-deep);
  color: var(--ivory); padding-block: var(--space); margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.partners__band h2 { color: var(--ivory); }
.partners__band-grid { display: grid; gap: 2.5rem; align-items: center; }
.partners__tile { width: min(240px, 55%); margin-inline: auto; } /* ivory monogram, background removed so it sits directly on the band */

.ways { display: grid; gap: 1.25rem; margin: 2.25rem 0 clamp(3.5rem, 7vw, 6rem); }
.way:hover { background: var(--sage-whisper); box-shadow: inset 0 0 0 6px var(--sage-whisper), inset 0 0 0 7px var(--sage); }
.way p { color: var(--ink-soft); margin: 0; }

.partners__why { display: grid; gap: 3rem; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.values { margin: 1.5rem 0 0; }
.values div { display: grid; gap: .1rem; padding: 1rem 0; border-top: 1px solid var(--sage-mist); }
.values div:last-child { border-bottom: 1px solid var(--sage-mist); }
.values dt { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--green); line-height: 1.3; }
.values dd { margin: 0; color: var(--ink-soft); }
.insta { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--sage-mist); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--green); }
.insta a { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; letter-spacing: .02em; text-transform: none; margin-left: .35rem; text-decoration-color: var(--sage); text-underline-offset: 4px; }

/* ---------- 11. Contact ---------- */
.contact { background: var(--sage-whisper); }
.contact__grid { display: grid; gap: 2.5rem; align-items: start; }
.contact__list { margin-top: 2rem; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: .8rem; }
.contact__list a { text-decoration: none; background: linear-gradient(var(--sage), var(--sage)) left bottom / 100% 1px no-repeat; padding-bottom: 2px; }
.contact__list a:hover { background-image: linear-gradient(var(--green), var(--green)); }

/* ---------- 12. Footer ---------- */
.footer { padding-top: clamp(3rem, 6vw, 4.5rem); background: var(--ivory); }
.footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4rem); justify-items: center; text-align: center; }
.footer__brand img { width: 190px; }
.footer__heading { font-family: var(--font-sans); font-size: .76rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.75rem; }
.footer__links a { text-decoration: none; font-family: var(--font-serif); font-size: 1.25rem; }
.footer__links a:hover { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 5px; }
.footer__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem 2rem; border-top: 1px solid var(--sage-mist); font-size: .85rem; color: var(--ink-soft);
}
.footer__base p { margin: 0; }
.footer__mark { width: 36px; height: 36px; }

/* ---------- 13. Scroll reveal (subtle) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 14. Larger screens ---------- */
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; justify-content: center; max-width: none; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .programmes { grid-template-columns: repeat(2, 1fr); }
  .ways { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .checks { grid-template-columns: 1fr 1fr; }
  .why__cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .nav__toggle { display: none; }
  .nav__menu { position: static; display: flex !important; align-items: center; gap: 2.2rem; padding: 0; border: 0; background: none; animation: none; }
  .nav__links { display: flex; gap: 2rem; }
  .nav__links a { border: 0; padding: .4rem 0; font-size: .72rem; position: relative; }
  .nav__links a::after { /* thin sage underline on hover */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sage);
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
  }
  .nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
  .nav__menu .btn { margin: 0; width: auto; }

  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 4.5rem; }
  .hero__logo { width: 320px; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .journey__grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; }
  .journey__photo { position: sticky; top: calc(var(--header-h) + 2rem); }
  .name-story { grid-template-columns: .8fr 1.2fr; padding: 3.5rem; }

  .programmes { grid-template-columns: repeat(6, 1fr); }
  .programme { grid-column: span 2; }
  .programme:nth-child(4) { grid-column: 2 / span 2; }  /* centre the last two cards */
  .coaching__split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }

  .form-wrap { grid-template-columns: .8fr 1.2fr; gap: 4rem; padding: 3.5rem; }
  .form-wrap__photo { display: block; margin-top: 2rem; }
  .form-wrap__photo img { aspect-ratio: 4 / 3; }

  .partners__band-grid { grid-template-columns: 1.3fr .7fr; gap: 4rem; }
  .ways { grid-template-columns: repeat(4, 1fr); }
  .partners__why { grid-template-columns: 1fr 1fr; gap: 5rem; }

  .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
}

/* ---------- 15. Reduced motion: respect user settings ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .draw, .loader__line path { stroke-dashoffset: 0; }
  .ball--hero { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   16. Layout refinements (Nov 2026 review)
   Later rules here override the earlier ones above.
   ========================================================== */
:root { --space: clamp(3.5rem, 7vw, 6rem); }               /* tighter gaps between sections */
h2 { font-size: clamp(2.7rem, 6.4vw, 4.4rem); }               /* one size for every section title */

/* Hero photo: full-bleed, edge to edge */
.hero { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero__grid { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero__photo {
  margin: 0 calc(50% - 50vw); width: 100vw; max-width: none; aspect-ratio: 4 / 5;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.pillars { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* First Serve / Rally: larger and in Heritage Green */
.pillar__kicker { font-size: clamp(1.9rem, 3.4vw, 2.3rem); font-weight: 500; color: var(--green); margin-bottom: .15rem; }

/* My Journey photo: full-bleed with the caption set on the photo */
.journey .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.journey__grid { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
/* My Journey photo: the arched portrait, a little larger, with a bigger caption */
.journey__photo { max-width: 480px; margin-inline: auto; }
.journey__photo figcaption { font-size: clamp(1.5rem, 2.6vw, 1.85rem); line-height: 1.25; color: var(--green); padding-top: 1.1rem; }

/* Who it's for: one framed panel, text left and list right */
.who { display: grid; gap: 1.5rem 3.5rem; align-items: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.who p { color: var(--ink-soft); margin: 0; }
.who .tick-list li { font-size: 1.05rem; }
.who .tick-list li:last-child { margin-bottom: 0; }
.programmes, .expect { margin-bottom: clamp(3rem, 6vw, 4.5rem); }

/* What to expect: solid green tennis balls instead of numbers */
.step__ball { display: block; width: 3rem; height: 3rem; margin: 0 auto; background: var(--ball-filled) center / contain no-repeat; }

/* Ways to collaborate: filled green icon badges */
.way .icon {
  width: 64px; height: 64px; padding: 15px; border-radius: 50%;
  background: var(--green); stroke: var(--ivory); stroke-width: 1.6;
}
.ways { margin-bottom: clamp(3rem, 6vw, 4.5rem); }

/* Why partner (framed box) and Audience (soft box) */
.partners__why { align-items: stretch; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.why-partner .values { display: grid; gap: 0 2rem; margin-top: 1.25rem; }
.why-partner .values div:last-child { border-bottom: 0; }
.audience { background: var(--sage-mist); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem); }
.audience p { color: var(--ink); margin: 0; font-size: 1.05rem; }
.partners__band { margin-bottom: clamp(3rem, 6vw, 4.5rem); }

@media (min-width: 640px) {
  .why-partner .values { grid-template-columns: 1fr 1fr; }
  .why-partner .values div:nth-last-child(2) { border-bottom: 0; }
}

@media (min-width: 960px) {
  /* Hero: copy on the left, photo filling the whole right half */
  .hero { position: relative; padding-top: 0; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 0; min-height: calc(100vh - var(--header-h)); max-height: 940px; }
  .hero__copy { grid-column: 1; padding: 3rem 3.5rem 3rem 0; }
  .hero__photo { position: absolute; top: 0; bottom: 0; left: 50%; right: calc(50% - 50vw); width: auto; margin: 0; aspect-ratio: auto; } /* runs to the right edge of the screen */
  .hero__grid { position: relative; }

  /* Journey: photo filling the whole left half, staying in view while the timeline scrolls */
  .journey__grid { grid-template-columns: .95fr 1.05fr; gap: 4.5rem; }
  .journey__photo { margin-inline: 0; max-width: 520px; }

  .who { grid-template-columns: 1.1fr .9fr; padding: 3rem 3.5rem; }
  .partners__why { grid-template-columns: 1.4fr .9fr; gap: 2rem; }
}

/* Top-left logo: monogram with the SONET wordmark beside it */
.nav__brand .nav__logo { height: 44px; width: auto; }
@media (min-width: 960px) { .nav__brand .nav__logo { height: 50px; } }

/* ==========================================================
   17. Opening screen alignment and screen-sized scrolling
   ========================================================== */
/* Hero copy lines up with the logo and menu on the left edge */
.hero__title { font-size: clamp(2.6rem, 5.4vw, 3.5rem); max-width: none; }
.hero__title span { display: block; }  /* one sentence per line */
.hero__sub { max-width: 36rem; }

@media (min-width: 960px) {
  .hero__copy { text-align: left; padding: 2.5rem 4rem 2.5rem 0; align-self: center; }
  .hero__logo { width: 250px; margin: 0 0 0 -26px; } /* the logo file has built-in clear space; this lines its edge up with the text */
  .hero__flourish { margin: .5rem 0 1.5rem; width: 260px; height: 36px; }
  .hero__title { text-align: left; margin: 0 0 1.1rem; }
  .hero__sub { margin: 0 0 2rem; }
  .hero__actions { justify-content: flex-start; margin: 0; }
  .hero__grid { min-height: calc(100svh - var(--header-h)); max-height: none; margin-bottom: 0; }
  .hero > .court-divider { display: none; }  /* the photo edge now marks the break */

  /* Statement panels fill one screen, content centred */
  .pillars { min-height: calc(100svh - var(--header-h)); align-content: center; margin-top: 0; padding-block: 3rem; }
  .why-band, .partners__band { min-height: calc(100svh - var(--header-h)); display: grid; align-content: center; }
}

/* Gentle snapping so each part settles neatly on screen (desktop, motion allowed) */
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
  .hero, .snap, .section, .section-head, .journey__grid, .name-story, .why-band, .programmes, .who, .expect,
  .form-wrap, .partners__band, .ways, .partners__why, .contact, .footer { scroll-snap-align: start; }
}

/* ==========================================================
   18. Opening screen, revised: centred logo, one-line headline,
       framed photo on the right (as in the first design)
   ========================================================== */
.nav__brand .nav__logo { height: 38px; }
.hero__photo { margin: 0 auto; width: 100%; max-width: 460px; aspect-ratio: 4 / 5; }
.hero__photo img { border-radius: var(--radius); }
.hero__copy { text-align: center; }
.hero__logo { margin: 0 auto; }
.hero__flourish { margin-inline: auto; }
.hero__title { text-align: center; margin-inline: auto; }
.hero__sub { margin-inline: auto; }
.hero__actions { margin-inline: auto; }

@media (min-width: 960px) {
  .nav__brand .nav__logo { height: 42px; }
  .hero { padding-top: clamp(2rem, 4vw, 3rem); }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; min-height: calc(100svh - var(--header-h) - 3rem); }
  .hero__copy { grid-column: 1; text-align: center; padding: 1.5rem 0; }
  .hero__logo { width: 250px; margin: 0 auto; }
  .hero__flourish { margin: .5rem auto 1.5rem; }
  .hero__title { text-align: center; white-space: nowrap; font-size: clamp(2.2rem, 3.4vw, 2.9rem); margin: 0 auto 1.1rem; }
  .hero__title span { display: inline; }  /* all three sentences on one line */
  .hero__sub { margin: 0 auto 2rem; }
  .hero__actions { justify-content: center; margin: 0 auto; }
  .hero__photo { position: static; grid-column: 2; margin: 0 0 0 auto; width: 100%; max-width: 460px; aspect-ratio: 4 / 5; }
}

/* 19. Slightly larger centred logo and photo; pillar text starts at the same level */
@media (min-width: 960px) {
  .hero__logo { width: 300px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .hero__photo { max-width: 530px; }
}
.pillar__intro { min-height: 1.4em; }

/* 20. Hero photo a little larger again */
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .hero__photo { max-width: 590px; }
}

/* ==========================================================
   21. Contact: compact, centred cards (no form)
   ========================================================== */
.contact { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.contact__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.watermark--center::before { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(70vw, 520px); opacity: .05; }
.contact__cards { display: grid; gap: 1rem; max-width: 960px; margin: 0 auto; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%;
  text-align: center; text-decoration: none; color: var(--green);
}
.contact-card .icon {
  width: 60px; height: 60px; padding: 15px; margin-bottom: .6rem; border-radius: 50%;
  background: var(--green); stroke: var(--ivory); stroke-width: 1.5; transition: transform .4s var(--ease);
}
.contact-card__label { font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.contact-card__value { font-family: var(--font-serif); font-size: clamp(1.25rem, 1.7vw, 1.45rem); line-height: 1.3; white-space: nowrap; }
.contact-card:hover { background: var(--sage-whisper); box-shadow: inset 0 0 0 6px var(--sage-whisper), inset 0 0 0 7px var(--sage); }
.contact-card:hover .icon { transform: translateY(-3px); }
.contact-card:hover .contact-card__value { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 5px; }
@media (min-width: 640px) { .contact__cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* ---------- 22. Privacy Policy page ---------- */
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.legal-page .site-header { position: sticky; }
.legal-page .nav { justify-content: space-between; }
.legal { padding-block: clamp(3rem, 6vw, 5rem) clamp(3rem, 6vw, 4.5rem); background: var(--ivory); }
.legal__inner { max-width: 820px; }
.legal__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal__head h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: .4rem 0 .6rem; }
.legal__updated { font-size: .85rem; color: var(--ink-soft); letter-spacing: .04em; margin: 0; }
.legal__section { padding-block: 1.6rem; border-top: 1px solid var(--sage-mist); }
.legal__section h2 {
  display: flex; align-items: baseline; gap: .9rem;
  font-size: clamp(1.55rem, 2.6vw, 2rem); margin: 0 0 .8rem; color: var(--green);
}
.legal__num {
  flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--green); color: var(--ivory); font-family: var(--font-sans); font-size: .78rem; font-weight: 600;
  transform: translateY(-.2rem);
}
.legal__section p, .legal__section li { color: var(--ink); line-height: 1.75; }
.legal__section a { color: var(--green); text-underline-offset: 3px; }
.legal__section .tick-list { margin: .4rem 0 1rem; }
.legal__back { text-align: center; margin-top: 2.5rem; }
.footer--legal { padding-top: 0; }
