:root {
  --ink: #07080a;
  --ink-soft: #15181d;
  --graphite: #222831;
  --paper: #f6f7f2;
  --white: #ffffff;
  --line: #d8ddd4;
  --line-dark: rgba(255, 255, 255, 0.18);
  --muted: #68706b;
  --muted-dark: #aab2ad;a
  --zinc: #79c7d7;
  --zinc-deep: #315968;
  --copper: #b46f45;
  --manganese: #6f8068;
  --safety: #d4df73;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
  --sans: "Aptos", "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

sub,
sup {
  line-height: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--ink);
  text-decoration: none;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 24px;
  color: var(--white);
  background: rgba(7, 8, 10, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.scrolled {
  background: rgba(246, 247, 242, 0.94);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 178px;
  height: 54px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  z-index: 120;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0;
  border-bottom: 2px solid transparent;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.nav-dropdown:hover > .nav-dropdown-toggle {
  border-bottom-color: currentColor;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(7, 8, 10, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.site-header.scrolled .nav-dropdown-menu {
  background: rgba(246, 247, 242, 0.98);
  border-color: var(--line);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  min-height: auto;
  padding: 10px 18px;
  font-size: 0.8rem;
  border-bottom: none;
  transform: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  border-bottom: none;
  transform: none;
}

.site-header.scrolled .nav-dropdown-menu a:hover,
.site-header.scrolled .nav-dropdown-menu a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.04);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  padding: 0;
  z-index: 130;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 6px auto;
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.section,
.page-hero {
  position: relative;
}

.section {
  padding: 112px 0;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-paper {
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(7, 8, 10, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

.hero {
  min-height: 88svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 118px 0 78px;
  isolation: isolate;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  opacity: 0.7;
}

.hero-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-field.is-fallback {
  background:
    radial-gradient(circle at 50% 42%, rgba(121, 199, 215, 0.28), transparent 34%),
    radial-gradient(circle at 50% 58%, rgba(180, 111, 69, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(7, 8, 10, 0.92), rgba(7, 8, 10, 0.56));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.92), rgba(7, 8, 10, 0.64) 52%, rgba(7, 8, 10, 0.9)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 22px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 64px;
}

.hero-copy,
.hero-instrument,
.page-hero-panel,
.identity-panel,
.contact-panel,
.contact-form {
  min-width: 0;
}

.hero-copy {
  width: 100%;
  max-width: 1100px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-dark .eyebrow,
.page-hero .eyebrow {
  color: var(--safety);
}

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

h1,
h2,
h3 {
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: 4.65rem;
  font-weight: 900;
  max-width: 860px;
}

h2 {
  margin-bottom: 24px;
  font-size: 2.65rem;
  font-weight: 900;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.16rem;
  font-weight: 850;
}

.hero-lede,
.page-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.button-quiet {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.hero-instrument,
.page-hero-panel,
.identity-panel,
.contact-panel,
.research-card,
.principle,
.publication,
.validation,
.statement,
.detail-card,
.test-card,
.schematic-explorer,
.schematic-stage,
.chart-panel,
.contact-form {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, filter 180ms ease;
}

.hero-instrument,
.page-hero-panel,
.identity-panel,
.contact-panel {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-instrument {
  padding: 18px;
}

.instrument-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.cell-visual {
  position: relative;
  height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(121, 199, 215, 0.12), transparent 34%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 20px),
    rgba(7, 8, 10, 0.5);
}

.cell-visual::before {
  content: "";
  position: absolute;
  inset: 34px 74px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2) 2px, transparent 2px, transparent 18px);
  opacity: 0.7;
}

.cell-visual::after {
  content: "";
  position: absolute;
  inset: 92px 118px 36px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(255, 255, 255, 0.86);
  mix-blend-mode: screen;
  opacity: 0.16;
}

.layer {
  position: absolute;
  left: 32px;
  right: 32px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.layer-anode {
  top: 76px;
  background: linear-gradient(90deg, transparent, rgba(121, 199, 215, 0.34), transparent);
}

.layer-electrolyte {
  top: 132px;
  background: linear-gradient(90deg, transparent, rgba(212, 223, 115, 0.28), transparent);
}

.layer-cathode {
  top: 188px;
  background: linear-gradient(90deg, transparent, rgba(180, 111, 69, 0.34), transparent);
}

.flow-line {
  position: absolute;
  width: 2px;
  height: 190px;
  top: 52px;
  background: linear-gradient(180deg, transparent, var(--zinc), var(--safety), var(--copper), transparent);
  opacity: 0.72;
  animation: pulse-line 3.5s ease-in-out infinite;
}

.flow-a { left: 26%; }
.flow-b { left: 50%; animation-delay: 0.6s; }
.flow-c { left: 74%; animation-delay: 1.2s; }

@keyframes pulse-line {
  0%, 100% { transform: scaleY(0.72); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 0.9; }
}

.metric-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.section-dark .metric-grid,
.hero-instrument .metric-grid,
.page-hero-panel .metric-grid {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.16);
}

.metric-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.metric-grid.large {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 54px;
}

.metric-grid div {
  min-height: 108px;
  padding: 18px;
  background: var(--paper);
}

.section-dark .metric-grid div,
.hero-instrument .metric-grid div,
.page-hero-panel .metric-grid div {
  background: rgba(7, 8, 10, 0.76);
}

.metric-grid dt {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-dark .metric-grid dt,
.hero-instrument .metric-grid dt,
.page-hero-panel .metric-grid dt {
  color: var(--muted-dark);
}

.metric-grid dd {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.15;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: 72px;
}

.section-kicker h2,
.section-heading h2 {
  max-width: 820px;
}

.section-heading {
  margin-bottom: 48px;
}

.prose {
  color: #20251f;
  font-size: 1.05rem;
}

.prose p {
  margin-bottom: 20px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.architecture {
  background: var(--white);
}

.architecture-grid,
.principle-grid,
.publication-grid,
.validation-grid,
.two-column-cards,
.detail-grid {
  display: grid;
  gap: 18px;
}

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

.research-card,
.principle,
.publication,
.validation,
.statement,
.detail-card {
  position: relative;
  min-height: 235px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.card-index {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.research-card p,
.principle p,
.publication p,
.validation p,
.statement p,
.detail-card p {
  color: #3b423d;
}

.origin {
  padding: 120px 0;
  overflow: clip;
}

.origin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
  gap: 84px;
  align-items: start;
}

.origin-sticky {
  position: sticky;
  top: 110px;
}

.origin-device {
  position: relative;
  height: 500px;
  border: 1px solid var(--line-dark);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 24px),
    linear-gradient(135deg, rgba(121, 199, 215, 0.1), rgba(180, 111, 69, 0.08)),
    var(--ink-soft);
  overflow: hidden;
}

.device-frame {
  position: absolute;
  inset: 72px 54px 80px;
  border: 2px solid rgba(255, 255, 255, 0.36);
}

.device-frame::before,
.device-frame::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.22);
}

.device-frame::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
}

.device-frame::after {
  left: 22px;
  right: 22px;
  top: 50%;
  height: 2px;
}

.battery-pack {
  position: absolute;
  width: 42px;
  height: 156px;
  bottom: 118px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  transition: background 280ms ease, box-shadow 280ms ease, transform 280ms ease;
}

.battery-pack::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 10px;
  right: 10px;
  height: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.cell-one { left: 106px; }
.cell-two { left: 156px; }
.cell-three { left: 206px; }
.cell-four { left: 256px; }

.thermal-line {
  position: absolute;
  left: 260px;
  bottom: 286px;
  width: 118px;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.question-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95) 8px, transparent 8px, transparent 20px);
  transition: transform 280ms ease, opacity 280ms ease;
}

.origin-device[data-state="load"] .battery-pack {
  transform: translateY(-12px);
}

.origin-device[data-state="incident"] .cell-four {
  background: rgba(180, 111, 69, 0.72);
  box-shadow: 0 0 50px rgba(180, 111, 69, 0.68);
}

.origin-device[data-state="incident"] .thermal-line {
  transform: scaleX(1);
  box-shadow: 0 0 32px rgba(180, 111, 69, 0.8);
}

.origin-device[data-state="question"] .question-core,
.origin-device[data-state="mission"] .question-core {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1);
}

.origin-device[data-state="mission"] .battery-pack {
  background: rgba(121, 199, 215, 0.2);
}

.origin-caption {
  margin: 16px 0 0;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.story-step {
  min-height: 48vh;
  padding: 28px 0 70px;
  border-top: 1px solid var(--line-dark);
}

.story-step span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--safety);
  font-family: var(--mono);
  font-weight: 900;
}

.story-step p {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.philosophy,
.future {
  background: var(--white);
}

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

.principle,
.validation {
  min-height: 220px;
  background: var(--white);
}

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

.roadmap-lanes article {
  min-height: 255px;
  padding: 26px;
  background: var(--paper);
}

.roadmap-lanes span,
.roadmap-item span,
.publication span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-action {
  margin-top: 34px;
}

.page-hero {
  min-height: 68svh;
  display: grid;
  align-items: center;
  padding: 132px 0 72px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.94), rgba(7, 8, 10, 0.74)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.055) 1px, transparent 1px, transparent 24px);
}

.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 62px;
  align-items: center;
  z-index: 1;
}

.page-hero-panel,
.identity-panel,
.contact-panel {
  padding: 24px;
}

.identity-panel img {
  margin-bottom: 28px;
  background: var(--white);
}

.identity-panel dl,
.contact-panel p {
  margin: 0;
}

.identity-panel div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
}

.identity-panel dt {
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.identity-panel dd {
  margin: 0;
  font-weight: 800;
}

.identity-panel a {
  color: var(--white);
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .hero-grid,
  .page-hero-grid,
  .split-layout,
  .origin-layout,
  .chart-layout,
  .contact-form-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .page-hero-grid,
  .split-layout,
  .origin-layout,
  .chart-layout,
  .contact-form-layout {
    gap: 36px;
  }

  .architecture-grid,
  .publication-grid,
  .testing-grid,
  .detail-grid,
  .roadmap-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle-grid,
  .validation-grid,
  .two-column-cards {
    grid-template-columns: 1fr;
  }

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

  .roadmap-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .origin-sticky {
    position: static;
    top: auto;
  }
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  min-width: 0;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(7, 8, 10, 0.16);
  }

  .hero-instrument:hover,
  .page-hero-panel:hover,
  .identity-panel:hover,
  .contact-panel:hover,
  .research-card:hover,
  .principle:hover,
  .publication:hover,
  .validation:hover,
  .statement:hover,
  .detail-card:hover,
  .test-card:hover,
  .schematic-explorer:hover,
  .chart-panel:hover,
  .contact-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(7, 8, 10, 0.16);
    border-color: rgba(7, 8, 10, 0.14);
  }

  .research-card:hover,
  .principle:hover,
  .publication:hover,
  .validation:hover,
  .statement:hover,
  .detail-card:hover,
  .test-card:hover {
    background: #ffffff;
  }

  .schematic-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(7, 8, 10, 0.14);
  }

  .schematic-layer:hover {
    transform: translateX(4px);
    box-shadow: 0 20px 42px rgba(7, 8, 10, 0.14);
  }
}

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

.detail-card {
  min-height: 430px;
}

.detail-notes {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.detail-note {
  margin: 0;
  color: #424943;
}

.chart-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 56px;
  align-items: center;
}

.schematic-explorer {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(7, 8, 10, 0.08);
}

.schematic-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.schematic-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.schematic-button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.schematic-stage {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 24%, rgba(121, 199, 215, 0.18), transparent 30%),
    linear-gradient(180deg, #fbfcf7 0%, #f2f4ef 100%);
}

.schematic-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(7, 8, 10, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
}

.schematic-stack {
  position: absolute;
  inset: 54px 72px 82px;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.schematic-layer {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border: 1px solid rgba(7, 8, 10, 0.12);
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.schematic-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.schematic-layer span {
  position: relative;
  z-index: 1;
}

.schematic-layer-anode::before {
  background: linear-gradient(90deg, rgba(121, 199, 215, 0.92), rgba(121, 199, 215, 0.2));
}

.schematic-layer-electrolyte::before {
  background: linear-gradient(90deg, rgba(212, 223, 115, 0.9), rgba(212, 223, 115, 0.18));
}

.schematic-layer-cathode::before {
  background: linear-gradient(90deg, rgba(180, 111, 69, 0.92), rgba(180, 111, 69, 0.18));
}

.schematic-flow {
  position: absolute;
  left: 88px;
  right: 88px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(7, 8, 10, 0.15), transparent);
  overflow: hidden;
}

.schematic-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 180px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
  filter: blur(1px);
}

.schematic-flow-a {
  top: 126px;
}

.schematic-flow-b {
  top: 206px;
}

.schematic-flow-c {
  top: 286px;
}

.schematic-stage[data-layer="system"] .schematic-flow::after {
  animation: schematic-shift 4.6s linear infinite;
}

.schematic-stage[data-layer="anode"] .schematic-flow-a::after,
.schematic-stage[data-layer="electrolyte"] .schematic-flow-b::after,
.schematic-stage[data-layer="cathode"] .schematic-flow-c::after {
  animation: schematic-shift 2.8s linear infinite;
}

.schematic-stage[data-layer="system"] .schematic-layer {
  opacity: 1;
  filter: none;
}

.schematic-stage[data-layer="anode"] .schematic-layer-anode,
.schematic-stage[data-layer="electrolyte"] .schematic-layer-electrolyte,
.schematic-stage[data-layer="cathode"] .schematic-layer-cathode {
  transform: translateX(10px) scale(1.01);
  box-shadow: 0 18px 40px rgba(7, 8, 10, 0.12);
}

.schematic-stage[data-layer="anode"] .schematic-layer:not(.schematic-layer-anode),
.schematic-stage[data-layer="electrolyte"] .schematic-layer:not(.schematic-layer-electrolyte),
.schematic-stage[data-layer="cathode"] .schematic-layer:not(.schematic-layer-cathode) {
  opacity: 0.44;
  filter: grayscale(0.2);
}

.schematic-readout {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(7, 8, 10, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 0.95rem;
  box-shadow: 0 12px 28px rgba(7, 8, 10, 0.08);
}

@keyframes schematic-shift {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

.chart-panel {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(7, 8, 10, 0.08);
}

.chart-panel canvas {
  width: 100%;
  height: auto;
  background: #fbfcf7;
}

.testing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.test-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.test-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--zinc), var(--safety), var(--copper));
}

.test-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.16rem;
  color: var(--ink);
}

.test-card p {
  margin: 0;
  color: #424943;
  font-size: 0.96rem;
  line-height: 1.5;
}

.detail-note:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

caption {
  padding: 18px;
  text-align: left;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 800;
  text-transform: uppercase;
}

th,
td {
  padding: 18px;
  border-top: 1px solid var(--line);
  text-align: left;
}

thead th {
  background: var(--ink);
  color: var(--white);
}

tbody th {
  font-weight: 900;
}

.note,
.patent-disclaimer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.doi {
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

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

.roadmap-stack {
  display: grid;
  gap: 12px;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.roadmap-item.finished {
  background: rgba(121, 199, 215, 0.12);
  border-color: rgba(121, 199, 215, 0.3);
}

.roadmap-item.in-progress {
  background: rgba(212, 223, 115, 0.15);
  border-color: rgba(212, 223, 115, 0.4);
}

.roadmap-item.last-complete {
  background: rgba(111, 128, 104, 0.12);
  border-color: rgba(111, 128, 104, 0.3);
}

.roadmap-item span {
  margin: 0;
}

.roadmap-item h3,
.roadmap-item p {
  margin: 0;
}

.contact-panel {
  color: var(--white);
}

.email-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--white);
  font-size: 1.45rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.contact-form-layout {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 72px;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-form label {
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #aeb7ae;
  border-radius: 0;
  background: #fbfcf7;
  color: var(--ink);
  padding: 13px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 12px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    height: 68px;
    padding: 0 14px;
  }

  .brand {
    width: 150px;
    height: 46px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;

    display: grid;
    align-content: start;
    gap: 0;

    padding: 24px 14px 48px;

    background: rgba(246, 247, 242, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-top: 1px solid var(--line);
    box-shadow: 0 22px 50px rgba(7, 8, 10, 0.16);

    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    transition:
      transform 180ms ease,
      opacity 180ms ease,
      visibility 180ms ease;

    z-index: 120;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    min-height: 58px;
    padding: 0 8px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: none !important;
  }

  .nav-dropdown-toggle::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 400;
  }

  .nav-dropdown.active .nav-dropdown-toggle::after {
    content: "−";
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
    display: none;
  }

  .site-header.scrolled .nav-dropdown-menu {
    background: transparent;
    border: none;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 0 8px 0 24px;
    font-size: 0.95rem;
    border-bottom: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--ink);
  }

  .nav-open .site-nav .nav-dropdown-menu a {
    color: var(--ink);
  }

  .nav-open .site-header {
    background: var(--paper);
    color: var(--ink);
    border-bottom-color: var(--line);
  }

  /* Blur content behind expanded menu */
body.nav-open main,
body.nav-open .hero,
body.nav-open .page-hero,
body.nav-open .section {
  opacity: 0.35;
  transition: opacity 180ms ease;
}

  .hero,
  .page-hero {
    min-height: 88svh;
    padding-top: 104px;
  }

  .section {
    padding: 78px 0;
  }

  h1 {
    font-size: 2.72rem;
  }

  h2 {
    font-size: 1.92rem;
  }

  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split-layout,
  .origin-layout,
  .chart-layout,
  .contact-form-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .architecture-grid,
  .publication-grid,
  .testing-grid,
  .detail-grid,
  .roadmap-lanes {
    grid-template-columns: 1fr;
  }

  .hero-lede,
  .page-hero p,
  .prose,
  .story-step p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }

  .metric-grid.compact,
  .metric-grid.large,
  .principle-grid,
  .validation-grid,
  .roadmap-lanes,
  .two-column-cards {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    gap: 14px;
  }

  .detail-card {
    min-height: auto;
  }

  .metric-grid div {
    min-height: 92px;
  }

  .origin {
    padding: 82px 0;
  }

  .origin-layout {
    gap: 24px;
  }

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

  .origin-sticky {
    position: sticky;
    top: 82px;
    z-index: 0;
    margin-bottom: -150px;
  }

  .origin-device {
    height: 340px;
    max-width: 440px;
    margin-inline: auto;
    transform: scale(1.16);
    transform-origin: center top;
    opacity: 0.92;
  }

  .device-frame {
    inset: 54px 34px 60px;
  }

  .battery-pack {
    width: 32px;
    height: 112px;
    bottom: 90px;
  }

  .cell-one { left: 64px; }
  .cell-two { left: 104px; }
  .cell-three { left: 144px; }
  .cell-four { left: 184px; }

  .thermal-line {
    left: 192px;
    bottom: 212px;
    width: 92px;
  }

  .story-step {
    min-height: auto;
    margin-bottom: 14px;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 24px rgba(7, 8, 10, 0.1);
  }

  .story-step h3,
  .story-step p {
    color: rgba(7, 8, 10, 0.94);
  }

  .roadmap-item {
    grid-template-columns: 1fr;
  }

  .identity-panel div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .email-link {
    font-size: 1.16rem;
  }

  .page-hero-panel,
  .identity-panel,
  .contact-panel {
    width: 100%;
  }

  .hero-instrument {
    padding: 14px;
  }

  .hero-field.is-fallback {
    background:
      radial-gradient(circle at 50% 40%, rgba(121, 199, 215, 0.32), transparent 30%),
      radial-gradient(circle at 50% 60%, rgba(180, 111, 69, 0.22), transparent 26%),
      linear-gradient(135deg, rgba(7, 8, 10, 0.95), rgba(7, 8, 10, 0.68));
  }

  .cell-visual {
    height: 220px;
  }

  .instrument-topline {
    flex-direction: column;
    gap: 6px;
  }

  .roadmap-item {
    padding: 22px;
  }

  .testing-grid,
  .publication-grid,
  .detail-grid,
  .architecture-grid {
    gap: 14px;
  }

  .schematic-stage {
    min-height: 320px;
  }

  .schematic-stack {
    inset: 42px 20px 68px;
  }

  .schematic-flow {
    left: 24px;
    right: 24px;
  }

  .schematic-flow-a { top: 108px; }
  .schematic-flow-b { top: 174px; }
  .schematic-flow-c { top: 240px; }

}

@media (min-width: 761px) {
  .nav-dropdown.active .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

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

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

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 80px 0 32px;
  background:
    linear-gradient(
      180deg,
      var(--ink-soft) 0%,
      var(--ink) 100%
    );
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(121,199,215,.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      0deg,
      rgba(121,199,215,.04) 1px,
      transparent 1px
    );

  background-size: 44px 44px;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 500px;
  height: 2px;
  transform: translateX(-50%);

  background: linear-gradient(
    90deg,
    transparent,
    var(--zinc),
    var(--copper),
    transparent
  );
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand img {
  width: 220px;
  height: auto;
  margin-bottom: 20px;
  background: var(--white);
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted-dark);
  font-size: 1rem;
  line-height: 1.7;
}

.footer-meta {
  display: grid;
  gap: 24px;
}

.footer-meta div {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-label {
  display: block;
  margin-bottom: 8px;

  color: var(--safety);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-meta strong {
  font-size: 1rem;
  font-weight: 850;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted-dark);
  font-size: .9rem;
}

.footer-bottom nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom a {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}

.footer-bottom a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;

  background: var(--zinc);
  transition: width .25s ease;
}

.footer-bottom a:hover::after {
  width: 100%;
}

/* Funding Bar */
.funded-bar {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.funded-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.funded-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.funded-partner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.funded-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.funded-partner span {
  font-weight: 800;
  color: var(--ink);
}

@media (max-width: 760px) {
  .funded-bar-inner {
    flex-direction: column;
    gap: 14px;
  }

  .funded-logo {
    height: 34px;
  }
}