:root {
  --navy: #07101e;
  --navy-2: #0d1b30;
  --ink: #101827;
  --paper: #f5f2eb;
  --white: #ffffff;
  --line: #ced4dc;
  --muted: #667084;
  --sky: #7bd7f5;
  --blue: #4859d7;
  --violet: #8568ea;
  --coral: #ef765f;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, system-ui, sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); padding: 9px 13px; background: var(--sky); color: var(--navy); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 10px max(20px, calc((100vw - var(--max)) / 2)); background: rgba(7, 16, 30, 0.96); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 15px; }
.brand small { color: #aeb8c8; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: #dbe3ef; font-size: 13px; font-weight: 750; text-decoration: none; }
.site-header nav a:hover { color: var(--white); }
.site-header .nav-cta { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid rgba(123, 215, 245, 0.45); border-radius: 6px; color: var(--navy); background: var(--sky); }
.menu-button { display: none; width: 44px; height: 42px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 6px; color: var(--white); background: transparent; }
.menu-button span, .menu-button span::before, .menu-button span::after { width: 20px; height: 2px; display: block; background: currentColor; content: ""; }
.menu-button span { position: relative; }
.menu-button span::before { position: absolute; top: -6px; }
.menu-button span::after { position: absolute; top: 6px; }

.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: calc(100svh - 116px); overflow: hidden; background: var(--navy); color: var(--white); }
.hero-image { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero-overlay { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(7, 16, 30, 0.96) 0%, rgba(7, 16, 30, 0.78) 45%, rgba(7, 16, 30, 0.14) 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; width: 52%; height: 6px; background: linear-gradient(90deg, var(--sky), var(--violet), var(--coral)); }
.hero-inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 92px 0 82px; }
.eyebrow { margin: 0 0 14px; color: var(--sky); font-size: 11px; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow.dark { color: #4050bd; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 { max-width: 760px; font-size: 76px; line-height: 1; }
.hero-copy { max-width: 700px; margin: 24px 0 0; color: #d8e0ec; font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 18px; border: 1px solid transparent; border-radius: 6px; font-weight: 800; text-align: center; text-decoration: none; transition: transform 150ms ease, background 150ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--sky); color: var(--navy); }
.button-primary:hover { background: #a3e5fa; }
.button-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); background: rgba(7, 16, 30, 0.32); }
.button-dark { background: var(--navy); color: var(--white); }
.photo-credit { position: absolute; right: 14px; bottom: 12px; margin: 0; color: rgba(255, 255, 255, 0.68); font-size: 10px; }

.quick-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(var(--max), calc(100% - 40px)); margin: 0 auto; border-bottom: 1px solid var(--line); }
.quick-strip a { display: grid; gap: 3px; padding: 22px; border-right: 1px solid var(--line); text-decoration: none; }
.quick-strip a:first-child { padding-left: 0; }
.quick-strip a:last-child { border-right: 0; }
.quick-strip strong { font-size: 14px; }
.quick-strip span { color: var(--muted); font-size: 12px; }
.quick-strip a:hover strong { color: var(--blue); }

.section { padding: 96px max(20px, calc((100vw - var(--max)) / 2)); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 68px; align-items: end; margin-bottom: 40px; }
.section-heading h2, .city-intro h2, .author-section h2, .coop-section h2 { font-size: 44px; line-height: 1.08; }
.section-heading > p, .city-intro > p:last-child { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.route-section { background: var(--white); }
.route-tool { border: 1px solid #aeb8c7; border-radius: 8px; box-shadow: 0 22px 58px rgba(19, 31, 52, 0.1); overflow: hidden; }
.route-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--navy); }
.route-tabs button { min-height: 64px; padding: 0 16px; border: 0; border-right: 1px solid rgba(255, 255, 255, 0.13); color: #cbd5e4; background: transparent; font-weight: 800; cursor: pointer; }
.route-tabs button:last-child { border-right: 0; }
.route-tabs button[aria-selected="true"] { color: var(--navy); background: var(--sky); }
.route-result { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 50px; min-height: 330px; padding: 42px; background: #f9fafc; }
.route-result-copy h3 { font-size: 34px; }
.route-result-copy p { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.route-links { display: grid; align-content: start; border-top: 1px solid var(--line); }
.route-links a { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; min-height: 76px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.route-links span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e7ebf2; color: var(--blue); font-size: 12px; font-weight: 850; }
.route-links strong { display: block; font-size: 14px; }
.route-links small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.route-links b { color: var(--blue); font-size: 18px; }

.city-band { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 82px; background: var(--navy-2); color: var(--white); }
.city-intro > p:last-child { margin-top: 18px; color: #b9c5d5; }
.city-facts { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.city-facts article { display: grid; grid-template-columns: 44px 180px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.city-facts span { color: var(--sky); font-size: 11px; font-weight: 850; }
.city-facts strong { font-size: 15px; }
.city-facts p { margin: 0; color: #b9c5d5; font-size: 14px; }

.work-section { background: var(--paper); }
.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.source-list a { display: grid; gap: 5px; min-height: 154px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.source-list a:nth-child(odd) { padding-right: 30px; }
.source-list a:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--line); }
.source-list span { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.source-list strong { font-size: 21px; }
.source-list small { color: var(--muted); font-size: 13px; }
.source-list a:hover strong { color: var(--blue); }

.operator-section { background: var(--navy); color: var(--white); }
.light-heading > p { color: #b9c5d5; }
.operator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.operator-card { border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; background: #0d1b30; overflow: hidden; }
.operator-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #fff; }
.operator-card:nth-child(2) > img { object-fit: contain; padding: 12px; }
.operator-card > div { padding: 22px; }
.operator-card span { color: var(--sky); font-size: 10px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.operator-card h3 { margin-top: 8px; font-size: 22px; }
.operator-card p { color: #b9c5d5; font-size: 14px; line-height: 1.6; }
.operator-card a { color: var(--sky); font-size: 14px; font-weight: 800; text-underline-offset: 4px; }

.author-section { display: grid; grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr); gap: 56px; align-items: center; background: #e9eaf1; }
.author-section > img { width: 100%; max-height: 410px; object-fit: cover; border-radius: 8px; }
.author-section p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.author-section .button { margin-top: 14px; }
.coop-section { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 50px; align-items: center; color: var(--white); background: linear-gradient(120deg, var(--blue), var(--violet)); }
.coop-section p:not(.eyebrow) { max-width: 740px; color: #e6e8fb; font-size: 16px; }
.coop-actions { display: grid; gap: 10px; min-width: 220px; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; min-height: 112px; padding: 24px max(20px, calc((100vw - var(--max)) / 2)); background: var(--navy); color: #b9c5d5; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--white); }
footer p { margin: 0; font-size: 11px; text-align: center; }
footer > div:last-child { display: flex; gap: 16px; justify-self: end; }
footer a { color: inherit; font-size: 12px; font-weight: 700; }

@media (max-width: 900px) {
  .section-heading, .city-band { grid-template-columns: 1fr; gap: 30px; }
  .route-result { grid-template-columns: 1fr; gap: 26px; }
  .operator-grid { grid-template-columns: 1fr 1fr; }
  .city-facts article { grid-template-columns: 44px 170px 1fr; }
}

@media (max-width: 700px) {
  .site-header { min-height: 68px; }
  .menu-button { display: grid; }
  .site-header nav { position: absolute; top: calc(100% + 6px); right: 16px; left: 16px; display: none; padding: 8px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 8px; background: var(--navy-2); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28); }
  .site-header nav.open { display: grid; }
  .site-header nav a { min-height: 46px; display: flex; align-items: center; padding: 0 12px; }
  .hero { min-height: calc(100svh - 106px); }
  .hero-overlay { background: linear-gradient(180deg, rgba(7, 16, 30, 0.58) 0%, rgba(7, 16, 30, 0.93) 62%, rgba(7, 16, 30, 0.98) 100%); }
  .hero-inner { width: calc(100% - 32px); padding: 70px 0 52px; }
  h1 { font-size: 50px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .quick-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 32px); }
  .quick-strip a { padding: 16px 12px; }
  .quick-strip a:nth-child(2) { border-right: 0; }
  .quick-strip a:nth-child(3) { padding-left: 0; }
  .section { padding: 68px 16px; }
  .section-heading h2, .city-intro h2, .author-section h2, .coop-section h2 { font-size: 34px; }
  .route-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-tabs button { min-height: 56px; border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
  .route-result { padding: 28px 18px; }
  .route-result-copy h3 { font-size: 28px; }
  .city-facts article { grid-template-columns: 40px 1fr; }
  .city-facts p { grid-column: 2; }
  .source-list, .operator-grid { grid-template-columns: 1fr; }
  .source-list a:nth-child(odd), .source-list a:nth-child(even) { padding: 20px 0; border-left: 0; }
  .author-section { grid-template-columns: 1fr; gap: 28px; }
  .author-section > img { max-height: 300px; }
  .coop-section { grid-template-columns: 1fr; gap: 28px; }
  .coop-actions { min-width: 0; }
  footer { grid-template-columns: 1fr; gap: 14px; padding-top: 30px; padding-bottom: 30px; }
  footer p { text-align: left; }
  footer > div:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
