:root {
  --paper: #F7F9FC;
  --paper-deep: #EEF3F9;
  --white: #FFFFFF;
  --ink: #10233F;
  --muted: #5D6B7E;
  --hairline: #D9E1EC;
  --blue: #176BFF;
  --blue-soft: #DDEAFF;
  --magenta: #D92F83;
  --magenta-soft: #F9DFEC;
  --amber: #F4A62A;
  --amber-soft: #FFF0D5;
  --teal: #0A9B8E;
  --teal-soft: #D8F3EE;
  --display: "Avenir Next", "Trebuchet MS", sans-serif;
  --reading: Charter, "Bitstream Charter", Georgia, serif;
  --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 28px 80px rgba(16, 35, 63, .09), 0 3px 10px rgba(16, 35, 63, .05);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.92%, rgba(16, 35, 63, .025) 50%, transparent 50.08%) 0 0 / 100% 100%,
    var(--paper);
  font-family: var(--reading);
  font-size: 19px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--ink);
  background: #BED4FF;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-family: var(--display);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0;
  font-family: var(--display);
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}

.site-mark__dot {
  width: 14px;
  height: 14px;
  border: 4px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--blue-soft);
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.motion-toggle__icon {
  width: 12px;
  height: 14px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.motion-toggle[aria-pressed="true"] .motion-toggle__icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
  border-right: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, .86fr) minmax(580px, 1.14fr);
  align-items: center;
  gap: clamp(32px, 5vw, 90px);
  width: min(1360px, calc(100% - 64px));
  min-height: calc(100vh - 102px);
  margin: 0 auto;
  padding: 46px 0 100px;
}

.hero__copy {
  padding-left: clamp(0px, 3vw, 58px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--blue);
  font-family: var(--utility);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: .98;
  letter-spacing: -.048em;
}

h1 {
  max-width: 760px;
  font-size: clamp(56px, 6vw, 102px);
  font-weight: 750;
}

h1 em {
  color: var(--blue);
  font-family: var(--reading);
  font-weight: 400;
  letter-spacing: -.06em;
}

.hero__lede {
  max-width: 660px;
  margin: 34px 0 28px;
  color: var(--muted);
  font-size: clamp(20px, 1.55vw, 25px);
  line-height: 1.55;
}

.start-link,
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.start-link span,
.back-to-top span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  text-decoration: none;
  transition: transform .2s ease;
}

.start-link:hover span {
  transform: translateY(4px);
}

.hero__scene {
  position: relative;
  margin: 0;
}

.hero__scene::before {
  position: absolute;
  z-index: -1;
  inset: 12% -3% -3% 12%;
  content: "";
  background: repeating-linear-gradient(135deg, rgba(23, 107, 255, .08) 0 1px, transparent 1px 16px);
  border-radius: 30px;
}

.hero__scene svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 70px rgba(23, 107, 255, .08));
}

.hero__scene figcaption {
  position: absolute;
  right: 4%;
  bottom: 4%;
  max-width: 250px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 11px;
  line-height: 1.45;
}

.hero__scene text,
.interactive-scene text,
.core-scene text {
  font-family: var(--utility);
  font-size: 14px;
}

.signal-thread {
  stroke: var(--blue);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 3 15;
  animation: thread-flow 1.6s linear infinite;
}

.signal-thread--hero {
  animation-duration: 2.2s;
}

.radio-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: radio-breathe 2.4s ease-out infinite;
}

.radio-pulse--two {
  animation-delay: .7s;
}

.reading-column,
.chapter-heading {
  width: min(720px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.article-intro {
  padding: 90px 0 150px;
  font-size: 24px;
  line-height: 1.7;
}

.article-intro p,
.chapter-heading > p:last-child,
.closing > p:not(.eyebrow) {
  margin: 0 0 1.4em;
}

.dropcap::first-letter {
  float: left;
  margin: .12em .12em 0 0;
  color: var(--blue);
  font-family: var(--display);
  font-size: 5.5em;
  font-weight: 700;
  line-height: .72;
}

.chapter {
  padding: 80px 0 150px;
  scroll-margin-top: 30px;
}

.chapter-heading {
  position: relative;
}

.chapter-heading .eyebrow {
  margin-bottom: 18px;
}

.chapter-heading h2,
.closing h2 {
  margin-bottom: 32px;
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 720;
}

.chapter-heading > p:last-child,
.closing > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.7;
}

.chapter-marker {
  position: absolute;
  top: 2px;
  right: calc(100% + 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 95px;
  color: var(--blue);
  font-family: var(--utility);
  line-height: 1;
}

.chapter-marker span {
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.chapter-marker strong {
  font-size: 38px;
}

.chapter--amber .eyebrow,
.chapter--amber .chapter-marker {
  color: #B36B00;
}

.chapter--teal .eyebrow,
.chapter--teal .chapter-marker {
  color: var(--teal);
}

.chapter--magenta .eyebrow,
.chapter--magenta .chapter-marker {
  color: var(--magenta);
}

.interactive-scene,
.core-scene {
  width: min(1160px, calc(100% - 48px));
  margin: 64px auto 0;
  background: var(--white);
  border: 1px solid rgba(217, 225, 236, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.interactive-scene > svg,
.core-scene > svg {
  display: block;
  width: 100%;
  height: auto;
}

.scene-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  min-height: 115px;
  padding: 24px 32px;
  background: rgba(247, 249, 252, .84);
  border-bottom: 1px solid var(--hairline);
}

.control-group {
  flex: 1;
}

.control-group label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.control-group output {
  color: var(--blue);
  font-family: var(--utility);
}

.range-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.range-row > span {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

input[type="range"] {
  width: 100%;
  min-height: 30px;
  margin: 0;
  accent-color: var(--blue);
  cursor: ew-resize;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--hairline);
  border-radius: 999px;
}

input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  background: var(--white);
  border: 6px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 35, 63, .18);
  -webkit-appearance: none;
}

.chapter--amber input[type="range"] {
  accent-color: var(--amber);
}

.chapter--amber input[type="range"]::-webkit-slider-thumb {
  border-color: var(--amber);
}

.chapter--magenta input[type="range"] {
  accent-color: var(--magenta);
}

.chapter--magenta input[type="range"]::-webkit-slider-thumb {
  border-color: var(--magenta);
}

.signal-readout,
.serving-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-family: var(--utility);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.signal-bars {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  height: 21px;
}

.signal-bars i {
  display: block;
  width: 5px;
  background: var(--hairline);
  border-radius: 2px;
}

.signal-bars i:nth-child(1) { height: 6px; }
.signal-bars i:nth-child(2) { height: 11px; }
.signal-bars i:nth-child(3) { height: 16px; }
.signal-bars i:nth-child(4) { height: 21px; }
.signal-bars i.is-on { background: var(--blue); }

.interactive-scene figcaption,
.core-scene figcaption {
  padding: 22px 32px 26px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.6;
}

.interactive-scene figcaption p {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 650;
}

.interactive-scene figcaption span {
  display: block;
}

.tower path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linejoin: round;
}

.tower > circle:not(.tower-halo) {
  fill: var(--muted);
}

.tower text {
  fill: var(--muted);
  text-anchor: middle;
}

.tower-halo {
  fill: transparent;
  stroke: transparent;
  stroke-width: 3;
}

.tower.is-serving > circle:not(.tower-halo) {
  fill: var(--blue);
}

.tower.is-serving .tower-halo {
  fill: var(--blue-soft);
  stroke: var(--blue);
  animation: tower-halo 2.2s ease-out infinite;
}

.tower.is-serving text {
  fill: var(--blue);
  font-weight: 700;
}

.map-phone > rect:first-child {
  fill: var(--ink);
}

.map-phone > rect:nth-child(2) {
  fill: var(--white);
}

.map-phone circle {
  fill: #91A0B4;
}

.scheduler-scene {
  border-color: #F1DFC0;
}

.scheduler-scene .scene-toolbar {
  background: #FFFBF3;
  border-color: #F1DFC0;
}

.scheduler-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 500px;
}

.phone-cluster {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  align-content: center;
  justify-content: center;
  gap: 22px;
  padding: 30px;
  background: #FFFBF3;
  border-right: 1px solid #F1DFC0;
}

.user-phone {
  position: relative;
  width: 42px;
  height: 72px;
  border: 4px solid var(--ink);
  border-radius: 9px;
  background: var(--white);
}

.user-phone::before {
  position: absolute;
  right: 7px;
  bottom: 6px;
  left: 7px;
  height: 4px;
  content: "";
  background: var(--user-color);
  border-radius: 999px;
}

.user-phone::after {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 11px;
  height: 3px;
  content: "";
  background: var(--hairline);
  border-radius: 2px;
  transform: translateX(-50%);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  max-width: 420px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 10px;
}

.legend i {
  width: 9px;
  height: 9px;
  background: var(--user-color);
  border-radius: 2px;
}

.resource-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 66px 54px;
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 166, 42, .07), transparent 60%),
    var(--white);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 5px;
  width: 100%;
  max-width: 690px;
  aspect-ratio: 2 / 1;
  padding: 8px;
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.resource-block {
  background: var(--user-color);
  border-radius: 3px;
  transform-origin: center;
  animation: resource-enter .35s ease both;
}

.axis-label {
  position: absolute;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.axis-label--y {
  top: 50%;
  left: 20px;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

.axis-label--x {
  right: 54px;
  bottom: 24px;
}

.core-scene {
  background: #F3FAF9;
  border-color: #CFE8E4;
}

.core-cable {
  fill: none;
  stroke: #9DD9D2;
  stroke-width: 8;
  stroke-linecap: round;
}

.core-cable--lower {
  stroke: #B7E2DD;
}

.core-tower path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 8;
  stroke-linejoin: round;
}

.core-tower circle {
  fill: var(--teal);
}

.core-tower text,
.core-card + text,
.destination-cloud text,
.core-scene g > text {
  fill: var(--ink);
  text-anchor: middle;
}

.core-card {
  fill: var(--white);
  stroke: #CFE8E4;
  stroke-width: 2;
}

.core-card__light {
  fill: var(--teal);
}

.core-card__line {
  fill: none;
  stroke: #84CFC6;
  stroke-width: 9;
  stroke-linecap: round;
}

.destination-cloud path {
  fill: var(--white);
  stroke: var(--teal);
  stroke-width: 5;
}

.packet-stream circle {
  fill: var(--teal);
  offset-path: path("M155 280C283 280 296 169 430 169H820");
  animation: packet-travel 4s linear infinite;
}

.packet-stream circle:nth-child(2) { animation-delay: -1.3s; }
.packet-stream circle:nth-child(3) { animation-delay: -2.6s; }

.route-scene {
  padding-top: 32px;
}

.route-stage-card {
  width: min(620px, calc(100% - 64px));
  min-height: 172px;
  margin: 0 auto 32px;
  padding: 24px 28px;
  background: var(--paper);
  border-left: 5px solid var(--blue);
  border-radius: 0 14px 14px 0;
}

.route-stage-card__count {
  margin: 0 0 6px;
  color: var(--blue);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.route-stage-card h3 {
  font-size: 28px;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.route-stage-card > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.route-diagram {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: start;
  width: calc(100% - 72px);
  margin: 0 auto;
  padding: 28px 0 18px;
}

.route-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 104px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  transition: color .25s ease, transform .25s ease;
}

.route-node.is-active {
  color: var(--blue);
  font-weight: 700;
  transform: translateY(-5px);
}

.route-node__icon {
  position: relative;
  display: block;
  width: 62px;
  height: 70px;
}

.phone-icon::before {
  position: absolute;
  inset: 4px 12px;
  content: "";
  background: var(--white);
  border: 5px solid currentColor;
  border-radius: 10px;
}

.phone-icon::after {
  position: absolute;
  right: 25px;
  bottom: 11px;
  left: 25px;
  height: 4px;
  content: "";
  background: currentColor;
  border-radius: 2px;
}

.phone-icon--pink {
  color: var(--magenta);
}

.tower-icon::before,
.tower-icon::after {
  position: absolute;
  content: "";
}

.tower-icon::before {
  top: 7px;
  left: 15px;
  width: 30px;
  height: 54px;
  border-right: 5px solid currentColor;
  border-bottom: 5px solid currentColor;
  border-left: 5px solid currentColor;
  transform: perspective(80px) rotateX(-18deg);
}

.tower-icon::after {
  top: 2px;
  left: 26px;
  width: 10px;
  height: 10px;
  background: currentColor;
  border-radius: 50%;
}

.core-icon::before {
  position: absolute;
  inset: 8px 2px;
  content: "";
  background:
    linear-gradient(currentColor, currentColor) 14px 15px / 30px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 14px 29px / 22px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 14px 43px / 34px 4px no-repeat,
    var(--white);
  border: 4px solid currentColor;
  border-radius: 10px;
}

.route-segment {
  position: relative;
  height: 70px;
}

.route-segment::before {
  position: absolute;
  top: 34px;
  right: 5px;
  left: 5px;
  height: 3px;
  content: "";
  background: var(--hairline);
}

.route-segment i {
  position: absolute;
  top: 30px;
  left: 5px;
  width: 11px;
  height: 11px;
  background: var(--blue);
  border-radius: 50%;
  opacity: 0;
}

.route-segment.is-travelled::before {
  background: var(--blue);
}

.route-segment.is-current i {
  opacity: 1;
  animation: route-dot 1.4s ease-in-out infinite alternate;
}

.route-control {
  width: calc(100% - 72px);
  margin: 24px auto 36px;
}

.handoff-scene {
  border-color: #EBCADD;
}

.handoff-scene .scene-toolbar {
  background: #FFF8FB;
  border-color: #EBCADD;
}

.serving-badge strong {
  color: var(--magenta);
}

.handoff-visual {
  background: linear-gradient(180deg, #FFF8FB, var(--white));
}

.handoff-visual > svg {
  display: block;
  width: 100%;
  height: auto;
}

.graph-grid path {
  fill: none;
  stroke: #E8DCE4;
  stroke-width: 1;
  stroke-dasharray: 3 7;
}

.signal-curve {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.signal-curve--west {
  stroke: var(--blue);
}

.signal-curve--east {
  stroke: var(--magenta);
}

.handoff-cursor {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 5 7;
}

.signal-dot {
  stroke: var(--white);
  stroke-width: 4;
}

.signal-dot--west { fill: var(--blue); }
.signal-dot--east { fill: var(--magenta); }

.graph-label {
  font-weight: 700;
}

.graph-label--west { fill: var(--blue); }
.graph-label--east { fill: var(--magenta); }
.axis-copy { fill: var(--muted); }

.handoff-road {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 130px;
  margin: -40px 50px 0;
}

.road-line {
  position: absolute;
  z-index: 0;
  right: 50px;
  left: 50px;
  height: 8px;
  background: #C9D1DC;
  border-radius: 4px;
}

.road-line::after {
  position: absolute;
  top: 3px;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: repeating-linear-gradient(90deg, var(--white) 0 16px, transparent 16px 28px);
}

.mini-tower {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 78px;
  border-right: 6px solid var(--blue);
  border-bottom: 6px solid var(--blue);
  border-left: 6px solid var(--blue);
  transform: perspective(80px) rotateX(-16deg);
}

.mini-tower--east {
  border-color: var(--magenta);
}

.car {
  position: absolute;
  z-index: 2;
  top: 47px;
  left: calc(18% - 28px);
  width: 56px;
  height: 31px;
  background: var(--ink);
  border-radius: 12px 14px 7px 7px;
  transition: left .08s linear;
}

.car::before {
  position: absolute;
  top: -15px;
  left: 13px;
  width: 29px;
  height: 18px;
  content: "";
  background: var(--ink);
  border-radius: 13px 13px 0 0;
}

.car::after {
  position: absolute;
  right: 6px;
  bottom: -6px;
  left: 6px;
  height: 12px;
  content: "";
  background:
    radial-gradient(circle at 7px 6px, var(--ink) 0 6px, transparent 6.5px),
    radial-gradient(circle at calc(100% - 7px) 6px, var(--ink) 0 6px, transparent 6.5px);
}

.car i {
  position: absolute;
  z-index: 2;
  top: -10px;
  left: 17px;
  width: 21px;
  height: 11px;
  background: #BFD7F0;
  clip-path: polygon(15% 0, 86% 0, 100% 100%, 0 100%);
}

.closing {
  padding: 100px 0 150px;
}

.closing h2 {
  max-width: 700px;
}

.back-to-top {
  margin-top: 16px;
}

.back-to-top span {
  background: var(--ink);
}

footer {
  padding: 38px 24px;
  color: #AAB8CA;
  background: var(--ink);
  font-family: var(--utility);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

footer p {
  max-width: 760px;
  margin: 0 auto;
}

footer p + p {
  margin-top: 8px;
}

footer a {
  color: var(--white);
  text-underline-offset: 4px;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 4px solid var(--amber);
  outline-offset: 4px;
}

body.is-paused *,
body.is-paused *::before,
body.is-paused *::after {
  animation-play-state: paused !important;
}

@keyframes thread-flow {
  to { stroke-dashoffset: -36; }
}

@keyframes radio-breathe {
  0%, 100% { opacity: .25; transform: scale(.88); }
  45% { opacity: 1; transform: scale(1); }
}

@keyframes tower-halo {
  0% { opacity: .95; r: 26px; }
  80%, 100% { opacity: 0; r: 48px; }
}

@keyframes resource-enter {
  from { opacity: 0; transform: scale(.72); }
}

@keyframes packet-travel {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

@keyframes route-dot {
  from { left: 5px; }
  to { left: calc(100% - 16px); }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .hero__copy {
    padding-left: 0;
  }

  .hero__scene {
    width: min(820px, 100%);
    margin: 20px auto 0;
  }

  .chapter-marker {
    right: calc(100% + 20px);
  }

  .scheduler-layout {
    grid-template-columns: 190px 1fr;
  }
}

@media (max-width: 820px) {
  body {
    background: var(--paper);
  }

  .site-header,
  .hero {
    width: min(100% - 40px, 680px);
  }

  .site-header {
    padding: 20px 0;
  }

  .hero {
    padding-top: 50px;
  }

  .chapter-marker {
    position: static;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    margin-bottom: 20px;
  }

  .chapter-marker strong {
    font-size: 24px;
  }

  .chapter-marker span {
    margin-bottom: 0;
  }

  .scene-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .signal-readout,
  .serving-badge {
    align-self: flex-start;
  }

  .scheduler-layout {
    grid-template-columns: 1fr;
  }

  .phone-cluster {
    grid-template-columns: repeat(6, 38px);
    gap: 15px;
    padding: 28px;
    border-right: 0;
    border-bottom: 1px solid #F1DFC0;
  }

  .user-phone {
    width: 35px;
    height: 57px;
  }

  .resource-panel {
    min-height: 390px;
  }

  .route-diagram {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
    width: calc(100% - 48px);
  }

  .route-node {
    flex-direction: row;
    width: auto;
    text-align: left;
  }

  .route-node.is-active {
    transform: translateX(6px);
  }

  .route-node__icon {
    width: 58px;
    height: 64px;
  }

  .route-segment {
    width: 58px;
    height: 34px;
  }

  .route-segment::before {
    top: 0;
    right: auto;
    bottom: 0;
    left: 28px;
    width: 3px;
    height: auto;
  }

  .route-segment i {
    top: 0;
    left: 24px;
  }

  .route-segment.is-current i {
    animation-name: route-dot-mobile;
  }

  .route-control {
    width: calc(100% - 48px);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 18px;
  }

  .site-header,
  .hero {
    width: calc(100% - 30px);
  }

  .site-mark span:last-child {
    display: none;
  }

  .motion-toggle {
    font-size: 13px;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 80px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 70px);
  }

  .hero__lede,
  .chapter-heading > p:last-child,
  .closing > p:not(.eyebrow) {
    font-size: 19px;
  }

  .hero__scene figcaption {
    position: static;
    margin-top: 12px;
  }

  .article-intro {
    padding: 70px 0 105px;
    font-size: 20px;
  }

  .chapter {
    padding: 55px 0 100px;
  }

  .reading-column,
  .chapter-heading,
  .interactive-scene,
  .core-scene {
    width: calc(100% - 30px);
  }

  .chapter-heading h2,
  .closing h2 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .interactive-scene,
  .core-scene {
    margin-top: 42px;
    border-radius: 16px;
  }

  .scene-toolbar,
  .interactive-scene figcaption,
  .core-scene figcaption {
    padding-right: 20px;
    padding-left: 20px;
  }

  .range-row {
    gap: 8px;
  }

  .city-scene > svg,
  .core-scene > svg,
  .handoff-visual > svg {
    width: 740px;
    max-width: none;
    transform: translateX(-15%);
  }

  .city-scene,
  .core-scene,
  .handoff-scene {
    overflow: hidden;
  }

  .phone-cluster {
    grid-template-columns: repeat(4, 36px);
  }

  .resource-panel {
    min-height: 310px;
    padding: 50px 28px;
  }

  .resource-grid {
    gap: 3px;
  }

  .axis-label--y {
    left: 11px;
  }

  .axis-label--x {
    right: 28px;
    bottom: 15px;
  }

  .route-stage-card {
    width: calc(100% - 40px);
    min-height: 200px;
  }

  .handoff-road {
    margin-right: 20px;
    margin-left: 20px;
  }

  .closing {
    padding: 70px 0 100px;
  }
}

@keyframes route-dot-mobile {
  from { top: 0; }
  to { top: calc(100% - 11px); }
}

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

@media (forced-colors: active) {
  .signal-thread,
  .signal-curve,
  .core-cable,
  .tower path,
  .core-tower path {
    stroke: CanvasText;
  }

  .resource-block,
  .signal-dot,
  .user-phone::before {
    forced-color-adjust: none;
    border: 1px solid CanvasText;
  }
}
