/* =========================================================================
   The Finance Student: layout prototype
   Light theme. Brand primary #2c2e31 (graphite, from thefinancestudent.com).
   ========================================================================= */

:root {
  /* Brand (from thefinancestudent.com theme.json / custom CSS) */
  --brand: #2c2e31;          /* --wp--preset--color--primary */
  --brand-hover: #111214;    /* --wp--preset--color--primary-hover */

  /* Light surfaces */
  --paper: #f7f7f8;
  --surface: #ffffff;
  --band: #eeeef0;
  --chip: #efeff1;
  --chip-hover: #e5e5e8;
  --ink: #14161a;
  --text: #2c2e31;
  --muted: #55585e;          /* 6.7:1 on paper */
  --subtle: #74777d;         /* 4.2:1 on paper: large type only (AA large) */
  --line: rgba(20, 22, 26, 0.09);
  --line-strong: rgba(20, 22, 26, 0.16);

  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.05);
  --shadow-md: 0 1px 2px rgba(20, 22, 26, 0.04), 0 14px 32px -14px rgba(20, 22, 26, 0.22);
  --shadow-lg: 0 2px 4px rgba(20, 22, 26, 0.04), 0 24px 48px -18px rgba(20, 22, 26, 0.24);

  --sans: "Google Sans", "Product Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 3.4vw, 56px);
  --maxw: 1320px;
  --header-h: 88px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* No visible scrollbar (scrolling still works); keeps layout perfectly centred */
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 1000;
  background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  font-weight: 500;
}
.skip-link:not(:focus) {
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -8px rgba(20, 22, 26, 0.5);
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 24px -10px rgba(20, 22, 26, 0.55); }
.btn-primary:active { transform: scale(0.98); }
.btn:focus-visible { border-radius: 999px; }
.btn-chip {
  display: grid; place-items: center;
  width: 32px; height: 32px; margin-right: -12px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn-chip { transform: translateX(3px); }

/* =========================================================================
   HEADER: floating frosted pill
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  padding: 12px var(--gutter);
  display: flex; justify-content: center;
  pointer-events: none;
  transition: transform 0.55s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-110%); }

.header-surface {
  pointer-events: auto;
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  height: 64px;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 10px 8px 20px;
  border-radius: 32px;
  /* At the top of the page the pill sits over the moving orbit, so it is near-opaque
     (no per-frame backdrop blur); once scrolled it becomes frosted glass */
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 2px 4px rgba(20, 22, 26, 0.03),
    0 8px 28px -8px rgba(20, 22, 26, 0.14),
    inset 0 0 0 1px rgba(20, 22, 26, 0.05);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled .header-surface {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow:
    0 2px 4px rgba(20, 22, 26, 0.04),
    0 12px 32px -10px rgba(20, 22, 26, 0.2),
    inset 0 0 0 1px rgba(20, 22, 26, 0.06);
}

/* Brand: FS mark -> full name on hover / focus */
.brand {
  position: relative;
  display: flex; align-items: center;
  height: 44px;
  min-width: 44px;
  padding-right: 6px;
  flex-shrink: 0;
  color: var(--ink);
  border-radius: 12px;
}
.brand-mark {
  width: 40px; height: auto;
  transition: transform 0.55s var(--ease-out), opacity 0.3s var(--ease-out);
  transform-origin: left center;
}
.brand-name {
  position: absolute; left: 0; top: 50%;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-6px, -50%);
  clip-path: inset(-10% 100% -10% 0);
  transition: clip-path 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark { transform: translateX(-12px) scale(0.6); opacity: 0; }
.brand:hover .brand-name,
.brand:focus-visible .brand-name { clip-path: inset(-10% 0 -10% 0); transform: translate(0, -50%); transition-delay: 0.05s; }
.brand:focus-visible { outline-offset: 6px; }

.primary-nav {
  margin-left: auto;
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out), filter 0.35s;
}
.site-header.cities-open .primary-nav {
  opacity: 0; transform: translateX(-16px); filter: blur(3px);
  pointer-events: none;
}
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  white-space: nowrap;
  transition: background-color 0.18s, color 0.18s, transform 0.28s var(--ease-out);
}
.nav-link:hover { background: var(--chip); color: var(--ink); }
.nav-link:active { transform: scale(0.97); }
.nav-link:focus-visible { border-radius: 24px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: 4px; }

/* Cities: button + chips that slide out to the left */
.cities { position: relative; display: flex; align-items: center; }
.cities-list {
  position: absolute; right: 100%; top: 50%;
  display: flex; gap: 6px;
  padding-right: 8px;
  transform: translateY(-50%);
  pointer-events: none;
}
.cities.is-open .cities-list { pointer-events: auto; }
.city-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 15px; font-weight: 500; letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(28px) scale(0.96);
  transition:
    opacity 0.28s var(--ease-out),
    transform 0.5s var(--ease-out),
    background-color 0.18s, color 0.18s;
}
.city-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.35;
  transition: opacity 0.2s;
}
/* Closest to the button moves first, so the row unfurls leftwards */
.cities-list li:nth-child(3) .city-chip { transition-delay: 0s; }
.cities-list li:nth-child(2) .city-chip { transition-delay: 0.04s; }
.cities-list li:nth-child(1) .city-chip { transition-delay: 0.08s; }
.cities.is-open .city-chip { opacity: 1; transform: none; }
.cities.is-open .cities-list li:nth-child(3) .city-chip { transition-delay: 0.04s; }
.cities.is-open .cities-list li:nth-child(2) .city-chip { transition-delay: 0.09s; }
.cities.is-open .cities-list li:nth-child(1) .city-chip { transition-delay: 0.14s; }
.city-chip:hover { background: var(--brand); color: #fff; }
.city-chip:hover::before { opacity: 1; }
.city-chip:focus-visible { border-radius: 999px; }

.cities-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px;
  padding: 5px 6px 5px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.3s var(--ease-out);
}
.cities-btn-chip {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.5s var(--ease-out);
}
.cities-btn-chip svg { width: 12px; height: 12px; }
.cities-btn:hover, .cities.is-open .cities-btn { background: var(--brand-hover); }
.cities.is-open .cities-btn-chip { transform: rotate(180deg); }
.cities-btn:active { transform: scale(0.97); }
.cities-btn:focus-visible { border-radius: 999px; }

.menu-btn {
  display: none;
  align-items: center; gap: 10px;
  min-height: 44px;
  padding: 0 6px 0 18px;
  border-radius: 999px;
  background: var(--chip);
  font-size: 15px; font-weight: 500;
  transition: background-color 0.18s;
}
.menu-btn:hover { background: var(--chip-hover); }
.menu-btn:focus-visible { border-radius: 999px; }
.menu-btn-icon {
  display: grid; place-content: center; gap: 4px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface);
}
.menu-btn-icon i { display: block; width: 12px; height: 1.6px; border-radius: 2px; background: currentColor; }

/* Mobile menu panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(247, 247, 248, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 12px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner {
  max-width: 560px; margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 16px 20px 24px;
  display: flex; flex-direction: column; gap: 28px;
  animation: drop-in 0.35s var(--ease-out);
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; padding-left: 8px; }
.mobile-menu-mark { width: 38px; color: var(--ink); }
.close-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--chip); font-weight: 500;
}
.close-btn svg { width: 12px; height: 12px; }
.close-btn:focus-visible { border-radius: 999px; }
.mobile-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
}
.mobile-links a::after { content: "→"; font-size: 0.6em; color: var(--subtle); }
.mobile-menu-cities { display: flex; flex-direction: column; gap: 12px; padding-left: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 500;
  transition: background-color 0.18s;
}
.chip:hover { background: var(--brand-hover); }
.chip:focus-visible { border-radius: 999px; }

@media (max-width: 1080px) {
  .primary-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --header-h: 76px; }
  .site-header { padding: 10px 12px; }
  .header-surface { height: 56px; border-radius: 28px; padding: 6px 6px 6px 16px; }
  .brand-mark { width: 36px; }
  .brand-name { font-size: 17px; }
  .cities { display: none; }
}

/* =========================================================================
   HERO: orbit
   ========================================================================= */
.hero {
  position: relative;
  min-height: max(720px, 100svh);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(56% 46% at 50% 47%, #ffffff 0%, rgba(255, 255, 255, 0) 72%),
    var(--paper);
}
/* Faint dot grid that fades out toward the edges: adds depth without noise */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(20, 22, 26, 0.09) 1px, transparent 1.2px);
  background-size: 28px 28px;
  background-position: center;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 48%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 85%);
  mask-image: radial-gradient(60% 55% at 50% 48%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 85%);
}

.orbit-stage {
  position: absolute;
  inset: 88px 0 120px;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform, opacity;
}

.orbit-card {
  position: absolute; left: 0; top: 0;
  width: var(--card-w, 200px);
  aspect-ratio: 1.6 / 1;
  will-change: transform, opacity;
  backface-visibility: hidden;
  opacity: 0;
}
.orbit-card-face {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid rgba(20, 22, 26, 0.07);
  border-radius: 16px;
  /* tight shadow only; the soft drop is a gradient below (no blur cost per frame) */
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.06), 0 6px 12px -8px rgba(20, 22, 26, 0.18);
}
.orbit-card::before {
  content: ""; position: absolute; z-index: -1;
  left: 8%; right: 8%; top: 55%; bottom: -22%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(20, 22, 26, 0.2), rgba(20, 22, 26, 0) 100%);
  pointer-events: none;
}
.orbit-card-face::after {
  /* faint top sheen so cards read as physical objects on a light page */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 42%);
}
.orbit-card img {
  width: var(--logo-w, 62%);
  height: auto;
  max-height: 52%;
  object-fit: contain;
}

.hero-identity {
  position: absolute; inset: 88px 0 120px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px;
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-title {
  position: relative; z-index: 17;
  display: flex; flex-direction: column; align-items: center;
  font-size: clamp(54px, min(7.8vw, 11.8vh), 136px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; padding: 0.02em 0.04em 0.04em; margin: -0.02em 0; }
.hero-title .line > span { display: block; }

.hero-footer {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  z-index: 50;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.hero-statement {
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero-statement span { color: var(--subtle); }

.discover-link {
  display: inline-flex; align-items: center; gap: 22px;
  min-height: 44px;
  padding: 0 2px 2px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.discover-link svg { width: 12px; height: 16px; }
.discover-link:hover { background-size: 30% 1px; }
@media (prefers-reduced-motion: no-preference) {
  .discover-link svg { animation: nudge 2.4s var(--ease-in-out) 1.8s infinite; }
}
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }

/* Hero entrance: headline lines rise out of a mask */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: line-up 1.1s var(--ease-out) both; }
  .hero-title .line:nth-child(1) > span { animation-delay: 0.15s; }
  .hero-title .line:nth-child(2) > span { animation-delay: 0.25s; }
  .hero-title .line:nth-child(3) > span { animation-delay: 0.35s; }
  .hero-footer { animation: fade-up 1s var(--ease-out) 0.7s both; }
  .site-header { animation: header-in 0.9s var(--ease-out) 0.1s both; }
}
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes header-in { from { opacity: 0; transform: translateY(-16px); } }

@media (max-width: 780px) {
  .hero { min-height: max(680px, 100svh); }
  .orbit-stage, .hero-identity { inset: 76px 0 150px; }
  .hero-title { font-size: clamp(46px, 13.5vw, 84px); }
  .hero-footer { flex-direction: column; align-items: flex-start; gap: 18px; bottom: 24px; }
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section { padding: clamp(72px, 9vw, 128px) 0; }

.section-label { margin-bottom: clamp(24px, 3vw, 40px); }
.section-label h2 {
  position: relative;
  padding-bottom: 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-label h2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--ink);
  transform-origin: left center;
  transition: transform 1.2s var(--ease-out) 0.1s;
}
.section-label p {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Career ---------- */
.career-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}
.career-grid > li { display: flex; }
.career-card {
  flex: 1;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.career-media {
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--band);
}
.career-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.career-media::after {
  /* soft inner edge so photos sit into the card */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 -1px 0 var(--line);
}
.career-body {
  flex: 1;
  display: flex; flex-direction: column; gap: 18px;
  padding: 18px 18px 18px;
}
.career-title {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}
.career-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.career-logo { height: var(--h, 24px); width: auto; max-width: 130px; object-fit: contain; }
.career-arrow {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--text);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.45s var(--ease-out);
}
.career-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.career-card:hover .career-media img { transform: scale(1.06); }
.career-card:hover .career-arrow { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(45deg); }
.career-card:focus-visible { border-radius: 18px; outline-offset: 4px; }

.section-cta {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-cta .note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 1080px) { .career-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .career-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Cities ---------- */
.city-section {
  background: var(--band);
  border-block: 1px solid var(--line);
}
.city-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.city-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: #1b1c1f;
  color: #fff;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.city-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out), filter 0.6s;
}
.city-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 13, 15, 0.88) 0%, rgba(12, 13, 15, 0.5) 38%, rgba(12, 13, 15, 0.08) 70%, rgba(12, 13, 15, 0.18) 100%);
  transition: opacity 0.5s;
}
.city-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: clamp(20px, 2vw, 28px);
}
.city-index {
  position: absolute; top: 18px; left: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
}
.city-name {
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.city-content p {
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}
.city-enter {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.city-enter span { transition: transform 0.4s var(--ease-out); }
.city-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.city-card:hover img { transform: scale(1.08); filter: grayscale(1) contrast(1.08) brightness(1); }
.city-card:hover .city-enter span { transform: translateX(6px); }
.city-card:focus-visible { border-radius: 20px; outline-offset: 4px; }

@media (max-width: 900px) {
  .city-grid { grid-template-columns: 1fr; }
  .city-card { aspect-ratio: 16 / 10; }
}

/* ---------- Scroll reveal (only when JS + motion are available) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: var(--d, 0s);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .section-label h2::after { transform: scaleX(0); }
  .js .section-label.is-in h2::after { transform: scaleX(1); }
}

/* =========================================================================
   FOOTER: big wordmark
   ========================================================================= */
.site-footer {
  padding-top: clamp(48px, 6vw, 80px);
  background: var(--paper);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: clamp(28px, 4vw, 64px);
}
.footer-col .eyebrow { color: var(--muted); font-weight: 400; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 15px; color: var(--text); transition: color 0.18s; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-signup-copy { margin-bottom: 14px; color: var(--muted); }
.signup { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input, .signup select {
  min-height: 44px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.signup input { flex: 1 1 200px; min-width: 0; }
.signup select { flex: 0 0 auto; padding-right: 36px; appearance: none; -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232c2e31' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center / 10px 6px; }
.signup input::placeholder { color: var(--muted); }
.signup input:hover, .signup select:hover { border-color: rgba(20, 22, 26, 0.32); }
.signup input:focus-visible, .signup select:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(44, 46, 49, 0.14); }

.footer-meta {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 72px);
  font-size: 14px;
  color: var(--muted);
}
.footer-meta a { color: var(--text); }
.footer-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-disclaimer { max-width: 52ch; font-size: 13px; text-align: right; }

.footer-wordmark {
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding-inline: var(--gutter);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: var(--ink);
  text-align: center;
  font-size: 12vw; /* JS refines this so the line fills the width exactly */
}
.footer-wordmark span { display: inline-block; padding-bottom: 0.06em; white-space: nowrap; }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 28px;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-signup { grid-column: 1 / -1; }
  .footer-disclaimer { text-align: left; }
}
@media (max-width: 640px) {
  .footer-wordmark { white-space: normal; line-height: 0.86; }
  .footer-wordmark span { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
