/* TTConnect — shared styles
   ttconnect.us
   ------------------------------------------------------------------ */

:root {
  /* Surface */
  --cream: #f5efe4;
  --cream-2: #ebe3d2;
  --cream-3: #e0d6c0;
  --paper: #fffaf0;

  /* Ink */
  --ink: #14130f;
  --ink-2: #3a3730;
  --ink-3: #6b665c;
  --line: #d6cdb8;
  --line-soft: #e5dcc6;

  /* Brand */
  --forest: #1a1411;       /* warm near-black (was forest green) */
  --forest-2: #0d0a09;     /* deeper black */
  --forest-3: #2c2622;     /* lighter charcoal */
  --orange: #cc1f3a;       /* table-tennis rubber red (was orange) */
  --orange-2: #a91830;     /* deeper red — hover */
  --ball: #ffffff;         /* always white now */

  /* Type */
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Spacing */
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 999px;
}

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

html {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; overflow-x: hidden; }

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--orange); color: var(--paper); }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 inline-axis;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.row { display: flex; gap: 16px; align-items: center; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Type ---------- */
.display, h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.02; color: var(--ink); margin: 0; }
h1 { font-size: clamp(48px, 8vw, 104px); letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.03em; }
h3 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.1; }
h4 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em; line-height: 1.2; }

p { margin: 0; }
.lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-3); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(204, 31, 58, 0.18);
}

.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-full);
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--forest); color: var(--paper); }
.btn--primary:hover { background: var(--forest-2); }
.btn--accent { background: var(--orange); color: var(--paper); }
.btn--accent:hover { background: var(--orange-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }

.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 228, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo__ball {
  width: 22px; height: 22px;
  background: #ffffff;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 1.5px var(--ink), inset -3px -3px 0 0 rgba(0,0,0,0.08);
}
.logo__ball::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%);
}
.logo b { font-weight: 700; }
.logo span { color: var(--forest); font-weight: 500; }

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav a {
  padding: 10px 14px;
  border-radius: var(--r-full);
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--cream-2); color: var(--ink); text-decoration: none; }
.nav a.is-current { color: var(--ink); background: var(--cream-2); }

.header-cta { display: flex; gap: 8px; align-items: center; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  align-items: center;
  justify-content: center;
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

@media (max-width: 880px) {
  .nav, .header-cta .btn:not(.btn--accent) { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter);
  }
  .nav.is-open a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
  overflow: hidden;
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.hero h1 {
  margin-top: 18px;
}
.hero h1 .accent {
  color: var(--orange);
  font-style: italic;
  font-weight: 500;
  position: relative;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6%;
  height: 12px;
  background: var(--ink);
  opacity: 0.08;
  z-index: -1;
  border-radius: 4px;
}
.hero__sub {
  margin-top: 24px;
  max-width: 52ch;
}
.hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__meta {
  margin-top: 40px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
}
.hero__meta strong { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 22px; display: block; letter-spacing: -0.01em; }
.hero__meta span { display: block; }
.hero__meta > div { display: flex; flex-direction: column; gap: 2px; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* Hero visual — paddle + ball composition */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  background: var(--forest);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(19, 59, 42, 0.5);
}
.hero-art__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero-art__net {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.5) 0 6px, transparent 6px 12px);
  transform: translateY(-1px);
}
.hero-art__ball {
  position: absolute;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #f2ede2 70%, #c8c0ac);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  top: 22%;
  left: 18%;
  animation: bounce 3.2s ease-in-out infinite;
}
.hero-art__paddle {
  position: absolute;
  width: 46%;
  right: -6%;
  bottom: -10%;
  transform: rotate(-18deg);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.4));
}
.hero-art__label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-art__label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(204, 31, 58, 0.25);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(46%); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(204, 31, 58, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(204, 31, 58, 0.05); }
}

/* ---------- Stats strip ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.stats__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 36px 24px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat:last-child { border-right: none; }
.stat__n { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.stat__l { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.stat__n .unit { color: var(--orange); }

@media (max-width: 720px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head p { color: var(--ink-3); max-width: 42ch; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .cards-3 { grid-template-columns: 1fr; } .cards-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: 0 12px 30px -20px rgba(20, 19, 15, 0.25);
}
.card__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.card__title { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; line-height: 1.15; }
.card__body { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* How-it-works numbered cards */
.step {
  position: relative;
  padding: 32px 28px;
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.step__n {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  color: var(--orange);
  font-style: italic;
}
.step h3 { font-size: 24px; }
.step p { color: var(--ink-2); }

/* ---------- League cards (rich) ---------- */
.league-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .league-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .league-grid { grid-template-columns: 1fr; } }

.league-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.league-card:hover { transform: translateY(-2px); border-color: var(--line); box-shadow: 0 14px 30px -20px rgba(20,19,15,0.3); text-decoration: none; }
.league-card__banner {
  height: 140px;
  background: var(--forest);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
}
.league-card__banner.b-cream { background: var(--cream-3); color: var(--ink-3); }
.league-card__banner.b-orange { background: var(--orange); color: rgba(255,255,255,0.8); }
.league-card__banner svg { width: 100%; height: 100%; position: absolute; inset: 0; opacity: 0.18; }
.league-card__chip {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  padding: 5px 9px;
  border-radius: var(--r-full);
}
.league-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.league-card__loc { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.league-card__title { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
.league-card__meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.league-card__meta strong { color: var(--ink); font-weight: 600; }

/* ---------- Featured event ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.feature__art {
  position: relative;
  min-height: 360px;
  background: var(--forest-2);
  background-image: radial-gradient(circle at 30% 70%, rgba(204, 31, 58, 0.2), transparent 60%);
}
.feature__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.feature__body .eyebrow { color: rgba(255,255,255,0.7); }
.feature__body .eyebrow::before { background: var(--orange); }
.feature h2 { color: var(--paper); }
.feature p { color: rgba(255,250,240,0.78); max-width: 50ch; }
.feature__meta { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 8px; }
.feature__meta div { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); display: flex; flex-direction: column; gap: 4px; }
.feature__meta strong { color: var(--paper); font-family: var(--display); font-weight: 600; font-size: 22px; display: block; letter-spacing: -0.01em; text-transform: none; }
.feature__meta span { display: block; }
.feature__cta { margin-top: 12px; }

@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; }
  .feature__art { min-height: 220px; }
}

/* ---------- Map / clubs strip ---------- */
.map {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 8;
}
.map svg { width: 100%; height: 100%; display: block; }
.map__legend {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(255,250,240,0.95);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  gap: 14px;
  align-items: center;
}
.map__legend span { display: inline-flex; align-items: center; gap: 6px; }
.map__legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); display: inline-block; }
.map__legend i.f { background: var(--forest); }

.map-dot {
  fill: var(--orange);
  stroke: var(--paper);
  stroke-width: 1.5;
  transform-origin: center;
  cursor: pointer;
  transition: r .2s ease;
}
.map-dot.lg { fill: var(--forest); }

/* ---------- Testimonial / player spotlight ---------- */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.spotlight__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background:
    repeating-linear-gradient(45deg, var(--cream-2) 0 16px, var(--cream-3) 16px 32px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.spotlight__photo::after {
  content: "PLAYER ACTION SHOT";
  position: absolute;
  inset: 16px;
  border: 1px dashed var(--ink-3);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.spotlight__quote {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.spotlight__quote .mark { color: var(--orange); }
.spotlight__by {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
}
.spotlight__by strong { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }

@media (max-width: 880px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__photo { aspect-ratio: 1 / 1; max-width: 400px; }
}

/* ---------- Newsletter / join ---------- */
.joinbox {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.joinbox h2 { font-size: clamp(28px, 4vw, 48px); }
.joinbox p { color: var(--ink-2); margin-top: 14px; max-width: 42ch; }
.joinbox__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.joinbox__form .field {
  display: flex;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 20px;
  transition: border-color .15s ease, background .15s ease;
}
.joinbox__form .field:focus-within { border-color: var(--forest); background: var(--paper); }
.joinbox__form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: 500 16px/1 var(--body);
  color: var(--ink);
  padding: 14px 0;
  min-width: 0;
}
.joinbox__form input::placeholder { color: var(--ink-3); }
.joinbox__form .field button { border: none; }
.joinbox__form .hint { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-left: 4px; }
.joinbox__form .role {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.role label {
  flex: 1;
  min-width: 0;
  position: relative;
}
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role span {
  display: block;
  text-align: center;
  padding: 12px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s ease;
}
.role input:checked + span { background: var(--forest); color: var(--paper); border-color: var(--forest); }

@media (max-width: 760px) { .joinbox { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: rgba(255,250,240,0.78);
  padding: 80px 0 32px;
  margin-top: 40px;
}
.site-footer .wrap-row { gap: 32px; }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.site-footer .logo { color: var(--paper); }
.site-footer .logo span { color: var(--orange); }
.site-footer h5 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,250,240,0.5);
  margin: 0 0 16px;
  font-weight: 500;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { color: rgba(255,250,240,0.85); font-size: 15px; }
.site-footer ul a:hover { color: var(--orange); text-decoration: none; }
.site-footer__about { max-width: 38ch; font-size: 15px; line-height: 1.55; }
.site-footer__bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,250,240,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,250,240,0.5);
}

@media (max-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page header (sub-pages) ---------- */
.page-head {
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px);
}
.page-head .eyebrow { margin-bottom: 18px; }
.page-head h1 { font-size: clamp(44px, 6.5vw, 84px); }
.page-head p { margin-top: 22px; max-width: 56ch; }

/* ---------- Filters bar ---------- */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0 32px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s ease;
  font-family: var(--body);
}
.chip:hover { border-color: var(--ink-3); }
.chip.is-active { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.chip i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.chip.is-active i { color: rgba(255,255,255,0.6); }

/* ---------- Directory list ---------- */
.dir {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.dir-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s ease;
  cursor: pointer;
}
.dir-row:hover { background: var(--paper); }
.dir-row__rank { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.dir-row__name { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.dir-row__name small { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--ink-3); letter-spacing: 0; margin-top: 3px; }
.dir-row__loc { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.dir-row__data { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.dir-row__pill {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-full);
  background: var(--cream-2);
  color: var(--ink-2);
}
.dir-row__pill.live { background: rgba(204, 31, 58, 0.15); color: var(--orange-2); }
.dir-row__pill.open { background: rgba(31, 90, 64, 0.15); color: var(--forest-3); }
.dir-row__arr {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.dir-row:hover .dir-row__arr { background: var(--forest); color: var(--paper); }

@media (max-width: 880px) {
  .dir-row { grid-template-columns: 40px 1fr auto; row-gap: 6px; }
  .dir-row__loc, .dir-row__data { grid-column: 2; }
  .dir-row__pill { grid-row: 1; }
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.about-grid h2 { margin-bottom: 22px; }
.about-grid p + p { margin-top: 18px; }
.about-grid p { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

.value-list { display: flex; flex-direction: column; gap: 4px; }
.value {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.value:last-child { border-bottom: none; }
.value__n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; padding-top: 6px; }
.value h4 { font-size: 22px; }
.value p { margin-top: 8px; color: var(--ink-2); }

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--gutter);
  text-align: center;
}
.notfound__big {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(120px, 22vw, 280px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--forest);
  position: relative;
  display: inline-block;
}
.notfound__big .o {
  color: var(--orange);
}
.notfound p { max-width: 42ch; margin: 16px auto 28px; color: var(--ink-2); font-size: 18px; }

/* ---------- Utilities ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--cream-2);
  color: var(--ink-2);
}

.scrollable { overflow-x: auto; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
