:root {
  --bg: #050508;
  --bg-2: #0b0913;
  --panel: rgba(20, 18, 31, 0.82);
  --panel-2: rgba(34, 30, 52, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(154, 140, 255, 0.42);
  --text: #f7f5ff;
  --muted: #a7a1b7;
  --soft: #d6d1e8;
  --purple: #7d5cff;
  --violet: #b936ff;
  --cyan: #28d8ff;
  --blue: #5b74ff;
  --pink: #ff4fd8;
  --green: #47ffd0;
  --warning: #ffb14a;
  --danger: #ff6e91;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 74% -4%, rgba(40, 216, 255, 0.34), transparent 24vw),
    radial-gradient(circle at 18% 18%, rgba(185, 54, 255, 0.22), transparent 28vw),
    radial-gradient(circle at 80% 42%, rgba(91, 116, 255, 0.16), transparent 28vw),
    linear-gradient(180deg, #07070b 0%, #050508 38%, #080714 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(5, 5, 8, 0.4), transparent 35%, rgba(5, 5, 8, 0.28));
}

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

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

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

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink));
  box-shadow: 0 0 18px rgba(40, 216, 255, 0.72);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 6, 10, 0.76);
  backdrop-filter: blur(24px);
}

.brand,
.toc,
.hero-actions,
.hero-stats,
.intro-strip,
.rating-list,
.rule-cards {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-size: 15px;
  font-weight: 820;
  letter-spacing: 0;
}

.logo-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 7px solid #fff;
  border-right-color: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(125, 92, 255, 0.55);
}

.logo-mark i {
  position: absolute;
  right: -3px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  background: var(--pink);
  border-radius: 2px;
}

.toc {
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.toc a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.toc a:hover,
.toc a.active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

main {
  width: min(1320px, calc(100vw - 56px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  min-height: min(820px, calc(100vh - 72px));
  padding: 56px 0 44px;
  align-items: center;
}

.hero::before {
  position: absolute;
  top: 38px;
  right: 0;
  width: min(660px, 54vw);
  height: 118px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(40, 216, 255, 0.8), rgba(125, 92, 255, 0.72), transparent);
  filter: blur(28px);
  opacity: 0.76;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(154, 140, 255, 0.28);
  border-radius: 28px;
  background: #080710;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 48px rgba(91, 116, 255, 0.14);
}

.hero-media img {
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0 48%, rgba(40, 216, 255, 0.28) 50%, transparent 53%),
    linear-gradient(90deg, rgba(185, 54, 255, 0.28), transparent 28%, transparent 72%, rgba(40, 216, 255, 0.18));
  mix-blend-mode: screen;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(42px, 4.7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 860px;
  margin-top: 12px;
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
}

.lead,
.section-copy p,
.section-head p,
.demo-shell p {
  max-width: 820px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.85;
}

.lead {
  margin-top: 26px;
  font-size: 16px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 780;
}

.button.primary {
  color: #07070b;
  background: linear-gradient(135deg, #fff, #cdf8ff 35%, #9f8cff 100%);
  box-shadow: 0 0 34px rgba(40, 216, 255, 0.25);
}

.button.ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-stats div {
  min-width: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.hero-stats dt {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-stats dd {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.intro-strip {
  gap: 14px;
  margin: 0 0 20px;
}

.intro-strip article,
.pain-grid article,
.chain article,
.metric-list article,
.rating-list article,
.rule-cards article {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.intro-strip article {
  flex: 1;
  min-height: 96px;
  padding: 18px;
}

.intro-strip span,
.chain span,
.rating-list b,
.rule-cards b,
.metric-list b,
.pain-grid b {
  display: block;
}

.intro-strip span,
.method-copy span,
.method-side span,
.impact-board b,
figcaption span,
.metric-list span,
.pain-grid span,
.rating-list span,
.rule-cards span,
.chain p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.intro-strip b {
  display: block;
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.45;
}

.section {
  padding: 74px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  align-items: center;
}

.section-copy p,
.section-head p,
.demo-shell p {
  margin-top: 20px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.pain-grid article,
.metric-list article,
.rating-list article,
.rule-cards article {
  padding: 16px;
}

.pain-grid b,
.metric-list b,
.rating-list b,
.rule-cards b {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
}

.framed-shot,
.stacked-shots figure,
.showcase-pair figure,
.asset-grid figure,
.workflow-grid figure,
.comparison figure,
.page-gallery figure {
  overflow: hidden;
  border: 1px solid rgba(154, 140, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    rgba(8, 7, 14, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

.framed-shot img,
.showcase-pair img,
.workflow-grid img,
.comparison img,
.page-gallery img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.framed-shot img,
.asset-grid img,
.workflow-grid img,
.comparison img,
.stacked-shots img,
.validation-shots img {
  padding: 10px;
  background: #050508;
  object-fit: contain;
}

figcaption {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 12px;
  line-height: 1.6;
}

figcaption b {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 14px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
}

.section-head h2 {
  grid-column: 1 / -1;
}

.section-head.compact {
  display: block;
  margin-bottom: 28px;
}

.method-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(360px, 1fr) minmax(220px, 0.54fr);
  gap: 24px;
  align-items: center;
  min-height: 390px;
  margin-bottom: 16px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(125, 92, 255, 0.34), transparent 28%),
    radial-gradient(circle at 18% 60%, rgba(185, 54, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 34%, rgba(40, 216, 255, 0.17), transparent 26%),
    rgba(8, 7, 14, 0.9);
  box-shadow: var(--shadow), inset 0 0 72px rgba(125, 92, 255, 0.1);
}

.method-visual::before,
.method-visual::after {
  position: absolute;
  inset: auto auto 48px -12%;
  width: 72%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
  filter: blur(0.2px);
  opacity: 0.8;
}

.method-visual::after {
  inset: 72px -12% auto auto;
}

.method-copy {
  position: relative;
  z-index: 1;
}

.method-copy span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.method-copy b {
  display: block;
  max-width: 320px;
  margin-top: 12px;
  font-size: clamp(28px, 3.8vw, 54px);
  line-height: 1;
}

.method-copy p {
  max-width: 360px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.orbit {
  position: relative;
  width: min(340px, 70vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 2px solid rgba(125, 92, 255, 0.42);
  border-radius: 50%;
  box-shadow:
    0 0 48px rgba(125, 92, 255, 0.32),
    inset 0 0 52px rgba(40, 216, 255, 0.08);
}

.orbit::before,
.orbit::after {
  position: absolute;
  inset: 13%;
  content: "";
  border: 1px dashed rgba(214, 209, 232, 0.22);
  border-radius: 50%;
}

.orbit::after {
  inset: 30%;
  border-style: solid;
  border-color: rgba(40, 216, 255, 0.28);
  box-shadow: 0 0 42px rgba(40, 216, 255, 0.22);
}

.node,
.core {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 999px;
}

.node {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(197, 187, 255, 0.65);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), rgba(125, 92, 255, 0.36) 45%, rgba(8, 7, 14, 0.86));
  color: var(--text);
  font-size: 12px;
  font-weight: 860;
  box-shadow: 0 0 32px rgba(125, 92, 255, 0.32);
}

.node-a { left: -10px; top: calc(50% - 41px); }
.node-b { left: calc(50% - 41px); top: -10px; }
.node-c { right: -10px; top: calc(50% - 41px); }
.node-d { left: calc(50% - 41px); bottom: -10px; }

.core {
  inset: calc(50% - 68px);
  border: 1px solid rgba(40, 216, 255, 0.42);
  background: linear-gradient(135deg, rgba(91, 116, 255, 0.34), rgba(185, 54, 255, 0.24), rgba(40, 216, 255, 0.2));
  color: var(--text);
  font-size: 15px;
  font-weight: 880;
  line-height: 1.35;
  box-shadow: 0 0 54px rgba(40, 216, 255, 0.18);
}

.method-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.method-side div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.method-side span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.method-side b {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

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

.chain article {
  position: relative;
  min-height: 188px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(125, 92, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.chain span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.chain b {
  display: block;
  margin-top: 34px;
  font-size: 18px;
  line-height: 1.2;
}

.chain p {
  margin-top: 14px;
}

.dark-panel {
  position: relative;
  overflow: hidden;
  margin: 48px 0;
  padding: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 0%, rgba(40, 216, 255, 0.24), transparent 36%),
    radial-gradient(circle at 8% 100%, rgba(185, 54, 255, 0.22), transparent 34%),
    rgba(12, 10, 20, 0.86);
  box-shadow: var(--shadow);
}

.showcase-pair,
.comparison {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
}

.asset-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.95fr;
  gap: 16px;
}

.asset-grid img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.asset-grid figure:nth-child(1) img,
.asset-grid figure:nth-child(2) img {
  object-position: left top;
}

.metric-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.stacked-shots {
  display: grid;
  gap: 16px;
}

.stacked-shots img {
  aspect-ratio: 16 / 8.4;
  object-fit: contain;
  object-position: left top;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 16px;
}

.workflow-grid .wide img {
  aspect-ratio: 16 / 9;
}

.workflow-grid figure:not(.wide) img {
  aspect-ratio: 16 / 9;
}

.rule-cards,
.rating-list {
  gap: 12px;
  margin-top: 18px;
  align-items: stretch;
}

.rule-cards article,
.rating-list article {
  flex: 1;
}

.comparison figure:nth-child(1) img,
.comparison figure:nth-child(2) img {
  object-position: left top;
  object-fit: contain;
}

.page-gallery {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
}

.page-gallery figure:first-child {
  grid-row: span 2;
}

.page-gallery figure:first-child img {
  aspect-ratio: 10 / 12;
}

.page-gallery figure:nth-child(2) img,
.page-gallery figure:nth-child(3) img {
  object-position: left top;
}

.impact {
  padding-top: 72px;
}

.impact-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.impact-board article {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 104%, rgba(40, 216, 255, 0.3), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.impact-board article::before {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 28px;
  height: 82px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid rgba(40, 216, 255, 0.78);
  border-radius: 999px 999px 0 0;
  opacity: 0.44;
  filter: drop-shadow(0 0 18px rgba(40, 216, 255, 0.35));
}

.impact-board article:nth-child(2)::before {
  border-top-color: rgba(185, 54, 255, 0.86);
  filter: drop-shadow(0 0 18px rgba(185, 54, 255, 0.35));
}

.impact-board article:nth-child(3)::before {
  border-top-color: rgba(71, 255, 208, 0.8);
}

.impact-board article:nth-child(4)::before {
  border-top-color: rgba(255, 79, 216, 0.78);
}

.impact-board span {
  display: block;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 920;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  color: transparent;
}

.impact-board b {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-size: 18px;
}

.impact-board p {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.validation-shots img {
  aspect-ratio: 16 / 8.2;
}

.validation-shots figure:first-child img {
  object-position: left top;
}

.final-demo {
  padding-bottom: 128px;
}

.demo-shell {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(125, 92, 255, 0.18), rgba(40, 216, 255, 0.1), rgba(255, 79, 216, 0.13)),
    rgba(12, 10, 20, 0.82);
  box-shadow: var(--shadow), 0 0 80px rgba(125, 92, 255, 0.18);
}

.demo-shell h2 {
  max-width: 980px;
}

.demo-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(0, 0, 0, 0.24);
  background-size: 34px 34px;
}

.demo-placeholder span {
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-placeholder b {
  display: block;
  margin-top: 18px;
  font-size: clamp(30px, 4.2vw, 64px);
}

@media (max-width: 1180px) {
  .hero,
  .split,
  .section-head,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img {
    min-height: 480px;
  }

  .chain,
  .asset-grid,
  .page-gallery,
  .impact-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-visual {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  main {
    width: min(100% - 28px, 1480px);
  }

  .topbar {
    align-items: flex-start;
    min-height: auto;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }

  .toc {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-media {
    order: 2;
  }

  .hero,
  .section {
    gap: 24px;
  }

  .hero-media,
  .hero-media img {
    min-height: 300px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 70px);
  }

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

  .lead,
  .section-copy p,
  .section-head p,
  .demo-shell p {
    font-size: 15px;
  }

  .intro-strip,
  .showcase-pair,
  .comparison,
  .pain-grid,
  .chain,
  .asset-grid,
  .page-gallery,
  .impact-board,
  .rule-cards,
  .rating-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .method-visual {
    min-height: auto;
    padding: 22px;
  }

  .orbit {
    width: min(330px, 76vw);
  }

  .node {
    width: 78px;
    height: 78px;
  }

  .node-a { left: -8px; top: calc(50% - 39px); }
  .node-b { left: calc(50% - 39px); top: -8px; }
  .node-c { right: -8px; top: calc(50% - 39px); }
  .node-d { left: calc(50% - 39px); bottom: -8px; }

  .core {
    inset: calc(50% - 66px);
    font-size: 14px;
  }

  .dark-panel,
  .demo-shell {
    padding: 24px;
    border-radius: 24px;
  }

  .section {
    padding: 62px 0;
  }

  .chain article {
    min-height: auto;
  }

  .chain b {
    margin-top: 28px;
  }
}

/* Browser annotation pass */
.hero {
  grid-template-columns: minmax(520px, 0.95fr) minmax(360px, 1.05fr);
  gap: 42px;
}

.hero h1 {
  max-width: 760px;
  font-family: Arial, sans-serif;
  font-size: clamp(42px, 4.05vw, 64px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hero h1 span {
  white-space: nowrap;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 500px;
  padding: 0;
}

.hero-visual::before {
  display: none;
}

.hero-visual::after {
  width: min(540px, 40vw);
  aspect-ratio: 1.25;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(40, 216, 255, 0.28), transparent 28%),
    radial-gradient(circle at 52% 58%, rgba(255, 79, 216, 0.16), transparent 32%),
    radial-gradient(circle at 42% 38%, rgba(125, 92, 255, 0.24), transparent 38%);
  filter: blur(42px);
}

.visual-backplate,
.hero-node-card {
  display: none;
}

.energy-core {
  grid-row: auto;
  width: min(460px, 34vw);
  min-width: 320px;
}

.method-visual {
  grid-template-columns: minmax(220px, 0.62fr) minmax(360px, 1.15fr) minmax(260px, 0.72fr);
  align-items: center;
  min-height: 420px;
}

.method-copy {
  opacity: 0.84;
}

.method-copy b {
  max-width: 280px;
}

.orbit {
  width: min(390px, 32vw);
  border-color: rgba(125, 92, 255, 0.64);
  box-shadow:
    0 0 70px rgba(125, 92, 255, 0.42),
    inset 0 0 70px rgba(40, 216, 255, 0.12);
}

.orbit::before {
  inset: 18%;
  border-color: rgba(40, 216, 255, 0.24);
}

.orbit::after {
  inset: 36%;
  border-color: rgba(40, 216, 255, 0.46);
}

.core {
  inset: calc(50% - 82px);
  border-color: rgba(40, 216, 255, 0.64);
  font-size: 18px;
}

.node {
  width: 88px;
  height: 88px;
}

.node-a { left: -18px; top: calc(50% - 44px); }
.node-b { left: calc(50% - 44px); top: -18px; }
.node-c { right: -18px; top: calc(50% - 44px); }
.node-d { left: calc(50% - 44px); bottom: -18px; }

.method-side div {
  min-height: 86px;
}

.method-side div::before {
  width: clamp(44px, 4vw, 70px);
  border-top-color: rgba(40, 216, 255, 0.5);
}

.theme-section {
  position: relative;
}

.theme-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.theme-pair figure {
  overflow: hidden;
  border: 1px solid rgba(154, 140, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    rgba(8, 7, 14, 0.82);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
}

.theme-pair img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(125, 92, 255, 0.08), rgba(40, 216, 255, 0.04)),
    #050508;
}

.page-gallery {
  grid-template-columns: 1.08fr 0.92fr;
}

.page-gallery-main {
  grid-row: span 3;
}

.page-gallery-main img {
  aspect-ratio: 16 / 12.2;
}

.impact-board i {
  display: none;
}

.validation-panel {
  display: block;
}

.validation-panel .section-copy {
  max-width: 860px;
}

.validation-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  margin-top: 28px;
}

.validation-flow::before {
  position: absolute;
  top: 50%;
  left: calc(46% - 24px);
  width: 48px;
  height: 1px;
  content: "";
  border-top: 1px dashed rgba(40, 216, 255, 0.5);
}

.validation-flow::after {
  position: absolute;
  top: calc(50% - 12px);
  left: calc(46% + 20px);
  content: "→";
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
}

.validation-flow .rating-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.validation-flow .rating-list article {
  min-height: 86px;
}

.validation-summary {
  gap: 12px;
}

.validation-summary article {
  min-height: 106px;
}

@media (max-width: 1180px) {
  .hero,
  .method-visual,
  .validation-flow {
    grid-template-columns: 1fr;
  }

  .hero h1 span {
    white-space: normal;
  }

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

  .energy-core {
    width: min(380px, 68vw);
  }

  .orbit {
    width: min(360px, 72vw);
  }

  .validation-flow::before,
  .validation-flow::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .theme-pair,
  .page-gallery {
    grid-template-columns: 1fr;
  }

  .page-gallery-main {
    grid-row: auto;
  }
}

/* Latest visual balance pass */
.hero {
  grid-template-columns: minmax(500px, 0.82fr) minmax(560px, 1.18fr);
  gap: 8px;
}

.hero-copy {
  max-width: 660px;
}

.hero-visual {
  min-height: 600px;
  justify-items: end;
  transform: translate3d(calc(var(--mx) * 0.008 + 88px), calc(var(--my) * 0.008), 0);
}

.hero-visual::after {
  width: min(780px, 54vw);
  transform: translateX(72px);
}

.energy-core {
  width: min(720px, 52vw);
  min-width: 500px;
  transform: translate3d(calc(var(--mx) * -0.012 + 92px), calc(var(--my) * -0.012), 0);
}

.method-visual {
  grid-template-columns: minmax(220px, 0.55fr) minmax(460px, 1.3fr) minmax(300px, 0.72fr);
  min-height: 500px;
}

.orbit {
  width: min(500px, 38vw);
}

.core {
  inset: calc(50% - 104px);
  font-size: 22px;
}

.node {
  width: 104px;
  height: 104px;
  font-size: 13px;
}

.node-a { left: -28px; top: calc(50% - 52px); }
.node-b { left: calc(50% - 52px); top: -28px; }
.node-c { right: -28px; top: calc(50% - 52px); }
.node-d { left: calc(50% - 52px); bottom: -28px; }

.method-side div {
  border-color: rgba(185, 54, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(125, 92, 255, 0.18), rgba(185, 54, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 34px rgba(125, 92, 255, 0.08);
}

.method-side div::before {
  border-top-color: rgba(185, 54, 255, 0.58);
}

.method-side div:hover {
  border-color: rgba(185, 54, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(125, 92, 255, 0.24), rgba(185, 54, 255, 0.13)),
    rgba(255, 255, 255, 0.045);
}

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

.page-gallery-main {
  grid-row: auto;
}

.page-gallery-main img,
.page-gallery figure:first-child img,
.page-gallery figure:not(.page-gallery-main) img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 10px;
}

.page-gallery figcaption {
  min-height: 58px;
}

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

  .hero-visual {
    justify-items: center;
    transform: translate3d(calc(var(--mx) * 0.008), calc(var(--my) * 0.008), 0);
  }

  .energy-core {
    width: min(520px, 72vw);
    min-width: 280px;
    transform: translate3d(calc(var(--mx) * -0.012), calc(var(--my) * -0.012), 0);
  }

  .method-visual {
    grid-template-columns: 1fr;
  }

  .orbit {
    width: min(430px, 74vw);
  }
}

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

/* Final final polish: keep these at EOF. */
.brand {
  gap: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.method-visual {
  grid-template-columns: minmax(240px, 0.62fr) minmax(360px, 0.82fr) minmax(320px, 0.86fr);
  min-height: 480px;
}

.orbit {
  width: min(416px, 32vw);
}

.core {
  inset: calc(50% - 86px);
  font-size: 18px;
}

.node {
  width: 86px;
  height: 86px;
  font-size: 12px;
}

.node-a { left: -24px; top: calc(50% - 43px); }
.node-b { left: calc(50% - 43px); top: -24px; }
.node-c { right: -24px; top: calc(50% - 43px); }
.node-d { left: calc(50% - 43px); bottom: -24px; }

.mechanism-board {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mechanism-board article {
  min-height: 228px;
}

main img {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    radial-gradient(circle at 70% 20%, rgba(104, 88, 255, 0.22), transparent 36%),
    rgba(3, 3, 8, 0.88);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  max-width: min(92vw, 1440px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(157, 139, 255, 0.34);
  border-radius: 18px;
  background: rgba(4, 5, 12, 0.94);
  box-shadow: 0 28px 96px rgba(0, 0, 0, 0.68), 0 0 80px rgba(71, 98, 255, 0.18);
  cursor: zoom-out;
}

.image-lightbox p {
  max-width: min(92vw, 900px);
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .method-visual {
    grid-template-columns: 1fr;
  }

  .orbit {
    width: min(340px, 68vw);
  }

  .mechanism-board {
    grid-template-columns: 1fr;
  }

  .mechanism-board article {
    min-height: 0;
  }
}

/* Definitive hero motion override: keep at EOF. */
.hero-visual {
  perspective: 1200px;
}

.energy-core {
  translate: 0 0;
  scale: 1;
  transform-origin: center;
  animation: energyCoreFloat 7.2s ease-in-out infinite;
  transition: scale 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
  will-change: transform, translate, scale, filter;
}

.hero-visual::after {
  animation: energyHaloBreath 7.2s ease-in-out infinite;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-visual:hover .energy-core {
  scale: 1.045;
  filter: saturate(1.22) brightness(1.08) drop-shadow(0 0 34px rgba(72, 223, 255, 0.2));
}

.hero-visual:hover::after {
  opacity: 0.86;
  transform: translateX(96px) scale(1.035);
}

@keyframes energyCoreFloat {
  0%,
  100% {
    translate: 0 0;
  }

  45% {
    translate: 0 -14px;
  }

  70% {
    translate: 6px -7px;
  }
}

@keyframes energyHaloBreath {
  0%,
  100% {
    opacity: 0.58;
  }

  50% {
    opacity: 0.78;
  }
}

@media (prefers-reduced-motion: reduce) {
  .energy-core,
  .hero-visual::after {
    animation: none;
  }
}

/* Comment polish overrides: keep at EOF. */
.brand {
  gap: 16px;
}

.brand span {
  font-size: 17px;
  white-space: nowrap;
}

#context .framed-shot {
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

#context .framed-shot figcaption {
  min-height: 98px;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  font-size: 13px;
  line-height: 1.8;
}

#reframe .method-visual {
  grid-template-columns: minmax(230px, 0.6fr) minmax(340px, 0.74fr) minmax(270px, 0.66fr);
  column-gap: 44px;
}

#reframe .method-side {
  width: min(100%, 330px);
  justify-self: end;
}

#reframe .method-side div {
  min-height: 92px;
  padding: 18px 20px;
}

#reframe .method-side div::before {
  width: 58px;
  left: -58px;
}

@media (max-width: 1180px) {
  #reframe .method-visual {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  #reframe .method-side {
    width: 100%;
    justify-self: stretch;
  }

  #reframe .method-side div::before {
    display: none;
  }
}

/* Final coding demo section: definitive overrides. */
.final-demo {
  padding-top: 110px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.final-demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 34px;
}

.final-demo-hero figure,
.final-demo-gallery figure {
  margin: 0;
  border: 1px solid rgba(132, 122, 255, 0.24);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(23, 28, 46, 0.72), rgba(9, 10, 18, 0.94));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.final-demo-hero figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 520px;
}

.final-demo-hero img,
.final-demo-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080911;
}

.final-demo-hero img {
  aspect-ratio: 16 / 9;
  border-radius: 21px 21px 0 0;
}

.final-demo-hero figcaption,
.final-demo-gallery figcaption {
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.final-demo-hero figcaption b,
.final-demo-gallery figcaption b {
  color: var(--text);
  font-size: 16px;
}

.final-demo-hero figcaption span,
.final-demo-gallery figcaption span {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
}

.final-demo-notes {
  display: grid;
  gap: 14px;
}

.final-demo-notes article {
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(132, 122, 255, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 75% 10%, rgba(76, 225, 255, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.045);
}

.final-demo-notes span {
  display: block;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.final-demo-notes b {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
}

.final-demo-notes p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.75;
}

.final-demo-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: 18px;
}

.final-demo-gallery figure {
  display: grid;
  grid-column: span 2;
  grid-template-rows: 260px 1fr;
  min-height: 0;
}

.final-demo-gallery figure:nth-child(1),
.final-demo-gallery figure:nth-child(2) {
  grid-column: span 3;
  grid-template-rows: 330px 1fr;
}

.final-demo-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background:
    radial-gradient(circle at 68% 20%, rgba(76, 225, 255, 0.08), transparent 34%),
    rgba(4, 6, 16, 0.78);
  border-radius: 21px 21px 0 0;
}

.final-demo-gallery figcaption {
  min-height: 128px;
}

@media (max-width: 1180px) {
  .final-demo-hero,
  .final-demo-gallery {
    grid-template-columns: 1fr;
  }

  .final-demo-gallery figure:nth-child(1),
  .final-demo-gallery figure:nth-child(2),
  .final-demo-gallery figure:nth-child(4) {
    grid-column: auto;
  }

  .final-demo-gallery figure,
  .final-demo-gallery figure:nth-child(1),
  .final-demo-gallery figure:nth-child(2),
  .final-demo-gallery figure:nth-child(4) {
    grid-template-rows: auto auto;
  }

  .final-demo-gallery img {
    height: auto;
    aspect-ratio: auto;
  }
}

/* Final demo thumbnails: keep the screenshots uncropped and in their native ratio. */
.final-demo-gallery {
  align-items: start;
}

.final-demo-gallery figure,
.final-demo-gallery figure:nth-child(1),
.final-demo-gallery figure:nth-child(4) {
  grid-column: auto;
  grid-template-rows: auto auto;
}

.final-demo-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 21px 21px 0 0;
}

/* Final demo gallery composition: 2 equal cards on top, 3 equal cards below. */
.final-demo-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}

.final-demo-gallery figure,
.final-demo-gallery figure:nth-child(1),
.final-demo-gallery figure:nth-child(4) {
  display: grid;
  grid-column: span 2;
  grid-template-rows: 260px 1fr;
  min-height: 0;
}

.final-demo-gallery figure:nth-child(1),
.final-demo-gallery figure:nth-child(2) {
  grid-column: span 3;
  grid-template-rows: 330px 1fr;
}

.final-demo-gallery figure img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background:
    radial-gradient(circle at 68% 20%, rgba(76, 225, 255, 0.08), transparent 34%),
    rgba(4, 6, 16, 0.78);
}

.final-demo-gallery figcaption {
  min-height: 128px;
}

@media (max-width: 1180px) {
  .final-demo-gallery {
    grid-template-columns: 1fr;
  }

  .final-demo-gallery figure,
  .final-demo-gallery figure:nth-child(1),
  .final-demo-gallery figure:nth-child(2),
  .final-demo-gallery figure:nth-child(4) {
    grid-column: auto;
    grid-template-rows: auto auto;
  }

  .final-demo-gallery figure img {
    height: auto;
  }
}

/* Final coding demo section. */
.final-demo {
  padding-top: 110px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.final-demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 34px;
}

.final-demo-hero figure,
.final-demo-gallery figure {
  margin: 0;
  border: 1px solid rgba(132, 122, 255, 0.24);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(23, 28, 46, 0.72), rgba(9, 10, 18, 0.94));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.final-demo-hero figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 520px;
}

.final-demo-hero img,
.final-demo-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080911;
}

.final-demo-hero img {
  aspect-ratio: 16 / 9;
  border-radius: 21px 21px 0 0;
}

.final-demo-hero figcaption,
.final-demo-gallery figcaption {
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.final-demo-hero figcaption b,
.final-demo-gallery figcaption b {
  color: var(--text);
  font-size: 16px;
}

.final-demo-hero figcaption span,
.final-demo-gallery figcaption span {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
}

.final-demo-notes {
  display: grid;
  gap: 14px;
}

.final-demo-notes article {
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(132, 122, 255, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 75% 10%, rgba(76, 225, 255, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.045);
}

.final-demo-notes span {
  display: block;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.final-demo-notes b {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
}

.final-demo-notes p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.75;
}

.final-demo-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: 18px;
}

.final-demo-gallery figure {
  display: grid;
  grid-column: span 2;
  grid-template-rows: 260px 1fr;
  min-height: 0;
}

.final-demo-gallery figure:nth-child(1),
.final-demo-gallery figure:nth-child(2) {
  grid-column: span 3;
  grid-template-rows: 330px 1fr;
}

.final-demo-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background:
    radial-gradient(circle at 68% 20%, rgba(76, 225, 255, 0.08), transparent 34%),
    rgba(4, 6, 16, 0.78);
  border-radius: 21px 21px 0 0;
}

.final-demo-gallery figcaption {
  min-height: 128px;
}

@media (max-width: 1180px) {
  .final-demo-hero,
  .final-demo-gallery {
    grid-template-columns: 1fr;
  }

  .final-demo-gallery figure:nth-child(1),
  .final-demo-gallery figure:nth-child(2),
  .final-demo-gallery figure:nth-child(4) {
    grid-column: auto;
  }

  .final-demo-gallery figure,
  .final-demo-gallery figure:nth-child(1),
  .final-demo-gallery figure:nth-child(2),
  .final-demo-gallery figure:nth-child(4) {
    grid-template-rows: auto auto;
  }

  .final-demo-gallery img {
    height: auto;
    aspect-ratio: auto;
  }
}

/* React Bits inspired MagicBento card treatment. */
.magic-card {
  --glow-x: 50%;
  --glow-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --magnet-x: 0px;
  --magnet-y: 0px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform:
    translate3d(var(--magnet-x), var(--magnet-y), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition:
    transform 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease,
    background-color 0.26s ease;
  will-change: transform;
}

.magic-card > * {
  position: relative;
  z-index: 1;
}

.magic-spotlight,
.magic-border {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.26s ease;
}

.magic-spotlight {
  z-index: 0;
  background:
    radial-gradient(
      280px circle at var(--glow-x) var(--glow-y),
      rgba(77, 229, 255, 0.18),
      rgba(122, 92, 255, 0.1) 34%,
      transparent 68%
    );
  mix-blend-mode: screen;
}

.magic-border {
  z-index: 2;
  padding: 1px;
  background:
    radial-gradient(
      220px circle at var(--glow-x) var(--glow-y),
      rgba(77, 229, 255, 0.92),
      rgba(170, 88, 255, 0.48) 34%,
      transparent 70%
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.magic-card.is-magic-hovered {
  border-color: rgba(119, 209, 255, 0.44);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(93, 102, 255, 0.12);
}

.magic-card.is-magic-hovered .magic-spotlight,
.magic-card.is-magic-hovered .magic-border {
  opacity: 1;
}

.magic-spark,
.magic-ripple {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.magic-spark {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(89, 232, 255, 0.95);
  box-shadow: 0 0 10px rgba(89, 232, 255, 0.7), 0 0 18px rgba(160, 88, 255, 0.36);
  animation: magicSpark 1.35s ease-out forwards;
}

.magic-ripple {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(112, 226, 255, 0.7);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(112, 226, 255, 0.16);
  animation: magicRipple 0.72s ease-out forwards;
}

@keyframes magicSpark {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.2);
  }

  22% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--spark-x), var(--spark-y), 0) scale(1.15);
  }
}

@keyframes magicRipple {
  0% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(0.2);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(12);
  }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .magic-card {
    transform: none;
  }

  .magic-spotlight,
  .magic-border,
  .magic-spark,
  .magic-ripple {
    display: none;
  }
}

/* Comment polish overrides. */
.brand {
  gap: 16px;
}

.brand span {
  font-size: 17px;
  white-space: nowrap;
}

#context .framed-shot {
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

#context .framed-shot figcaption {
  min-height: 98px;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  font-size: 13px;
  line-height: 1.8;
}

#reframe .method-visual {
  grid-template-columns: minmax(230px, 0.6fr) minmax(340px, 0.74fr) minmax(270px, 0.66fr);
  column-gap: 44px;
}

#reframe .method-side {
  width: min(100%, 330px);
  justify-self: end;
}

#reframe .method-side div {
  min-height: 92px;
  padding: 18px 20px;
}

#reframe .method-side div::before {
  width: 58px;
  left: -58px;
}

@media (max-width: 1180px) {
  #reframe .method-visual {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  #reframe .method-side {
    width: 100%;
    justify-self: stretch;
  }

  #reframe .method-side div::before {
    display: none;
  }
}

/* Brand wordmark correction. */
.brand {
  gap: 10px;
}

.brand-logo {
  height: 31px;
}

.brand span {
  display: inline-block;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

/* Hero visual motion: subtle loop by default, brighter and closer on hover. */
.hero-visual {
  perspective: 1200px;
}

.energy-core {
  translate: 0 0;
  scale: 1;
  transform-origin: center;
  animation: energyCoreFloat 7.2s ease-in-out infinite;
  transition: scale 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
  will-change: transform, translate, scale, filter;
}

.hero-visual::after {
  animation: energyHaloBreath 7.2s ease-in-out infinite;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-visual:hover .energy-core {
  scale: 1.045;
  filter: saturate(1.22) brightness(1.08) drop-shadow(0 0 34px rgba(72, 223, 255, 0.2));
}

.hero-visual:hover::after {
  opacity: 0.86;
  transform: translateX(96px) scale(1.035);
}

@keyframes energyCoreFloat {
  0%,
  100% {
    translate: 0 0;
  }

  45% {
    translate: 0 -14px;
  }

  70% {
    translate: 6px -7px;
  }
}

@keyframes energyHaloBreath {
  0%,
  100% {
    opacity: 0.58;
  }

  50% {
    opacity: 0.78;
  }
}

@media (prefers-reduced-motion: reduce) {
  .energy-core,
  .hero-visual::after {
    animation: none;
  }
}

/* Final polish: brand asset, tighter operating model, one-line mechanism, image preview. */
.brand {
  gap: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.method-visual {
  grid-template-columns: minmax(240px, 0.62fr) minmax(360px, 0.82fr) minmax(320px, 0.86fr);
  min-height: 480px;
}

.orbit {
  width: min(416px, 32vw);
}

.core {
  inset: calc(50% - 86px);
  font-size: 18px;
}

.node {
  width: 86px;
  height: 86px;
  font-size: 12px;
}

.node-a { left: -24px; top: calc(50% - 43px); }
.node-b { left: calc(50% - 43px); top: -24px; }
.node-c { right: -24px; top: calc(50% - 43px); }
.node-d { left: calc(50% - 43px); bottom: -24px; }

.mechanism-board {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mechanism-board article {
  min-height: 228px;
}

main img {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    radial-gradient(circle at 70% 20%, rgba(104, 88, 255, 0.22), transparent 36%),
    rgba(3, 3, 8, 0.88);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  max-width: min(92vw, 1440px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(157, 139, 255, 0.34);
  border-radius: 18px;
  background: rgba(4, 5, 12, 0.94);
  box-shadow: 0 28px 96px rgba(0, 0, 0, 0.68), 0 0 80px rgba(71, 98, 255, 0.18);
  cursor: zoom-out;
}

.image-lightbox p {
  max-width: min(92vw, 900px);
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .method-visual {
    grid-template-columns: 1fr;
  }

  .orbit {
    width: min(340px, 68vw);
  }

  .mechanism-board {
    grid-template-columns: 1fr;
  }

  .mechanism-board article {
    min-height: 0;
  }
}

/* Final relevance/layout correction based on review notes. */
.hero {
  grid-template-columns: minmax(520px, 0.88fr) minmax(520px, 1.12fr);
  gap: 12px;
  min-height: min(780px, calc(100vh - 64px));
}

.hero-visual {
  min-height: 610px;
  justify-items: end;
  overflow: visible;
  transform: translate3d(calc(var(--mx) * 0.006 + 240px), calc(var(--my) * 0.006), 0);
}

.hero-visual::after {
  width: min(960px, 62vw);
  transform: translateX(128px);
}

.energy-core {
  width: min(960px, 62vw);
  min-width: 680px;
  animation: none !important;
  transform: translate3d(calc(var(--mx) * -0.01 + 210px), calc(var(--my) * -0.01), 0) scale(1.5) !important;
  transform-origin: center;
}

.snapshot-section {
  padding-top: 30px;
}

.method-visual {
  overflow: hidden;
  grid-template-columns: minmax(240px, 0.62fr) minmax(360px, 0.88fr) minmax(320px, 0.86fr);
}

.orbit {
  width: min(360px, 28vw);
}

.core {
  inset: calc(50% - 74px);
  font-size: 17px;
}

.node {
  width: 76px;
  height: 76px;
  font-size: 11px;
}

.node-a { left: -6px; top: calc(50% - 38px); }
.node-b { left: calc(50% - 38px); top: -6px; }
.node-c { right: -6px; top: calc(50% - 38px); }
.node-d { left: calc(50% - 38px); bottom: -6px; }

.impact-board article {
  min-height: 196px;
}

.impact-board span {
  font-size: clamp(30px, 3.1vw, 48px);
}

.impact-board b {
  font-size: 17px;
}

@media (max-width: 1180px) {
  .hero,
  .method-visual {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-items: center;
    min-height: 380px;
    transform: translate3d(calc(var(--mx) * 0.006), calc(var(--my) * 0.006), 0);
  }

  .hero-visual::after {
    width: min(560px, 76vw);
    transform: none;
  }

  .energy-core {
    width: min(560px, 76vw);
    min-width: 300px;
    transform: translate3d(calc(var(--mx) * -0.01), calc(var(--my) * -0.01), 0);
  }

  .orbit {
    width: min(360px, 74vw);
  }
}

/* Latest layout correction: rebalance hero, calm orbit scale, and replace small rubric screenshot with text. */
html,
body {
  overflow-x: hidden;
}

.hero {
  grid-template-columns: minmax(520px, 0.96fr) minmax(520px, 1.04fr);
  gap: 44px;
}

.hero-visual {
  min-height: 560px;
  justify-items: end;
  transform: translate3d(calc(var(--mx) * 0.006 + 18px), calc(var(--my) * 0.006), 0);
}

.hero-visual::after {
  width: min(660px, 42vw);
  transform: translateX(18px);
}

.energy-core {
  width: min(660px, 42vw);
  min-width: 460px;
  transform: translate3d(calc(var(--mx) * -0.01 + 20px), calc(var(--my) * -0.01), 0);
}

.method-visual {
  grid-template-columns: minmax(230px, 0.62fr) minmax(420px, 1fr) minmax(320px, 0.82fr);
}

.orbit {
  width: min(430px, 34vw);
}

.core {
  inset: calc(50% - 88px);
  font-size: 19px;
}

.node {
  width: 92px;
  height: 92px;
  font-size: 12px;
}

.node-a { left: -22px; top: calc(50% - 46px); }
.node-b { left: calc(50% - 46px); top: -22px; }
.node-c { right: -22px; top: calc(50% - 46px); }
.node-d { left: calc(50% - 46px); bottom: -22px; }

.evidence-section .section-head {
  max-width: none;
}

.evidence-section .section-head h2 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(32px, 3.7vw, 50px);
}

.validation-evidence {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: stretch;
}

.rubric-text-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.rubric-text-card > figcaption {
  border-bottom: 1px solid var(--line);
  border-top: 0;
}

.rubric-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.rubric-list article {
  padding: 16px;
  border: 1px solid rgba(154, 140, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(125, 92, 255, 0.12), rgba(40, 216, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
}

.rubric-list span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rubric-list p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

@media (max-width: 1180px) {
  .hero,
  .method-visual,
  .validation-evidence {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-items: center;
    min-height: 380px;
    transform: translate3d(calc(var(--mx) * 0.006), calc(var(--my) * 0.006), 0);
  }

  .hero-visual::after {
    width: min(520px, 72vw);
    transform: none;
  }

  .energy-core {
    width: min(520px, 72vw);
    min-width: 280px;
    transform: translate3d(calc(var(--mx) * -0.01), calc(var(--my) * -0.01), 0);
  }

  .orbit {
    width: min(400px, 72vw);
  }

  .evidence-section .section-head h2 {
    white-space: normal;
  }
}

/* Portfolio evidence pass: add structure for DesignOps proof, not just mood. */
section[id] {
  scroll-margin-top: 96px;
}

.snapshot-section {
  padding-top: 48px;
}

.snapshot-board,
.bia-matrix,
.takeaway-grid {
  display: grid;
  gap: 14px;
}

.snapshot-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.snapshot-board article,
.bia-matrix article,
.takeaway-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(154, 140, 255, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(125, 92, 255, 0.12), rgba(40, 216, 255, 0.035) 54%, rgba(255, 255, 255, 0.026)),
    rgba(10, 9, 16, 0.78);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.snapshot-board article {
  min-height: 218px;
  padding: 22px;
}

.snapshot-board article::before,
.bia-matrix article::before,
.takeaway-grid article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(61, 244, 203, 0.9), rgba(125, 92, 255, 0.72), transparent);
  opacity: 0.78;
}

.snapshot-board span,
.bia-matrix span,
.takeaway-grid span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.snapshot-board b,
.bia-matrix b,
.takeaway-grid b {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.snapshot-board p,
.takeaway-grid p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.evidence-section {
  padding-top: 60px;
}

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

.bia-matrix article {
  min-height: 300px;
  padding: 24px;
}

.bia-matrix ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.bia-matrix li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.bia-matrix li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(40, 216, 255, 0.72);
}

.validation-panel {
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
}

.validation-panel .section-copy p {
  max-width: 66ch;
}

.validation-evidence {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 16px;
  margin-top: 28px;
}

.validation-evidence figure {
  overflow: hidden;
  border: 1px solid rgba(154, 140, 255, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(125, 92, 255, 0.1), rgba(40, 216, 255, 0.035)),
    rgba(7, 7, 12, 0.86);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.36);
}

.validation-evidence img {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: contain;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    #050508;
}

.takeaway-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.takeaway-grid article {
  min-height: 176px;
  padding: 22px;
}

.demo-shell .takeaway-grid p {
  max-width: none;
}

.demo-placeholder {
  display: none;
}

@media (max-width: 1180px) {
  .snapshot-board,
  .bia-matrix,
  .validation-evidence,
  .takeaway-grid {
    grid-template-columns: 1fr 1fr;
  }

  .validation-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .snapshot-board,
  .bia-matrix,
  .validation-evidence,
  .takeaway-grid {
    grid-template-columns: 1fr;
  }

  section[id] {
    scroll-margin-top: 82px;
  }
}

/* P1 proof modules: mechanism, engineering chain, and page-level validation notes. */
.mechanism-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.mechanism-board::before {
  position: absolute;
  top: 46px;
  right: 8%;
  left: 8%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(40, 216, 255, 0.7), rgba(185, 54, 255, 0.58), transparent);
  opacity: 0.62;
}

.mechanism-board article,
.delivery-pipeline article,
.compare-rules article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(154, 140, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(125, 92, 255, 0.12), rgba(40, 216, 255, 0.035) 58%, rgba(255, 255, 255, 0.025)),
    rgba(9, 8, 15, 0.82);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
}

.mechanism-board article {
  min-height: 210px;
  padding: 20px;
}

.mechanism-board article::before {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 18px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(40, 216, 255, 0.72);
}

.mechanism-board span,
.delivery-pipeline span,
.compare-rules span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mechanism-board b,
.delivery-pipeline b,
.compare-rules b {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.mechanism-board p,
.delivery-pipeline p,
.compare-rules p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.72;
}

.delivery-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.delivery-pipeline article {
  min-height: 148px;
  padding: 18px;
}

.delivery-pipeline article::after {
  position: absolute;
  top: 28px;
  right: -10px;
  width: 30px;
  height: 1px;
  content: "";
  border-top: 1px dashed rgba(40, 216, 255, 0.55);
}

.delivery-pipeline article:last-child::after {
  display: none;
}

.compare-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.compare-rules article {
  min-height: 142px;
  padding: 18px;
}

.page-gallery figcaption {
  height: auto;
  min-height: 86px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.page-gallery figcaption b {
  color: var(--text);
  font-size: 13px;
}

.page-gallery figcaption span {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.page-gallery figure,
.page-gallery-main {
  grid-template-rows: minmax(0, 1fr) minmax(86px, auto);
}

@media (max-width: 1180px) {
  .mechanism-board,
  .delivery-pipeline,
  .compare-rules {
    grid-template-columns: 1fr 1fr;
  }

  .mechanism-board::before,
  .delivery-pipeline article::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .mechanism-board,
  .delivery-pipeline,
  .compare-rules {
    grid-template-columns: 1fr;
  }
}

/* Business-first narrative pass: decision priority and quality loop evidence. */
.priority-section {
  padding-top: 60px;
}

.priority-ladder {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.priority-ladder::before {
  position: absolute;
  top: 34px;
  right: 7%;
  left: 7%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(40, 216, 255, 0.62), rgba(185, 54, 255, 0.56), transparent);
}

.priority-ladder article,
.quality-loop article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(154, 140, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(125, 92, 255, 0.1), rgba(40, 216, 255, 0.032) 56%, rgba(255, 255, 255, 0.024)),
    rgba(9, 8, 15, 0.84);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.25);
}

.priority-ladder article {
  min-height: 190px;
  padding: 18px;
}

.priority-ladder article::before {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 16px;
  content: "";
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(40, 216, 255, 0.7);
}

.priority-ladder span,
.quality-loop span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.priority-ladder b,
.quality-loop b {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.priority-ladder p,
.quality-loop p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.quality-loop {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.quality-loop article {
  min-height: 176px;
  padding: 18px;
}

.quality-loop article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(40, 216, 255, 0.72), rgba(185, 54, 255, 0.58), transparent);
}

.quality-loop article:not(:last-child)::after {
  position: absolute;
  top: 34px;
  right: -10px;
  z-index: 2;
  width: 20px;
  height: 1px;
  content: "";
  border-top: 1px dashed rgba(40, 216, 255, 0.5);
}

@media (max-width: 1180px) {
  .priority-ladder,
  .quality-loop {
    grid-template-columns: 1fr 1fr;
  }

  .priority-ladder::before,
  .quality-loop article::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .priority-ladder,
  .quality-loop {
    grid-template-columns: 1fr;
  }
}

/* Feedback refinement pass */
.hero {
  grid-template-columns: minmax(500px, 0.94fr) minmax(460px, 1.06fr);
  align-items: center;
}

.hero h1 {
  max-width: 860px;
  font-family:
    "Arial Black", "Helvetica Neue", "PingFang SC", "Microsoft YaHei",
    system-ui, sans-serif;
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 950;
  line-height: 1.03;
  letter-spacing: -0.01em;
}

.hero h1 span {
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 620px;
  font-size: clamp(18px, 1.55vw, 24px);
}

.hero-visual {
  grid-template-columns: minmax(280px, 1fr) minmax(210px, 0.62fr);
  column-gap: 18px;
  row-gap: 22px;
  grid-template-rows: repeat(3, minmax(76px, auto));
  min-height: 540px;
  padding: 28px 0;
}

.hero-visual::before {
  display: none;
}

.hero-visual::after {
  left: 2%;
  width: min(600px, 44vw);
  aspect-ratio: 1.6;
  border-radius: 44% 56% 58% 42% / 42% 45% 55% 58%;
  background:
    radial-gradient(circle at 46% 48%, rgba(40, 216, 255, 0.26), transparent 30%),
    radial-gradient(circle at 62% 42%, rgba(125, 92, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(40, 216, 255, 0.12), rgba(255, 79, 216, 0.14));
  filter: blur(34px);
}

.visual-backplate {
  position: absolute;
  left: 2%;
  width: min(530px, 38vw);
  aspect-ratio: 1.24;
  border: 1px solid rgba(40, 216, 255, 0.16);
  border-radius: 38px;
  background:
    linear-gradient(120deg, rgba(40, 216, 255, 0.08), transparent 42%),
    linear-gradient(300deg, rgba(255, 79, 216, 0.1), transparent 46%);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  opacity: 0.72;
  transform: translate3d(calc(var(--mx) * 0.006), calc(var(--my) * 0.006), 0);
}

.energy-field,
.field-line,
.spark,
.orbital-label {
  display: none;
}

.energy-core {
  grid-column: 1;
  grid-row: 1 / 4;
  width: min(430px, 34vw);
  min-width: 300px;
  justify-self: center;
  align-self: center;
}

.hero-node-card {
  position: relative;
  grid-column: 2;
  width: 100%;
  min-height: 76px;
  padding: 14px 15px;
  border: 1px dashed rgba(154, 140, 255, 0.42);
  border-radius: 16px;
  background: rgba(10, 10, 18, 0.62);
  color: rgba(247, 245, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.hero-node-card::before {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  width: clamp(34px, 4vw, 64px);
  height: 1px;
  content: "";
  border-top: 1px dashed rgba(40, 216, 255, 0.42);
}

.hero-node-card:hover {
  transform: translateX(-6px);
  border-color: rgba(40, 216, 255, 0.74);
  background: rgba(20, 18, 34, 0.78);
}

.hero-node-card span {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-node-card b {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.label-a,
.label-b,
.label-c {
  position: relative;
  inset: auto;
}

.label-a {
  align-self: end;
  margin-bottom: 10px;
}

.label-b {
  align-self: center;
}

.label-c {
  align-self: start;
  margin-top: 10px;
}

.method-visual {
  grid-template-columns: minmax(230px, 0.7fr) minmax(280px, 0.88fr) minmax(330px, 0.78fr);
}

.method-visual::before,
.method-visual::after {
  display: none;
}

.method-side {
  gap: 18px;
}

.method-side div {
  position: relative;
  min-height: 100px;
  padding: 20px;
  border-style: dashed;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.method-side div::before {
  position: absolute;
  top: 50%;
  right: 100%;
  width: clamp(52px, 5vw, 88px);
  height: 1px;
  content: "";
  border-top: 1px dashed rgba(40, 216, 255, 0.42);
}

.method-side div:hover {
  transform: translateX(-6px);
  border-color: rgba(40, 216, 255, 0.64);
  background: rgba(40, 216, 255, 0.075);
}

.method-side p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.page-gallery {
  grid-template-columns: minmax(0, 1.24fr) minmax(260px, 0.76fr);
  align-items: stretch;
}

.page-gallery-main {
  grid-row: span 2;
}

.page-gallery-main img,
.page-gallery figure:first-child img {
  aspect-ratio: 16 / 9.3;
  object-fit: contain;
  padding: 10px;
}

.page-gallery figure:not(.page-gallery-main) img {
  aspect-ratio: 16 / 9;
}

.impact-board article {
  min-height: 178px;
  padding: 22px;
}

.impact-board article::before {
  display: none;
}

.impact-board i {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(154, 140, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cyan);
  font-style: normal;
  font-size: 15px;
  font-weight: 900;
}

.impact-board p {
  max-width: none;
}

.validation-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
}

.validation-summary {
  display: grid;
  gap: 14px;
}

.validation-summary article {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(40, 216, 255, 0.09), transparent 46%),
    rgba(255, 255, 255, 0.04);
}

.validation-summary article::after {
  position: absolute;
  inset: auto 18px 18px auto;
  width: 90px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan));
  opacity: 0.7;
}

.validation-summary span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.validation-summary b {
  display: block;
  margin-top: 10px;
  font-size: 20px;
}

.validation-summary p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .hero,
  .validation-panel,
  .method-visual {
    grid-template-columns: 1fr;
  }

  .hero h1 span {
    white-space: normal;
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .hero-node-card {
    display: none;
  }

  .energy-core {
    width: min(420px, 68vw);
  }

  .visual-backplate {
    width: min(520px, 76vw);
  }

  .method-side div::before {
    display: none;
  }
}

@media (max-width: 820px) {
  .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .page-gallery {
    grid-template-columns: 1fr;
  }
}

/* Project cover refresh */
.hero {
  grid-template-columns: minmax(520px, 0.96fr) minmax(420px, 1.04fr);
  gap: 58px;
  min-height: min(820px, calc(100dvh - 64px));
}

.hero::before {
  right: 6%;
  width: min(760px, 62vw);
  height: 160px;
  background:
    linear-gradient(90deg, transparent, rgba(40, 216, 255, 0.54), rgba(125, 92, 255, 0.64), transparent);
  opacity: 0.52;
  animation: haloDrift 8s ease-in-out infinite alternate;
}

.project-kicker {
  margin-top: 18px;
  color: rgba(247, 245, 255, 0.62);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin-top: 16px;
  font-size: clamp(42px, 4.35vw, 66px);
  line-height: 1.02;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-subtitle {
  margin-top: 18px;
  color: var(--cyan);
  font-size: clamp(19px, 1.75vw, 26px);
  font-weight: 860;
  letter-spacing: 0;
  text-shadow: 0 0 30px rgba(40, 216, 255, 0.32);
}

.hero .lead {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(247, 245, 255, 0.78);
}

.hero-visual {
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  isolation: isolate;
  transform: translate3d(calc(var(--mx) * 0.012), calc(var(--my) * 0.012), 0);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual::before {
  width: min(620px, 46vw);
  aspect-ratio: 1;
  border: 1px solid rgba(154, 140, 255, 0.22);
  background:
    radial-gradient(circle, rgba(40, 216, 255, 0.16), transparent 42%),
    conic-gradient(from 115deg, transparent, rgba(40, 216, 255, 0.3), transparent, rgba(255, 79, 216, 0.2), transparent);
  filter: blur(0.2px);
  opacity: 0.82;
  animation: slowSpin 22s linear infinite;
}

.hero-visual::after {
  width: min(760px, 54vw);
  aspect-ratio: 1.2;
  background:
    radial-gradient(circle at 50% 50%, rgba(91, 116, 255, 0.32), transparent 28%),
    radial-gradient(circle at 62% 42%, rgba(40, 216, 255, 0.22), transparent 26%),
    radial-gradient(circle at 32% 64%, rgba(255, 79, 216, 0.16), transparent 24%);
  filter: blur(28px);
  opacity: 0.9;
  z-index: -2;
  animation: pulseGlow 5.8s ease-in-out infinite;
}

.energy-core {
  width: min(520px, 42vw);
  min-width: 320px;
  filter:
    drop-shadow(0 0 28px rgba(40, 216, 255, 0.46))
    drop-shadow(0 0 72px rgba(125, 92, 255, 0.5));
  transform: translate3d(calc(var(--mx) * -0.018), calc(var(--my) * -0.018), 0);
  animation: floatCore 6s ease-in-out infinite;
  user-select: none;
}

.energy-field {
  position: absolute;
  inset: 6% 0;
  z-index: -1;
  pointer-events: none;
}

.field-line {
  position: absolute;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40, 216, 255, 0.8), rgba(255, 79, 216, 0.55), transparent);
  filter: drop-shadow(0 0 10px rgba(40, 216, 255, 0.7));
  opacity: 0.58;
  transform-origin: center;
  animation: scanBeam 4.8s ease-in-out infinite;
}

.line-a {
  top: 23%;
  transform: rotate(-8deg);
}

.line-b {
  top: 52%;
  animation-delay: -1.4s;
}

.line-c {
  top: 76%;
  transform: rotate(7deg);
  animation-delay: -2.8s;
}

.spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(40, 216, 255, 0.9);
  animation: sparkTravel 7s ease-in-out infinite;
}

.spark-a {
  left: 16%;
  top: 36%;
}

.spark-b {
  right: 18%;
  top: 62%;
  background: var(--pink);
  box-shadow: 0 0 24px rgba(255, 79, 216, 0.8);
  animation-delay: -2.2s;
}

.spark-c {
  left: 48%;
  bottom: 13%;
  background: var(--green);
  box-shadow: 0 0 24px rgba(71, 255, 208, 0.8);
  animation-delay: -4.4s;
}

.orbital-label {
  position: absolute;
  padding: 9px 12px;
  border: 1px solid rgba(154, 140, 255, 0.34);
  border-radius: 999px;
  background: rgba(6, 6, 10, 0.56);
  color: rgba(247, 245, 255, 0.72);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.1em;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 32px rgba(125, 92, 255, 0.16);
  transform: translate3d(calc(var(--mx) * 0.02), calc(var(--my) * 0.02), 0);
}

.label-a {
  left: 5%;
  top: 26%;
}

.label-b {
  right: 8%;
  top: 38%;
}

.label-c {
  left: 18%;
  bottom: 18%;
}

@keyframes floatCore {
  0%,
  100% {
    transform: translate3d(calc(var(--mx) * -0.018), calc(var(--my) * -0.018), 0) scale(1);
  }
  50% {
    transform: translate3d(calc(var(--mx) * -0.018), calc(var(--my) * -0.018 - 14px), 0) scale(1.018);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scanBeam {
  0%,
  100% {
    opacity: 0.28;
    clip-path: inset(0 48% 0 48%);
  }
  50% {
    opacity: 0.8;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes sparkTravel {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.82);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(34px, -22px, 0) scale(1.16);
    opacity: 1;
  }
}

@keyframes haloDrift {
  from {
    transform: translate3d(-24px, 0, 0);
  }
  to {
    transform: translate3d(32px, 18px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-visual::before,
  .hero-visual::after,
  .energy-core,
  .field-line,
  .spark {
    animation: none;
  }
}

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

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

  .energy-core {
    width: min(430px, 68vw);
  }
}

@media (max-width: 820px) {
  .hero h1 {
    font-size: clamp(34px, 9.2vw, 48px);
  }

  .hero-subtitle {
    font-size: 18px;
  }

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

  .energy-core {
    min-width: 220px;
    width: min(310px, 78vw);
  }

  .orbital-label {
    display: none;
  }
}

/* Product Design refinement pass: calmer scale, cleaner image staging. */
main {
  width: min(1280px, calc(100vw - 64px));
}

.topbar {
  min-height: 64px;
  padding: 0 24px;
}

.brand {
  font-size: 14px;
}

.toc {
  font-size: 12px;
}

.toc a {
  padding: 8px 10px;
}

.hero {
  grid-template-columns: minmax(390px, 0.76fr) minmax(0, 1.24fr);
  gap: 42px;
  min-height: min(760px, calc(100vh - 64px));
  padding: 46px 0 38px;
}

.hero::before {
  top: 34px;
  height: 92px;
  opacity: 0.58;
}

.hero-media {
  min-height: 440px;
  border-radius: 26px;
}

.hero-media img {
  min-height: 440px;
}

h1 {
  max-width: 640px;
  margin-top: 16px;
  font-size: clamp(34px, 3.55vw, 56px);
  line-height: 1.06;
  text-wrap: balance;
}

h2 {
  max-width: 780px;
  font-size: clamp(24px, 2.35vw, 38px);
  line-height: 1.14;
  text-wrap: balance;
}

.lead,
.section-copy p,
.section-head p,
.demo-shell p {
  font-size: 15.5px;
  line-height: 1.78;
}

.hero-actions {
  margin-top: 26px;
}

.hero-stats {
  margin-top: 28px;
}

.hero-stats div {
  min-width: 108px;
  padding: 12px 13px;
}

.hero-stats dt {
  font-size: 23px;
}

.intro-strip {
  gap: 12px;
  margin-bottom: 10px;
}

.intro-strip article {
  min-height: 86px;
  padding: 16px;
}

.section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 22px;
}

.split {
  gap: 34px;
}

.dark-panel {
  margin: 36px 0;
  padding: 34px;
  border-radius: 28px;
}

.method-visual {
  min-height: 340px;
  padding: 24px;
}

.method-copy b {
  max-width: 280px;
  font-size: clamp(24px, 2.6vw, 36px);
}

.method-copy p {
  font-size: 14px;
}

.orbit {
  width: min(300px, 64vw);
}

.node {
  width: 74px;
  height: 74px;
  font-size: 11px;
}

.node-a { left: -8px; top: calc(50% - 37px); }
.node-b { left: calc(50% - 37px); top: -8px; }
.node-c { right: -8px; top: calc(50% - 37px); }
.node-d { left: calc(50% - 37px); bottom: -8px; }

.core {
  inset: calc(50% - 58px);
  font-size: 14px;
}

.chain article {
  min-height: 156px;
  padding: 16px;
}

.chain b {
  margin-top: 24px;
  font-size: 16px;
}

.pain-grid article,
.metric-list article,
.rating-list article,
.rule-cards article {
  padding: 15px;
}

.framed-shot,
.stacked-shots figure,
.showcase-pair figure,
.asset-grid figure,
.workflow-grid figure,
.comparison figure,
.page-gallery figure {
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
}

.framed-shot img,
.asset-grid img,
.workflow-grid img,
.comparison img,
.stacked-shots img,
.validation-shots img {
  padding: 14px;
}

.framed-shot img,
.asset-grid img,
.workflow-grid img,
.comparison img,
.page-gallery img,
.validation-shots img {
  background:
    linear-gradient(180deg, rgba(125, 92, 255, 0.08), rgba(40, 216, 255, 0.04)),
    #050508;
}

.showcase-pair img,
.page-gallery figure:first-child img {
  object-fit: contain;
  padding: 12px;
}

.asset-grid,
.workflow-grid,
.comparison,
.page-gallery,
.showcase-pair {
  gap: 14px;
}

figcaption {
  padding: 11px 13px 13px;
}

.impact {
  padding-top: 56px;
}

.impact-board article {
  min-height: 188px;
  padding: 18px;
  border-radius: 20px;
}

.impact-board span {
  font-size: clamp(28px, 2.6vw, 40px);
}

.impact-board b {
  margin-top: 14px;
  font-size: 16px;
}

.demo-shell {
  padding: 38px;
  border-radius: 28px;
}

.demo-placeholder {
  min-height: 220px;
  margin-top: 28px;
}

.demo-placeholder b {
  font-size: clamp(24px, 2.7vw, 38px);
}

@media (max-width: 1180px) {
  main {
    width: min(100% - 44px, 1280px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 40px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-media {
    order: 2;
  }

  .hero-media,
  .hero-media img {
    min-height: 390px;
  }

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

@media (max-width: 820px) {
  main {
    width: min(100% - 28px, 1280px);
  }

  .hero {
    padding: 32px 0 24px;
  }

  .hero-media,
  .hero-media img {
    min-height: 240px;
  }

  h1 {
    font-size: clamp(31px, 8.8vw, 42px);
  }

  h2 {
    font-size: clamp(23px, 6vw, 31px);
  }

  .section {
    padding: 50px 0;
  }

  .dark-panel,
  .demo-shell {
    padding: 20px;
    border-radius: 22px;
  }

  .chain,
  .impact-board {
    grid-template-columns: 1fr;
  }

  .framed-shot img,
  .asset-grid img,
  .workflow-grid img,
  .comparison img,
  .stacked-shots img,
  .validation-shots img {
    padding: 8px;
  }
}

/* Final overrides placed at EOF so older passes cannot override them. */
.hero {
  grid-template-columns: minmax(500px, 0.8fr) minmax(580px, 1.2fr);
  gap: 0;
}

.hero-visual {
  min-height: 620px;
  justify-items: end;
  transform: translate3d(calc(var(--mx) * 0.008 + 112px), calc(var(--my) * 0.008), 0);
}

.hero-visual::after {
  width: min(860px, 60vw);
  transform: translateX(96px);
}

.energy-core {
  width: min(820px, 58vw);
  min-width: 520px;
  transform: translate3d(calc(var(--mx) * -0.012 + 116px), calc(var(--my) * -0.012), 0);
}

.method-visual {
  grid-template-columns: minmax(220px, 0.52fr) minmax(500px, 1.36fr) minmax(300px, 0.74fr);
  min-height: 520px;
}

.orbit {
  width: min(520px, 40vw);
}

.core {
  inset: calc(50% - 108px);
  font-size: 22px;
}

.node {
  width: 108px;
  height: 108px;
  font-size: 13px;
}

.node-a { left: -30px; top: calc(50% - 54px); }
.node-b { left: calc(50% - 54px); top: -30px; }
.node-c { right: -30px; top: calc(50% - 54px); }
.node-d { left: calc(50% - 54px); bottom: -30px; }

.method-side div {
  border-color: rgba(185, 54, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(125, 92, 255, 0.2), rgba(185, 54, 255, 0.1)),
    rgba(255, 255, 255, 0.035);
}

.method-side div::before {
  border-top-color: rgba(185, 54, 255, 0.62);
}

.page-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 16px;
  align-items: stretch;
}

.page-gallery figure,
.page-gallery-main {
  grid-column: auto !important;
  grid-row: auto !important;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 54px;
  min-height: 0;
  align-self: stretch;
}

.page-gallery img,
.page-gallery-main img,
.page-gallery figure:first-child img,
.page-gallery figure:not(.page-gallery-main) img {
  display: block;
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: contain;
  padding: 10px;
}

.page-gallery figcaption {
  min-height: 54px;
  height: 54px;
  display: flex;
  align-items: center;
}

@media (max-width: 1180px) {
  .hero,
  .method-visual {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-items: center;
    min-height: 380px;
    transform: translate3d(calc(var(--mx) * 0.008), calc(var(--my) * 0.008), 0);
  }

  .energy-core {
    width: min(520px, 72vw);
    min-width: 280px;
    transform: translate3d(calc(var(--mx) * -0.012), calc(var(--my) * -0.012), 0);
  }

  .orbit {
    width: min(440px, 74vw);
  }
}

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

/* Definitive final polish: this block intentionally sits at EOF. */
.brand {
  gap: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.method-visual {
  grid-template-columns: minmax(240px, 0.62fr) minmax(360px, 0.82fr) minmax(320px, 0.86fr);
  min-height: 480px;
}

.orbit {
  width: min(416px, 32vw);
}

.core {
  inset: calc(50% - 86px);
  font-size: 18px;
}

.node {
  width: 86px;
  height: 86px;
  font-size: 12px;
}

.node-a { left: -24px; top: calc(50% - 43px); }
.node-b { left: calc(50% - 43px); top: -24px; }
.node-c { right: -24px; top: calc(50% - 43px); }
.node-d { left: calc(50% - 43px); bottom: -24px; }

.mechanism-board {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mechanism-board article {
  min-height: 228px;
}

main img {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    radial-gradient(circle at 70% 20%, rgba(104, 88, 255, 0.22), transparent 36%),
    rgba(3, 3, 8, 0.88);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  max-width: min(92vw, 1440px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(157, 139, 255, 0.34);
  border-radius: 18px;
  background: rgba(4, 5, 12, 0.94);
  box-shadow: 0 28px 96px rgba(0, 0, 0, 0.68), 0 0 80px rgba(71, 98, 255, 0.18);
  cursor: zoom-out;
}

.image-lightbox p {
  max-width: min(92vw, 900px);
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .method-visual {
    grid-template-columns: 1fr;
  }

  .orbit {
    width: min(340px, 68vw);
  }

  .mechanism-board {
    grid-template-columns: 1fr;
  }

  .mechanism-board article {
    min-height: 0;
  }
}

/* Definitive hero motion override. */
.hero-visual {
  perspective: 1200px;
}

.energy-core {
  translate: 0 0;
  scale: 1;
  transform-origin: center;
  animation: energyCoreFloat 7.2s ease-in-out infinite;
  transition: scale 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
  will-change: transform, translate, scale, filter;
}

.hero-visual::after {
  animation: energyHaloBreath 7.2s ease-in-out infinite;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-visual:hover .energy-core {
  scale: 1.045;
  filter: saturate(1.22) brightness(1.08) drop-shadow(0 0 34px rgba(72, 223, 255, 0.2));
}

.hero-visual:hover::after {
  opacity: 0.86;
  transform: translateX(96px) scale(1.035);
}

@keyframes energyCoreFloat {
  0%,
  100% {
    translate: 0 0;
  }

  45% {
    translate: 0 -14px;
  }

  70% {
    translate: 6px -7px;
  }
}

@keyframes energyHaloBreath {
  0%,
  100% {
    opacity: 0.58;
  }

  50% {
    opacity: 0.78;
  }
}

@media (prefers-reduced-motion: reduce) {
  .energy-core,
  .hero-visual::after {
    animation: none;
  }
}

/* Comment polish overrides: final. */
.brand {
  gap: 16px;
}

.brand span {
  font-size: 17px;
  white-space: nowrap;
}

#context .framed-shot {
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

#context .framed-shot figcaption {
  min-height: 98px;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  font-size: 13px;
  line-height: 1.8;
}

#reframe .method-visual {
  grid-template-columns: minmax(230px, 0.6fr) minmax(340px, 0.74fr) minmax(270px, 0.66fr);
  column-gap: 44px;
}

#reframe .method-side {
  width: min(100%, 330px);
  justify-self: end;
}

#reframe .method-side div {
  min-height: 92px;
  padding: 18px 20px;
}

#reframe .method-side div::before {
  width: 58px;
  left: -58px;
}

@media (max-width: 1180px) {
  #reframe .method-visual {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  #reframe .method-side {
    width: 100%;
    justify-self: stretch;
  }

  #reframe .method-side div::before {
    display: none;
  }
}

/* Final coding demo section: definitive overrides. */
.final-demo {
  padding-top: 110px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.final-demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 34px;
}

.final-demo-hero figure,
.final-demo-gallery figure {
  margin: 0;
  border: 1px solid rgba(132, 122, 255, 0.24);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(23, 28, 46, 0.72), rgba(9, 10, 18, 0.94));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.final-demo-hero figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 520px;
}

.final-demo-hero img,
.final-demo-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080911;
}

.final-demo-hero img {
  aspect-ratio: 16 / 9;
  border-radius: 21px 21px 0 0;
}

.final-demo-hero figcaption,
.final-demo-gallery figcaption {
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.final-demo-hero figcaption b,
.final-demo-gallery figcaption b {
  color: var(--text);
  font-size: 16px;
}

.final-demo-hero figcaption span,
.final-demo-gallery figcaption span {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
}

.final-demo-notes {
  display: grid;
  gap: 14px;
}

.final-demo-notes article {
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(132, 122, 255, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 75% 10%, rgba(76, 225, 255, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.045);
}

.final-demo-notes span {
  display: block;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.final-demo-notes b {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
}

.final-demo-notes p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.75;
}

.final-demo-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: 18px;
}

.final-demo-gallery figure {
  display: grid;
  grid-column: span 2;
  grid-template-rows: 260px 1fr;
  min-height: 0;
}

.final-demo-gallery figure:nth-child(1),
.final-demo-gallery figure:nth-child(2) {
  grid-column: span 3;
  grid-template-rows: 330px 1fr;
}

.final-demo-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background:
    radial-gradient(circle at 68% 20%, rgba(76, 225, 255, 0.08), transparent 34%),
    rgba(4, 6, 16, 0.78);
  border-radius: 21px 21px 0 0;
}

.final-demo-gallery figcaption {
  min-height: 128px;
}

@media (max-width: 1180px) {
  .final-demo-hero,
  .final-demo-gallery {
    grid-template-columns: 1fr;
  }

  .final-demo-gallery figure:nth-child(1),
  .final-demo-gallery figure:nth-child(2),
  .final-demo-gallery figure:nth-child(4) {
    grid-column: auto;
  }

  .final-demo-gallery figure,
  .final-demo-gallery figure:nth-child(1),
  .final-demo-gallery figure:nth-child(2),
  .final-demo-gallery figure:nth-child(4) {
    grid-template-rows: auto auto;
  }

  .final-demo-gallery img {
    height: auto;
    aspect-ratio: auto;
  }
}
