:root {
  --ink: #000000;
  --paper: #FFF8E7;
  --yellow: #FFD400;
  --purple: #6A1BFF;
  --purple-deep: #2D006E;
  --mute: #D9D0B8;
  --muted-ink: #5C5647;
  --brand: var(--yellow);
  --brand-2: var(--purple);
  --on-brand: var(--ink);
  --on-brand-2: var(--paper);
  --header-h: 76px;
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Arial Black", "Impact", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "Courier New", monospace;
  color-scheme: light;
}

html[data-worldline="purple"] {
  --brand: var(--purple);
  --brand-2: var(--yellow);
  --on-brand: var(--paper);
  --on-brand-2: var(--ink);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
blockquote,
p,
dl,
dd,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--purple);
  color: var(--paper);
}

:focus-visible {
  outline: 4px dashed currentColor;
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-220%);
  background: var(--yellow);
  color: var(--ink);
  border: 4px solid var(--ink);
  padding: 10px 14px;
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.header-inner,
.hero-grid,
.section-head,
.manifesto-grid,
.gadget-grid,
.work-grid,
.channel-grid,
.channel-note,
.gallery,
.log-credit,
.quote blockquote,
.site-footer > * {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: var(--on-brand);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.brand-text {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 8px 9px;
  border: 3px solid transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.site-nav a:hover {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.site-nav a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  padding: 8px 10px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-toggle:hover {
  background: var(--brand-2);
  color: var(--on-brand-2);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.theme-toggle[aria-pressed="true"] {
  background: var(--brand-2);
  color: var(--on-brand-2);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--brand);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
  background-color: var(--paper);
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 7px 10px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.kicker-dot {
  width: 10px;
  height: 10px;
  background: var(--purple);
  border: 2px solid var(--ink);
  flex: 0 0 auto;
  animation: blink 2.4s steps(2, end) infinite;
}

.hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(56px, 9.5vw, 124px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-shadow: 7px 7px 0 var(--brand-2);
}

.hero-latin {
  display: block;
  margin-top: 18px;
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.42em;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-roles span {
  padding: 4px 9px;
  background: var(--paper);
  border: 3px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.hero-roles span:first-child {
  background: var(--purple);
  color: var(--paper);
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 60ch;
  margin-top: 26px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.95;
}

.hero-catch {
  margin-top: 18px;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 900;
  line-height: 1.8;
}

.mark {
  display: inline-block;
  padding: 1px 6px;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-catch strong {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  background: var(--purple);
  color: var(--paper);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  transform: rotate(-1deg);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--paper);
  color: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}

.btn-small {
  padding: 9px 12px;
  border-width: 3px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 12px;
}

.btn-small:hover {
  box-shadow: 5px 5px 0 var(--ink);
}

.divergence {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--ink);
  color: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--brand-2);
  transform: rotate(1deg);
}

.divergence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 248, 231, 0.22);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  flex: 0 0 auto;
  animation: pulse 1.8s ease-in-out infinite;
}

.divergence-label {
  margin-top: 16px;
  color: rgba(255, 248, 231, 0.66);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.divergence-digits {
  margin: 2px 0 14px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(255, 212, 0, 0.45);
}

.divergence-digits.is-scanning {
  color: var(--paper);
  text-shadow: 0 0 24px rgba(255, 212, 0, 0.95);
}

.divergence-bar {
  height: 12px;
  padding: 2px;
  margin-bottom: 18px;
  border: 2px solid rgba(255, 248, 231, 0.7);
}

.divergence-bar span {
  display: block;
  width: 68%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 8px, transparent 8px 12px);
}

.divergence-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 2px solid rgba(255, 248, 231, 0.22);
}

.divergence-stats div {
  min-width: 0;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 248, 231, 0.16);
}

.divergence-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.divergence-stats dt {
  color: rgba(255, 248, 231, 0.62);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.divergence-stats dd {
  margin-top: 4px;
  color: var(--paper);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.oven-gauge {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(255, 212, 0, 0.08);
  border: 2px solid rgba(255, 212, 0, 0.42);
}

.oven-gauge-label {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.oven-gauge strong {
  color: var(--paper);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.oven-gauge-temp {
  margin-left: auto;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.divergence-foot {
  margin-top: 18px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-sticker {
  position: absolute;
  right: clamp(12px, 4vw, 60px);
  bottom: clamp(18px, 3vw, 34px);
  padding: 6px 10px;
  background: var(--brand);
  color: var(--on-brand);
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  transform: rotate(-5deg);
}

.ticker {
  overflow: hidden;
  padding: 10px 0;
  background: var(--brand);
  color: var(--on-brand);
  border-block: 4px solid var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.ticker-group {
  display: flex;
  flex: 0 0 auto;
  gap: 32px;
  padding-right: 32px;
}

.ticker-track span {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ticker-track span::after {
  content: "✦";
  color: var(--brand-2);
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 4px solid var(--ink);
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-index {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.section h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}

.section-sub {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
}

.manifesto {
  background: var(--paper);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.manifesto-copy {
  min-width: 0;
}

.manifesto-copy p {
  max-width: 66ch;
  margin-bottom: 16px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.95;
}

.manifesto-copy strong {
  display: inline-block;
  padding: 0 4px;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 2px 2px 0 var(--ink);
}

.manifesto-copy .lead {
  margin-bottom: 28px;
  padding-left: 18px;
  border-left: 10px solid var(--brand-2);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
  line-height: 1.55;
}

.signature {
  color: var(--muted-ink);
  font-family: var(--font-mono);
  font-size: 12px !important;
  letter-spacing: 0.08em;
}

.fact-sheet {
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--brand);
  transform: rotate(0.6deg);
}

.fact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--brand);
  color: var(--on-brand);
  border-bottom: 4px solid var(--ink);
}

.fact-head h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stamp {
  padding: 3px 8px;
  background: var(--brand-2);
  color: var(--on-brand-2);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-6deg);
}

.fact-sheet dl > div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 2px solid var(--mute);
}

.fact-sheet dl > div:last-child {
  border-bottom: 0;
}

.fact-sheet dt {
  padding-top: 3px;
  color: var(--muted-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.fact-sheet dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.arsenal {
  background: var(--brand);
  color: var(--on-brand);
}

.arsenal .section-sub {
  opacity: 0.78;
}

.gadget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gadget {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  background: var(--paper);
  color: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gadget:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--ink);
}

.gadget-main {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 8px 8px 0 var(--brand-2);
}

.gadget-main:hover {
  box-shadow: 11px 11px 0 var(--brand-2);
}

.gadget-code {
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.gadget-main .gadget-code,
.gadget-oven .gadget-code {
  color: var(--yellow);
}

.gadget h3 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.gadget p:not(.gadget-code) {
  font-size: 14px;
  line-height: 1.8;
}

.gadget-main p:not(.gadget-code),
.gadget-oven p:not(.gadget-code) {
  color: rgba(255, 248, 231, 0.78);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
}

.chips li {
  padding: 3px 8px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
}

.gadget-main .chips li,
.gadget-oven .chips li {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}

.gadget-oven {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 8px 8px 0 var(--brand-2);
}

.gadget-oven:hover {
  box-shadow: 11px 11px 0 var(--brand-2);
}

.oven-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  margin-top: 18px;
  padding: 10px;
  background: #17120A;
  border: 3px solid var(--paper);
}

.oven-window {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #241300;
  border: 3px solid var(--paper);
}

.oven-glow {
  position: absolute;
  inset: 26% 20%;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.42;
  filter: blur(14px);
}

.oven-rack {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(255, 212, 0, 0.7);
}

.oven-rack:nth-of-type(2) {
  top: 44%;
}

.oven-rack:nth-of-type(3) {
  top: 66%;
}

.oven-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border: 3px solid var(--paper);
}

.oven-knob {
  position: relative;
  width: 34px;
  height: 34px;
  background: var(--yellow);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #17120A;
}

.oven-knob::after {
  content: "";
  position: absolute;
  top: 2px;
  left: calc(50% - 1px);
  width: 2px;
  height: 10px;
  background: var(--paper);
}

.oven-timer {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.work {
  background: var(--paper);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 4vw, 40px);
  background: var(--purple);
  color: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 var(--brand);
}

.product-card .gadget-code {
  color: var(--yellow);
}

.product-card h3 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.product-type {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.product-desc {
  max-width: 46ch;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.9;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: auto;
  padding-top: 26px;
}

.product-card .btn {
  background: var(--yellow);
  color: var(--ink);
}

.product-status {
  color: rgba(255, 248, 231, 0.7);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.product-status.is-live {
  color: var(--yellow);
}

.mission-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 40px);
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 var(--brand-2);
}

.mission-quote {
  margin: 14px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.mission-card > p:not(.gadget-code):not(.mission-quote) {
  font-size: 15px;
  line-height: 1.9;
}

.mission-foot {
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.channels {
  background: var(--purple-deep);
  color: var(--paper);
}

.channels .section-index {
  background: var(--yellow);
  color: var(--ink);
}

.channels .section-sub {
  color: rgba(255, 248, 231, 0.72);
}

.channel-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  align-items: stretch;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 22px;
  background: var(--paper);
  color: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--brand-2);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.channel-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--brand-2);
}

.channel-card-feature {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--paper);
}

a.channel-card-feature:hover {
  box-shadow: 13px 13px 0 var(--paper);
}

.channel-platform {
  width: max-content;
  max-width: 100%;
  padding: 3px 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.channel-card-feature .channel-platform {
  color: var(--yellow);
}

.channel-card h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.channel-card-feature h3 {
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
}

.channel-card p:not(.channel-platform) {
  font-size: 13px;
  line-height: 1.7;
}

.channel-card-feature p:not(.channel-platform) {
  max-width: 34ch;
  font-size: 15px;
}

.channel-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 2px solid var(--mute);
  font-size: 14px;
  font-weight: 900;
}

.channel-card-feature .channel-link {
  border-top: 3px solid var(--ink);
  font-size: 15px;
}

.channel-card .btn {
  align-self: flex-start;
  margin-top: auto;
  background: var(--brand);
  color: var(--on-brand);
}

.channel-note {
  margin-top: 20px;
  color: rgba(255, 248, 231, 0.62);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.observations {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

.log-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
  transform: rotate(-0.5deg);
}

.log-card:nth-child(even) {
  transform: rotate(0.5deg);
}

.log-card-feature {
  grid-column: 1 / -1;
  box-shadow: 12px 12px 0 var(--brand-2);
  transform: none;
}

.log-card-tall {
  grid-row: span 2;
}

.log-open {
  display: block;
  color: inherit;
  text-decoration: none;
}

.log-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--purple-deep);
}

.log-media-wide {
  aspect-ratio: 2.1 / 1;
}

.log-card-tall .log-media {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 280px;
}

.log-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.log-media-wide img {
  object-position: center 44%;
}

.log-media-portrait img {
  object-position: center 22%;
}

.log-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--purple);
  mix-blend-mode: color;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.log-card:nth-child(even) .log-media::after {
  background: var(--yellow);
  opacity: 0.45;
}

.log-open:hover .log-media img,
.log-open:focus-visible .log-media img {
  transform: scale(1.02);
}

.log-open:hover .log-media::after,
.log-open:focus-visible .log-media::after {
  opacity: 0;
}

.log-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  border-top: 4px solid var(--ink);
}

.log-card-feature figcaption {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.log-code {
  width: max-content;
  padding: 3px 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.log-card figcaption strong {
  font-size: 17px;
  line-height: 1.4;
}

.log-card-feature figcaption strong {
  font-size: clamp(20px, 2.4vw, 28px);
}

.log-card figcaption > span:last-child {
  color: var(--muted-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.log-card-feature figcaption > span:last-child {
  margin-left: auto;
}

.log-credit {
  margin-top: 18px;
  color: var(--muted-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.quote {
  padding-block: clamp(64px, 10vw, 140px);
  background: var(--brand-2);
  color: var(--on-brand-2);
}

.quote blockquote {
  position: relative;
}

.quote p {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(30px, 5.4vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.quote-accent {
  color: var(--brand);
}

.quote footer {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.site-footer {
  padding-block: 42px 30px;
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--ink);
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255, 248, 231, 0.2);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.footer-brand small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 248, 231, 0.6);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
}

.footer-catch {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.4vw, 18px);
  letter-spacing: 0.08em;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 18px;
  color: rgba(255, 248, 231, 0.65);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.footer-meta a {
  margin-left: auto;
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
}

.footer-meta a:hover {
  color: var(--yellow);
}

body.lightbox-open,
body.nav-open {
  overflow: hidden;
}

.lightbox {
  width: max-content;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
}

.lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  background: var(--ink);
}

.lightbox p {
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  color: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

body.is-jumping::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  background: var(--brand-2);
  animation: worldline-flash 720ms steps(5, end) forwards;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.2;
  }
}

@keyframes worldline-flash {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 0.9;
  }
  42% {
    opacity: 0.12;
  }
  62% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
  }
}

@media (hover: hover) {
  .log-media img {
    filter: grayscale(1) contrast(1.12);
  }

  .log-card:nth-child(even) .log-media img {
    filter: grayscale(1) contrast(1.2) brightness(0.94);
  }

  .log-open:hover .log-media img,
  .log-open:focus-visible .log-media img {
    filter: none;
  }
}

@media (max-width: 1100px) {
  .hero-sticker {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .divergence {
    max-width: 540px;
    transform: none;
  }

  .manifesto-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

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

  .log-card,
  .log-card:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 55;
    padding: 14px var(--gutter) 22px;
    background: var(--paper);
    border-bottom: 4px solid var(--ink);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.15);
    visibility: hidden;
    transform: translateY(-140%);
    transition: transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .site-nav.is-open {
    visibility: visible;
    transform: translateY(0);
    transition: transform 0.2s ease, visibility 0s;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 14px 10px;
    border: 0;
    border-bottom: 2px solid var(--mute);
    font-size: 16px;
  }

  .site-nav a:hover {
    background: var(--brand);
    color: var(--on-brand);
    transform: none;
    box-shadow: none;
  }

  .site-nav a[aria-current="true"] {
    background: var(--ink);
    color: var(--paper);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .theme-toggle {
    padding: 7px 8px;
    font-size: 10px;
  }
}

@media (max-width: 760px) {
  .gadget-grid,
  .channel-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .log-card-feature,
  .log-card-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .log-card-tall .log-media {
    flex: 0 0 auto;
    aspect-ratio: 3 / 4;
    min-height: 0;
  }

  .log-card-feature figcaption > span:last-child {
    margin-left: 0;
  }

  .hero {
    min-height: 0;
    padding-top: 34px;
  }

  .hero-name {
    font-size: clamp(48px, 15vw, 72px);
  }

  .divergence-digits {
    font-size: clamp(34px, 10vw, 48px);
  }

  .divergence-stats dd {
    font-size: 18px;
  }

  .manifesto-copy .lead {
    padding-left: 12px;
    border-left-width: 6px;
  }

  .fact-sheet {
    transform: none;
  }

  .product-card {
    box-shadow: 8px 8px 0 var(--brand);
  }

  .mission-card {
    box-shadow: 8px 8px 0 var(--brand-2);
  }

  .channel-card-feature h3 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .oven-visual {
    max-width: 360px;
  }

  .quote p {
    font-size: clamp(26px, 8vw, 40px);
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta a {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    gap: 8px;
  }

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 20px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .brand-text {
    font-size: 15px;
  }

  .header-actions {
    gap: 6px;
  }

  .theme-toggle {
    padding: 6px;
    font-size: 9px;
    letter-spacing: 0;
  }

  .hero-roles span {
    padding: 3px 6px;
    font-size: 11px;
  }

  .hero-catch {
    font-size: 15px;
  }

  .divergence {
    box-shadow: 6px 6px 0 var(--brand-2);
  }

  .oven-gauge {
    flex-wrap: wrap;
  }

  .oven-gauge-temp {
    margin-left: 0;
  }

  .section h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .fact-sheet dl > div {
    grid-template-columns: 50px 1fr;
    padding: 9px 12px;
  }

  .fact-head {
    padding: 12px;
  }

  .oven-visual {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .product-card h3 {
    font-size: clamp(44px, 14vw, 60px);
  }

  .log-card-feature figcaption {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox-close {
    top: 6px;
    right: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .ticker-track {
    animation: none;
    transform: none;
  }

  .hero-sticker,
  .fact-sheet {
    transform: none;
  }

  body.is-jumping::after {
    display: none;
  }
}
