/* ==========================================================================
   Protonas — protonas.tech
   Dark industrial design system. Tokens named after fuel cell anatomy.
   ========================================================================== */

:root {
  /* Surfaces — carbon/graphite, tinted toward green like a bipolar plate */
  --carbon: #090D0A;        /* page background */
  --graphite: #0E1411;      /* raised panels, cards */
  --plate: #141C17;         /* hover / deeper panels */
  --membrane: #1D2620;      /* mid surface, dividers */
  --line: #1B2721;          /* hairline borders */
  --line-strong: #2B3D33;

  /* Accents */
  --volt: #8DC63F;          /* logo green — current, energy, action */
  --volt-dim: #6FA332;
  --moss: #2E5E38;          /* deep supporting green — fills, gradients */
  --catalyst: #F5A81C;      /* logo orange — used rarely, as a spark */

  /* Text */
  --mist: #ECF2ED;          /* headings, primary */
  --fog: #9CAda1;           /* body secondary */
  --ash: #708578;           /* captions, fine print — 5.0:1 on carbon (WCAG AA) */

  /* Type */
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  /* Rhythm */
  --space-section: clamp(3rem, 5vw, 4.5rem);
  --space-block: clamp(1.75rem, 3.25vw, 2.75rem);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1180px;

  --ease-out: cubic-bezier(0.22, 0.68, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--carbon);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(141, 198, 63, 0.28); color: var(--mist); }

/* Scrollbar hidden — scrolling still works via wheel, touch, keyboard, and drag */
html {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* legacy Edge/IE */
}
::-webkit-scrollbar {         /* Chrome, Safari, Edge */
  width: 0;
  height: 0;
  display: none;
}

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

a { color: var(--volt); text-decoration: none; }
a:hover { color: #A6DA5E; }

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--mist);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 5.8vw, 4.6rem); }
h2 { font-size: clamp(1.95rem, 3.5vw, 2.9rem); }
h3 { font-size: clamp(1.22rem, 1.9vw, 1.45rem); letter-spacing: -0.012em; line-height: 1.25; }
h4 { font-size: 1.05rem; letter-spacing: -0.008em; }

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  color: var(--fog);
  max-width: 50ch;
}

/* Mono eyebrow — reads like a datasheet field label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--volt);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--volt), rgba(141, 198, 63, 0.25));
  flex: none;
}

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

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(9, 13, 10, 0.86);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 2rem;
}

/* The Protonas badge, reproduced faithfully: white rounded card,
   orange + green bars above black wordmark. */
/* Logo — the official Protonas mark, on a white chip so the black
   wordmark reads correctly against the dark page. */
.logo-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 7px 11px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.logo-badge img {
  display: block;
  height: 26px;
  width: auto;
}
.logo-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.site-footer .logo-badge img { height: 24px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.5rem);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  padding: 0.4rem 0;
  background-image: linear-gradient(var(--volt), var(--volt));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  transition: color 0.25s var(--ease-out), background-size 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--mist); background-size: 100% 1px; }
.nav-links a[aria-current="page"] {
  color: var(--mist);
  background-size: 100% 1px;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--carbon) !important;
  background: var(--volt) !important;
  background-image: none !important;
  padding: 0.7rem 1.4rem !important;
  border-radius: 7px;
  transition: filter 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.nav-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(141, 198, 63, 0.22);
}
.nav-cta:active { transform: translateY(0); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--mist);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 16, 13, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.5rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; padding-top: 1rem; }
  .nav-links a { display: block; padding: 1rem 0; border-bottom: none; }
  .nav-cta { text-align: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(84px + clamp(2rem, 4vw, 3.5rem)) 0 var(--space-section);
  overflow: hidden;
}

/* Faint plate-channel texture: vertical flow-field grooves like a bipolar plate */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 78px,
    rgba(141, 198, 63, 0.045) 78px 79px
  );
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 198, 63, 0.13), transparent 65%);
  top: -160px; right: -140px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Company building (about hero) */
.building-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--graphite);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.building-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* real building, so grade lightly — just enough to sit on the dark page */
  filter: saturate(0.95) brightness(0.94) contrast(1.03);
}
.building-shot figcaption {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ash);
  padding: 0.95rem 1.15rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 960px) {
  .building-shot { max-width: 420px; }
  .building-shot img { aspect-ratio: 3 / 2; }
}

/* Applications-led hero (home) */
.hero-apps .section-head {
  max-width: 760px;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.hero-apps h1 { margin: 0 0 1.4rem; max-width: 18ch; }
.hero-apps .lede { max-width: 56ch; }

.hero h1 { margin: 0 0 1.4rem; max-width: 15ch; }
.hero .lede { margin-bottom: 2.2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  touch-action: manipulation;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              color 0.25s var(--ease-out), transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out), filter 0.25s var(--ease-out);
}
.btn:active { transform: translateY(0) scale(0.985); }
.btn-primary {
  background: var(--volt);
  color: var(--carbon);
}
.btn-primary:hover {
  filter: brightness(1.08);
  color: var(--carbon);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(141, 198, 63, 0.22);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--mist);
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(141, 198, 63, 0.55);
  color: var(--volt);
  background: rgba(141, 198, 63, 0.05);
  transform: translateY(-2px);
}

/* ==========================================================================
   Fuel cell diagram (signature element)
   ========================================================================== */

.cell-diagram {
  position: relative;
  background: linear-gradient(165deg, #101613, #0A0F0C 75%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 2.8vw, 2.25rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 40px 100px rgba(0, 0, 0, 0.5);
}
.cell-diagram img { width: 100%; height: auto; display: block; }
.cell-diagram figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cell-diagram figcaption .live-dot {
  color: var(--volt);
}
.cell-diagram figcaption .live-dot::before {
  content: "●";
  margin-right: 0.45rem;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.diagram-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--ash);
}
.diagram-label-bright { fill: var(--fog); }

/* Particles travel along CSS motion paths defined per-particle in the SVG */
.particle {
  animation: travel var(--dur, 6s) linear infinite;
  animation-delay: var(--delay, 0s);
  offset-rotate: 0deg;
}
@keyframes travel {
  0% { offset-distance: 0%; opacity: 0; }
  6% { opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .particle { animation: none; opacity: 0.85; offset-distance: 40%; }
  .cell-diagram figcaption .live-dot::before { animation: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: var(--space-section) 0; }
.section-tight { padding: var(--space-block) 0; }
/* A hero already carries its own bottom padding — don't stack a full section on top */
.hero + .section,
.hero + .section-tight { padding-top: clamp(1.5rem, 2.5vw, 2.25rem); }
.section-panel {
  background: var(--graphite);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 700px; margin-bottom: var(--space-block); }
.section-head h2 { margin-bottom: 1.1rem; }

/* Datasheet strip — mono figures with hairline separators */
.datasheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.datasheet > div {
  padding: 1.6rem 1.4rem;
  border-left: 1px solid var(--line);
}
.datasheet > div:first-child { border-left: none; }
.datasheet .value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--mist);
  display: block;
  margin-bottom: 0.35rem;
}
.datasheet .value em { color: var(--volt); font-style: normal; }
.datasheet .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}
@media (max-width: 780px) {
  .datasheet { grid-template-columns: 1fr 1fr; }
  .datasheet > div:nth-child(3) { border-left: none; }
  .datasheet > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 960px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(170deg, var(--graphite), #0C110E 80%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.028);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px rgba(0, 0, 0, 0.35);
}
.card h3 { display: flex; align-items: center; gap: 0.8rem; }
.card .card-icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 10px;
  background: rgba(141, 198, 63, 0.09);
  border: 1px solid rgba(141, 198, 63, 0.25);
  display: grid;
  place-items: center;
  color: var(--volt);
}
.card p { flex: 1; }
.card-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.4rem;
  border: 1px solid var(--line);
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) saturate(0.85) contrast(1.06) brightness(0.82);
  transition: transform 0.5s ease;
}
.card:hover .card-photo img { transform: scale(1.05); }
.card-photo .photo-grade { position: absolute; inset: 0; }
.card .card-spec {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--volt);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
/* Card link — reads as a button so it's obviously clickable */
.card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: auto;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: #C9D2CB;
  color: #0B100D;
  text-align: center;
  touch-action: manipulation;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out),
              transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.card-link::after {
  content: "→";
  transition: transform 0.25s var(--ease-out);
}
.card-link:hover,
.card-link:focus-visible {
  background: var(--volt);
  color: #0B100D;
  box-shadow: 0 8px 24px rgba(141, 198, 63, 0.18);
}
.card-link:hover::after { transform: translateX(4px); }
.card-link:active { transform: translateY(1px); }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ash);
  width: 42%;
}
.spec-table td { color: var(--mist); font-size: 0.98rem; }
.spec-table td .unit { color: var(--volt); font-family: var(--font-mono); font-size: 0.85em; }

/* Numbered process — used only where content is a true sequence */
.process { list-style: none; counter-reset: step; display: grid; gap: 0; }
.process li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.process li:last-child { border-bottom: none; }
.process li::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--volt);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
}
.process h4 { margin-bottom: 0.4rem; }

/* Quote band */
.quote-band {
  border-left: 3px solid var(--volt);
  padding: 0.6rem 0 0.6rem 2rem;
  max-width: 780px;
}
.quote-band blockquote,
.quote-band .statement {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  color: var(--mist);
  line-height: 1.45;
}
.quote-band cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

/* Application feature rows */
.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(2rem, 3.5vw, 3rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.app-row:first-of-type { border-top: none; }
@media (max-width: 900px) { .app-row { grid-template-columns: 1fr; } }
.app-row h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.app-row .app-index {
  font-family: var(--font-mono);
  color: var(--catalyst);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.9rem;
  display: block;
}
.app-row ul { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.7rem; }
.app-row ul li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--fog);
}
.app-row ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--volt);
}
.app-visual {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 960px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
}
.team-card .team-role {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
  display: block;
  margin: 0.4rem 0 1rem;
}
.team-avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--moss), var(--plate));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--volt);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.08), 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.3s var(--ease-out);
}
.team-card:hover .team-avatar {
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.22), 0 10px 24px rgba(0, 0, 0, 0.4);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(0.92) contrast(1.03);
}
.team-card .team-meta {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ash);
  letter-spacing: 0.04em;
}

/* Timeline (news) — editorial record */
.timeline { position: relative; padding-left: 2.6rem; display: grid; gap: 4.5rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(141, 198, 63, 0.7), var(--line) 75%);
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-2.6rem + 2.5px);
  top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 5px rgba(141, 198, 63, 0.1);
}
.timeline-item time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  display: block;
  margin-bottom: 0.9rem;
}
.timeline-item h3 { margin-bottom: 0.9rem; font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.timeline-item p { max-width: 62ch; }
.timeline-item .source-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  touch-action: manipulation;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--fog);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.45rem 0.95rem;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.timeline-item .source-link:hover {
  color: var(--volt);
  border-color: rgba(141, 198, 63, 0.5);
  background: rgba(141, 198, 63, 0.05);
}
.timeline-item .quote-band {
  border-left-width: 2px;
  padding-left: 1.6rem;
  margin-top: 1.6rem;
}
.timeline-item .quote-band blockquote { font-weight: 500; color: var(--mist); }

/* Locations */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 780px) { .location-grid { grid-template-columns: 1fr; } }
.location-card {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
}
.location-card .loc-flag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--catalyst);
  display: block;
  margin-bottom: 0.8rem;
}

/* CTA band */
.cta-band {
  position: relative;
  background:
    radial-gradient(ellipse 60% 120% at 50% 100%, rgba(141, 198, 63, 0.14), transparent),
    var(--graphite);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: clamp(2.75rem, 4.5vw, 4rem) 0;
}
.cta-band h2 { max-width: 22ch; margin: 0 auto 1.2rem; }
.cta-band p { max-width: 52ch; margin: 0 auto 2.2rem; }
.cta-band .hero-actions { justify-content: center; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  gap: 1.3rem;
}
.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}
.field input, .field select, .field textarea {
  background: var(--carbon);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--volt);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note {
  font-size: 0.85rem;
  color: var(--ash);
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  margin-bottom: 1.2rem;
  background: var(--graphite);
}
.contact-card .contact-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  display: block;
  margin-bottom: 0.5rem;
}
.contact-card a.contact-big {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--mist);
}
.contact-card a.contact-big:hover { color: var(--volt); }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero {
  padding: calc(84px + clamp(4rem, 8vw, 7rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 198, 63, 0.09), transparent 65%);
  top: -120px; right: -100px;
  pointer-events: none;
}
.page-hero h1 { max-width: 18ch; margin-bottom: 1.2rem; }
.page-hero h1:last-child { margin-bottom: 0; }
.page-hero .lede { max-width: 56ch; }

/* Close the dead gap between a page hero and the first content section */
.page-hero { padding-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.page-hero + .section { padding-top: clamp(1.75rem, 3vw, 2.75rem); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: #070A08;
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-tagline { margin-top: 1.2rem; max-width: 34ch; font-size: 0.95rem; }

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.75rem; }
.site-footer ul a {
  color: var(--fog);
  font-size: 0.93rem;
  transition: color 0.25s var(--ease-out), padding-left 0.25s var(--ease-out);
}
.site-footer ul a:hover { color: var(--mist); padding-left: 4px; }
.site-footer address { font-style: normal; color: var(--fog); font-size: 0.93rem; line-height: 1.9; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ash);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Interactive application models
   ========================================================================== */

.viz-panel { margin: 0; }
.viz-panel svg { width: 100%; height: auto; }

/* Photo stage: real imagery, graded to the brand */
.photo-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0B100D;
  border: 1px solid var(--line);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) saturate(0.85) contrast(1.06) brightness(0.82);
}
#viz-mobility .photo-frame img { object-position: 50% 70%; }
.photo-grade {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(46, 94, 56, 0.5), rgba(18, 26, 21, 0.25) 60%, rgba(46, 94, 56, 0.35));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.photo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 13, 0.35), rgba(11, 16, 13, 0) 30%, rgba(11, 16, 13, 0) 62%, rgba(11, 16, 13, 0.62));
  pointer-events: none;
}

/* HUD frame */
.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(141, 198, 63, 0.55);
  pointer-events: none;
}
.hud-corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.hud-corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.hud-corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.hud-corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }
.hud-tag {
  position: absolute;
  top: 14px;
  left: 40px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  background: rgba(9, 13, 10, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 5px;
  padding: 0.28rem 0.6rem;
  pointer-events: none;
}
.hud-chip {
  position: absolute;
  bottom: 12px;
  left: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  background: rgba(9, 13, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  pointer-events: none;
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ash);
  animation: ledStandby 3s ease-in-out infinite;
}
.viz-panel.alt .chip-dot {
  background: var(--volt);
  box-shadow: 0 0 8px rgba(141, 198, 63, 0.9);
  animation: ledActive 0.9s ease-in-out infinite;
}
@keyframes ledStandby { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes ledActive { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* alt-state (e.g. grid outage) */
.outage-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 25%, rgba(4, 7, 5, 0.15), rgba(4, 7, 5, 0.78));
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  pointer-events: none;
}
.viz-panel.alt .outage-shade { opacity: 1; }
.viz-panel .st-alt { display: none; }
.viz-panel.alt .st-alt { display: inline; }
.viz-panel.alt .st-normal { display: none; }

.viz-panel figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 0.9rem;
}
.viz-readout {
  display: block;
  min-height: 2.9em;
  line-height: 1.6;
  color: var(--fog);
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  transition: color 0.25s var(--ease-out);
}
.viz-readout.active { color: var(--volt); }

.viz-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
}
.viz-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.viz-status .st-normal { color: var(--ash); }
.viz-status .st-alt { color: var(--volt); display: none; }
.viz-panel.alt .viz-status .st-normal { display: none; }
.viz-panel.alt .viz-status .st-alt { display: inline; }

.app-visual .spec-table { margin-top: 0.5rem; }
.spec-note {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 1.6rem;
  padding-bottom: 0.5rem;
}
.spec-note::before {
  content: "//";
  color: var(--catalyst);
  opacity: 0.7;
  margin-right: 0.5rem;
}

/* Photo hotspots */
.photo-frame .hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.hs-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--volt);
  border: 1.5px solid rgba(9, 13, 10, 0.7);
  box-shadow: 0 0 12px rgba(141, 198, 63, 0.85);
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.hs-halo {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(141, 198, 63, 0.9);
  animation: hsPulse 2.8s ease-out infinite;
}
@keyframes hsPulse {
  0% { transform: scale(0.35); opacity: 0.85; }
  70% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(1.1); opacity: 0; }
}
.photo-frame .hotspot { touch-action: manipulation; }
.photo-frame .hotspot:hover .hs-core,
.photo-frame .hotspot:focus-visible .hs-core,
.photo-frame .hotspot.active .hs-core {
  transform: scale(1.45);
  background: #A6DA5E;
}
.photo-frame .hotspot::after {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--mist);
  background: rgba(9, 13, 10, 0.92);
  border: 1px solid var(--line-strong);
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  pointer-events: none;
}
.photo-frame .hotspot:hover::after,
.photo-frame .hotspot:focus-visible::after,
.photo-frame .hotspot.active::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Keep label pills inside the frame near edges */
.photo-frame .hotspot.pill-up::after {
  top: auto;
  bottom: calc(100% + 3px);
  transform: translateX(-50%) translateY(-3px);
}
.photo-frame .hotspot.pill-up:hover::after,
.photo-frame .hotspot.pill-up:focus-visible::after,
.photo-frame .hotspot.pill-up.active::after { transform: translateX(-50%) translateY(0); }
.photo-frame .hotspot.pill-end::after {
  left: auto;
  right: -4px;
  transform: translateX(0) translateY(3px);
}
.photo-frame .hotspot.pill-end:hover::after,
.photo-frame .hotspot.pill-end:focus-visible::after,
.photo-frame .hotspot.pill-end.active::after { transform: translateX(0) translateY(0); }
.photo-frame .hotspot.pill-up.pill-end::after { transform: translateX(0) translateY(-3px); }
.photo-frame .hotspot.pill-up.pill-end:hover::after,
.photo-frame .hotspot.pill-up.pill-end:focus-visible::after,
.photo-frame .hotspot.pill-up.pill-end.active::after { transform: translateX(0) translateY(0); }
.photo-frame .hotspot.pill-start::after {
  left: -4px;
  right: auto;
  transform: translateX(0) translateY(3px);
}
.photo-frame .hotspot.pill-start:hover::after,
.photo-frame .hotspot.pill-start:focus-visible::after,
.photo-frame .hotspot.pill-start.active::after { transform: translateX(0) translateY(0); }

/* Range race (UAV) */
.range-race {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}
.range-row {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  align-items: center;
  gap: 0.8rem;
}
.range-row .range-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--ash);
  text-align: right;
}
.range-row .range-label.bright { color: var(--fog); }
.range-track {
  height: 10px;
  border-radius: 4px;
  background: var(--plate);
  border: 1px solid var(--line);
  overflow: hidden;
}
.range-bar {
  height: 100%;
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
}
.range-bar.b1 { width: 25%; background: #64766B; }
.range-bar.b4 { width: 100%; background: linear-gradient(90deg, var(--volt-dim), var(--volt)); }
.viz-panel.run .range-bar { animation: rangeGrow 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.viz-panel.run .range-bar.b4 { animation-duration: 2.6s; }
@keyframes rangeGrow { to { transform: scaleX(1); } }
.range-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fog);
  opacity: 0;
  transition: opacity 0.4s ease 1.4s;
}
.range-val.volt { color: var(--volt); }
.viz-panel.run .range-val { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hs-halo, .chip-dot { animation: none; }
  .range-bar { transform: none; animation: none !important; }
  .range-val { opacity: 1; transition: none; }
}

/* Utility */
.mt-block { margin-top: var(--space-block); }
.max-prose { max-width: 68ch; }
