/* ============================================================
   BARDING INDUSTRIES — Main Stylesheet
   ============================================================ */

/* Fonts loaded via <link> tags in index.html for faster first paint */

/* ── Design Tokens ── */
:root {
  --clr-bg:       #1b1718;
  --clr-surface:  #342e30;
  --clr-surface2: #2a2426;
  --clr-red:      #b81620;
  --clr-purple:   #691751;
  --clr-white:    #ffffff;
  --clr-muted:    rgba(255, 255, 255, 0.68);
  --clr-faint:    rgba(255, 255, 255, 0.18);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-h:         90px;
  --nav-h-compact: 68px;
  --max-w:         1100px;
  --section-pad: 100px 0;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.3s var(--ease);
}

/* ── Skip to content ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--clr-red);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-white);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utility ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: 1.0625rem;
  color: var(--clr-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

#navbar.scrolled {
  height: var(--nav-h-compact);
  background: rgba(27, 23, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--clr-faint);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  height: 68px;
  width: auto;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.10));
  transition: height var(--transition);
}

#navbar.scrolled .nav-logo {
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color var(--transition);
  letter-spacing: 0.05em;
  position: relative;
}
.nav-links a:hover { color: var(--clr-white); }

/* Slide-in underline on hover */
.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-white);
  transition: width var(--transition);
}
.nav-links a:not(.btn-nav):hover::after { width: 100%; }

/* Active section indicator — red underline */
.nav-links a.active-link { color: var(--clr-white); }
.nav-links a.active-link::after {
  width: 100%;
  background: var(--clr-red);
}

.btn-nav {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--clr-red);
  color: var(--clr-white);
  border-radius: 0;
  background: transparent;
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn-nav:hover {
  background: rgba(184, 22, 32, 0.18);
  border-color: var(--clr-red);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: transparent;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition), background var(--transition);
}

/* Hamburger → X when open: bars turn red */
#nav-toggle[aria-expanded="true"] span {
  background: var(--clr-red);
}
#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;
  transform: scaleX(0);
}
#nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--nav-h) 0 0;
  overflow: hidden;
  background: #000000;
}

/* Hero container: fills remaining height so scroll sits at bottom */
.hero-layout {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-bg {
  display: none;
}

/* Chevron layer grid — subtle white on black */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='54'%3E%3Cpolyline points='0,27 27,0 54,27 81,0 108,27' fill='none' stroke='white' stroke-opacity='0.045' stroke-width='1'/%3E%3Cpolyline points='0,27 27,54 54,27 81,54 108,27' fill='none' stroke='white' stroke-opacity='0.045' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 108px 54px;
  pointer-events: none;
}

/* Purple halo — wider, softer cursor glow */
.hero-grid-purple {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='54'%3E%3Cpolyline points='0,27 27,0 54,27 81,0 108,27' fill='none' stroke='%23691751' stroke-opacity='0.6' stroke-width='1'/%3E%3Cpolyline points='0,27 27,54 54,27 81,54 108,27' fill='none' stroke='%23691751' stroke-opacity='0.6' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 108px 54px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 300px at var(--cx, -999px) var(--cy, -999px), black 0%, transparent 100%);
          mask-image: radial-gradient(circle 300px at var(--cx, -999px) var(--cy, -999px), black 0%, transparent 100%);
}

/* Red core — tight cursor spotlight, paints over the purple center */
.hero-grid-cursor {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='54'%3E%3Cpolyline points='0,27 27,0 54,27 81,0 108,27' fill='none' stroke='%23b81620' stroke-opacity='0.7' stroke-width='1'/%3E%3Cpolyline points='0,27 27,54 54,27 81,54 108,27' fill='none' stroke='%23b81620' stroke-opacity='0.7' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 108px 54px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 150px at var(--cx, -999px) var(--cy, -999px), black 0%, transparent 100%);
          mask-image: radial-gradient(circle 150px at var(--cx, -999px) var(--cy, -999px), black 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.35s forwards;
}

.hero-title em {
  font-style: normal;
  color: inherit;
}

.hero-anywhere {
  color: var(--clr-red);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--clr-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.65s forwards;
}

.btn-hero-primary {
  display: inline-block;
  background: var(--clr-red);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border: 1px solid var(--clr-red);
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.btn-hero-primary:hover {
  background: #9e1019;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-hero-secondary {
  display: inline-block;
  background: #000000;
  color: var(--clr-muted);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.875rem 1.5rem;
  border: 1px solid var(--clr-faint);
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-hero-secondary:hover {
  background: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--clr-white);
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.85s forwards;
  color: var(--clr-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition);
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}
.hero-scroll:hover { color: var(--clr-white); }

.scroll-arrow {
  width: 13px;
  height: 13px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%       { transform: translateY(4px) rotate(45deg); }
}

/* ── REEs Section ── */
#rees {
  padding: var(--section-pad);
  background: var(--clr-surface);
}

.rees-header {
  max-width: 680px;
  margin-bottom: 4rem;
}

/* Beat 1: three big stats */
.rees-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--clr-faint);
  border-bottom: 1px solid var(--clr-faint);
  margin-bottom: 5rem;
}

.rees-stat {
  padding: 2.75rem 2.5rem 2.75rem 0;
  border-right: 1px solid var(--clr-faint);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: border-color var(--transition);
}
.rees-stat:hover { border-color: rgba(184, 22, 32, 0.45); }
.rees-stat:not(:first-child) { padding-left: 2.5rem; }
.rees-stat:last-child { border-right: none; padding-right: 0; }

.rees-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--clr-white);
  letter-spacing: -0.025em;
  -webkit-text-stroke: 0px transparent;
  transition: color var(--transition), -webkit-text-stroke var(--transition);
}

.rees-stat:hover .rees-stat-num {
  color: var(--clr-red);
  -webkit-text-stroke: 0.75px var(--clr-red);
}

.rees-stat-of {
  font-size: 0.52em;
  opacity: 0.65;
  font-weight: 500;
  letter-spacing: 0;
}
.rees-stat:hover .rees-stat-of {
  opacity: 0.85;
}

.rees-stat-label {
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.55;
  max-width: 220px;
}

/* Beat 2: two-column body */
.rees-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.rees-sub-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.rees-body .section-body { max-width: none; }

/* Callout rows */
.rees-callouts {
  margin-top: 2rem;
  border-top: 1px solid var(--clr-faint);
}

.rees-callout-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--clr-faint);
  transition: border-color var(--transition);
}
.rees-callout-item:hover { border-color: rgba(184, 22, 32, 0.45); }

.rees-callout-num {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--clr-red);
  flex-shrink: 0;
  min-width: 68px;
  transition: transform var(--transition);
  transform-origin: left center;
}
.rees-callout-item:hover .rees-callout-num { transform: scale(1.08); }

.rees-callout-label {
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.45;
}

/* Waste flow rows */
.rees-waste {
  margin-top: 2rem;
  border-top: 1px solid var(--clr-faint);
}

.rees-waste-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--clr-faint);
  transition: border-color var(--transition);
}
.rees-waste-row:hover { border-color: rgba(184, 22, 32, 0.45); }

.rees-waste-num {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--clr-white);
  flex-shrink: 0;
  min-width: 68px;
  transition: transform var(--transition);
  transform-origin: left center;
}
.rees-waste-row:hover .rees-waste-num { transform: scale(1.08); }

.rees-waste-num--dim  { color: var(--clr-muted); }
.rees-waste-num--recycled { color: var(--clr-muted); }
.rees-waste-num--lost {
  color: var(--clr-red);
  animation: rees-lost-pulse 3.5s ease-in-out infinite;
}
@keyframes rees-lost-pulse {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 18px rgba(184,22,32,0.45); }
}

.rees-waste-desc {
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.45;
}

/* ── Technology / Platform (sticky scroll) ── */
#platform {
  background: #000000;
  padding-top: 36px;
  position: relative;
}

.platform-intro {
  padding-bottom: 4px;
}


/* Outer scroll container — gives scroll height */
.platform-scroll-outer {
  position: relative;
  height: 400vh;
}

/* Sticky inner — stays in viewport while outer scrolls */
.platform-sticky-inner {
  position: sticky;
  top: var(--nav-h-compact);
  height: calc(100vh - var(--nav-h-compact));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  gap: 5rem;
}

/* LEFT: steps list */
.platform-steps-col {
  display: flex;
  flex-direction: column;
}

/* DOTS: step position indicator — absolutely pinned to far right of sticky inner */
.platform-dots {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}
.platform-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transform: rotate(45deg);
  transition: background var(--transition), transform var(--transition);
}
.platform-dot.active {
  background: var(--clr-red);
  transform: rotate(45deg) scale(1.5);
}

.platform-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--clr-faint);
  opacity: 0.22;
  transition: opacity 0.5s var(--ease), border-color var(--transition);
}
.platform-step:first-child  { border-top: 1px solid var(--clr-faint); }
.platform-step.active { opacity: 1; }
.platform-step.active:hover { border-color: rgba(184, 22, 32, 0.45); }

.step-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--clr-red);
  min-width: 34px;
  padding-top: 4px;
  flex-shrink: 0;
}

.step-text { flex: 1; }

.step-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--clr-white);
  line-height: 1.25;
  transition: letter-spacing var(--transition);
}
.platform-step.active .step-title {
  letter-spacing: -0.025em;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--clr-muted);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.5s var(--ease), opacity 0.45s var(--ease), margin-top 0.4s var(--ease);
}

.platform-step.active .step-desc {
  max-height: 160px;
  opacity: 1;
  margin-top: 0.5rem;
}

/* RIGHT: visuals panel */
.platform-visuals-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.platform-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 18px)) scale(0.86);
  width: min(440px, 100%);
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.platform-visual.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.platform-visual svg { width: 100%; }
.platform-visual img { width: 100%; object-fit: cover; border-radius: 4px; }

/* ─── Platform Visuals (PV) ──────────────────────────────── */
.pv {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── Visual 0: Feedstock ── */
.pv--feedstock {
  padding: 0.75rem 0.25rem;
  gap: 1.25rem;
}

.pv-fs-claim {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-white);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.1s;
  line-height: 1.4;
}
.platform-visual.active .pv-fs-claim { opacity: 1; }

/* Grade legend */
.pv-fs-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--clr-faint);
  border-bottom: 1px solid var(--clr-faint);
  margin-bottom: 1.25rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.1s;
}
.platform-visual.active .pv-fs-stats { opacity: 1; }
.pv-fs-stat {
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-right: 1px solid var(--clr-faint);
}
.pv-fs-stat:last-child { border-right: none; }
.pv-fs-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  font-weight: 700;
  line-height: 1;
  color: var(--clr-white);
}
.pv-fs-stat:first-child .pv-fs-stat-num { color: var(--clr-red); }
.pv-fs-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-muted);
}
.pv-fs-stat-sub {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.3;
}

.pv-fs-rows {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pv-fs-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.platform-visual.active .pv-fs-r1 { opacity: 1; transform: none; transition-delay: 0.2s; }
.platform-visual.active .pv-fs-r2 { opacity: 1; transform: none; transition-delay: 0.33s; }
.platform-visual.active .pv-fs-r3 { opacity: 1; transform: none; transition-delay: 0.46s; }
.platform-visual.active .pv-fs-r4 { opacity: 1; transform: none; transition-delay: 0.59s; }

.pv-fs-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
}

.pv-fs-data {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.pv-fs-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.pv-fs-name {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--clr-white);
}

.pv-fs-grade {
  font-size: 0.875rem;
  color: var(--clr-muted);
  white-space: nowrap;
}

.pv-fs-track {
  width: 100%;
  height: 6px;
  background: rgba(184,22,32,0.1);
  border-radius: 2px;
  overflow: visible;
  position: relative;
}

/* Threshold tick at right edge */
.pv-fs-track::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  bottom: -4px;
  width: 1.5px;
  background: rgba(255,255,255,0.25);
  border-radius: 1px;
}

.pv-fs-fill {
  height: 100%;
  min-width: 4px;
  width: 0;
  background: var(--clr-red);
  border-radius: 2px;
  transition: width 0.85s var(--ease);
}
.platform-visual.active .pv-fs-r1 .pv-fs-fill { width: var(--pct); transition-delay: 0.45s; }
.platform-visual.active .pv-fs-r2 .pv-fs-fill { width: var(--pct); transition-delay: 0.58s; }
.platform-visual.active .pv-fs-r3 .pv-fs-fill { width: var(--pct); transition-delay: 0.71s; }
.platform-visual.active .pv-fs-r4 .pv-fs-fill { width: var(--pct); transition-delay: 0.84s; }

.pv-fs-axis {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-left: calc(16px + 0.875rem);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 1.0s;
}
.platform-visual.active .pv-fs-axis { opacity: 1; }

.pv-fs-axis-lo {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.50);
}

.pv-fs-axis-hi {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.pv-fs-axis-num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-muted);
}

.pv-fs-axis-sub {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pv-fs-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.58);
  font-style: italic;
  opacity: 0;
  transition: opacity 0.5s var(--ease) 1.15s;
}
.platform-visual.active .pv-fs-note { opacity: 1; }

/* ── Visual 1: Extraction ── */
.pv--extraction {
  overflow: hidden;
  position: relative;
}

.pv-ext-svg {
  display: block;
  width: 100%;
}

.pv-hex-cell {
  stroke: #000000;   /* matches section background — gaps read as true black crevices */
  stroke-width: 0.75;
}

/* Rock hexes — 5 solid tones; no transparency = no overlap compounding */
.pv-hx--r0 { fill: #252123; }
.pv-hx--r1 { fill: #2e292b; }
.pv-hx--r2 { fill: #393334; }
.pv-hx--r3 { fill: #282426; }
.pv-hx--r4 { fill: #342f31; }

/* REE mineral inclusions — solid pre-blended with bg, stand out clearly */
.pv-hx--nd { fill: #35496a; }
.pv-hx--tb { fill: #4a3862; }
.pv-hx--dy { fill: #233e30; }
.pv-hx--sc { fill: #533c18; }
.pv-hx--y  { fill: #5a121a; }

/* REE hexes in rock — static color, no animation */

/* Floating dissolved-ion hexes — shared by Extraction and Separation */
.pv-float-hex { stroke: none; }

/* Primary floating REE hexes — solid flat element colour */
.pv-fh--nd { fill: #5280b4; }
.pv-fh--tb { fill: #825a9e; }
.pv-fh--dy { fill: #348c5a; }
.pv-fh--sc { fill: #be6e2a; }
.pv-fh--y  { fill: #b81620; }

/* Grey rock particulate in solution — static, no animation */
.pv-amb-hex {
  fill:   #2a2527;
  stroke: none;
}

/* Extra REE hexes — smaller & more transparent than primary 5; same in both Extraction and Separation */
/* Extra REE hexes — same hue, darker/more muted than primaries */
.pv-fhx--nd { fill: #3d5e8a; }
.pv-fhx--tb { fill: #5c4278; }
.pv-fhx--dy { fill: #285e40; }
.pv-fhx--sc { fill: #7a4420; }
.pv-fhx--y  { fill: #780d12; }

/* Separation tile text */
.pv-st-num {
  font-family: var(--font-body);
  font-size: 13px;
  fill: rgba(255,255,255,0.40);
  text-anchor: middle;
  dominant-baseline: auto;
}
.pv-st-sym {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: auto;
}
.pv-st--nd { fill: #5280b4; }
.pv-st--tb { fill: #825a9e; }
.pv-st--dy { fill: #348c5a; }
.pv-st--sc { fill: #be6e2a; }
.pv-st--y  { fill: var(--clr-red); }

/* Separation SVG sizing */
.pv--separation .pv-sep-svg { width: 100%; height: auto; display: block; }

.pv-ext-footer {
  padding: 0.875rem 1.5rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.pv-ext-caption {
  font-size: 0.875rem;
  color: var(--clr-muted);
}
.pv-ext-caption strong { color: var(--clr-white); font-weight: 500; }

.pv-ext-attrs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pv-attr {
  font-size: 0.5938rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  border: 1px solid var(--clr-faint);
  padding: 0.2rem 0.5rem;
}

/* ── Visual 2: Separation ── */
.pv--separation {
  padding: 0.75rem 0.5rem;
  gap: 0.75rem;
  justify-content: space-between;
}

.pv-sep-svg { display: block; width: 100%; }

.pv-sep-caption {
  font-size: 0.875rem;
  color: var(--clr-muted);
}
.pv-sep-caption strong { color: var(--clr-white); font-weight: 500; }

.pv-sep-footer {
  padding: 0.875rem 1.5rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.pv-sep-attrs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Visual 3: Product ── */
.pv--product {
  padding: 0.875rem 0.5rem 0.75rem;
  gap: 0.875rem;
}

/* REE output strip */
.pv-prod-strip {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.pv-prod-el {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  padding: 0.35rem 0.15rem 0.3rem;
  border: 1px solid;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.platform-visual.active .pv-prod-el                { opacity: 1; transform: none; }
.platform-visual.active .pv-prod-el:nth-child(1)   { transition-delay: 0.1s; }
.platform-visual.active .pv-prod-el:nth-child(2)   { transition-delay: 0.2s; }
.platform-visual.active .pv-prod-el:nth-child(3)   { transition-delay: 0.3s; }
.platform-visual.active .pv-prod-el:nth-child(4)   { transition-delay: 0.4s; }
.platform-visual.active .pv-prod-el:nth-child(5)   { transition-delay: 0.5s; }

.pv-pe-num {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.50);
  font-family: var(--font-body);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.pv-pe-sym {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pv-pe--nd { border-color: rgba(82,128,180,0.38);  background: rgba(82,128,180,0.07); }
.pv-pe--nd .pv-pe-sym { color: #5280b4; }
.pv-pe--tb { border-color: rgba(130,90,158,0.38);  background: rgba(130,90,158,0.07); }
.pv-pe--tb .pv-pe-sym { color: #825a9e; }
.pv-pe--dy { border-color: rgba(52,140,90,0.38);   background: rgba(52,140,90,0.07); }
.pv-pe--dy .pv-pe-sym { color: #348c5a; }
.pv-pe--sc { border-color: rgba(190,110,42,0.38);  background: rgba(190,110,42,0.07); }
.pv-pe--sc .pv-pe-sym { color: #be6e2a; }
.pv-pe--y  { border-color: rgba(184,22,32,0.38);   background: rgba(184,22,32,0.07); }
.pv-pe--y  .pv-pe-sym { color: var(--clr-red); }

/* Market destination tiles */
.pv-prod-markets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.pv-mkt-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--clr-faint);
  border-radius: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), border-color var(--transition);
}
.pv-mkt-tile:hover { border-color: rgba(184,22,32,0.35); }
.platform-visual.active .pv-mkt-tile              { opacity: 1; transform: none; }
.platform-visual.active .pv-mkt-tile:nth-child(1) { transition-delay: 0.6s; }
.platform-visual.active .pv-mkt-tile:nth-child(2) { transition-delay: 0.72s; }
.platform-visual.active .pv-mkt-tile:nth-child(3) { transition-delay: 0.84s; }
.platform-visual.active .pv-mkt-tile:nth-child(4) { transition-delay: 0.96s; }

.pv-mkt-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.1rem;
}

.pv-mkt-ico {
  font-size: 1.125rem;
  color: var(--clr-red);
}

.pv-mkt-label {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--clr-white);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.pv-mkt-apps {
  font-size: 0.8125rem;
  color: var(--clr-muted);
  line-height: 1.4;
}

.pv-mkt-elems {
  display: flex;
  gap: 4px;
  margin-top: 0.25rem;
}

.pv-me-dot {
  display: block;
  width: 8px;
  height: 8px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  align-self: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.platform-visual.active .pv-mkt-tile:nth-child(1) .pv-me-dot { opacity: 1; transition-delay: 1.05s; }
.platform-visual.active .pv-mkt-tile:nth-child(2) .pv-me-dot { opacity: 1; transition-delay: 1.17s; }
.platform-visual.active .pv-mkt-tile:nth-child(3) .pv-me-dot { opacity: 1; transition-delay: 1.29s; }
.platform-visual.active .pv-mkt-tile:nth-child(4) .pv-me-dot { opacity: 1; transition-delay: 1.41s; }

.pv-me--nd { background: #5280b4; }
.pv-me--tb { background: #825a9e; }
.pv-me--dy { background: #348c5a; }
.pv-me--sc { background: #be6e2a; }
.pv-me--y  { background: var(--clr-red); }

.pv-prod-cap {
  font-size: 0.9375rem;
  color: var(--clr-muted);
  line-height: 1.55;
  opacity: 0;
  transition: opacity 0.4s var(--ease) 1.3s;
}
.platform-visual.active .pv-prod-cap { opacity: 1; }

/* Tags below scroll zone */
.platform-tags {
  margin-top: 1.75rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--clr-faint);
  border-radius: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--clr-muted);
  margin: 0.25rem;
}

/* Mobile: disable sticky, stack vertically */
@media (max-width: 768px) {
  .platform-scroll-outer { height: auto; }
  .platform-sticky-inner {
    position: relative;
    top: unset;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 1.5rem 2rem;
  }
  /* Flatten columns so steps and visuals can interleave via order */
  .platform-steps-col,
  .platform-visuals-col { display: contents; }
  /* Interleave: step → visual → step → visual */
  .platform-step[data-step="0"]     { order: 1; }
  .platform-visual[data-visual="0"] { order: 2; }
  .platform-step[data-step="1"]     { order: 3; }
  .platform-visual[data-visual="1"] { order: 4; }
  .platform-step[data-step="2"]     { order: 5; }
  .platform-visual[data-visual="2"] { order: 6; }
  .platform-step[data-step="3"]     { order: 7; }
  .platform-visual[data-visual="3"] { order: 8; }
  /* All visuals: visible and in normal flow */
  .platform-visual {
    position: relative;
    top: unset;
    left: unset;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  /* All animated children: skip transitions and show immediately */
  .pv-fs-claim,
  .pv-fs-stats,
  .pv-fs-row,
  .pv-fs-axis,
  .pv-fs-note,
  .pv-prod-el,
  .pv-mkt-tile,
  .pv-me-dot,
  .pv-prod-cap { opacity: 1; transform: none; }
  .pv-fs-fill { width: var(--pct); }
  .platform-dots { display: none; }
  .platform-step { opacity: 1; margin-bottom: 0.5rem; }
  .platform-step .step-desc {
    max-height: none;
    opacity: 1;
    margin-top: 0.5rem;
  }
}

/* ── Space Section ── */
/*
  Layout: Moon surface on LEFT bleeds off the left page edge,
  text on RIGHT. Image is landscape (3:2), framed to show the
  lunar horizon + earthrise moment in the upper portion.
  Full-perimeter vignette mask: two intersected gradients fade
  the Moon's grey surface into the black section background on
  all four edges. Left gets the strongest fade (page bleed);
  right/top/bottom get softer fades.
*/
#space {
  /* Pure black — gradient transition is handled by #platform::after */
  background: #000000;
  overflow: hidden;
  position: relative;
}

/* No .container wrapper — .space-inner handles its own layout */
.space-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  /* No left padding: earth column bleeds to viewport left edge */
  padding: 100px 2rem 100px 0;
}

.space-earth-wrap {
  display: flex;
  align-items: center;
  /* Bleed left, but cap at 180px so very wide screens keep some padding */
  margin-left: calc(-1 * min(max(0px, (100vw - var(--max-w)) / 2), 180px));
}

.space-earth-img {
  /* Width compensates for the capped bleed */
  width: calc(100% + min(max(0px, (100vw - var(--max-w)) / 2), 180px));
  max-width: 720px;
  aspect-ratio: 3/2;
  object-fit: contain;
  display: block;
  /* Right fade starts late so moon stays visible close to text */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 20%, black 36%, black 88%, rgba(0,0,0,0.2) 96%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 12%, black 80%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 20%, black 36%, black 88%, rgba(0,0,0,0.2) 96%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 12%, black 80%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
}

.space-block {
  padding-right: 1rem;
}

@media (max-width: 768px) {
  .space-inner {
    grid-template-columns: 1fr;
    padding: 60px 2rem;
    gap: 2rem;
  }
  .space-earth-wrap {
    margin-left: 0;
    justify-content: center;
  }
  .space-earth-img {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 3/2;
    /* On mobile: elliptical vignette fades the Moon surface on all edges */
    -webkit-mask-image: radial-gradient(ellipse 88% 82% at center 40%,
      black 55%, rgba(0,0,0,0.5) 75%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: radial-gradient(ellipse 88% 82% at center 40%,
      black 55%, rgba(0,0,0,0.5) 75%, transparent 100%);
    mask-composite: add;
  }
  .space-block { padding-right: 0; }
}

/* ── Team ── */
#team {
  padding: 56px 0 100px;
  background: var(--clr-surface);
}

.team-header {
  margin-bottom: 2.5rem;
}

/* Sub-labels: "Founding Team" / "Advisory Board" */
.team-sublabel {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 1.75rem;
}
.team-sublabel--board {
  padding-top: 2.5rem;
  border-top: 1px solid var(--clr-faint);
}
.team-grid--ops-sep {
  padding-top: 2.5rem;
}

/* Founder grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
/* Extended team — auto-fills but caps card width to match founder cards */
.team-grid--ext {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
  gap: 2rem;
  margin-bottom: 2.5rem;
  justify-content: start;
}

.team-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: opacity var(--transition);
}


/* Portrait photo */
.team-photo-wrap {
  width: 100%;
  max-width: 210px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}
.team-photo-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--clr-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: 1;
}
.team-card:hover .team-photo-wrap::after { transform: scaleX(1); }

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(30%) brightness(0.96);
  transition: filter 0.55s var(--ease);
}
.team-card:hover .team-photo { filter: grayscale(0%) brightness(1); }

/* Text */
.team-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 0.2rem;
}

.team-title {
  font-size: 0.75rem;
  color: var(--clr-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.team-credential {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--clr-muted);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.8125rem;
  color: var(--clr-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.team-linkedin:hover { color: var(--clr-white); }
.team-linkedin svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Advisory Board */
.advisory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.advisory-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-faint);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: border-color var(--transition);
}
.advisory-card:hover { border-color: rgba(255,255,255,0.25); }

.advisory-avatar {
  width: 72px;
  height: 72px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.advisory-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(30%) brightness(0.96);
  transition: filter var(--transition);
}
.advisory-card:hover .advisory-avatar img { filter: grayscale(0%) brightness(1); }

.advisory-info .advisory-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 0.25rem;
}
.advisory-info .advisory-role {
  font-size: 0.75rem;
  color: var(--clr-muted);
  line-height: 1.45;
}

/* ── News / Validation ── */
#news {
  padding: var(--section-pad);
  background: #000000;
}

.news-header {
  margin-bottom: 2.5rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-faint);
  border-radius: 0;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition);
}
.news-card:hover {
  border-color: rgba(184, 22, 32, 0.45);
}

.news-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-red);
  border: 1px solid rgba(184,22,32,0.4);
  padding: 2px 6px;
  align-self: flex-start;
}

.news-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--clr-white);
  line-height: 1.4;
  flex: 1;
}

.news-meta {
  font-size: 0.75rem;
  color: var(--clr-muted);
  letter-spacing: 0.04em;
}

.news-announcement-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-red);
  border-bottom: 1px solid rgba(184,22,32,0.35);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: color var(--transition), border-color var(--transition);
}
.news-announcement-link:hover {
  color: #9e1019;
  border-color: rgba(158,16,25,0.6);
}

/* ── CTA ── */
#cta {
  position: relative;
  padding: 140px 0;
  background: #000000;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Vignette — dims grid behind text, darkens edges for depth */
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 44% 48% at 50% 50%, rgba(0,0,0,0.72) 0%, transparent 100%),
    radial-gradient(ellipse 68% 68% at 50% 50%, transparent 22%, rgba(0,0,0,0.88) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Base chevron grid — above vignette so it stays visible */
.cta-grid-base {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='54'%3E%3Cpolyline points='0,27 27,0 54,27 81,0 108,27' fill='none' stroke='white' stroke-opacity='0.07' stroke-width='1'/%3E%3Cpolyline points='0,27 27,54 54,27 81,54 108,27' fill='none' stroke='white' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 108px 54px;
  pointer-events: none;
  z-index: 1;
}

/* Red glow layer — hidden for clean corporate look */
.cta-grid-glow {
  display: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: 1.5rem;
}

.cta-sub {
  font-size: 1.0625rem;
  color: var(--clr-muted);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.btn-cta {
  display: inline-block;
  background: var(--clr-red);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 2.75rem;
  border-radius: 0;
  border: 1px solid var(--clr-red);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.btn-cta:hover {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.55);
}

/* ── Footer ── */
footer {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-faint);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 0.7fr) minmax(280px, 2fr);
  gap: 4rem;
  margin-bottom: 2.25rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.10));
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 240px;
}

.footer-nav-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 1.25rem;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-nav-links a {
  font-size: 0.9375rem;
  color: var(--clr-muted);
  transition: color var(--transition);
}
.footer-nav-links a:hover { color: var(--clr-white); }

/* Formspree contact form */
.footer-form-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 1.25rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-field {
  background: var(--clr-surface);
  border: 1px solid var(--clr-faint);
  border-radius: 0;
  padding: 0.625rem 0.875rem;
  color: var(--clr-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-field::placeholder { color: var(--clr-faint); }
.form-field:focus { border-color: rgba(255,255,255,0.35); }

textarea.form-field {
  resize: vertical;
  min-height: 80px;
}

/* Custom select dropdown */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
}

.custom-select-value {
  color: var(--clr-faint);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.custom-select-value.selected {
  color: var(--clr-white);
}

.custom-select-chevron {
  width: 12px;
  height: 12px;
  stroke: rgba(255, 255, 255, 0.58);
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
  transition: transform var(--transition);
  pointer-events: none;
}

.custom-select.open .custom-select-chevron {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: var(--clr-surface);
  border: 1px solid rgba(255, 255, 255, 0.25);
  list-style: none;
  z-index: 200;
  display: none;
}

.custom-select.open .custom-select-dropdown {
  display: block;
}

.custom-select-option {
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--clr-white);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.custom-select-option:hover,
.custom-select-option[aria-selected="true"] {
  background: var(--clr-red);
  color: var(--clr-white);
}

.btn-form-submit {
  background: transparent;
  border: 1px solid var(--clr-red);
  color: var(--clr-white);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border-radius: 0;
  cursor: pointer;
  align-self: flex-start;
  transition: background var(--transition);
}
.btn-form-submit:hover {
  background: var(--clr-red);
  border-color: var(--clr-red);
}

.form-field-wrap {
  display: flex;
  flex-direction: column;
}

.form-field.field-error {
  border-color: rgba(184, 22, 32, 0.75);
}

.field-error-msg {
  font-size: 0.75rem;
  color: var(--clr-red);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

.btn-form-submit.btn-sent {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.65);
  cursor: default;
}

.footer-bottom {
  border-top: 1px solid var(--clr-faint);
  padding: 0.75rem 0 0.875rem;
}

.footer-bottom-copy {
  font-size: 0.75rem;
  color: var(--clr-muted);
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 40px;
  height: 40px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-faint);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              background var(--transition), border-color var(--transition);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--clr-surface2);
  border-color: var(--clr-red);
}
.back-to-top svg {
  width: 16px;
  height: 16px;
  stroke: var(--clr-muted);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition);
}
.back-to-top:hover svg {
  stroke: var(--clr-white);
}

/* ── Cookie consent banner ── */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-faint);
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.cookie-bar.visible {
  transform: translateY(0);
}
.cookie-text {
  font-size: 0.8125rem;
  color: var(--clr-muted);
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.cookie-btn-deny {
  background: transparent;
  border: 1px solid var(--clr-faint);
  color: var(--clr-muted);
}
.cookie-btn-deny:hover {
  border-color: var(--clr-muted);
  color: var(--clr-white);
}
.cookie-btn-accept {
  background: var(--clr-red);
  border: 1px solid var(--clr-red);
  color: var(--clr-white);
}
.cookie-btn-accept:hover {
  background: #9e1119;
  border-color: #9e1119;
}
@media (max-width: 600px) {
  .cookie-bar { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-surface);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-red);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--clr-surface) var(--clr-bg);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .rees-stats { grid-template-columns: 1fr; }
  .rees-stat {
    border-right: none;
    border-bottom: 1px solid var(--clr-faint);
    padding: 2rem 0;
  }
  /* Reset left-padding offset so all stacked stats align evenly */
  .rees-stat:not(:first-child) { padding-left: 0; }
  .rees-stat:last-child { border-bottom: none; }
  .rees-body { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ════════════════════════════════════════
   2026 POLISH
   ════════════════════════════════════════ */

/* Balanced line-breaks prevent orphaned words on key headings */
.hero-title,
.section-title,
.cta-title,
.news-title,
.team-name {
  text-wrap: balance;
}

/* Consistent digit widths for the large stat numbers */
.rees-stat-num {
  font-variant-numeric: tabular-nums;
}

/* Keyboard focus ring — visible only on keyboard nav, not mouse clicks */
:focus-visible {
  outline: 2px solid var(--clr-red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Respect the user's motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

@media (max-width: 768px) {
  :root { --section-pad: 72px 0; }

  .hero-scroll { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(27,23,24,0.98);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--clr-faint);
  }
  .nav-toggle { display: flex; }

  .team-grid    { grid-template-columns: 1fr; }
  .advisory-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }

  /* Team: remove ops-sep divider — all members flow as one list */
  .team-grid--ops-sep { border-top: none; padding-top: 0; }

  /* Hero actions: stack buttons vertically */
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.875rem; }

  /* CTA: tighten padding */
  #cta { padding: 90px 0; }

  /* ── Hero buttons: stretch to full-width stack on mobile ── */
  .hero-actions { align-items: stretch; }
  .btn-hero-primary,
  .btn-hero-secondary { text-align: center; }

  /* ── Nav dropdown: correct position when navbar is compact (scrolled state) ── */
  #navbar.scrolled .nav-links.open { top: var(--nav-h-compact); }

  /* ── Team cards: center-align on single-column mobile ── */
  .team-card { align-items: center; text-align: center; }
  .team-photo-wrap { margin-left: auto; margin-right: auto; }
  .team-linkedin { align-self: center; }

  /* ── CTA button: block + centered on mobile ── */
  .btn-cta {
    display: block;
    text-align: center;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ── Platform steps: tighter rhythm in interleaved mobile layout ── */
  .platform-step { padding: 1.125rem 0; }
  .platform-visual { margin-bottom: 1.25rem; }

  /* ── Feedstock stats: smaller numbers on narrow phones ── */
  .pv-fs-stat-num { font-size: 1.125rem; }
  .pv-fs-stat { padding: 0.75rem 0.75rem; }
}

/* ── Extra-small screens (≤ 480px) ── */
@media (max-width: 480px) {
  /* Slightly tighter container padding */
  .container { padding: 0 1.25rem; }

  /* Advisory board: single column — 2×2 is too cramped at ~160px per column */
  .advisory-grid { grid-template-columns: 1fr; }
  .advisory-card { padding: 1.125rem 1rem; gap: 1rem; }

  /* Product markets: single column on very small screens */
  .pv-prod-markets { grid-template-columns: 1fr; }

  /* News cards: tighter padding */
  .news-card { padding: 1.75rem 1.25rem; }

  /* Hero title: constrain to feel right at 320–480px */
  .hero-title { font-size: clamp(2rem, 9vw, 2.4rem); }

  /* Section body text: full-width on tiny screens */
  .section-body { max-width: 100%; }

  /* Footer: tighter gap */
  .footer-grid { gap: 2rem; }
}
