@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  /* Brand — Limpahan red #BD271B (shared across themes) */
  --red: #bd271b;
  --red-bright: #dd4236;        /* hover / emphasised */
  --red-deep: #8a1c14;           /* borders, shadows */
  --red-dim: rgba(189, 39, 27, 0.72);
  --red-mute: rgba(189, 39, 27, 0.3);
  --red-wash: rgba(189, 39, 27, 0.08);
  --red-glow: rgba(189, 39, 27, 0.28);

  --radius: 1px;
  --nav-h: 56px;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  color-scheme: dark;
}

/* ——— DARK (default) ——— */
:root,
html[data-theme="dark"] {
  --bg: #0a0c10;
  --bg-2: #0d1117;
  --panel: rgba(180, 210, 240, 0.04);
  --panel-border: rgba(180, 210, 240, 0.12);
  --ink: #c8d8e4;
  --ink-dim: rgba(200, 216, 228, 0.6);
  --ink-mute: rgba(200, 216, 228, 0.4);
  --heading: #dcf0ff;
  --ice: #b4d2f0;
  --ice-dim: rgba(180, 210, 240, 0.6);
  --ice-mute: rgba(180, 210, 240, 0.25);
  --noise-opacity: 0.025;
  --grain-blend: overlay;
  --nav-bg: rgba(10, 12, 16, 0.72);
  --nav-bg-solid: rgba(10, 12, 16, 0.96);
  --overlay-edge: rgba(10, 12, 16, 0.75);
  --overlay-edge-strong: rgba(10, 12, 16, 0.88);
  --ink-rgb: 200, 216, 228;
  color-scheme: dark;
}

/* ——— LIGHT (warm paper, industrial) ——— */
html[data-theme="light"] {
  --bg: #f4f1ec;                 /* warm paper white */
  --bg-2: #e9e5dd;
  --panel: rgba(15, 18, 24, 0.035);
  --panel-border: rgba(15, 18, 24, 0.14);
  --ink: #16202d;                /* near-black ink */
  --ink-dim: rgba(22, 32, 45, 0.7);
  --ink-mute: rgba(22, 32, 45, 0.48);
  --heading: #0a0c10;
  --ice: #3a5a80;                /* darker blue for contrast */
  --ice-dim: rgba(58, 90, 128, 0.78);
  --ice-mute: rgba(58, 90, 128, 0.32);
  --noise-opacity: 0.04;
  --grain-blend: multiply;
  --nav-bg: rgba(244, 241, 236, 0.82);
  --nav-bg-solid: rgba(244, 241, 236, 0.97);
  --overlay-edge: rgba(244, 241, 236, 0.7);
  --overlay-edge-strong: rgba(244, 241, 236, 0.92);
  --ink-rgb: 22, 32, 45;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

html, body { background: var(--bg); color: var(--ink); }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--red-mute); color: var(--heading); }

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--ice); }

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

/* ——— TYPOGRAPHY ——— */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ice-dim);
}

.eyebrow--brand { color: var(--red-dim); }

.micro {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--heading);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 400; }
h4 { font-size: 1rem; font-weight: 500; letter-spacing: 0; }

p { color: var(--ink-dim); max-width: 62ch; }
p strong { color: var(--ink); font-weight: 500; }

.lead { font-size: 1.05rem; line-height: 1.7; color: var(--ink); }

.mono { font-family: var(--font-mono); }
.ice { color: var(--ice); }
.brand { color: var(--red); }
.dim { color: var(--ink-dim); }

/* ——— LAYOUT ——— */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.container--wide { max-width: 1440px; }
.container--narrow { max-width: 880px; }

.section {
  padding: clamp(60px, 10vw, 140px) 0;
  position: relative;
}

.section--divided {
  border-top: 1px solid var(--panel-border);
}

/* ——— NAV ——— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  background: var(--nav-bg-solid);
  border-bottom-color: var(--panel-border);
  box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.02), 0 8px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .nav.is-scrolled {
  box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.04), 0 6px 18px rgba(22, 32, 45, 0.08);
}

.nav__brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__brand-mark {
  width: 30px; height: 30px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 4px 0;
  position: relative;
}

.nav__links a.is-active,
.nav__links a:hover {
  color: var(--ink);
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--ice-dim);
}

.nav__cta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--ice-mute);
  color: var(--ice);
  transition: all 0.3s ease;
}
.nav__cta:hover {
  border-color: var(--ice-dim);
  color: var(--heading);
  box-shadow: 0 0 18px rgba(var(--ink-rgb), 0.12);
}

.nav__burger {
  display: none;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ——— theme toggle ——— */
.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--red-mute);
  color: var(--red);
  background: var(--red-wash);
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* theme transition (applied once via JS after first paint) */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    fill 0.35s ease,
    stroke 0.35s ease,
    box-shadow 0.35s ease !important;
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; place-items: center; }
  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    padding: 24px 32px;
    background: var(--nav-bg-solid);
    border-bottom: 1px solid var(--panel-border);
    backdrop-filter: blur(16px);
  }
}

/* ——— HERO ——— */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

.hero--static {
  height: auto;
  min-height: 0;
  overflow: visible;
  display: block;
  padding: calc(var(--nav-h) + clamp(40px, 7vw, 96px)) 0 clamp(60px, 8vw, 120px);
  background:
    radial-gradient(ellipse 70% 55% at 18% 30%, var(--red-wash), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; align-items: stretch; }
}

.hero-copy { display: flex; flex-direction: column; min-width: 0; }

.hero--static .hero__title {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  max-width: 16ch;
  line-height: 1.12;
  margin-bottom: 28px;
  text-shadow: none;
}

.hero__lede {
  margin-bottom: 28px;
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.65;
}

.hero__prompt {
  margin-top: 20px;
  font-size: 0.84rem;
  color: var(--ink-mute);
  max-width: 48ch;
  line-height: 1.55;
}

/* ——— HERO CAPABILITY MANIFEST (right column) ——— */
.hero-manifest {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(180, 210, 240, 0.025), transparent 60%),
    var(--bg-2);
}

html[data-theme="light"] .hero-manifest {
  background:
    linear-gradient(180deg, rgba(15, 18, 24, 0.02), transparent 60%),
    var(--bg-2);
}

.hero-manifest__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ice-dim);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--panel-border);
}

.manifest-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
}

.manifest-live__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: readout-blink 2.4s ease-in-out infinite;
}

.manifest-hero-tile {
  padding: 24px 22px;
  border: 1px solid var(--red-mute);
  background: linear-gradient(135deg, var(--red-wash), transparent 70%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.manifest-hero-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-dim), transparent);
}

.manifest-tile__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ice-dim);
}

.manifest-hero-tile__value {
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--heading);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.manifest-hero-tile__value small {
  font-size: 0.32em;
  font-weight: 400;
  color: var(--red);
  letter-spacing: 0;
}

.manifest-hero-tile__note {
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.6;
  max-width: 44ch;
  margin: 0;
}

.manifest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
}

.manifest-grid .manifest-tile {
  background: var(--bg-2);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
}

.manifest-tile__value {
  font-size: 1rem;
  color: var(--heading);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.manifest-tile__value small {
  font-family: var(--font-mono);
  font-size: 0.6em;
  color: var(--red);
  letter-spacing: 1.5px;
  margin-left: 4px;
  text-transform: uppercase;
}

.manifest-tile__note {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.4;
}

@media (max-width: 520px) {
  .manifest-grid { grid-template-columns: 1fr; }
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 40%, var(--overlay-edge) 100%),
    linear-gradient(180deg, transparent 60%, var(--overlay-edge-strong) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero__kicker::before {
  content: "";
  display: block;
  width: 42px; height: 1px;
  background: var(--ice-dim);
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--heading);
  max-width: 18ch;
  margin-bottom: 36px;
  text-shadow: 0 0 60px rgba(180, 210, 240, 0.08);
}

.hero__title em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 0 40px var(--red-glow);
}

.hero__quote {
  max-width: 44ch;
  font-size: 0.95rem;
  color: var(--ink-dim);
  border-left: 1px solid var(--ice-mute);
  padding-left: 18px;
  margin-bottom: 40px;
  font-style: italic;
  line-height: 1.75;
}

.hero__quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ice-dim);
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--ice-mute);
  color: var(--ink);
  transition: all 0.35s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  border-color: var(--ice-dim);
  color: var(--heading);
  box-shadow: 0 0 24px rgba(var(--ink-rgb), 0.12);
  transform: translateY(-1px);
}

.btn--brand {
  border-color: var(--red-mute);
  color: var(--red);
}

.btn--brand:hover {
  border-color: var(--red-dim);
  color: var(--red-bright);
  background: var(--red-wash);
  box-shadow: 0 0 28px var(--red-glow);
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  padding: 15px 24px;
}

.btn--primary:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: #fff;
  box-shadow: 0 10px 32px var(--red-glow);
  transform: translateY(-1px);
}

html[data-theme="light"] .btn--primary { color: #fff; }

.btn--ghost {
  border-color: var(--panel-border);
  color: var(--ink-dim);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ice-mute);
  color: var(--heading);
  background: transparent;
  box-shadow: none;
}

.btn__arrow { width: 14px; height: 1px; background: currentColor; position: relative; }
.btn__arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ——— HERO CORNER READOUTS ——— */
.hero__readouts {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.readout {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ice-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.readout::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 8px var(--ice);
  animation: readout-blink 2.4s ease-in-out infinite;
}

@keyframes readout-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.readout--tl { top: calc(var(--nav-h) + 28px); left: 32px; }
.readout--tr { top: calc(var(--nav-h) + 28px); right: 32px; }
.readout--bl { bottom: 28px; left: 32px; }
.readout--br { bottom: 28px; right: 32px; }

/* ——— FRAME CORNERS (decorative) ——— */
.hero__frame {
  position: absolute;
  inset: calc(var(--nav-h) + 20px) 24px 20px 24px;
  border: 1px solid var(--panel-border);
  z-index: 1;
  pointer-events: none;
}

.hero__frame::before,
.hero__frame::after,
.hero__frame > span::before,
.hero__frame > span::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--ice-dim);
}
.hero__frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero__frame::after { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hero__frame > span::before { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hero__frame > span::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ——— SECTION HEADERS ——— */
.sec-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 64px;
  max-width: 720px;
}

.sec-header__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-header__kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--red-dim);
}

.sec-header__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 300;
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.sec-header__title em { font-style: normal; color: var(--red); }

.sec-header__lede {
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.7;
}

.company-story__title {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: var(--heading);
  margin: 14px 0 18px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* ——— PILLARS ——— */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--panel-border); }

.pillar {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  transition: background 0.5s ease;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.pillar:hover { background: rgba(180, 210, 240, 0.02); }

.pillar__num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--ice-mute);
  margin-bottom: 24px;
}

.pillar__icon {
  width: 56px; height: 56px;
  border: 1px solid var(--ice-mute);
  display: grid; place-items: center;
  margin-bottom: 28px;
  color: var(--ice);
}

.pillar__title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--heading);
  margin-bottom: 14px;
  line-height: 1.2;
}

.pillar__desc {
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  flex-grow: 1;
}

.pillar__meta {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--panel-border);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ice-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ——— STATS ——— */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--panel-border);
}

.stat {
  background: var(--bg);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__value {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--heading);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__value small {
  font-size: 0.55em;
  color: var(--ice-dim);
  margin-left: 2px;
  font-weight: 400;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ——— PARTNERS / CREDENTIALS STRIP ——— */
.partners {
  padding: clamp(40px, 5vw, 72px) 0;
  border-top: 1px solid var(--panel-border);
  background: var(--bg);
  position: relative;
}

.partners__header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.partners__divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--panel-border), transparent);
}

.partners__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
}

@media (max-width: 820px) {
  .partners__grid { grid-template-columns: 1fr; }
}

.partner {
  background: var(--bg);
  padding: 32px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 180px;
  transition: background 0.35s ease;
}

.partner:hover { background: rgba(180, 210, 240, 0.025); }
html[data-theme="light"] .partner:hover { background: rgba(15, 18, 24, 0.02); }

.partner__role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--red-dim);
}

.partner__logo {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.partner__logo img {
  max-height: 44px;
  width: auto;
  max-width: 100%;
  filter: grayscale(1) brightness(1.3) contrast(1.05);
  opacity: 0.88;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

html[data-theme="light"] .partner__logo img {
  filter: grayscale(1) brightness(0.35) contrast(1.05);
  opacity: 0.78;
}

.partner:hover .partner__logo img { opacity: 1; }

.partner__wordmark {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.015em;
  color: var(--heading);
  line-height: 1;
  display: block;
  transition: color 0.3s ease;
}

.partner:hover .partner__wordmark { color: var(--red); }

.partner__note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.5;
  margin-top: auto;
}

/* ——— CUSTOMER MARQUEE ——— */
.customers {
  padding: clamp(64px, 7vw, 112px) 0 clamp(56px, 6vw, 96px);
  border-top: 1px solid var(--panel-border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.customers__header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(44px, 5vw, 72px);
}

.customers__divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--panel-border), transparent);
}

.customers__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.customers__marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.customers__track {
  display: flex;
  width: max-content;
  animation: customer-marquee 62s linear infinite;
  will-change: transform;
}

.customers__marquee:hover .customers__track,
.customers__marquee:focus-within .customers__track {
  animation-play-state: paused;
}

@keyframes customer-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .customers__track { animation: none; }
  .customers__marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.customers__logo {
  flex: 0 0 auto;
  padding: 26px clamp(56px, 6vw, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  min-width: 240px;
}

.customers__wordmark {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.015em;
  color: var(--ink-dim);
  line-height: 1;
  white-space: nowrap;
  transition: color 0.3s ease, transform 0.3s ease;
}

.customers__logo:hover .customers__wordmark {
  color: var(--heading);
}

.customers__logo img {
  max-height: 58px;
  max-width: 200px;
  width: auto;
  height: auto;
  display: block;
  filter: grayscale(1) brightness(1.4) contrast(0.95);
  opacity: 0.72;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

html[data-theme="light"] .customers__logo img {
  filter: grayscale(1) brightness(0.35) contrast(1.05);
  opacity: 0.68;
}

.customers__logo:hover img {
  filter: grayscale(0) brightness(1) contrast(1);
  opacity: 1;
}

/* ——— CALLOUT (MOSTI) ——— */
.callout {
  position: relative;
  padding: 60px 48px;
  border: 1px solid var(--red-mute);
  background: linear-gradient(135deg, var(--red-wash), rgba(180, 210, 240, 0.015));
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-dim), transparent);
}

.callout__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--red-mute);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}

.callout__badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.callout__title {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 300;
  color: var(--heading);
  margin-bottom: 18px;
  line-height: 1.25;
  max-width: 40ch;
}

.callout__body {
  color: var(--ink-dim);
  max-width: 60ch;
  margin-bottom: 28px;
}

.callout__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ice-dim);
}

.callout__meta span strong {
  display: block;
  color: var(--ink);
  font-weight: 400;
  margin-top: 3px;
}

/* ——— PAGE HEADER ——— */
.page-header {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  border-bottom: 1px solid var(--panel-border);
  position: relative;
}

.page-header__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.page-header__kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--ice-dim);
}

.page-header__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--heading);
  letter-spacing: -0.02em;
  max-width: 22ch;
  line-height: 1.1;
}

.page-header__lede {
  margin-top: 28px;
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.65;
}

/* ——— SPECS TABLE ——— */
.spec-row {
  display: grid;
  grid-template-columns: 160px 1fr 120px;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--panel-border);
  align-items: baseline;
}

.spec-row:first-child { border-top: 1px solid var(--panel-border); }

.spec-row__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ice-dim);
}

.spec-row__value {
  color: var(--ink);
  font-size: 0.98rem;
}

.spec-row__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--red);
  text-align: right;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .spec-row { grid-template-columns: 1fr; gap: 8px; }
  .spec-row__meta { text-align: left; }
}

/* ——— EQUIPMENT / CARD GRID ——— */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--panel-border);
}

.card {
  background: var(--bg);
  padding: 32px 28px;
  position: relative;
  transition: background 0.4s ease;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.card:hover { background: rgba(180, 210, 240, 0.025); }

.card__id {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--ice-mute);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

.card__title {
  font-size: 1.1rem;
  color: var(--heading);
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.card__subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--red-dim);
  margin-bottom: 18px;
}

.card__body {
  color: var(--ink-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  flex-grow: 1;
}

.card__specs {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--panel-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.card__specs span strong {
  display: block;
  color: var(--ice);
  margin-top: 3px;
  font-weight: 400;
}

/* ——— MACHINE SHOWCASE ——— */
.machine-showcase {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
  align-items: stretch;
}

@media (max-width: 960px) {
  .machine-showcase { grid-template-columns: 1fr; }
}

.machine-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--panel-border);
}

@media (max-width: 620px) {
  .machine-list { grid-template-columns: 1fr; }
}

.machine-card {
  background: var(--bg);
  border: 0;
  text-align: left;
  padding: 22px 22px 24px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
}

.machine-card:hover { background: rgba(180, 210, 240, 0.035); }

.machine-card.is-active {
  background: var(--red-wash);
  box-shadow: inset 2px 0 0 var(--red);
}

html[data-theme="light"] .machine-card:hover { background: rgba(15, 18, 24, 0.03); }

.machine-card__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ice-mute);
  margin-bottom: 14px;
}

.machine-card__top span:last-child { color: var(--red-dim); }

.machine-card__title {
  font-size: 1rem;
  color: var(--heading);
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.machine-card__subtitle {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ice-dim);
  margin-bottom: 14px;
}

.machine-card__body {
  color: var(--ink-dim);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: none;
}

.machine-card .card__specs {
  margin-top: auto;
  padding-top: 16px;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 8px;
}

.machine-preview {
  background: var(--bg);
  position: relative;
}

.machine-preview__stage {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  height: calc(100vh - var(--nav-h) - 40px);
  max-height: 680px;
  min-height: 480px;
  display: block;
  overflow: hidden;
}

@media (max-width: 960px) {
  .machine-preview__stage { position: static; min-height: 380px; height: 60vw; max-height: none; }
}

.machine-preview__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.15) contrast(1.05) brightness(0.96);
  transition: opacity 0.3s ease;
}

html[data-theme="light"] .machine-preview__stage img {
  filter: grayscale(0.08) contrast(1.02);
}

.machine-preview__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, var(--overlay-edge-strong) 100%);
}

.machine-preview__meta {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 2;
}

.machine-preview__code {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--red-dim);
  margin-bottom: 10px;
}

.machine-preview__title {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--heading);
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.machine-preview__caption {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 52ch;
}

/* ——— LIST w/ LINE ——— */
.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--panel-border);
  color: var(--ink-dim);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: baseline;
}
.list li:first-child { border-top: 1px solid var(--panel-border); }

.list li .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ice-dim);
}

.list li .v { color: var(--ink); }

/* ——— VALUES PANEL ——— */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-border);
}

.value {
  background: var(--bg);
  padding: 36px 28px;
}

.value__n {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.4px;
  color: var(--red-dim);
  margin-bottom: 20px;
}

.value__t { font-size: 1.1rem; color: var(--heading); font-weight: 400; margin-bottom: 10px; }
.value__d { color: var(--ink-dim); font-size: 0.9rem; line-height: 1.65; }

@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

/* ——— TEAM ——— */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--panel-border);
}

.member {
  background: var(--bg);
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
}

.member__portrait {
  width: 120px; height: 120px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(135deg, rgba(180, 210, 240, 0.05), rgba(180, 210, 240, 0.01));
  display: grid; place-items: center;
  color: var(--ice-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  position: relative;
  overflow: hidden;
}

.member__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 45%, rgba(180, 210, 240, 0.08) 50%, transparent 55%);
  pointer-events: none;
}

.member__name {
  font-size: 1.05rem;
  color: var(--heading);
  font-weight: 400;
  margin-bottom: 4px;
  line-height: 1.3;
}

.member__role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--red-dim);
  margin-bottom: 16px;
}

.member__bio {
  color: var(--ink-dim);
  font-size: 0.87rem;
  line-height: 1.7;
}

.member__draft {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-mute);
  padding: 3px 8px;
}

@media (max-width: 820px) {
  .team { grid-template-columns: 1fr; }
  .member { grid-template-columns: 80px 1fr; gap: 20px; padding: 28px 24px; }
  .member__portrait { width: 80px; height: 80px; }
}

/* ——— CONTACT ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--panel-border);
}

.contact-block {
  background: var(--bg);
  padding: 40px 32px;
}

.contact-block__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red-dim);
  margin-bottom: 20px;
}

.contact-block__value {
  font-size: 1.2rem;
  color: var(--heading);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}

.contact-block__meta {
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.65;
}

.contact-map {
  background: var(--bg);
  border: 1px solid var(--panel-border);
  height: 420px;
  position: relative;
  overflow: hidden;
}

.contact-map iframe {
  border: 0;
  width: 100%;
  height: 100%;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.9);
  transition: filter 0.4s ease;
}

html[data-theme="light"] .contact-map iframe {
  filter: saturate(0.85) contrast(1.02);
}

@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* ——— HYDROGEN TIMELINE ——— */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--red-mute), var(--ice-mute), transparent);
}

.tl-item { position: relative; padding: 12px 0 32px; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -32px; top: 18px;
  width: 13px; height: 13px;
  border: 1px solid var(--red-dim);
  background: var(--bg);
  border-radius: 50%;
}

.tl-item::after {
  content: "";
  position: absolute;
  left: -27px; top: 23px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ice-dim);
  margin-bottom: 6px;
}

.tl-title { font-size: 1.1rem; color: var(--heading); font-weight: 400; margin-bottom: 8px; }
.tl-body { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.65; max-width: 62ch; }

/* ——— FOOTER ——— */
.footer {
  border-top: 1px solid var(--panel-border);
  padding: 70px 0 40px;
  background: var(--bg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer__brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.footer__tag {
  color: var(--ink-dim);
  font-size: 0.88rem;
  max-width: 34ch;
  line-height: 1.65;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ice-dim);
  margin-bottom: 20px;
}

.footer__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer__list a {
  color: var(--ink-dim);
  font-size: 0.86rem;
  transition: color 0.3s ease;
}

.footer__list a:hover { color: var(--ink); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--panel-border);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ——— UTILITIES ——— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.gap-0 { gap: 0; }
.gap-xs { gap: 12px; }
.gap-sm { gap: 20px; }
.gap-md { gap: 32px; }
.gap-lg { gap: 48px; }

.mt-xs { margin-top: 12px; }
.mt-sm { margin-top: 20px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }

.text-center { text-align: center; }

/* ——— FADE-IN ANIMATION ——— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— SCROLLBAR ——— */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(180, 210, 240, 0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(180, 210, 240, 0.24); }

/* ——— NOISE OVERLAY (subtle) ——— */
.noise {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: var(--grain-blend);
}

/* ——— IMAGERY ——— */
/* Studio-grade photography treatment: desaturated + scrim to hold to the palette */

.media {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(0.55) brightness(0.72) contrast(1.08);
  transition: filter 0.5s ease, transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="light"] .media__img {
  filter: grayscale(0.35) brightness(0.95) contrast(1.02) saturate(0.9);
}

.media--hover:hover .media__img { transform: scale(1.03); }

/* Scrim: holds overlaid text legible regardless of image */
.media__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.35) 0%, rgba(10, 12, 16, 0.55) 50%, rgba(10, 12, 16, 0.78) 100%),
    linear-gradient(90deg, rgba(10, 12, 16, 0.45) 0%, transparent 55%);
}

html[data-theme="light"] .media__scrim {
  background:
    linear-gradient(180deg, rgba(244, 241, 236, 0.25) 0%, rgba(244, 241, 236, 0.45) 50%, rgba(244, 241, 236, 0.75) 100%),
    linear-gradient(90deg, rgba(244, 241, 236, 0.45) 0%, transparent 55%);
}

/* Brand-red accent wash: single-hue coherence across varied photography */
.media__tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--red-wash);
  mix-blend-mode: multiply;
  opacity: 0.55;
}

html[data-theme="light"] .media__tint { opacity: 0.35; }

.media__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 4vw, 48px);
}

/* ——— Image band (full-width strip between sections) ——— */
.media-band {
  position: relative;
  height: clamp(220px, 32vw, 380px);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.media-band__caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--heading);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.media-band__caption small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--ice-dim);
  margin-top: 4px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

/* ——— Section backdrop image (absolute behind a section's container) ——— */
.section--has-bg {
  position: relative;
  isolation: isolate;
}

.section__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.7) brightness(0.35) contrast(1.1);
  opacity: 0.6;
}

html[data-theme="light"] .section__bg img {
  filter: grayscale(0.5) brightness(0.82) contrast(1.05) saturate(0.85);
  opacity: 0.35;
}

.section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%);
  pointer-events: none;
}

/* ——— Card hero image ——— */
.card__media {
  position: relative;
  margin: -32px -28px 24px;
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-border);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.7) contrast(1.1);
}
html[data-theme="light"] .card__media img {
  filter: grayscale(0.3) brightness(0.92) contrast(1.04) saturate(0.85);
}

/* ——— Member portrait enhancement (minimal placeholder frame) ——— */
.member__portrait--textured {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--panel-border);
}
.member__portrait--textured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 28% 28%, var(--red-wash) 0%, transparent 60%);
  filter: none;
  opacity: 1;
}
.member__portrait--textured::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--panel-border);
  background: none;
  opacity: 0.5;
  pointer-events: none;
}
.member__portrait--textured span {
  position: relative;
  z-index: 2;
  color: var(--ice-dim);
  text-shadow: none;
  font-size: 10px;
  letter-spacing: 2.6px;
}
html[data-theme="light"] .member__portrait--textured span {
  color: var(--ice);
  text-shadow: none;
}

/* ——— LOADING SCREEN ——— */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.8s ease;
}

#loading-screen.hidden { opacity: 0; pointer-events: none; }

.loader-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ice-dim);
  margin-bottom: 18px;
  animation: loader-pulse 1.6s infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.loader-bar {
  width: 180px;
  height: 1px;
  background: var(--panel-border);
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--ice);
  box-shadow: 0 0 10px var(--ice);
  transition: width 0.3s ease;
}

/* ——— LABEL PINS (for 3D scene) ——— */
#labels-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.pin.visible { opacity: 1; }

.pin__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 8px var(--ice);
  margin: 0 auto 10px;
}

.pin__label {
  font-size: 9px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ice);
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(180, 210, 240, 0.4);
}

.pin__sub {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--ink-mute);
  margin-top: 3px;
  text-align: center;
}

#pin-svg .pin-line {
  stroke: var(--ice-mute);
  fill: none;
}

#pin-svg .pin-dot-svg {
  fill: var(--ice-dim);
}

/* ——— EMBEDDED SCENE (non-hero pages) ——— */
.scene-embed {
  position: relative;
  height: 520px;
  border: 1px solid var(--panel-border);
  overflow: hidden;
  background: #080a0e;
}

.scene-embed canvas { width: 100%; height: 100%; }
.scene-embed .scene-caption {
  position: absolute;
  bottom: 16px; left: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ice-dim);
}
