/* Sofia Sans Condensed, self-hosted (SIL Open Font License), latin + latin-ext, variable weight 300–800 */
/* latin-ext */
@font-face {
  font-family: 'Sofia Sans Condensed';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/sofia-sans-condensed-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sofia Sans Condensed';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/sofia-sans-condensed-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sofia Sans Condensed';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/sofia-sans-condensed-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sofia Sans Condensed';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/sofia-sans-condensed-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* apheros — design tokens */
:root {
  /* apheros brand: #EFA500, #312E2F, #FFFFFF, complementary #008C95 */
  --ink: #312e2f;          /* page */
  --ink-2: #2a2728;        /* alternate section band */
  --ink-3: #3b3839;        /* cards */
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --text-muted: #c9c6c7;
  --gold: #efa500;
  --gold-hi: #ffc340;
  --teal: #008c95;
  --teal-hi: #2fbdc6;      /* teal lifted for small text on dark */

  --font: "Sofia Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 152px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }

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

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  font: 700 17px/1.2 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
  cursor: pointer; border: 0;
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 19px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { background: rgba(255, 255, 255, 0.09); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

.text-link {
  color: var(--gold); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; text-decoration-color: rgba(239, 165, 0, 0.45);
}
.text-link:hover { text-decoration-color: var(--gold); }

/* Logo: wordmark masked to text colour, orb painted in brand gold */
.brand { position: relative; display: block; width: 138px; aspect-ratio: 1080 / 262; flex: none; }
.brand-word {
  position: absolute; inset: 0; background: var(--text);
  -webkit-mask: url("assets/apheros-logo.png") center / contain no-repeat;
          mask: url("assets/apheros-logo.png") center / contain no-repeat;
}
.brand-orb {
  position: absolute; left: 68.7%; top: 11.8%; width: 18.3%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 29%, #fffcee 0, #fde3a0 12%, #f6b93a 38%, var(--gold) 62%, #e69a05 100%);
}
.brand-sm { width: 112px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled { background: rgba(49, 46, 47, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 28px; }
.nav-list a { text-decoration: none; color: var(--text-muted); font-size: 17px; font-weight: 500; padding: 8px 0; transition: color 150ms ease; }
.nav-list a:hover { color: var(--text); }
.nav-cta-mobile { display: none; }
.icon-link { display: inline-flex; padding: 11px; margin: -11px; color: var(--text-muted); transition: color 150ms ease; }
.icon-link:hover { color: var(--text); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .nav { gap: 16px; }
  .nav-cta { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 200ms var(--ease-out); }
  .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-list {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 28px; background: rgba(49, 46, 47, 0.97); box-shadow: 0 1px 0 var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .menu-open .nav-list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .menu-open .site-header { background: rgba(49, 46, 47, 0.97); }
  .nav-list a { display: block; padding: 14px 0; font-size: 20px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-cta-mobile { display: block; margin-top: 20px; }
  .nav-cta-mobile a.btn { display: flex; border: 0; padding: 14px 22px; font-size: 18px; color: var(--ink); }
}

/* Hero + scroll story: a pinned stage. story.js sets --hero-o on the stage and opacity/transform
   on captions, labels and the rail from the scroll progress. */
.story { position: relative; height: 1000vh; }
.hero {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; padding-top: 96px; overflow: hidden; isolation: isolate;
}
.story-visual { position: absolute; inset: 0; z-index: -1; }
.story-visual::before {   /* soft studio glow behind the objects */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at var(--glow-x, 66%) 52%, rgba(239, 165, 0, 0.16), rgba(239, 165, 0, 0.05) 45%, transparent 70%);
}
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.no-webgl .story-canvas { display: none; }

.story-hero { opacity: var(--hero-o, 1); transform: translate3d(0, var(--hero-y, 0px), 0); }
.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 40px; }
.hero-title { max-width: 15ch; font-size: clamp(40px, 5.4vw, 80px); line-height: 0.95; letter-spacing: -0.01em; font-weight: 700; }
.hero-lede { max-width: min(26em, 44vw); margin-top: 28px; font-size: clamp(18px, 1.5vw, 20px); color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.is-past-hero .story-hero { visibility: hidden; }

/* Backers: an endless logo strip, paused on hover */
.hero-backers { padding-bottom: 40px; }
.backers-label { font-size: 15px; color: var(--text-muted); margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.backers-row { display: flex; align-items: center; width: max-content; }
.backers-row li { flex: none; padding-right: 56px; }
.backers-row img { height: 26px; width: auto; opacity: 0.72; }
.marquee .backers-row { animation: marquee 48s linear infinite; }
.marquee:hover .backers-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

.logo-mono { filter: brightness(0) invert(1); opacity: 0.72; }

/* Step captions: left column on wide screens, bottom panel on phones */
.story-caps { position: absolute; inset: 0; pointer-events: none; }
.story-cap {
  position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 50%;
  width: min(30rem, 38vw); opacity: 0; visibility: hidden;
  transform: translate3d(0, calc(-50% + var(--cap-y, 0px)), 0);
}
.story-cap.is-on { visibility: visible; }
.story-cap.is-on a { pointer-events: auto; }
.cap-kicker { font-size: 16px; font-weight: 700; color: var(--gold); }
.cap-kicker-h2 { color: var(--teal-hi); }
.cap-title { margin-top: 10px; font-size: clamp(32px, 3.6vw, 54px); line-height: 1; }
.cap-text { margin-top: 16px; font-size: 19px; color: var(--text-muted); }
.cap-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 22px 0 0; }
.cap-specs > div { display: flex; flex-direction: column; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.cap-specs dt { font-size: 15px; color: var(--text-muted); line-height: 1.3; }
.cap-specs dd { margin: 4px 0 0; font-size: 24px; font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.cap-specs-h2 dd { color: var(--teal-hi); }

.story-cap-final { left: 50%; top: 13%; width: min(64rem, 92vw); text-align: center; transform: translate3d(-50%, var(--cap-y, 0px), 0); }
.story-cap-final .cap-title { font-size: clamp(34px, 4.4vw, 64px); }
.final-cols { position: absolute; left: 0; right: 0; top: calc(74vh - 13vh); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.final-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.final-col .cap-text { margin: 4px 0 14px; font-size: 17px; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #00a3ad; }

/* Labels pinned to the 3D parts */
.story-labels { position: absolute; inset: 0; pointer-events: none; }
.story-label {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap;
  transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0) translate(-50%, -100%);
  padding: 6px 12px; border-radius: 999px; font-size: 16px; font-weight: 700;
  background: rgba(49, 46, 47, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-hi);
}
.story-label::after {   /* leader line down to the part */
  content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: currentColor; opacity: 0.7;
}
.story-label-dim { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.story-label.is-below { transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0) translate(-50%, 22px); }
.story-label.is-below::after { top: auto; bottom: 100%; }
.story-label-h2 { color: var(--teal-hi); box-shadow: inset 0 0 0 1px var(--teal); }

/* Brackets spanning a pair of parts (like the electrolyser diagram). story.js sets --bx/--by (left end
   of the bar), --bw (bar width) and --ha/--hb (leg lengths down, or up when .is-below, to each part). */
.story-bracket {
  position: absolute; left: 0; top: 0; width: var(--bw, 100px); height: 0; opacity: 0; color: var(--text);
  border-top: 1.5px solid currentColor; transform: translate3d(var(--bx, 0px), var(--by, 0px), 0);
}
.story-bracket .leg { position: absolute; top: 0; width: 1.5px; background: currentColor; }
.story-bracket .leg-a { left: -1px; height: var(--ha, 20px); }
.story-bracket .leg-b { right: -1px; height: var(--hb, 20px); }
.story-bracket.is-below .leg { top: auto; bottom: 0; }
.story-bracket .bracket-text {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; font-size: 16px; font-weight: 700;
  background: rgba(49, 46, 47, 0.82); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.story-bracket.is-below .bracket-text { bottom: auto; top: 10px; }
.story-bracket-h2 { color: var(--teal-hi); }
.story-bracket-h2 .bracket-text { box-shadow: inset 0 0 0 1px var(--teal); }
@media (max-width: 820px) { .story-bracket .bracket-text { font-size: 14px; } }
/* phones: labels laid out by story.js (no overlaps) with SVG leader lines and a dot on the part */
.story-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: none; }
.story-labels.is-free .story-leaders { display: block; }
.story-labels.is-free .story-label, .story-labels.is-free .story-label.is-below { transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0); }
.story-labels.is-free .story-label::after { display: none; }
.leader { color: var(--gold-hi); }
.leader-dim { color: rgba(255, 255, 255, 0.85); }
.leader-h2 { color: var(--teal-hi); }
.leader line { stroke: currentColor; stroke-width: 1.2; }
.leader circle { fill: currentColor; stroke: rgba(49, 46, 47, 0.9); stroke-width: 1.5; }

/* Progress rail, right edge */
.story-rail {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px;
  opacity: var(--rail-o, 0); font-size: 15px; color: var(--text-muted); text-align: right;
}
.story-rail li { display: flex; align-items: center; justify-content: flex-end; gap: 10px; transition: color 200ms ease; }
.story-rail li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background-color 200ms ease, transform 200ms ease; }
.story-rail li.is-active { color: var(--text); }
.story-rail li.is-active::after { background: var(--gold); transform: scale(1.4); }

/* Load sequence for the hero copy */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > *, .backers-label, .marquee { animation: rise 900ms var(--ease-out) both; }
  .hero-inner > :nth-child(2) { animation-delay: 80ms; }
  .hero-inner > :nth-child(3) { animation-delay: 180ms; }
  .hero-inner > :nth-child(4) { animation-delay: 260ms; }
  .backers-label { animation-delay: 420ms; }
  .marquee { animation: rise 900ms var(--ease-out) 420ms both; }
  .story-canvas { animation: bloom 1600ms var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bloom { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 820px) {
  .story-rail { display: none; }
  .hero-inner { justify-content: flex-end; padding-top: 44vh; padding-bottom: 28px; }
  .hero-lede { max-width: none; }
  .story-cap { left: var(--gutter); right: var(--gutter); top: auto; bottom: 28px; width: auto; transform: translate3d(0, var(--cap-y, 0px), 0); }
  .story-cap::before { content: ""; position: absolute; inset: -20px -16px -28px; z-index: -1; background: linear-gradient(to bottom, transparent, rgba(49, 46, 47, 0.92) 22%); }
  .cap-title { font-size: 32px; }
  .cap-text { font-size: 17px; }
  .cap-specs dd { font-size: 20px; }
  /* finale on phones: title at the top, both columns (with their buttons) at the bottom, model in between */
  .story-cap-final { top: 92px; bottom: max(20px, env(safe-area-inset-bottom)); left: var(--gutter); right: var(--gutter); width: auto;
    display: flex; flex-direction: column; justify-content: space-between; transform: translate3d(0, var(--cap-y, 0px), 0); }
  .story-cap-final::before { display: none; }
  .final-cols { position: static; gap: 14px; }
  .final-col .cap-text { font-size: 15px; margin: 2px 0 10px; }
  .story-label { font-size: 14px; }
}
@media (max-width: 760px) {
  .story { height: 900vh; }
  .hero-lede { max-width: none; }
  .backers-row li { padding-right: 40px; }
  .backers-row img { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .backers-row { flex-wrap: wrap; width: auto; row-gap: 20px; }
}

/* Sections */
.section { padding: var(--section-y) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2, .origin-text h2, .careers-text h2, .contact h2 {
  font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.02em; font-weight: 700;
}
.section-head p { margin-top: 22px; color: var(--text-muted); font-size: 19px; max-width: 36em; }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; max-width: none; margin-bottom: 40px; }

/* Technology */
.tech { border-top: 1px solid var(--line); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { counter-increment: step; position: relative; padding: 28px 28px 0 0; border-top: 1px solid var(--line-strong); }
/* The gold line draws across the steps as the section scrolls in (main.js sets --fill per step). */
.step::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--gold);
  transform: scaleX(var(--fill, 1)); transform-origin: 0 50%;
}
.step::before {
  content: counter(step); position: absolute; top: -13px; left: 0; z-index: 1;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink-3); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px; font-weight: 700; transition: background-color 200ms ease, color 200ms ease;
}
.step.is-lit::before { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 5px rgba(239, 165, 0, 0.18); animation: pop 420ms var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .step.is-lit::before { animation: none; } }
.step-icon { width: 44px; height: 44px; margin: 8px 0 18px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step-icon circle[r="1.2"] { fill: var(--gold); stroke: none; }
.step h3 { font-size: 22px; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: 18px; max-width: 18em; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}
@media (max-width: 480px) {
  .process { grid-template-columns: 1fr; row-gap: 40px; }
}

.tech-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(72px, 9vw, 120px); align-items: start; }
.wick-figure { position: relative; }
.wick-video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--ink-3); }
.video-toggle {
  position: absolute; right: 14px; top: 14px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(49, 46, 47, 0.72); color: var(--text); font: 600 14px var(--font); backdrop-filter: blur(6px);
}
.video-toggle:hover { background: rgba(49, 46, 47, 0.9); }
.wick-figure figcaption { margin-top: 14px; font-size: 16px; color: var(--text-muted); }
.props { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.prop h3 { font-size: 20px; }
.prop p { margin-top: 10px; color: var(--text-muted); font-size: 17.5px; }
@media (max-width: 960px) { .tech-detail { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .props { grid-template-columns: 1fr; } }

.spec { margin-top: clamp(72px, 9vw, 120px); padding: clamp(28px, 4vw, 48px); background: var(--ink-2); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--line); }
.spec-title { font-size: 22px; margin-bottom: 28px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: 0; }
.spec-grid > div { padding: 18px 0; border-top: 1px solid var(--line); }
.spec-grid dt { font-size: 16px; color: var(--text-muted); }
.spec-grid dd { margin: 6px 0 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.spec-note { margin-top: 20px; font-size: 16px; color: var(--text-muted); }
@media (max-width: 860px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .spec-grid { grid-template-columns: 1fr; } }

/* Products: the foam first, then its two frontiers side by side */
.products { background: linear-gradient(to bottom, var(--ink), var(--ink-2) 40%, var(--ink)); }
.product-kicker { font-size: 16px; font-weight: 700; color: var(--gold); }

.foam-core { margin-bottom: 24px; }
.foam-core-frame {
  position: relative; overflow: hidden; aspect-ratio: 21 / 9; border-radius: var(--radius-lg);
  background: #000; box-shadow: inset 0 0 0 1px var(--line);
}
.scroll-pan {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--pan, 0px), 0) scale(var(--zoom, 1.3));
  will-change: transform;
}
.foam-core figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; font-size: 16px; color: var(--text-muted); }
.foam-core-scale { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; flex: none; }
.scale-bar { display: block; width: var(--bar, 64px); height: 3px; background: var(--text); border-radius: 2px; }
@media (max-width: 640px) { .foam-core-frame { aspect-ratio: 4 / 3; } .foam-core figcaption { flex-direction: column; align-items: flex-start; } }

.frontiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.frontier { display: flex; flex-direction: column; background: var(--ink-3); border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.frontier-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frontier-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3.2vw, 44px); }
.frontier-body h3 { margin-top: 12px; font-size: clamp(26px, 2.5vw, 34px); letter-spacing: -0.015em; }
.frontier-body > p:not(.product-kicker):not(.frontier-note) { margin-top: 16px; color: var(--text-muted); font-size: 18px; }
.readout { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 24px 0 0; }
.readout > div { display: flex; flex-direction: column; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.readout dt { font-size: 15px; color: var(--text-muted); line-height: 1.35; }
.readout dd { margin: 4px 0 0; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.frontier-note { margin: 8px 0 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16.5px; color: var(--text-muted); }
.frontier .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .frontiers { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .readout { grid-template-columns: 1fr; } }

.emerging {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); margin-top: 24px;
  background: var(--ink-3); border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line);
}
.emerging-img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: 45% 50%; }
.emerging-body { padding: clamp(24px, 3.2vw, 44px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.emerging-body h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 6px; }
@media (max-width: 760px) { .emerging { grid-template-columns: 1fr; } .emerging-img { aspect-ratio: 16 / 9; min-height: 0; } }

.tick-list { display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 22px; color: var(--text-muted); font-size: 18px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.tick-list strong { color: var(--text); font-weight: 700; }

/* Team */
.origin { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.origin-text p { margin-top: 22px; color: var(--text-muted); max-width: 36em; }
.origin-text h2 { max-width: 14ch; }
.founders { margin-top: 40px; }
.founders img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg); }
.founders figcaption { margin-top: 12px; font-size: 16px; color: var(--text-muted); }
.reel { position: sticky; top: 100px; }
.reel-video { width: 100%; max-width: 380px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-lg); background: var(--ink-3); margin-left: auto; }
.reel figcaption { margin-top: 12px; font-size: 16px; color: var(--text-muted); max-width: 380px; margin-left: auto; }
@media (max-width: 860px) {
  .origin { grid-template-columns: 1fr; }
  .reel { position: static; }
  .reel-video, .reel figcaption { margin-left: 0; }
}

.team-grid-title { margin-top: clamp(72px, 9vw, 120px); margin-bottom: 32px; font-size: clamp(26px, 2.6vw, 34px); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 36px 20px; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; border-radius: var(--radius); background: var(--ink-3); filter: saturate(0.92); }
.person-name { display: block; margin-top: 14px; font-weight: 700; font-size: 18px; line-height: 1.3; }
.person-role { display: block; margin-top: 2px; font-size: 16px; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; } }
.sdg-note { margin-top: 56px; font-size: 16px; color: var(--text-muted); }

/* Partners and press */
.partners { border-top: 1px solid var(--line); }

  display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 24px 32px; border-radius: var(--radius);
  background: #000; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 160ms ease;
}

/* News */
.news { background: var(--ink-2); }
.news-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.news-feature { display: flex; flex-direction: column; text-decoration: none; background: var(--ink-3); border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 160ms ease; }
.news-feature:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.news-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-feature-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 36px); }
.news-feature .news-headline { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.12; }
.news-excerpt { color: var(--text-muted); font-size: 18px; }
.news-date { font-size: 15px; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.news-list li { border-top: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; text-decoration: none; }
.news-list .news-headline { font-size: 18px; font-weight: 500; line-height: 1.4; }
.news-list a:hover .news-headline { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
@media (max-width: 900px) { .news-layout { grid-template-columns: 1fr; } }

/* Careers */
.careers { border-top: 1px solid var(--line); }
.careers-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.careers-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; border-radius: var(--radius-lg); }
.careers-media figcaption { margin-top: 12px; font-size: 16px; color: var(--text-muted); }
.careers-text p { margin-top: 20px; color: var(--text-muted); max-width: 32em; }
.roles { margin-top: 32px; }
.roles li + li { margin-top: 12px; }
.roles a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 22px;
  border-radius: var(--radius); background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none; transition: box-shadow 160ms ease;
}
.roles a:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.role-name { font-weight: 700; font-size: 18px; line-height: 1.35; }
.role-meta { font-size: 15px; color: var(--text-muted); text-align: right; flex: none; max-width: 40%; }
@media (max-width: 860px) { .careers-inner { grid-template-columns: 1fr; } .careers-media img { aspect-ratio: 4 / 3; object-position: 50% 58%; } }
@media (max-width: 480px) { .roles a { flex-direction: column; align-items: flex-start; gap: 4px; } .role-meta { text-align: left; max-width: none; } }

/* Hydrogen frontier carries the complementary teal; cooling keeps the gold */
.frontier-h2 .product-kicker { color: var(--teal-hi); }
.frontier-h2 .readout dd { color: var(--teal-hi); }
.frontier-h2 .btn-gold { background: var(--teal); color: #fff; }
.frontier-h2 .btn-gold:hover { background: #00a3ad; }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.contact h2 { max-width: 14ch; }
.contact-lede { margin-top: 22px; color: var(--text-muted); font-size: 19px; max-width: 32em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.address { font-size: 18px; line-height: 1.7; color: var(--text-muted); }
.address strong { color: var(--text); font-weight: 700; }
.address .text-link { display: inline-block; margin-top: 10px; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; font-size: 16px; color: var(--text-muted); }
.footer-inner p { margin-right: auto; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; padding: 10px 0; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Fine-tuning */
.spec-grid dd.dd-text { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.35; }
.backers-row img.logo-bridge { height: 19px; }
@media (max-width: 760px) { .hero-lede { max-width: none; } }


.careers-join { margin-top: 28px; }

/* Topic tags (shared with the news page): gold = cooling, teal = green hydrogen */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; padding: 6px 9px 5px; border-radius: 999px; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill-cooling { background: var(--gold); color: var(--ink); box-shadow: none; }
.pill-hydrogen { background: var(--teal); color: #fff; box-shadow: none; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.news-feature-body .pills { margin-bottom: 2px; }

/* In good company: big figures, backers with what they did, press as a magazine spread */
.pc-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.pc-eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.pc-title { font-size: clamp(48px, 7.5vw, 104px); line-height: 0.9; font-weight: 800; text-transform: uppercase; }
.pc-title span { color: transparent; -webkit-text-stroke: 2px var(--gold); }
.pc-sub { margin-top: 20px; font-size: clamp(18px, 1.7vw, 21px); color: var(--text-muted); }

.pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-bottom: clamp(16px, 2vw, 24px); }
.pc-stats li { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; }
.pc-stats li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 120% at 0% 0%, rgba(239, 165, 0, 0.20), transparent 60%); }
.pc-stats li:nth-child(2)::before { background: radial-gradient(90% 120% at 0% 0%, rgba(0, 140, 149, 0.28), transparent 60%); }
.pc-stats li::after { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--gold); }
.pc-stats li:nth-child(2)::after { background: var(--teal); }
.pc-num { display: block; font-size: clamp(44px, 5.4vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-num-label { display: block; margin-top: 10px; font-size: 18px; color: var(--text-muted); }

.backer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.backer { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: var(--radius); background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: background-color 180ms ease, box-shadow 180ms ease, transform 220ms var(--ease-out); }
.backer:hover { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--gold); transform: translateY(-3px); }
.backer-logo { display: grid; place-items: center; height: 112px; padding: 22px 28px; }
.backer-logo img { max-height: 42px; width: auto; max-width: 100%; opacity: 0.8; transition: opacity 180ms ease; }
.backer:hover .backer-logo img { opacity: 1; }
.backer-meta { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.backer-kind { flex: none; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; padding: 6px 8px 5px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-muted); }
.backer-kind-investor, .backer-kind-grant { background: var(--gold); color: var(--ink); box-shadow: none; }
.backer-kind-award { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.backer-kind-incubator, .backer-kind-programme { box-shadow: inset 0 0 0 1px var(--teal-hi); color: var(--teal-hi); }
.backer-fact { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--text); }

.pc-press { margin-top: clamp(72px, 9vw, 120px); }
.pc-label { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 15px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.pc-label::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.pc-press-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.press-lead { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); text-decoration: none; overflow: hidden; isolation: isolate;
  background: linear-gradient(140deg, #3d3a3b 0%, var(--ink-2) 70%); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 180ms ease; }
.press-lead::before { content: "\201C"; position: absolute; right: 0.04em; top: -0.12em; z-index: -1; font-size: clamp(220px, 24vw, 340px); font-weight: 800; line-height: 1; color: rgba(239, 165, 0, 0.16); }
.press-lead:hover { box-shadow: inset 0 0 0 2px var(--gold); }
.press-lead-logo img { height: clamp(34px, 3.4vw, 46px); width: auto; filter: brightness(0) invert(1); }
.press-lead-quote { font-size: clamp(30px, 3.4vw, 48px); font-weight: 800; line-height: 1.04; text-wrap: balance; }
.press-lead-read { color: var(--gold); font-weight: 700; }
.press-lead-read::after { content: "\00a0\2197"; }
.press-rows { display: flex; flex-direction: column; }
.press-rows li { border-top: 1px solid var(--line); flex: 1; display: flex; }
.press-rows li:last-child { border-bottom: 1px solid var(--line); }
.press-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 20px; width: 100%; padding: 18px 0; text-decoration: none; }
.press-row-logo { display: flex; align-items: center; height: 40px; }
.press-row-logo img { max-height: 30px; max-width: 100%; width: auto; opacity: 0.8; transition: opacity 160ms ease; }
.press-row-logo img.logo-padded { max-height: 30px; }
.press-row:hover .press-row-logo img { opacity: 1; }
.press-row-title { font-size: 19px; font-weight: 600; line-height: 1.3; }
.press-row:hover .press-row-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }

@media (max-width: 900px) {
  .pc-stats { grid-template-columns: 1fr; }
  .backer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-press-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .backer-grid { grid-template-columns: 1fr 1fr; }
  .backer-logo { height: 92px; padding: 18px; }
  .backer-meta { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
  .backer-fact { font-size: 15px; }
  .press-row { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .press-row-title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .backer, .backer:hover { transition: none; transform: none; } }
.backer-logo img[alt^="NVIDIA"] { max-height: 64px; }
.backer-logo img[alt^="ETH"] { max-height: 84px; }
.backer-logo img[alt^="ESA"] { max-height: 52px; }
.press-lead-logo img { height: clamp(48px, 5vw, 68px); }

/* Team pop-up cards: appear on hover over a photo (no click), see-through glass background */
.person { position: relative; }
.person-photo { display: block; border-radius: var(--radius); outline-offset: 3px; }
.person-photo img { transition: filter 200ms ease; }
.has-card.card-open .person-photo img { filter: saturate(1.05) brightness(1.06); }
.has-card.card-open .person-photo { box-shadow: 0 0 0 2px var(--gold); }
.person-card { position: absolute; z-index: 20; padding: 20px 22px 22px; border-radius: var(--radius); color: var(--text);
  background: rgba(49, 46, 47, 0.62); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 24px 60px rgba(0, 0, 0, 0.45);
  font-size: 16px; line-height: 1.5; animation: pcard-in 160ms var(--ease-out); pointer-events: none; }
.pcard-name { font-weight: 800; font-size: 20px; line-height: 1.2; color: var(--gold); }
.pcard-role { margin-top: 2px; font-size: 15px; color: var(--text-muted); }
.pcard-bio { margin-top: 12px; color: #f1eeef; }
.pcard-label { margin-top: 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-hi); }
.pcard-edu li { margin-top: 10px; padding-left: 14px; position: relative; }
.pcard-edu li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.edu-degree { font-weight: 800; }
.edu-field { font-weight: 600; }
.edu-school { display: block; font-size: 15px; color: #d6d2d3; }
@keyframes pcard-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .person-card { animation: none; } }
