:root {
  --navy: #0e1b2a;
  --navy-2: #172a40;
  --lime: #c8f04a;
  --sky: #75c7e8;
  --terra: #e36f4d;
  --violet: #8f6eeb;
  --paper: #fffbf1;
  --parchment: #f3e9d2;
  --ink: #17202a;
  --muted: #5d6874;
  --line: rgba(14, 27, 42, .16);
  --max: 1180px;
  --shadow: 0 18px 55px rgba(14, 27, 42, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed; z-index: 1000; top: 10px; left: 10px;
  padding: 10px 16px; background: var(--lime); color: var(--navy);
  transform: translateY(-160%); transition: transform .18s ease;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 27, 42, .97); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.nav-shell {
  width: min(calc(100% - 40px), var(--max)); min-height: 78px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 12px; }
.brand strong { display: block; color: var(--lime); font-size: 16px; line-height: 1.05; letter-spacing: .08em; }
.brand span { display: block; color: #fff; font-size: 12px; letter-spacing: .2em; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 10px 12px; text-decoration: none; color: rgba(255,255,255,.74); font-size: 14px; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--lime); }
.site-nav .nav-cta { margin-left: 8px; color: var(--navy); background: var(--lime); border-radius: 3px 20px 3px 20px; }
.site-nav .nav-cta:hover { color: var(--navy); background: #d8ff61; }
.menu-button {
  display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2);
  color: var(--lime); background: transparent; cursor: pointer;
}
.menu-button span, .menu-button::before, .menu-button::after {
  content: ""; display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor;
}

.route-hero { position: relative; min-height: 680px; overflow: hidden; background: var(--navy); color: #fff; }
.route-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.route-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,27,42,.97) 0%, rgba(14,27,42,.82) 38%, rgba(14,27,42,.16) 78%);
}
.hero-inner { position: relative; z-index: 2; width: min(calc(100% - 40px), var(--max)); min-height: 680px; margin: auto; display: flex; align-items: center; }
.hero-copy { max-width: 650px; padding: 100px 0 150px; }
.eyebrow { margin: 0 0 16px; color: var(--lime); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--navy); line-height: 1.08; letter-spacing: -.035em; }
.route-hero h1 { margin-bottom: 20px; color: #fff; font-size: clamp(48px, 7vw, 86px); font-weight: 900; }
.route-hero h1 em { display: block; color: var(--lime); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 580px; margin: 0; color: rgba(255,255,255,.78); font-size: 19px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 12px 20px; border: 1px solid transparent; text-decoration: none; font-weight: 850;
  border-radius: 3px 23px 3px 23px;
}
.button.primary { color: var(--navy); background: var(--lime); }
.button.secondary { color: #fff; border-color: rgba(255,255,255,.34); background: rgba(14,27,42,.18); }
.button.dark { color: #fff; background: var(--navy); }
.button.outline { color: var(--navy); border-color: var(--navy); }
.button:hover { transform: translateY(-1px); }

.route-dock {
  position: absolute; z-index: 3; right: 0; bottom: 0; left: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: min(calc(100% - 40px), var(--max)); margin: auto;
  background: var(--paper); color: var(--navy); box-shadow: var(--shadow);
}
.route-dock a { position: relative; min-height: 120px; padding: 22px 25px 20px 54px; text-decoration: none; border-right: 1px solid var(--line); }
.route-dock a:last-child { border: 0; }
.route-dock a::before { content: ""; position: absolute; top: 0; bottom: 0; left: 24px; width: 5px; background: var(--route); }
.route-dock a::after { content: ""; position: absolute; left: 17px; top: 27px; width: 19px; height: 19px; border: 4px solid var(--navy); border-radius: 50%; background: var(--route); }
.route-dock small { display: block; color: var(--route); font-weight: 900; letter-spacing: .1em; }
.route-dock strong { display: block; margin: 3px 0 2px; font-size: 19px; }
.route-dock span { color: var(--muted); font-size: 13px; }

.section { padding: 96px 0; }
.section.alt { background: var(--parchment); }
.section.dark { color: #fff; background: var(--navy); }
.section-inner { width: min(calc(100% - 40px), var(--max)); margin: auto; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; margin-bottom: 50px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 5vw, 62px); font-weight: 900; }
.section-heading p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.dark .section-heading h2 { color: #fff; }
.dark .section-heading p:last-child { color: rgba(255,255,255,.7); }

.pathway { position: relative; display: grid; grid-template-columns: 46% 54%; min-height: 520px; margin-bottom: 34px; background: #fff; box-shadow: var(--shadow); }
.pathway:nth-child(even) { grid-template-columns: 54% 46%; }
.pathway:nth-child(even) .pathway-media { order: 2; }
.pathway-media { position: relative; min-height: 420px; overflow: hidden; }
.pathway-media img { width: 100%; height: 100%; object-fit: cover; }
.pathway-code { position: absolute; top: 0; left: 0; padding: 13px 18px; color: var(--navy); background: var(--route); font-weight: 900; letter-spacing: .1em; }
.pathway-copy { position: relative; padding: 56px; overflow: hidden; }
.pathway-copy::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 7px; background: var(--route); }
.pathway-copy h3 { font-size: 36px; font-weight: 900; }
.pathway-copy p { color: var(--muted); }
.stop-list { margin: 26px 0 30px; padding: 0; list-style: none; }
.stop-list li { position: relative; padding: 9px 0 9px 30px; font-weight: 700; }
.stop-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 13px; height: 13px; border: 3px solid var(--navy); border-radius: 50%; background: var(--route); }
.stop-list li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 28px; width: 2px; height: 19px; background: var(--route); }

.wayfinding-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.way-card { min-height: 310px; padding: 30px; background: #fff; border-radius: 3px 30px 3px 30px; box-shadow: 0 12px 32px rgba(14,27,42,.08); }
.way-card .number { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; color: var(--navy); background: var(--accent); border-radius: 50%; font-weight: 900; }
.way-card h3 { font-size: 22px; }
.way-card p { color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; background: #fff; box-shadow: var(--shadow); }
.split img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.split-copy { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.split-copy h2 { font-size: clamp(36px, 4vw, 58px); font-weight: 900; }
.split-copy p { color: var(--muted); }

.boundary-strip { padding: 42px 0; color: #fff; background: var(--navy); }
.boundary-inner { width: min(calc(100% - 40px), var(--max)); margin: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.boundary-mark { display: grid; place-items: center; width: 62px; height: 62px; color: var(--navy); background: var(--lime); border-radius: 50%; font-size: 30px; font-weight: 900; }
.boundary-inner h2 { margin: 0 0 5px; color: #fff; font-size: 24px; }
.boundary-inner p { margin: 0; color: rgba(255,255,255,.7); }

.legal-hero { padding: 100px 0 75px; color: #fff; background: var(--navy); }
.legal-hero .section-inner { max-width: 900px; }
.legal-hero h1 { margin: 8px 0 18px; color: #fff; font-size: clamp(46px, 7vw, 78px); font-weight: 900; }
.legal-hero p:last-child { max-width: 720px; color: rgba(255,255,255,.72); font-size: 18px; }
.legal-layout { display: grid; grid-template-columns: 270px 1fr; gap: 58px; padding-top: 70px; padding-bottom: 90px; }
.legal-nav { position: sticky; top: 105px; align-self: start; padding: 24px; background: var(--parchment); }
.legal-nav strong { display: block; margin-bottom: 13px; color: var(--navy); }
.legal-nav a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 13px; }
.legal-nav a:hover { color: var(--terra); }
.legal-content { min-width: 0; }
.legal-content section { padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.legal-content h2 { display: flex; gap: 15px; font-size: 26px; font-weight: 900; }
.legal-content h2 span { flex: 0 0 auto; color: var(--terra); font-size: 14px; letter-spacing: .08em; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content a { color: #145e83; overflow-wrap: anywhere; }
.legal-content li + li { margin-top: 8px; }
.legal-note { padding: 20px; border-left: 6px solid var(--lime); background: var(--parchment); }

.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; padding: 70px 0 90px; }
.contact-card { padding: 38px; background: #fff; box-shadow: var(--shadow); }
.contact-card.dark { color: #fff; background: var(--navy); }
.contact-card h2 { font-size: 34px; font-weight: 900; }
.contact-card.dark h2 { color: #fff; }
.contact-card p { color: var(--muted); }
.contact-card.dark p { color: rgba(255,255,255,.7); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-card.dark .contact-list li { border-color: rgba(255,255,255,.13); }
.contact-list small { display: block; color: var(--terra); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.contact-list a { font-weight: 800; overflow-wrap: anywhere; }

.site-footer { color: #fff; background: #09131f; }
.footer-grid { width: min(calc(100% - 40px), var(--max)); margin: auto; padding: 64px 0 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer-brand p { max-width: 480px; color: rgba(255,255,255,.6); }
.footer-grid h3 { color: var(--lime); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid a { display: block; width: fit-content; padding: 4px 0; color: rgba(255,255,255,.7); text-decoration: none; }
.footer-grid a:hover { color: var(--lime); }
.footer-bottom { width: min(calc(100% - 40px), var(--max)); margin: auto; padding: 22px 0 32px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.46); font-size: 12px; }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; color: #fff; background: var(--navy); text-align: center; }
.error-page h1 { margin: 0; color: var(--lime); font-size: clamp(90px, 20vw, 190px); }
.error-page h2 { color: #fff; font-size: 34px; }
.error-page p { max-width: 600px; color: rgba(255,255,255,.7); }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .site-nav {
    position: fixed; top: 78px; right: 0; left: 0; display: grid;
    max-height: 0; padding: 0 20px; overflow: hidden; visibility: hidden; opacity: 0;
    background: var(--navy); transition: max-height .26s ease, padding .26s ease, opacity .18s ease;
  }
  .site-nav[data-open="true"] { max-height: calc(100vh - 78px); padding-top: 18px; padding-bottom: 28px; visibility: visible; opacity: 1; }
  .site-nav a { padding: 13px 16px; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .route-hero::after { background: linear-gradient(0deg, rgba(14,27,42,.98) 0%, rgba(14,27,42,.58) 74%, rgba(14,27,42,.2) 100%); }
  .hero-inner { align-items: flex-end; }
  .hero-copy { padding-bottom: 390px; }
  .route-dock { grid-template-columns: 1fr; bottom: 18px; width: min(calc(100% - 32px), 680px); }
  .route-dock a { min-height: 94px; padding-top: 16px; padding-bottom: 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .route-dock a::after { top: 23px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .pathway, .pathway:nth-child(even) { grid-template-columns: 1fr; }
  .pathway:nth-child(even) .pathway-media { order: 0; }
  .wayfinding-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-copy { order: 2; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .nav-shell, .section-inner, .boundary-inner, .footer-grid, .footer-bottom { width: min(calc(100% - 28px), var(--max)); }
  .brand strong { font-size: 14px; }
  .route-hero, .hero-inner { min-height: 780px; }
  .hero-copy { padding-top: 90px; padding-bottom: 365px; }
  .route-hero h1 { font-size: 48px; }
  .button { width: 100%; }
  .section { padding: 72px 0; }
  .pathway-copy { padding: 34px 26px; }
  .pathway-copy h3 { font-size: 30px; }
  .pathway-media { min-height: 300px; }
  .wayfinding-grid { grid-template-columns: 1fr; }
  .split-copy { padding: 38px 26px; }
  .boundary-inner { grid-template-columns: auto 1fr; }
  .boundary-inner .button { grid-column: 1 / -1; }
  .legal-hero { padding: 76px 0 58px; }
  .legal-layout { padding-top: 45px; }
  .contact-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
