/* Mapa de serviços · Grupo APEX
   A·P·E·X: four lines, one commercial system. APEX world: near-black, high contrast, straight lines, strong type.
   Line colours belong to the lines only; amber is X (the diagnosis), the one action. */

:root {
  --bg: #05070b;
  --bg-2: #0a0d13;
  --bg-3: #121722;
  --line: #1b2230;
  --text: #f1f4f9;
  --muted: #a3aec0;
  --dim: #7a8698;
  --blue: #0096ff;
  --amber: #f5a524;
  --amber-ink: #1a1102;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: max(16px, calc((100vw - 1240px) / 2));
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--line) var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue);
  overflow-x: clip;
}
::selection {
  background: rgba(0, 150, 255, 0.35);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
img,
video {
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 700 15px/1 var(--display);
  text-decoration: none;
  transition:
    background-color 220ms var(--ease),
    border-color 220ms var(--ease),
    transform 220ms var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn-amber {
  background: var(--amber);
  color: var(--amber-ink);
}
.btn-amber:hover {
  background: #ffbb4d;
}
.btn-ghost {
  color: var(--text);
  border-color: rgba(241, 244, 249, 0.28);
  background: rgba(5, 7, 11, 0.3);
}
.btn-ghost:hover {
  border-color: var(--text);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 16.5px;
}

/* ------------------------------------------------------------------ header */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--pad);
  background: linear-gradient(rgba(5, 7, 11, 0.85), rgba(5, 7, 11, 0));
  transition: background-color 300ms var(--ease);
}
/* Keeps the page (including text-clipped chapter letters) under the fixed header. */
main {
  position: relative;
  z-index: 0;
}
.top.solid {
  background: rgba(5, 7, 11, 0.88);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 500 17px/1 var(--display);
}
.brand strong {
  font-weight: 700;
}
.top-nav {
  display: none;
  gap: 26px;
}
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font: 600 14px/1 var(--display);
}
.top-nav a:hover {
  color: var(--text);
}
@media (min-width: 900px) {
  .top-nav {
    display: flex;
  }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: 120px var(--pad) 64px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg) url("assets/tunnel.jpg") center / cover;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25) brightness(0.6);
}
/* APEX blue cast over the tunnel, then the page fades in from the bottom. */
.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
}
.hero-media::before {
  background: #0a3d8a;
  mix-blend-mode: color;
}
.hero-media::after {
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.55) 0%, rgba(5, 7, 11, 0.15) 30%, rgba(5, 7, 11, 0.7) 62%, var(--bg) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(5, 7, 11, 0.6));
}
.hero-inner {
  width: 100%;
}

.acronym {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 28px);
  max-width: 1080px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.acronym li {
  display: grid;
  gap: 10px;
}
.acr-letter {
  display: block;
  font: 700 clamp(4.6rem, 17vw, 13rem) / 0.8 var(--display);
  letter-spacing: -0.04em;
  color: var(--text);
}
.acronym li::before {
  content: "";
  order: 2;
  display: block;
  height: clamp(6px, 0.9vw, 10px);
  border-radius: 99px;
  background: var(--c);
  transform-origin: left;
}
.acr-word {
  order: 3;
  color: var(--c);
  font: 600 clamp(0.85rem, 1.6vw, 1.15rem) / 1 var(--mono);
  letter-spacing: -0.01em;
}
.hero h1 {
  margin-top: clamp(28px, 4vw, 48px);
  max-width: 22ch;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  text-wrap: balance;
}
.hero h1 span {
  color: var(--muted);
}
.lede {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* entrance: letters rise, their line draws, then the words follow */
.motion .acr-letter {
  animation: rise 1100ms var(--ease) both;
  animation-delay: calc(120ms + var(--i) * 110ms);
}
.motion .acronym li::before {
  animation: draw 1000ms var(--ease) both;
  animation-delay: calc(420ms + var(--i) * 110ms);
}
.motion .acr-word,
.motion .hero h1,
.motion .lede,
.motion .hero-actions {
  animation: fade-up 900ms var(--ease) both;
  animation-delay: 820ms;
}
.motion .acr-word {
  animation-delay: calc(640ms + var(--i) * 110ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40%);
  }
}
@keyframes draw {
  from {
    transform: scaleX(0);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ------------------------------------------------------------------ map */
.network {
  padding: 96px var(--pad) 72px;
}
.network-head h2 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 5vw, 4rem);
}
.ask {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 28px;
  font: 600 clamp(1.3rem, 2.6vw, 2rem) / 1.2 var(--display);
  letter-spacing: -0.02em;
  color: var(--muted);
}
.ask-select {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.ask-select::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.ask select {
  appearance: none;
  max-width: 100%;
  padding: 2px 34px 6px 0;
  border: 0;
  border-bottom: 3px solid var(--amber);
  border-radius: 0;
  background: transparent;
  color: var(--amber);
  font: inherit;
  cursor: pointer;
}
.ask select option {
  background: var(--bg-3);
  color: var(--text);
  font: 500 16px var(--body);
}
.route-note {
  min-height: 1.6em;
  margin: 18px 0 0;
  color: var(--text);
  font: 500 14px/1.6 var(--mono);
}

.map-wrap {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.map {
  display: block;
  width: 100%;
  min-width: 1100px;
  height: auto;
  padding: 24px 0 18px;
}
.map.compact {
  min-width: 0;
  padding: 16px 0 8px;
}
.map.compact .track {
  stroke-width: 6;
}
.map.compact .track-under {
  stroke-width: 12;
}
.map.compact .station .ring {
  stroke-width: 3;
}
.map.compact .station.lit .ring {
  stroke-width: 4;
}
.map.compact .st-code {
  font-size: 10px;
}
.map.compact .hub .ring {
  stroke-width: 4;
}
.map.compact .hub-label {
  font-size: 14px;
}
.map.compact .hub-tag {
  font-size: 11px;
}
.line-name {
  fill: var(--c);
  font: 700 13px var(--display);
}
.map-hint {
  margin: 14px 0 0;
  color: var(--dim);
  font: 500 13px var(--mono);
}
.track-under {
  fill: none;
  stroke: var(--bg);
  stroke-width: 22;
  stroke-linejoin: round;
}
.track {
  fill: none;
  stroke: var(--c);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge rect {
  fill: var(--c);
}
.badge-letter {
  fill: var(--bg);
  font: 700 18px var(--display);
}
.badge-name {
  fill: var(--text);
  font: 700 17px var(--display);
}
.station {
  cursor: pointer;
  outline: none;
}
.station .hit {
  fill: transparent;
}
.station .ring {
  fill: var(--bg);
  stroke: #fff;
  stroke-width: 4;
  transition: stroke 220ms var(--ease);
}
.station .core {
  fill: var(--bg);
  transition: fill 220ms var(--ease);
}
.station:hover .ring,
.station:focus-visible .ring {
  stroke: var(--c, var(--amber));
}
.station:hover .core,
.station:focus-visible .core {
  fill: var(--c, var(--amber));
}
.st-label {
  fill: var(--text);
  font: 600 13.5px var(--body);
}
.st-code {
  fill: var(--dim);
  font: 600 11px var(--mono);
}
.hub {
  --c: var(--amber);
}
.hub .ring {
  stroke: var(--amber);
  stroke-width: 6;
}
.hub .core {
  fill: var(--amber);
}
.hub-pulse {
  fill: rgba(245, 165, 36, 0.14);
  transform-origin: center;
  transform-box: fill-box;
}
.motion .hub-pulse {
  animation: pulse 2600ms var(--ease) infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.hub-code {
  fill: var(--amber);
}
.hub-label {
  font: 700 16px var(--display);
}
.hub-tag {
  fill: var(--amber);
  font: 600 12.5px var(--mono);
}
.train {
  fill: #fff;
  filter: drop-shadow(0 0 6px var(--c)) drop-shadow(0 0 2px var(--c));
  pointer-events: none;
}

/* first draw */
.motion .map .track {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
}
.motion .map.drawn .track {
  transition: stroke-dashoffset 1800ms var(--ease);
  stroke-dashoffset: 0;
}
.motion .map .station:not(.hub),
.motion .map .badge {
  opacity: 0;
}
.motion .map.drawn .station:not(.hub),
.motion .map.drawn .badge {
  opacity: 1;
  transition: opacity 500ms var(--ease);
  transition-delay: calc(600ms + var(--i, 6) * 80ms);
}

/* route */
.map-line,
.station,
.row {
  transition: opacity 360ms var(--ease);
}
.routing .map-line:not(.on) {
  opacity: 0.14;
}
.routing .map-line.on .station:not(.lit) {
  opacity: 0.32;
}
.station.lit .ring {
  stroke: var(--amber);
  stroke-width: 6;
}
.station.lit .core {
  fill: var(--amber);
}

/* ------------------------------------------------------------------ chapters */
.chapter {
  display: grid;
  gap: 32px;
  padding: 88px var(--pad);
  border-top: 1px solid var(--line);
  scroll-margin-top: 60px;
}
@media (min-width: 960px) {
  .chapter {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    padding-block: 120px;
  }
  .chapter-mark {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}
.chapter-letter {
  display: block;
  font: 700 clamp(8rem, 24vw, 19rem) / 0.78 var(--display);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--c);
}
.chapter-mark h2 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}
.chapter-mark h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  margin-top: 18px;
  border-radius: 99px;
  background: var(--c);
}
.chapter-mark p {
  max-width: 40ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.rows li {
  border-bottom: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 22px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.row-code {
  padding-top: 5px;
  color: var(--c);
  font: 700 13px var(--mono);
}
.row-name {
  display: block;
  font: 700 clamp(1.2rem, 2vw, 1.5rem) / 1.2 var(--display);
  letter-spacing: -0.015em;
  transition: color 220ms var(--ease);
}
.row-resolve {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.row-go {
  padding-top: 4px;
  color: var(--dim);
  font: 600 20px/1 var(--display);
  transition:
    transform 260ms var(--ease),
    color 260ms var(--ease);
}
.row:hover .row-name {
  color: var(--c);
}
.row:hover .row-go {
  transform: translateX(6px);
  color: var(--c);
}
.routing .row:not(.lit) {
  opacity: 0.35;
}
.row.lit .row-code {
  color: var(--amber);
}

/* ------------------------------------------------------------------ closing */
.board {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 120px var(--pad);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
@media (min-width: 960px) {
  .board {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }
}
.board-x {
  font: 700 clamp(12rem, 34vw, 26rem) / 0.72 var(--display);
  color: var(--amber);
  letter-spacing: -0.05em;
}
.board-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}
.board-copy > p {
  max-width: 52ch;
  margin: 20px 0 32px;
  color: var(--muted);
  font-size: 1.1rem;
}
.motto {
  margin: 36px 0 0;
  color: var(--dim);
  font: 500 13px/1.5 var(--mono);
}

.foot {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 16px calc(48px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
  text-align: center;
}
.foot img {
  width: 88px;
  height: auto;
}
.foot p {
  margin: 0;
}
.foot a {
  color: var(--muted);
  text-underline-offset: 4px;
}

/* reveal */
.reveal {
  transition:
    opacity 900ms var(--ease),
    transform 900ms var(--ease);
}
.reveal:not(.in) {
  opacity: 0;
  transform: translateY(32px);
}

/* ------------------------------------------------------------------ station sheet */
.sheet {
  --c: var(--amber);
  width: min(560px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
}
.sheet::backdrop {
  background: rgba(2, 3, 6, 0.75);
}
.sheet-inner {
  position: relative;
  padding: 30px 26px calc(32px + env(safe-area-inset-bottom));
}
.sheet-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-3);
  color: var(--text);
  cursor: pointer;
}
.sheet-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
  color: var(--muted);
  font: 600 14px var(--display);
}
.sheet-letter {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--c);
  color: var(--bg);
  font: 700 16px var(--display);
}
.sheet-code {
  color: var(--dim);
  font: 600 12px var(--mono);
}
.sheet-title {
  margin-top: 22px;
  padding-right: 52px;
  font-size: clamp(2rem, 6vw, 2.8rem);
}
.sheet-resolve {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  font-size: 1.14rem;
  line-height: 1.5;
}
.sheet h4 {
  margin: 30px 0 12px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.01em;
}
.sheet-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sheet-list li {
  position: relative;
  padding-left: 24px;
}
.sheet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--c);
}
.sheet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--text);
  font: 600 13.5px var(--body);
  cursor: pointer;
}
.chip code {
  color: var(--c);
  font: 700 11px var(--mono);
}
.chip:hover {
  border-color: var(--c);
}
.sheet-cta {
  width: 100%;
  margin-top: 34px;
}
.sheet[open] {
  animation: sheet-in 400ms var(--ease);
}
@keyframes sheet-in {
  from {
    transform: translateX(48px);
    opacity: 0;
  }
}

/* ------------------------------------------------------------------ motion layer */

/* Header progress: a line that fills with the colour of the chapter you are in. */
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(241, 244, 249, 0.06);
}
.progress-fill {
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: background-color 400ms var(--ease);
}

/* Departure board under the letters. */
.ticker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding: 10px 16px;
  border: 1px solid rgba(241, 244, 249, 0.14);
  border-radius: 10px;
  background: rgba(5, 7, 11, 0.55);
  backdrop-filter: blur(6px);
  font: 600 14px/1 var(--mono);
}
.ticker-label {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11.5px;
}
.ticker-code {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--c, var(--amber));
  color: var(--bg);
  font-weight: 700;
  transition: background-color 300ms var(--ease);
}
.ticker-name {
  min-width: 18ch;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* Slow push through the tunnel; letters lean toward the pointer. */
.motion .hero-media video {
  animation: push 26s ease-in-out infinite alternate;
}
@keyframes push {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.14);
  }
}
.acronym li {
  transform: translate(calc(var(--mx, 0) * (var(--i) - 1.5) * 14px), calc(var(--my, 0) * -10px));
  transition: transform 600ms var(--ease);
}

/* Chapter letters fill with their colour as you scroll through the chapter. */
.chapter-letter {
  position: relative;
}
.chapter-letter::after {
  content: attr(data-l);
  position: absolute;
  inset: 0;
  color: var(--c);
  -webkit-text-stroke: 0;
  clip-path: inset(calc(100% - var(--fill, 0%)) 0 0 0);
}

/* A train runs down the rail beside the station list. */
.rows {
  position: relative;
  padding-left: 26px;
  border-top: 0;
}
.rows::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--c) 30%, transparent);
}
.rail-train {
  position: absolute;
  left: 2px;
  top: calc(var(--t, 0) * (100% - 12px));
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 3px var(--c),
    0 0 18px 4px var(--c);
}
.rows li:first-of-type {
  border-top: 1px solid var(--line);
}
.motion .chapter .rows li {
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + 150ms);
}
.motion .chapter.in .rows li {
  opacity: 1;
  transform: none;
}

/* Route train and arrivals on the map. */
.route-train {
  fill: var(--amber);
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 0 10px var(--amber)) drop-shadow(0 0 3px var(--amber));
  opacity: 0;
  transition: opacity 200ms var(--ease);
  pointer-events: none;
}
.route-train.on {
  opacity: 1;
}
.station.arrive .ring {
  animation: arrive 700ms var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes arrive {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.7);
  }
  100% {
    transform: scale(1);
  }
}

/* Buttons: a sweep of light on hover. */
.btn-amber {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-amber::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
}
.motion .btn-amber:hover::after {
  transform: translateX(120%);
  transition: transform 700ms var(--ease);
}

/* ------------------------------------------------------------------ small screens */
@media (max-width: 760px) {
  .hero {
    padding-bottom: 44px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .network {
    padding-top: 72px;
  }
  .map-wrap {
    overflow: visible;
  }
  .row {
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 18px 0;
  }
  .rows {
    padding-left: 22px;
  }
  .chapter {
    padding-block: 64px;
    gap: 24px;
  }
  .chapter-letter {
    font-size: 7rem;
  }
  .board {
    padding-block: 72px;
  }
  .board-x {
    font-size: 9rem;
  }
  .ticker-name {
    min-width: 0;
  }
  .sheet {
    width: 100vw;
    height: auto;
    max-height: 88dvh;
    margin: auto 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
  }
  .sheet[open] {
    animation-name: sheet-up;
  }
  @keyframes sheet-up {
    from {
      transform: translateY(48px);
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }
  .hero-media video {
    display: none;
  }
}
