:root {
  color-scheme: dark;
  --bg: oklch(8% 0.012 246);
  --surface: oklch(14% 0.018 246);
  --surface-strong: oklch(18% 0.024 246);
  --line: oklch(38% 0.035 245);
  --line-strong: oklch(58% 0.06 225);
  --text: oklch(94% 0.015 245);
  --muted: oklch(72% 0.028 245);
  --faint: oklch(57% 0.03 245);
  --power: oklch(82% 0.16 86);
  --cool: oklch(74% 0.12 194);
  --risk: oklch(69% 0.18 42);
  --good: oklch(70% 0.15 154);
  --warn: oklch(78% 0.15 72);
  --bad: oklch(67% 0.18 35);
  --radius: 8px;
  --font: ui-sans-serif, "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  font-family: var(--font);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--power);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: end;
  gap: clamp(24px, 6vw, 96px);
  padding: 24px clamp(20px, 5vw, 72px) clamp(44px, 8vw, 96px);
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, oklch(30% 0.025 245 / 0.16) 1px, transparent 1px),
    linear-gradient(180deg, oklch(30% 0.025 245 / 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 92%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, oklch(5% 0.01 246) 0 38%, oklch(5% 0.01 246 / 0.94) 58%, oklch(5% 0.01 246 / 0.72) 100%);
  pointer-events: none;
}

.topnav {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 72px);
}

.brand {
  font-size: 1.05rem;
  font-weight: 780;
  text-decoration: none;
}

.topnav div {
  display: flex;
  gap: 20px;
  align-items: center;
}

.topnav a:not(.brand) {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.topnav a:hover {
  color: var(--text);
}

.hero__content {
  position: relative;
  z-index: 4;
  max-width: 760px;
  padding-top: 120px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--power);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 720;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 5.5vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__copy {
  max-width: 68ch;
  margin-bottom: 28px;
  color: oklch(91% 0.012 245);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: oklch(13% 0.018 246 / 0.82);
  color: var(--text);
  padding: 0 16px;
  font-weight: 740;
  text-decoration: none;
}

.button:hover {
  border-color: var(--line-strong);
}

.button--primary {
  border-color: color-mix(in oklch, var(--power), white 8%);
  background: color-mix(in oklch, var(--power) 22%, var(--surface));
}

.site-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.72;
}

.data-hall {
  position: absolute;
  right: 5vw;
  bottom: 21vh;
  width: min(52vw, 760px);
  height: clamp(150px, 22vw, 270px);
  border: 1px solid oklch(63% 0.055 226 / 0.7);
  background:
    repeating-linear-gradient(90deg, oklch(83% 0.09 196 / 0.2) 0 2px, transparent 2px 42px),
    linear-gradient(145deg, oklch(22% 0.035 240 / 0.92), oklch(12% 0.018 246 / 0.96));
  box-shadow: 0 0 70px oklch(68% 0.11 196 / 0.2);
  transform: skewX(-9deg);
}

.data-hall::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 18px;
  width: 26px;
  height: calc(100% - 18px);
  background: oklch(10% 0.018 246);
  border: 1px solid oklch(50% 0.04 226 / 0.6);
}

.cooling-row {
  position: absolute;
  right: 9vw;
  bottom: 47vh;
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 70px));
  gap: 12px;
}

.cooling-row span {
  height: 38px;
  border: 1px solid oklch(74% 0.09 194 / 0.5);
  background: linear-gradient(180deg, oklch(35% 0.04 210 / 0.8), oklch(12% 0.018 246 / 0.8));
}

.substation {
  position: absolute;
  left: 6vw;
  bottom: 12vh;
  display: grid;
  grid-template-columns: repeat(4, minmax(38px, 66px));
  gap: 18px;
}

.substation span {
  position: relative;
  height: 150px;
  border-left: 2px solid oklch(67% 0.08 85 / 0.62);
  border-right: 2px solid oklch(67% 0.08 85 / 0.62);
}

.substation span::before,
.substation span::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  height: 2px;
  background: oklch(67% 0.08 85 / 0.62);
}

.substation span::before {
  top: 38px;
}

.substation span::after {
  top: 92px;
}

.line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--power), transparent);
  opacity: 0.58;
  transform-origin: left center;
}

.line-a {
  left: 11vw;
  right: 22vw;
  bottom: 42vh;
  transform: rotate(-6deg);
}

.line-b {
  left: 18vw;
  right: 10vw;
  bottom: 35vh;
  transform: rotate(9deg);
}

.pulse {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--power);
  box-shadow: 0 0 24px var(--power);
  animation: movePulse 4s linear infinite;
}

.pulse-a {
  left: 15vw;
  bottom: 41vh;
}

.pulse-b {
  left: 28vw;
  bottom: 37vh;
  animation-delay: 1.6s;
}

@keyframes movePulse {
  from {
    translate: 0 0;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  to {
    translate: 48vw -3vh;
    opacity: 0;
  }
}

.hero-panel {
  position: relative;
  z-index: 4;
  align-self: end;
  border: 1px solid oklch(55% 0.05 225 / 0.78);
  border-radius: var(--radius);
  background: oklch(6% 0.012 246);
  box-shadow: 0 28px 80px oklch(0% 0 0 / 0.42);
  padding: 18px;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.panel-topline strong {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--power);
  border-radius: 50%;
  color: var(--power);
  font-family: var(--font);
  font-size: 1.25rem;
}

.hero-panel h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

dl div {
  border: 1px solid oklch(30% 0.03 245);
  border-radius: 6px;
  background: oklch(9% 0.014 246);
  padding: 10px;
}

dt {
  color: oklch(80% 0.018 245);
  font-size: 0.78rem;
}

dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 760;
}

.section {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0;
}

.problem {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
}

.section h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.problem-grid,
.memo-grid {
  display: grid;
  gap: 14px;
}

.problem-grid article,
.memo-grid article,
.findings,
.score-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(12% 0.016 246);
  padding: 20px;
}

.problem-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--power);
  font-family: var(--mono);
  font-size: 0.78rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

article p,
.cta p,
.findings li {
  color: oklch(84% 0.018 245);
  line-height: 1.58;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.score-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.score-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.score-ring {
  display: grid;
  width: 168px;
  height: 168px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 58%, transparent 60%),
    conic-gradient(var(--power) 0 72%, oklch(28% 0.03 246) 72% 100%);
}

.score-ring strong {
  font-size: 2.6rem;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.82rem;
}

.score-bars {
  display: grid;
  gap: 14px;
}

.score-bars div {
  display: grid;
  grid-template-columns: minmax(112px, 0.7fr) minmax(110px, 1fr) 28px;
  gap: 10px;
  align-items: center;
}

.score-bars span {
  color: oklch(84% 0.018 245);
  font-size: 0.86rem;
}

.score-bars b {
  color: var(--text);
  font-size: 0.86rem;
}

.score-bars i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: oklch(25% 0.028 246);
}

.score-bars i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cool), var(--power));
}

.findings ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.findings strong {
  color: var(--text);
}

.teardown {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(10% 0.014 246);
  overflow: hidden;
}

.teardown__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 24px;
  align-items: end;
  padding: clamp(20px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  border: 1px solid oklch(54% 0.06 225 / 0.72);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.teardown__summary h3 {
  max-width: 660px;
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.6vw, 2.8rem);
  line-height: 1.02;
  text-wrap: balance;
}

.teardown__summary p,
.gate p,
.questions-panel p,
.questions-panel li {
  color: oklch(84% 0.018 245);
  line-height: 1.58;
}

.mw-stack {
  display: grid;
  gap: 8px;
}

.mw-stack div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  border: 1px solid oklch(30% 0.03 245);
  border-radius: 6px;
  background: oklch(7% 0.012 246);
  padding: 12px;
}

.mw-stack span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.mw-stack strong {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.gate {
  min-height: 218px;
  border-right: 1px solid var(--line);
  padding: 18px;
}

.gate:last-child {
  border-right: 0;
}

.gate span {
  display: inline-flex;
  margin-bottom: 28px;
  border-radius: 999px;
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.gate--pass span {
  background: oklch(70% 0.15 154 / 0.14);
  color: var(--good);
}

.gate--watch span {
  background: oklch(78% 0.15 72 / 0.14);
  color: var(--warn);
}

.gate--fail span {
  background: oklch(67% 0.18 35 / 0.14);
  color: var(--bad);
}

.questions-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 24px;
  padding: clamp(20px, 4vw, 34px);
}

.questions-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.target-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.target-list span {
  border: 1px solid oklch(35% 0.035 245);
  border-radius: 999px;
  background: oklch(8% 0.012 246);
  padding: 8px 10px;
  color: oklch(86% 0.018 245);
  font-size: 0.86rem;
}

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

.source-list a {
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(12% 0.016 246);
  color: oklch(86% 0.018 245);
  padding: 14px;
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
}

.source-list a:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.capex-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(220px, 0.72fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.metric-card {
  display: grid;
  min-width: 0;
  min-height: 280px;
  align-content: start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(12% 0.016 246);
  padding: clamp(18px, 2.3vw, 28px);
}

.metric-card span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.metric-card strong {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.08em;
  align-items: baseline;
  color: var(--text);
  font-size: clamp(2.3rem, 4.8vw, 4.9rem);
  font-variant-numeric: tabular-nums;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.metric-card small {
  color: var(--muted);
  font-size: 0.48em;
  font-weight: 760;
}

.metric-card p {
  max-width: 24ch;
  color: oklch(84% 0.018 245);
  line-height: 1.5;
}

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

.cta {
  max-width: 860px;
  text-align: center;
}

.cta h2 {
  margin-inline: auto;
}

.cta p {
  max-width: 66ch;
  margin: 18px auto 24px;
}

.cta .disclaimer {
  margin-top: 26px;
  color: var(--faint);
  font-size: 0.8rem;
}

.report-page {
  min-height: 100svh;
}

.report-nav {
  position: sticky;
  background: oklch(8% 0.012 246 / 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid oklch(30% 0.03 245);
}

.report {
  width: min(840px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 112px) 0;
}

.report-header {
  padding: 48px 0 clamp(36px, 7vw, 72px);
}

.report-header h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4.7vw, 3.9rem);
}

.report-header p,
.report-section p,
.report-list li,
.report-footer p {
  max-width: 74ch;
  color: oklch(84% 0.018 245);
  line-height: 1.68;
}

.report-section {
  border-top: 1px solid var(--line);
  padding: clamp(34px, 6vw, 56px) 0;
}

.report-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.report-section h3 {
  font-size: 1.1rem;
}

.report-waterfall,
.report-table {
  display: grid;
  gap: 10px;
}

.report-waterfall div,
.report-table div,
.report-grid section,
.report-callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(12% 0.016 246);
  padding: 18px;
}

.report-waterfall div,
.report-table div {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(150px, 0.62fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
}

.report-waterfall span,
.report-table span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.report-waterfall strong,
.report-table strong {
  color: var(--text);
  font-size: 1.12rem;
}

.report-waterfall p,
.report-table p,
.report-callout {
  margin: 0;
}

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

.report-callout {
  margin-top: 12px;
  border-color: color-mix(in oklch, var(--power), var(--line) 35%);
}

.report-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.report-footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

@media (max-width: 900px) {
  .hero,
  .problem,
  .score-layout,
  .score-card,
  .teardown__summary,
  .questions-panel,
  .memo-grid {
    grid-template-columns: 1fr;
  }

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

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

  .gate:nth-child(2) {
    border-right: 0;
  }

  .gate:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hero-panel {
    max-width: 520px;
  }

  .capex-layout,
  .report-grid,
  .report-waterfall div,
  .report-table div {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 0;
  }

  .data-hall {
    right: 20px;
    bottom: 34vh;
    width: min(74vw, 620px);
    opacity: 0.62;
  }

  .substation,
  .cooling-row,
  .pulse,
  .line {
    opacity: 0.45;
  }
}

@media (max-width: 620px) {
  .topnav {
    align-items: flex-start;
  }

  .topnav div {
    gap: 12px;
  }

  .topnav a:not(.brand) {
    font-size: 0.82rem;
  }

  .hero__actions {
    display: grid;
  }

  dl {
    grid-template-columns: 1fr;
  }

  .score-card {
    justify-items: center;
  }

  .score-bars {
    width: 100%;
  }

  .score-bars div {
    grid-template-columns: 1fr 44px;
  }

  .score-bars i {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

  .gate,
  .gate:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gate:last-child {
    border-bottom: 0;
  }

  .gate span {
    margin-bottom: 16px;
  }

  .source-list {
    grid-template-columns: 1fr;
  }

  .source-list a {
    min-height: 0;
  }
}

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

  .pulse {
    animation: none;
  }
}
