/* Original style section 1; order preserved. */

:root {
  --bg: #0a0d16; /* dark navy */
  --bg-soft: #111629;
  --card: #141a2b; /* dark card */
  --card2: #1b2236;
  --ink: #f5ecec; /* primary text */
  --muted: #a8908f; /* secondary */
  --tert: #6b5453; /* tertiary */
  --line: rgba(255, 255, 255, 0.08); /* separator */
  --fill: rgba(255, 255, 255, 0.06);
  --fill2: rgba(255, 255, 255, 0.11);
  --orange: #e23b2e; /* red tint */
  --orange-soft: #2a1210;
  --teal: #4fb0aa;
  --radius: 11px;
  --blur: saturate(160%) blur(20px);
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.4), 0 18px 50px -18px rgba(0, 0, 0, 0.7);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--ink);
  background-image:
    radial-gradient(
      1200px 600px at 72% -10%,
      rgba(240, 165, 40, 0.1) 0%,
      rgba(240, 165, 40, 0.096) 6.96%,
      rgba(240, 165, 40, 0.0844) 14.5%,
      rgba(240, 165, 40, 0.0677) 22.04%,
      rgba(240, 165, 40, 0.05) 29%,
      rgba(240, 165, 40, 0.0323) 35.96%,
      rgba(240, 165, 40, 0.0156) 43.5%,
      rgba(240, 165, 40, 0.004) 51.04%,
      rgba(240, 165, 40, 0) 58%
    ),
    radial-gradient(
      1000px 620px at 8% 6%,
      rgba(44, 74, 160, 0.12) 0%,
      rgba(44, 74, 160, 0.1152) 7.2%,
      rgba(44, 74, 160, 0.1012) 15%,
      rgba(44, 74, 160, 0.0812) 22.8%,
      rgba(44, 74, 160, 0.06) 30%,
      rgba(44, 74, 160, 0.0388) 37.2%,
      rgba(44, 74, 160, 0.0187) 45%,
      rgba(44, 74, 160, 0.0048) 52.8%,
      rgba(44, 74, 160, 0) 60%
    );
  background-attachment: fixed;
  font-family:
    Manrope,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  letter-spacing: -0.022em;
  line-height: 1.12;
  font-weight: 700;
}
.mono {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}
::selection {
  background: #e8590f33;
}

/* ---------- nav : frosted bar ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(26, 13, 13, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 0.5px solid rgba(226, 59, 46, 0.14);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  background: var(--fill);
  border-radius: 99px;
  padding: 3px;
}
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 590;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 99px;
  /* Transition only the needed properties. */
  transition: color 0.28s cubic-bezier(0.3, 0.8, 0.35, 1);
}
.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 99px;
  z-index: -1;
  background: rgba(255, 255, 255, 0.055);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.3s cubic-bezier(0.3, 0.8, 0.35, 1),
    transform 0.3s cubic-bezier(0.3, 0.8, 0.35, 1);
}
.nav-links a:hover::before {
  opacity: 1;
  transform: scale(1);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:active {
  transform: scale(0.97);
}
.nav-links a.active {
  color: var(--ink);
  background: var(--fill2);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
.nav-links a.active::before {
  opacity: 0;
}
.nav-links a.dis {
  opacity: 0.4;
  pointer-events: none;
}
.burger {
  display: none;
  background: var(--fill);
  border: none;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 16px;
  color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  padding-block: 96px 80px;
  position: relative;
  overflow-x: clip;
}
.hero-grid {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: #ee5d2e;
}
.hero h1 em svg {
  display: none;
}
.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 62ch;
  margin: 0 auto;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(226, 59, 46, 0.2) 0%,
    rgba(226, 59, 46, 0.1921) 8.4%,
    rgba(226, 59, 46, 0.1688) 17.5%,
    rgba(226, 59, 46, 0.1353) 26.6%,
    rgba(226, 59, 46, 0.1) 35%,
    rgba(226, 59, 46, 0.0647) 43.4%,
    rgba(226, 59, 46, 0.0312) 52.5%,
    rgba(226, 59, 46, 0.0079) 61.6%,
    rgba(226, 59, 46, 0) 70%
  );
  pointer-events: none;
  z-index: -1;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 99px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s,
    opacity 0.2s;
  border: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px -6px #e23b2e88;
}
.btn-primary:hover {
  box-shadow: 0 12px 30px -8px #e23b2eaa;
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--fill);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--fill2);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 52px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.stat {
  background: var(--card);
  border: 0.5px solid var(--line);
  border-radius: 10px;
  padding: 16px 14px;
  box-shadow: var(--shadow);
}
.stat b {
  font-size: 26px;
  font-weight: 700;
  display: block;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat b i {
  font-style: normal;
  color: var(--orange);
  font-size: 15px;
  font-weight: 600;
}
.stat > span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}

/* floating map window */
.hero-visual {
  position: relative;
  margin-top: -40px;
  max-width: 100%;
  overflow: visible;
}
.orbit {
  position: absolute;
  inset: -8% -6% -8% -6%;
  border-radius: 14px;
  background:
    radial-gradient(120px 120px at 18% 22%, #f7c9a955, transparent 70%),
    radial-gradient(160px 160px at 88% 78%, #e8590f22, transparent 70%);
  filter: blur(4px);
  z-index: -1;
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
.ping {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8590f;
  box-shadow:
    0 0 0 2px #1a0f10,
    0 2px 8px #e23b2e88;
}
.ping::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #e8590f;
  animation: ping 2.6s ease-out infinite;
}
.ping.p1 {
  top: 36%;
  left: 48%;
}
.ping.p2 {
  top: 35%;
  left: 69%;
  animation-delay: 0.8s;
}
.ping.p3 {
  top: 48%;
  left: 59%;
  animation-delay: 1.6s;
}
.ping.p2::after {
  animation-delay: 0.8s;
}
.ping.p3::after {
  animation-delay: 1.6s;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(3.6);
    opacity: 0;
  }
}
.readout {
  position: absolute;
  right: -14px;
  bottom: -72px;
  background: rgba(40, 20, 20, 0.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: 11px;
  padding: 16px 20px;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  transition: transform 0.25s ease-out;
}
.rd-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.rd-val {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.rd-val b {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rd-val em {
  font-style: normal;
  font-size: 17px;
  font-weight: 700;
  color: var(--orange);
}
.rd-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-top: 2px;
}
.rd-spark i {
  flex: 1;
  background: linear-gradient(180deg, #f5722e, var(--orange));
  border-radius: 2px;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: sparkGrow 0.5s ease-out forwards;
}
.rd-spark i:nth-child(1) {
  height: 40%;
  animation-delay: 0.1s;
}
.rd-spark i:nth-child(2) {
  height: 65%;
  animation-delay: 0.15s;
}
.rd-spark i:nth-child(3) {
  height: 50%;
  animation-delay: 0.2s;
}
.rd-spark i:nth-child(4) {
  height: 80%;
  animation-delay: 0.25s;
}
.rd-spark i:nth-child(5) {
  height: 55%;
  animation-delay: 0.3s;
}
.rd-spark i:nth-child(6) {
  height: 90%;
  animation-delay: 0.35s;
}
.rd-spark i:nth-child(7) {
  height: 70%;
  animation-delay: 0.4s;
}
.rd-spark i:nth-child(8) {
  height: 100%;
  animation-delay: 0.45s;
}
@keyframes sparkGrow {
  to {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .orbit,
  .ping::after,
  .rd-spark i {
    animation: none;
    transform: none;
  }
}
.window {
  background: var(--card);
  border-radius: 13px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 32px 80px -28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 0.25s ease-out;
  border: 0.5px solid var(--line);
  max-width: 100%;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--blur);
}
.win-bar .dots {
  display: flex;
  gap: 6px;
}
.win-bar .dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fill2);
}
.win-bar .dots i:first-child {
  background: #ff5f57;
}
.win-bar .dots i:nth-child(2) {
  background: #febc2e;
}
.win-bar .dots i:nth-child(3) {
  background: #28c840;
}
.win-bar span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.win-body {
  position: relative;
  background:
    radial-gradient(420px 260px at 72% 78%, #f7c9a940, transparent 70%),
    radial-gradient(360px 220px at 12% 30%, #f0902e22, transparent 70%),
    linear-gradient(180deg, #1a0f10, #120a0b);
}
.heromap {
  padding: 26px 10px 40px;
  overflow: hidden;
}
.heromap svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  max-width: 100%;
}
.heromap path {
  fill: #3a2422;
  stroke: #1a0f10;
  stroke-width: 0.6;
}
.heromap path.d1 {
  fill: #7a2418;
}
.heromap path.d2 {
  fill: #a52c1c;
}
.heromap path.d3 {
  fill: #d13a24;
}
.heromap path.d4 {
  fill: #f5502e;
}
@media (prefers-reduced-motion: no-preference) {
  .heromap path.d3,
  .heromap path.d4 {
    animation: heat 4s ease-in-out infinite;
  }
  @keyframes heat {
    50% {
      opacity: 0.78;
    }
  }
}
.win-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(40, 20, 20, 0.72);
  backdrop-filter: var(--blur);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.win-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 2.4s infinite;
}

/* ---------- sections ---------- */
section {
  padding: 88px 0;
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.sec-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.sec-head p {
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
}

/* ---------- explorer (flagship layers) ---------- */
.explorer {
  background: var(--card);
  border-radius: 13px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 400px 1fr;
}
.exp-side {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.seg {
  display: inline-flex;
  background: var(--fill);
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
  align-self: flex-start;
}
.seg button {
  border: none;
  background: transparent;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 590;
  color: var(--muted);
  transition: 0.25s;
}
.seg button:hover {
  color: var(--ink);
}
.seg button.on {
  background: var(--fill2);
  color: var(--ink);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
.exp-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(79, 176, 170, 0.14);
  padding: 5px 11px;
  border-radius: 99px;
}
.exp-side h3 {
  font-size: 25px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  letter-spacing: -0.02em;
}
.exp-side h3 .top {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 4px 10px;
  border-radius: 99px;
}
.exp-side p {
  font-size: 14.5px;
  color: var(--muted);
}
.exp-side .map-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--orange);
  align-self: flex-start;
  padding: 12px 24px;
  border-radius: 99px;
  transition: 0.2s;
  display: inline-flex;
  gap: 8px;
  box-shadow: 0 6px 18px -8px #e8590f80;
}
.exp-side .map-link:hover {
  transform: translateY(-1px);
}
.exp-side .map-link:active {
  transform: scale(0.97);
}
.exp-view {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      420px 300px at 60% 40%,
      rgba(226, 59, 46, 0.1) 0%,
      rgba(226, 59, 46, 0.096) 8.4%,
      rgba(226, 59, 46, 0.0844) 17.5%,
      rgba(226, 59, 46, 0.0677) 26.6%,
      rgba(226, 59, 46, 0.05) 35%,
      rgba(226, 59, 46, 0.0323) 43.4%,
      rgba(226, 59, 46, 0.0156) 52.5%,
      rgba(226, 59, 46, 0.004) 61.6%,
      rgba(226, 59, 46, 0) 70%
    ),
    linear-gradient(180deg, #160c0d, #0f0808);
}
.expmap {
  width: 100%;
  padding: 24px 22px;
}
.expmap svg {
  width: 100%;
  height: auto;
  display: block;
}
.expmap path {
  fill: #3a2422;
  stroke: #160c0d;
  stroke-width: 0.5;
}
.expmap path.d1 {
  fill: #7a2418;
}
.expmap path.d2 {
  fill: #a52c1c;
}
.expmap path.d3 {
  fill: #d13a24;
}
.expmap path.d4 {
  fill: #f5502e;
}
.exp-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(40, 20, 20, 0.72);
  backdrop-filter: var(--blur);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.exp-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 2.4s infinite;
}
.exp-fade {
  transition:
    opacity 0.3s 0.05s,
    transform 0.3s 0.05s;
}
.exp-fade.out {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.exp-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(40, 20, 20, 0.72);
  backdrop-filter: var(--blur);
  border-radius: 99px;
  padding: 7px 13px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* ---------- highlights dashboard ---------- */
#highlights {
  background: transparent;
  border: none;
}
.dash {
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 0.5px solid rgba(226, 59, 46, 0.14);
  background:
    radial-gradient(
      600px 340px at 78% 20%,
      rgba(226, 59, 46, 0.16) 0%,
      rgba(226, 59, 46, 0.1536) 8.16%,
      rgba(226, 59, 46, 0.135) 17%,
      rgba(226, 59, 46, 0.1082) 25.84%,
      rgba(226, 59, 46, 0.08) 34%,
      rgba(226, 59, 46, 0.0518) 42.16%,
      rgba(226, 59, 46, 0.025) 51%,
      rgba(226, 59, 46, 0.0064) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    radial-gradient(
      520px 300px at 10% 85%,
      rgba(226, 59, 46, 0.1) 0%,
      rgba(226, 59, 46, 0.096) 7.92%,
      rgba(226, 59, 46, 0.0844) 16.5%,
      rgba(226, 59, 46, 0.0677) 25.08%,
      rgba(226, 59, 46, 0.05) 33%,
      rgba(226, 59, 46, 0.0323) 40.92%,
      rgba(226, 59, 46, 0.0156) 49.5%,
      rgba(226, 59, 46, 0.004) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #1a0d0d, #140a0b);
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 26px;
  border-bottom: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--blur);
  flex-wrap: wrap;
}
.dash-head .t {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.dash-head .t i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 2.4s infinite;
}
.dash.in .dash-head {
  animation: fadeDown 0.5s ease both;
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.crow {
  display: grid;
  grid-template-columns: 16px 118px 1fr 52px 72px;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  border-bottom: 0.5px solid var(--line);
  border-radius: 9px;
  transition: background 0.15s;
  opacity: 0;
  transform: translateX(-18px);
}
.dash.in .crow {
  animation: slideRow 0.45s ease both;
}
.dash.in .crow:nth-child(1) {
  animation-delay: 0.08s;
}
.dash.in .crow:nth-child(2) {
  animation-delay: 0.16s;
}
.dash.in .crow:nth-child(3) {
  animation-delay: 0.24s;
}
.dash.in .crow:nth-child(4) {
  animation-delay: 0.32s;
}
.dash.in .crow:nth-child(5) {
  animation-delay: 0.4s;
}
.dash.in .crow:nth-child(6) {
  animation-delay: 0.48s;
}
.dash.in .crow:nth-child(7) {
  animation-delay: 0.56s;
}
.dash.in .crow:nth-child(8) {
  animation-delay: 0.64s;
}
@keyframes slideRow {
  to {
    opacity: 1;
    transform: none;
  }
}
.minimap-wrap {
  overflow: hidden;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.92);
}
.dash.in .minimap-wrap {
  animation: mapPop 0.7s cubic-bezier(0.22, 0.9, 0.36, 1) 0.3s both;
}
@keyframes mapPop {
  to {
    opacity: 1;
    transform: none;
  }
}
.dash-cell .sec-head,
.dash-cell .mini-seg {
  opacity: 0;
  transform: translateY(10px);
}
.dash.in .dash-cell .sec-head {
  animation: fadeUp 0.5s ease 0.05s both;
}
.dash.in .dash-cell .mini-seg {
  animation: fadeUp 0.5s ease 0.15s both;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}
.dash-main {
  display: grid;
  grid-template-columns: 1fr;
}
.cont-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 36px;
  align-items: center;
}
.impact-cell {
  border-top: 0.5px solid var(--line);
}
/* iOS storage-style stacked bar */
.ibar {
  display: flex;
  gap: 3px;
  height: 38px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.ibar span {
  display: block;
  height: 100%;
  border-radius: 6px;
  min-width: 6px;
  position: relative;
  transition:
    flex-grow 0.9s cubic-bezier(0.22, 0.9, 0.36, 1),
    opacity 0.1s,
    transform 0.1s,
    box-shadow 0.1s;
  cursor: pointer;
  flex-grow: 0;
  flex-basis: 0;
  box-shadow: 0 0 4px 0px rgba(255, 255, 255, 0.08);
}
.ibar span:first-child {
  border-radius: 12px 6px 6px 12px;
}
.ibar span:last-child {
  border-radius: 6px 12px 12px 6px;
}
.ibar span:hover {
  transform: scaleY(1.12);
}
.ibar.dim span {
  opacity: 0.18;
}
.ibar.dim span.hot {
  opacity: 1;
  transform: scaleY(1.12);
}
.impact-cell .cell-head,
.impact-cell #wtip {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.impact-cell.in .cell-head {
  opacity: 1;
  transform: none;
}
.impact-cell.in #wtip {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}
.dash-cell {
  padding: 26px 28px;
  min-width: 0;
}
.dash-cell + .dash-cell {
  border-left: 0.5px solid var(--line);
}
.cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.cell-head h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cell-head .hint {
  font-size: 11.5px;
  color: var(--tert);
  font-weight: 500;
}
.mini-seg {
  display: inline-flex;
  background: var(--fill);
  border-radius: 99px;
  padding: 2px;
  gap: 2px;
}
.mini-seg button {
  border: none;
  background: transparent;
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 590;
  color: var(--muted);
  transition: 0.25s;
}
.mini-seg button:hover {
  color: var(--ink);
}
.mini-seg button.on {
  background: var(--fill2);
  color: var(--ink);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

.minimap-wrap {
  overflow: hidden;
  border-radius: 10px;
}
.minimap {
  width: 100%;
  height: auto;
  display: block;
}
.minimap path {
  fill: #7a6f6c;
  stroke: #1a0d0d;
  stroke-width: 0.5;
  transition:
    fill 0.25s,
    opacity 0.3s;
}
.minimap.dim path {
  opacity: 0.45;
}
.minimap.dim path.lit {
  opacity: 1;
  fill: var(--orange);
}
.crow {
  display: grid;
  grid-template-columns: 16px 118px 1fr 52px 72px;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  border-bottom: 0.5px solid var(--line);
  border-radius: 9px;
  transition: background 0.15s;
}
.crow:hover {
  background: var(--fill);
}
.crow:last-child {
  border: none;
}
.arr {
  font-size: 10px;
  text-align: center;
}
.arr.up {
  color: var(--orange);
}
.arr.dn {
  color: var(--teal);
}
.arr.fl {
  color: var(--tert);
}
.crow .cname {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar {
  height: 6px;
  border-radius: 99px;
  background: var(--fill);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #f5722e, var(--orange));
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.crow .pct,
.crow .ppl {
  font-size: 12.5px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.crow .pct {
  font-weight: 700;
}
.crow .ppl {
  color: var(--tert);
  font-size: 11.5px;
  font-weight: 500;
}

.waffle {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  gap: 3px;
  margin-bottom: 14px;
}
.waffle i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--fill);
  cursor: pointer;
  transition:
    transform 0.12s,
    opacity 0.25s;
}
.waffle i:hover {
  transform: scale(1.35);
}
.waffle.dim i {
  opacity: 0.15;
}
.waffle.dim i.hot {
  opacity: 1;
}
#wtip {
  font-size: 12px;
  color: var(--muted);
  min-height: 17px;
  margin-bottom: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
#wtip b {
  color: var(--ink);
  font-weight: 700;
}

.strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 28px 16px;
  border-top: 0.5px solid var(--line);
}
.strip-head h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.warn-title {
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 9px;
}
.warn-title > svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.info {
  position: relative;
  display: inline-flex;
  color: var(--tert);
  cursor: help;
  outline: none;
}
.info > svg {
  width: 15px;
  height: 15px;
  transition: color 0.2s;
}
.info:hover > svg,
.info:focus > svg {
  color: var(--orange);
}
.info .tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: 240px;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: var(--blur);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 5;
}
.tip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.info .tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(28, 28, 30, 0.92);
}
.info:hover .tip,
.info:focus .tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.strip-head .hint {
  font-size: 11.5px;
  color: var(--tert);
  font-weight: 500;
}
.dash-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.rep-cell {
  padding: 18px 20px 16px;
  border-left: 0.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  position: relative;
  transition: background 0.2s;
  overflow: hidden;
}
.rep-cell:first-child {
  border-left: none;
}
.rep-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(226, 59, 46, 0.08));
  opacity: 0;
  transition: opacity 0.25s;
}
.rep-cell:hover::before {
  opacity: 1;
}
.rep-cell.top1 {
  background: linear-gradient(180deg, rgba(226, 59, 46, 0.1), transparent);
}
.rep-cell .rk {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.rep-cell .rk .num {
  font-size: 10px;
  color: var(--tert);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.rep-cell .rk .row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rep-cell .rk .flag {
  height: 16px;
  width: auto;
  border-radius: 2px;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.15);
  flex: none;
  display: block;
  object-fit: contain;
}
.rep-cell .cn {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.rep-cell .cn b {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.rep-cell .cn span {
  font-size: 10.5px;
  color: var(--tert);
  font-weight: 600;
}
.rep-bar {
  height: 5px;
  border-radius: 99px;
  background: var(--fill);
  overflow: hidden;
  position: relative;
}
.rep-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #f5722e, #c62d22);
  width: 0;
  animation: repGrow 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes repGrow {
  to {
    width: var(--w);
  }
}
.rep-cell .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--tert);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 10px;
}
.trend.up {
  color: #f5722e;
  background: rgba(226, 59, 46, 0.16);
}
.trend.down {
  color: #4fb0aa;
  background: rgba(79, 176, 170, 0.16);
}
.dash-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 26px;
  border-top: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  flex-wrap: wrap;
}
.dash-foot span {
  font-size: 12.5px;
  color: var(--muted);
}
.dash-foot a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange);
}

/* ---------- data explorer (layers) ---------- */
.dx {
  border-radius: 13px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 0.5px solid rgba(226, 59, 46, 0.14);
  background:
    radial-gradient(
      600px 340px at 78% 20%,
      rgba(226, 59, 46, 0.16) 0%,
      rgba(226, 59, 46, 0.1536) 8.16%,
      rgba(226, 59, 46, 0.135) 17%,
      rgba(226, 59, 46, 0.1082) 25.84%,
      rgba(226, 59, 46, 0.08) 34%,
      rgba(226, 59, 46, 0.0518) 42.16%,
      rgba(226, 59, 46, 0.025) 51%,
      rgba(226, 59, 46, 0.0064) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    radial-gradient(
      520px 300px at 10% 85%,
      rgba(226, 59, 46, 0.1) 0%,
      rgba(226, 59, 46, 0.096) 7.92%,
      rgba(226, 59, 46, 0.0844) 16.5%,
      rgba(226, 59, 46, 0.0677) 25.08%,
      rgba(226, 59, 46, 0.05) 33%,
      rgba(226, 59, 46, 0.0323) 40.92%,
      rgba(226, 59, 46, 0.0156) 49.5%,
      rgba(226, 59, 46, 0.004) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #1a0d0d, #140a0b);
}
.dx-strip {
  display: flex;
  align-items: stretch;
  border-bottom: 0.5px solid var(--line);
  background: rgba(26, 13, 13, 0.55);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.dx-arrow {
  flex: none;
  width: 52px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  transition: 0.2s;
}
.dx-arrow:hover {
  color: #fff;
}
.dx-tabs {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
}
.dx-tabs::-webkit-scrollbar {
  display: none;
}
.dx-tab {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  padding: 15px 22px 13px;
  border: none;
  background: transparent;
  text-align: left;
  position: relative;
  min-width: 150px;
  transition: background 0.2s;
}
.dx-tab .t-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dx-tab .t-name {
  font-weight: 600;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.dx-tab .t-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  white-space: nowrap;
}
.dx-tab::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dx-tab:hover {
  background: rgba(255, 255, 255, 0.12);
}
.dx-tab:hover .t-name {
  color: rgba(255, 255, 255, 0.8);
}

.dx-tab.on {
  background: rgba(255, 255, 255, 0.1);
}
.dx-tab.on .t-name {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.dx-tab.on::after {
  transform: scaleX(1);
}
.dx-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 236px;
}
.dx-detail {
  padding: 32px 36px;
  transition:
    opacity 0.22s,
    transform 0.22s;
}
.dx-detail.out {
  opacity: 0;
  transform: translateY(6px);
}
.dx-detail h3 {
  font-size: 23px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.dx-detail h3 i.fa-solid {
  font-size: 20px;
}
.dx-spec h4 i.fa-solid {
  margin-right: 6px;
  opacity: 0.5;
}

.dx-detail p {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 56ch;
}
.dx-detail .btn {
  margin-top: 22px;
  font-size: 15px;
  padding: 11px 22px;
  background: rgba(224, 96, 42, 0.85);
  box-shadow: 0 6px 18px -8px rgba(224, 96, 42, 0.5);
}
.dx-spec {
  border-left: 0.5px solid var(--line);
  padding: 32px 36px;
  background: rgba(26, 13, 13, 0.35);
  display: flex;
  flex-direction: column;
  transition: opacity 0.22s;
}
.dx-spec.out {
  opacity: 0;
}
.dx-spec h4 {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tert);
  margin-bottom: 10px;
  font-weight: 600;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--line);
  font-size: 13.5px;
}
.spec-row:last-of-type {
  border: none;
}
.spec-row span {
  color: var(--muted);
}
.spec-row b {
  font-weight: 600;
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.archive-link {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--orange);
  white-space: nowrap;
}

/* ---------- footer ---------- */
footer {
  color: var(--ink);
  border-top: 0.5px solid rgba(226, 59, 46, 0.14);
  background: linear-gradient(180deg, #100707, #0a0505);
}
.f-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-top: 56px;
  padding-bottom: 40px;
}
footer .brand {
  margin-bottom: 12px;
}
footer p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 36ch;
}
footer h4 {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tert);
  margin-bottom: 14px;
  font-weight: 600;
}
footer a.fl {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 4.5px 0;
  transition: color 0.2s;
}
footer a.fl:hover {
  color: var(--orange);
}
.f-logos {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.f-logos span,
.f-logos a {
  display: flex;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.f-logos a:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}
.f-logos img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(255, 150, 110, 0.22));
}
.f-bottom {
  border-top: 0.5px solid var(--line);
  padding-top: 20px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--tert);
  flex-wrap: wrap;
}

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .explorer {
    grid-template-columns: 1fr;
  }
  .dash-main {
    grid-template-columns: 1fr;
  }
  .dash-cell + .dash-cell {
    border-left: none;
    border-top: 0.5px solid var(--line);
  }
  .dash-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .rep-cell {
    border-top: 0.5px solid var(--line);
  }
  .rep-cell:nth-child(odd) {
    border-left: none;
  }
  .dx-body {
    grid-template-columns: 1fr;
  }
  .dx-spec {
    border-left: none;
    border-top: 0.5px solid var(--line);
  }
  .f-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    background: rgba(22, 12, 13, 0.95);
    backdrop-filter: var(--blur);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: 11px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  }
  .nav-links.open {
    display: flex;
  }
  .burger {
    display: block;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .crow {
    grid-template-columns: 14px 92px 1fr 48px;
  }
  .cont-grid {
    grid-template-columns: 1fr;
  }
  .minimap-wrap {
    max-width: 240px;
    margin: 8px auto 0;
  }
  .crow .ppl {
    display: none;
  }
  .exp-side,
  .dx-detail,
  .dx-spec {
    padding: 24px;
  }
  .f-top {
    grid-template-columns: 1fr;
  }
}

/* ---- scrollbars: one slim thumb for every scrolling box and the page ----
   Chrome drops these pseudo-elements on any element with scrollbar-color or
   scrollbar-width:thin, so those two are kept for browsers without them in the
   @supports block below. */
/* :where() keeps these at the lowest weight, so any element's own rule wins */
:where(html, body *)::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
:where(html)::-webkit-scrollbar {
  width: 12px;
}
:where(html, body *)::-webkit-scrollbar-track {
  background: transparent;
}
:where(html, body *)::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.13);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
:where(html, body *)::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
:where(html, body *)::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
:where(html, body *)::-webkit-scrollbar-corner {
  background: transparent;
}
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  }
  body * {
    scrollbar-width: thin;
  }
}

/* Original style section 2; order preserved. */

/* ---------- reveal engine ---------- */
.rv {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.8s ease;
  transition-delay: calc(var(--i, 0) * 65ms);
}
/* While revealing, the reveal's own transition wins over an element's
     other transition lists (hover timing, colour change), which leave out
     opacity and would make it jump in. rvIn() removes the class after. */
.rv.rv-go {
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.8s ease !important;
  transition-delay: calc(var(--i, 0) * 65ms) !important;
}
.rv-l {
  transform: translateX(-30px);
}
.rv-r {
  transform: translateX(30px);
}
.rv-s {
  transform: scale(0.93);
}
.rv-b {
  transform: translateY(14px);
  filter: blur(9px);
}
.rv-d {
  transform: translateY(-16px);
}
.rv.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* headline: word by word */
/* the mask must clear descenders (g, y, p) while still hiding the rise */
.wsplit {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.wsplit > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.85s cubic-bezier(0.2, 0.85, 0.2, 1),
    opacity 0.6s ease;
  transition-delay: calc(var(--w, 0) * 55ms);
}
.ah h1.in .wsplit > i {
  transform: none;
  opacity: 1;
}

/* section rule grows out from the label */
.sec-t::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}
.sec-t.in::after {
  transform: scaleX(1);
}

/* dataset detail: hard fade out, blank beat, staggered fade in */
.ds-body {
  opacity: 0;
  transition: opacity 0.13s ease;
}
.ds-body.shown {
  opacity: 1;
  transition: opacity 0.22s ease;
}
.ds-body > * {
  opacity: 0;
  transform: translateY(10px);
}
.ds-body.shown > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.26s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ds-body.shown h3 {
  transition-delay: 0s;
}
.ds-body.shown .ds-tags {
  transition-delay: 0.04s;
}
.ds-body.shown .ds-desc {
  transition-delay: 0.08s;
}
.ds-body.shown .ds-meta {
  transition-delay: 0.12s;
}

/* numerals rise into place on the archive steps, one after another */
/* keyframe entrance (fill backwards) so its stagger never delays the hover */
.steps .sn {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.steps li.in .sn {
  opacity: 0.72;
  animation: snIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}
.steps li.in:hover .sn {
  opacity: 1;
}
@keyframes snIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 0.72;
    transform: none;
  }
}

/* contact icon pop */
.ct-ico {
  transform: scale(0.6) rotate(-8deg);
  opacity: 0;
  transition:
    transform 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) 0.15s,
    opacity 0.5s ease 0.15s;
}
.ct.in .ct-ico {
  transform: none;
  opacity: 1;
}
.ct-mail {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease 0.34s,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.34s,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.ct.in .ct-mail {
  opacity: 1;
  transform: none;
}

/* pull quote bar draws in */
.pull {
  position: relative;
  border-left: none;
  padding-left: 24px;
}
.pull::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s;
}
.pull.in::before {
  transform: scaleY(1);
}

/* chips fade in as the panel settles */
.car-static code,
.car-track code {
  animation: chipIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* once revealed, interactive cards get their own (fast) hover timing */
.perm > div.in,
.pt-card.in,
.ds.in,
.acc.in,
.ct.in {
  transition:
    border-color 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.22s ease;
}

.ah {
  padding-block: 74px 40px;
}
.ah h1 {
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 18ch;
}
.ah h1 em {
  font-style: normal;
  color: #ee5d2e;
}
.ah p {
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.68;
  max-width: 60ch;
  margin-top: 20px;
}

.sec {
  padding-block: 0 66px;
}
.sec-t {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tert);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-t::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--line);
}
.sec h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.sec p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.78;
}
.sec p.lead {
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 26px;
}
.sec p + p {
  margin-top: 14px;
}
.sec p.it {
  font-style: italic;
  color: var(--tert);
}
.sec a.fl {
  color: var(--orange);
}

.ds {
  display: grid;
  grid-template-columns: 290px 1fr;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid rgba(226, 59, 46, 0.14);
  background:
    radial-gradient(
      560px 320px at 84% 12%,
      rgba(226, 59, 46, 0.12) 0%,
      rgba(226, 59, 46, 0.1152) 7.92%,
      rgba(226, 59, 46, 0.1012) 16.5%,
      rgba(226, 59, 46, 0.0812) 25.08%,
      rgba(226, 59, 46, 0.06) 33%,
      rgba(226, 59, 46, 0.0388) 40.92%,
      rgba(226, 59, 46, 0.0187) 49.5%,
      rgba(226, 59, 46, 0.0048) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #1a0d0d, #140a0b);
}
.ds-list {
  border-right: 0.5px solid var(--line);
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
}
.ds-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0.5px solid transparent;
  border-radius: 7px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.ds-item + .ds-item {
  margin-top: 6px;
}
.ds-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}
.ds-item b {
  font-weight: 600;
}
.ds-item.on {
  background: rgba(226, 59, 46, 0.18);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffd9cf;
}
.ds-item small {
  display: block;
  font-size: 11px;
  color: var(--tert);
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: 0.03em;
}
.ds-item.on small {
  color: rgba(255, 217, 207, 0.6);
}

.ds-body {
  padding: 30px 34px 32px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.ds-body h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.ds-tags {
  display: flex;
  gap: 7px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}
/* Status chips: mode shown by the coloured word; format chip is a monospace tag. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px -12px rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tag.m {
  color: #ff8f78;
  font-weight: 700;
  border-color: rgba(226, 59, 46, 0.38);
  background: linear-gradient(180deg, rgba(226, 59, 46, 0.16), rgba(226, 59, 46, 0.05));
  text-shadow: 0 0 12px rgba(255, 91, 69, 0.45);
}
.tag.f {
  color: #f7bd4d;
  font-weight: 700;
  border-color: rgba(240, 165, 40, 0.36);
  background: linear-gradient(180deg, rgba(240, 165, 40, 0.15), rgba(240, 165, 40, 0.04));
  text-shadow: 0 0 12px rgba(245, 179, 58, 0.4);
}
.tag.fmt {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #e9d9d2;
  padding: 0 11px 0 10px;
}
.tag.fmt i {
  font-size: 10px;
  color: var(--tert);
}
.ds-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}
.ds-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px 0 0;
}
.ds-meta > div {
  padding: 16px 0 0;
  border-top: 0.5px solid var(--line);
}
.ds-meta > div:nth-child(even) {
  padding-left: 30px;
  border-left: 0.5px solid var(--line);
}
.ds-meta > div:nth-child(odd) {
  padding-right: 36px;
}
.ds-meta > div > dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 199, 184, 0.72);
  margin-bottom: 12px;
}
.ds-meta dd {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}
.ds-meta code {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 12px;
  color: #ffc7b8;
  background: rgba(226, 59, 46, 0.13);
  padding: 4px 9px;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

/* chip carousel */
.car {
  display: flex;
  align-items: center;
  gap: 8px;
}
.car-vp {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10px,
    #000 calc(100% - 10px),
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
}
.car-track {
  display: flex;
  gap: 6px;
  width: max-content;
}
.car-btn {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0.5px solid var(--line);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  display: grid;
  place-items: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.car-btn:hover {
  background: rgba(226, 59, 46, 0.24);
  color: #ffd9cf;
  border-color: rgba(255, 255, 255, 0.2);
}
.car-btn:active {
  transform: scale(0.92);
}
.car-static {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* technical note as key/value rows */
.kv {
  display: flex;
  flex-direction: column;
}
.kv > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  animation: kvIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.kv > div:first-child {
  border-top: none;
  padding-top: 0;
}
.kv dt {
  font-size: 11.5px;
  color: var(--tert);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.kv dd {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 12.5px;
  color: #ffc7b8;
  text-align: right;
  white-space: nowrap;
}
@keyframes kvIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ds-legend {
  font-size: 12px;
  color: var(--tert);
  margin-top: 16px;
}
.ds-legend b {
  color: var(--muted);
  font-weight: 600;
}

.pt {
  display: grid;
  gap: 14px;
}
.pt-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-radius: 11px;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  transition: border-color 0.25s;
}
.pt-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.pt-logo {
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.022);
  border-right: 0.5px solid var(--line);
}
.pt-logo img {
  max-width: 152px;
  height: auto;
  display: block;
}
.pt-txt {
  position: relative;
  z-index: 1;
  padding: 26px 30px 28px;
}
.pt-txt h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.pt-txt p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 10px;
  max-width: none;
}

.lk {
  display: grid;
  grid-template-columns: 1fr;
}
.lk a {
  display: flex;
  align-items: baseline;
  gap: 13px;
  padding: 16px 18px;
  border-top: 0.5px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.lk a:last-child {
  border-bottom: 0.5px solid var(--line);
}
.lk a > i,
.lk a > span {
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lk a:hover {
  background: rgba(226, 59, 46, 0.07);
}
.lk a:hover > i {
  transform: translateX(3px);
}
.lk a span {
  color: var(--tert);
  font-size: 12.5px;
  margin-left: auto;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.lk a i {
  color: var(--orange);
  font-size: 11px;
}

.ct {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 90px;
  border-radius: 13px;
  padding: 34px 36px 36px;
  text-align: center;
  overflow: hidden;
}
.ct-orb {
  position: absolute;
  z-index: 0;
  width: 480px;
  height: 480px;
  left: 50%;
  top: -88%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(226, 59, 46, 0.12),
    rgba(226, 59, 46, 0.03) 58%,
    transparent 74%
  );
  transform: translateX(-50%);
  animation: ctFloat 11s ease-in-out infinite;
}
@keyframes ctFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-46%) translateY(26px) scale(1.07);
  }
}
.ct-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ct-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.ct-head h2 {
  line-height: 1;
  display: flex;
  align-items: center;
  height: 40px;
  margin: 0;
}
/* the envelope stands bare beside the heading: no tile behind it */
.ct-ico {
  flex: none;
  width: 30px;
  height: 40px;
  display: grid;
  place-items: center;
  line-height: 1;
  color: #ffd9cf;
  font-size: 24px;
}
.ct h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}
.ct p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  text-wrap: balance;
}
/* Contact address as plain text; Copy is a text button separated by a thin divider. */
.ct-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}
.ct .mail {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: #ffb9a6;
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.2s ease;
}
.ct .mail:hover {
  color: #fff;
}
.ct-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tert);
  background: none;
  padding: 5px 0 5px 18px;
  border-radius: 0;
  box-shadow: inset 0.5px 0 0 rgba(255, 255, 255, 0.16);
  transition: color 0.2s ease;
}
.ct-copy:hover {
  color: #ffd9cf;
}
.ct-copy:active {
  transform: scale(0.97);
}
.ct-copy.done {
  color: #9ff0cd;
}
.ct-copy .cp-roll {
  display: inline-grid;
  overflow: hidden;
  line-height: 1.5;
}
.ct-copy .cp-roll > span {
  grid-area: 1/1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.85, 0.25, 1),
    opacity 0.35s ease;
}
.ct-copy .cp-b {
  transform: translateY(105%);
  opacity: 0;
  color: #9ff0cd;
}
.ct-copy.done .cp-a {
  transform: translateY(-105%);
  opacity: 0;
}
.ct-copy.done .cp-b {
  transform: none;
  opacity: 1;
}
.ct-copy.done .cp-b i {
  animation: cpTick 0.55s cubic-bezier(0.3, 1.7, 0.5, 1) 0.12s both;
}
@keyframes cpTick {
  from {
    transform: scale(0.2) rotate(-30deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.ct .mail.flash {
  animation: mailTint 1.6s ease;
}
@keyframes mailTint {
  30% {
    color: #e6fff2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct-copy .cp-roll > span {
    transition: opacity 0.2s ease;
    transform: none !important;
  }
  .ct-copy.done .cp-b i,
  .ct .mail.flash {
    animation: none;
  }
}
@media (max-width: 560px) {
  .ct-mail {
    flex-direction: column;
    gap: 10px;
  }
  .ct .mail {
    font-size: 15px;
  }
  .ct-copy {
    box-shadow: none;
    padding: 4px 0;
  }
}

@media (max-width: 900px) {
  .ds {
    grid-template-columns: 1fr;
  }
  .ds-list {
    border-right: none;
    border-bottom: 0.5px solid var(--line);
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }
  .ds-item {
    white-space: nowrap;
    flex: none;
  }
  .ds-meta {
    grid-template-columns: 1fr;
  }
  .ds-meta > div:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
  .pt-card {
    grid-template-columns: 1fr;
  }
  .pt-logo {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07);
  }
}

/* Original style section 3; order preserved. */

/* archive steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 24px;
}
.steps li {
  display: block;
  position: relative;
  isolation: isolate;
  padding: 0 24px 4px 0;
}
/* Step number inline with the title, same mono style as the layer counter
     on the home page. */
.steps .sn {
  display: inline-block;
  margin-right: 10px;
  pointer-events: none;
  user-select: none;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.steps h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.steps p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Archive description ----
     Lead text, divider, then the steps in one column with fading dividers. Same
     layout at all widths. */
.arc {
  position: relative;
}
.arc-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 28px;
  margin-bottom: 22px;
  border-bottom: 0.5px solid var(--line);
}
.sec .arc-intro p.lead {
  margin: 0;
}
/* the onward link is placed after the steps */
.arc-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffc7b8;
  transition: color 0.2s ease;
}
.arc-go span {
  font-family: inherit;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.arc-go:hover {
  color: #fff;
}
.arc-go:hover span {
  transform: translateX(4px);
}
.arc .steps {
  grid-template-columns: 1fr;
  gap: 0;
}
.arc .steps li {
  padding: 18px 0;
}
.arc .steps li:first-child {
  padding-top: 0;
}
.arc .steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.5px;
  background: var(--line);
  -webkit-mask: linear-gradient(90deg, #000 50%, transparent);
  mask: linear-gradient(90deg, #000 50%, transparent);
}

/* licence permission tiles */
.perm {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.perm > div {
  border-radius: 11px;
  border: 0.5px solid var(--line);
  padding: 20px 20px 22px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.25s;
}
.perm > div:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.perm i {
  color: #f3f4f6;
  font-size: 15px;
  display: block;
  margin-bottom: 12px;
}
.perm b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.perm span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 6px;
}

/* pull quote */
.pull {
  border-left: 2px solid rgba(255, 255, 255, 0.28);
  padding: 4px 0 4px 22px;
  margin: 0 0 24px;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}

/* accordion */
.acc {
  border-radius: 10px;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.acc summary {
  position: relative;
  z-index: 1;
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s;
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc summary:hover {
  background: rgba(226, 59, 46, 0.07);
}
.acc summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: -2px;
}
.acc summary i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.acc[open] summary i {
  transform: rotate(180deg);
}
.acc-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.acc.open .acc-wrap {
  grid-template-rows: 1fr;
}
.acc-in {
  overflow: hidden;
  padding: 0 22px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.3s ease 0.06s,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.06s,
    padding 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.acc.open .acc-in {
  opacity: 1;
  transform: none;
  padding: 16px 22px 22px;
  border-top: 0.5px solid var(--line);
}
.acc-in p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.78;
}
.acc-in p + p {
  margin-top: 12px;
}

/* grant line */
.grant {
  display: flex;
  gap: 11px;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--tert);
  margin-top: 20px;
  line-height: 1.7;
}
.grant i {
  color: inherit;
  font-size: 12px;
  flex: none;
}
.grant > span {
  min-width: 0;
}
.grant .nw {
  white-space: nowrap;
}
.grant em {
  font-style: italic;
}
/* phones: the project title goes on its own line under the grant number */
@media (max-width: 640px) {
  .grant em {
    display: block;
    margin-top: 2px;
  }
}

@media (max-width: 1000px) {
  .steps,
  .perm {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .steps,
  .perm {
    grid-template-columns: 1fr;
  }
}
/* stacked, each step needs air before the next hairline */
@media (max-width: 1000px) {
  .steps {
    row-gap: 22px;
  }
}

/* Original style section 4; order preserved. */

/* ---------- iOS-style glass ---------- */
.ds,
.perm > div,
.acc,
.ct {
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26),
    0 1px 1px rgba(0, 0, 0, 0.26),
    0 16px 40px -20px rgba(0, 0, 0, 0.7);
}

/* Same panel style as Browse all data layers on the home page. */
.ds {
  border: 0.5px solid rgba(226, 59, 46, 0.14);
  background:
    radial-gradient(
      600px 340px at 78% 20%,
      rgba(226, 59, 46, 0.16) 0%,
      rgba(226, 59, 46, 0.1536) 8.16%,
      rgba(226, 59, 46, 0.135) 17%,
      rgba(226, 59, 46, 0.1082) 25.84%,
      rgba(226, 59, 46, 0.08) 34%,
      rgba(226, 59, 46, 0.0518) 42.16%,
      rgba(226, 59, 46, 0.025) 51%,
      rgba(226, 59, 46, 0.0064) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    radial-gradient(
      520px 300px at 10% 85%,
      rgba(226, 59, 46, 0.1) 0%,
      rgba(226, 59, 46, 0.096) 7.92%,
      rgba(226, 59, 46, 0.0844) 16.5%,
      rgba(226, 59, 46, 0.0677) 25.08%,
      rgba(226, 59, 46, 0.05) 33%,
      rgba(226, 59, 46, 0.0323) 40.92%,
      rgba(226, 59, 46, 0.0156) 49.5%,
      rgba(226, 59, 46, 0.004) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #1a0d0d, #140a0b);
}
.ds-list {
  background: rgba(0, 0, 0, 0.14);
  border-right: 0.5px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
}
.ds-item.on {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Licence tiles use the home page stat-card style. */
.perm > div {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 24px -20px rgba(0, 0, 0, 0.9);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s cubic-bezier(0.2, 0.9, 0.25, 1);
}
/* ---- shared cursor-tracked glass sheen ---- */
.glassy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.glassy::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    var(--sheen, 220px) calc(var(--sheen, 220px) * 0.72) at var(--mx, 50%) var(--my, 0%),
    var(--sheen-a, rgba(255, 255, 255, 0.07)),
    var(--sheen-b, rgba(226, 59, 46, 0.05)) 45%,
    transparent 74%
  );
}
.glassy:hover::before {
  opacity: 1;
}
.glassy::after {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  top: 0;
  height: 1px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--edge, rgba(255, 190, 165, 0.32)),
    transparent
  );
  opacity: 0;
  transition:
    opacity 0.35s ease,
    left 0.45s ease,
    right 0.45s ease;
}
.glassy:hover::after {
  opacity: 1;
  left: 8%;
  right: 8%;
}
.ds:hover::after,
.acc:hover::after,
.ct:hover::after,
.pt-card:hover::after {
  left: 20%;
  right: 20%;
}
.glassy > * {
  position: relative;
  z-index: 1;
}
/* size + tint tuned to each surface's own colour */
.ds,
.acc {
  --sheen: 620px;
  --sheen-a: rgba(255, 214, 198, 0.035);
  --sheen-b: rgba(226, 59, 46, 0.024);
  --edge: rgba(255, 196, 172, 0.16);
}
.ct {
  --sheen: 640px;
  --sheen-a: rgba(255, 205, 186, 0.04);
  --sheen-b: rgba(226, 59, 46, 0.03);
  --edge: rgba(255, 170, 145, 0.2);
}
.pt-card {
  --sheen: 520px;
  --sheen-a: rgba(255, 255, 255, 0.026);
  --sheen-b: rgba(226, 59, 46, 0.018);
  --edge: rgba(255, 220, 205, 0.14);
}
/* like the stat cards: no cursor sheen or edge light, and the icon stays put */
.perm > div.glassy::before,
.perm > div.glassy::after {
  display: none;
}
.perm i,
.perm b,
.perm span {
  position: relative;
  z-index: 1;
}
.perm > div:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.pt-card {
  isolation: isolate;
  /* same glass as the contact panel, a shade lighter */
  border: 0.5px solid rgba(226, 59, 46, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01) 46%),
    radial-gradient(
      420px 240px at 88% 20%,
      rgba(226, 59, 46, 0.09) 0%,
      rgba(226, 59, 46, 0.0864) 8.16%,
      rgba(226, 59, 46, 0.0759) 17%,
      rgba(226, 59, 46, 0.0609) 25.84%,
      rgba(226, 59, 46, 0.045) 34%,
      rgba(226, 59, 46, 0.0291) 42.16%,
      rgba(226, 59, 46, 0.0141) 51%,
      rgba(226, 59, 46, 0.0036) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    linear-gradient(180deg, rgba(33, 17, 17, 0.88), rgba(25, 13, 14, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26),
    0 1px 1px rgba(0, 0, 0, 0.26),
    0 16px 40px -20px rgba(0, 0, 0, 0.7);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.pt-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26),
    0 1px 1px rgba(0, 0, 0, 0.26),
    0 22px 48px -22px rgba(0, 0, 0, 0.78);
}
.pt-logo {
  position: relative;
  z-index: 1;
  background: transparent;
  border-right: none;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

.acc {
  /* same glass as the contact panel, a shade lighter */
  border: 0.5px solid rgba(226, 59, 46, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01) 46%),
    radial-gradient(
      420px 240px at 88% 20%,
      rgba(226, 59, 46, 0.09) 0%,
      rgba(226, 59, 46, 0.0864) 8.16%,
      rgba(226, 59, 46, 0.0759) 17%,
      rgba(226, 59, 46, 0.0609) 25.84%,
      rgba(226, 59, 46, 0.045) 34%,
      rgba(226, 59, 46, 0.0291) 42.16%,
      rgba(226, 59, 46, 0.0141) 51%,
      rgba(226, 59, 46, 0.0036) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    linear-gradient(180deg, rgba(33, 17, 17, 0.88), rgba(25, 13, 14, 0.9));
}
.acc.open .acc-in {
  border-top: 0.5px solid var(--line);
}

.ct {
  border: 0.5px solid rgba(226, 59, 46, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 46%),
    radial-gradient(
      420px 240px at 88% 20%,
      rgba(226, 59, 46, 0.07) 0%,
      rgba(226, 59, 46, 0.0672) 8.16%,
      rgba(226, 59, 46, 0.0591) 17%,
      rgba(226, 59, 46, 0.0474) 25.84%,
      rgba(226, 59, 46, 0.035) 34%,
      rgba(226, 59, 46, 0.0226) 42.16%,
      rgba(226, 59, 46, 0.0109) 51%,
      rgba(226, 59, 46, 0.0028) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    linear-gradient(180deg, rgba(26, 13, 13, 0.86), rgba(20, 10, 11, 0.9));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ds {
    background: linear-gradient(180deg, #1f1112, #170c0d);
  }
  .ct {
    background: linear-gradient(180deg, #1a0d0d, #140a0b);
  }
  .perm > div {
    background: linear-gradient(180deg, #16171c, #111217);
  }
  .acc {
    background: linear-gradient(180deg, #1a0d0d, #140a0b);
  }
}

/* Original style section 5; order preserved. */

@media (prefers-reduced-motion: reduce) {
  .rv,
  .wsplit > i,
  .steps .sn,
  .ct-ico,
  .ct-mail {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .steps li::before,
  .steps li.in::before,
  .steps li.in .sn {
    animation: none;
    transition: none;
  }
  .sec-t::after,
  .pull::before {
    transform: none;
  }
  .car-static code,
  .car-track code {
    animation: none;
  }
  .ct-orb {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Original style section 6; order preserved. */

/* ============ responsive hardening (shared across all pages) ============ */

/* never allow sideways scroll caused by a single wide child */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}
img {
  display: block;
}

/* long strings (emails, URLs, EPSG codes) must not push the layout */
p,
li,
dd,
td,
th,
a,
h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* ---- container padding scales down on small screens ---- */
@media (max-width: 1020px) {
  .wrap {
    padding-inline: 32px;
  }
}
@media (max-width: 760px) {
  .wrap {
    padding-inline: 26px;
  }
}
@media (max-width: 420px) {
  .wrap {
    padding-inline: 22px;
  }
}

/* full-bleed panels must never eat into the gutter on small screens */
@media (max-width: 900px) {
  .ct {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .lk a {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* slim, unobtrusive scrollbars for the horizontal strips */
.ds-list::-webkit-scrollbar,
.mv-side::-webkit-scrollbar,
.dx-strip::-webkit-scrollbar,
.tbl-scroll::-webkit-scrollbar {
  height: 6px;
}
.ds-list::-webkit-scrollbar-track,
.mv-side::-webkit-scrollbar-track,
.dx-strip::-webkit-scrollbar-track,
.tbl-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.ds-list::-webkit-scrollbar-thumb,
.mv-side::-webkit-scrollbar-thumb,
.dx-strip::-webkit-scrollbar-thumb,
.tbl-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
}

/* ---- Navigation below ~900px (six links don't fit) ---- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    background: rgba(22, 12, 13, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: 11px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    z-index: 60;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 14px;
  }
  .burger {
    display: block;
  }
  nav .nav-in {
    position: relative;
  }
}

/* ---- comfortable touch targets on finger-driven devices ---- */
@media (pointer: coarse) {
  .car-btn {
    width: 34px;
    height: 34px;
  }
  .chip,
  .pl-tab,
  .seg button,
  .mini-seg button {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .ds-item {
    padding: 14px;
  }
  .lk a {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

/* ---- tables scroll horizontally instead of breaking the page ---- */
.tbl-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 720px) {
  table.tbl {
    min-width: 560px;
  }
}

/* ---- hero / headline scaling ---- */
@media (max-width: 640px) {
  .hero {
    padding-block: 56px 48px;
  }
  .hero h1 {
    font-size: clamp(30px, 9vw, 40px);
  }
  .hero p,
  .ah p,
  .sec p {
    font-size: 15px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
@media (max-width: 380px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ---- footer ---- */
@media (max-width: 760px) {
  .f-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .f-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }
  .f-logos {
    flex-wrap: wrap;
  }
}

/* Original style section 7; order preserved. */

/* ============ page-specific responsive rules ============ */

/* ---------- maps.html : layer viewer ---------- */
@media (max-width: 900px) {
  .mv {
    grid-template-columns: 1fr;
  }
  .mv-side {
    border-right: none;
    border-bottom: 0.5px solid var(--line);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
  }
  .mv-side h4 {
    display: none;
  }
  #lyList {
    display: flex;
    gap: 8px;
  }
  .ly {
    white-space: nowrap;
    flex: none;
    width: auto;
    margin-bottom: 0;
  }
}
@media (max-width: 640px) {
  .mv-canvas {
    padding: 14px 10px 4px;
    min-height: 240px;
  }
  .tl {
    padding: 12px 16px 16px;
  }
  .tl-top {
    gap: 10px;
  }
  .tl-date {
    font-size: 13.5px;
  }
  .badge {
    top: 12px;
    right: 14px;
    font-size: 10px;
    padding: 5px 10px;
  }
  .lgd {
    gap: 1px;
  }
  .lgd i {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .lgd b {
    width: 100%;
    margin-bottom: 6px;
  }
  .lgd em {
    width: 100%;
    margin: 6px 0 0;
  }
  .p-head,
  .p-foot {
    padding: 12px 16px;
  }
  .p-body {
    padding: 18px 16px;
  }
  .dx-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dx-tab {
    white-space: nowrap;
  }
}

/* ---------- archive.html : request form ---------- */
@media (max-width: 860px) {
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .row {
    gap: 8px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  #fmt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  #fmt .chip {
    text-align: center;
  }
}

/* ---------- impacts.html : country rows ---------- */
@media (max-width: 760px) {
  .ic-row {
    grid-template-columns: 26px 1fr 56px;
    gap: 10px;
    padding: 12px 10px;
  }
  .ic-bar,
  .ic-cat {
    display: none;
  }
  .ic-name {
    font-size: 13.5px;
  }
  .cat-bar {
    height: 30px;
  }
}
@media (max-width: 520px) {
  .cat-bar span {
    min-width: 4px;
  }
}

/* ---------- globe.html ---------- */
@media (max-width: 900px) {
  #globe {
    height: min(58vh, 520px);
  }
}
@media (max-width: 640px) {
  #globe {
    height: min(52vh, 420px);
    margin-top: 0;
  }
  .globe-head {
    padding-block: 40px 4px;
  }
  .lb-x {
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
  #lbsvg {
    width: 86vw;
    height: 46vh;
  }
  .lb-name {
    font-size: 21px;
  }
}

/* ---------- about.html ---------- */
@media (max-width: 900px) {
  .ds {
    grid-template-columns: 1fr;
  }
  .ds-list {
    border-right: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ds-item {
    white-space: nowrap;
    flex: none;
    width: auto;
  }
  .ds-item + .ds-item {
    margin-top: 0;
  }
  .ds-meta {
    grid-template-columns: 1fr;
  }
  .ds-meta > div:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
  .ds-meta > div:nth-child(odd) {
    padding-right: 0;
  }
  .pt-card {
    grid-template-columns: 1fr;
  }
  .pt-logo {
    border-right: none;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07);
    padding: 22px;
  }
  .pt-logo img {
    max-width: 130px;
  }
}
@media (max-width: 640px) {
  .ah {
    padding-block: 52px 30px;
  }
  .ds-body {
    padding: 22px 18px 24px;
  }
  .ds-body h3 {
    font-size: 18px;
  }
  .kv > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .kv dd {
    text-align: left;
    white-space: normal;
  }
  .sec {
    padding-block: 0 48px;
  }
  .steps li {
    padding: 0 0 4px;
  }
  .ct {
    padding: 26px 22px 28px;
  }
  .ct-head {
    gap: 10px;
  }
  .ct h2 {
    font-size: 20px;
  }
  .ct-ico {
    width: 26px;
    height: 36px;
    font-size: 21px;
  }
  .ct-head h2 {
    height: 36px;
  }
  .acc summary {
    padding: 14px 16px;
    font-size: 13.5px;
  }
  .acc-in {
    padding: 14px 16px 18px;
  }
  .lk a {
    padding: 14px 12px;
    font-size: 13.5px;
    gap: 10px;
  }
  .lk a span {
    font-size: 11.5px;
  }
}
@media (max-width: 420px) {
  .lk a {
    flex-wrap: wrap;
  }
  .lk a span {
    margin-left: 0;
    width: 100%;
    padding-left: 23px;
  }
}

/* ---------- index.html : dashboard ---------- */
@media (max-width: 640px) {
  .dash-strip {
    grid-template-columns: 1fr;
  }
  .rep-cell {
    border-left: none;
  }
  .strip-head,
  .dash-head,
  .dash-foot {
    padding-left: 18px;
    padding-right: 18px;
  }
  .dash-cell {
    padding: 20px 18px;
  }
  .ibar {
    height: 30px;
  }
}

/* Original style section 8; order preserved. */

/* ============ about page: generous mobile gutters (final override) ============ */
@media (max-width: 900px) {
  .wrap {
    padding-left: 34px !important;
    padding-right: 34px !important;
  }
  /* panels sit inside the gutter, never flush to the screen edge */
  .ds,
  .acc,
  .ct,
  .pt-card {
    border-radius: 11px;
  }
  .ds-body {
    padding: 24px 22px 26px;
  }
  .ds-list {
    padding: 12px;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
  .ah {
    padding-block: 44px 26px;
  }
  .ah h1 {
    font-size: clamp(26px, 7.6vw, 34px);
    line-height: 1.08;
  }
  .ah p {
    font-size: 14.5px;
    line-height: 1.62;
  }
  .sec {
    padding-block: 0 44px;
  }
  .sec-t {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .sec p {
    font-size: 14px;
  }
  .ds-body {
    padding: 20px 18px 22px;
  }
  .ds-body h3 {
    font-size: 17px;
    line-height: 1.25;
  }
  .ds-desc {
    font-size: 13.5px;
    line-height: 1.7;
  }
  .ds-item {
    padding: 11px 13px;
    font-size: 12.5px;
  }
  .ds-item small {
    font-size: 10.5px;
  }
  .tag {
    font-size: 10px;
    height: 24px;
    padding: 0 10px;
  }
  .steps li {
    padding: 0 0 4px;
  }
  .steps h4 {
    font-size: 13.5px;
  }
  .steps p {
    font-size: 12px;
  }
  .perm > div {
    padding: 17px 17px 19px;
  }
  .perm b {
    font-size: 13.5px;
  }
  .perm span {
    font-size: 12px;
  }
  .pull {
    font-size: 14px;
    padding-left: 18px;
  }
  .pt-txt {
    padding: 20px 20px 22px;
  }
  .pt-txt h4 {
    font-size: 14.5px;
  }
  .pt-txt p {
    font-size: 12.5px;
  }
  .grant {
    font-size: 12px;
  }
}
@media (max-width: 400px) {
  .wrap {
    padding-left: 26px !important;
    padding-right: 26px !important;
  }
  .ah h1 {
    font-size: clamp(24px, 7.4vw, 30px);
  }
  .ct {
    padding: 24px 18px 26px;
  }
  .ct-mail {
    width: 100%;
  }
  .ct .mail {
    font-size: 14.5px;
  }
}

/* Original style section 9; order preserved. */

/* ============ subset range chart ============ */
.sub-none {
  color: var(--tert);
  font-size: 13px;
}
/* Single-layer bar: plain grey with the label inside, no effects. */
.rg-one .rg-row {
  grid-template-columns: 1fr;
}
.rg-one .rg-lab {
  display: none;
}
.rg-one .rg-track {
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}
.rg-one .rg-fill {
  top: 2px;
  bottom: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}
.rg-one .rg-row:hover .rg-fill {
  filter: none;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22);
}
.rg-one .rg-fill::before,
.rg-one .rg-cap-e {
  display: none;
}
.rg-one .rg-row:hover .rg-lab {
  color: var(--muted);
  text-shadow: none;
}
.rg-one .rg-fill em {
  font-style: normal;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.rg {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 2px;
}
.rg-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 12px;
  animation: kvIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.rg-lab {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}
/* Range chart: recessed track with gridlines, glossy fill with end cap and
   a light sweep on load. */
.rg-track {
  position: relative;
  height: 12px;
  border-radius: 4px;
  overflow: visible;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 2.5%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    inset 0 2px 5px rgba(0, 0, 0, 0.45);
}
.rg-gl {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 1px;
  margin-left: -0.5px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 190, 160, 0.18) 30%,
    rgba(255, 190, 160, 0.18) 70%,
    transparent
  );
}
.rg-fill {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 3px;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.34) 0,
      rgba(255, 255, 255, 0.08) 45%,
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(90deg, rgba(240, 165, 40, 0.62), rgba(226, 90, 31, 0.9));
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 210, 170, 0.5),
    0 0 14px -3px rgba(226, 90, 31, 0.75);
  transform-origin: left;
  animation: rgIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 60ms);
  transition:
    box-shadow 0.25s ease,
    filter 0.25s ease;
}
@keyframes rgIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
/* one pass of light along the glass once it has filled */
.rg-fill::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 220, 0.55), transparent);
  transform: translateX(-120%);
  animation: rgSweep 0.9s cubic-bezier(0.35, 0.7, 0.25, 1) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 520ms);
}
@keyframes rgSweep {
  to {
    transform: translateX(320%);
  }
}
/* the end cap, a small lit edge where the range stops */
.rg-cap-e {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  pointer-events: none;
  background: #ffe6cc;
  box-shadow: 0 0 6px 1px rgba(255, 170, 90, 0.85);
  opacity: 0;
  animation: rgCap 0.3s ease forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 640ms);
}
@keyframes rgCap {
  to {
    opacity: 1;
  }
}
.rg-row:hover .rg-fill {
  filter: brightness(1.15);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 220, 180, 0.7),
    0 0 20px -2px rgba(226, 90, 31, 0.95);
}

/* draggable bar: grab cursor, no lag while held, an overshooting spring
   on release */
/* the row is the handle; pan-y keeps vertical page scrolling on touch while
   a sideways drag goes to the bar */
.rg-row {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.rg-row:has(.rg-drag) {
  cursor: grabbing;
}
.rg-track.rg-drag .rg-fill {
  filter: brightness(1.25);
}
.rg-track.rg-back .rg-fill {
  transition:
    width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    filter 0.25s ease;
}
.rg-track.rg-back .rg-cap-e {
  transition: left 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rg-track.rg-back.rg-soft .rg-fill {
  transition:
    width 0.6s cubic-bezier(0.2, 0.85, 0.25, 1),
    box-shadow 0.25s ease,
    filter 0.25s ease;
}
.rg-track.rg-back.rg-soft .rg-cap-e {
  transition: left 0.6s cubic-bezier(0.2, 0.85, 0.25, 1);
}
@media (prefers-reduced-motion: reduce) {
  .rg-track.rg-back .rg-fill {
    transition: width 0.2s ease;
  }
  .rg-track.rg-back .rg-cap-e {
    transition: left 0.2s ease;
  }
}
.rg-row:hover .rg-lab {
  color: #ffc7b8;
  text-shadow: 0 0 10px rgba(226, 90, 31, 0.55);
}
.rg-lab {
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .rg-fill,
  .rg-fill::before,
  .rg-cap-e {
    animation: none;
  }
  .rg-fill::before {
    display: none;
  }
  .rg-cap-e {
    opacity: 1;
  }
}

.rg-axis {
  position: relative;
  height: 15px;
  margin-left: 94px;
  margin-top: 1px;
}
.rg-axis span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--tert);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
}
.rg-axis span:first-child {
  transform: none;
}
.rg-axis span.rg-last {
  transform: translateX(-100%) translateX(calc(-1 * var(--off, 6px)));
}
.rg-cap {
  font-size: 11px;
  color: var(--tert);
  margin-top: 3px;
}

@media (max-width: 600px) {
  .rg-row {
    grid-template-columns: 70px 1fr;
    gap: 10px;
  }
  .rg-lab {
    font-size: 10.5px;
  }
  .rg-axis {
    margin-left: 80px;
  }
}

/* ---- brand mark, footer and link colour ------------------------------ */
/* Nav logo is offset left so the T aligns with the page gutter; the footer
   logo does the same and is larger. */
.brand-logo {
  width: auto;
  height: 60px;
  max-width: none;
  display: block;
  margin-left: -5px;
}
footer .brand {
  margin-bottom: 14px;
}
footer .brand-logo {
  height: 62px;
  margin-left: -6px;
}

/* Links use the site accent instead of default blue. */
footer a.fl:hover {
  color: var(--orange);
}
.f-bottom a {
  color: inherit;
  transition: color 0.2s;
}
.f-bottom a:hover,
.f-bottom span a:hover {
  color: var(--orange);
}

/* Tablet footer: three columns don't fit, so the layout changes here. */
@media (max-width: 1020px) {
  .f-top {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
  .f-top > div:first-child {
    grid-column: 1 / -1;
  }
  footer p {
    max-width: 52ch;
  }
  .f-logos {
    flex-wrap: wrap;
    gap: 16px 22px;
  }
}
@media (max-width: 1000px) {
  .brand-logo {
    height: 52px;
  }
  footer .brand-logo {
    height: 54px;
  }
}
@media (max-width: 760px) {
  .f-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .f-top > div:first-child {
    grid-column: auto;
  }
  .f-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 700px) {
  .brand-logo {
    height: 44px;
  }
  footer .brand-logo {
    height: 46px;
  }
}
@media (max-width: 430px) {
  .brand-logo {
    height: 36px;
  }
  footer .brand-logo {
    height: 40px;
  }
  .f-logos img {
    height: 34px;
  }
}

/* ---- Footer: shared responsive rules for all pages ----
   Fluid sizing, no breakpoint jumps. */
footer .brand {
  margin-bottom: 16px;
}
.f-top {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(28px, 4vw, 44px);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.f-top > div {
  min-width: 0;
}
footer p {
  max-width: 38ch;
}
.f-logos {
  gap: clamp(14px, 2vw, 24px);
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.f-logos img {
  height: clamp(30px, 3.4vw, 42px);
  width: auto;
  filter: none;
}
.f-logos span,
.f-logos a {
  display: flex;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.f-logos a:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}
.f-bottom {
  margin-top: 8px;
  padding-top: 22px;
  padding-bottom: clamp(26px, 3vw, 34px);
  align-items: center;
  row-gap: 10px;
}
@media (max-width: 1020px) {
  .f-top {
    grid-template-columns: 1fr 1fr;
  }
  .f-top > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .f-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  footer .brand {
    margin-bottom: 14px;
  }
  footer p {
    max-width: 46ch;
  }
  .f-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }
}

/* ---- Back to top ----
   Shown only after scrolling past the first screen; doesn't overlap the map controls on phones. */
#toTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(26, 13, 13, 0.72);
  color: var(--muted);
  font-size: 14px;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.94);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.3, 0.9, 0.35, 1),
    visibility 0.35s,
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
#toTop.on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
#toTop:hover {
  color: var(--ink);
  background: rgba(226, 59, 46, 0.26);
  border-color: rgba(255, 255, 255, 0.2);
}
#toTop:active {
  transform: scale(0.94);
}
@media (max-width: 760px) {
  #toTop {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #toTop {
    transition: opacity 0.2s;
  }
}

/* ---- phones: cut what the GPU cannot afford --------------------------- */
@media (max-width: 760px) {
  nav,
  .ds,
  .acc,
  .pt-card,
  .ct,
  .perm > div,
  #toTop {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* ---- Sticky nav ----
   Own compositing layer so the backdrop blur doesn't flash while scrolling.
   Phones get a flat background instead of backdrop-filter. */
/* No contain:paint here: it clipped the mobile dropdown to the 64px nav
   box. The layer promotion stays. */
nav {
  transform: translateZ(0);
  will-change: transform;
}
.nav-links {
  z-index: 60;
}
footer {
  contain: layout paint;
}
@media (max-width: 760px) {
  nav {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(20, 11, 12, 0.96);
  }
}

/* ---- phones: nav ------------------------------------------------------- */
@media (max-width: 760px) {
  .burger {
    width: 44px;
    height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
  .burger:active {
    background: var(--fill2);
  }
}

/* ---- Phones: open menu ----
   Larger tap targets for the menu links. */
@media (max-width: 760px) {
  .nav-links.open {
    gap: 2px;
    padding: 8px;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    text-align: left;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links a::before {
    border-radius: 12px;
  }
  .nav-links a:active {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Original style section 10; order preserved. */

/* ---- primary CTAs: 22% less saturated than the raw brand red ---- */
:root {
  --orange-btn: #c8463c;
}
.btn-primary,
.exp-side .map-link {
  background: var(--orange-btn);
}

/* Original style section 11; order preserved. */

/* tighter gap between the contact card and the footer */
.ct {
  margin-bottom: 0;
}
main > section.wrap.sec:last-of-type {
  padding-bottom: 64px;
}

/* Original style section 12; order preserved. */

/* hero sized like the viewer page */
.ah {
  padding-block: 44px 30px;
}
.ah h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 22ch;
}
.ah p {
  font-size: 15px;
  line-height: 1.62;
  margin-top: 12px;
  max-width: 62ch;
}
@media (max-width: 760px) {
  .ah {
    padding-block: 34px 22px;
  }
  .ah h1 {
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.12;
  }
  .ah p {
    font-size: 14.5px;
  }
}

/* Original style section 13; order preserved. */

/* ---------- custom dropdown ---------- */
select.xs-src {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
}
.xsel {
  position: relative;
  width: 100%;
}
.xsel-b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.xsel-b:hover {
  background: rgba(255, 255, 255, 0.08);
}
.xsel-b > span {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  min-width: 0;
}
.xsel-b > span > em {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.xsel-b > span.ph {
  color: var(--tert);
}
.xsel-b > i {
  font-style: normal;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.xsel.open .xsel-b {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}
.xsel.open .xsel-b > i {
  transform: rotate(180deg);
}
.xsel-b .dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
}
.xsel-p {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  background: rgba(21, 17, 20, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border: 0.5px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  padding: 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 22px 60px -20px rgba(0, 0, 0, 0.92);
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.xsel.up .xsel-p {
  top: auto;
  bottom: calc(100% + 7px);
  transform-origin: bottom center;
}
.xsel.open .xsel-p {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.xsel-p::-webkit-scrollbar {
  width: 8px;
}
.xsel-p::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
}
.xsel-o {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 13.5px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 10px 11px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.xsel-o + .xsel-o {
  margin-top: 2px;
}
.xsel-o:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}
.xsel-o > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xsel-o > b {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  color: var(--tert);
  flex: none;
}
.xsel-o .dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
  margin-top: 3px;
}
/* Two-line options: fixed line-height, checkbox centred on the first
     line. */
.xsel-o.two > span {
  line-height: 1.4;
}
.xsel-o.two .dot {
  margin-top: calc(0.7em - 4.5px);
}
.xsel-o:not(.two) .dot {
  margin-top: 0;
}
.xsel-o.on {
  background: var(--acc-soft, rgba(226, 59, 46, 0.18));
  color: var(--acc-ink, #ffd9cf);
}
.xsel-o.on > b {
  color: inherit;
  opacity: 0.7;
}
.xsel-o.cur {
  outline: 1px solid rgba(255, 255, 255, 0.14);
  outline-offset: -1px;
}

/* Chromium clips button contents, which cut the dot glow on its left */
.xsel-b,
.xsel-o {
  overflow: visible;
}
.xsel-b > span {
  overflow: visible;
}
.xsel-b > span > em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
/* confirmed state mirrors the button */
.xsel.okc .xsel-b {
  background: linear-gradient(180deg, rgba(72, 200, 150, 0.24), rgba(72, 200, 150, 0.1));
  border-color: rgba(72, 200, 150, 0.5);
  color: #eafff4;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease;
}
.xsel.pill {
  width: auto;
  min-width: 158px;
  max-width: 100%;
}
.xsel.pill .xsel-b {
  border-radius: 99px;
  font-size: 12.5px;
  padding: 8px 14px;
}
.xsel.pill .xsel-p {
  left: auto;
  right: 0;
  min-width: 190px;
}
.xsel.pill .xsel-p {
  border-radius: 7px;
}
.xsel-o small {
  display: block;
  font-size: 11px;
  color: var(--tert);
  margin-top: 2px;
  font-weight: 400;
}
.xsel-o.on small {
  color: inherit;
  opacity: 0.6;
}
.xsel-o.two {
  align-items: flex-start;
}
.xsel-o.two > span {
  white-space: normal;
}

/* accent for the dropdown on this page */
.ds {
  --acc: #e23b2e;
  --acc-line: rgba(226, 59, 46, 0.38);
  --acc-soft: rgba(226, 59, 46, 0.19);
  --acc-ink: #ffd9cf;
}
.ds-sel {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-bottom: 0.5px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}
.ds-count {
  font:
    600 11px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  letter-spacing: 0.08em;
  color: var(--tert);
}
.ds-count b {
  color: var(--ink);
  font-weight: 700;
}
.ds-arw {
  display: flex;
  gap: 4px;
}
.ds-arw button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition:
    color 0.18s ease,
    background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.ds-arw button:hover {
  color: var(--ink);
}
.ds-arw button:active {
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 900px) {
  .ds-list {
    display: none;
  }
  .ds-sel {
    display: flex;
  }
  .ds {
    overflow: visible;
  }
}

/* Original style section 14; order preserved. */

/* =============================================================
   Colour vision correction
   html[data-cb]: off | protan | deuter | tritan | achroma
   Daltonisation (LMS-based), matrices built in the script below.
   ============================================================= */

/* Filter goes on each direct child of body, not on body/html: a filtered
   ancestor becomes the containing block for position:fixed and would break
   the sticky nav, back-to-top button and intro overlay. */
html[data-cb='protan'] body > * {
  filter: url(#td-cb-protan);
}
html[data-cb='deuter'] body > * {
  filter: url(#td-cb-deuter);
}
html[data-cb='tritan'] body > * {
  filter: url(#td-cb-tritan);
}
html[data-cb='achroma'] body > * {
  filter: grayscale(1) contrast(1.08);
}
html[data-cb]:not([data-cb='off']) #td-cb-defs {
  filter: none;
}

/* colour is never the only signal, whatever the mode */
html[data-cb]:not([data-cb='off']) .ds-item,
html[data-cb]:not([data-cb='off']) .cbtn {
  position: relative;
}
html[data-cb]:not([data-cb='off']) .ds-item.on::after,
html[data-cb]:not([data-cb='off']) .cbtn.on::after {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  border-radius: 2px;
  background: currentColor;
}
html[data-cb]:not([data-cb='off']) .tsub button.on {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Nav layout: links are taken out of the flex flow so they stay centred
   regardless of what's on either side. */
@media (min-width: 761px) {
  /* brand keeps the left edge, menu and the control sit together on the right */
  nav .nav-in {
    justify-content: flex-start;
    gap: 18px;
  }
  nav .nav-in > .nav-links {
    margin: 0 0 0 auto;
  }
  nav .nav-in > .td-a11y {
    margin: 0;
  }
  /* Between 761 and 900px the burger is visible; the control sits next to
     it. */
  nav .nav-in > .burger {
    margin-left: auto;
  }
}
@media (min-width: 761px) and (max-width: 900px) {
  nav .nav-in > .td-a11y {
    margin-left: auto;
  }
  nav .nav-in > .burger {
    margin-left: -10px;
  }
}

/* =============================================================
   the control  \00B7   same HUD language as the viewer toolbar
   ============================================================= */
/* Trigger uses the same pill as the nav links (one control group). */
.td-a11y {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  background: var(--fill);
  border-radius: 99px;
  padding: 3px;
}
.td-a11y-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: none;
  padding: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 99px;
  transition:
    color 0.28s cubic-bezier(0.3, 0.8, 0.35, 1),
    background 0.28s cubic-bezier(0.3, 0.8, 0.35, 1),
    box-shadow 0.28s cubic-bezier(0.3, 0.8, 0.35, 1);
}
.td-a11y-btn:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}
.td-a11y-btn:active {
  transform: scale(0.97);
}
.td-a11y.open .td-a11y-btn {
  background: var(--fill2);
  color: var(--ink);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
.td-a11y.on .td-a11y-btn {
  background: rgba(226, 59, 46, 0.22);
  color: #ffd9cf;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16);
}
/* a live dot marks that a correction is running */
.td-a11y.on .td-a11y-btn::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd9cf;
  box-shadow: 0 0 6px #e23b2e;
}

.td-a11y-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 200;
  width: 246px;
  padding: 14px;
  border-radius: 11px;
  background: rgba(226, 59, 46, 0.2);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.td-a11y-pop::before {
  content: '';
  position: absolute;
  inset: 0.5px;
  z-index: 0;
  border-radius: 10.5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(26, 15, 16, 0.97), rgba(18, 10, 11, 0.98));
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  backdrop-filter: saturate(170%) blur(20px);
}
.td-a11y-pop > * {
  position: relative;
  z-index: 1;
}
.td-a11y.open .td-a11y-pop {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.td-a11y-pop h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 11px;
  font:
    700 9.5px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 199, 184, 0.72);
}
.td-a11y-pop h5 span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 59, 46, 0.4), transparent);
}

.td-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.td-list button.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: none;
  padding: 8px 10px;
  background: transparent;
  font:
    600 12.5px Manrope,
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--muted);
  border-radius: 99px;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.td-list button.opt:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}
.td-list button.opt[aria-pressed='true'] {
  background: rgba(226, 59, 46, 0.2);
  color: #ffd9cf;
}
/* the badge carries the mode code, so the row reads without colour */
.td-list button.opt b {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--tert);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.09);
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.td-list button.opt b svg {
  display: block;
}
.td-list button.opt:hover b {
  color: var(--ink);
}
.td-list button.opt[aria-pressed='true'] b {
  background: rgba(226, 59, 46, 0.34);
  color: #ffd9cf;
  box-shadow: none;
}
.td-list button.opt span {
  flex: 1;
  min-width: 0;
}
.td-list button.opt em {
  font-style: normal;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--tert);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.td-list button.opt:hover em,
.td-list button.opt[aria-pressed='true'] em {
  opacity: 1;
}

@media (max-width: 760px) {
  /* Negative margin to offset nav-in's flex gap next to the burger. */
  nav .nav-in {
    gap: 8px;
  }
  .td-a11y {
    margin-left: auto;
    margin-right: 0;
  }
  /* nav carries transform:translateZ(0), so it is the containing block for
     anything fixed inside it; the panel therefore stays absolute here */
  .td-a11y-pop {
    right: -4px;
    width: min(258px, calc(100vw - 26px));
  }
}

/* Original style section 15; order preserved. */

/* index look: warm top glow (original placement) */
body {
  background-image:
    radial-gradient(
      1200px 600px at 72% -10%,
      rgba(205, 56, 38, 0.16) 0%,
      rgba(205, 56, 38, 0.1536) 6.96%,
      rgba(205, 56, 38, 0.135) 14.5%,
      rgba(205, 56, 38, 0.1082) 22.04%,
      rgba(205, 56, 38, 0.08) 29%,
      rgba(205, 56, 38, 0.0518) 35.96%,
      rgba(205, 56, 38, 0.025) 43.5%,
      rgba(205, 56, 38, 0.0064) 51.04%,
      rgba(205, 56, 38, 0) 58%
    ),
    radial-gradient(
      1000px 620px at 8% 6%,
      rgba(44, 74, 160, 0.12) 0%,
      rgba(44, 74, 160, 0.1152) 7.2%,
      rgba(44, 74, 160, 0.1012) 15%,
      rgba(44, 74, 160, 0.0812) 22.8%,
      rgba(44, 74, 160, 0.06) 30%,
      rgba(44, 74, 160, 0.0388) 37.2%,
      rgba(44, 74, 160, 0.0187) 45%,
      rgba(44, 74, 160, 0.0048) 52.8%,
      rgba(44, 74, 160, 0) 60%
    );
}
.steps .sn {
  color: #ffb59c;
  text-shadow: 0 0 10px rgba(226, 59, 46, 0.55);
}
.steps li.in .sn {
  opacity: 0.9;
}
@keyframes snIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 0.9;
    transform: none;
  }
}
.arc::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -60px;
  bottom: -60px;
  width: min(1500px, 100vw);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    42% 46% at 60% 58%,
    rgba(226, 59, 46, 0.1) 0%,
    rgba(226, 59, 46, 0.096) 8.64%,
    rgba(226, 59, 46, 0.0844) 18%,
    rgba(226, 59, 46, 0.0677) 27.36%,
    rgba(226, 59, 46, 0.05) 36%,
    rgba(226, 59, 46, 0.0323) 44.64%,
    rgba(226, 59, 46, 0.0156) 54%,
    rgba(226, 59, 46, 0.004) 63.36%,
    rgba(226, 59, 46, 0) 72%
  );
}
/* licence: no boxes, index-style facts with vertical separators */
.perm {
  gap: 0;
  margin-bottom: 30px;
}
.perm > div {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 2px 26px 4px;
}
.perm > div:first-child {
  padding-left: 0;
}
.perm > div:hover {
  border-color: transparent;
  transform: none;
}
.perm > div.glassy + div.glassy::before {
  display: block;
  content: '';
  position: absolute;
  inset: -6px auto -6px 0;
  width: 1px;
  opacity: 1;
  transition: none;
  background: linear-gradient(180deg, transparent, rgba(255, 150, 110, 0.45), transparent);
}
.perm i {
  color: #ffb59c;
  text-shadow: 0 0 10px rgba(226, 59, 46, 0.55);
}
.lk a i {
  color: #ffb59c;
  text-shadow: 0 0 10px rgba(226, 59, 46, 0.55);
}
.sec a.fl {
  color: #ffb59c;
  transition: color 0.2s ease;
}
.sec a.fl:hover {
  color: #fff;
}
@media (max-width: 1000px) {
  .perm {
    row-gap: 28px;
  }
  .perm > div:nth-child(odd) {
    padding-left: 0;
  }
  .perm > div.glassy + div.glassy:nth-child(odd)::before {
    display: none;
  }
}
@media (max-width: 640px) {
  .perm {
    row-gap: 22px;
  }
  .perm > div,
  .perm > div:nth-child(odd) {
    padding: 0;
  }
  .perm > div.glassy + div.glassy::before {
    display: none;
  }
}
.pull {
  border-left: none;
  padding-left: 24px;
}
.pull::before {
  border-radius: 0.5px;
  background: linear-gradient(180deg, rgba(255, 150, 110, 0.8), rgba(226, 59, 46, 0.3));
  box-shadow: 0 0 8px rgba(226, 59, 46, 0.35);
}
@media (max-width: 600px) {
  .pull {
    padding-left: 20px;
  }
}

/* Original style section 16; order preserved. */

/* scrollbar track: the page background lives on html, and turns into the footer colour where the footer starts.
   Top glows scroll with the page (they stay at the top instead of following the viewport). */
html {
  background:
    radial-gradient(
      1200px 600px at 72% -10vh,
      rgba(205, 56, 38, 0.16) 0%,
      rgba(205, 56, 38, 0.1536) 6.96%,
      rgba(205, 56, 38, 0.135) 14.5%,
      rgba(205, 56, 38, 0.1082) 22.04%,
      rgba(205, 56, 38, 0.08) 29%,
      rgba(205, 56, 38, 0.0518) 35.96%,
      rgba(205, 56, 38, 0.025) 43.5%,
      rgba(205, 56, 38, 0.0064) 51.04%,
      rgba(205, 56, 38, 0) 58%
    ),
    radial-gradient(
      1000px 620px at 8% 6vh,
      rgba(44, 74, 160, 0.12) 0%,
      rgba(44, 74, 160, 0.1152) 7.2%,
      rgba(44, 74, 160, 0.1012) 15%,
      rgba(44, 74, 160, 0.0812) 22.8%,
      rgba(44, 74, 160, 0.06) 30%,
      rgba(44, 74, 160, 0.0388) 37.2%,
      rgba(44, 74, 160, 0.0187) 45%,
      rgba(44, 74, 160, 0.0048) 52.8%,
      rgba(44, 74, 160, 0) 60%
    ),
    linear-gradient(180deg, #100707, #0a0505) 0 100%/100% 0 no-repeat scroll,
    var(--bg);
}
body {
  background: transparent;
}

/* Original style section 17; order preserved. */

/* colour vision: the page glow is painted on html, which the filter on body > *
   cannot reach, so each mode gets the glow already passed through its own matrix */
html[data-cb='protan'] {
  background:
    radial-gradient(
      1200px 600px at 72% -10vh,
      rgba(205, 132, 130, 0.16) 0%,
      rgba(205, 132, 130, 0.1536) 6.96%,
      rgba(205, 132, 130, 0.135) 14.5%,
      rgba(205, 132, 130, 0.1082) 22.04%,
      rgba(205, 132, 130, 0.08) 29%,
      rgba(205, 132, 130, 0.0518) 35.96%,
      rgba(205, 132, 130, 0.025) 43.5%,
      rgba(205, 132, 130, 0.0064) 51.04%,
      rgba(205, 132, 130, 0) 58%
    ),
    radial-gradient(
      1000px 620px at 8% 6vh,
      rgba(44, 59, 141, 0.12) 0%,
      rgba(44, 59, 141, 0.1152) 7.2%,
      rgba(44, 59, 141, 0.1012) 15%,
      rgba(44, 59, 141, 0.0812) 22.8%,
      rgba(44, 59, 141, 0.06) 30%,
      rgba(44, 59, 141, 0.0388) 37.2%,
      rgba(44, 59, 141, 0.0187) 45%,
      rgba(44, 59, 141, 0.0048) 52.8%,
      rgba(44, 59, 141, 0) 60%
    ),
    linear-gradient(180deg, #100c0d, #0a0808) 0 100%/100% 0 no-repeat scroll,
    #0a0b14;
}
html[data-cb='deuter'] {
  background:
    radial-gradient(
      1200px 600px at 72% -10vh,
      rgba(205, 86, 115, 0.16) 0%,
      rgba(205, 86, 115, 0.1536) 6.96%,
      rgba(205, 86, 115, 0.135) 14.5%,
      rgba(205, 86, 115, 0.1082) 22.04%,
      rgba(205, 86, 115, 0.08) 29%,
      rgba(205, 86, 115, 0.0518) 35.96%,
      rgba(205, 86, 115, 0.025) 43.5%,
      rgba(205, 86, 115, 0.0064) 51.04%,
      rgba(205, 86, 115, 0) 58%
    ),
    radial-gradient(
      1000px 620px at 8% 6vh,
      rgba(44, 68, 144, 0.12) 0%,
      rgba(44, 68, 144, 0.1152) 7.2%,
      rgba(44, 68, 144, 0.1012) 15%,
      rgba(44, 68, 144, 0.0812) 22.8%,
      rgba(44, 68, 144, 0.06) 30%,
      rgba(44, 68, 144, 0.0388) 37.2%,
      rgba(44, 68, 144, 0.0187) 45%,
      rgba(44, 68, 144, 0.0048) 52.8%,
      rgba(44, 68, 144, 0) 60%
    ),
    linear-gradient(180deg, #10090c, #0a0608) 0 100%/100% 0 no-repeat scroll,
    #0a0c14;
}
html[data-cb='tritan'] {
  background:
    radial-gradient(
      1200px 600px at 72% -10vh,
      rgba(255, 146, 38, 0.16) 0%,
      rgba(255, 146, 38, 0.1536) 6.96%,
      rgba(255, 146, 38, 0.135) 14.5%,
      rgba(255, 146, 38, 0.1082) 22.04%,
      rgba(255, 146, 38, 0.08) 29%,
      rgba(255, 146, 38, 0.0518) 35.96%,
      rgba(255, 146, 38, 0.025) 43.5%,
      rgba(255, 146, 38, 0.0064) 51.04%,
      rgba(255, 146, 38, 0) 58%
    ),
    radial-gradient(
      1000px 620px at 8% 6vh,
      rgba(26, 56, 160, 0.12) 0%,
      rgba(26, 56, 160, 0.1152) 7.2%,
      rgba(26, 56, 160, 0.1012) 15%,
      rgba(26, 56, 160, 0.0812) 22.8%,
      rgba(26, 56, 160, 0.06) 30%,
      rgba(26, 56, 160, 0.0388) 37.2%,
      rgba(26, 56, 160, 0.0187) 45%,
      rgba(26, 56, 160, 0.0048) 52.8%,
      rgba(26, 56, 160, 0) 60%
    ),
    linear-gradient(180deg, #150c07, #0d0805) 0 100%/100% 0 no-repeat scroll,
    #080b16;
}
html[data-cb='achroma'] {
  background:
    radial-gradient(
      1200px 600px at 72% -10vh,
      rgba(83, 83, 83, 0.16) 0%,
      rgba(83, 83, 83, 0.1536) 6.96%,
      rgba(83, 83, 83, 0.135) 14.5%,
      rgba(83, 83, 83, 0.1082) 22.04%,
      rgba(83, 83, 83, 0.08) 29%,
      rgba(83, 83, 83, 0.0518) 35.96%,
      rgba(83, 83, 83, 0.025) 43.5%,
      rgba(83, 83, 83, 0.0064) 51.04%,
      rgba(83, 83, 83, 0) 58%
    ),
    radial-gradient(
      1000px 620px at 8% 6vh,
      rgba(70, 70, 70, 0.12) 0%,
      rgba(70, 70, 70, 0.1152) 7.2%,
      rgba(70, 70, 70, 0.1012) 15%,
      rgba(70, 70, 70, 0.0812) 22.8%,
      rgba(70, 70, 70, 0.06) 30%,
      rgba(70, 70, 70, 0.0388) 37.2%,
      rgba(70, 70, 70, 0.0187) 45%,
      rgba(70, 70, 70, 0.0048) 52.8%,
      rgba(70, 70, 70, 0) 60%
    ),
    linear-gradient(180deg, #000000, #000000) 0 100%/100% 0 no-repeat scroll,
    #040404;
}
/* with the page content filtered, a translucent panel fill shows the text
   behind it; the panel uses an opaque fill (same colours) and no blur */
html[data-cb]:not([data-cb='off']) .td-a11y-pop::before {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, #1a0f10, #120a0b);
}

/* Original style section 18; order preserved. */

/* =============================================================
   Mobile guard, part 2
   No visual change on desktop. On phones: removes backdrop filters,
   permanent layer promotion and off-screen rendering.
   ============================================================= */
@media (max-width: 900px), (pointer: coarse) {
  /* backdrop-filter is expensive; panels keep their translucency without
     sampling the background. */
  *,
  *::before,
  *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* No permanent layer promotion; let the browser decide. */
  * {
    will-change: auto !important;
  }

  /* Every one of these rasterises its subtree a second time, at full
     device pixel ratio, purely for decoration. */
  .heromap svg,
  .rv-b,
  .orb,
  .glow,
  .halo {
    filter: none !important;
  }

  /* Sections render normally (no content-visibility:auto): a skipped one
     is only drawn once scrolled to, so it and the footer would pop in. */

  /* Section reveals stay on phones, kept light: a shorter fade and lift,
     no blur. */
  .rv,
  .rv.rv-go {
    transition:
      opacity 0.6s ease,
      transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    transition-delay: calc(var(--i, 0) * 50ms) !important;
  }

  nav {
    background: rgba(20, 11, 12, 0.96) !important;
  }

  /* Smooth scrolling on a long document costs a frame budget the phone
     does not have while the globe is live. */
  html {
    scroll-behavior: auto !important;
  }
}

/* Original style section 19; order preserved. */

/* phones: headings, intros, section labels and footer centred; forms, tables
   and panel content stay left-aligned */
@media (max-width: 760px) {
  .ah,
  .vw-head,
  .ed-gate > .kicker,
  .ed-gate > h1,
  .ed-gate > p {
    text-align: center;
  }
  .ah > h1,
  .ah > p,
  .vw-head > h1,
  .vw-head > p,
  .ed-gate > h1,
  .ed-gate > p {
    margin-inline: auto;
  }
  .vw-jumps {
    justify-content: center;
  }
  .ah-stats .stat {
    text-align: center;
  }
  .sec-t {
    justify-content: center;
  }
  .sec-t::before {
    content: '';
    flex: 1;
    height: 0.5px;
    background: var(--line);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
  }
  .sec-t.in::before {
    transform: scaleX(1);
  }
  footer .f-top {
    text-align: center;
  }
  footer .brand,
  footer .f-logos {
    justify-content: center;
  }
  footer .brand-logo {
    margin-left: auto;
    margin-right: auto;
  }
  footer p {
    margin-inline: auto;
  }
  footer .f-bottom {
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 760px) {
  .ah-stats {
    margin-inline: auto;
  }
  .ah-stats .stat,
  .ah-stats .stat:first-child,
  .ah-stats .stat:nth-child(odd) {
    align-items: center;
    padding: 0 12px;
  }
  .perm {
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .sec-t::before {
    transform: none;
    transition: none;
  }
}

/* Original style section 20; order preserved. */

/* page scrollbar drawn over the page: the native one is hidden (desktop only, set by
   the script below), so no strip is reserved beside the content */
html.pgsb {
  scrollbar-width: none;
}
html.pgsb::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
#pgSb {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 14px;
  z-index: 2147483000;
  pointer-events: none;
}
#pgSb i {
  position: absolute;
  top: 0;
  right: 3px;
  width: 6px;
  height: 40px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  pointer-events: auto;
  cursor: default;
  will-change: transform;
  transition:
    opacity 0.45s ease,
    width 0.2s ease,
    right 0.2s ease,
    background-color 0.2s ease;
}
#pgSb.on i {
  opacity: 1;
  transition-duration: 0.18s, 0.2s, 0.2s, 0.2s;
}
#pgSb i:hover,
#pgSb.drag i {
  width: 8px;
  right: 2px;
  background: rgba(255, 255, 255, 0.32);
}
#pgSb.off {
  display: none;
}
html.pgsb-drag,
html.pgsb-drag * {
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* ---- layers in detail: one card per map layer, linked from the viewer's
   "About layer" panel as about#layer-<id> ---- */
.lyd-list {
  display: grid;
  gap: 14px;
}
.lyd {
  border-radius: 11px;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 24px 28px 26px;
  scroll-margin-top: 90px;
  transition:
    border-color 0.25s,
    box-shadow 0.6s;
}
.lyd:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.lyd h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.lyd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 14px;
}
.lyd h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tert);
  margin-bottom: 6px;
}
.sec .lyd p {
  font-size: 13.5px;
  line-height: 1.75;
  max-width: none;
}
/* the card a viewer link landed on */
.lyd.hit {
  border-color: rgba(226, 59, 46, 0.55);
  box-shadow: 0 0 0 3px rgba(226, 59, 46, 0.14);
}
@media (max-width: 760px) {
  .lyd {
    padding: 20px 18px 22px;
  }
  .lyd-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
