:root {
  --font-cn: "SiteSourceHanSansSC";
  --font-latin: "SiteUDShinGo";
  --ink: #f6f1e8;
  --muted: #c4b9aa;
  --coal: #080806;
  --rail: #171511;
  --line: #3b3429;
  --amber: #ffb000;
  --orange: #ee5e17;
  --green: #00c875;
  --paper: #fff5df;
  --amber-rgb: 255, 176, 0;
  --orange-rgb: 238, 94, 23;
  --green-rgb: 0, 200, 117;
  --ink-rgb: 246, 241, 232;
  --header-bg: rgba(8, 8, 6, .78);
  --panel-bg: rgba(23, 21, 17, .72);
  --card-bg: rgba(8, 8, 6, .78);
  --grid-a: rgba(255, 176, 0, .08);
  --grid-b: rgba(255, 255, 255, .045);
}

:root[data-theme="light"] {
  --ink: #10100d;
  --muted: #5c564d;
  --coal: #f4efe3;
  --rail: #fff8e8;
  --line: #c9bfa8;
  --amber: #b36b00;
  --orange: #c84814;
  --green: #087a52;
  --paper: #171511;
  --amber-rgb: 179, 107, 0;
  --orange-rgb: 200, 72, 20;
  --green-rgb: 8, 122, 82;
  --ink-rgb: 16, 16, 13;
  --header-bg: rgba(255, 248, 232, .86);
  --panel-bg: rgba(255, 248, 232, .78);
  --card-bg: rgba(255, 248, 232, .82);
  --grid-a: rgba(179, 107, 0, .12);
  --grid-b: rgba(8, 122, 82, .08);
}

:root[data-theme="blue"] {
  --ink: #edf7ff;
  --muted: #a9c0d1;
  --coal: #061019;
  --rail: #0c1d2a;
  --line: #27445c;
  --amber: #f2c75c;
  --orange: #ff6f3c;
  --green: #40d5ff;
  --paper: #f2fbff;
  --amber-rgb: 242, 199, 92;
  --orange-rgb: 255, 111, 60;
  --green-rgb: 64, 213, 255;
  --ink-rgb: 237, 247, 255;
  --header-bg: rgba(6, 16, 25, .78);
  --panel-bg: rgba(12, 29, 42, .72);
  --card-bg: rgba(12, 29, 42, .82);
  --grid-a: rgba(64, 213, 255, .10);
  --grid-b: rgba(242, 199, 92, .06);
}

@font-face {
  font-family: "SiteSourceHanSansSC";
  src: url("./assets/fonts/SourceHanSansSC-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SiteSourceHanSansSC";
  src: url("./assets/fonts/SourceHanSansSC-Bold.otf") format("opentype");
  font-weight: 700 950;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SiteUDShinGo";
  src: url("./assets/fonts/ATTFShinGoProRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SiteUDShinGo";
  src: url("./assets/fonts/ATTFShinGoProBold.ttf") format("truetype");
  font-weight: 700 950;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--coal);
  font-family: var(--font-cn);
  letter-spacing: 0;
  overflow-x: hidden;
}

.foreign-text,
.dock-line,
.tool-card small,
.case-tag,
.case-status,
.case-score,
.footer,
.button,
.signal-board,
.ticker,
.brand-mark,
.tool-index {
  font-family: var(--font-latin);
}

#railfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: var(--coal);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--grid-a) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid-b) 1px, transparent 1px);
  background-size: 84px 84px, 84px 84px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.15));
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(var(--amber-rgb), .28);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-block;
  background:
    linear-gradient(90deg, transparent 0 34%, var(--orange) 34% 66%, transparent 66%),
    linear-gradient(0deg, var(--green) 0 45%, transparent 45% 55%, var(--amber) 55%);
  border: 2px solid var(--ink);
  transform: skew(-11deg);
  animation: markPulse 1.7s steps(2, end) infinite;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.theme-switch {
  display: inline-flex;
  gap: 6px;
  border: 1px solid rgba(var(--amber-rgb), .32);
  padding: 4px;
  background: rgba(var(--ink-rgb), .08);
}

.theme-switch button {
  min-width: 34px;
  min-height: 30px;
  border: 1px solid rgba(var(--ink-rgb), .22);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-cn);
  font-weight: 900;
  cursor: pointer;
}

.theme-switch button.active,
.theme-switch button:hover {
  color: var(--coal);
  background: var(--amber);
  border-color: var(--amber);
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  transition: right .25s ease;
}

.nav a:hover::after {
  right: 0;
}

.hero {
  min-height: 96svh;
  padding: 124px clamp(18px, 6vw, 92px) 56px;
}

.hero-copy {
  display: grid;
  gap: 26px;
}

.hero-mainline {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
  gap: clamp(24px, 4vw, 68px);
  align-items: end;
}

.kicker {
  margin: 0 0 16px;
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 26px;
  font-size: clamp(42px, 7.2vw, 112px);
  line-height: .91;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(var(--orange-rgb), .28);
}

h2 {
  font-size: clamp(36px, 5.5vw, 78px);
  line-height: .95;
  margin-bottom: 0;
}

h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.lead {
  max-width: 720px;
  color: var(--paper);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
}

.hero-actions,
.join-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button,
button {
  appearance: none;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 14px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  border-radius: 0;
}

.button.primary,
button:hover,
.button:hover {
  background: var(--amber);
  color: #130d00;
  transform: translateY(-3px);
}

.hero-panel {
  border: 2px solid rgba(var(--ink-rgb), .72);
  background: var(--panel-bg);
  min-height: 260px;
  display: grid;
  align-content: space-between;
  padding: 24px;
  box-shadow: 20px 20px 0 rgba(var(--orange-rgb), .28);
  animation: hardEnter .9s cubic-bezier(.2,.8,.2,1) both;
}

.signal-board {
  display: grid;
  gap: 12px;
}

.signal-board span,
.signal-board small {
  color: var(--muted);
}

.signal-board strong {
  color: var(--green);
  font-size: clamp(30px, 3.6vw, 58px);
  font-family: var(--font-latin);
  line-height: 1;
  white-space: nowrap;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 2px solid var(--line);
}

.ticker span {
  min-height: 72px;
  display: grid;
  place-items: center;
  border-right: 2px solid var(--line);
  color: var(--paper);
  font-weight: 900;
  writing-mode: vertical-rl;
}

.ticker span:last-child {
  border-right: 0;
}

.section {
  padding: 90px clamp(18px, 6vw, 92px);
  border-top: 1px solid rgba(255, 176, 0, .2);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr);
  gap: clamp(26px, 6vw, 96px);
}

.text-block {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.72;
  color: var(--paper);
}

.manifesto {
  background: rgba(255, 245, 223, .06);
}

.rule-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid rgba(255, 245, 223, .65);
}

.rule-grid article {
  min-height: 250px;
  padding: 24px;
  border-right: 2px solid rgba(255, 245, 223, .28);
  background: rgba(8, 8, 6, .56);
}

.rule-grid article:last-child {
  border-right: 0;
}

.rule-grid span {
  display: block;
  color: var(--orange);
  font-size: 42px;
  font-weight: 950;
  margin-bottom: 44px;
}

.rule-grid p,
.case-head p,
.join p {
  color: var(--muted);
  line-height: 1.65;
}

.case-lab {
  background: #0f0e0a;
}

.case-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.dock-line {
  display: grid;
  gap: 10px;
  min-width: 280px;
  font-family: var(--font-latin);
  color: var(--green);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  position: relative;
  min-height: 260px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 22px;
  border: 2px solid rgba(var(--ink-rgb), .34);
  background:
    linear-gradient(135deg, rgba(var(--amber-rgb), .12), transparent 46%),
    var(--card-bg);
  box-shadow: -10px 10px 0 rgba(var(--green-rgb), .10);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-top: 2px solid rgba(var(--orange-rgb), .72);
  border-right: 2px solid rgba(var(--amber-rgb), .38);
  transform: translateY(-110%);
  transition: transform .22s ease;
}

.tool-card:hover {
  transform: translate(6px, -6px);
  border-color: var(--amber);
  box-shadow: -18px 18px 0 rgba(var(--orange-rgb), .18);
}

.tool-card:hover::before {
  transform: translateY(0);
}

.tool-card strong {
  position: relative;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.tool-card small {
  position: relative;
  color: var(--green);
  font-family: var(--font-latin);
  font-weight: 900;
}

.tool-card p {
  position: relative;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.image-rail,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-carousel {
  display: grid;
  gap: 12px;
}

.hero-images {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-color: var(--amber) transparent;
  padding: 4px 0 14px;
}

.hero-images figure {
  flex: 0 0 clamp(260px, 38vw, 560px);
  scroll-snap-align: start;
}

.image-rail figure,
.gallery-grid figure {
  position: relative;
  margin: 0;
  border: 2px solid rgba(var(--ink-rgb), .34);
  background: var(--card-bg);
  overflow: hidden;
  box-shadow: -8px 8px 0 rgba(var(--orange-rgb), .14);
  animation: imageRise .64s cubic-bezier(.2,.8,.2,1) both;
}

.image-rail figure:nth-child(2),
.gallery-grid figure:nth-child(2) {
  animation-delay: .08s;
}

.image-rail figure:nth-child(3),
.gallery-grid figure:nth-child(3) {
  animation-delay: .16s;
}

.image-rail img,
.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .28s ease, filter .28s ease;
}

.image-rail figure:hover img,
.gallery-grid figure:hover img {
  transform: scale(1.08);
  filter: saturate(1.18) contrast(1.08);
}

.gallery-grid figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 900;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.carousel-controls button {
  min-height: 36px;
  padding: 8px 12px;
}

.campaign-list {
  display: grid;
  gap: 18px;
}

.campaign-card {
  position: relative;
  border: 2px solid rgba(var(--ink-rgb), .34);
  background: var(--card-bg);
  padding: 26px;
  box-shadow: -12px 12px 0 rgba(var(--green-rgb), .12);
}

.tool-index {
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--orange);
  font-family: var(--font-latin);
  font-size: 54px;
  font-weight: 900;
  opacity: .72;
}

.primary-tool {
  border-color: rgba(var(--amber-rgb), .72);
  background:
    linear-gradient(135deg, rgba(var(--orange-rgb), .32), rgba(var(--amber-rgb), .06) 42%, transparent),
    var(--card-bg);
}

.controls {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 12px;
  padding: 18px;
  border-bottom: 2px solid rgba(255, 176, 0, .26);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  border: 2px solid rgba(255, 245, 223, .38);
  background: #080806;
  color: var(--ink);
  padding: 13px 12px;
  border-radius: 0;
  font: inherit;
}

.case-status {
  padding: 14px 18px;
  color: var(--amber);
  border-bottom: 1px solid rgba(255, 176, 0, .22);
  font-family: var(--font-latin);
}

.case-list {
  display: grid;
}

.case-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 18px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 245, 223, .16);
  animation: scanIn .35s ease both;
}

.case-item:last-child {
  border-bottom: 0;
}

.case-tag {
  color: var(--green);
  font-family: var(--font-latin);
  font-weight: 800;
}

.case-item h3 {
  margin-bottom: 8px;
}

.case-item p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.case-score {
  align-self: start;
  color: var(--amber);
  font-family: var(--font-latin);
  font-size: 26px;
  font-weight: 900;
}

.join {
  min-height: 52vh;
}

.board-page {
  min-height: 100vh;
}

.board-hero {
  min-height: 42vh;
  padding: 132px clamp(18px, 6vw, 92px) 36px;
  border-bottom: 2px solid rgba(255, 176, 0, .32);
}

.board-shell {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 24px;
  padding: 42px clamp(18px, 6vw, 92px) 80px;
}

.board-form,
.board-list {
  border: 2px solid rgba(var(--amber-rgb), .48);
  background: var(--card-bg);
  box-shadow: -12px 12px 0 rgba(var(--green-rgb), .10);
}

.board-form {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
}

.board-form textarea {
  min-height: 170px;
  resize: vertical;
}

.board-form textarea,
.board-form input,
.board-form select,
.board-pager input {
  width: 100%;
  border: 2px solid rgba(var(--ink-rgb), .38);
  background: var(--coal);
  color: var(--ink);
  padding: 13px 12px;
  border-radius: 0;
  font: inherit;
}

.board-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.board-column {
  min-width: 0;
}

.board-list {
  height: min(68vh, 720px);
  min-height: 420px;
  overflow-y: auto;
  scrollbar-color: var(--amber) transparent;
}

.guest-item {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid rgba(var(--ink-rgb), .16);
  animation: scanIn .25s ease both;
}

.guest-item:last-child {
  border-bottom: 0;
}

.guest-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  color: var(--green);
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 900;
}

.guest-item p,
.status-line {
  white-space: pre-wrap;
  color: var(--ink);
  line-height: 1.7;
  margin: 0;
}

.status-line {
  padding: 22px;
  color: var(--muted);
}

.updated-line {
  color: var(--green);
  font-weight: 900;
}

.board-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.board-pager button {
  min-height: 38px;
  padding: 8px 12px;
}

.board-pager input {
  width: 72px;
  text-align: center;
  font-family: var(--font-latin);
  font-weight: 900;
}

.board-pager span {
  color: var(--muted);
  font-family: var(--font-latin);
  font-weight: 900;
}

.board-pager button:disabled {
  cursor: not-allowed;
  opacity: .42;
  transform: none;
}

.join-strip {
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid rgba(255, 245, 223, .5);
  border-bottom: 2px solid rgba(255, 245, 223, .5);
  padding: 28px 0;
}

.join-strip p {
  max-width: 760px;
  font-size: 20px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 6vw, 92px);
  border-top: 1px solid rgba(255, 176, 0, .24);
  color: var(--muted);
  font-family: var(--font-latin);
}

@keyframes markPulse {
  50% {
    filter: brightness(1.8);
  }
}

@keyframes hardEnter {
  from {
    opacity: 0;
    transform: translateX(48px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scanIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
  }

  .hero,
  .split,
  .case-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .rule-grid {
    grid-template-columns: 1fr 1fr;
  }

  .controls,
  .case-item,
  .tool-grid,
  .board-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }
}

@media (max-width: 560px) {
  .nav {
    display: none;
  }

  .rule-grid {
    grid-template-columns: 1fr;
  }

  .rule-grid article {
    border-right: 0;
    border-bottom: 2px solid rgba(255, 245, 223, .28);
  }

  .footer {
    display: grid;
  }
}

.nav-drawer {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  place-items: center;
  gap: 5px;
  padding: 8px;
  border-color: rgba(var(--ink-rgb), .56);
  background: var(--card-bg);
  z-index: 42;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  display: block;
  background: var(--ink);
  transition: transform .22s ease, opacity .16s ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.case-lab,
.manifesto {
  background:
    linear-gradient(135deg, rgba(var(--amber-rgb), .08), transparent 36%),
    rgba(var(--ink-rgb), .035);
}

.section {
  border-top-color: rgba(var(--amber-rgb), .22);
}

.rule-grid {
  border-color: rgba(var(--ink-rgb), .56);
  background: var(--card-bg);
}

.rule-grid article {
  background: rgba(var(--ink-rgb), .055);
  border-color: rgba(var(--ink-rgb), .28);
}

:root[data-theme="light"] .rule-grid article {
  background: rgba(255, 255, 255, .54);
}

:root[data-theme="light"] .rule-grid p,
:root[data-theme="light"] .case-head p,
:root[data-theme="light"] .join p,
:root[data-theme="light"] .tool-card p,
:root[data-theme="light"] .campaign-card p {
  color: #2f2b25;
}

:root[data-theme="light"] .tool-card,
:root[data-theme="light"] .campaign-card,
:root[data-theme="light"] .board-form,
:root[data-theme="light"] .board-list,
:root[data-theme="light"] .image-rail figure,
:root[data-theme="light"] .gallery-grid figure {
  background: rgba(255, 252, 243, .92);
}

.hero-images {
  scrollbar-width: none;
}

.hero-images::-webkit-scrollbar {
  display: none;
}

.campaign-card {
  min-height: 220px;
  padding-left: clamp(126px, 13vw, 178px);
}

.campaign-card .tool-index {
  top: 30px;
  left: 30px;
}

.campaign-card h2 {
  font-size: clamp(38px, 6vw, 82px);
  overflow-wrap: normal;
}

.carousel-controls button {
  background: var(--card-bg);
}

@keyframes imageRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1120px), (max-aspect-ratio: 4 / 5) {
  .site-header {
    position: static;
  }

  .brand {
    max-width: calc(100vw - 92px);
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    width: min(82vw, 380px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 22px;
    padding: 92px 24px 28px;
    border-left: 2px solid rgba(var(--amber-rgb), .5);
    background:
      linear-gradient(140deg, rgba(var(--orange-rgb), .12), transparent 42%),
      var(--header-bg);
    backdrop-filter: blur(18px);
    box-shadow: -22px 0 0 rgba(var(--green-rgb), .12);
    transform: translateX(calc(100% + 28px)) scale(.98);
    opacity: .2;
    pointer-events: none;
    transition: transform .32s cubic-bezier(.2,.9,.2,1), opacity .24s ease;
  }

  body.menu-open .nav-drawer {
    transform: translateX(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-drawer .nav {
    display: grid;
    gap: 4px;
    font-size: 18px;
  }

  .nav-drawer .nav a,
  .nav-drawer .theme-switch {
    transform: translateX(28px);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .22s ease;
  }

  body.menu-open .nav-drawer .nav a,
  body.menu-open .nav-drawer .theme-switch {
    transform: translateX(0);
    opacity: 1;
  }

  body.menu-open .nav-drawer .nav a:nth-child(1) { transition-delay: .03s; }
  body.menu-open .nav-drawer .nav a:nth-child(2) { transition-delay: .06s; }
  body.menu-open .nav-drawer .nav a:nth-child(3) { transition-delay: .09s; }
  body.menu-open .nav-drawer .nav a:nth-child(4) { transition-delay: .12s; }
  body.menu-open .nav-drawer .nav a:nth-child(5) { transition-delay: .15s; }
  body.menu-open .nav-drawer .nav a:nth-child(6) { transition-delay: .18s; }
  body.menu-open .nav-drawer .nav a:nth-child(7) { transition-delay: .21s; }
  body.menu-open .nav-drawer .nav a:nth-child(8) { transition-delay: .24s; }
  body.menu-open .nav-drawer .nav a:nth-child(9) { transition-delay: .27s; }

  .nav-drawer .nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(var(--ink-rgb), .16);
  }

  .nav-drawer .theme-switch {
    justify-content: stretch;
    margin-top: auto;
    transition-delay: .30s;
  }

  .nav-drawer .theme-switch button {
    flex: 1;
  }

  .hero {
    padding-top: clamp(42px, 8vh, 76px);
  }

  .hero-mainline {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-panel {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(36px, 13vw, 68px);
  }

  h2 {
    font-size: clamp(34px, 12vw, 58px);
  }

  .lead {
    font-size: clamp(16px, 4.2vw, 20px);
  }

  .signal-board strong {
    font-size: clamp(25px, 8vw, 42px);
  }

  .ticker {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .ticker span {
    min-height: 48px;
    writing-mode: horizontal-tb;
    font-size: 13px;
  }

  .hero-images figure {
    flex-basis: min(78vw, 420px);
  }

  .campaign-card {
    padding-left: 24px;
    padding-top: 108px;
  }

  .campaign-card .tool-index {
    top: 20px;
    left: 24px;
  }
}
