:root {
  --blue: #315b6d;
  --blue-dark: #234653;
  --saffron: #d6a13d;
  --bone: #f4f0e8;
  --bone-deep: #e7dfd2;
  --ink: #162226;
  --muted: #5e696b;
  --white: #fffdf8;
  --line: rgba(22, 34, 38, 0.18);
  --page: min(1320px, calc(100vw - 64px));
  --ribbon-h: 28px;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bone); font: 17px/1.6 var(--sans); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.kicker { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.demo-ribbon { position: fixed; z-index: 100; top: 0; width: 100%; height: var(--ribbon-h); overflow: hidden; color: var(--bone); background: var(--ink); font-size: 10px; line-height: var(--ribbon-h); letter-spacing: .14em; text-transform: uppercase; }
.ribbon-track { display: flex; width: max-content; animation: ribbon 30s linear infinite; }
.ribbon-track span { min-width: 240px; text-align: center; }
.ribbon-track i { width: 4px; height: 4px; align-self: center; border-radius: 50%; background: var(--saffron); }
.demo-ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes ribbon { to { transform: translateX(-50%); } }

.site-header { position: absolute; z-index: 20; top: var(--ribbon-h); left: 50%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: var(--page); height: 96px; transform: translateX(-50%); border-bottom: 1px solid rgba(244,240,232,.45); color: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: inherit; text-decoration: none; }
.brand-mark { width: 26px; height: 30px; fill: currentColor; }
.brand-cut { fill: var(--saffron); }
.brand span { display: grid; line-height: 1; }
.brand b { font-size: 15px; letter-spacing: .18em; }
.brand small { margin-top: 5px; font-size: 8px; letter-spacing: .42em; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { font-size: 13px; text-decoration: none; }
.site-header nav a:hover { color: var(--saffron); }
.operations-login { justify-self: end; padding: 10px 15px; border: 1px solid rgba(244,240,232,.55); color: var(--white); background: transparent; font-size: 12px; text-decoration: none; }
.operations-login:hover, .operations-login:focus-visible { border-color: var(--saffron); color: var(--saffron); outline: none; }

.hero { position: relative; min-height: 780px; color: var(--white); background: var(--blue-dark); }
.hero-copy { position: absolute; z-index: 2; left: max(32px, calc((100vw - 1320px) / 2)); bottom: 84px; width: min(550px, calc(50vw - 40px)); }
.hero .kicker { color: var(--saffron); }
.hero h1 { margin: 0 0 25px; font: 400 clamp(48px, 5.7vw, 82px)/.95 var(--serif); letter-spacing: -.04em; }
.hero h1 em { color: var(--bone); font-weight: 400; }
.hero-lede { max-width: 530px; margin: 0 0 30px; color: rgba(255,253,248,.82); font-size: 18px; line-height: 1.55; }
.text-link { display: inline-flex; gap: 14px; align-items: center; padding-bottom: 5px; border-bottom: 1px solid var(--saffron); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.hero-image { position: absolute; inset: 0 0 0 46%; margin: 0; overflow: hidden; }
.hero-image::after { position: absolute; inset: 0; content: ""; background: rgba(35,70,83,.14); }
.hero-image img { height: 100%; object-fit: cover; }
.arrival-card { position: absolute; z-index: 2; right: 38px; bottom: 38px; width: 260px; padding: 20px 22px; color: var(--ink); background: var(--bone); box-shadow: 7px 7px 0 var(--saffron); }
.arrival-card span, .arrival-card small { display: block; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.arrival-card strong { display: block; margin: 8px 0 10px; font: 400 24px/1.1 var(--serif); }

.atlas-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; width: var(--page); margin: 0 auto; padding: 120px 0; }
.section-intro { max-width: 440px; }
.section-intro h2, .story-lead h2, .principles h2, .membership h2 { margin: 0 0 28px; font: 400 clamp(38px, 4vw, 58px)/1.03 var(--serif); letter-spacing: -.03em; }
.section-intro > p:last-child { color: var(--muted); }
.atlas { border-top: 5px solid var(--blue); background: var(--white); box-shadow: 0 24px 60px rgba(34,45,45,.09); }
.atlas-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px 32px; border-bottom: 1px solid var(--line); }
.atlas fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.atlas legend { margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.atlas legend span { margin-right: 8px; color: var(--saffron); }
.choice-row { display: flex; gap: 7px; flex-wrap: wrap; }
.atlas-chip { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: transparent; font-size: 12px; cursor: pointer; }
.atlas-chip:hover, .atlas-chip:focus-visible { border-color: var(--blue); outline: none; }
.atlas-chip.is-active { border-color: var(--blue); color: var(--white); background: var(--blue); }
.atlas-result { padding: 30px 32px 25px; }
.atlas-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 25px; }
.result-label { display: block; margin-bottom: 4px; color: var(--saffron); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.atlas-heading h3 { margin: 0; font: 400 32px/1.1 var(--serif); }
.atlas-heading > p { margin: 0; color: var(--muted); font-size: 12px; }
.atlas-stops { margin: 0; padding: 0; list-style: none; }
.atlas-stops li { display: grid; grid-template-columns: 36px 1fr auto; gap: 15px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.stop-index { color: var(--saffron); font: italic 18px var(--serif); }
.stop-name strong, .stop-name small { display: block; }
.stop-name strong { font-size: 15px; }
.stop-name small, .stop-time { color: var(--muted); font-size: 11px; }
.stop-time { text-align: right; }
.atlas-detail { margin: 20px 0 0; padding-left: 13px; border-left: 3px solid var(--saffron); color: var(--muted); font-size: 12px; }

.stories { padding: 118px max(32px, calc((100vw - 1320px) / 2)); background: var(--white); }
.story-lead { display: grid; grid-template-columns: .6fr 1.4fr 1fr; gap: 50px; align-items: start; margin-bottom: 70px; }
.story-lead h2 { margin: 0; }
.story-lead > p:last-child { margin: 0; color: var(--muted); }
.feature-story { display: grid; grid-template-columns: 1.35fr .65fr; gap: 55px; align-items: end; }
.feature-story img { height: 560px; object-fit: cover; }
.feature-story > div { padding-bottom: 40px; }
.story-number, .story-pair span { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.feature-story h3 { margin: 15px 0 18px; font: 400 45px/1 var(--serif); }
.feature-story p, .story-pair p { color: var(--muted); }
.story-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; width: 72%; margin: 90px 0 0 auto; }
.story-pair article:first-child { margin-top: 80px; }
.story-pair img { height: 360px; margin-bottom: 24px; object-fit: cover; }
.story-pair h3 { margin: 10px 0; font: 400 29px/1.1 var(--serif); }

.principles { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; width: var(--page); margin: 0 auto; padding: 120px 0; }
.principles ol { margin: 0; padding: 0; list-style: none; }
.principles li { display: grid; grid-template-columns: 45px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li > span { color: var(--saffron); font: italic 18px var(--serif); }
.principles h3 { margin: 0 0 7px; font: 400 28px/1.1 var(--serif); }
.principles li p { margin: 0; color: var(--muted); }

.membership { display: grid; grid-template-columns: 130px .8fr 1fr; gap: 55px; align-items: center; padding: 90px max(32px, calc((100vw - 1320px) / 2)); color: var(--bone); background: var(--blue); }
.membership .kicker { color: var(--saffron); }
.membership h2 { margin: 0; }
.membership > p { color: rgba(244,240,232,.78); }
.membership-seal { display: grid; place-items: center; width: 120px; height: 120px; border: 1px solid rgba(244,240,232,.35); border-radius: 50%; }
.membership-seal svg { width: 46px; fill: var(--bone); }
.membership-seal .seal-cut { fill: var(--saffron); }

footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; padding: 55px max(32px, calc((100vw - 1320px) / 2)); color: var(--bone); background: var(--ink); }
.footer-brand { color: var(--bone); }
footer > p { margin: 0; font: italic 19px var(--serif); }
.footer-meta { justify-self: end; color: rgba(244,240,232,.55); font: 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; }

#chatLaunch { position: fixed; z-index: 90; right: 24px; bottom: 24px; padding: 13px 19px; border: 0; border-radius: 2px; color: var(--bone); background: var(--blue); box-shadow: 4px 4px 0 var(--saffron); font-size: 13px; font-weight: 700; cursor: pointer; }
#chatLaunch:hover { background: var(--blue-dark); }
#chatPanel { position: fixed; z-index: 95; right: 24px; bottom: 24px; display: flex; flex-direction: column; width: min(390px, calc(100vw - 32px)); height: 550px; max-height: calc(100vh - 48px); overflow: hidden; border: 1px solid var(--line); background: var(--bone); box-shadow: 0 25px 80px rgba(22,34,38,.28); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .18s, transform .18s, visibility .18s; }
#chatPanel.open { opacity: 1; visibility: visible; transform: translateY(0); }
#chatPanel > header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; color: var(--bone); background: var(--blue); }
#chatPanel > header > div { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; }
.chat-status { grid-row: 1 / 3; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); }
#chatPanel header strong { font: 400 20px var(--serif); }
#chatPanel header small { color: rgba(244,240,232,.65); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
#chatClose { border: 0; color: var(--bone); background: transparent; font-size: 26px; cursor: pointer; }
#chatLog { display: flex; flex: 1; flex-direction: column; gap: 11px; overflow-y: auto; padding: 20px; }
.msg { max-width: 86%; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.msg.bot { align-self: flex-start; border: 1px solid var(--line); background: var(--white); }
.msg.user { align-self: flex-end; color: var(--white); background: var(--blue); }
.msg.system { align-self: center; max-width: 100%; color: var(--muted); background: var(--bone-deep); font-size: 11px; text-align: center; }
.msg.typing { color: var(--muted); }
#chatForm { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 14px; border-top: 1px solid var(--line); background: var(--white); }
#chatInput { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--white); }
#chatInput:focus { border-color: var(--blue); outline: 1px solid var(--blue); }
#chatSend { padding: 10px 15px; border: 0; color: var(--white); background: var(--blue); cursor: pointer; }
#chatSend:disabled { opacity: .55; cursor: wait; }

@media (max-width: 900px) {
  :root { --page: calc(100vw - 40px); }
  .site-header { grid-template-columns: 1fr auto; height: 80px; }
  .site-header nav { display: none; }
  .hero { min-height: 730px; }
  .hero-image { left: 36%; }
  .hero-copy { left: 20px; bottom: 60px; width: min(570px, calc(100vw - 40px)); }
  .atlas-section, .principles { grid-template-columns: 1fr; gap: 45px; padding: 85px 0; }
  .story-lead { grid-template-columns: 1fr 1fr; }
  .story-lead .kicker { grid-column: 1 / -1; }
  .membership { grid-template-columns: 100px 1fr; }
  .membership > p { grid-column: 2; }
  .membership-seal { width: 95px; height: 95px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { width: calc(100vw - 32px); }
  .brand-mark { width: 23px; }
  .brand b { font-size: 13px; }
  .operations-login { max-width: 120px; padding: 8px 10px; font-size: 10px; }
  .hero { display: flex; min-height: 760px; align-items: end; }
  .hero-image { inset: 0; }
  .hero-image::after { background: rgba(22,34,38,.58); }
  .hero-copy { position: relative; left: auto; bottom: auto; width: auto; margin: 0 20px 52px; }
  .hero h1 { font-size: 51px; }
  .hero-lede { font-size: 16px; }
  .arrival-card { display: none; }
  .atlas-section { padding: 72px 0; }
  .atlas-controls { grid-template-columns: 1fr; padding: 24px 20px; }
  .atlas-result { padding: 25px 20px; }
  .atlas-heading { display: block; }
  .atlas-heading > p { margin-top: 9px; }
  .atlas-stops li { grid-template-columns: 27px 1fr; }
  .stop-time { grid-column: 2; text-align: left; }
  .stories { padding: 75px 20px; }
  .story-lead, .feature-story, .story-pair { grid-template-columns: 1fr; }
  .story-lead { gap: 18px; margin-bottom: 45px; }
  .feature-story { gap: 28px; }
  .feature-story img { height: 410px; }
  .feature-story > div { padding-bottom: 0; }
  .story-pair { gap: 50px; width: 100%; margin-top: 70px; }
  .story-pair article:first-child { margin-top: 0; }
  .story-pair img { height: 330px; }
  .principles { padding: 75px 0; }
  .membership { grid-template-columns: 1fr; gap: 28px; padding: 70px 20px; }
  .membership > p { grid-column: auto; }
  footer { grid-template-columns: 1fr; justify-items: start; padding: 45px 20px; }
  .footer-meta { justify-self: start; }
  #chatLaunch { right: 16px; bottom: 16px; }
  #chatPanel { right: 16px; bottom: 16px; height: min(590px, calc(100vh - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track { animation: none; }
  #chatPanel { transition: none; }
}
