:root {
  color-scheme: dark;
  --accent: #ff2d20;
  --accent-strong: #d82419;
  --accent-soft: rgba(255, 45, 32, 0.14);
  --accent-rgb: 255 45 32;
  --ink: #030303;
  --panel: #080806;
  --panel-raised: #10100d;
  --gold: #f4b51f;
  --gold-light: #ffd469;
  --gold-deep: #8d650d;
  --paper: #f7f4ec;
  --paper-soft: #efebe2;
  --text: #f7f4ec;
  --text-dark: #11110f;
  --muted: #a6a196;
  --muted-dark: #5e5b54;
  --line: rgba(244, 181, 31, 0.28);
  --line-dark: rgba(17, 17, 15, 0.16);
  --success: #22c55e;
  --danger: #ef4444;
  --info: #38bdf8;
  --radius-panel: 8px;
  --radius-slot: 6px;
  --shell: 1180px;
  --shell-wide: 1380px;
  --shadow-gold: 0 22px 60px rgba(141, 101, 13, 0.18);
  --font-display: "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
  --font-mono: "Roboto Mono", monospace;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: var(--radius-slot);
  background: var(--paper);
  color: var(--text-dark);
  text-decoration: none;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 190px 1fr 44px;
  align-items: center;
  gap: 28px;
  height: 72px;
  padding: 0 max(24px, calc((100vw - var(--shell-wide)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 3, 3, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: 172px;
}

.brand img {
  width: 100%;
  height: auto;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.topnav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.topnav a:hover,
.topnav a[aria-current="true"] {
  color: var(--paper);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-slot);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.icon-button svg,
.primary-action svg,
.footer svg,
.command-head svg {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  min-height: 780px;
  max-height: 900px;
  height: 88vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(244, 181, 31, 0.3);
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(244, 181, 31, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 181, 31, 0.075) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, black, transparent 72%);
}

.hero-art {
  position: absolute;
  top: 58px;
  right: max(24px, calc((100vw - var(--shell-wide)) / 2));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 56vw;
  max-width: 820px;
  min-width: 620px;
  height: calc(100% - 58px);
}

.hero-art img {
  width: calc(50% - 6px);
  height: auto;
  max-height: min(92%, 760px);
  object-fit: contain;
  filter: saturate(0.98) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(3, 3, 3, 0.98) 38%, rgba(3, 3, 3, 0.42) 67%, rgba(3, 3, 3, 0.05) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(640px, calc(100% - 48px));
  height: 100%;
  margin-left: max(24px, calc((100vw - var(--shell-wide)) / 2));
  margin-right: auto;
  padding-top: 72px;
}

.eyebrow,
.section-index,
.type-label,
.hero-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow,
.section-index {
  color: var(--gold);
}

.hero h1 {
  margin: 20px 0 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 156px;
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero-definition {
  margin: 24px 0 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}

.hero-copy {
  max-width: 580px;
  margin: 22px 0 0;
  color: #d2cec5;
  font-size: 18px;
  line-height: 1.55;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts div {
  padding: 15px 18px 17px 0;
}

.hero-facts div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 6px 0 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 286px;
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-slot);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.hero-note {
  position: absolute;
  right: max(24px, calc((100vw - var(--shell-wide)) / 2));
  bottom: 22px;
  z-index: 4;
  color: rgba(247, 244, 236, 0.62);
}

.light-section,
.dark-section,
.command-section,
.qa-section {
  position: relative;
  padding: 110px 24px;
  scroll-margin-top: 84px;
}

.light-section,
.command-section {
  background: var(--paper);
  color: var(--text-dark);
}

.dark-section {
  overflow: hidden;
  background: var(--ink);
  color: var(--text);
}

.dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent 0, transparent 79px, rgba(244, 181, 31, 0.045) 80px);
  background-size: 80px 100%;
}

.section-shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--shell));
  margin: 0 auto;
}

.wide-shell {
  width: min(100%, var(--shell-wide));
}

.section-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  column-gap: 36px;
  align-items: start;
  margin-bottom: 62px;
}

.section-heading .section-index {
  grid-row: 1 / span 2;
  padding-top: 8px;
  color: var(--accent);
}

.section-heading h2 {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
}

.section-heading > p:not(.section-index) {
  grid-column: 2;
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted-dark);
  font-size: 17px;
  line-height: 1.6;
}

.section-heading.inverse h2 {
  color: var(--paper);
}

.section-heading.inverse > p:not(.section-index) {
  color: var(--muted);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.principle {
  min-height: 220px;
  padding: 28px 28px 36px 0;
}

.principle + .principle {
  padding-left: 28px;
  border-left: 1px solid var(--line-dark);
}

.principle > span,
.layer-rule > span,
.production-step > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.principle h3,
.palette-panel h3,
.layer-rule h3,
.production-step h3 {
  margin: 42px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.principle p,
.layer-rule p,
.production-step p {
  margin: 14px 0 0;
  color: var(--muted-dark);
  font-size: 14px;
  line-height: 1.6;
}

.visual-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
}

.palette-panel,
.type-panel {
  min-height: 570px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--panel);
}

.palette-panel {
  padding: 30px;
}

.palette-panel h3 {
  margin-top: 0;
  color: var(--paper);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 38px;
}

.swatch {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 134px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-slot);
}

.swatch span {
  font-family: var(--font-mono);
  font-size: 11px;
}

.swatch strong {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
}

.swatch-ink { background: var(--ink); color: var(--paper); }
.swatch-panel { background: var(--panel-raised); color: var(--paper); }
.swatch-gold { background: var(--gold); color: var(--ink); }
.swatch-light-gold { background: var(--gold-light); color: var(--ink); }
.swatch-red { background: var(--accent); color: #fff; }
.swatch-white { background: var(--paper); color: var(--ink); }

.type-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(244, 181, 31, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 181, 31, 0.065) 1px, transparent 1px);
  background-size: 40px 40px;
}

.type-label,
.type-tech {
  color: var(--muted);
}

.type-sample {
  margin: 34px 0 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 900;
  line-height: 0.88;
}

.type-sample span {
  color: var(--gold-light);
}

.type-headline {
  margin: 28px 0 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

.type-tech {
  margin: 30px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.type-note {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.layer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 52px;
  align-items: center;
}

.layer-stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-panel);
  background: var(--ink);
  box-shadow: var(--shadow-gold);
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 181, 31, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 181, 31, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
}

.stage-frame {
  position: absolute;
  left: 8%;
  top: 8%;
  width: min(43%, 340px);
  margin: 0;
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-panel);
  background: var(--panel);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.68);
}

.stage-frame img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-panel) - 1px) calc(var(--radius-panel) - 1px) 0 0;
  filter: saturate(0.98) contrast(1.02);
}

.stage-frame figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.stage-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--gold-deep);
  background: rgba(8, 8, 6, 0.92);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.stage-tag::before {
  content: "";
  width: 44px;
  height: 1px;
  margin-right: 12px;
  background: var(--gold);
}

.tag-back { top: 15%; right: 8%; color: var(--muted); }
.tag-person { left: 43%; top: 43%; color: var(--paper); }
.tag-front { right: 10%; bottom: 16%; color: var(--gold); }

.layer-rules {
  border-top: 1px solid var(--line-dark);
}

.layer-rule {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
}

.layer-rule h3 {
  margin: 0;
}

.layer-rule p {
  max-width: 470px;
}

.layer-rule.immutable {
  margin-left: -20px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 45, 32, 0.04);
}

.archetype-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.visual-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--panel);
  text-align: left;
  cursor: zoom-in;
}

.visual-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.visual-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #050505;
}

.visual-card > span {
  min-height: 86px;
  padding: 16px 14px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.visual-card > span b {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
}

.segment-rule {
  display: grid;
  grid-template-columns: 0.8fr 60px 1.2fr;
  align-items: center;
  gap: 26px;
  padding: 36px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-panel);
  background: #fff;
}

.segment-source > span,
.segment-output > span {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.segment-source > strong {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 48px;
  margin-top: 22px;
}

.waveform i {
  width: 5px;
  height: 14px;
  background: var(--accent);
}

.waveform i:nth-child(2n) { height: 36px; }
.waveform i:nth-child(3n) { height: 22px; }
.waveform i:nth-child(5n) { height: 44px; }

.segment-arrow {
  color: var(--accent);
}

.segment-arrow svg {
  width: 38px;
  height: 38px;
}

.segment-track {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 0.7fr 1.2fr 0.9fr 1.1fr;
  gap: 3px;
  margin-top: 20px;
}

.segment-track b {
  display: grid;
  place-items: center;
  min-height: 70px;
  border-bottom: 5px solid var(--gold-deep);
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 20px;
}

.segment-track b:nth-child(2n) { border-bottom-color: var(--gold); }
.segment-track b:nth-child(4) { border-bottom-color: var(--accent); }

.segment-output p {
  margin: 14px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.production-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.production-step {
  min-height: 170px;
  padding: 24px 20px 24px 0;
}

.production-step + .production-step {
  padding-left: 20px;
  border-left: 1px solid var(--line-dark);
}

.production-step h3 {
  margin-top: 32px;
  font-size: 22px;
}

.motion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: 64px;
  align-items: center;
}

.motion-demo {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background-color: var(--panel);
  background-image:
    linear-gradient(rgba(244, 181, 31, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 181, 31, 0.065) 1px, transparent 1px);
  background-size: 34px 34px;
}

.motion-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 2px solid transparent;
  animation: scan 4s ease-in-out infinite;
}

.motion-status {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.motion-status span { color: var(--muted); }
.motion-status b { color: var(--gold); }

.motion-counter {
  margin-top: 72px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 112px;
  font-weight: 900;
  line-height: 0.82;
}

.motion-counter::after {
  content: " ₽";
  color: var(--gold);
  font-size: 58px;
}

.motion-progress {
  width: 76%;
  height: 8px;
  margin-top: 42px;
  overflow: hidden;
  background: rgba(244, 181, 31, 0.16);
}

.motion-progress span {
  display: block;
  width: 92%;
  height: 100%;
  transform-origin: left;
  background: var(--gold);
  animation: grow 3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.motion-lines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 34px;
}

.motion-lines i {
  height: 54px;
  border: 1px solid var(--gold-deep);
  background: rgba(244, 181, 31, 0.04);
}

.motion-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.motion-copy li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.motion-copy b {
  color: var(--paper);
}

@keyframes grow {
  0%, 16% { transform: scaleX(0.08); }
  72%, 100% { transform: scaleX(1); }
}

@keyframes scan {
  0%, 100% { box-shadow: inset 0 0 0 rgba(244, 181, 31, 0); }
  50% { box-shadow: inset 120px 0 90px rgba(244, 181, 31, 0.07); }
}

.command-section {
  padding-top: 118px;
  padding-bottom: 118px;
}

.command-block {
  overflow: hidden;
  border: 1px solid #24231f;
  border-radius: var(--radius-panel);
  background: var(--ink);
  box-shadow: 0 24px 60px rgba(17, 17, 15, 0.16);
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.command-head button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-slot);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.command-head button:hover {
  background: var(--accent);
}

.command-block pre {
  margin: 0;
  padding: 30px;
  overflow-x: auto;
  color: #d9d4c9;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.qa-section {
  padding-top: 92px;
  padding-bottom: 92px;
  background: var(--paper-soft);
  color: var(--text-dark);
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
}

.qa-column h2 {
  margin: 16px 0 30px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.qa-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.qa-column li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 14px;
  line-height: 1.5;
}

.qa-column li svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--success);
}

.qa-column.reject li svg {
  color: var(--danger);
}

.footer {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px max(24px, calc((100vw - var(--shell)) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink);
}

.footer img {
  width: 170px;
}

.footer p {
  color: var(--muted);
  font-size: 12px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.lightbox {
  width: min(92vw, 941px);
  max-width: 941px;
  padding: 0;
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-panel);
  background: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.74);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 88vh;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-slot);
  background: rgba(3, 3, 3, 0.86);
  cursor: pointer;
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  padding: 13px 16px;
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-slot);
  transform: translateY(140%);
  background: var(--panel);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.js .reveal {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 520ms ease;
}

.js .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  .hero-inner {
    margin-left: 48px;
    transform: none;
  }

  .hero-art {
    right: -80px;
    width: 56vw;
  }

  .archetype-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 160px 1fr 40px;
    gap: 14px;
    height: 64px;
  }

  .brand {
    width: 150px;
  }

  .topnav {
    justify-content: flex-end;
    gap: 18px;
  }

  .topnav a:nth-child(-n + 2) {
    display: none;
  }

  .hero {
    min-height: 720px;
    height: 86vh;
  }

  .hero-art {
    right: -120px;
    width: 64vw;
    min-width: 500px;
    opacity: 0.64;
  }

  .hero-shade {
    background: linear-gradient(90deg, var(--ink) 0%, rgba(3, 3, 3, 0.96) 48%, rgba(3, 3, 3, 0.48) 100%);
  }

  .hero-inner {
    width: min(620px, calc(100% - 48px));
    margin-left: 24px;
  }

  .hero h1 {
    font-size: 120px;
  }

  .hero-note {
    display: none;
  }

  .light-section,
  .dark-section,
  .command-section,
  .qa-section {
    padding: 88px 24px;
  }

  .section-heading {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
  }

  .section-heading h2 {
    font-size: 44px;
  }

  .visual-grid,
  .layer-layout,
  .motion-layout {
    grid-template-columns: 1fr;
  }

  .layer-stage {
    min-height: 560px;
  }

  .stage-frame {
    width: min(42%, 300px);
  }

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

  .segment-arrow {
    transform: rotate(90deg);
  }

  .production-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .production-step:nth-child(4) {
    border-left: 0;
  }

  .motion-demo {
    min-height: 390px;
  }

  .qa-grid {
    gap: 42px;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: 140px 1fr 40px;
    padding: 0 16px;
  }

  .brand {
    width: 136px;
  }

  .topnav {
    display: none;
  }

  .hero {
    min-height: 780px;
    height: 92vh;
    max-height: 840px;
  }

  .hero::before {
    background-size: 52px 52px;
  }

  .hero-art {
    top: 220px;
    right: -106px;
    width: 112vw;
    min-width: 460px;
    height: 69%;
    opacity: 0.36;
  }

  .hero-shade {
    background: linear-gradient(180deg, var(--ink) 0%, rgba(3, 3, 3, 0.92) 48%, rgba(3, 3, 3, 0.34) 100%);
  }

  .hero-inner {
    justify-content: flex-start;
    width: calc(100% - 32px);
    margin: 0 16px;
    padding-top: 122px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .hero h1 {
    margin-top: 16px;
    font-size: 74px;
  }

  .hero-definition {
    margin-top: 18px;
    font-size: 19px;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-facts {
    margin-top: 24px;
  }

  .hero-facts div {
    padding: 12px 9px 13px 0;
  }

  .hero-facts div + div {
    padding-left: 9px;
  }

  .hero-facts dt {
    font-size: 8px;
  }

  .hero-facts dd {
    font-size: 16px;
  }

  .primary-action {
    width: 100%;
    margin-top: 22px;
  }

  .light-section,
  .dark-section,
  .command-section,
  .qa-section {
    padding: 72px 16px;
  }

  .section-heading {
    display: block;
    margin-bottom: 42px;
  }

  .section-heading .section-index {
    padding: 0;
  }

  .section-heading h2 {
    margin-top: 18px;
    font-size: 36px;
    line-height: 0.98;
  }

  .section-heading > p:not(.section-index) {
    margin-top: 18px;
    font-size: 15px;
  }

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

  .principle {
    min-height: 0;
    padding: 22px 0 26px;
  }

  .principle + .principle {
    padding-left: 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .principle h3 {
    margin-top: 22px;
    font-size: 24px;
  }

  .palette-panel,
  .type-panel {
    min-height: 0;
  }

  .palette-panel,
  .type-panel {
    padding: 22px;
  }

  .swatches {
    grid-template-columns: 1fr 1fr;
    margin-top: 28px;
  }

  .swatch {
    min-height: 116px;
  }

  .swatch strong {
    font-size: 15px;
  }

  .type-sample {
    font-size: 66px;
  }

  .type-headline {
    font-size: 40px;
  }

  .layer-stage {
    min-height: 560px;
  }

  .stage-frame {
    left: 50%;
    top: 28px;
    width: min(76%, 290px);
    transform: translateX(-50%);
  }

  .stage-tag {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .stage-tag::before {
    width: 24px;
    margin-right: 8px;
  }

  .tag-back { top: auto; right: auto; left: 18px; bottom: 112px; }
  .tag-person { left: 18px; top: auto; bottom: 62px; }
  .tag-front { right: 18px; bottom: 18px; }

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

  .archetype-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .visual-card > span {
    min-height: 66px;
    padding: 13px 10px;
    font-size: 14px;
  }

  .segment-rule {
    padding: 24px 18px;
  }

  .segment-source > strong {
    font-size: 44px;
  }

  .segment-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .segment-track b {
    min-height: 56px;
  }

  .production-steps {
    grid-template-columns: 1fr 1fr;
  }

  .production-step,
  .production-step:nth-child(4) {
    min-height: 150px;
    padding: 20px 14px 20px 0;
    border-left: 0;
  }

  .production-step:nth-child(even) {
    padding-left: 14px;
    border-left: 1px solid var(--line-dark);
  }

  .production-step:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }

  .motion-demo {
    min-height: 340px;
    padding: 24px 18px;
  }

  .motion-counter {
    margin-top: 66px;
    font-size: 66px;
  }

  .motion-counter::after {
    font-size: 34px;
  }

  .command-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .command-head button {
    width: 100%;
    justify-content: center;
  }

  .command-block pre {
    padding: 22px 18px;
    font-size: 12px;
  }

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

  .qa-column h2 {
    font-size: 34px;
  }

  .footer {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 28px 16px;
  }

  .footer img {
    width: 142px;
  }

  .footer p {
    display: none;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    text-align: center;
  }
}

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

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

  .js .reveal {
    transform: none;
    opacity: 1;
  }
}
