:root {
  --night: #0d2236;
  --night-2: #173851;
  --paper: #f5efdf;
  --paper-2: #e9dfca;
  --white: #fffdf6;
  --red: #c83e2f;
  --red-dark: #a92e22;
  --aqua: #50c7b5;
  --aqua-pale: #ccefe7;
  --gold: #e7b44b;
  --text: #102537;
  --muted: #526473;
  --rule: #b9ad96;
  --radius: 18px;
  --wide: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--paper);
  background-image: linear-gradient(rgba(16,37,55,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16,37,55,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.skip { position: fixed; top: -80px; left: 18px; z-index: 1000; padding: 10px 15px; background: var(--white); border: 2px solid var(--night); border-radius: 8px; }
.skip:focus { top: 18px; }
.wrap { width: min(calc(100% - 40px), var(--wide)); margin-inline: auto; }
.measure { width: min(calc(100% - 40px), 790px); margin-inline: auto; }
.flow > * + * { margin-top: 22px; }
.flow-sm > * + * { margin-top: 10px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); gap: clamp(42px, 8vw, 100px); align-items: center; }
.band { padding: 92px 0; }
.band.tight { padding: 62px 0; }
.band.ink { color: var(--white); background: var(--night); }
.band.clean { background: var(--white); }
.band.line { border-top: 1px solid var(--rule); }

.signal { padding: 8px 20px; color: var(--white); background: var(--red); text-align: center; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.mast { position: sticky; top: 0; z-index: 90; background: rgba(245,239,223,.95); border-bottom: 1px solid var(--rule); backdrop-filter: blur(14px); }
.mast-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.identity { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.identity-mark { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border: 2px solid var(--night); background: var(--aqua); transform: rotate(-3deg); }
.identity-mark::before { content: "S"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--night); font-family: Georgia, serif; font-size: 27px; font-weight: 800; }
.identity-name { display: block; font-weight: 900; line-height: 1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.identity-sub { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 750; }
.nav a { position: relative; text-decoration: none; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px; background: var(--red); transition: right .18s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .nav-action { padding: 11px 17px; color: var(--white); background: var(--night); border-radius: 4px; transform: rotate(1deg); }
.nav .nav-action::after { display: none; }
.nav .nav-action:hover { background: var(--red-dark); }
.menu { display: none; padding: 9px 14px; color: var(--white); background: var(--night); border: 0; border-radius: 4px; font-weight: 800; }

.cover { min-height: 720px; color: var(--white); background: var(--night); overflow: hidden; }
.cover-grid { min-height: 720px; display: grid; grid-template-columns: 1.05fr .95fr; }
.cover-copy { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; padding: 100px clamp(34px, 6vw, 84px) 95px max(20px, calc((100vw - var(--wide)) / 2)); }
.cover-copy::after { content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; right: -60px; top: 50px; border: 1px dashed rgba(80,199,181,.55); border-radius: 50%; }
.cover-photo { position: relative; min-height: 720px; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.06); }
.cover-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,34,54,.65), transparent 40%), linear-gradient(0deg, rgba(13,34,54,.7), transparent 55%); }
.cover-ticket { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 26px; padding: 20px; color: var(--text); background: var(--paper); border: 1px dashed var(--text); box-shadow: 8px 8px 0 rgba(80,199,181,.78); transform: rotate(-1deg); }
.cover-ticket strong { display: block; font-family: Georgia, serif; font-size: 20px; }
.cover-ticket span { display: block; margin-top: 5px; font-size: 13px; }
.kicker { margin: 0 0 17px; color: var(--red-dark); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.ink .kicker, .cover .kicker { color: var(--aqua); }
h1, h2, h3, h4 { margin: 0; line-height: 1.07; letter-spacing: -.035em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
h1 { max-width: 830px; font-size: clamp(50px, 7vw, 92px); }
h2 { font-size: clamp(38px, 5.3vw, 66px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); }
h4 { font-size: 19px; }
p { margin: 0; }
.intro { max-width: 760px; color: inherit; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; opacity: .85; }
.cover .intro { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 2px solid var(--night); border-radius: 4px; color: var(--white); background: var(--night); text-decoration: none; font-weight: 850; line-height: 1.2; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--aqua); }
.button.red { color: var(--white); background: var(--red); border-color: var(--red); }
.button.paper { color: var(--night); background: var(--paper); border-color: var(--paper); }
.button.outline { color: var(--night); background: transparent; }
.button.ghost { color: var(--white); background: transparent; border-color: rgba(255,255,255,.55); }
.button.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.text-link { color: var(--red-dark); font-weight: 800; text-underline-offset: 4px; }

.page-head { padding: 86px 0 66px; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; align-items: end; }
.page-head h1 { color: var(--night); }
.page-head .intro { margin-top: 22px; color: var(--muted); }
.passport-stamp { position: relative; padding: 24px; border: 2px solid var(--red); color: var(--red-dark); transform: rotate(2deg); }
.passport-stamp::before { content: "REVIEW NOTE"; display: block; margin-bottom: 12px; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.passport-stamp span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.passport-stamp strong { display: block; margin-top: 5px; font-family: Georgia, serif; font-size: 21px; }

.section-title { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, .52fr); gap: 50px; align-items: end; margin-bottom: 44px; }
.section-title p { color: var(--muted); font-size: 18px; }
.ink .section-title p { color: rgba(255,255,255,.72); }
.sheet { padding: 28px; background: var(--white); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 8px 8px 0 var(--paper-2); }
.sheet h2, .route-card h2 { font-size: clamp(28px, 3.2vw, 42px); }
.sheet p { margin-top: 11px; color: var(--muted); }
.sheet a { color: var(--red-dark); font-weight: 800; }
.sheet-code { display: block; margin-bottom: 44px; color: var(--red-dark); font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.ticket-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ticket { position: relative; min-height: 180px; padding: 22px; background: var(--white); border: 1px dashed var(--night); text-decoration: none; transition: transform .18s ease, background .18s ease; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 12px; height: 24px; background: var(--paper); border: 1px solid var(--rule); transform: translateY(-50%); }
.ticket::before { left: -1px; border-left: 0; border-radius: 0 20px 20px 0; }
.ticket::after { right: -1px; border-right: 0; border-radius: 20px 0 0 20px; }
.ticket:hover { transform: translateY(-4px) rotate(-.5deg); background: var(--aqua-pale); }
.ticket small { display: block; color: var(--red-dark); font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.ticket strong { display: block; margin-top: 34px; font-family: Georgia, serif; font-size: 23px; line-height: 1.1; }

.pathway { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: start; padding: 34px 16px; background: var(--night-2); border-radius: 4px; }
.path-stop { position: relative; padding: 42px 11px 0; color: var(--white); text-align: center; }
.path-stop::before { content: ""; position: absolute; z-index: 2; width: 17px; height: 17px; top: 6px; left: calc(50% - 8px); background: var(--gold); border: 4px solid var(--night-2); border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.path-stop::after { content: ""; position: absolute; top: 14px; left: 50%; width: 100%; border-top: 2px dashed rgba(255,255,255,.4); }
.path-stop:last-child::after { display: none; }
.path-stop b { display: block; font-size: 12px; line-height: 1.3; }
.path-stop span { display: block; margin-top: 4px; color: rgba(255,255,255,.64); font-size: 10px; text-transform: uppercase; }

.ledger { overflow-x: auto; background: var(--white); border: 1px solid var(--rule); }
table { width: 100%; min-width: 740px; border-collapse: collapse; }
th, td { padding: 17px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
th { color: var(--white); background: var(--night); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 999px; color: var(--night); background: var(--aqua-pale); font-size: 11px; font-weight: 850; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; background: var(--aqua); border-radius: 50%; }
.status.warn { background: #f8e6b8; }
.status.warn::before { background: var(--gold); }
.status.red { background: #f7d6d1; }
.status.red::before { background: var(--red); }

.review-card { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 24px; background: var(--rule); border: 1px solid var(--rule); }
.review-card div { min-height: 92px; padding: 14px; background: var(--white); }
.review-card span { display: block; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.review-card strong { display: block; margin-top: 7px; font-size: 13px; line-height: 1.35; }

.toolbook { display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); overflow: hidden; border: 1px solid var(--rule); background: var(--white); box-shadow: 12px 12px 0 rgba(23,56,81,.12); }
.formpanel { padding: clamp(26px, 4vw, 48px); }
.resultpanel { min-height: 590px; padding: clamp(26px, 4vw, 48px); color: var(--white); background-color: var(--night); background-image: radial-gradient(circle at 15% 14%, rgba(80,199,181,.15) 0 2px, transparent 3px), radial-gradient(circle at 80% 70%, rgba(231,180,75,.15) 0 2px, transparent 3px); background-size: 34px 34px, 48px 48px; }
.resultpanel p { color: rgba(255,255,255,.72); }
.resultpanel h2, .resultpanel h3 { color: var(--white); }
.resultpanel .kicker { color: var(--aqua); }
.empty { min-height: 470px; display: flex; flex-direction: column; justify-content: center; }
.empty b { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 64px; font-weight: 400; }
.result-block { margin-top: 25px; padding-top: 22px; border-top: 1px dashed rgba(255,255,255,.34); }
.result-block h3 { font-size: 20px; }
.result-block ul { margin: 12px 0 0; padding-left: 20px; color: rgba(255,255,255,.86); }
.result-block li + li { margin-top: 7px; }
.result-number { color: var(--gold); font-family: Georgia, serif; font-size: 50px; line-height: 1; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .legend { font-size: 12px; font-weight: 850; letter-spacing: .04em; }
.field small { color: var(--muted); }
input, select, textarea { width: 100%; min-height: 49px; padding: 11px 13px; color: var(--text); background: var(--paper); border: 1px solid #9d927d; border-radius: 3px; }
textarea { min-height: 145px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.choice { display: flex; gap: 11px; align-items: flex-start; padding: 12px; background: var(--paper); border: 1px solid var(--rule); }
.choices { display: grid; gap: 9px; }
.form-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.notice { padding: 15px 17px; color: #4c3904; background: #fff0bf; border-left: 5px solid var(--gold); }
.notice.blue { color: #0d3c46; background: var(--aqua-pale); border-left-color: var(--aqua); }
.notice.red { color: #63241d; background: #f9ddd8; border-left-color: var(--red); }
.fine { color: var(--muted); font-size: 13px; }
.form-message { margin-top: 14px; font-weight: 800; }

.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.checklist li { position: relative; padding: 12px 13px 12px 40px; background: var(--white); border: 1px solid var(--rule); }
.checklist li::before { content: ""; position: absolute; left: 14px; top: 16px; width: 12px; height: 12px; border: 2px solid var(--red); transform: rotate(-3deg); }
.photo { position: relative; min-height: 520px; overflow: hidden; background: var(--night); }
.photo img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.photo.tall img { min-height: 670px; }
.photo-note { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 12px 14px; color: var(--text); background: rgba(245,239,223,.94); border: 1px dashed var(--night); font-size: 13px; }
.mosaic { display: grid; grid-template-columns: 1.1fr .9fr .9fr; grid-template-rows: 270px 270px; gap: 12px; }
.mosaic figure { margin: 0; overflow: hidden; }
.mosaic figure:first-child { grid-row: 1 / 3; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.route-card { padding: 24px; background: var(--white); border-top: 5px solid var(--red); }
.route-card p { margin-top: 10px; color: var(--muted); }
.route-card dl { margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px 14px; }
.route-card dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.route-card dd { margin: 0; font-size: 14px; font-weight: 700; }
.agency-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.agency-chip { padding: 20px; background: var(--white); border: 1px solid var(--rule); }
.agency-chip b { display: block; color: var(--red-dark); font-family: Georgia, serif; font-size: 29px; }
.agency-chip span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }
.faq details { padding: 20px 0; border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-family: Georgia, serif; font-size: 21px; font-weight: 700; }
.faq p { margin-top: 11px; color: var(--muted); }
.prose h2 { margin-top: 54px; }
.prose h3 { margin-top: 34px; }
.prose p, .prose ul, .prose ol { margin: 17px 0 0; }
.prose li + li { margin-top: 7px; }
.prose a { color: var(--red-dark); font-weight: 750; }
.prose .notice { margin-top: 25px; }
.sources { padding-left: 20px; }
.sources li + li { margin-top: 9px; }
.cta { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 50px; color: var(--white); background: var(--red); box-shadow: 10px 10px 0 var(--night); }
.cta p { margin-top: 10px; color: rgba(255,255,255,.82); }

.footer { padding: 74px 0 28px; color: var(--white); background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 54px; }
.footer-name { font-family: Georgia, serif; font-size: clamp(30px, 4vw, 47px); font-weight: 700; overflow-wrap: anywhere; }
.footer p { margin-top: 13px; color: rgba(255,255,255,.67); }
.footer-links { display: grid; gap: 8px; }
.footer-links h2 { margin-bottom: 10px; color: var(--aqua); font-family: inherit; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.17); color: rgba(255,255,255,.55); font-size: 12px; }
.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; }
[hidden] { display: none !important; }

@media (max-width: 1050px) {
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; padding: 22px; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav .nav-action { text-align: center; transform: none; }
  .menu { display: inline-flex; }
  .cover-grid { grid-template-columns: 1fr; }
  .cover-copy { min-height: 620px; padding-inline: max(20px, calc((100vw - var(--wide)) / 2)); }
  .cover-photo { min-height: 520px; }
  .page-head-grid, .section-title, .split, .toolbook { grid-template-columns: 1fr; }
  .ticket-grid { grid-template-columns: repeat(2, 1fr); }
  .agency-grid { grid-template-columns: repeat(2, 1fr); }
  .review-card { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap, .measure { width: min(calc(100% - 28px), var(--wide)); }
  .band { padding: 68px 0; }
  .mast-inner { min-height: 70px; }
  .nav { top: 70px; }
  .identity-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .identity-name { font-size: 14px; }
  .identity-sub { font-size: 8px; }
  .cover-copy { min-height: 570px; }
  .cover-photo { min-height: 410px; }
  .page-head { padding: 64px 0 48px; }
  .grid-2, .grid-3, .ticket-grid, .fields, .agency-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .review-card { grid-template-columns: 1fr 1fr; }
  .pathway { grid-template-columns: 1fr; padding: 20px; }
  .path-stop { min-height: 72px; padding: 10px 0 10px 52px; text-align: left; }
  .path-stop::before { left: 12px; top: 12px; }
  .path-stop::after { left: 20px; top: 30px; width: 0; height: 100%; border-top: 0; border-left: 2px dashed rgba(255,255,255,.4); }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px 180px; }
  .mosaic figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .cta { grid-template-columns: 1fr; padding: 32px 25px; }
  .footer-base { flex-direction: column; }
}

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

@media print {
  .signal, .mast, .footer, .actions, .form-buttons, .result-actions, .cta, .no-print { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .band, .page-head { padding: 22px 0; }
  .toolbook { display: block; border: 0; box-shadow: none; }
  .formpanel { display: none; }
  .resultpanel { min-height: 0; padding: 0; color: #000; background: #fff; }
  .resultpanel h2, .resultpanel h3, .resultpanel p, .result-block ul { color: #000; }
  .result-block { border-color: #999; break-inside: avoid; }
  a { text-decoration: none; }
}
