:root {
  --ink: #142329;
  --midnight: #0e343a;
  --paper: #f4f0e8;
  --white: #fffdf8;
  --spice: #e45840;
  --olive: #8f804d;
  --plum: #884c73;
  --blue: #0ba9df;
  --green: #79c43f;
  --pink: #ec008c;
  --muted: #647278;
  --line: rgba(20, 35, 41, .16);
  --shadow: 0 18px 55px rgba(9, 27, 31, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  color: var(--white);
  background: var(--midnight);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand img { width: 124px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 0 transparent); }
.brand span { display: grid; line-height: 1.05; text-transform: uppercase; letter-spacing: .08em; }
.brand b { font-size: .88rem; }
.brand small { margin-top: 6px; color: rgba(255,255,255,.64); font-size: .68rem; }

.rail {
  position: fixed;
  z-index: 15;
  top: 82px;
  bottom: 0;
  left: 0;
  width: 205px;
  padding: 42px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #fffaf2;
  border-right: 1px solid var(--line);
}
.rail a { display: flex; align-items: center; gap: 12px; min-height: 39px; padding: 7px 9px; border-left: 3px solid transparent; color: #5f6c70; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .69rem; font-weight: 700; }
.rail a span { color: #a0a7a7; font-variant-numeric: tabular-nums; }
.rail a.active { color: var(--midnight); border-left-color: var(--spice); background: rgba(228,88,64,.07); }

main { margin: 82px 0 0 205px; height: calc(100vh - 82px); display: flex; flex-direction: column; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.slide { position: relative; flex: 0 0 100%; min-height: 100%; scroll-snap-align: start; scroll-snap-stop: normal; background: var(--paper); }
#overview { order: 1; }
#schedule { order: 2; }
#layout { order: 3; }
#signal { order: 4; }
#route { order: 5; }
#bridge { order: 6; }
#power { order: 7; }
#changeover { order: 8; }
.slide-inner { width: min(1320px, calc(100% - 90px)); min-height: 100%; margin: 0 auto; padding: 58px 0 72px; display: flex; flex-direction: column; justify-content: center; }
.slide-index { position: absolute; right: 32px; bottom: 22px; color: rgba(20,35,41,.42); font: 700 .73rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.dark-slide { color: var(--white); background: var(--midnight); }
.blue-slide { color: var(--white); background: #173f49; }
.dark-slide .slide-index, .blue-slide .slide-index { color: rgba(255,255,255,.4); }

.eyebrow { margin: 0 0 11px; color: var(--spice); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { line-height: 1.02; letter-spacing: -.04em; }
h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(3.2rem, 6vw, 6.4rem); text-transform: uppercase; }
h2 { margin-bottom: 0; font-size: clamp(2.2rem, 4.25vw, 4.7rem); max-width: 820px; }
h3 { line-height: 1.16; }
.lede { max-width: 800px; color: #526268; font-size: 1.21rem; line-height: 1.65; }

.hero-slide { background: linear-gradient(128deg, #f8f4ec 0 64%, #e7e0d4 64% 100%); }
.hero-slide::after { content: ""; position: absolute; width: 340px; height: 340px; right: -130px; top: 20%; border: 70px solid rgba(228,88,64,.2); border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(330px,.65fr); gap: 70px; align-items: center; }
.recommendation { max-width: 720px; margin-top: 38px; padding: 18px 20px; display: grid; gap: 5px; border-left: 5px solid var(--spice); background: rgba(255,255,255,.72); box-shadow: var(--shadow); }
.recommendation span, .hero-card span, .mini-label { color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.recommendation strong { font-size: 1.04rem; }
.hero-card { position: relative; z-index: 1; padding: 14px 30px; background: var(--midnight); color: var(--white); box-shadow: var(--shadow); }
.hero-card div { padding: 19px 0; display: grid; gap: 5px; border-bottom: 1px solid rgba(255,255,255,.13); }
.hero-card div:last-child { border-bottom: 0; }
.hero-card span { color: rgba(255,255,255,.5); }
.hero-card strong { font-size: 1.04rem; }
.hero-card .accent-row strong { color: #ff8b76; }

.section-heading { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: 60px; align-items: end; margin-bottom: 44px; }
.section-heading > p { margin-bottom: 4px; color: #5c6b70; font-size: 1.02rem; line-height: 1.7; }
.section-heading.stacked { display: block; }
.section-heading.stacked > p { max-width: 800px; margin-top: 22px; }
.dark-slide .section-heading > p, .blue-slide .section-heading > p { color: rgba(255,255,255,.68); }
.numbered-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.numbered-grid article { padding: 28px; background: var(--white); border-top: 4px solid var(--spice); box-shadow: 0 10px 36px rgba(11,35,40,.08); }
.numbered-grid article > span { color: #c4c9c7; font: 700 2.6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.numbered-grid h3 { margin: 28px 0 13px; font-size: 1.3rem; }
.numbered-grid p { margin-bottom: 0; color: #5b696d; }
.camera-layouts { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.camera-layout { padding: 24px; background: var(--white); box-shadow: 0 10px 36px rgba(11,35,40,.08); }
.camera-layout.mica-layout { border-top: 4px solid var(--spice); }
.camera-layout.fish-layout { border-top: 4px solid var(--olive); }
.camera-layout h3 { margin: 12px 0 17px; font-size: 1.22rem; }
.camera-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; min-height: 48px; border-top: 1px solid var(--line); }
.camera-row b { display: inline-grid; place-items: center; width: 56px; padding: 5px; color: var(--midnight); background: #e7eef0; font-size: .68rem; letter-spacing: .06em; }
.camera-row span { font-weight: 700; font-size: .85rem; }
.camera-row small { color: #697579; font-weight: 500; }
.camera-row.ptz b { color: var(--white); background: var(--plum); }
.camera-layout p { margin: 16px 0 0; color: #5b696d; font-size: .84rem; }
.result-strip { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--midnight); color: var(--white); }
.result-strip div { padding: 17px 22px; display: grid; gap: 5px; border-right: 1px solid rgba(255,255,255,.13); }
.result-strip div:last-child { border: 0; }
.result-strip b { color: #ff856f; font-size: .9rem; }
.result-strip span { color: rgba(255,255,255,.65); font-size: .78rem; }

.signal-chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.signal-chain article { min-height: 150px; padding: 22px; display: grid; align-content: center; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.signal-chain article.network-node { border-color: rgba(228,88,64,.7); background: rgba(228,88,64,.13); }
.signal-chain span { color: rgba(255,255,255,.5); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.signal-chain strong { margin: 9px 0; font-size: 1.08rem; }
.signal-chain small { color: rgba(255,255,255,.62); }
.signal-chain i { color: var(--spice); font-style: normal; font-weight: 800; font-size: .7rem; }
.path-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.path-grid article { padding: 22px; background: var(--white); color: var(--ink); }
.path-grid h3 { margin: 17px 0 9px; }
.path-grid p { margin: 0; color: #5d6b70; font-size: .9rem; }
.path-tag { display: inline-block; padding: 4px 8px; color: white; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.path-tag.program { background: var(--spice); }
.path-tag.multiview { background: var(--plum); }
.path-tag.control { background: var(--olive); }

.route-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.notice { margin: 24px 0; padding: 14px 18px; border-left: 4px solid var(--olive); background: rgba(143,128,77,.12); }
.notice span { color: #685e37; font-weight: 800; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.notice p { margin: 4px 0 0; color: #59676b; font-size: .88rem; }
.route-facts { display: grid; gap: 13px; }
.route-facts article { display: grid; grid-template-columns: 14px 1fr; gap: 15px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); }
.route-facts h3 { margin: 0 0 2px; font-size: 1rem; }
.route-facts strong { color: #667377; font-size: .78rem; }
.route-facts p { margin: 6px 0 0; color: #657277; font-size: .84rem; }
.dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; }
.dot.mica { background: var(--spice); }
.dot.fish { background: var(--olive); }
.dot.neutral { background: #899296; }
.route-card { margin: 0; padding: 28px; min-height: 520px; display: flex; flex-direction: column; justify-content: center; background: var(--midnight); color: var(--white); box-shadow: var(--shadow); }
.map-block { padding: 24px; display: grid; gap: 6px; border: 1px solid rgba(255,255,255,.25); }
.map-block span { color: rgba(255,255,255,.5); font-size: .67rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.map-block strong { font-size: 1.25rem; }
.map-block small { color: rgba(255,255,255,.6); }
.fish-block { border-left: 5px solid var(--olive); }
.mica-block { border-left: 5px solid var(--spice); }
.bridge-line { min-height: 120px; margin-left: 48px; padding-left: 24px; display: flex; flex-direction: column; justify-content: center; border-left: 2px dashed #e7a697; }
.bridge-line b { color: #ff8b76; }
.bridge-line span { color: rgba(255,255,255,.5); font-size: .78rem; }
.route-card figcaption { margin-top: 24px; color: rgba(255,255,255,.55); font-size: .78rem; }

.bridge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bridge-grid article { padding: 26px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.17); }
.blue-slide .mini-label { color: #ff9c89; }
.bridge-grid dl { margin: 19px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bridge-grid dl div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; }
.bridge-grid dt { font-weight: 800; }
.bridge-grid dd { margin: 5px 0 0; color: rgba(255,255,255,.65); font-size: .87rem; }
.check-strip { margin-top: 20px; display: grid; grid-template-columns: repeat(4,1fr); background: var(--white); color: var(--ink); }
.check-strip div { padding: 17px 18px; display: grid; gap: 5px; border-right: 1px solid var(--line); }
.check-strip div:last-child { border: 0; }
.check-strip span { color: var(--spice); font-size: .63rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.check-strip strong { font-size: .78rem; }

.power-path { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; }
.power-path article { padding: 20px; display: grid; align-content: center; min-height: 135px; background: var(--white); border: 1px solid var(--line); }
.power-path article.primary { color: var(--white); background: var(--midnight); }
.power-path article span { color: var(--spice); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.power-path article strong { margin: 8px 0; }
.power-path article small { color: #6a7679; }
.power-path article.primary small { color: rgba(255,255,255,.6); }
.power-path > i, .power-path > b { align-self: center; color: var(--spice); font-style: normal; }
.power-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.power-grid article { padding: 20px; background: rgba(255,255,255,.72); border-top: 3px solid var(--olive); }
.power-grid ul, .changeover-grid ul { margin: 14px 0 0; padding-left: 20px; color: #5b696d; font-size: .86rem; }
.power-grid li + li, .changeover-grid li + li { margin-top: 7px; }

.schedule-slide .slide-inner { justify-content: flex-start; padding-top: 35px; }
.schedule-slide .section-heading { margin-bottom: 22px; }
.coverage-day { margin: 22px 0 9px; color: var(--midnight); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.coverage-day:first-of-type { margin-top: 0; }
.coverage-table { background: var(--white); border: 1px solid var(--line); }
.coverage-row { display: grid; grid-template-columns: 1.05fr 1.55fr .85fr 1fr; align-items: center; min-height: 49px; border-bottom: 1px solid var(--line); }
.coverage-row:last-child { border-bottom: 0; }
.coverage-row > * { padding: 8px 14px; }
.coverage-row > span:first-child { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.coverage-row small { min-width: 50px; color: #879092; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.coverage-row strong { font-size: .86rem; }
.coverage-header { min-height: 34px; color: rgba(255,255,255,.72); background: var(--midnight); font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mica-row { border-left: 5px solid var(--spice); }
.fish-row { border-left: 5px solid var(--olive); }
.schedule-notes { margin-top: 15px; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.schedule-notes div { padding: 12px 15px; display: grid; gap: 3px; background: #eee8de; }
.schedule-notes span { color: var(--spice); font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.schedule-notes strong { font-size: .77rem; }
.source-note { margin: 12px 0 0; color: #6a767a; font-size: .74rem; }
.source-note a { color: var(--midnight); text-decoration-color: var(--spice); }

.handoff { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 15px; align-items: center; }
.handoff article { min-height: 290px; padding: 25px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.handoff article.center { border-color: var(--spice); background: rgba(228,88,64,.13); }
.handoff article > span { color: #ff9c89; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.handoff article > b { width: 54px; height: 54px; margin: 19px 0; display: grid; place-items: center; border-radius: 50%; color: var(--midnight); background: var(--white); }
.handoff h3 { margin-bottom: 10px; }
.handoff p { color: rgba(255,255,255,.65); font-size: .88rem; }
.handoff > i { color: var(--spice); font-style: normal; font-size: 1.3rem; }
.changeover-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.changeover-grid article { padding: 18px; color: var(--ink); background: var(--white); }
.changeover-grid article > span { color: var(--spice); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 1080px) {
  .rail { width: 72px; padding: 34px 12px; }
  .rail a { justify-content: center; padding: 9px 4px; font-size: 0; }
  .rail a span { font-size: .7rem; }
  main { margin-left: 72px; }
  .hero-grid, .route-layout { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-card div:nth-last-child(-n+2) { border-bottom: 0; }
  .route-card { min-height: auto; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .numbered-grid, .path-grid { grid-template-columns: 1fr; }
  .signal-chain { grid-template-columns: 1fr; }
  .signal-chain i { text-align: center; }
  .check-strip, .schedule-notes { grid-template-columns: 1fr 1fr; }
  .power-path { grid-template-columns: 1fr; }
  .power-path > i, .power-path > b { text-align: center; }
  .slide-inner { justify-content: flex-start; }
}

@media (max-width: 760px) {
  body { overflow: auto; }
  .topbar { position: sticky; height: 68px; padding: 0 16px; }
  .brand img { width: 92px; height: 38px; }
  .brand span { display: none; }
  .rail { position: sticky; z-index: 14; top: 68px; width: 100%; height: 48px; padding: 5px 10px; flex-direction: row; justify-content: space-between; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail a { min-width: 36px; min-height: 36px; }
  main { margin: 0; height: auto; display: block; overflow: visible; scroll-snap-type: none; }
  .slide { min-height: 0; border-bottom: 1px solid var(--line); }
  .slide-inner { width: calc(100% - 34px); min-height: 0; padding: 50px 0 60px; }
  .slide-index { right: 16px; bottom: 14px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.35rem; }
  .hero-slide { background: var(--paper); }
  .hero-grid, .hero-card, .numbered-grid, .camera-layouts, .result-strip, .path-grid, .bridge-grid, .power-grid, .changeover-grid { grid-template-columns: 1fr; }
  .hero-card div { border-bottom: 1px solid rgba(255,255,255,.13) !important; }
  .hero-card div:last-child { border-bottom: 0 !important; }
  .bridge-grid dl { grid-template-columns: 1fr; }
  .check-strip, .schedule-notes { grid-template-columns: 1fr; }
  .coverage-table { overflow-x: auto; }
  .coverage-row { min-width: 750px; }
  .handoff { grid-template-columns: 1fr; }
  .handoff > i { transform: rotate(90deg); text-align: center; }
}

@media print {
  body { overflow: visible; background: white; }
  .topbar, .rail { display: none !important; }
  main { margin: 0; height: auto; }
  .slide { display: block; height: auto; min-height: 100vh; overflow: visible; page-break-after: always; }
  .slide-inner { width: calc(100% - 60px); }
  .slide-index { display: block; }
}
