:root {
  color-scheme: light;
  --paper: #efe4cf;
  --paper-2: #f7efdf;
  --ink: #151412;
  --red: #b42019;
  --red-dark: #7d1511;
  --blue: #173b50;
  --line: rgba(21, 20, 18, 0.24);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-width: 300px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(28, 26, 22, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 26, 22, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  overflow-x: hidden;
  padding: max(18px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom));
}

button { font: inherit; }
button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.construct { position: fixed; z-index: 0; pointer-events: none; }
.construct-a { width: 180px; height: 520px; background: var(--red); right: -132px; top: -120px; transform: rotate(31deg); }
.construct-b { width: 132px; height: 132px; border: 28px solid var(--blue); border-radius: 50%; left: -84px; top: 360px; opacity: .9; }

.mast, main { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.mast { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.brand-mark { width: 48px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--paper-2); font-weight: 900; font-size: 24px; box-shadow: inset 0 0 0 4px var(--paper-2), inset 0 0 0 6px var(--red); }
.brand-mark span { transform: translateY(-1px); }
.brand, .slogan { margin: 0; text-transform: uppercase; }
.brand { font-size: 18px; line-height: 1; font-weight: 900; letter-spacing: .04em; }
.slogan { margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .15em; opacity: .65; }
.serial { align-self: start; padding-top: 4px; font: 700 10px/1 monospace; letter-spacing: .12em; }

.hero { padding: 42px 0 26px; }
.eyebrow, .section-index { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 900; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(180, 32, 25, .14); margin-right: 7px; }
h1 { max-width: 620px; margin: 0; text-transform: uppercase; font-size: clamp(38px, 10vw, 72px); line-height: .91; letter-spacing: -.055em; font-weight: 950; }
.lead { max-width: 510px; margin: 22px 0 0; font-size: 17px; line-height: 1.45; font-weight: 600; }

.permit { position: relative; padding: 18px; color: var(--paper-2); background: var(--red); box-shadow: 9px 9px 0 var(--ink); overflow: hidden; }
.permit::after { content: ''; position: absolute; width: 170px; height: 170px; border: 32px solid rgba(247, 239, 223, .12); border-radius: 50%; right: -76px; top: 24px; }
.permit-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.45); text-transform: uppercase; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.permit-main { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 22px 0 18px; }
.permit-label { margin: 0 0 5px; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .14em; opacity: .72; }
.permit h2 { margin: 0; font-size: clamp(32px, 10vw, 58px); line-height: .9; letter-spacing: -.04em; }
.infinity { font-size: 72px; line-height: .65; font-weight: 900; }
.permit-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.5); }
.permit-grid div { padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.permit-grid div + div { border-left: 1px solid rgba(255,255,255,.5); }
.permit-grid strong { font-size: 19px; }
.permit-grid span { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; opacity: .76; }
.primary { position: relative; z-index: 2; width: 100%; min-height: 56px; margin-top: 16px; border: 0; color: var(--ink); background: var(--paper-2); font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.primary:not(:disabled):active { transform: translateY(2px); }
.primary:disabled { cursor: wait; opacity: .62; }
.ready-actions { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.secondary { min-height: 44px; border: 1px solid var(--paper-2); color: var(--paper-2); background: transparent; font-weight: 800; font-size: 11px; cursor: pointer; }
.secondary-dark { background: var(--red-dark); }
.micro { position: relative; z-index: 1; margin: 12px 0 0; font-size: 10px; line-height: 1.4; opacity: .74; }

.locations { padding: 48px 0 24px; }
.section-head h2 { margin: 0 0 20px; text-transform: uppercase; font-size: 30px; line-height: 1; }
.route-list { border-top: 2px solid var(--ink); }
.route-list article { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; min-height: 76px; border-bottom: 1px solid var(--line); }
.route-list article > span { display: grid; place-items: center; width: 42px; height: 42px; background: var(--blue); color: white; font-size: 12px; font-weight: 900; }
.route-list strong, .route-list small { display: block; }
.route-list strong { text-transform: uppercase; font-size: 16px; }
.route-list small { margin-top: 3px; font-size: 11px; opacity: .6; }
.route-list b { color: var(--red); font-size: 24px; }

.manual { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.manual summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.manual summary::-webkit-details-marker { display: none; }
.manual summary b { color: var(--red); font-size: 26px; transition: transform .25s ease; }
.manual[open] summary b { transform: rotate(45deg); }
.manual ol { margin: 0 0 20px; padding-left: 26px; font-size: 14px; line-height: 1.6; }

.toast { position: fixed; z-index: 10; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); width: max-content; max-width: calc(100vw - 36px); padding: 12px 16px; color: white; background: var(--ink); font-size: 12px; font-weight: 800; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(14px); animation: enter .55s cubic-bezier(.22,1,.36,1) forwards; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .12s; }
.reveal-3 { animation-delay: .2s; }
.reveal-4 { animation-delay: .28s; }
@keyframes enter { to { opacity: 1; transform: none; } }

@media (min-width: 650px) {
  body { padding-inline: 28px; }
  .permit { padding: 24px; }
  .route-list { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--ink); }
  .route-list article { grid-template-columns: 48px 1fr; padding: 16px 12px; border-bottom: 0; }
  .route-list article + article { border-left: 1px solid var(--line); }
  .route-list b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
