:root {
  --ink: #130000;
  --paper: #fffaf6;
  --red: #c40000;
  --deep-red: #760000;
  --pale-red: #fff0ed;
  --yellow: #fff0b8;
  --gold: #c99a1a;
  --blue: #9d0000;
  --green: #b61212;
  --magenta: #d10000;
  --cyan: #fff4f0;
  --orange: #8a0000;
  --line: #2a0505;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(196, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(201, 154, 26, 0.1) 1px, transparent 1px),
    var(--paper);
  background-size: 26px 26px;
  font-family: "Times New Roman", "SimSun", serif;
  cursor: crosshair;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 10% 20%, #000 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, #000 0 1px, transparent 1px),
    radial-gradient(circle at 30% 90%, #000 0 1px, transparent 1px);
  background-size: 9px 9px, 13px 13px, 17px 17px;
  mix-blend-mode: multiply;
}

.microbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 6px;
  color: #fff;
  background: var(--deep-red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(12px, 2vw, 18px);
  letter-spacing: 0.06em;
}

.microbar span {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 2px solid var(--gold);
  background: var(--red);
  text-align: center;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(320px, 0.46fr);
  align-items: center;
  min-height: 540px;
  aspect-ratio: 1672 / 941;
  gap: clamp(10px, 2vw, 28px);
  padding: clamp(18px, 3vw, 44px) clamp(14px, 3vw, 46px);
  border-top: 6px double var(--red);
  border-bottom: 6px double var(--red);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 35%, rgba(255, 255, 255, 0.78) 48%, rgba(255, 255, 255, 0.12) 71%, rgba(255, 255, 255, 0) 100%),
    repeating-linear-gradient(45deg, rgba(196, 0, 0, 0.08) 0 10px, transparent 10px 20px),
    url("assets/director-wang-hero-promo.png") center / cover no-repeat,
    #fff;
  text-align: left;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  min-width: 0;
  max-width: 760px;
  padding-left: clamp(4px, 1vw, 14px);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 8px;
  color: var(--yellow);
  background: var(--red);
  border: 3px solid var(--line);
  font-family: "Times New Roman", serif;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 880px;
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(42px, 7.6vw, 112px);
  line-height: 0.91;
  letter-spacing: 0.01em;
  text-shadow:
    4px 4px 0 var(--yellow),
    8px 8px 0 var(--deep-red),
    -2px -2px 0 #fff;
  animation: color-shout 1.2s linear infinite;
}

.hero-subtitle {
  width: min(780px, 100%);
  margin: 14px 0 8px;
  color: var(--deep-red);
  font-family: "Times New Roman", serif;
  font-size: clamp(18px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-warning {
  display: inline-block;
  max-width: 760px;
  margin: 4px 0 0;
  padding: 8px 10px;
  color: #fff;
  background: var(--deep-red);
  border: 4px solid var(--red);
  font-family: Arial, sans-serif;
  font-size: clamp(12px, 2.4vw, 18px);
  font-weight: 900;
}

.hero-stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
  font-family: Impact, "Arial Black", sans-serif;
  color: var(--red);
}

.hero-stamp-row span {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 4px 9px;
  border: 4px dashed var(--red);
  background: #fff;
  font-size: clamp(13px, 1.6vw, 20px);
  line-height: 0.92;
  text-align: center;
  transform: rotate(-2deg);
}

.hero-stamp-row span:nth-child(2) {
  transform: rotate(2deg);
}

.hero-stamp-row span:nth-child(3) {
  color: var(--deep-red);
  border-style: double;
}

.seal {
  display: grid;
  place-items: center;
  width: clamp(64px, 12vw, 132px);
  aspect-ratio: 1;
  margin: auto;
  color: var(--red);
  background: #fff;
  border: 6px dashed var(--red);
  border-radius: 50%;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(15px, 2.5vw, 30px);
  line-height: 0.95;
  transform: rotate(-13deg);
  animation: seal-spin 8s steps(12, end) infinite;
}

.seal-right {
  color: var(--deep-red);
  border-color: var(--deep-red);
  transform: rotate(13deg);
  animation-direction: reverse;
}

.ticker-wrap {
  overflow: hidden;
  border-top: 4px solid var(--line);
  border-bottom: 4px solid var(--line);
  background: var(--red);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 28px;
  padding: 8px 0;
  color: var(--yellow);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(17px, 2.4vw, 28px);
  text-shadow: 2px 2px 0 #000;
  white-space: nowrap;
  animation: ticker 24s linear infinite;
}

.outer-frame {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 250px;
  align-items: stretch;
  gap: 8px;
  margin: 8px;
  padding: 8px;
  border: 6px ridge var(--deep-red);
  background: rgba(255, 255, 255, 0.94);
}

.sidebar,
.content-column {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  min-width: 0;
}

.box,
.catalog-section,
.science-section,
.ads-section,
.warning-section {
  margin-bottom: 10px;
  border: 4px solid var(--line);
  background: #fff;
  box-shadow: 6px 6px 0 var(--deep-red);
}

.box {
  padding: 8px;
  font-size: 13px;
}

.box h2,
.section-header h2,
.warning-section h2 {
  margin: 0 0 8px;
  padding: 4px 6px;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--line);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 19px;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.nav-box h2 {
  background: var(--magenta);
}

.sidebar-link {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 5px;
  color: var(--deep-red);
  background: #fff8f2;
  border: 2px outset var(--gold);
  text-align: left;
  text-decoration: underline;
  font-size: 13px;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  color: var(--yellow);
  background: var(--red);
}

.lab-status dl {
  margin: 0;
}

.lab-status div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 4px 0;
  padding: 4px;
  border: 2px dotted var(--green);
  background: var(--pale-red);
}

.lab-status dt {
  font-weight: 900;
}

.lab-status dd {
  margin: 0;
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-weight: 900;
  text-align: right;
}

.danger {
  color: var(--red) !important;
  animation: blink 0.7s step-end infinite;
}

.counter {
  display: block;
  padding: 5px;
  color: #fff4c6;
  background: var(--deep-red);
  border: 3px inset #777;
  font-family: "Courier New", monospace;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-align: center;
}

.badge-stack span {
  display: block;
  margin: 5px 0;
  padding: 5px;
  color: #000;
  background: var(--yellow);
  border: 3px double var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  text-align: center;
}

.order-button,
.chat-button,
#close-modal {
  padding: 9px 12px;
  color: #fff;
  background: var(--red);
  border: 4px outset #ff9898;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(15px, 2vw, 22px);
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #000;
}

.section-header {
  padding: 10px;
  background: var(--yellow);
  border-bottom: 4px solid var(--line);
}

.section-header h2 {
  margin-bottom: 4px;
  background: var(--red);
  font-size: clamp(24px, 4vw, 44px);
}

.section-header p {
  margin: 0;
  font-family: "Times New Roman", serif;
  font-size: 19px;
  font-weight: 900;
  text-align: center;
}

.warning-header {
  background: var(--pale-red);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.product-card {
  position: relative;
  min-height: 276px;
  padding: 12px;
  border: 4px solid var(--line);
  background: #fff9f4;
  box-shadow: 5px 5px 0 var(--red);
}

.product-card h3 {
  margin: 32px 0 6px;
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 0.94;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #fff;
}

.product-card ul {
  margin: 8px 0 14px;
  padding-left: 20px;
  font-size: 15px;
  font-weight: 900;
}

.product-card li {
  margin: 4px 0;
}

.fake-price {
  display: inline-block;
  margin: 0;
  padding: 4px 7px;
  color: #fff;
  background: var(--deep-red);
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.product-sticker {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  color: #fff;
  background: var(--red);
  border: 3px dashed #000;
  font-family: Impact, "Arial Black", sans-serif;
  transform: rotate(-3deg);
}

.product-card.blue {
  background: #fff0f0;
  box-shadow-color: var(--deep-red);
}

.product-card.green {
  background: #fff8ed;
  box-shadow-color: var(--green);
}

.product-card.purple {
  background: #fff2e6;
  box-shadow-color: var(--gold);
}

.order-button {
  width: 100%;
  margin-top: auto;
  font-size: 18px;
}

.science-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.85fr;
  gap: 10px;
  padding: 10px;
}

.chart-box,
.meter-box,
.molecule-box {
  padding: 10px;
  border: 4px dotted var(--red);
  background: #fff;
}

.chart-box h3,
.meter-box h3,
.molecule-box h3 {
  margin: 0 0 8px;
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
}

.chart-box svg {
  width: 100%;
  border: 3px solid #000;
}

.hplc-line {
  animation: hplc-dance 1.3s steps(2, end) infinite;
}

.meter-box label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 9px 0 4px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
}

.meter {
  height: 19px;
  border: 3px solid var(--line);
  background: #fff;
}

.meter span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, var(--yellow) 10px 20px);
}

.green-meter span {
  background: repeating-linear-gradient(90deg, var(--deep-red) 0 10px, var(--gold) 10px 20px);
}

.red-meter span {
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, #fff 10px 20px);
}

.sad-meter span {
  background: var(--gold);
}

.molecule {
  position: relative;
  height: 138px;
  margin: 10px 0;
  border: 3px solid var(--line);
  background:
    linear-gradient(35deg, transparent 48%, var(--red) 49% 51%, transparent 52%),
    linear-gradient(145deg, transparent 48%, var(--red) 49% 51%, transparent 52%),
    #fff7f2;
}

.molecule span {
  position: absolute;
  width: 34px;
  aspect-ratio: 1;
  border: 4px solid #000;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 1.1s infinite;
}

.molecule span:nth-child(1) { top: 16px; left: 14%; }
.molecule span:nth-child(2) { top: 62px; left: 35%; background: var(--green); }
.molecule span:nth-child(3) { top: 24px; right: 20%; background: var(--magenta); }
.molecule span:nth-child(4) { bottom: 16px; left: 20%; background: var(--cyan); }
.molecule span:nth-child(5) { bottom: 20px; right: 12%; background: var(--orange); }

.big-number {
  margin: 0;
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 54px;
  line-height: 0.85;
  text-align: center;
  text-shadow: 3px 3px 0 var(--yellow);
}

.ad-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

figure {
  margin: 0;
  border: 4px solid #000;
  background: #fff;
}

figure img,
.ad-tower img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #fffaf4;
}

figcaption {
  padding: 7px;
  color: #fff;
  background: var(--deep-red);
  font-family: Impact, "Arial Black", sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.warning-section {
  padding: 16px;
  color: #fff;
  background: #000;
  border-color: var(--red);
}

.warning-section h2 {
  color: var(--yellow);
  background: var(--red);
}

.warning-section p {
  max-width: 900px;
  font-size: clamp(18px, 2.5vw, 25px);
  font-weight: 900;
}

.notice-button {
  width: min(520px, 100%);
}

.broker-box h2 {
  background: var(--green);
}

.phone-shell {
  overflow: hidden;
  border: 5px solid #111;
  background: #fff3ee;
}

.phone-header {
  padding: 7px;
  color: #fff;
  background: var(--deep-red);
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.chat-log {
  min-height: 230px;
  max-height: 330px;
  overflow-y: auto;
  padding: 8px;
}

.msg {
  width: fit-content;
  max-width: 92%;
  margin: 7px 0;
  padding: 7px;
  border: 2px solid #777;
  border-radius: 6px;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.seller {
  background: #ffffff;
}

.buyer {
  margin-left: auto;
  background: #fff0d7;
}

.chat-button {
  width: 100%;
  color: #fff;
  background: var(--red);
  border-color: #ffd9d9;
  font-size: 15px;
}

.testimonials blockquote {
  margin: 8px 0;
  padding: 8px;
  border: 3px dashed var(--red);
  background: #fff7f2;
  font-size: 14px;
  font-weight: 900;
}

.testimonials cite {
  display: block;
  margin-top: 5px;
  color: var(--deep-red);
  font-family: "Courier New", monospace;
  font-style: normal;
}

.ad-tower {
  background: var(--yellow);
}

.ad-tower p {
  margin: 8px 0 0;
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
}

.blocked-modal {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(18px, 4vw, 34px);
  border: 8px solid var(--red);
  background: #fff;
  box-shadow: 12px 12px 0 var(--yellow);
  text-align: center;
}

.modal-stamp {
  position: absolute;
  top: -22px;
  left: 18px;
  padding: 5px 12px;
  color: #fff;
  background: var(--red);
  border: 4px solid #000;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
  transform: rotate(-5deg);
}

.blocked-modal h2 {
  margin: 12px 0;
  color: var(--red);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(38px, 8vw, 86px);
  line-height: 0.9;
  text-shadow: 4px 4px 0 var(--yellow);
}

.blocked-modal p {
  font-size: 20px;
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

.blink {
  animation: blink 0.8s step-end infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

@keyframes color-shout {
  0% { color: var(--red); }
  33% { color: var(--deep-red); }
  66% { color: #b40000; }
  100% { color: var(--red); }
}

@keyframes seal-spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes hplc-dance {
  0% { transform: translateX(0); }
  50% { transform: translateX(4px) translateY(-2px); }
  100% { transform: translateX(-2px) translateY(1px); }
}

@keyframes pulse {
  50% { transform: scale(1.12); }
}

@media (max-width: 1120px) {
  .outer-frame {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .sidebar,
  .content-column {
    display: block;
    min-height: 0;
  }

  .terminal-fill {
    display: block;
    min-height: 170px;
    flex: none;
  }

  .terminal-lines,
  .terminal-center .terminal-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 820px) {
  .outer-frame,
  .product-grid,
  .science-grid,
  .ad-gallery,
  .sidebar-right {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    min-height: 760px;
    align-items: start;
    padding-top: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0 45%, rgba(255, 255, 255, 0.66) 60%, rgba(255, 255, 255, 0.05) 100%),
      repeating-linear-gradient(45deg, rgba(196, 0, 0, 0.08) 0 10px, transparent 10px 20px),
      url("assets/director-wang-hero-promo.png") 65% bottom / auto 54% no-repeat,
      #fff;
  }

  .seal {
    display: none;
  }

  .outer-frame {
    margin: 4px;
    padding: 5px;
  }

}

@media (max-width: 460px) {
  .microbar {
    font-size: 11px;
    flex-direction: column;
    align-items: center;
  }

  .microbar span {
    width: min(100%, 330px);
  }

  h1 {
    font-size: clamp(30px, 16vw, 58px);
    text-shadow:
      2px 2px 0 var(--yellow),
      4px 4px 0 var(--blue);
  }

  .order-button {
    width: 100%;
  }

  .product-card {
    min-height: unset;
  }

  .box,
  .product-card,
  .catalog-section,
  .science-section,
  .ads-section,
  .warning-section {
    box-shadow: 3px 3px 0 #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-track {
    transform: none;
  }
}

/* CCP Labs source-truth brand layer */
:root {
  --ink: #fff2c0;
  --paper: #1a0504;
  --red: #b90907;
  --deep-red: #540000;
  --pale-red: #2b0706;
  --yellow: #ffd05a;
  --gold: #d89c24;
  --blue: #8f0504;
  --green: #700000;
  --magenta: #ce160d;
  --cyan: #ffe6a3;
  --orange: #efb136;
  --line: #080000;
  --panel: #120807;
  --cream: #fff1c8;
}

body {
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(201, 154, 26, 0.24) 0 2px, transparent 2px 68px),
    repeating-linear-gradient(0deg, rgba(201, 154, 26, 0.2) 0 2px, transparent 2px 68px),
    repeating-linear-gradient(45deg, rgba(196, 0, 0, 0.18) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 50% 0, rgba(255, 208, 90, 0.18), transparent 34rem),
    repeating-conic-gradient(from 0deg at 50% 20%, rgba(185, 9, 7, 0.35) 0 8deg, transparent 8deg 16deg),
    linear-gradient(90deg, rgba(216, 156, 36, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(255, 208, 90, 0.08) 1px, transparent 1px),
    var(--paper);
  background-size: 136px 136px, 136px 136px, 48px 48px, auto, auto, 26px 26px, 26px 26px, auto;
}

.microbar {
  color: var(--yellow);
  background: #110202;
  border-bottom: 4px solid var(--gold);
}

.microbar a {
  flex: 0 0 auto;
  padding: 2px 10px;
  color: #0b0303;
  background: var(--yellow);
  border: 2px solid var(--gold);
  font-family: Impact, "Arial Black", sans-serif;
  text-decoration: none;
}

.hero-panel {
  border-top-color: var(--gold);
  border-bottom-color: var(--gold);
  background:
    linear-gradient(90deg, rgba(18, 2, 2, 0.95) 0 42%, rgba(84, 0, 0, 0.72) 54%, rgba(84, 0, 0, 0.18) 76%, rgba(84, 0, 0, 0.05) 100%),
    url("assets/quality-first-poster.jpg") 80% 34% / 156% auto no-repeat,
    #170202;
}

.hero-visual {
  position: relative;
  z-index: 1;
  grid-column: 2;
  justify-self: end;
  align-self: end;
  width: min(460px, 100%);
  min-height: 460px;
}

.hero-seal {
  position: absolute;
  right: -12px;
  bottom: -6px;
  width: min(360px, 92%);
  height: auto;
  filter: drop-shadow(10px 12px 0 #050000);
}

.eyebrow {
  color: var(--yellow);
  background: #120303;
  border-color: var(--gold);
}

h1 {
  color: var(--yellow);
  animation: none;
  text-shadow:
    4px 4px 0 #050000,
    8px 8px 0 var(--red),
    -2px -2px 0 var(--gold);
}

.hero-subtitle,
.warning-section p {
  color: var(--cream);
}

.hero-warning {
  color: #100000;
  background: var(--yellow);
  border-color: var(--gold);
}

.hero-stamp-row span {
  color: var(--yellow);
  background: #150303;
  border-color: var(--gold);
}

.hero-stamp-row span:nth-child(3) {
  color: var(--yellow);
}

.hero-x-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  color: #080000;
  background: var(--gold);
  border: 4px outset #ffe08c;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #000;
}

.ticker-wrap {
  background: #0a0202;
  border-color: var(--gold);
}

.outer-frame {
  border-color: var(--gold);
  background:
    repeating-linear-gradient(90deg, rgba(255, 208, 90, 0.17) 0 2px, transparent 2px 72px),
    repeating-linear-gradient(0deg, rgba(255, 208, 90, 0.15) 0 2px, transparent 2px 72px),
    repeating-linear-gradient(45deg, rgba(255, 208, 90, 0.13) 0 9px, rgba(31, 5, 5, 0.18) 9px 18px),
    rgba(20, 3, 3, 0.96);
}

.box,
.catalog-section,
.science-section,
.ads-section,
.warning-section,
.product-card,
.chart-box,
.meter-box,
.molecule-box {
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 208, 90, 0.13), transparent 52%),
    var(--panel);
  border-color: var(--gold);
  box-shadow: 6px 6px 0 #000;
}

.box h2,
.section-header h2,
.warning-section h2 {
  color: var(--yellow);
  background: var(--red);
  border-color: var(--gold);
  text-shadow: 2px 2px 0 #000;
}

.sidebar-link {
  color: var(--yellow);
  background: #180505;
  border-color: var(--gold);
}

.lab-status div,
.testimonials blockquote {
  background: #100303;
  border-color: var(--gold);
}

.lab-status dd,
.testimonials cite,
.ad-tower p,
.chart-box h3,
.meter-box h3,
.molecule-box h3 {
  color: var(--yellow);
}

.counter,
.fake-price {
  color: var(--yellow);
  background: #050000;
  border-color: var(--gold);
}

.badge-stack span {
  color: #080000;
  background: var(--yellow);
  border-color: var(--red);
}

.side-character,
.side-badge,
.phone-art {
  display: block;
  width: 100%;
  height: auto;
  margin: 6px 0 8px;
  border: 3px solid var(--gold);
  background: radial-gradient(circle, #310606, #050000);
}

.side-badge {
  padding: 5px;
  border-radius: 50%;
}

.side-poster-box {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 208, 90, 0.16), transparent 46%),
    #120303;
}

.flash-box,
.bottom-flash-wall {
  background:
    repeating-linear-gradient(45deg, rgba(255, 208, 90, 0.12) 0 10px, transparent 10px 20px),
    #120303;
}

.flash-pane {
  margin: 6px 0;
  padding: 8px 10px;
  color: #140000;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 65%),
    var(--yellow);
  border: 3px solid var(--gold);
  box-shadow: 4px 4px 0 #000;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.side-poster {
  display: block;
  width: 100%;
  height: auto;
  margin: 6px 0 8px;
  border: 3px solid var(--gold);
  background: #060000;
}

.side-thumb {
  background:
    radial-gradient(circle at center, rgba(255, 208, 90, 0.16), transparent 60%),
    #060000;
}

.side-caption {
  margin: 0;
  color: var(--cream);
  font-family: "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.18;
}

.section-header {
  background:
    repeating-linear-gradient(45deg, rgba(255, 208, 90, 0.16) 0 8px, transparent 8px 16px),
    #0d0202;
  border-color: var(--gold);
}

.catalog-banner {
  margin: 10px;
  border-color: var(--gold);
  background: #040000;
}

.product-card {
  min-height: 340px;
}

.product-card h3 {
  color: var(--yellow);
  text-shadow: 2px 2px 0 #000, -1px -1px 0 var(--red);
}

.product-art {
  display: block;
  width: min(180px, 48%);
  height: 130px;
  object-fit: contain;
  object-position: center;
  float: right;
  margin: 0 0 8px 10px;
  filter: drop-shadow(4px 4px 0 #000);
}

.product-card.blue,
.product-card.green,
.product-card.purple {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 208, 90, 0.13), transparent 52%),
    var(--panel);
  box-shadow-color: #000;
}

.order-button,
.chat-button,
#close-modal {
  color: var(--yellow);
  border-color: var(--gold);
}

.chart-box svg,
.meter,
.science-poster {
  border-color: var(--gold);
  background: #050000;
}

.science-poster {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 853;
  object-fit: contain;
}

.ad-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ad-gallery > figure:last-child {
  grid-column: 1 / -1;
}

.ad-gallery > figure:last-child img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-feature {
  margin: 10px;
  border-color: var(--gold);
  background: #050000;
  box-shadow: 8px 8px 0 #000;
}

.commercial-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 208, 90, 0.16), transparent 32%),
    #050000;
  object-fit: cover;
}

.bottom-flash-wall {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.terminal-fill {
  display: flex;
  flex: 1 1 220px;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 208, 90, 0.18), transparent 28%),
    repeating-linear-gradient(45deg, rgba(216, 156, 36, 0.24) 0 12px, rgba(18, 2, 2, 0.7) 12px 24px),
    #0b0101;
  border-style: double;
}

.terminal-fill h2 {
  margin-bottom: 10px;
}

.terminal-fill p {
  margin: 10px 0 0;
  color: var(--cream);
  font-family: "Times New Roman", serif;
  font-size: clamp(14px, 1.45vw, 22px);
  font-weight: 900;
  line-height: 1.12;
}

.terminal-stamp {
  display: grid;
  min-height: 52px;
  place-items: center;
  margin: 0 0 10px;
  padding: 8px;
  color: #130000;
  background: var(--yellow);
  border: 4px dashed var(--red);
  box-shadow: 5px 5px 0 #000;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(20px, 2.2vw, 42px);
  line-height: 0.92;
  text-align: center;
  text-transform: uppercase;
}

.terminal-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.terminal-center .terminal-lines {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.terminal-lines span {
  display: grid;
  min-height: 34px;
  place-items: center;
  padding: 5px;
  color: var(--yellow);
  background: #120202;
  border: 3px solid var(--gold);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(13px, 1.35vw, 24px);
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
}

.bottom-flash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1120px) {
  .terminal-fill {
    display: block;
    min-height: 170px;
    flex: none;
  }

  .terminal-lines,
  .terminal-center .terminal-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

figure,
figure img,
.ad-tower img {
  background: #050000;
  border-color: var(--gold);
}

.ad-tower img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 8px;
}

figcaption,
.phone-header {
  color: var(--yellow);
  background: #090101;
}

.warning-section,
.blocked-modal {
  background: #050000;
  border-color: var(--gold);
}

.phone-shell {
  background: #090202;
  border-color: var(--gold);
}

.phone-art {
  aspect-ratio: 1;
  object-fit: contain;
  border-width: 0 0 3px;
}

.msg {
  color: var(--cream);
  background: #210505;
  border-color: var(--gold);
}

.buyer {
  color: #090000;
  background: var(--yellow);
}

.crowd-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 6px 0 8px;
}

.crowd-row img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 3px solid var(--gold);
  background: #050000;
}

@media (max-width: 820px) {
  .hero-panel {
    background:
      linear-gradient(180deg, rgba(18, 2, 2, 0.95) 0 48%, rgba(84, 0, 0, 0.46) 70%, rgba(84, 0, 0, 0.15) 100%),
      url("assets/quality-first-poster.jpg") 72% bottom / 220% auto no-repeat,
      #170202;
  }

  .hero-visual {
    grid-column: 1;
    justify-self: center;
    width: min(320px, 84vw);
    min-height: 300px;
  }

  .hero-seal {
    right: 0;
    left: 0;
    margin-inline: auto;
    width: min(260px, 72vw);
  }

  .side-poster-box {
    min-width: 0;
  }

  .bottom-flash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terminal-fill {
    min-height: 140px;
  }
}

@media (max-width: 460px) {
  .ad-gallery {
    grid-template-columns: 1fr;
  }

  .product-art {
    width: min(150px, 45%);
  }

  .hero-visual {
    min-height: 220px;
  }

  .hero-seal {
    width: min(220px, 70vw);
  }

  .bottom-flash-grid {
    grid-template-columns: 1fr;
  }

  .terminal-lines,
  .terminal-center .terminal-lines {
    grid-template-columns: 1fr;
  }
}

/* Rebuild pass: cleaner hero, bottle-first catalog, tighter rails */
.outer-frame {
  grid-template-columns: minmax(180px, 1.05fr) minmax(620px, 4fr) minmax(210px, 1.15fr);
  width: auto;
  max-width: none;
  margin-inline: 0;
  justify-content: stretch;
  align-items: stretch;
}

.sidebar,
.content-column {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hero-panel {
  min-height: clamp(560px, 58vw, 760px);
  aspect-ratio: auto;
  grid-template-columns: minmax(320px, 0.46fr) minmax(0, 0.54fr);
  background:
    linear-gradient(90deg, rgba(18, 2, 2, 0.98) 0 36%, rgba(84, 0, 0, 0.62) 49%, rgba(84, 0, 0, 0.08) 62%, rgba(84, 0, 0, 0) 100%),
    url("assets/hero-lab-export-desk.png") calc(100% + 20px) -20px / auto 148% no-repeat,
    #170202;
}

.hero-copy {
  max-width: 740px;
  padding-left: clamp(24px, 4vw, 82px);
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.product-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 12px;
}

.product-card h3 {
  margin-top: 10px;
  font-size: clamp(28px, 3.2vw, 48px);
}

.product-art {
  float: none;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 22px 0 10px;
  object-fit: cover;
  border: 4px solid var(--gold);
  background: #050000;
  filter: drop-shadow(6px 6px 0 #000);
}

.science-wide-image {
  margin: 10px;
  border-color: var(--gold);
  background: #050000;
}

.science-wide-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.side-mini-gallery {
  background:
    repeating-linear-gradient(45deg, rgba(255, 208, 90, 0.12) 0 10px, transparent 10px 20px),
    #090101;
}

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

.mini-image-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--gold);
  background: #050000;
}

.side-poster {
  max-height: 320px;
  object-fit: cover;
  object-position: center;
}

.side-caption {
  font-size: 13px;
}

.sidebar {
  width: 100%;
}

.sidebar .box {
  width: 100%;
  padding: 6px;
}

.sidebar .box h2 {
  margin-right: -2px;
  margin-left: -2px;
}

.sidebar .side-poster,
.sidebar .side-character,
.sidebar .phone-art,
.sidebar .ad-tower img,
.sidebar .side-badge {
  width: 100%;
  max-width: none;
}

.sidebar .side-poster {
  display: block;
  aspect-ratio: 1 / 1.12;
  max-height: none;
  margin: 6px 0 8px;
  object-fit: cover;
}

.sidebar .side-thumb {
  aspect-ratio: 1;
  object-fit: contain;
}

.sidebar .mini-image-grid {
  gap: 4px;
}

.sidebar .mini-image-grid img {
  aspect-ratio: 1;
  object-fit: cover;
}

.column-tail {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 208, 90, 0.14) 0 10px, rgba(31, 5, 5, 0.18) 10px 20px),
    #120303;
}

.tail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.tail-grid span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 8px 10px;
  color: #180000;
  background: var(--yellow);
  border: 3px solid var(--gold);
  box-shadow: 4px 4px 0 #000;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.terminal-fill {
  display: none;
}

.blink {
  animation-duration: var(--flash-speed, 0.8s);
  animation-delay: var(--flash-delay, 0s);
}

.danger {
  --flash-speed: 1.15s;
  --flash-delay: -240ms;
}

.microbar .blink {
  --flash-speed: 1.05s;
  --flash-delay: -360ms;
}

.flash-box .flash-pane:nth-child(2),
.bottom-flash-grid .flash-pane:nth-child(1),
.terminal-stamp {
  --flash-speed: 0.85s;
  --flash-delay: -120ms;
}

.flash-box .flash-pane:nth-child(3),
.bottom-flash-grid .flash-pane:nth-child(2) {
  --flash-speed: 1.2s;
  --flash-delay: -420ms;
}

.flash-box .flash-pane:nth-child(4),
.bottom-flash-grid .flash-pane:nth-child(3) {
  --flash-speed: 1.45s;
  --flash-delay: -700ms;
}

.bottom-flash-grid .flash-pane:nth-child(4) {
  --flash-speed: 1.05s;
  --flash-delay: -920ms;
}

@media (max-width: 1280px) {
  .outer-frame {
    grid-template-columns: clamp(170px, 20vw, 220px) minmax(0, 980px);
  }

  .sidebar-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .sidebar-right .box {
    margin-bottom: 0;
  }

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

  .molecule-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .outer-frame {
    grid-template-columns: 1fr;
  }

  .sidebar-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .sidebar-left .box {
    margin-bottom: 0;
  }

  .content-column {
    order: -1;
    min-height: 0;
  }

  .product-grid,
  .science-grid {
    grid-template-columns: 1fr;
  }

  .column-tail {
    flex: 0 0 auto;
  }

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

@media (max-width: 820px) {
  .hero-panel {
    min-height: 720px;
    background:
      linear-gradient(180deg, rgba(18, 2, 2, 0.98) 0 44%, rgba(84, 0, 0, 0.38) 62%, rgba(84, 0, 0, 0.02) 100%),
      url("assets/hero-lab-export-desk.png") right bottom / auto 76% no-repeat,
      #170202;
  }

  .hero-copy {
    max-width: 100%;
    padding-left: clamp(10px, 3vw, 24px);
  }
}

@media (max-width: 560px) {
  .sidebar-left,
  .sidebar-right {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 700px;
    background:
      linear-gradient(180deg, rgba(18, 2, 2, 0.98) 0 52%, rgba(84, 0, 0, 0.3) 70%, rgba(84, 0, 0, 0.02) 100%),
      url("assets/hero-lab-export-desk.png") right bottom / auto 58% no-repeat,
      #170202;
  }

  .product-art {
    width: 100%;
  }

  .mini-image-grid {
    grid-template-columns: 1fr 1fr;
  }

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