/* ==========================================================================
   Climeshift Energy — Design System (v2)
   CarbonScape editorial · Apple typography · Northvolt industrial

   Changelog from v1:
   - Fixed .section-body first-paragraph color bug
   - Added light-section button variants (.btn--dark / .btn--ghost-dark) —
     v1 only had buttons that worked on the dark hero/biomass sections
   - Trimmed unused color tokens (--color-silver, --color-copper were
     defined but never referenced)
   - Restrained Fraunces to two deliberate moments — hero__title and
     pull-quote — per the "characterful face used with restraint"
     principle. Section titles now use the sans display cut at large
     size/tight tracking instead of serif everywhere. This is a real
     design call, not just a fix — see note at bottom of file if you'd
     rather keep serif on every section-title as v1 had it.
   - Added logo image handling (images/logo.jpeg)
   - Added component patterns for Technology, Applications, Research,
     Team, Contact and Footer — not present in v1
   - Tokenized border-radius, added form-element reset
   ========================================================================== */

:root {
  /* Two-mode palette — day and deep mode only */
  --color-char: #0B0F0D;
  --color-graphite: #131A16;
  --color-ash: #F7F5F0;
  --color-ash-dim: #FFFFFF;
  --color-ember: #3EBD8A;
  --color-ember-dim: #1F7A56;
  --color-moss: #7BE0B4;
  --color-ion: #7BE0B4;
  --color-ink: #14171A;
  --color-paper-text: #F2EFE6;
  --color-paper-muted: rgba(242, 239, 230, 0.78);
  --color-paper-muted-light: rgba(242, 239, 230, 0.72);
  --color-paper-faint: rgba(242, 239, 230, 0.35);
  --color-paper-haze: rgba(242, 239, 230, 0.12);
  --color-paper-overlay: rgba(255, 255, 255, 0.05);
  --color-paper-glass: rgba(255, 255, 255, 0.06);
  --color-ash-glass: rgba(247, 245, 240, 0.95);
  --color-muted: rgba(20, 23, 26, 0.62);
  --color-muted-dark: rgba(20, 23, 26, 0.72);
  --color-slate: rgba(20, 23, 26, 0.62);
  --color-border: rgba(20, 23, 26, 0.10);

  /* Legacy aliases for compatibility */
  --color-carbon: var(--color-char);
  --color-kiln: var(--color-ash);
  --color-amber: var(--color-ember);
  --color-olive: var(--color-moss);
  --color-panel: var(--color-ash-dim);
  --color-accent: var(--color-ember);
  --color-accent-hover: var(--color-ember-dim);
  --color-accent-dark: var(--color-ember-dim);

  /* Typography */
  --font-display: "Inter Tight", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3.5rem;
  --space-7: 4.5rem;
  --space-8: 6rem;

  /* Layout */
  --container-max: 1280px;
  --gutter: clamp(1.5rem, 4vw, 5rem);
  --header-height: 4.5rem;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 300ms;
  --duration-base: 600ms;
  --duration-slow: 900ms;

  /* Elevation */
  --shadow-soft: 0 20px 50px rgba(15, 19, 23, 0.08);
  --color-char-border: rgba(20, 23, 26, 0.10);
  --color-char-outline: rgba(20, 23, 26, 0.16);
  --color-char-fade: rgba(20, 23, 26, 0.05);
  --color-char-glass: rgba(11, 15, 13, 0.94);
  --color-char-surface: rgba(20, 23, 26, 0.08);
  --color-paper-border: rgba(242, 239, 230, 0.12);
  --color-ember-strong: rgba(62, 189, 138, 0.9);
  --color-ember-medium: rgba(62, 189, 138, 0.75);
  --color-ember-soft: rgba(62, 189, 138, 0.6);
  --color-ember-faint: rgba(62, 189, 138, 0.45);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-ash);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-ember);
  outline-offset: 3px;
}

button:focus-visible,
a input:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a.btn:focus-visible {
  outline: 2px solid var(--color-ember);
  outline-offset: 4px;
}

@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;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-ash);
  color: var(--color-ink);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.section-label--light {
  color: var(--color-paper-text);
}

/* Section titles use the sans display cut for clarity and restraint. */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-5);
  color: var(--color-ink);
}

#research .section-title {
  color: var(--color-paper-text);
  font-weight: 700;
  font-size: clamp(3.2rem, 5vw, 5rem);
}

.section-title--light {
  color: var(--color-paper-text);
}

.section-body {
  max-width: 40rem;
}

.section-body p {
  color: var(--color-muted);
}

.section-intro {
  max-width: 38rem;
  margin-bottom: var(--space-6);
}

.section-body--spaced {
  margin-bottom: var(--space-5);
}

.section-body p+p {
  margin-top: var(--space-4);
}

.section-body--light p {
  color: var(--color-paper-text);
}

.image-caption {
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-graphite);
}

/* Reveal animation initial state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.hero.is-loaded .hero__title-line:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.hero.is-loaded .hero__title-line:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.hero.is-loaded .hero__title-line:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .hero__title-line {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Buttons
   Two contexts × two weights = four variants. v1 only had the dark-context
   pair, so a button placed in a light section (About, Applications,
   Contact) had no working style.
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

/* -- On dark backgrounds (hero, biomass, section--dark) -- */

.btn--primary {
  background-color: var(--color-ember);
  color: var(--color-char);
}

.btn--primary:hover {
  background-color: var(--color-ember-dim);
  color: var(--color-paper-text);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(62, 189, 138, 0.18);
}

.btn--ghost {
  color: var(--color-paper-text);
  border-color: var(--color-paper-faint);
}

.btn--ghost:hover {
  background-color: var(--color-paper-haze);
  border-color: var(--color-paper-faint);
}

/* -- On light backgrounds (About, Technology, Applications, Contact) -- */

.btn--dark {
  background-color: var(--color-char);
  color: var(--color-ash);
}

.btn--dark:hover {
  background-color: var(--color-slate);
  transform: translateY(-2px);
}

.btn--ghost-dark {
  color: var(--color-char);
  border-color: var(--color-char-border);
}

.btn--ghost-dark:hover {
  background-color: var(--color-char-fade);
  border-color: var(--color-char);
}

/* ==========================================================================
   Sticky Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    backdrop-filter var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.site-header.is-scrolled {
  background-color: rgba(11, 15, 13, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(242, 239, 230, 0.08);
}

/* Desktop: transparent header with light text and ember logo */
@media (min-width: 769px) {
  .site-header {
    background-color: transparent;
  }

  .site-header.is-scrolled {
    background-color: rgba(11, 15, 13, 0.92);
    border-bottom-color: rgba(242, 239, 230, 0.08);
  }

  .site-header .site-logo,
  .site-header.is-scrolled .site-logo {
    color: var(--color-paper-text);
  }

  .site-header .site-logo__text,
  .site-header.is-scrolled .site-logo__text {
    color: var(--color-ember);
  }

  .site-header .site-logo__mark,
  .site-header.is-scrolled .site-logo__mark {
    color: var(--color-ember);
  }

  .site-header .site-nav__link,
  .site-header.is-scrolled .site-nav__link {
    color: var(--color-paper-text) !important;
  }

  .site-header .site-nav__link:hover,
  .site-header.is-scrolled .site-nav__link:hover {
    color: var(--color-ember) !important;
  }

  .site-header .nav-toggle__line,
  .site-header.is-scrolled .nav-toggle__line {
    background-color: var(--color-paper-text);
  }

  .site-header .site-logo {
    margin-left: calc(var(--gutter) * -0.6);
    margin-right: 2rem;
  }

  .site-header .site-header__cta.btn--primary {
    background-color: var(--color-ember);
    color: var(--color-char);
  }

  .site-header .site-header__cta.btn--ghost {
    color: var(--color-paper-text);
    border-color: rgba(242, 239, 230, 0.3);
  }

  .site-header .site-header__cta.btn--ghost:hover {
    background-color: rgba(242, 239, 230, 0.1);
  }

  .site-header__inner {
    gap: 2rem;
  }
}

.site-logo,
.site-nav__link {
  color: var(--color-paper-text);
}

.site-logo__mark {
  color: var(--color-ember);
}

.site-header.is-scrolled .site-logo,
.site-header.is-scrolled .site-nav__link {
  color: var(--color-paper-text);
}

.site-header.is-scrolled .nav-toggle__line {
  background-color: var(--color-paper-text);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.site-header__cta {
  margin-left: auto;
}

/* Logo — text lockup kept as a fallback; image logo sits alongside it. */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  z-index: 101;
}

.site-logo__text {
  color: var(--color-ember);
  white-space: nowrap;
}

.site-logo__img {
  height: 32px;
  width: auto;
  border-radius: var(--radius-sm);
  background-color: transparent;
  padding: 0;
}

.site-header.is-scrolled .site-logo__img {
  background-color: transparent;
  padding: 0;
}

.site-logo__mark {
  font-weight: 400;
  opacity: 0.75;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.site-nav__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-paper-text);
  position: relative;
  transition: color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--color-ember);
  transform: translateY(-1px);
}

.site-header__cta {
  padding: 0.9rem 1.5rem;
  border-radius: 0.35rem;
  white-space: nowrap;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-fast) var(--ease-out);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  transform: scaleX(1);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-paper-text);
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:first-child {
  transform: translateY(4.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:last-child {
  transform: translateY(-4.25px) rotate(-45deg);
}

@media (max-width: 768px) {
  .site-logo__img {
    height: 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header__cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-char);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--duration-base) var(--ease-out),
      visibility var(--duration-base) var(--ease-out);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .site-nav__link {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    color: var(--color-ash);
  }
}

/* ==========================================================================
   Hero — Premium full-viewport section
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(600px, 90vh, 900px);
  padding-top: calc(var(--header-height) + 1.25rem);
  padding-bottom: clamp(4rem, 6vh, 6rem);
  overflow: hidden;
  color: var(--color-paper-text);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  transition: transform 2s var(--ease-out);
}

.hero.is-loaded .hero__image {
  transform: scale(1);
}

/* Directional gradient overlay for readability */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 15, 13, 0.60) 0%, rgba(11, 15, 13, 0.82) 50%, rgba(11, 15, 13, 0.95) 100%);
}

/* Content container */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Mono eyebrow label */
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ember);
  margin-bottom: 1.75rem;
  opacity: 0.9;
}

/* Title block */
.hero__title {
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(3rem, 4vw, 5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 0;
  margin-inline: auto;
  text-transform: uppercase;
}

.hero__title-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.hero__logo {
  width: clamp(16rem, 45vw, 30rem);
  max-width: min(92%, 34rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
}

/* Tagline under logo — lighter weight, smaller than logo */
.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.3vw, 1.15rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(242, 239, 230, 0.88);
  margin-top: 0.15rem;
  text-align: center;
  letter-spacing: -0.01em;
  text-transform: none;
  max-width: 100%;
  width: 100%;
  white-space: normal;
  opacity: 0.92;
}

/* Tagline shared desktop styles */
@media (min-width: 769px) {
  .hero__tagline {
    display: block;
    white-space: normal;
    margin-top: 1rem;
    max-width: 42rem;
  }
}

@media (max-width: 768px) {
  .hero__tagline {
    white-space: normal;
    font-size: clamp(0.95rem, 3.5vw, 1.25rem);
  }
}

/* Lead paragraph */
.hero__lead {
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  color: var(--color-paper-muted);
  max-width: 34rem;
  margin-top: 1.25rem;
}

/* Actions row */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Hero-specific button enhancements */
.btn--hero {
  min-height: 3.1rem;
  padding: 0.8rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 3px;
}

.btn--hero.btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(62, 189, 138, 0.15);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.btn--hero.btn--primary:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(62, 189, 138, 0.25);
}

.btn__arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn--hero.btn--primary:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--hero.btn--ghost {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn--hero.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: clamp(1.5rem, 3.5vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-paper-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.hero__scroll:hover {
  color: var(--color-paper-text);
}

.hero__scroll-indicator {
  width: 18px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.hero__scroll-dot {
  width: 2.5px;
  height: 5px;
  background-color: var(--color-ember);
  border-radius: 2px;
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: 0.4;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__scroll.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Stagger delays for hero reveal children */
.hero__content .reveal:nth-child(1) {
  transition-delay: 0.15s;
}

.hero__content .reveal:nth-child(2) {
  transition-delay: 0.3s;
}

.hero__content .reveal:nth-child(3) {
  transition-delay: 0.45s;
}

.hero__content .reveal:nth-child(4) {
  transition-delay: 0.55s;
}

.hero__content .reveal:nth-child(5) {
  transition-delay: 0.7s;
}




/* Mobile adjustments */
@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: clamp(5rem, 10vh, 7rem);
  }

  .hero__eyebrow {
    margin-bottom: 1.25rem;
  }

  .hero__tagline {
    max-width: 90%;
    font-size: clamp(0.8rem, 2.8vw, 0.95rem);
    margin-top: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    margin-top: 2.5rem;
    gap: 1rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(11, 15, 13, 0.65) 0%, rgba(11, 15, 13, 0.90) 60%, rgba(11, 15, 13, 0.98) 100%);
  }
}

/* ==========================================================================
   Section Labels & Stage Utilities
   ========================================================================== */

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.section-label--light {
  color: var(--color-paper-text);
}

.stage-heading {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.stage-icon {
  color: var(--color-ember);
  font-weight: 700;
  margin-right: 0.25rem;
}

/* ==========================================================================
   Generic section shell (About / Technology / Applications / Research /
   Team reuse this)
   ========================================================================== */

.section {
  padding-block: clamp(5rem, 12vh, 7rem);
}

.section--light {
  background-color: var(--color-ash);
}

.section--dark {
  background-color: var(--color-char);
}

.section-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2.5rem, 7vw, 5.5rem);
  align-items: center;
}

.section-grid__content {
  padding-block: var(--space-md);
}

.section-grid__media {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--color-char-border);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-soft);
}

.section-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

/* The second deliberate Fraunces moment — an editorial voice interjection,
   not a structural heading. Use for one pull-quote per page, not per
   section, or it stops feeling special. */
.pull-quote {
  margin-top: var(--space-xl);
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-ember);
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-grid__media {
    order: -1;
  }

  .section-image {
    aspect-ratio: 16 / 10;
  }
}

/* ==========================================================================
   Why Indigenous Biomass — full-bleed statement section
   ========================================================================== */

.biomass {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 12vh, var(--space-3xl));
  overflow: hidden;
}

.biomass__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.biomass__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.biomass__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(23, 24, 26, 0.92) 0%,
      rgba(23, 24, 26, 0.75) 45%,
      rgba(23, 24, 26, 0.4) 100%);
}

.biomass__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.biomass__statement {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-paper-text);
  margin-bottom: var(--space-6);
}

.biomass__body {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  color: rgba(243, 239, 230, 0.78);
  max-width: 36rem;
}

@media (max-width: 768px) {
  .biomass {
    min-height: 70vh;
  }

  .biomass__scrim {
    background: linear-gradient(to bottom,
        rgba(13, 15, 18, 0.88) 0%,
        rgba(13, 15, 18, 0.7) 100%);
  }
}

/* ==========================================================================
   Why It Matters — icon pillar grid
   ========================================================================== */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: var(--space-6);
}

.pillar-card {
  padding: var(--space-5);
  border: 1px solid var(--color-char-surface);
  background: var(--color-ash-dim);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 189, 138, 0.35);
  box-shadow: 0 24px 54px rgba(15, 19, 23, 0.12);
}

.pillar-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-3);
  color: var(--color-ember);
}

.pillar-card__label {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.pillar-card__body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-muted);
}

@media (max-width: 700px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Current Stage — visual timeline
   ========================================================================== */

.stage-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 1rem;
  margin-top: var(--space-6);
  position: relative;
}

.stage-timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-char-fade);
}

.stage-timeline__item {
  position: relative;
  padding-top: 1.75rem;
}

.stage-timeline__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-ash);
  border: 2px solid var(--color-char-outline);
  z-index: 1;
}

.stage-timeline__item.is-complete .stage-timeline__dot {
  background: var(--color-ember);
  border-color: var(--color-ember);
}

.stage-timeline__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
}

.stage-timeline__item.is-complete .stage-timeline__label {
  color: var(--color-ink);
  font-weight: 600;
}

.stage-timeline__item:nth-child(4)::after {
  content: "Upcoming";
  position: absolute;
  top: -1.75rem;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ember-dim);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .stage-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-timeline::before {
    display: none;
  }

  .stage-timeline__item {
    padding-top: 0;
    padding-left: 1.75rem;
  }

  .stage-timeline__dot {
    top: 3px;
  }

  .stage-timeline__item:nth-child(4)::after {
    top: -1.25rem;
    left: 1.75rem;
  }
}

@media (max-width: 500px) {
  .stage-timeline {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Technology — biomass-to-battery process flow
   ========================================================================== */

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: var(--space-6);
  position: relative;
}

.process__step {
  position: relative;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.process__step::before {
  content: "";
  position: absolute;
  top: -0.4rem;
  left: 0;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-color: var(--color-ember);
}

.process__index {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-ember);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.process__step:nth-child(2) .process__index {
  color: var(--color-ember-strong);
}

.process__step:nth-child(3) .process__index {
  color: var(--color-ember-medium);
}

.process__step:nth-child(4) .process__index {
  color: var(--color-ember-soft);
}

.process__step:nth-child(5) .process__index {
  color: var(--color-ember-faint);
}

.process__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.process__progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1.5rem + 1px);
  height: 4px;
  background: linear-gradient(90deg, var(--color-moss), var(--color-char), var(--color-ember), var(--color-graphite));
  opacity: 0.35;
  border-radius: 999px;
}

.process__progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-moss), var(--color-ember));
  transition: width 700ms var(--ease-out);
}

.process.is-visible .process__progress-fill {
  width: 100%;
}

@media (max-width: 900px) {
  .process {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ==========================================================================
   Applications — elevated editorial cards
   ========================================================================== */

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: var(--space-xl);
}

.app-card {
  background: var(--color-ash-dim);
  border: 1px solid var(--color-char-surface);
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(62, 189, 138, 0.08) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 500ms var(--ease-out);
  z-index: -1;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 189, 138, 0.35);
  box-shadow: 0 24px 54px rgba(15, 19, 23, 0.12);
}

.app-card:hover::before {
  transform: translateX(100%);
}

.app-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-md);
  color: var(--color-olive);
}

.app-card__label {
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
}

@media (max-width: 700px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding-block: 4rem;
  }

  .section-intro {
    margin-bottom: 2rem;
  }

  .section-grid__content {
    padding-block: 0;
  }

  .section-grid__media {
    padding: 0.75rem;
  }

  .app-grid,
  .team-grid,
  .research-points {
    gap: 0.875rem;
    margin-top: 1.75rem;
  }

  .contact-grid {
    gap: 2rem;
  }
}

/* ==========================================================================
   Research and Team
   ========================================================================== */

.research-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: var(--space-xl);
}

.research-points li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-ember);
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-paper-text);
  transition: transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.research-points li:hover {
  transform: translateY(-2px);
  border-color: var(--color-paper-text);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.research-points strong {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--color-paper-text);
}

.research-points__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 0.75rem;
  color: var(--color-ember);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.team-card {
  padding: 1.25rem;
  border: 1px solid var(--color-char-surface);
  background: rgba(237, 232, 222, 0.8);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 189, 138, 0.35);
  box-shadow: 0 24px 54px rgba(15, 19, 23, 0.12);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  object-fit: cover;
  margin-bottom: var(--space-md);
  background-color: var(--color-char-fade);
}

.team-card__name {
  font-weight: 600;
  font-size: 1rem;
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-graphite);
  margin-top: 2px;
}

.team-card__bio {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: rgba(46, 58, 63, 0.82);
}

@media (max-width: 700px) {
  .research-points {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.contact-info {
  display: grid;
  gap: 0.25rem;
  margin-top: var(--space-lg);
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--color-char-border);
  font-size: 0.9375rem;
  color: var(--color-slate);
}

.contact-info__item svg,
.contact-info__item img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-olive);
}

form {
  padding: 1.25rem;
  border: 1px solid var(--color-char-border);
  background: var(--color-paper-overlay);
  box-shadow: var(--shadow-soft);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: var(--space-md);
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-graphite);
}

.field input,
.field textarea {
  border: 1px solid var(--color-char-outline);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--color-char);
  outline: none;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-char);
  color: var(--color-paper-muted-light);
  padding-block: var(--space-xl) var(--space-lg);
  font-size: 0.8125rem;
}

/* Make the "Climeshift Energy" wordmark in the footer logo white */
.site-footer .site-logo {
  color: white;
}

.site-footer a:hover {
  color: var(--color-ash);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-paper-border);
}

/* ==========================================================================
   Note on the Fraunces decision
   --------------------------------------------------------------------------
   v1 used Fraunces for hero__title, every .section-title, biomass__statement,
   and pull-quote. That's four different weight classes competing for the
   same "this is a special moment" attention, which dilutes all of them —
   and it also re-introduces the serif this design conversation had
   already moved away from in favor of the Apple/Stripe sans direction.

   This version keeps Fraunces in exactly two places — hero__title and
   pull-quote — so it still delivers the CarbonScape editorial warmth,
   but only where the page is speaking in a genuinely different register
   than its surrounding UI. Section titles now use the sans display cut
   at 600 weight instead.

   If you'd rather have serif on every section-title as in v1, that's a
   one-line change: swap var(--font-body) back to var(--font-display) in
   .section-title. Flagging it explicitly rather than deciding silently.
   ========================================================================== */