/* ==========================================================================
   Dallas Hoops Club — Bone & Ink
   Editorial light theme: warm bone ground, ink type, burnt-orange accent.
   Single-page layout, registration form as the primary content.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --bone:        #F7F4ED;
  --bone-deep:   #EFEBE1;
  --surface:     #FFFFFF;
  --ink:         #14161A;
  --ink-soft:    #2A2E35;
  --muted:       #6B7078;
  --accent:      #D2601A;
  --accent-deep: #A94A11;
  --accent-wash: #FBEEE4;

  /* Lines */
  --line:        rgba(20, 22, 26, 0.14);
  --line-soft:   rgba(20, 22, 26, 0.08);
  --line-strong: rgba(20, 22, 26, 0.28);

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --wrap:      1180px;
  --gutter:    clamp(20px, 5vw, 48px);
  --section-y: clamp(68px, 9vw, 118px);
  --radius:    6px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   3. Header & nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-24deg); }

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.brand-line-1 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
}
.brand-line-2 { font-size: 19px; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav > a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
  transition: color 0.2s var(--ease);
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--ink); }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.75px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: var(--accent);
  box-shadow: 0 1px 2px rgba(169, 74, 17, 0.18);
}
.btn-primary:hover {
  --btn-bg: var(--accent-deep);
  --btn-bd: var(--accent-deep);
  box-shadow: 0 6px 18px rgba(169, 74, 17, 0.22);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn-ghost:hover { --btn-bd: var(--ink); --btn-bg: rgba(20, 22, 26, 0.04); }

.btn-invert {
  --btn-bg: var(--bone);
  --btn-fg: var(--ink);
  --btn-bd: var(--bone);
}
.btn-invert:hover { --btn-bg: #fff; --btn-bd: #fff; }

.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-block { width: 100%; padding-block: 17px; font-size: 16px; }

.btn[data-busy="true"] { pointer-events: none; opacity: 0.7; }
.btn .spinner { display: none; }
.btn[data-busy="true"] .spinner {
  display: block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   5. Hero (copy + form, side by side)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(44px, 6vw, 78px);
  padding-bottom: clamp(56px, 7vw, 92px);
  overflow: hidden;
}

.hero-court {
  position: absolute;
  top: 4%;
  left: 46%;
  width: min(52vw, 560px);
  color: var(--ink);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  /* Feather the edges so cropped line-ends dissolve instead of stopping dead. */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 68%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 68%, transparent);
}
.hero-court svg { width: 100%; height: auto; }

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.hero-copy { padding-top: clamp(0px, 1.5vw, 18px); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 24px;
}

.hero-title {
  font-size: clamp(42px, 6.2vw, 76px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 26px;
  font-variation-settings: "opsz" 120;
}

.hero-lede {
  font-size: clamp(17px, 1.55vw, 19.5px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 36px;
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  max-width: 460px;
}
.hero-facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.hero-facts span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.hero-facts strong {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: right;
}

/* --------------------------------------------------------------------------
   6. Stat strip
   -------------------------------------------------------------------------- */
.statband {
  background: var(--bone-deep);
  border-block: 1px solid var(--line-soft);
}

.statbar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.statbar li {
  padding: 30px 26px 30px 0;
  border-right: 1px solid var(--line-soft);
}
.statbar li:last-child { border-right: 0; }
.statbar li + li { padding-left: 26px; }

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 9px;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-label {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section-alt {
  background: var(--bone-deep);
  border-block: 1px solid var(--line-soft);
}

.section-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 60px); }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.section-label span {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 72px;
}

.section-title {
  font-size: clamp(32px, 4.4vw, 54px);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.section-lede {
  font-size: clamp(16.5px, 1.5vw, 19px);
  color: var(--muted);
  line-height: 1.62;
  max-width: 58ch;
}

.footnote {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card {
  background: var(--surface);
  padding: clamp(28px, 3.2vw, 40px);
  transition: background 0.25s var(--ease);
}
.card:hover { background: #FFFDF9; }
.card-title {
  font-size: clamp(21px, 2vw, 25px);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.card p { color: var(--muted); font-size: 16px; line-height: 1.62; }

/* --------------------------------------------------------------------------
   9. Steps
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  padding: clamp(26px, 3vw, 38px);
}
.step-num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-size: clamp(19px, 1.9vw, 23px);
  margin-bottom: 10px;
}
.steps p { color: var(--muted); font-size: 15.5px; }

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); max-width: 82ch; }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 23px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.3;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-deep); }

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  background: var(--accent);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq summary::before { width: 15px; height: 1.75px; transform: translateY(-50%); }
.faq summary::after  { width: 1.75px; height: 15px; right: 12.6px; transform: translateY(-50%); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }

.faq-body {
  padding: 0 clamp(0px, 6vw, 72px) 26px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   11. The form panel
   -------------------------------------------------------------------------- */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.03), 0 16px 40px rgba(20, 22, 26, 0.06);
  scroll-margin-top: 96px;
}

.form-panel-head {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}
.form-kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.form-panel-head h2 {
  font-size: clamp(25px, 2.6vw, 32px);
  letter-spacing: -0.028em;
  margin-bottom: 12px;
}
.form-sub {
  font-size: 15px;
  line-height: 1.58;
  color: var(--muted);
}

.form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.req { color: var(--accent); font-weight: 700; }
.opt {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-strong); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(210, 96, 26, 0.13);
}

.field input::placeholder { color: #A5A9B0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Checkbox */
.field.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 11px;
  padding-top: 4px;
}
.field.check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin: 2px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--bone);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.field.check input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.15s var(--ease);
}
.field.check input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.field.check input[type="checkbox"]:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.field.check label {
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
  display: block;
}
.field.check.is-invalid input[type="checkbox"] { border-color: #B3261E; background: #FDF4F3; }
.field.check.is-invalid label { color: #B3261E; }

/* Validation */
.err {
  display: none;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #B3261E;
}
.field.is-invalid .err { display: block; }

/* Error slot that sits outside its .field (the waiver checkbox) */
.err-standalone { margin: -10px 0 0; }
.err-standalone:not(:empty) { display: block; }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #B3261E;
  background: #FDF4F3;
}
.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus {
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

/* Honeypot — visually removed but not display:none (some bots skip those) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
}
.form-status:empty { display: none; }
.form-status[data-tone="error"] { color: #B3261E; }
.form-status[data-tone="info"] { color: var(--muted); }

.form-legal {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* Success state */
.form-success {
  text-align: center;
  padding: clamp(18px, 3vw, 30px) 0;
  animation: fadeUp 0.5s var(--ease) both;
}
.success-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  color: var(--accent);
}
.form-success h3 {
  font-size: clamp(23px, 2.5vw, 30px);
  margin-bottom: 12px;
}
.form-success p {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 46ch;
  margin-inline: auto;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   12. CTA band & footer
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(58px, 7.5vw, 96px);
}
.cta-inner { text-align: center; }
.cta-band h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 20ch;
  margin-inline: auto;
}
.cta-band p {
  color: rgba(247, 244, 237, 0.62);
  font-size: 16.5px;
  margin-bottom: 32px;
  max-width: 48ch;
  margin-inline: auto;
}

.site-footer {
  background: var(--bone-deep);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 56px);
}
.footer-tag {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
  max-width: 34ch;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.footer-nav h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-nav a {
  display: block;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--accent-deep); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.footer-base p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   13. Reveal animation
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-split { grid-template-columns: 1fr; gap: 44px; }
  .hero-court { top: 2%; left: auto; right: -18%; width: 66vw; }
  .hero-facts { max-width: none; }
  .form-panel { max-width: 560px; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps  { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .statbar li { border-bottom: 1px solid var(--line-soft); }
  .statbar li:nth-child(2n) { border-right: 0; }
  .statbar li:nth-child(n+3) { border-bottom: 0; }
  .statbar li:nth-child(2n+1) { padding-left: 0; }
  .statbar li:nth-child(2n) { padding-left: 26px; }
}

@media (max-width: 780px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 26px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a:not(.btn) {
    padding: 15px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 20px; padding: 15px 24px; font-size: 15px; }
  .nav-toggle { display: flex; }

  .field-row { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .hero-court { opacity: 0.04; }
}

@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .statbar { grid-template-columns: 1fr; }
  /* Scoped by .statband so this outranks the nth-child rules set at 900px. */
  .statband .statbar li {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .statband .statbar li:last-child { border-bottom: 0; }
  .footer-nav { grid-template-columns: 1fr; }
  .hero-facts li { flex-direction: column; gap: 3px; align-items: flex-start; }
  .hero-facts strong { text-align: left; }
}

/* --------------------------------------------------------------------------
   15. Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .hero-court, .site-footer { display: none; }
  body { background: #fff; }
  .js .reveal { opacity: 1; transform: none; }
}
