/* pickle.lk — design tokens */
:root {
  --green: #7DD87A;
  --green-deep: #5BC058;
  --green-ink: #0f2419;
  --green-dark: #1a3d26;
  --cream: #F5F2E8;
  --cream-2: #EDE8D6;
  --paper: #FAFAF5;
  --ink: #0f1a12;
  --ink-60: rgba(15, 26, 18, 0.6);
  --ink-40: rgba(15, 26, 18, 0.4);
  --ink-12: rgba(15, 26, 18, 0.12);
  --ink-08: rgba(15, 26, 18, 0.08);
  --accent: #C6E84A;
  --radius: 14px;
  --radius-lg: 24px;
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --paper: #0a1410;
  --cream: #0f1a13;
  --cream-2: #162219;
  --ink: #EDE8D6;
  --ink-60: rgba(237, 232, 214, 0.65);
  --ink-40: rgba(237, 232, 214, 0.45);
  --ink-12: rgba(237, 232, 214, 0.14);
  --ink-08: rgba(237, 232, 214, 0.08);
  --green-ink: #EDE8D6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

/* Custom cursor — disabled, native cursor used instead */
.cursor {
  display: none !important;
}
.cursor-legacy {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.25s var(--easing), height 0.25s var(--easing), background 0.25s var(--easing);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--easing), width 0.3s, height 0.3s, background 0.3s;
}
.cursor-ring.hover {
  width: 72px; height: 72px;
  background: var(--green);
  border-color: var(--green);
  mix-blend-mode: normal;
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--green);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.4s var(--easing), background 0.4s var(--easing);
  backdrop-filter: blur(0px);
}
.nav.scrolled {
  padding: 14px 40px;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-08);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-mark {
  width: 28px; height: 28px;
  background: var(--green);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.nav-logo-mark::before,
.nav-logo-mark::after {
  content: '';
  position: absolute;
  background: var(--green-ink);
}
.nav-logo-mark::before {
  width: 100%; height: 1.5px;
  top: 50%; left: 0;
  transform: translateY(-50%);
}
.nav-logo-mark::after {
  width: 1.5px; height: 100%;
  left: 50%; top: 0;
  transform: translateX(-50%);
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.3s var(--easing);
}
.nav-link:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--green-ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s var(--easing), background 0.3s;
}
.btn:hover { transform: scale(0.96); background: var(--ink); }
.btn.primary { background: var(--green); color: var(--green-ink); }
.btn.primary:hover { background: var(--green-deep); }
.btn-arrow {
  width: 16px; height: 16px;
  display: inline-block;
  position: relative;
}
.btn-arrow::after {
  content: '→';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform 0.3s var(--easing);
}
.btn:hover .btn-arrow::after { transform: translateX(3px); }

/* Nav toggle (hamburger) — hidden above 900px */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  padding: 0;
  position: relative;
  background: var(--cream);
  border: 1px solid var(--ink-12);
  transition: background 0.3s var(--easing);
  flex-shrink: 0;
}
.nav-toggle-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--easing), opacity 0.25s var(--easing), top 0.35s var(--easing);
}
.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle-bar:nth-child(3) { top: 27px; }
.nav-toggle.open .nav-toggle-bar:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }
/* Mobile drawer (sibling of <nav>, unaffected by nav's backdrop-filter) */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 360px);
  background: var(--paper);
  border-left: 1px solid var(--ink-12);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 96px 28px 32px;
  transform: translateX(100%);
  transition: transform 0.45s var(--easing);
  z-index: 110;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  visibility: hidden;
}
.nav-drawer.open { transform: translateX(0); visibility: visible; }
.nav-drawer .nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-08);
}
.nav-drawer .nav-link::after { display: none; }
.nav-drawer .nav-link-cta {
  margin-top: 20px;
  padding: 16px 22px;
  background: var(--green);
  color: var(--green-ink);
  border-radius: 999px;
  text-align: center;
  border-bottom: none;
  font-size: 16px;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 105;
  transition: opacity 0.3s var(--easing);
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }
body.nav-locked { overflow: hidden; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--easing), transform 1s var(--easing);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--easing);
}
.reveal-word.in > span { transform: translateY(0); }

section { padding: 120px 40px; position: relative; }
.wrap { max-width: 1360px; margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ink-40);
}

/* Hero */
.hero {
  padding: 160px 40px 100px;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 40px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.hero-title {
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
}
.hero-title em {
  font-style: normal;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--green-deep);
}
.hero-meta {
  display: flex;
  align-items: center;
  margin-top: 48px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.hero-meta-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-image-wrap {
  margin-top: 40px;
  height: 42vh;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #0f2419;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-image-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-ink);
}

/* Marquee */
.marquee {
  background: var(--green-ink);
  color: var(--paper);
  padding: 28px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
}
.marquee-track {
  display: inline-block;
  animation: marquee 40s linear infinite;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.marquee-track span {
  margin: 0 40px;
}
.marquee-track em {
  color: var(--green);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-left { position: sticky; top: 100px; }
.about-title {
  font-size: clamp(48px, 6vw, 88px);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.035em;
  line-height: 0.94;
  font-weight: 500;
  margin-bottom: 32px;
}
.about-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green-deep);
}
.about-right p {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 52ch;
}
.about-right p:last-child { color: var(--ink-60); }
.about-image {
  margin-top: 40px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ink-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--paper);
  padding: 40px 32px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  row-gap: 16px;
  min-height: 240px;
}
.stat > .mono { align-self: start; }
.stat > div { display: contents; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green-deep);
  align-self: end;
  margin-top: 24px;
}
.stat-label {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.4;
  align-self: start;
}

/* Courts */
.courts-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: end;
}
.courts-header h2 {
  font-size: clamp(48px, 6vw, 88px);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.035em;
  line-height: 0.94;
  font-weight: 500;
}
.courts-header em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green-deep);
}
.courts-header p {
  font-size: 18px;
  color: var(--ink-60);
  max-width: 44ch;
  justify-self: end;
}

.court-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.chip {
  padding: 10px 18px;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s var(--easing);
}
.chip.active, .chip:hover {
  background: var(--green-ink);
  color: var(--paper);
  border-color: var(--green-ink);
}

.courts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.court-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--easing);
  cursor: pointer;
}
.court-card:hover { transform: translateY(-6px); }
.court-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.court-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--easing);
}
.court-card:hover .court-img img { transform: scale(1.06); }
.court-img-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--paper);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-ink);
}
.court-img-badge.open { background: var(--green); }
.court-card.court-closed { opacity: 0.6; }
.court-card.court-closed .court-name { text-decoration: line-through; text-decoration-color: rgba(15, 26, 18, 0.35); }
.court-card.court-closed .court-img-badge { background: rgba(15, 26, 18, 0.7); color: var(--paper); }
.court-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.court-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.court-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.court-location {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.court-meta {
  display: flex;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-12);
  font-size: 13px;
  color: var(--ink-60);
}
.court-meta span { display: flex; align-items: center; gap: 6px; }
.court-meta svg { width: 14px; height: 14px; }

/* Coaching */
.coaching {
  background: var(--green-ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  margin: 0 40px;
  padding: 100px 80px;
}
.coaching-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.coaching-header {
  max-width: 900px;
}
.coaching-header p {
  max-width: 60ch;
}
.coaching-body {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 1.4fr;
  gap: 40px;
  align-items: stretch;
}
.coaching-list-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.coaching-cta { align-self: flex-start; }
.coaching h2 {
  font-size: clamp(48px, 6vw, 96px);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.035em;
  line-height: 0.94;
  font-weight: 500;
  color: var(--paper);
}
.coaching h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}
.coaching p {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(245, 242, 232, 0.7);
  margin: 24px 0 32px;
  max-width: 42ch;
}
.coach-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.coach-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(245, 242, 232, 0.12);
  transition: padding 0.4s var(--easing);
}
.coach-row:first-child { border-top: 1px solid rgba(245, 242, 232, 0.12); }
.coach-row:hover { padding-left: 16px; }
.coach-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(245, 242, 232, 0.4);
}
.coach-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.coach-level {
  font-size: 13px;
  color: rgba(245, 242, 232, 0.6);
}
.coach-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--green);
}

/* ========== Venue-list + Map integration (Coaching section) ========== */
.venue-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid rgba(245, 242, 232, 0.12);
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 216, 122, 0.35) transparent;
  padding-right: 8px;
}
.venue-list::-webkit-scrollbar { width: 6px; }
.venue-list::-webkit-scrollbar-track { background: transparent; }
.venue-list::-webkit-scrollbar-thumb { background: rgba(125, 216, 122, 0.28); border-radius: 3px; }
.venue-list::-webkit-scrollbar-thumb:hover { background: rgba(125, 216, 122, 0.55); }

.venue-rating {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(245, 242, 232, 0.72);
  background: rgba(245, 242, 232, 0.06);
  border: 1px solid rgba(245, 242, 232, 0.12);
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}
.venue-row.active .venue-rating {
  color: var(--green);
  border-color: rgba(125, 216, 122, 0.4);
  background: rgba(125, 216, 122, 0.08);
}
.venue-rating.closed-flag {
  color: rgba(245, 242, 232, 0.55);
  border-color: rgba(245, 242, 232, 0.18);
}
.venue-row.closed {
  opacity: 0.55;
}
.venue-row.closed .coach-name,
.venue-row.closed .coach-price {
  text-decoration: line-through;
  text-decoration-color: rgba(245, 242, 232, 0.35);
}
.venue-row.closed .venue-rating.closed-flag {
  text-decoration: none;
}
.venue-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 12px 18px 0;
  border-bottom: 1px solid rgba(245, 242, 232, 0.12);
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  font: inherit;
  width: 100%;
  transition: padding 0.35s var(--easing), background 0.35s var(--easing);
  position: relative;
}
.venue-row:hover { padding-left: 16px; background: rgba(125, 216, 122, 0.05); }
.venue-row.active {
  padding-left: 16px;
  background: rgba(125, 216, 122, 0.08);
}
.venue-row.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: var(--green);
  border-radius: 2px;
}
.venue-row .coach-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(245, 242, 232, 0.4);
}
.venue-row.active .coach-num { color: var(--green); }
.venue-row .coach-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.venue-row .coach-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
  white-space: nowrap;
}

/* Map panel */
.coaching-map {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(245, 242, 232, 0.04);
  border: 1px solid rgba(245, 242, 232, 0.12);
  border-radius: 20px;
  overflow: hidden;
  min-height: 520px;
  transition: all 0.3s var(--easing);
}
.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(245, 242, 232, 0.08);
  flex-wrap: wrap;
}
.map-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.map-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.map-action {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(245, 242, 232, 0.06);
  border: 1px solid rgba(245, 242, 232, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--easing), border-color 0.25s var(--easing), color 0.25s var(--easing);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.map-action:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--green-ink);
}
.map-expand-icon { font-size: 14px; line-height: 1; }
.map-frame {
  flex: 1;
  position: relative;
  background: #0f2419;
  min-height: 480px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
  filter: saturate(1.05);
}

/* Fullscreen */
.map-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.3s var(--easing);
}
.map-backdrop.show { opacity: 1; pointer-events: auto; }
.coaching-map.fullscreen {
  position: fixed;
  inset: 24px;
  z-index: 100;
  min-height: 0;
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}
body.map-locked { overflow: hidden; }

@media (max-width: 900px) {
  .coaching-map { min-height: 420px; }
  .map-frame { min-height: 380px; }
  .coaching-map.fullscreen { inset: 12px; }
  .venue-row { grid-template-columns: 28px 1fr auto; gap: 12px; }
  .venue-row .coach-name { font-size: 15px; }
  .map-toolbar { padding: 12px 14px; }
  .map-action { font-size: 10px; padding: 6px 10px; }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px 240px;
  gap: 16px;
  margin-top: 60px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--easing);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:nth-child(1) { grid-row: 1 / 3; }
.gallery-item:nth-child(4) { grid-column: 2 / 4; }
.gallery-item:nth-child(6) { grid-column: 1 / 3; }
.gallery-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
}
.faq-left h2 {
  font-size: clamp(48px, 6vw, 88px);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.035em;
  line-height: 0.94;
  font-weight: 500;
}
.faq-left em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green-deep);
}
.faq-left p {
  margin-top: 24px;
  color: var(--ink-60);
  font-size: 16px;
  max-width: 32ch;
}
.faq-list { border-top: 1px solid var(--ink-12); }
.faq-item {
  border-bottom: 1px solid var(--ink-12);
  padding: 28px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cream-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.5s var(--easing);
  font-size: 18px;
  line-height: 1;
}
.faq-item.open .faq-toggle {
  background: var(--green);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--easing), margin-top 0.5s var(--easing);
  color: var(--ink-60);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}
.faq-item.open .faq-a {
  max-height: 300px;
  margin-top: 16px;
}

/* Newsletter */
.newsletter {
  background: var(--cream);
  border-radius: var(--radius-lg);
  margin: 0 40px;
  padding: 100px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter h2 {
  font-size: clamp(48px, 7vw, 120px);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-weight: 500;
  max-width: 14ch;
  margin: 0 auto 32px;
}
.newsletter h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green-deep);
}
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
  border: 1px solid var(--ink-12);
}
.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.newsletter-form input::placeholder { color: var(--ink-40); }
.newsletter-pill {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.newsletter-pill.a { width: 400px; height: 400px; background: var(--green); top: -150px; left: -100px; }
.newsletter-pill.b { width: 300px; height: 300px; background: var(--accent); bottom: -100px; right: -80px; }

/* Footer */
.footer {
  padding: 80px 40px 40px;
  background: var(--green-ink);
  color: var(--paper);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(245, 242, 232, 0.12);
}
.footer-word {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(60px, 10vw, 160px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.footer-word em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 242, 232, 0.4);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 15px;
  color: rgba(245, 242, 232, 0.85);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 232, 0.5);
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  padding: 20px;
  z-index: 500;
  width: 280px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: none;
  cursor: auto;
}
.tweaks-panel.show { display: block; }
.tweaks-panel * { cursor: auto; }
.tweaks-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 14px;
}
.tweaks-row {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-12);
}
.tweaks-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tweaks-label {
  font-size: 12px;
  color: var(--ink-60);
  margin-bottom: 8px;
  display: block;
}
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s;
}
.tweak-swatch:hover { transform: scale(1.1); }
.tweak-swatch.active { border-color: var(--ink); }
.tweaks-row input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--ink-12);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  background: var(--paper);
  color: var(--ink);
}
.tweak-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.tweak-toggle-switch {
  width: 40px; height: 22px;
  background: var(--ink-12);
  border-radius: 999px;
  position: relative;
  transition: background 0.3s;
}
.tweak-toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: var(--paper);
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform 0.3s var(--easing);
}
.tweak-toggle.on .tweak-toggle-switch { background: var(--green); }
.tweak-toggle.on .tweak-toggle-switch::after { transform: translateX(18px); }

/* Blog article */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 40px 80px;
}
.article-meta {
  display: flex;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 24px;
}
.article h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1;
  font-weight: 500;
  margin-bottom: 32px;
}
.article h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--green-deep);
}
.article-lede {
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink-12);
}
.article-hero {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 -80px 60px;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body p {
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 24px;
  color: var(--ink);
}
.article-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 60px 0 20px;
}
.article-body { counter-reset: court-num; }
.article-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--ink);
  margin: 44px 0 14px;
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.article-body h3::before {
  counter-increment: court-num;
  content: counter(court-num, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-60);
  flex-shrink: 0;
}
.article-body blockquote {
  font-family: 'Instrument Serif', serif;
  font-size: 30px;
  line-height: 1.3;
  color: var(--green-deep);
  font-style: italic;
  margin: 40px 0;
  padding-left: 24px;
  border-left: 2px solid var(--green);
}
.article-body ul { padding-left: 20px; margin-bottom: 24px; }
.article-body li {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Back-to-top */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 40px;
}
.article-back:hover { color: var(--ink); }

@media (max-width: 900px) {
  section { padding: 80px 24px; }

  /* Nav — hamburger drawer */
  .nav, .nav.scrolled { padding: 14px 20px; }
  .nav-toggle { display: block; }
  .nav-cta-desktop { display: none; }
  .nav-links-desktop { display: none; }

  /* Hero */
  .hero { padding: 120px 20px 40px; gap: 28px; }
  .hero-top { display: none; }
  .hero-title { font-size: clamp(44px, 13vw, 96px); }
  .hero-meta { margin-top: 32px; }

  /* Layout grids */
  .about, .courts-header, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .coaching-inner { gap: 32px; }
  .coaching-body { grid-template-columns: 1fr; gap: 28px; }
  .about-left { position: static; }
  .faq-wrap { gap: 40px; }
  .faq-left p { max-width: none; }

  /* Stats — 2-up on tablet, keep readable */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Courts */
  .courts-grid { grid-template-columns: 1fr; gap: 20px; }
  .court-filters { gap: 8px; margin-bottom: 24px; }
  .chip { padding: 11px 16px; font-size: 13px; min-height: 40px; }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 180px);
    gap: 12px;
    margin-top: 40px;
  }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(6) { grid-column: auto; grid-row: auto; }

  /* Coaching + map */
  .coaching { margin: 0 20px; padding: 56px 24px; border-radius: 20px; }
  .coaching-map { min-height: 420px; }
  .map-frame { min-height: 380px; }
  .coaching-map.fullscreen { inset: 12px; }
  .venue-list { max-height: 380px; }
  .venue-row { grid-template-columns: 28px 1fr auto; gap: 12px; padding: 14px; min-height: 56px; min-width: 0; }
  .venue-row .coach-name { font-size: 15px; min-width: 0; }
  .venue-row .coach-price { font-size: 12px; white-space: nowrap; }
  .map-toolbar { padding: 12px 14px; }
  .map-action { font-size: 10px; padding: 8px 12px; min-height: 36px; }

  /* Newsletter */
  .newsletter { margin: 0 20px; padding: 72px 24px; }
  .newsletter-form {
    flex-direction: column;
    background: transparent;
    padding: 0;
    gap: 10px;
    border: none;
    border-radius: 0;
  }
  .newsletter-form input {
    background: var(--paper);
    border: 1px solid var(--ink-12);
    border-radius: 999px;
    padding: 16px 22px;
  }
  .newsletter-form .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 22px;
  }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* FAQ — larger taps, tighter spacing */
  .faq-q { font-size: 18px; gap: 12px; }
  .faq-item { padding: 22px 0; }

  /* Article */
  .article { padding: 110px 24px 64px; }
  .article-meta { flex-wrap: wrap; gap: 12px 18px; font-size: 10px; }
  .article-lede { font-size: 18px; margin-bottom: 32px; padding-bottom: 32px; }
  .article-hero { margin: 0 0 32px; border-radius: 16px; }
  .article-body h2 { margin: 44px 0 16px; }
  .article-back { margin-bottom: 28px; }

  /* Coaches */
  .coach-row { grid-template-columns: 30px 1fr auto; }
  .coach-level { display: none; }

  /* Tweaks panel — full width, bottom */
  .tweaks-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* Phone — fine-tune below 600px */
@media (max-width: 600px) {
  section { padding: 64px 20px; }
  .nav, .nav.scrolled { padding: 12px 16px; }
  .nav-logo { font-size: 18px; }
  .nav-logo-mark { width: 24px; height: 24px; }

  .hero { padding: 104px 16px 32px; }
  .hero-title { font-size: clamp(40px, 14vw, 68px); letter-spacing: -0.03em; }
  .hero-meta { margin-top: 24px; }

  .eyebrow { font-size: 10px; margin-bottom: 18px; }

  .stats { grid-template-columns: 1fr 1fr; gap: 16px; }

  .about, .courts-header, .faq-wrap { gap: 32px; }
  .coaching-inner { gap: 28px; }
  .coaching-body { gap: 24px; }

  .coaching { margin: 0 12px; padding: 44px 18px; border-radius: 18px; }
  .coaching-map { min-height: 360px; border-radius: 14px; }
  .map-frame { min-height: 320px; }
  .venue-list { max-height: 320px; padding-right: 4px; }
  .venue-row { grid-template-columns: 24px 1fr; gap: 10px; padding: 12px; }
  .venue-row .coach-name { font-size: 14px; }
  .venue-row .coach-price { display: none; }
  .venue-rating { font-size: 10px; padding: 3px 8px; }
  .map-toolbar { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .map-actions { gap: 6px; }
  .map-action { font-size: 10px; padding: 7px 10px; }

  .court-card { border-radius: 18px; }
  .chip { padding: 10px 14px; font-size: 12px; min-height: 38px; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 56vw);
    gap: 10px;
  }

  .newsletter { margin: 0 12px; padding: 56px 20px; }
  .newsletter h2 { font-size: clamp(40px, 11vw, 64px); margin-bottom: 24px; }

  .faq-q { font-size: 16px; }
  .faq-toggle { width: 28px; height: 28px; font-size: 16px; }
  .faq-a { font-size: 15px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }

  .coach-row { grid-template-columns: 1fr auto; }
  .coach-img, .coach-number { display: none; }

  /* Article typography */
  .article { padding: 96px 18px 48px; }
  .article h1 { font-size: clamp(36px, 10vw, 64px); margin-bottom: 24px; }
  .article-lede { font-size: 17px; }
  .article-body h2 { font-size: clamp(24px, 6vw, 32px); }
  .article-body h3 { font-size: 20px; margin: 32px 0 12px; gap: 12px; }
  .article-body h3::before { font-size: 20px; }
  .article-body p, .article-body li { font-size: 16px; line-height: 1.65; }
  .article-body blockquote { font-size: 20px; padding-left: 18px; margin: 32px 0; }
}

/* Tap target baseline on any touch device */
@media (hover: none) and (pointer: coarse) {
  .btn { padding: 14px 22px; }
  .chip { min-height: 40px; }
  .venue-row { min-height: 52px; }
  .map-action { min-height: 40px; }
}

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal-word > span { transform: none !important; }
  .marquee-track { animation: none !important; }
  .hero-image { transform: none !important; }
}
