/* =========================================================
   Mirvan — Refined editorial design system
   Black & white, light/dark, mobile-first
   ========================================================= */

:root {
  /* Light theme (default) */
  --bg: #fafaf7;
  --bg-elev: #ffffff;
  --bg-alt: #f1f0eb;
  --ink: #0a0a0a;
  --ink-muted: #4a4a48;
  --ink-faint: #8a8a86;
  --line: #d9d8d2;
  --line-strong: #b8b7b0;
  --accent: #0a0a0a;
  --accent-ink: #fafaf7;
  --shadow: 0 1px 0 rgba(10,10,10,0.04), 0 8px 24px -12px rgba(10,10,10,0.08);
  --grid: rgba(10,10,10,0.04);
  --noise: 0.03;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elev: #111110;
  --bg-alt: #161614;
  --ink: #fafaf7;
  --ink-muted: #b5b3ad;
  --ink-faint: #7a7873;
  --line: #2a2926;
  --line-strong: #3d3c38;
  --accent: #fafaf7;
  --accent-ink: #0a0a0a;
  --shadow: 0 1px 0 rgba(0,0,0,0.4), 0 12px 40px -16px rgba(0,0,0,0.6);
  --grid: rgba(250,250,247,0.04);
  --noise: 0.05;
}

/* Type */
:root {
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* Subtle film grain everywhere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: var(--noise);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

/* Skip link */
.skip {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  font-size: 14px;
  z-index: 200;
  border-radius: 2px;
}
.skip:focus { top: 8px; }

/* Layout helpers */
.section__inner,
.nav__inner,
.footer__inner,
.hero__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav__mark {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.nav__logo:hover .nav__mark { transform: rotate(-8deg); }
.nav__wordmark { font-style: italic; }

.nav__links {
  display: none;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transition: right 0.3s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__cta { display: none; }

@media (min-width: 820px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
}

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.3s ease, background-color 0.2s ease;
  position: relative;
}
.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--bg-alt);
}
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(.2,.7,.2,1);
}
[data-theme="light"] .icon-sun { opacity: 1; transform: rotate(0); }
[data-theme="light"] .icon-moon { opacity: 0; transform: rotate(-40deg) scale(0.6); }
[data-theme="dark"] .icon-sun { opacity: 0; transform: rotate(40deg) scale(0.6); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: rotate(0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink-muted)); }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--bg-alt); }
.btn--lg {
  padding: 16px 28px;
  font-size: 15px;
  font-family: var(--font-mono);
  letter-spacing: 0;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 24px;
}
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  pointer-events: none;
  opacity: 0.5;
}
.hero__grid span {
  border-left: 1px solid var(--grid);
}
.hero__grid span:last-child { border-right: 1px solid var(--grid); }

.hero__inner { position: relative; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

.hero__lede {
  max-width: 56ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 40px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin: 0;
}
.hero__stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
}

@media (min-width: 720px) {
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ============== MARQUEE ============== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-alt);
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--ink-muted);
  width: max-content;
}
.marquee__track span:nth-child(even) {
  color: var(--ink-faint);
  font-style: normal;
  font-family: var(--font-sans);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============== SECTIONS ============== */
.section {
  padding: clamp(72px, 10vw, 140px) 0;
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}
.section__lede {
  margin: 24px 0 0;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ============== CARDS ============== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  background: var(--bg);
  transition: background-color 0.3s ease;
}
.card:hover { background: var(--bg-alt); }
.card__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.card__body {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed var(--line-strong);
  padding-top: 16px;
}
.card__list li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

/* ============== STEPS ============== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  padding-top: 6px;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.step__body {
  margin: 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ============== WORK ============== */
.work {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .work { grid-template-columns: repeat(3, 1fr); }
}
.work__item {
  background: var(--bg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: background-color 0.3s ease;
}
.work__item:hover { background: var(--bg-alt); }
.work__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.work__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  margin: 0;
}
.work__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  padding-top: 8px;
}
.work__body {
  flex: 1;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.work__link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.work__link:hover { border-color: var(--ink); }
.work__link--muted {
  color: var(--ink-faint);
  border-color: transparent;
  border-bottom-style: dashed;
  cursor: default;
}

/* ============== CONTACT ============== */
.section--contact {
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.section--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--bg) 8%, transparent), transparent 60%);
  pointer-events: none;
}
.contact { position: relative; max-width: 880px; }
.section--contact .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.section--contact .dot { background: var(--bg); }
.contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  color: var(--bg);
}
.contact__lede {
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--bg) 75%, transparent);
  margin: 0 0 40px;
}
.section--contact .btn--primary {
  background: var(--bg);
  color: var(--ink);
}
.section--contact .btn--primary:hover { background: color-mix(in srgb, var(--bg) 88%, var(--ink-muted)); }
.contact__cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contact__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
}

/* ============== FOOTER (full redesign) ============== */
.footer {
  border-top: 1px solid var(--line);
  padding: 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.footer__inner {
  display: block;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* Top: oversized wordmark + tagline */
.footer__top {
  padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  align-items: end;
}
@media (min-width: 820px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
  }
}
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 14vw, 184px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 0;
  color: var(--ink);
}
.footer__wordmark em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-faint);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.4;
  color: var(--ink-muted);
  margin: 0;
  max-width: 36ch;
}

/* Middle: columns */
.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
}
@media (min-width: 1000px) {
  .footer__cols { grid-template-columns: 2.4fr 1fr 1.2fr; gap: 64px; }
}

.footer__col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

/* Force-clean any list defaults */
.footer__cities,
.footer__nav { margin: 0; }
.footer__cities ul,
.footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__cities li,
.footer__nav li { list-style: none; padding: 0; }
.footer__cities li::before,
.footer__nav li::before,
.footer__cities li::marker,
.footer__nav li::marker { content: none; display: none; }

/* Cities — display-styled, two columns */
.footer__cities ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
@media (min-width: 1000px) {
  .footer__cities ul { grid-template-columns: 1fr 1fr; }
}
.footer__cities a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}
.footer__cities a::after {
  content: "→";
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-faint);
  margin-left: 4px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.footer__cities a:hover::after { opacity: 1; transform: translateX(0); }
.footer__state {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-faint);
  font-size: 14px;
  letter-spacing: 0;
}

/* Nav column */
.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__nav a {
  font-size: 15px;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--ink); }

/* Contact column */
.footer__contact a {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
  word-break: break-word;
  transition: color 0.2s ease;
}
.footer__contact a:hover { color: var(--ink-muted); }
.footer__contact-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* Bottom strip */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0 32px;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 720px) {
  .footer__bottom {
    flex-direction: row;
    align-items: center;
  }
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
}
.footer__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============== REVEAL (intersection observer) ============== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Selection */
::selection {
  background: var(--ink);
  color: var(--bg);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============== CITY PAGE ADDITIONS ============== */

/* Full-bleed hero image (city pages) */
.hero-image {
  width: 100%;
  padding: 0;
  background: var(--bg);
}
.hero-image__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 70vh;
  overflow: hidden;
  background: var(--bg-alt);
}
@media (max-width: 720px) {
  .hero-image__frame { aspect-ratio: 4 / 3; max-height: 60vh; }
}
.hero-image__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* subtle filter to keep things editorial regardless of source photo */
  filter: saturate(0.92) contrast(1.02);
  animation: hero-image-in 1.4s cubic-bezier(.2,.7,.2,1);
}
[data-theme="dark"] .hero-image__frame img {
  filter: saturate(0.85) contrast(1.05) brightness(0.85);
}
@keyframes hero-image-in {
  from { transform: scale(1.06); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.hero-image__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 60%,
    color-mix(in srgb, var(--bg) 0%, transparent) 80%,
    var(--bg) 100%
  );
}
.hero-image__caption {
  position: absolute;
  bottom: clamp(20px, 3vw, 36px);
  left: clamp(20px, 4vw, 56px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-image__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 2.4s ease-in-out infinite;
}

/* Tighten hero spacing on city pages since image takes the visual lead */
.hero--city {
  padding-top: clamp(32px, 5vw, 56px);
}

/* Breadcrumb */
.breadcrumb {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.breadcrumb__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.breadcrumb a {
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__current { color: var(--ink); }

/* City hero variant */
.hero--city {
  padding-top: clamp(48px, 8vw, 96px);
}

/* Regulations list */
.regs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 760px) {
  .regs { grid-template-columns: repeat(3, 1fr); }
}
.reg {
  background: var(--bg);
  padding: clamp(24px, 3vw, 36px);
  transition: background-color 0.3s ease;
}
.reg:hover { background: var(--bg-alt); }
.reg__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.reg__detail {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Coverage / neighborhoods */
.coverage {
  max-width: 880px;
}
.coverage__list {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.coverage__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* Hub page grid — bigger, more cinematic cards */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
@media (min-width: 720px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
}

.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(.2,.7,.2,1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
  position: relative;
  isolation: isolate;
}
.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.hub-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.hub-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,0.45) 100%
  );
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}
.hub-card:hover .hub-card__media::after { opacity: 1; }

.hub-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.4s ease;
}
[data-theme="dark"] .hub-card__media img {
  filter: saturate(0.85) contrast(1.05) brightness(0.82);
}
.hub-card:hover .hub-card__media img {
  transform: scale(1.06);
}

/* Floating city label on the image */
.hub-card__media-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}
.hub-card__media-city {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hub-card__media-state {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hub-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.5vw, 28px);
  flex: 1;
}
.hub-card__city {
  display: none; /* now shown on the image */
}
.hub-card__metro {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
  flex: 1;
  line-height: 1.5;
}
.hub-card__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 12px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hub-card__cta::after {
  content: "→";
  font-family: var(--font-sans);
  letter-spacing: 0;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.hub-card:hover .hub-card__cta::after {
  transform: translateX(4px);
}
