:root {
  --ink: #08120f;
  --ink-2: #0d1b17;
  --ink-3: #14251f;
  --paper: #f4f2e9;
  --paper-2: #ebe8dd;
  --white: #fbfcf8;
  --text-on-dark: #eef6ef;
  --muted-on-dark: #9aa9a1;
  --text: #14211d;
  --muted: #64706b;
  --accent: #b9f56b;
  --accent-strong: #8ddc36;
  --cyan: #72d7cc;
  --coral: #ff8068;
  --line-dark: rgba(238, 246, 239, 0.14);
  --line-light: rgba(20, 33, 29, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow: 0 24px 70px rgba(2, 13, 9, 0.16);
  --page: min(1180px, calc(100% - 40px));
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

::selection {
  background: var(--accent);
  color: var(--ink);
}

.page-shell {
  width: var(--page);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-150%);
}

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

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

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text-on-dark);
  background:
    radial-gradient(circle at 78% 32%, rgba(114, 215, 204, 0.12), transparent 27%),
    radial-gradient(circle at 48% -10%, rgba(185, 245, 107, 0.1), transparent 32%),
    var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.34;
  background-image:
    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: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 82%);
}

.site-nav {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  height: 62px;
  padding: 8px 10px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(8, 18, 15, 0.78);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--accent);
  background: rgba(185, 245, 107, 0.09);
}

.brand-mark svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .brand-bolt {
  fill: currentColor;
  stroke: none;
}

.brand-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #bdc9c2;
  font-size: 13px;
  font-weight: 650;
}

.nav-links a,
.footer-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active,
.footer-links a:hover {
  color: var(--accent);
}

.nav-code {
  height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  border-radius: 11px;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-code:hover {
  background: #cafc89;
  transform: translateY(-1px);
}

.nav-code svg,
.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 116px);
  padding-top: 132px;
  padding-bottom: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(370px, 0.87fr);
  align-items: center;
  gap: clamp(42px, 6vw, 86px);
}

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

.eyebrow,
.section-index,
.rq-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 780px;
  margin: 22px 0 24px;
  font-size: clamp(3rem, 5.1vw, 5.55rem);
  line-height: 0.99;
  letter-spacing: -0.066em;
  font-weight: 820;
}

.hero h1 span {
  position: relative;
  display: inline-block;
  color: var(--accent);
}

.hero h1 span::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 8px;
  content: "";
  opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7C48 1 115 11 198 3' fill='none' stroke='%23b9f56b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-lede {
  max-width: 680px;
  margin: 0 0 25px;
  color: #b7c4bd;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  color: #f7fbf7;
  font-size: 14px;
  font-weight: 680;
}

sup {
  position: relative;
  top: -0.12em;
  font-size: 0.68em;
}

.affiliations {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  color: #84958c;
  font-size: 12px;
}

.affiliations .author-notes {
  flex-basis: 100%;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--accent);
}

.button-primary:hover {
  background: #cafe8b;
}

.button-secondary {
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.09);
}

.text-link {
  margin-left: 5px;
  color: #c4d0c9;
  font-size: 13px;
  font-weight: 720;
}

.text-link:hover {
  color: var(--accent);
}

.hero-visual {
  position: relative;
}

.visual-glow {
  position: absolute;
  inset: 10% 5%;
  filter: blur(60px);
  opacity: 0.22;
  border-radius: 50%;
  background: var(--accent);
}

.energy-console {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(185, 245, 107, 0.2);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(22, 43, 35, 0.94), rgba(8, 18, 15, 0.96));
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(1.3deg);
}

.energy-console::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.25;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.1) 48%, transparent 58%);
  transform: translateX(-120%);
  animation: console-sheen 7s ease-in-out infinite 2s;
}

@keyframes console-sheen {
  0%, 68%, 100% { transform: translateX(-120%); }
  82% { transform: translateX(120%); }
}

.console-topbar,
.chart-label,
.phase-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-topbar {
  padding: 0 2px 14px;
  color: #8da098;
  border-bottom: 1px solid var(--line-dark);
  font-size: 9px;
}

.console-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}

.console-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  animation: status-pulse 2s ease-out infinite;
}

@keyframes status-pulse {
  50% { opacity: 0.45; }
}

.prompt-stack {
  padding: 18px 0 13px;
  display: grid;
  gap: 8px;
}

.prompt-row {
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 8px;
}

.prompt-row-active {
  border-color: rgba(185, 245, 107, 0.26);
  background: rgba(185, 245, 107, 0.055);
}

.prompt-label {
  color: #acbab2;
  font-weight: 700;
}

.prompt-row-active .prompt-label,
.prompt-row-active .prompt-token {
  color: var(--accent);
}

.prompt-line {
  height: 3px;
  border-radius: 2px;
  opacity: 0.28;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor;
}

.prompt-row-base .prompt-line {
  width: 57%;
}

.prompt-token {
  color: #75867e;
}

.power-chart {
  position: relative;
  padding: 12px 12px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.chart-label {
  color: #819189;
  font-size: 8px;
}

.power-chart svg {
  width: 100%;
  height: 165px;
  margin-top: 3px;
  overflow: visible;
}

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

.chart-area {
  fill: url(#areaGradient);
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 7px rgba(185, 245, 107, 0.5));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-chart 1.8s cubic-bezier(.3, .7, .2, 1) forwards 0.5s;
}

@keyframes draw-chart {
  to { stroke-dashoffset: 0; }
}

.phase-labels {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  justify-content: space-around;
  color: #66766e;
  font-size: 7px;
}

.phase-labels span:first-child {
  color: var(--cyan);
}

.phase-labels span:last-child {
  color: var(--coral);
}

.console-metrics {
  padding-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.console-metrics div {
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.console-metrics span,
.console-metrics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-metrics span {
  color: #708078;
  font-family: var(--font-mono);
  font-size: 7px;
  text-transform: uppercase;
}

.console-metrics strong {
  margin-top: 3px;
  color: #cad5cf;
  font-size: 9px;
}

.console-metrics .metric-accent {
  color: var(--accent);
  font-size: 16px;
}

.visual-caption {
  position: relative;
  margin: 18px auto 0;
  max-width: 330px;
  color: #7f8f87;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.hero-stats {
  position: relative;
  z-index: 2;
  min-height: 116px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}

.hero-stats div {
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-right: 1px solid var(--line-dark);
}

.hero-stats div:first-child {
  padding-left: 0;
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong {
  color: var(--accent);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.hero-stats span {
  max-width: 120px;
  color: #8d9d95;
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section {
  padding: clamp(86px, 10vw, 145px) 0;
}

.section-light {
  background: var(--paper);
}

.section-ink,
.section-results,
.section-artifact {
  color: var(--text-on-dark);
  background: var(--ink);
}

.two-column-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(50px, 9vw, 130px);
}

.section-index {
  margin-bottom: 22px;
  color: #6b7771;
  font-size: 11px;
  font-weight: 750;
}

.section-ink .section-index,
.section-results .section-index,
.section-artifact .section-index {
  color: var(--accent);
}

.section-heading h2,
.results-heading h2,
.artifact-intro h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.3vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.section-heading h2 em {
  display: block;
  color: #477f58;
  font-style: normal;
}

.section-heading p {
  color: var(--muted);
}

.abstract-copy {
  max-width: 700px;
  font-size: 17px;
}

.abstract-copy p {
  margin: 0 0 20px;
}

.lead-paragraph {
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.48;
  letter-spacing: -0.02em;
}

.abstract-copy blockquote {
  margin: 38px 0 0;
  padding: 24px 26px;
  color: #234630;
  border-left: 4px solid var(--accent-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(141, 220, 54, 0.12);
  font-size: 18px;
  font-weight: 700;
}

.section-heading-wide {
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.65fr);
  align-items: end;
  gap: 60px;
}

.section-heading-wide p {
  margin: 0;
  max-width: 520px;
  color: var(--muted-on-dark);
  font-size: 16px;
}

.section-light .section-heading-wide p {
  color: var(--muted);
}

.property-cards {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.property-card {
  min-height: 215px;
  padding: 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 23px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--ink-2);
}

.property-card-accent {
  background: linear-gradient(145deg, #10241d, #0d1b17);
}

.property-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.property-card-accent .property-number {
  background: var(--cyan);
}

.property-card h3,
.setup-grid h3,
.artifact-links h3 {
  margin: 2px 0 8px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.property-card p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 14px;
}

.tag-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span {
  padding: 4px 9px;
  color: #bdc9c2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.paper-figure,
.result-visual {
  margin: 0;
}

.paper-figure {
  overflow: hidden;
  color: var(--text);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.paper-figure-bordered {
  border: 1px solid var(--line-light);
}

.figure-zoom {
  position: relative;
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  color: inherit;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}

.paper-figure .figure-zoom {
  padding: clamp(18px, 3vw, 36px);
}

.figure-zoom img {
  width: 100%;
  transition: transform 350ms ease;
}

.figure-zoom:hover img {
  transform: scale(1.008);
}

.zoom-hint {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 7px 10px;
  color: #eff9ef;
  border-radius: 8px;
  opacity: 0;
  background: rgba(8, 18, 15, 0.88);
  font-family: var(--font-mono);
  font-size: 8px;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.figure-zoom:hover .zoom-hint,
.figure-zoom:focus-visible .zoom-hint {
  opacity: 1;
}

figcaption {
  padding: 18px 24px;
  color: var(--muted);
  border-top: 1px solid var(--line-light);
  font-size: 12px;
  line-height: 1.55;
}

figcaption span {
  margin-right: 8px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.setup-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.setup-grid article {
  padding: 24px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.34);
}

.setup-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 23px;
  display: grid;
  place-items: center;
  color: #275038;
  border-radius: 9px;
  background: rgba(141, 220, 54, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.setup-grid h3 {
  font-size: 16px;
}

.setup-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.section-results {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(114, 215, 204, 0.07), transparent 25%),
    var(--ink);
}

.results-heading {
  max-width: 820px;
  margin: 0 auto clamp(80px, 10vw, 140px);
  text-align: center;
}

.results-heading p {
  max-width: 590px;
  margin: 22px auto 0;
  color: var(--muted-on-dark);
  font-size: 17px;
}

.result-block {
  padding: 70px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(38px, 6vw, 84px);
  border-top: 1px solid var(--line-dark);
}

.result-block:last-child {
  padding-bottom: 0;
}

.result-block-reverse {
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
}

.result-block-reverse .result-copy {
  order: 2;
}

.result-block-reverse .result-visual {
  order: 1;
}

.rq-label {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.result-copy h3 {
  margin: 18px 0;
  font-size: clamp(1.8rem, 3vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.result-copy > p {
  margin: 0;
  color: var(--muted-on-dark);
}

.result-callout {
  margin-top: 30px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line-dark);
}

.result-callout strong {
  color: var(--accent);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.result-callout span {
  color: #9aaba2;
  font-size: 11px;
  line-height: 1.4;
}

.result-visual {
  overflow: hidden;
  color: var(--text);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.25);
}

.result-visual .figure-zoom {
  padding: 18px;
}

.figure-tabs {
  padding: 10px;
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--line-light);
  background: #f5f5f1;
}

.figure-tabs button {
  padding: 8px 12px;
  color: #6a746f;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.figure-tabs button[aria-selected="true"] {
  color: #112019;
  background: var(--accent);
}

.figure-panel[hidden] {
  display: none;
}

.compact-figure .figure-zoom {
  padding-block: 28px;
}

.mini-findings {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.mini-findings div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b7c5be;
  font-size: 13px;
}

.mini-findings i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 128, 104, 0.5);
}

.mini-findings div:last-child i {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(114, 215, 204, 0.5);
}

.result-note {
  margin-top: 28px;
  padding: 17px 18px;
  color: #c9d7cf;
  border: 1px solid rgba(185, 245, 107, 0.18);
  border-radius: 12px;
  background: rgba(185, 245, 107, 0.06);
  font-size: 13px;
}

.section-artifact {
  background: var(--ink-2);
}

.section-artifact .page-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(50px, 9vw, 130px);
}

.artifact-intro {
  align-self: start;
  position: sticky;
  top: 120px;
}

.artifact-intro p {
  margin: 24px 0 28px;
  color: var(--muted-on-dark);
}

.artifact-links {
  display: grid;
}

.artifact-links > a {
  padding: 26px 0;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line-dark);
  transition: padding 180ms ease, color 180ms ease;
}

.artifact-links > a:first-child {
  border-top: 1px solid var(--line-dark);
}

.artifact-links > a:hover {
  padding-left: 8px;
  color: var(--accent);
}

.artifact-count {
  color: #66766e;
  font-family: var(--font-mono);
  font-size: 10px;
}

.artifact-links h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.artifact-links p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 12px;
}

.artifact-links b {
  font-size: 16px;
}

.section-citation {
  background: var(--paper-2);
}

.citation-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.citation-grid .section-heading p {
  max-width: 380px;
  margin-top: 22px;
}

.bibtex-card {
  overflow: hidden;
  color: #dce9e1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.bibtex-topbar {
  height: 48px;
  padding: 0 16px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7f9087;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.copy-button {
  padding: 6px 10px;
  color: var(--accent);
  border: 1px solid rgba(185, 245, 107, 0.22);
  border-radius: 7px;
  background: rgba(185, 245, 107, 0.06);
  font-family: var(--font-mono);
  font-size: 9px;
  cursor: pointer;
}

.bibtex-card pre {
  margin: 0;
  padding: 25px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.75;
  tab-size: 2;
}

.site-footer {
  padding: 35px 0;
  color: var(--muted-on-dark);
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
}

.site-footer .page-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-brand {
  color: var(--text-on-dark);
}

.site-footer p {
  margin: 0;
  font-size: 10px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 11px;
  font-weight: 700;
}

.figure-dialog {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  overflow: visible;
  color: var(--text);
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.58);
}

.figure-dialog::backdrop {
  background: rgba(2, 8, 6, 0.86);
  backdrop-filter: blur(10px);
}

.dialog-image-wrap {
  max-height: calc(94vh - 58px);
  padding: 24px;
  overflow: auto;
}

.figure-dialog img {
  width: 100%;
  min-width: 760px;
}

.figure-dialog p {
  margin: 0;
  padding: 15px 24px;
  color: var(--muted);
  border-top: 1px solid var(--line-light);
  font-size: 12px;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: var(--ink-2);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .7, .2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  .nav-links {
    gap: 15px;
  }

  .hero-grid {
    grid-template-columns: 1fr 380px;
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(3rem, 7vw, 4.65rem);
  }

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

  .result-block,
  .result-block-reverse {
    grid-template-columns: 1fr;
  }

  .result-block-reverse .result-copy,
  .result-block-reverse .result-visual {
    order: initial;
  }

  .result-copy {
    max-width: 720px;
  }
}

@media (max-width: 820px) {
  :root {
    --page: min(100% - 28px, 680px);
  }

  .site-nav {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 15px;
  }

  .nav-code {
    display: none;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    padding: 11px;
    display: grid;
    align-content: center;
    gap: 5px;
    color: var(--text-on-dark);
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-toggle span:not(.sr-only) {
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 82px;
    right: 10px;
    left: 10px;
    padding: 22px;
    display: grid;
    gap: 4px;
    visibility: hidden;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    background: rgba(8, 18, 15, 0.97);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .nav-links.open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-links a {
    padding: 10px 4px;
    font-size: 15px;
  }

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

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    width: min(100%, 520px);
    margin: 10px auto 0;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats div {
    border-bottom: 1px solid var(--line-dark);
  }

  .hero-stats div:nth-child(2) {
    border-right: 0;
  }

  .hero-stats div:first-child,
  .hero-stats div:nth-child(3) {
    padding-left: 0;
  }

  .two-column-intro,
  .section-heading-wide,
  .section-artifact .page-shell,
  .citation-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .section-heading-wide {
    align-items: start;
  }

  .property-cards {
    grid-template-columns: 1fr;
  }

  .artifact-intro {
    position: static;
  }

  .site-footer .page-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 3.55rem);
  }

  .hero-lede {
    font-size: 16px;
  }

  .authors {
    gap-inline: 12px;
    font-size: 13px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .text-link {
    flex-basis: 100%;
    margin: 5px 0 0;
    text-align: center;
  }

  .energy-console {
    padding: 12px;
    border-radius: 18px;
    transform: none;
  }

  .power-chart svg {
    height: 130px;
  }

  .console-metrics div {
    padding: 8px 6px;
  }

  .console-metrics strong {
    font-size: 7px;
  }

  .hero-stats div {
    padding: 20px 13px;
  }

  .hero-stats div:first-child,
  .hero-stats div:nth-child(3) {
    padding-left: 0;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading h2,
  .results-heading h2,
  .artifact-intro h2 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .property-card {
    padding: 23px;
    grid-template-columns: 1fr;
  }

  .paper-figure .figure-zoom,
  .result-visual .figure-zoom {
    padding: 10px;
  }

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

  .result-block {
    padding: 58px 0;
  }

  .result-callout {
    grid-template-columns: 1fr;
  }

  .artifact-links > a {
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
  }

  .bibtex-card pre {
    padding: 18px;
    font-size: 9px;
  }
}

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

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

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