.site-header {
  overscroll-behavior-x: contain;
}

.home-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: 100%;
  margin: 0;
  padding: clamp(36px, 5vw, 64px) max(var(--gutter), calc((100% - var(--container)) / 2)) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(15, 71, 175, 0.07), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(252, 221, 9, 0.08), transparent 45%),
    #fff;
}

.home-hero .hero-copy {
  min-height: 0;
  gap: 20px;
}

.home-hero .hero-copy .home-proof {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 6px 13px 6px 11px;
  border: 1px solid rgba(15, 71, 175, 0.14);
  border-radius: 999px;
  background: var(--city-blue-soft);
  color: var(--city-blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.home-hero .hero-copy .home-proof::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--city-yellow-deep);
  box-shadow: 0 0 0 3px rgba(252, 221, 9, 0.35);
}

.home-hero h1 {
  color: var(--city-blue-ink);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.home-hero .hero-copy > p:not(.home-proof) {
  color: var(--muted);
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.6;
}

.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(4, 31, 82, 0.05), 0 14px 34px rgba(4, 31, 82, 0.09);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.home-search:focus-within {
  border-color: var(--city-blue);
  box-shadow: 0 0 0 4px rgba(15, 71, 175, 0.14), 0 14px 34px rgba(4, 31, 82, 0.09);
}

.home-search label {
  grid-column: 1 / -1;
  padding: 2px 8px 0;
  color: var(--city-blue-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.home-search input {
  min-width: 0;
  min-height: 50px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}

.home-search input:focus-visible {
  outline: none;
  box-shadow: none;
}

.home-search input::placeholder {
  color: #6b7891;
}

.home-search button {
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  background: var(--city-yellow);
  color: var(--city-blue-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms var(--ease);
}

.home-search button:hover {
  background: #ffe52e;
}

.home-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
}

.home-quick-links span {
  margin-right: 2px;
  font-size: 0.88rem;
  font-weight: 600;
}

.home-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--city-blue-ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}

.home-quick-links a:hover {
  border-color: var(--city-blue);
  background: var(--city-blue-soft);
  color: var(--city-blue);
}

.home-hero .hero-actions {
  gap: 4px 24px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--city-blue);
  font-weight: 700;
  text-decoration: none;
}

.hero-link span {
  transition: transform 160ms var(--ease);
}

.hero-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-link:hover span {
  transform: translateX(3px);
}

.home-hero .hero-media {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-hero .hero-media::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 0;
  width: 42%;
  height: 46%;
  border-radius: 18px;
  background: var(--city-yellow);
}

.home-hero .hero-media img {
  position: relative;
  z-index: 1;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: var(--panel-soft);
  box-shadow: 0 2px 6px rgba(4, 31, 82, 0.08), 0 24px 48px rgba(4, 31, 82, 0.16);
}

.home-hero .hero-media figcaption {
  position: relative;
  z-index: 1;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.home-hero .hero-media figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-spotlights .spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.spotlight-card {
  min-width: 0;
}

.spotlight-card a {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.spotlight-card a:hover {
  transform: translateY(-3px);
  border-color: #bccde9;
  box-shadow: var(--shadow-lift);
}

.spotlight-card a:active,
.home-club-actions a:active {
  transform: translateY(0);
}

.spotlight-card img {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: var(--panel-soft);
  object-fit: cover;
}

.spotlight-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px 18px 20px;
}

.spotlight-copy span {
  display: block;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--city-blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.spotlight-copy h3 {
  color: var(--city-blue-ink);
  font-size: 1.12rem;
}

.spotlight-copy p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-directory .category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}

.home-directory .category-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: none;
  color: var(--city-blue-ink);
  text-decoration: none;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}

.home-directory .category-link strong {
  min-width: 0;
  color: inherit;
  font-weight: 600;
}

.home-directory .category-link span {
  color: var(--city-blue);
  font-size: 1rem;
  transition: transform 160ms var(--ease);
}

.home-directory .category-link:hover {
  border-color: var(--city-blue);
  background: var(--city-blue-soft);
  color: var(--city-blue);
}

.home-directory .category-link:hover span {
  transform: translateX(3px);
}

.home-directory .category-link.is-all {
  border-color: var(--city-blue-ink);
  background: var(--city-blue-ink);
  color: #fff;
}

.home-directory .category-link.is-all span {
  color: var(--city-yellow);
}

.home-directory .category-link.is-all:hover {
  border-color: var(--city-blue);
  background: var(--city-blue);
  color: #fff;
}

.neighborhood-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 36px;
}

.neighborhood-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--city-blue-ink);
  text-decoration: none;
}

.neighborhood-link:nth-child(-n + 3) {
  border-top: 1px solid var(--line);
}

.neighborhood-link strong {
  font-size: 1.04rem;
  font-weight: 700;
}

.neighborhood-link span {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.neighborhood-link:hover strong {
  color: var(--city-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-club {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  width: min(100% - 2 * var(--gutter), var(--container));
  margin: var(--section-space) auto 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 30%, #f2f6ff 100%);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.home-club-intro {
  display: grid;
  align-content: start;
  gap: 10px;
}

.home-club h2 {
  color: var(--city-blue-ink);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.12;
}

.home-club-intro > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.02rem;
}

.home-club-actions {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line);
}

.home-club-actions a {
  display: grid;
  grid-template-columns: minmax(110px, 0.36fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--city-blue-ink);
  text-decoration: none;
  touch-action: manipulation;
  transition: color 180ms var(--ease);
}

.home-club-actions a::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0.5;
  transform: rotate(45deg);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.home-club-actions a:hover {
  color: var(--city-blue);
}

.home-club-actions a:hover::after {
  opacity: 1;
  transform: translateX(3px) rotate(45deg);
}

.home-club-actions strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.home-club-actions span {
  color: var(--muted);
  font-size: 0.95rem;
}

.home-band {
  margin-top: 24px;
}

.category-link:focus-visible,
.spotlight-card a:focus-visible,
.neighborhood-link:focus-visible {
  outline: 3px solid var(--city-blue-ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--city-yellow);
}

@media (max-width: 960px) {
  .home-spotlights .spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spotlight-card img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 920px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero .hero-media {
    max-width: 640px;
  }

  .home-hero .hero-media img {
    aspect-ratio: 16 / 9;
  }

  .neighborhood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .neighborhood-link:nth-child(3) {
    border-top: 0;
  }

  .home-club {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-hero {
    gap: 32px;
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .home-hero .hero-copy {
    gap: 18px;
  }

  .home-hero .hero-media::before {
    top: -8px;
    right: -8px;
  }

  .home-hero .hero-media img {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }

  .home-quick-links a {
    min-height: 44px;
  }

  .home-search {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .home-search button {
    width: 100%;
  }

  .home-spotlights .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .spotlight-card a {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .spotlight-card img {
    width: 100%;
    height: 100%;
    min-height: 104px;
    aspect-ratio: auto;
  }

  .spotlight-copy {
    align-content: center;
    gap: 3px;
    padding: 12px 14px;
  }

  .spotlight-copy h3 {
    font-size: 1.02rem;
  }

  .spotlight-copy p {
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
  }

  .spotlight-card a:hover {
    transform: none;
  }

  .home-directory .category-list {
    gap: 8px;
  }

  .home-directory .category-link {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.95rem;
  }

  .neighborhood-grid {
    grid-template-columns: 1fr;
  }

  .neighborhood-link:nth-child(2) {
    border-top: 0;
  }

  .neighborhood-link {
    padding: 14px 2px;
  }

  .home-club {
    padding: 24px 20px;
  }

  .home-club-actions a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
  }

  .home-club-actions a::after {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .home-club-actions span {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-card a,
  .home-club-actions a {
    transition: none;
  }
}
