/* 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;
}
#your-details[hidden] {
  display: none;
}
.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;
}

/* number pop on the archive steps */
.steps .sn {
  transform: scale(0.5);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.2, 1.5, 0.4, 1) 0.12s,
    opacity 0.4s ease 0.12s,
    background 0.22s ease,
    border-color 0.22s ease;
}
.steps li.in .sn {
  transform: none;
  opacity: 1;
}

/* 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;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 99px;
  border: 0.5px solid var(--line);
  color: var(--muted);
  background: var(--fill);
}
.tag.m {
  background: rgba(226, 59, 46, 0.18);
  border-color: transparent;
  color: #ffd9cf;
}
.tag.f {
  background: rgba(240, 165, 40, 0.16);
  border-color: rgba(240, 165, 40, 0.34);
  color: #ffe0ac;
}
.ds-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}
.ds-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
}
.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 0;
  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%;
  max-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: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 24px 4px 0;
  border-top: 0.5px solid var(--line);
  transition: border-color 0.22s ease;
}
.steps li:hover {
  border-top-color: rgba(255, 255, 255, 0.2);
}
.steps .sn {
  transition:
    background 0.22s ease,
    border-color 0.22s ease;
}
.steps li:hover .sn {
  background: rgba(226, 59, 46, 0.32);
  border-color: transparent;
}
.steps .sn {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffd9cf;
  background: rgba(226, 59, 46, 0.22);
  border: 0.5px solid transparent;
}
.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;
}

/* 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: var(--orange);
  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: var(--orange);
  font-size: 12px;
}
.grant em {
  font-style: italic;
}

@media (max-width: 1000px) {
  .steps,
  .perm {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .steps,
  .perm {
    grid-template-columns: 1fr;
  }
}

/* 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);
}

.perm > div {
  position: relative;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.022) 42%,
      rgba(255, 255, 255, 0.038)
    ),
    radial-gradient(
      300px 180px at 84% 10%,
      rgba(96, 120, 160, 0.1) 0%,
      rgba(96, 120, 160, 0.096) 8.16%,
      rgba(96, 120, 160, 0.0844) 17%,
      rgba(96, 120, 160, 0.0677) 25.84%,
      rgba(96, 120, 160, 0.05) 34%,
      rgba(96, 120, 160, 0.0323) 42.16%,
      rgba(96, 120, 160, 0.0156) 51%,
      rgba(96, 120, 160, 0.004) 59.84%,
      rgba(96, 120, 160, 0) 68%
    ),
    rgba(13, 15, 22, 0.74);
  transition:
    border-color 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s ease;
}
/* ---- 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);
}
.perm > div {
  --sheen: 240px;
  --sheen-a: rgba(226, 232, 242, 0.085);
  --sheen-b: rgba(120, 140, 175, 0.04);
  --edge: rgba(190, 215, 255, 0.34);
}
.perm i,
.perm b,
.perm span {
  position: relative;
  z-index: 1;
}
.perm i {
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.28s ease;
}
.perm > div:hover i {
  transform: translateY(-2px) scale(1.06);
  color: #fff;
}
.perm > div:hover {
  border-color: rgba(120, 165, 245, 0.34);
  transform: translateY(-2px);
  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 46px -20px rgba(0, 0, 0, 0.78);
}

.pt-card {
  isolation: isolate;
  border: 0.5px solid rgba(226, 59, 46, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 46%),
    radial-gradient(
      600px 340px at 78% 20%,
      rgba(226, 59, 46, 0.12) 0%,
      rgba(226, 59, 46, 0.1152) 8.16%,
      rgba(226, 59, 46, 0.1012) 17%,
      rgba(226, 59, 46, 0.0812) 25.84%,
      rgba(226, 59, 46, 0.06) 34%,
      rgba(226, 59, 46, 0.0388) 42.16%,
      rgba(226, 59, 46, 0.0187) 51%,
      rgba(226, 59, 46, 0.0048) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    radial-gradient(
      520px 300px at 10% 85%,
      rgba(226, 59, 46, 0.07) 0%,
      rgba(226, 59, 46, 0.0672) 7.92%,
      rgba(226, 59, 46, 0.0591) 16.5%,
      rgba(226, 59, 46, 0.0474) 25.08%,
      rgba(226, 59, 46, 0.035) 33%,
      rgba(226, 59, 46, 0.0226) 40.92%,
      rgba(226, 59, 46, 0.0109) 49.5%,
      rgba(226, 59, 46, 0.0028) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #201113, #180d0e);
  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: rgba(255, 255, 255, 0.022);
  border-right: none;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

.acc {
  border: 0.5px solid rgba(226, 59, 46, 0.16);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.01) 44%,
      rgba(255, 255, 255, 0.018)
    ),
    radial-gradient(
      560px 280px at 80% 16%,
      rgba(226, 59, 46, 0.13) 0%,
      rgba(226, 59, 46, 0.1248) 8.16%,
      rgba(226, 59, 46, 0.1097) 17%,
      rgba(226, 59, 46, 0.088) 25.84%,
      rgba(226, 59, 46, 0.065) 34%,
      rgba(226, 59, 46, 0.042) 42.16%,
      rgba(226, 59, 46, 0.0203) 51%,
      rgba(226, 59, 46, 0.0052) 59.84%,
      rgba(226, 59, 46, 0) 68%
    ),
    radial-gradient(
      480px 250px at 10% 86%,
      rgba(226, 59, 46, 0.07) 0%,
      rgba(226, 59, 46, 0.0672) 7.92%,
      rgba(226, 59, 46, 0.0591) 16.5%,
      rgba(226, 59, 46, 0.0474) 25.08%,
      rgba(226, 59, 46, 0.035) 33%,
      rgba(226, 59, 46, 0.0226) 40.92%,
      rgba(226, 59, 46, 0.0109) 49.5%,
      rgba(226, 59, 46, 0.0028) 58.08%,
      rgba(226, 59, 46, 0) 66%
    ),
    linear-gradient(180deg, #201113, #180d0e);
}
.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, #12141c, #0c0e14);
  }
  .acc {
    background: linear-gradient(180deg, #1f1112, #170c0d);
  }
}

/* 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;
  }
  .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: 16px 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 4px;
    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,
  .perm > div {
    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;
    padding: 4px 9px;
  }
  .steps li {
    padding: 15px 0 4px;
    gap: 12px;
  }
  .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;
}

.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;
}
.rg-track {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.05);
}
.rg-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #f0a528, #e25a1f);
  transform-origin: left;
  animation: rgIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 60ms);
}
@keyframes rgIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.rg-row:hover .rg-fill {
  filter: brightness(1.18);
}
.rg-row:hover .rg-lab {
  color: #ffc7b8;
}

.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,
  .receipt {
    -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. */

/* ---------- archive : shared shell ---------- */
.ah-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 30px;
  max-width: 720px;
}
.ah-stats .stat {
  background: rgba(255, 255, 255, 0.035);
  border: 0.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.ah-stats .stat b {
  font-size: 22px;
  font-weight: 700;
  display: block;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ah-stats .stat span {
  font-size: 10.5px;
  color: var(--tert);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  min-height: 1.2em;
}
.ah-stats .stat b {
  min-height: 1.15em;
}
.ah-stats .stat.typing span::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--orange);
  animation: caret 0.7s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

.panel {
  border-radius: 12px;
  border: 0.5px solid rgba(226, 59, 46, 0.14);
  overflow: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  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);
}
.panel > * {
  min-width: 0;
}

/* accent scheme, one per data layer -- shared by the builder and the form */
.rq-scope {
  --acc: #e23b2e;
  --acc-glow: rgba(226, 59, 46, 0.12);
  --acc-line: rgba(226, 59, 46, 0.35);
  --acc-soft: rgba(226, 59, 46, 0.18);
  --acc-ink: #ffd9cf;
  --acc-edge: rgba(226, 59, 46, 0.72);
  --acc-t1: rgba(226, 59, 46, 0.34);
  --acc-t2: rgba(140, 36, 28, 0.26);
  --acc-btn: #cf5045;
  --acc-bg1: #1a0d0d;
  --acc-bg2: #140a0b;
  /* Default single-layer background; pick() writes one radial per selected
       layer. */
  --acc-mesh:
    radial-gradient(560px 320px at 84% 12%, var(--acc-glow), transparent 66%),
    radial-gradient(420px 300px at 4% 96%, var(--acc-glow), transparent 62%),
    linear-gradient(180deg, var(--acc-bg1), var(--acc-bg2));
}
/* the reveal's opacity and transform stay in the list, or the panel
     jumps in when it is revealed */
.panel.rq,
#reqForm {
  border-color: rgba(255, 255, 255, 0.09);
  background: var(--acc-mesh);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.5s ease,
    background 0.5s ease;
}
#reqForm .fld > span {
  transition: color 0.5s ease;
}
/* fields being used get a neutral light edge, not the red accent */
#reqForm input:focus,
#reqForm textarea:focus,
#reqForm .xsel.open .xsel-b {
  border-color: rgba(255, 255, 255, 0.22);
}
#reqForm .chk a {
  color: var(--acc-ink);
}
.submit {
  transition:
    background 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.18s;
}
#reqForm .submit {
  background: var(--acc-btn);
  box-shadow: 0 6px 20px -8px var(--acc);
}
#reqForm .submit:hover {
  box-shadow: 0 12px 30px -10px var(--acc);
}
.rq-scope .sec-t {
  transition: color 0.5s ease;
}
.rq-list,
.rq-side {
  transition: background 0.5s ease;
}

/* ---------- request builder ---------- */
.rq {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 300px;
}
.rq-list {
  border-right: 0.5px solid var(--line);
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px 0 0 12px;
}
.rq .ds-item.on {
  background: var(--li-soft);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--li-ink);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}
.rq .ds-item.on small {
  color: var(--li-ink);
  opacity: 0.62;
}
.rq .ds-item.on b {
  position: relative;
}
.rq-body input:focus,
.rq-body select:focus,
.rq-body textarea:focus {
  border-color: rgba(255, 255, 255, 0.22);
}
.rq .ds-item.on b::before {
  content: none;
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--acc);
  box-shadow: 0 0 10px var(--acc);
}
.rq-body {
  padding: 26px 30px 30px;
  min-width: 0;
}
.rq-side {
  border-left: 0.5px solid var(--line);
  padding: 22px;
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
  border-radius: 0 12px 12px 0;
  display: flex;
  flex-direction: column;
}

/* jump to the request form */
.jump {
  margin-top: auto;
  align-self: stretch;
  width: 100%;
  padding: 15px 22px 16px 23px;
  font-size: 11px;
}

/* ---------- layer switch choreography ---------- */
.panel.rq,
#reqForm {
  position: relative;
}
.panel.rq::after,
#reqForm::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(0 round 12px);
  background: linear-gradient(
    104deg,
    transparent 34%,
    var(--acc-glow) 48%,
    var(--acc-glow) 52%,
    transparent 66%
  );
}
.panel.rq.sweep::after,
#reqForm.sweep::after {
  animation: rqSweep 0.75s cubic-bezier(0.3, 0.7, 0.3, 1);
}
@keyframes rqSweep {
  0% {
    opacity: 0;
    transform: translateX(-26%);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(26%);
  }
}

.rq-body.swap .fgrp {
  animation: fgIn 0.52s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}
.rq-body.swap .fgrp:nth-child(1) {
  animation-delay: 0.02s;
}
.rq-body.swap .fgrp:nth-child(2) {
  animation-delay: 0.07s;
}
.rq-body.swap .fgrp:nth-child(3) {
  animation-delay: 0.12s;
}
.rq-body.swap .fgrp:nth-child(4) {
  animation-delay: 0.17s;
}
@keyframes fgIn {
  from {
    opacity: 0;
    transform: translateY(9px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.rq-body.swap .tsub button,
.rq-body.swap .subnone {
  animation: chipPop 0.46s cubic-bezier(0.2, 0.95, 0.3, 1) both;
  animation-delay: calc(0.1s + var(--i, 0) * 45ms);
}
.rq-body.swap .tsub {
  animation: fgIn 0.4s ease both;
  animation-delay: 0.06s;
}
@keyframes chipPop {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rq-side.swap .sum > div,
.rq-side.swap .est,
.rq-side.swap .jump {
  animation: valIn 0.5s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}
.rq-side.swap .sum > div:nth-child(1) {
  animation-delay: 0.04s;
}
.rq-side.swap .sum > div:nth-child(2) {
  animation-delay: 0.08s;
}
.rq-side.swap .sum > div:nth-child(3) {
  animation-delay: 0.12s;
}
.rq-side.swap .sum > div:nth-child(4) {
  animation-delay: 0.16s;
}
.rq-side.swap .sum > div:nth-child(5) {
  animation-delay: 0.2s;
}
.rq-side.swap .est {
  animation-delay: 0.24s;
}
.rq-side.swap .jump {
  animation-delay: 0.28s;
}
@keyframes valIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rq .ds-item.on {
  animation: itemOn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes itemOn {
  0% {
    transform: scale(0.985);
  }
  55% {
    transform: scale(1.015);
  }
  100% {
    transform: none;
  }
}
.rq .ds-item {
  transform-origin: left center;
}

.fgrp {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 0.5px solid var(--line);
  position: relative;
}
.fgrp:first-child,
.only-sm + .fgrp {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}
.flab {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--acc-ink);
  opacity: 0.82;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flab span {
  color: var(--tert);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 11.5px;
}

/* ---- recessed subset rail (same language as the viewer toolbar) ---- */
.tsub {
  display: inline-flex;
  gap: 0;
  position: relative;
  isolation: isolate;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.18));
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.09),
    inset 0 1px 3px rgba(0, 0, 0, 0.45);
  padding: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tsub::-webkit-scrollbar {
  display: none;
}
.tsub::before {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}
.tsub button {
  position: relative;
  flex: none;
  font: inherit;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 9px 16px 10px;
  cursor: pointer;
  color: var(--tert);
  background: transparent;
  border: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.tsub button + button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  transition: opacity 0.2s ease;
}
.tsub button:hover {
  color: var(--ink);
}
.tsub button.on {
  color: var(--acc-ink);
  background: linear-gradient(180deg, var(--acc-t1), var(--acc-t2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 14px -4px var(--acc);
}
.tsub button {
  transition:
    color 0.16s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.tsub button::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--acc-ink);
  box-shadow: 0 0 6px var(--acc);
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 0.2s ease,
    transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.tsub button.on::after {
  opacity: 1;
  transform: none;
}
.tsub button.on + button.on {
  margin-left: 2px;
}
/* the last picked subset cannot be switched off: it shakes instead */
.tsub button.nudge {
  animation: subNudge 0.32s ease;
}
@keyframes subNudge {
  20% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  80% {
    transform: translateX(-1px);
  }
}
.tsub button.on::before,
.tsub button.on + button::before {
  opacity: 0;
}
.tsub-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 4px;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(180deg, var(--acc-t1), var(--acc-t2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 14px -4px var(--acc);
  will-change: transform, width;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1),
    width 0.28s cubic-bezier(0.2, 0.9, 0.25, 1),
    opacity 0.18s ease,
    background 0.45s ease,
    box-shadow 0.45s ease;
}
.tsub-thumb.on {
  opacity: 1;
}
.tsub-thumb::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--acc-ink);
  box-shadow: 0 0 6px var(--acc);
}
.subnone {
  font-size: 13px;
  color: var(--tert);
}

/* ---- one subset rail per selected layer ---- */
.subs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  max-width: 100%;
}
.sub-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
}
.sub-cap {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tert);
}
.fnote {
  font-size: 12px;
  color: var(--tert);
  margin-top: 10px;
}

/* ---- multi-select layer list ---- */
.rq-list-t {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--acc-ink);
  opacity: 0.8;
  padding: 2px 4px 12px;
}
.rq-list-t span {
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 11px;
  color: var(--tert);
}
/* Checkbox tick signals multiple choice. */
.ds-tick {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
/* the same tick glyph as the Impact desk lists */
.ds-tick::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 1px 0 0;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
  color: var(--li-ink, var(--acc-ink));
  transform: scale(0.55);
  opacity: 0;
  transition:
    opacity 0.16s ease,
    transform 0.24s cubic-bezier(0.2, 1.5, 0.4, 1);
}
/* Grid layout so the tick stays aligned with the title row on two-line
     names. */
.rq .ds-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 11px;
  align-items: start;
}
.rq .ds-item .ds-tick {
  grid-column: 1;
  grid-row: 1;
  /* nudged to sit on the first line's centre, not the top of its box */
  margin-top: calc((1.35em - 14px) / 2);
}
.rq .ds-item b {
  grid-column: 2;
  grid-row: 1;
  line-height: 1.35;
}
.rq .ds-item small {
  grid-column: 2;
  grid-row: 2;
}
.rq .ds-item.on .ds-tick {
  background: var(--li-soft);
  border-color: rgba(255, 255, 255, 0.22);
}
.rq .ds-item.on .ds-tick::after {
  opacity: 1;
  transform: none;
}
/* the first pick owns the panel accent; a hairline says which one that is */
.rq .ds-item.lead {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/* Caption tinted to match its rail, linking the subset row to its layer. */
.sub-cap {
  color: var(--li-ink, var(--tert));
}

/* ---- angled HUD button (same language as the viewer layer rail) ---- */
.hudbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
  font: inherit;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 13px 19px 14px 20px;
  cursor: pointer;
  color: var(--acc-ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  overflow: hidden; /* the 1.2px rim: neutral, not red */
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.18s ease;
}
.hudbtn::before {
  content: '';
  position: absolute;
  inset: 1.2px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, var(--acc-bg1), var(--acc-bg2));
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.3s ease;
}
.hudbtn::after {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 22%,
    rgba(255, 235, 225, 0.14) 50%,
    transparent 74%
  );
  transform: translateX(-120%);
  animation: hudSweep 5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes hudSweep {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}
.hudbtn > * {
  position: relative;
  z-index: 2;
}
.hudbtn:hover::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, var(--acc-bg1), var(--acc-bg2));
}
.hudbtn:hover {
  background: rgba(255, 255, 255, 0.26);
}
.hudbtn:active {
  transform: scale(0.978);
}
.hudbtn svg {
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.hudbtn:hover svg {
  transform: translateY(2px);
}

.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.opts label {
  position: relative;
  cursor: pointer;
}
.opts input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.opts i {
  font-style: normal;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  border-radius: 99px;
  border: 0.5px solid var(--line);
  color: var(--muted);
  background: var(--fill);
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.opts label:hover i {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
}
.opts input:checked + i {
  background: var(--acc-soft);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--acc-ink);
}
.opts input:focus-visible + i {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}
.opts.empty {
  font-size: 13px;
  color: var(--tert);
}

.dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fld > span {
  font-size: 11.5px;
  color: var(--tert);
  letter-spacing: 0.03em;
}
input[type='date'],
input[type='text'],
input[type='email'],
select,
textarea {
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  width: 100%;
  transition:
    border-color 0.2s,
    background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.6;
}
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}
input::placeholder,
textarea::placeholder {
  color: var(--tert);
}
input[type='date']::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.45;
  cursor: pointer;
}
.fld.bad input,
.fld.bad select,
.fld.bad textarea {
  border-color: rgba(226, 59, 46, 0.75);
}

/* summary rail */
.rq-side h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.sum {
  display: flex;
  flex-direction: column;
}
.sum > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}
.sum > div:first-child {
  border-top: none;
  padding-top: 0;
}
.sum dt {
  font-size: 11.5px;
  color: #958c8d;
  letter-spacing: 0.03em;
  white-space: nowrap;
} /* neutral grey, a step under the values */
.sum dd {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 12.5px;
  color: var(--acc-ink);
  text-align: right;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.sum dd.na {
  color: var(--tert);
}
/* Layers & subsets: one block per layer, name above its subset chips;
     neutral colours. */
.sum > div.sum-l {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.sum-l dd {
  text-align: left;
  font-family: inherit;
  color: var(--ink);
}
.sum-l dd.na {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
}
.sl {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sl + .sl {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}
.sl-n {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.sl-s {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sl-s i {
  font:
    500 11px/1 JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-style: normal;
  color: rgba(245, 236, 236, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 7px;
  white-space: nowrap;
}
.est {
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 7px;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
/* neutral glass edge, no red rim over the dark warm fill */
.est {
  border-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.est b {
  display: block;
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.est span {
  font-size: 11px;
  color: var(--tert);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.note {
  font-size: 11.5px;
  color: var(--tert);
  line-height: 1.65;
  margin: 0 0 18px;
}

/* ---------- 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;
}
.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;
}

/* ---------- custom date picker ---------- */
input.xd-src {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
}
.xdate {
  position: relative;
  width: 100%;
}
.xd-b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  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;
}
.xd-b:hover {
  background: rgba(255, 255, 255, 0.08);
}
.xd-b > span {
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.xd-b > span.ph {
  color: var(--tert);
}
.xd-b > i {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.xdate.open .xd-b {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}
.fld.bad .xd-b,
.fld.bad .xsel-b {
  border-color: rgba(226, 59, 46, 0.75);
}

.xd-p {
  position: absolute;
  z-index: 90;
  left: 0;
  top: calc(100% + 7px);
  width: 306px;
  max-width: calc(100vw - 44px);
  background: rgba(21, 17, 20, 0.95);
  -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: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 64px -20px rgba(0, 0, 0, 0.92);
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top left;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.xdate.open .xd-p {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.xdate.up .xd-p {
  top: auto;
  bottom: calc(100% + 7px);
  transform-origin: bottom left;
}
.xdate.rt .xd-p {
  left: auto;
  right: 0;
  transform-origin: top right;
}
.xdate.rt.up .xd-p {
  transform-origin: bottom right;
}

.xd-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 11px;
}
.xd-head .xsel {
  flex: 1;
  min-width: 0;
}
.xd-head .xsel-b {
  padding: 7px 10px;
  font-size: 12.5px;
  border-radius: 6px;
}
.xd-head .xsel-p {
  max-height: 210px;
}
.xd-nav {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  border: 0.5px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.xd-nav:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink);
}
.xd-nav:disabled {
  opacity: 0.28;
  cursor: default;
}
.xd-wd {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 3px;
}
.xd-wd span {
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tert);
  padding: 4px 0;
}
.xd-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.xd-grid button {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font: inherit;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.14s,
    color 0.14s,
    box-shadow 0.14s;
}
.xd-grid button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.xd-grid button.out {
  color: rgba(255, 255, 255, 0.17);
}
.xd-grid button:disabled {
  opacity: 0.2;
  cursor: default;
}
.xd-grid button.today:not(.on) {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.xd-grid button.on {
  background: var(--acc-soft, rgba(226, 59, 46, 0.2));
  color: var(--acc-ink, #ffd9cf);
  box-shadow: none;
}
.xd-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}
.xd-foot button {
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  background: var(--fill);
  border: 0.5px solid var(--line);
  border-radius: 99px;
  padding: 6px 13px;
  transition: 0.18s;
}
.xd-foot button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink);
}

/* mobile layer picker */
.only-sm {
  display: none;
}

/* ---------- confirmation ---------- */
.hudbtn.ok {
  color: #eafff4;
}
.hudbtn.ok::before {
  background:
    linear-gradient(180deg, rgba(72, 200, 150, 0.3), rgba(72, 200, 150, 0.12)),
    linear-gradient(180deg, var(--acc-bg1), var(--acc-bg2));
}
.hudbtn.ok {
  background: rgba(72, 200, 150, 0.7);
}
.hudbtn .lbl-go,
.hudbtn .lbl-ok {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hudbtn .lbl-ok {
  display: none;
}
.hudbtn.ok .lbl-go {
  display: none;
}
.hudbtn.ok .lbl-ok {
  display: inline-flex;
}
.hudbtn.ok svg {
  animation: tick 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes tick {
  from {
    transform: scale(0.4) rotate(-12deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* a spark runs the rim once the selection locks in */
.hudbtn .rim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  padding: 1.6px;
  border-radius: 1px;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.hudbtn .rim > b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    transparent 0 60%,
    rgba(127, 227, 182, 0.35) 74%,
    #7fe3b6 82%,
    #eafff4 86%,
    rgba(127, 227, 182, 0.35) 90%,
    transparent 96%
  );
}
.hudbtn.ok .rim {
  animation: rimShow 2.1s ease-out both;
}
.hudbtn.ok .rim > b {
  animation: rimSpin 1.05s linear 2;
}
@keyframes rimShow {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes rimSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hudbtn .rim {
    display: none;
  }
}

/* each summary row ticks over in turn */
/* the flash is a soft glow reaching a little past the row on both sides,
     fading out at its edges rather than a hard-edged band */
.sum > div {
  position: relative;
  isolation: isolate;
}
.sum > div::before {
  content: '';
  position: absolute;
  inset: -2px -14px;
  z-index: -1;
  pointer-events: none;
  border-radius: 12px;
  opacity: 0;
  filter: blur(4px);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(72, 200, 150, 0.13) 16%,
    rgba(72, 200, 150, 0.13) 84%,
    transparent
  );
}
.sum.locking > div::before {
  animation: rowLock 0.62s cubic-bezier(0.3, 0.7, 0.3, 1) both;
}
.sum.locking > div:nth-child(1)::before {
  animation-delay: 0s;
}
.sum.locking > div:nth-child(2)::before {
  animation-delay: 0.06s;
}
.sum.locking > div:nth-child(3)::before {
  animation-delay: 0.12s;
}
.sum.locking > div:nth-child(4)::before {
  animation-delay: 0.18s;
}
.sum.locking > div:nth-child(5)::before {
  animation-delay: 0.24s;
}
@keyframes rowLock {
  0% {
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.sum > div > dd {
  position: relative;
  padding-right: 0;
  transition: padding-right 0.25s ease;
}
.sum.locked > div > dd {
  padding-right: 17px;
}
.sum > div > dd::after {
  content: '\2713';
  position: absolute;
  right: 0;
  top: 0;
  font-family: inherit;
  color: #7fe3b6;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.sum.locked > div > dd::after {
  opacity: 1;
  transform: none;
}
.sum.locking > div:nth-child(1) > dd::after {
  transition-delay: 0.06s;
}
.sum.locking > div:nth-child(2) > dd::after {
  transition-delay: 0.12s;
}
.sum.locking > div:nth-child(3) > dd::after {
  transition-delay: 0.18s;
}
.sum.locking > div:nth-child(4) > dd::after {
  transition-delay: 0.24s;
}
.sum.locking > div:nth-child(5) > dd::after {
  transition-delay: 0.3s;
}

/* the receipt that lands at the top of the form */
.receipt {
  grid-column: 1/-1;
  display: none;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border: 0.5px solid rgba(150, 235, 205, 0.2);
  border-radius: 10px;
  padding: 16px 18px;
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(190, 255, 230, 0.14),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.04),
    0 16px 40px -28px rgba(72, 200, 150, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01) 55%),
    linear-gradient(180deg, rgba(72, 200, 150, 0.07), rgba(72, 200, 150, 0.026)),
    linear-gradient(180deg, rgba(6, 10, 9, 0.62), rgba(4, 7, 6, 0.7));
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .receipt {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 55%),
      linear-gradient(180deg, #0b1512, #08100e);
  }
}
.receipt.on {
  display: block;
  animation: stamp 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes stamp {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.receipt::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    104deg,
    transparent 34%,
    rgba(160, 255, 215, 0.085) 50%,
    transparent 66%
  );
  transform: translateX(-120%);
}
@keyframes rcSweep {
  to {
    transform: translateX(120%);
  }
}
/* re-confirmation: the card flashes so the change is visible */
.receipt.on.upd {
  animation: rcPulse 0.66s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes rcPulse {
  0% {
    border-color: rgba(150, 235, 205, 0.62);
    box-shadow:
      inset 0 1px 0 rgba(190, 255, 230, 0.14),
      0 0 0 3px rgba(72, 200, 150, 0.18),
      0 16px 40px -28px rgba(72, 200, 150, 0.3);
  }
  100% {
    border-color: rgba(150, 235, 205, 0.2);
    box-shadow:
      inset 0 1px 0 rgba(190, 255, 230, 0.14),
      0 0 0 0 rgba(72, 200, 150, 0),
      0 16px 40px -28px rgba(72, 200, 150, 0.3);
  }
}
.receipt.on.upd::after {
  animation: rcSweep 0.9s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.receipt.on .rc-list .rc-k {
  opacity: 0;
}
.receipt.on.upd .rc-list .rc-k {
  animation: rcChip 0.62s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.receipt.on.upd .rc-list .rc-k:nth-child(2) {
  animation-delay: 0.07s;
}
.receipt.on.upd .rc-list .rc-k:nth-child(3) {
  animation-delay: 0.14s;
}
.receipt.on.upd .rc-list .rc-k:nth-child(4) {
  animation-delay: 0.21s;
}
.receipt.on.upd .rc-list .rc-k:nth-child(5) {
  animation-delay: 0.28s;
}
@keyframes rcChip {
  0% {
    opacity: 0;
    transform: translateY(7px) scale(0.94);
    filter: blur(3px);
    background: rgba(72, 200, 150, 0.3);
    border-color: rgba(150, 235, 205, 0.55);
    color: #eafff4;
  }
  45% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(150, 235, 205, 0.16);
    color: #cbe8dc;
  }
}
.receipt.on.upd .rc-head i {
  animation: tick 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .receipt.on.upd,
  .receipt.on.upd::after,
  .receipt.on.upd .rc-list .rc-k,
  .receipt.on.upd .rc-head i {
    animation: none;
  }
  .receipt.on .rc-list .rc-k {
    opacity: 1;
  }
}
/* phones: the card stays hidden until it is in view, then rises in and
     its chips follow one by one (no blur: costly on large blocks) */
@media (max-width: 760px) {
  .receipt.on {
    animation: none;
    opacity: 0;
    transform: translateY(16px);
  }
  .receipt.on.upd {
    opacity: 1;
    transform: none;
    animation: none;
    transition:
      opacity 0.6s ease,
      transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .receipt.on.upd::after {
    animation: rcSweep 1.2s cubic-bezier(0.3, 0.7, 0.3, 1) 0.35s;
  }
  .receipt.on.upd .rc-list .rc-k {
    animation: rcChipM 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .receipt.on.upd .rc-list .rc-k:nth-child(1) {
    animation-delay: 0.16s;
  }
  .receipt.on.upd .rc-list .rc-k:nth-child(2) {
    animation-delay: 0.28s;
  }
  .receipt.on.upd .rc-list .rc-k:nth-child(3) {
    animation-delay: 0.4s;
  }
  .receipt.on.upd .rc-list .rc-k:nth-child(4) {
    animation-delay: 0.52s;
  }
  .receipt.on.upd .rc-list .rc-k:nth-child(5) {
    animation-delay: 0.64s;
  }
}
@keyframes rcChipM {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .receipt.on {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .receipt.on .rc-list .rc-k {
    opacity: 1;
    animation: none;
  }
}
.rc-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}
.rc-head i {
  flex: none;
  display: grid;
  place-items: center;
  line-height: 1;
  color: #8fdcb8;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
}
.rc-head b {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  color: #8fceb2;
}
.rc-head a {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #8fceb2;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(72, 200, 150, 0.28);
}
.rc-head a:hover {
  color: #d6fff0;
  border-bottom-color: rgba(72, 200, 150, 0.5);
}
.rc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rc-k {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-family:
    JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #cbe8dc;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(150, 235, 205, 0.16);
  border-radius: 99px;
  padding: 5px 12px 5px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.rc-k em {
  font-style: normal;
  flex: none;
  color: rgba(159, 240, 205, 0.4);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.rc-k .v {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* a glyph per kind, so the four chips are told apart before they are read */
.rc-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  color: rgba(159, 240, 205, 0.5);
}
.rc-ico svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Order summary on its own line, bolder; single green accent on the
     card. */
.rc-k[data-k='layers'] {
  flex: 1 0 100%;
  border-radius: 13px;
  padding: 8px 13px 8px 11px;
  background: linear-gradient(180deg, rgba(72, 200, 150, 0.13), rgba(72, 200, 150, 0.05));
  border-color: rgba(150, 235, 205, 0.32);
}
.rc-k[data-k='layers'] .v {
  color: #eafff5;
  font-weight: 600;
  font-size: 11.5px;
}
.rc-k[data-k='layers'] .rc-ico {
  color: rgba(159, 240, 205, 0.85);
}

/* the qualifier gets its own line too; it is the longest of the four */
.rc-k[data-k='subsets'] {
  flex: 1 0 100%;
  border-radius: 13px;
  padding: 6px 13px 6px 11px;
  background: rgba(255, 255, 255, 0.035);
}
/* period and format are short values, shown side by side in a smaller style */
.rc-k[data-k='period'] .v,
.rc-k[data-k='format'] .v {
  font-variant-numeric: tabular-nums;
}
.rc-k[data-k='format'] {
  background: rgba(72, 200, 150, 0.07);
}
.rc-k[data-k='format'] .v {
  color: #9ff0cd;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---------- requester form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.chk {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}
/* Custom checkbox, same style as the layer list tick. */
.chk input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.28);
  padding: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.chk input:hover {
  border-color: rgba(255, 255, 255, 0.34);
}
/* the same tick glyph as the Impact desk lists */
.chk input::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 1px 0 0;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  color: var(--acc-ink, #ffd9cf);
  transform: scale(0.55);
  opacity: 0;
  transition:
    opacity 0.16s ease,
    transform 0.24s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.chk input:checked {
  background: var(--acc-soft, rgba(226, 59, 46, 0.19));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px -4px var(--acc, #e23b2e);
}
.chk input:checked::after {
  opacity: 1;
  transform: none;
}
.chk input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .chk input,
  .chk input::after {
    transition: none;
  }
}
.chk a {
  color: var(--orange);
}
.fbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.submit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  border: none;
  border-radius: 99px;
  padding: 13px 26px;
  cursor: pointer;
  box-shadow: 0 6px 20px -8px #e23b2e88;
  transition:
    transform 0.18s,
    box-shadow 0.2s;
}
.submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px #e23b2eaa;
}
.submit:active {
  transform: scale(0.97);
}
.fmsg {
  font-size: 12.5px;
  color: var(--tert);
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}
.fmsg.err {
  color: #ff9b8c;
}
.fmsg.ok {
  color: #9ff0cd;
}
/* after a send: the button eases to green with a tick and "Sent", then
     back; the fields' text fades out before they are cleared */
#reqForm .submit i,
#reqForm .submit .lbl {
  display: inline-block;
  transition:
    opacity 0.18s ease,
    transform 0.25s cubic-bezier(0.2, 0.85, 0.25, 1);
}
#reqForm .submit.swap i,
#reqForm .submit.swap .lbl {
  opacity: 0;
  transform: translateY(5px);
}
/* the label never wraps while the width eases; during that ease the
     button clips whatever is still wider than it */
#reqForm .submit {
  white-space: nowrap;
  justify-content: center;
}
#reqForm .submit.tw {
  overflow: hidden;
}
#reqForm .submit.done {
  background: #2f9e6f;
  box-shadow: 0 8px 24px -10px rgba(72, 200, 150, 0.85);
}
#reqForm .submit.done:hover {
  box-shadow: 0 12px 30px -10px rgba(72, 200, 150, 0.9);
}
/* placeholders fade back in with the same timing as the text fades out */
#reqForm input::placeholder,
#reqForm textarea::placeholder {
  transition: color 0.35s ease;
}
#reqForm.clearing input:not([type='hidden']),
#reqForm.clearing textarea,
#reqForm.clearing .xsel-b {
  color: transparent;
  transition: color 0.35s ease;
}
#reqForm.clearing input::placeholder,
#reqForm.clearing textarea::placeholder {
  color: transparent;
  transition: color 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  #reqForm .submit i,
  #reqForm .submit .lbl {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .rq {
    grid-template-columns: 238px 1fr;
  }
  .rq-side {
    grid-column: 1/-1;
    border-left: none;
    border-top: 0.5px solid var(--line);
    border-radius: 0 0 12px 12px;
  }
  .jump {
    margin-top: 20px;
  }
  .rq-list {
    border-radius: 12px 0 0 0;
  }
}
@media (max-width: 900px) {
  .ah-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .rq {
    grid-template-columns: 1fr;
  }
  .only-sm + .fgrp {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 0.5px solid var(--line);
  }
  /* Multi-select can't use a <select>, so on narrow screens it becomes a
       scrolling rail. */
  .rq-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-right: none;
    border-bottom: 0.5px solid var(--line);
    border-radius: 12px 12px 0 0;
    padding: 14px;
  }
  /* Overrides about.html's @900 nowrap rule; these labels stay full-width
       rows. */
  .rq-list .ds-item {
    flex: 1 0 100%;
    width: auto;
    margin-top: 0;
    white-space: normal;
  }
  .rq-list .ds-item + .ds-item {
    margin-top: 0;
  }
  .rq-list-t {
    flex: 1 0 100%;
    padding: 0 2px 2px;
  }
  .rq-body {
    border-radius: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .dates {
    grid-template-columns: 1fr;
  }
  .rq-body {
    padding: 22px 18px 24px;
  }
}

/* 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. */

/* Autofill: long transition keeps the field's own background; inset shadow
   as fallback. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 60px rgba(24, 16, 17, 1) inset;
  box-shadow: 0 0 0 60px rgba(24, 16, 17, 1) inset;
  border: 0.5px solid var(--line);
  border-radius: 7px;
  transition:
    background-color 600000s 0s,
    color 600000s 0s;
}
input:-webkit-autofill:focus {
  border-color: rgba(255, 255, 255, 0.22);
}
input:autofill {
  -webkit-text-fill-color: var(--ink);
  color: var(--ink);
}
/* Firefox */
input:-moz-autofill,
input:-moz-autofill-preview {
  filter: none;
  background-image: none;
  color: var(--ink);
}

/* 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(226, 59, 46, 0.4);
}
/* 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: inset 0 0 0 0.5px rgba(226, 59, 46, 0.5);
}
.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%
    );
}

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

/* archive facts: index style, no boxes */
.ah-stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  max-width: 620px;
}
.ah-stats .stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 24px;
}
.ah-stats .stat:first-child {
  padding-left: 0;
}
.ah-stats .stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: -6px;
  bottom: -6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 150, 110, 0.45), transparent);
}
.ah-stats .stat b {
  font:
    600 19px JetBrains Mono,
    ui-monospace,
    'SF Mono',
    'IBM Plex Mono',
    Menlo,
    monospace;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-height: 1em;
}
.ah-stats .stat span {
  font:
    600 9.5px JetBrains Mono,
    ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tert);
  white-space: nowrap;
  min-height: 1.2em;
}
@media (max-width: 900px) {
  .ah-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
    max-width: 360px;
  }
  .ah-stats .stat:nth-child(odd) {
    padding-left: 0;
  }
  .ah-stats .stat:nth-child(odd)::before {
    display: none;
  }
}

/* Original style section 17; 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 18; 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 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. */

/* phones: the four figures as one slim instrument strip */
@media (max-width: 760px) {
  .ah-stats {
    position: relative;
    grid-template-columns: 1fr 1fr 1.3fr 1fr;
    row-gap: 0;
    width: 100%;
    max-width: 400px;
    margin: 34px auto 0;
    padding: 15px 0 14px;
  }
  .ah-stats::before,
  .ah-stats::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
  }
  .ah-stats.in::before,
  .ah-stats.in::after {
    transform: none;
  }
  .ah-stats::before {
    top: 0;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 150, 110, 0.22) 18%,
      rgba(255, 176, 140, 0.55) 50%,
      rgba(255, 150, 110, 0.22) 82%,
      transparent
    );
  }
  .ah-stats::after {
    bottom: 0;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 150, 110, 0.14) 25%,
      rgba(255, 150, 110, 0.14) 75%,
      transparent
    );
  }
  .ah-stats .stat,
  .ah-stats .stat:first-child,
  .ah-stats .stat:nth-child(odd) {
    padding: 0 3px;
    align-items: center;
    text-align: center;
    gap: 8px;
    min-width: 0;
  }
  .ah-stats .stat + .stat::before,
  .ah-stats .stat:nth-child(odd) + .stat::before {
    display: block;
  }
  .ah-stats .stat:nth-child(3)::before {
    display: block;
  }
  .ah-stats .stat + .stat::before {
    top: 3px;
    bottom: 3px;
    background: linear-gradient(180deg, transparent, rgba(255, 150, 110, 0.28), transparent);
  }
  .ah-stats .stat b {
    font-size: 18px;
  }
  .ah-stats .stat span {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
}
@media (max-width: 360px) {
  .ah-stats .stat b {
    font-size: 16px;
  }
  .ah-stats .stat span {
    font-size: 7.5px;
    letter-spacing: 0.04em;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .ah-stats::before,
  .ah-stats::after {
    transition: none;
    transform: none;
  }
}

/* Original style section 21; 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;
}
