.chameleon-page {
  background: #f6f8fb;
}

.chameleon-page .site-header {
  position: sticky;
}

.chameleon-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.88fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 9vw, 118px) clamp(20px, 5vw, 76px);
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(76, 176, 226, 0.24), transparent 28%),
    radial-gradient(circle at 82% 30%, rgba(207, 155, 230, 0.2), transparent 34%),
    linear-gradient(135deg, #050814 0%, #10123a 52%, #05242e 100%);
}

.chameleon-hero-copy {
  max-width: 760px;
}

.chameleon-hero h1,
.chameleon-bottom h2 {
  margin-bottom: 18px;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1;
}

.chameleon-lede {
  max-width: 720px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.18;
}

.chameleon-hero-copy p:not(.eyebrow):not(.chameleon-lede),
.chameleon-bottom p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.chameleon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.sketch-panel {
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(5, 8, 20, 0.4);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.sketch-panel figcaption {
  margin-bottom: 12px;
  color: #6de8f0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sketch-panel svg {
  display: block;
  width: 100%;
  height: auto;
}

.sketch-panel text {
  fill: rgba(255, 255, 255, 0.72);
  font: 700 18px/1 Inter, ui-sans-serif, system-ui, sans-serif;
}

.sketch-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.orbit,
.sketch-line,
.anchor-chain,
.commit-line,
.vertical-pulse {
  fill: none;
  stroke: #6de8f0;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 12;
  animation: sketch-dash 5.5s linear infinite;
}

.orbit-two,
.commit-line {
  stroke: #cf9be6;
}

.flow-line,
.vertical-pulse {
  marker-end: url("#arrow");
}

.delayed {
  animation-delay: -1.6s;
}

.late {
  animation-delay: -3.1s;
}

.graph-nodes circle,
.margin-node {
  fill: #050814;
  stroke: #6de8f0;
  stroke-width: 4;
  animation: node-pulse 2.6s ease-in-out infinite;
}

.graph-nodes circle:nth-child(even),
.margin-node:nth-of-type(even) {
  stroke: #cf9be6;
  animation-delay: -1.1s;
}

.anchor-block {
  fill: rgba(109, 232, 240, 0.08);
  stroke: rgba(109, 232, 240, 0.68);
  stroke-width: 2;
}

.layer-stack rect {
  fill: rgba(255, 255, 255, 0.055);
  stroke: rgba(109, 232, 240, 0.44);
  stroke-width: 2;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.layer-stack rect:nth-child(2) {
  stroke: rgba(207, 155, 230, 0.7);
}

.chameleon-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(7, 21, 29, 0.12);
}

.chameleon-summary article {
  padding: clamp(26px, 4vw, 44px);
  background: #ffffff;
}

.chameleon-summary strong {
  display: block;
  margin-bottom: 10px;
  color: #0c2a36;
  font-size: 22px;
}

.chameleon-summary p {
  margin-bottom: 0;
  color: #52616b;
}

.chameleon-section {
  padding: clamp(56px, 7vw, 88px) clamp(20px, 5vw, 76px);
}

.chameleon-heading {
  max-width: 980px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.chameleon-heading h2 {
  max-width: 900px;
  font-size: clamp(28px, 2.9vw, 40px);
  line-height: 1.08;
}

.chameleon-heading p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 18px;
  color: #44535d;
  font-size: 19px;
}

.architecture-section,
.actors-section {
  background: #f8fafc;
}

.architecture-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: stretch;
}

.architecture-sketch {
  background:
    linear-gradient(180deg, rgba(5, 8, 20, 0.96), rgba(7, 22, 30, 0.96)),
    #050814;
}

.layer-list,
.actor-grid,
.proof-grid,
.flow-steps {
  display: grid;
  gap: 16px;
}

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

.layer-list article,
.actor-grid article,
.proof-grid article,
.flow-steps article {
  min-height: 190px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(7, 21, 29, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(11, 25, 36, 0.06);
}

.layer-list span,
.flow-steps span,
.proof-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 22px;
  padding: 6px 10px;
  color: #0b5360;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 6px;
  background: #e5fbfa;
}

.layer-list p,
.actor-grid p,
.proof-grid p,
.flow-steps p {
  color: #52616b;
}

.event-flow-section {
  color: #ffffff;
  background:
    linear-gradient(135deg, #06101d 0%, #111038 52%, #06252b 100%),
    var(--ink);
}

.event-flow-section .chameleon-heading p:not(.eyebrow),
.event-flow-section .flow-steps p {
  color: rgba(255, 255, 255, 0.7);
}

.event-flow-section .flow-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.event-flow-section .flow-steps article {
  min-height: 230px;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.065);
}

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

.proof-section {
  background: #ffffff;
}

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

.chameleon-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 76px);
  color: #ffffff;
  background:
    linear-gradient(135deg, #050814 0%, #111038 52%, #05242e 100%),
    var(--ink);
}

.chameleon-bottom h2 {
  max-width: 900px;
  font-size: clamp(30px, 3.2vw, 44px);
}

@keyframes sketch-dash {
  to {
    stroke-dashoffset: -96;
  }
}

@keyframes node-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .chameleon-hero,
  .architecture-layout,
  .chameleon-bottom {
    grid-template-columns: 1fr;
  }

  .event-flow-section .flow-steps,
  .proof-grid,
  .actor-grid,
  .chameleon-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .chameleon-hero,
  .chameleon-section,
  .chameleon-bottom {
    padding: 48px 20px;
  }

  .chameleon-hero h1 {
    font-size: clamp(40px, 13vw, 56px);
  }

  .chameleon-heading h2,
  .chameleon-bottom h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .sketch-panel {
    padding: 14px;
  }

  .event-flow-section .flow-steps,
  .proof-grid,
  .actor-grid,
  .layer-list,
  .chameleon-summary {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit,
  .sketch-line,
  .anchor-chain,
  .commit-line,
  .vertical-pulse,
  .graph-nodes circle,
  .margin-node {
    animation: none !important;
  }
}
