/* =========================================================================
   TRANSFER — a city journal mapped as a transit network
   ========================================================================= */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0f1f;
  --bg-deep: #070b16;
  --panel: #101736;
  --panel-2: #0c1329;
  --ink: #eef2ff;
  --muted: #97a3c6;
  --faint: #5d6a8e;
  --border: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);

  --culture: #ff2d95;
  --food: #ff9f1c;
  --movement: #3b8bff;
  --people: #16d39a;
  --places: #ac6bff;
  --saved: #ffd166;

  --grotesk: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Literata", Georgia, "Times New Roman", serif;

  --rail-w: 21rem;
  --radius: 0.9rem;
  --focus: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--grotesk);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Faint survey grid, like the paper under a map */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, rgba(59, 139, 255, 0.16), transparent 60%);
  background-size: 26px 26px, 100% 100%;
}

body.detail-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button,
a,
select,
input {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.16);
}

.legend__count,
.toggle__count,
.map__count,
.route__meta,
.stop__meta,
.detail__kicker {
  font-variant-numeric: tabular-nums;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #0a0f1f;
  padding: 0.6rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

/* =============================== Chrome ================================= */

.app {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.25rem);
  padding-left: max(clamp(1rem, 3vw, 2.25rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 3vw, 2.25rem), env(safe-area-inset-right));
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink);
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.masthead__mark {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--saved);
  filter: drop-shadow(0 0 12px rgba(255, 209, 102, 0.35));
}

.masthead__title {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

.masthead__tld {
  color: var(--saved);
}

.masthead__tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.68rem, 2vw, 0.8rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.masthead__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--people);
  box-shadow: 0 0 0 4px rgba(22, 211, 154, 0.18);
}

/* =============================== Layout ================================= */

.layout {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  grid-template-areas: "map rail";
  align-items: start;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.rail {
  grid-area: rail;
  min-width: 0;
}

.map {
  grid-area: map;
  min-width: 0;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "rail"
      "map";
  }
}

/* =============================== Rail =================================== */

.rail__card {
  position: sticky;
  top: 1rem;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .rail__card {
    position: static;
  }
}

.rail__eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saved);
}

.field + .field {
  margin-top: 0.9rem;
}

.field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__control {
  position: relative;
}

.field__icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}

#search {
  width: 100%;
  padding: 0.7rem 0.8rem 0.7rem 2.3rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#search::placeholder {
  color: var(--faint);
}
#search:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
#search:focus-visible {
  border-color: var(--saved);
  outline-offset: 1px;
}

#filter {
  width: 100%;
  padding: 0.7rem 2.2rem 0.7rem 0.8rem;
  background-color: var(--bg-deep);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 1.15rem, calc(100% - 0.65rem) 1.15rem;
  background-size: 0.42rem 0.42rem, 0.42rem 0.42rem;
  background-repeat: no-repeat;
  transition: border-color 0.15s ease;
}
#filter:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
#filter option {
  background-color: var(--bg-deep);
  color: var(--ink);
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.toggle:hover {
  border-color: var(--saved);
}
.toggle__lead {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.toggle__glyph {
  color: var(--saved);
  font-size: 1.05rem;
}
.toggle__count {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}
.toggle[aria-pressed="true"] {
  background: var(--saved);
  border-color: var(--saved);
  color: #1a1300;
}
.toggle[aria-pressed="true"] .toggle__glyph,
.toggle[aria-pressed="true"] .toggle__count {
  color: #1a1300;
}
.toggle[aria-pressed="true"] .toggle__count {
  background: rgba(0, 0, 0, 0.14);
}

.legend {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border);
}

.legend__title {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.legend__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.legend__button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: var(--ink);
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.legend__button:hover {
  background: rgba(255, 255, 255, 0.06);
}
.legend__button[aria-pressed="true"] {
  border-color: var(--lc);
  background: color-mix(in srgb, var(--lc) 16%, transparent);
}
.legend__swatch {
  flex: none;
  width: 1.6rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--lc);
}
.legend__name {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legend__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.rail__hint {
  margin: 1.2rem 0 0;
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* =============================== Map ==================================== */

.map__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.map__title {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.map__sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.map__count {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--saved);
}

.routes {
  display: grid;
  gap: 0.5rem;
}
.routes[hidden] {
  display: none;
}

.route {
  padding: 1.4rem 0 1.6rem;
  border-bottom: 1px dashed var(--border-soft);
}

.route__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.line-badge {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 0.45rem;
  background: var(--lc);
  color: #080d1a;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 18px color-mix(in srgb, var(--lc) 45%, transparent);
}

.route__name {
  margin: 0;
  font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  min-width: 0;
  text-wrap: balance;
}

.route__meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.stops {
  position: relative;
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* the coloured line itself */
.stops::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 0.4rem;
  border-radius: 999px;
  background: var(--lc);
  box-shadow: 0 0 16px color-mix(in srgb, var(--lc) 55%, transparent);
}

/* terminus cap at the top of the line */
.stops::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 0.4rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 2px solid var(--lc);
  background: var(--bg);
}

.stop {
  position: relative;
  padding-bottom: 0.15rem;
}

.stop__marker {
  position: absolute;
  left: -2.1rem;
  top: 0.75rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--bg);
  border: 0.34rem solid var(--lc);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stop.is-open .stop__marker,
.stop:hover .stop__marker {
  transform: scale(1.12);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lc) 25%, transparent);
}

.stop.is-saved .stop__marker {
  background: var(--saved);
  border-color: var(--saved);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--saved) 30%, transparent);
}

.stop__open {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem 0.6rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.stop__open:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-soft);
}

.stop__topline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.stop__title {
  font-size: clamp(1.05rem, 2.6vw, 1.28rem);
  font-weight: 600;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.stop__saved-flag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--saved) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--saved) 55%, transparent);
  color: var(--saved);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stop__meta {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.stop__meta .sep {
  color: var(--faint);
  padding: 0 0.15rem;
}

.stop__summary {
  margin: 0.4rem 0.7rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 62ch;
  text-wrap: pretty;
}

/* =============================== Empty ================================== */

.empty {
  margin-top: 1.5rem;
  padding: clamp(1.75rem, 6vw, 3.25rem);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.empty__sign {
  margin: 0;
  font-size: 2.5rem;
  color: var(--faint);
}

.empty__title {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.empty__text {
  margin: 0 auto 1.2rem;
  max-width: 42ch;
  color: var(--muted);
}

.empty__reset {
  padding: 0.65rem 1.2rem;
  background: var(--saved);
  border: 1px solid var(--saved);
  border-radius: 0.6rem;
  color: #1a1300;
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.empty__reset:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* =============================== Footer ================================= */

.footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: space-between;
}
.footer p {
  margin: 0;
  max-width: 60ch;
}
.footer__note {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =============================== Detail ================================= */

.detail-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

.detail-root[hidden] {
  display: none;
}

.detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 16, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fade 0.18s ease both;
}

.detail__panel {
  position: relative;
  width: min(46rem, 100%);
  max-height: min(92vh, 60rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #10183a, #0b1226);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  animation: rise 0.22s ease both;
}

@media (max-width: 640px) {
  .detail-root {
    place-items: end stretch;
  }
  .detail__panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 1.1rem 1.1rem 0 0;
    animation: slide-up 0.24s ease both;
  }
}

.detail__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  background: color-mix(in srgb, #0e1636 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.detail__line-code {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail__close {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.detail__close:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
}

.detail__article {
  padding: clamp(1.25rem, 5vw, 2.25rem) clamp(1rem, 5vw, 2.5rem)
    clamp(2rem, 6vw, 3rem);
}

.detail__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail__kicker .pill {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lc) 20%, transparent);
  border: 1px solid var(--lc);
  color: var(--ink);
}

.detail__title {
  margin: 0;
  font-size: clamp(1.7rem, 5.5vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.detail__byline {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.detail__rule {
  height: 0.4rem;
  margin: 1.3rem 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--lc);
  box-shadow: 0 0 16px color-mix(in srgb, var(--lc) 45%, transparent);
}

.detail__body {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.18rem);
  line-height: 1.75;
  color: #e6ebfb;
}
.detail__body p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}
.detail__body p:first-child::first-letter {
  float: left;
  font-family: var(--grotesk);
  font-size: 3.1em;
  line-height: 0.78;
  font-weight: 700;
  padding: 0.06em 0.12em 0 0;
  color: var(--lc);
}

.detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.9rem;
  padding-top: 1.3rem;
  border-top: 1px dashed var(--border);
}

.save-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  background: var(--saved);
  border: 1px solid var(--saved);
  border-radius: 0.7rem;
  color: #1a1300;
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}
.save-button:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.save-button[aria-pressed="true"] {
  background: transparent;
  color: var(--saved);
}
.save-button__glyph {
  font-size: 1rem;
}

.detail__nav {
  display: flex;
  gap: 0.6rem;
  margin-left: auto;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.nav-button:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
}
.nav-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.detail__foot {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

/* =============================== Motion ================================= */

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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