/* ============================================================
   Minerava — editorial site styles
   Palette: ink navy / oxide red / cream paper
   Type: IBM Plex Serif (display) · Sans (body) · Mono (labels)
   ============================================================ */

:root {
  --cream: #f4efe5;
  --cream-2: #ece5d5;
  --paper: #f8f4ec;
  --ink: #182335;
  --ink-soft: #3a465c;
  --navy: #16283f;
  --navy-deep: #101e30;
  --red: #a63a2b;
  --red-soft: #b8503f;
  --line: rgba(24, 35, 53, 0.16);
  --line-strong: rgba(24, 35, 53, 0.32);
  --line-light: rgba(244, 239, 229, 0.18);
  --radius: 2px;
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
}

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

html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

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

/* ---------- progress bar ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 100%; height: 3px;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--gutter);
  transition: background .45s ease, box-shadow .45s ease, padding .45s ease;
}
.site-header.is-scrolled {
  background: rgba(248, 244, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.75rem;
}
.site-header.on-hero:not(.is-scrolled) { color: var(--cream); }

.wordmark {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none;
}
.wordmark-m {
  display: block;
  width: 2.3rem; height: 2.3rem;
  color: var(--red);
}
.site-header.on-hero:not(.is-scrolled) .wordmark-m { color: var(--cream); }
.wordmark-text {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.25rem; letter-spacing: .01em;
}

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  font-family: var(--mono); font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; opacity: .82;
  transition: opacity .25s;
}
.site-nav a:hover { opacity: 1; }

.header-cta {
  font-family: var(--mono); font-size: .75rem;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  padding: .55rem .95rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  transition: background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.site-header.is-scrolled .header-cta,
.header-cta:hover { background: var(--red); border-color: var(--red); color: var(--cream); }

/* mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 2.4rem; height: 2.4rem;
  padding: 0;
  background: none; border: 0; cursor: pointer;
  color: inherit;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: currentColor;
  transition: transform .35s ease, opacity .35s ease;
}
.nav-contact { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.6rem;
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100svh;
    z-index: -1;
    padding: 0 var(--gutter);
    background: var(--navy);
    opacity: 0; visibility: hidden;
    transition: opacity .4s ease, visibility 0s linear .4s;
  }
  body.nav-open .site-nav {
    opacity: 1; visibility: visible;
    transition: opacity .4s ease;
  }
  .site-nav a {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 6vw, 2.3rem);
    letter-spacing: 0; text-transform: none;
    color: var(--cream); opacity: 1;
  }
  .nav-contact { display: block; color: var(--red-soft) !important; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header {
    background: transparent; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    color: var(--cream);
  }
  body.nav-open .wordmark-m { color: var(--cream); }
  body.nav-open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
}

/* ---------- shared type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--mono); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.4rem;
}
.section-dark .eyebrow { color: var(--red-soft); }
.sec-num {
  font-size: .75rem;
  padding: .18rem .5rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}
.eyebrow-rule { flex: 0 0 3rem; height: 1px; background: currentColor; opacity: .6; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }

h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.015em;
  max-width: 20ch;
  text-wrap: balance;
}

.lede { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.5; font-family: var(--serif); max-width: 34ch; }

.section-lede {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

.footnote {
  font-family: var(--mono); font-size: .78rem;
  color: var(--ink-soft); margin-top: 2rem;
}
.section-dark .footnote { color: rgba(244,239,229,.6); }

.citation {
  font-family: var(--mono); font-size: .78rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--red);
  padding-left: .9rem;
  margin-top: 2rem;
  line-height: 1.7;
}
.section-dark .citation { color: rgba(244,239,229,.65); }

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) var(--gutter); }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.section-dark {
  background: var(--navy);
  color: var(--cream);
}
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-tint { background: var(--cream-2); }

/* line reveal */
.reveal-lines .rl-line { display: block; overflow: hidden; }
.reveal-lines .rl-inner { display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 116%;
  object-fit: cover; object-position: center 30%;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,30,48,.42) 0%, rgba(16,30,48,.18) 34%, rgba(16,30,48,.62) 78%, rgba(16,30,48,.88) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 9rem var(--gutter) 2rem;
  max-width: 62rem;
}
.hero-eyebrow { color: var(--cream); opacity: .95; }
.hero-title {
  font-size: clamp(2.5rem, 6.4vw, 5.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1.6rem;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: inline-block; }
.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  max-width: 46ch;
  opacity: .94;
}
.hero-founder {
  margin-top: 2.2rem;
  font-family: var(--mono); font-size: .82rem; line-height: 1.75;
  opacity: .85;
}
.hero-foot {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem var(--gutter) 2.2rem;
  border-top: 1px solid var(--line-light);
  margin-top: 3rem;
}
.etymology { font-family: var(--serif); font-size: .95rem; opacity: .8; max-width: 52ch; }
.scroll-cue {
  flex: 0 0 auto;
  width: 1px; height: 3.4rem;
  background: rgba(244,239,229,.35);
  position: relative; overflow: hidden;
}
.scroll-cue span {
  position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--cream);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: -40%; } 65%, 100% { top: 110%; } }

/* ---------- stat band ---------- */
.stat-band {
  background: var(--navy-deep); color: var(--cream);
  border-top: 1px solid var(--line-light);
}
.stat-band-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--gutter);
}
.band-stat {
  padding: 2.4rem 1.6rem;
  border-left: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: .3rem;
}
.band-stat:first-child { border-left: 0; padding-left: 0; }
.band-stat strong {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  letter-spacing: -.01em;
}
.band-stat .unit { font-size: .6em; }
.band-stat span:not(.unit):not(.count) { font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; opacity: .68; }
@media (max-width: 860px) {
  .stat-band-inner { grid-template-columns: 1fr 1fr; }
  .band-stat { padding: 1.6rem 1.2rem; }
  .band-stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- needs / tradeoffs ---------- */
.needs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.need-card {
  background: var(--paper);
  padding: 2.4rem 2rem 2.6rem;
}
.need-index {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem;
  font-family: var(--mono); font-size: .85rem;
  border: 1px solid var(--red); color: var(--red);
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
}
.need-card h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.need-card p { color: var(--ink-soft); font-size: .98rem; }

.tradeoff { margin-top: clamp(4rem, 8vw, 6.5rem); }
.tradeoff-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tradeoff-sub { color: var(--ink-soft); margin: .6rem 0 2.2rem; }
.tradeoff-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.tradeoff-card {
  border-top: 2px solid var(--navy);
  padding-top: 1.2rem;
}
.tradeoff-card h4 { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin-bottom: .55rem; }
.tradeoff-card p { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 980px) {
  .needs-grid { grid-template-columns: 1fr; }
  .tradeoff-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .tradeoff-grid { grid-template-columns: 1fr; } }

/* ---------- pull statement ---------- */
.pull-statement {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.pull-statement p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  line-height: 1.35;
  max-width: 34ch;
}
.pull-statement em { font-style: italic; color: var(--red); }
.pull-light { border-color: var(--line-light); }
.pull-light em { color: var(--red-soft); }
.pull-inline { margin-top: 2.6rem; }

/* ---------- platform ---------- */
.platform-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
}
.platform-col h3 {
  font-size: 1.05rem; font-family: var(--mono); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 1.6rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line-light);
}
@media (max-width: 800px) { .platform-grid { grid-template-columns: 1fr; } }

/* ---------- lists ---------- */
.tick-list { list-style: none; }
.tick-list li {
  position: relative;
  padding: 0 0 1.05rem 1.9rem;
  font-size: 1rem;
}
.tick-list li::before {
  content: "";
  position: absolute; left: 0; top: .48em;
  width: .85rem; height: .5rem;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}
.section-dark .tick-list li { color: rgba(244,239,229,.88); }
.section-dark .tick-list li::before { border-color: var(--red-soft); }
.tick-list.two-col { columns: 2; column-gap: 3rem; }
@media (max-width: 720px) { .tick-list.two-col { columns: 1; } }

.dash-list { list-style: none; }
.dash-list li {
  padding: .55rem 0 .55rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}
.dash-list li::before {
  content: "—"; position: absolute; left: 0; color: var(--red);
}
.section-dark .dash-list li { border-color: var(--line-light); color: rgba(244,239,229,.88); }

/* ---------- DE section ---------- */
.de-layout {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.de-figure img { border-radius: var(--radius); }
.de-figure figcaption, .lab-strip figcaption, .validation-figure figcaption,
.geometry-figure figcaption, .cooling-figure figcaption {
  font-family: var(--mono); font-size: .74rem; line-height: 1.6;
  color: var(--ink-soft);
  padding-top: .8rem;
}
.section-dark figcaption { color: rgba(244,239,229,.6) !important; }
.de-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 2.6rem; }
.de-fact h4 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  margin-bottom: .55rem;
  padding-top: 1rem;
  border-top: 2px solid var(--navy);
}
.de-fact p { font-size: .94rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .de-layout { grid-template-columns: 1fr; }
  .de-facts { grid-template-columns: 1fr; gap: 1.6rem; }
}

.de-supply {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.supply-stat {
  padding: 1.9rem 1.6rem;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .25rem;
}
.supply-stat:first-child { border-left: 0; }
.supply-stat strong { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 3.4vw, 2.9rem); }
.supply-stat span:not(.count) { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 860px) {
  .de-supply { grid-template-columns: 1fr 1fr; }
  .supply-stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .supply-stat:nth-child(4) { border-top: 1px solid var(--line); }
}

/* ---------- mixer ---------- */
.mixer-stage {
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  max-width: 46rem;
  text-align: center;
}
.mixer-svg {
  width: 100%; height: auto;
  color: var(--cream);
  opacity: .95;
}
.mixer-caption {
  font-family: var(--mono); font-size: .78rem;
  color: rgba(244,239,229,.65);
  margin-top: 1.2rem;
}
.scale-claims { max-width: 46rem; }
.scale-lede { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 1.6rem; }

.lab-strip {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.lab-strip img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 760px) { .lab-strip { grid-template-columns: 1fr; } }

/* ---------- validation ---------- */
.validation-layout {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.validation-copy h4 {
  font-family: var(--mono); font-size: .85rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red);
  margin: 2.2rem 0 1.2rem;
}
.validation-figure {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.validation-figure img { margin: 0 auto; max-height: 30rem; width: auto; }
@media (max-width: 900px) { .validation-layout { grid-template-columns: 1fr; } }

/* ---------- geometry ---------- */
.geometry-layout {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.geometry-figure img { border-radius: var(--radius); }
.geometry-stats { display: grid; gap: 1.2rem; }
.geo-stat {
  border-left: 2px solid var(--red-soft);
  padding: .4rem 0 .4rem 1.4rem;
  display: flex; flex-direction: column;
}
.geo-stat strong {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.geo-stat span:not(.count) { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(244,239,229,.68); max-width: 30ch; }
@media (max-width: 900px) { .geometry-layout { grid-template-columns: 1fr; } }

.specimens { margin-top: clamp(3rem, 6vw, 4.5rem); }
.specimens img { border-radius: var(--radius); width: 100%; }
.diff-block { margin-top: clamp(3rem, 5vw, 4rem); max-width: 46rem; }
.diff-block h4 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  margin-bottom: 1.4rem;
}

/* ---------- cooling ---------- */
.cooling-layout {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.cooling-figure img { border-radius: var(--radius); }
.temp-compare { margin: 2.4rem 0; display: grid; gap: 1.1rem; }
.temp-row {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr 4.5rem;
  align-items: center; gap: 1rem;
}
.temp-label { font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.temp-track { height: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.temp-fill {
  height: 100%; width: var(--w);
  transform-origin: 0 50%; transform: scaleX(0);
  border-radius: var(--radius);
}
.temp-good { background: var(--navy); }
.temp-warm { background: #c07a3a; }
.temp-hot { background: var(--red); }
.temp-value { font-family: var(--serif); font-size: 1.15rem; text-align: right; }
@media (max-width: 900px) { .cooling-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .temp-row { grid-template-columns: 1fr; gap: .4rem; } .temp-value { text-align: left; } }

/* ---------- moisture ---------- */
.moisture-layout {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.moisture-figure img { border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 900px) { .moisture-layout { grid-template-columns: 1fr; } }

/* ---------- value grid ---------- */
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.value-chip { background: var(--paper); padding: 1.9rem 1.7rem; }
.value-chip h4 { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; margin-bottom: .5rem; }
.value-chip p { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- work steps ---------- */
.work-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.work-step {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem 2.5rem;
}
.work-num {
  display: inline-block;
  font-family: var(--mono); font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-soft);
  border-bottom: 1px solid var(--red-soft);
  padding-bottom: .35rem;
  margin-bottom: 1.6rem;
}
.work-step h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.work-step p { color: rgba(244,239,229,.78); font-size: .95rem; }
@media (max-width: 800px) { .work-steps { grid-template-columns: 1fr; } }

/* ---------- competitive table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.compete-table { width: 100%; border-collapse: collapse; min-width: 44rem; }
.compete-table th, .compete-table td {
  text-align: left;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  vertical-align: top;
}
.compete-table thead th {
  font-family: var(--mono); font-weight: 500;
  font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}
.compete-table td[data-mark] { font-family: var(--mono); font-size: .8rem; }
.compete-table td[data-mark="yes"] { color: #2c6e49; }
.compete-table td[data-mark="no"] { color: var(--ink-soft); opacity: .55; }
.compete-table td[data-mark="partial"] { color: #b07d2b; }
.compete-table .companies { color: var(--ink-soft); font-size: .85rem; }
.row-minerava { background: var(--navy); color: var(--cream); }
.row-minerava td { border-bottom: none; }
.row-minerava td[data-mark="yes"] { color: #8fd0a8; }
.row-minerava .companies { color: var(--cream); font-size: 1rem; }
.row-minerava .companies strong { font-family: var(--serif); font-size: 1.1rem; }

/* ---------- market ---------- */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 4vw, 3.5rem); }
.market-col h3 {
  font-family: var(--mono); font-size: .85rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.3rem;
}
@media (max-width: 800px) { .market-grid { grid-template-columns: 1fr; } }

/* ---------- timeline ---------- */
.timeline { position: relative; margin-bottom: clamp(4rem, 8vw, 6rem); }
.timeline-line {
  position: absolute; left: .55rem; top: .4rem; bottom: .4rem;
  width: 2px; background: var(--line);
}
.timeline-fill {
  position: absolute; inset: 0;
  background: var(--red);
  transform-origin: 50% 0;
  transform: scaleY(0);
}
.timeline-list { list-style: none; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.timeline-item { position: relative; padding-left: 3.2rem; max-width: 44rem; }
.timeline-item::before {
  content: "";
  position: absolute; left: 0; top: .4rem;
  width: 1.1rem; height: 1.1rem;
  background: var(--cream);
  border: 2px solid var(--red);
  border-radius: 50%;
}
.tl-months {
  font-family: var(--mono); font-size: .76rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red);
}
.timeline-item h3 { font-size: 1.5rem; margin: .35rem 0 .5rem; }
.timeline-item p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- funding ---------- */
.funding h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 2rem; }
.funding-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.fund-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.fund-card strong { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.fund-card span { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.fund-primary { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.fund-primary span { color: rgba(244,239,229,.75); }
@media (max-width: 900px) { .funding-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .funding-grid { grid-template-columns: 1fr; } }

.fund-uses { margin-top: 3rem; border-top: 1px solid var(--line-strong); padding-top: 2.4rem; }
.fund-uses h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 1.5rem; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 3.5vw, 3rem); }
.team-card img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.04);
  margin-bottom: 1.3rem;
}
.team-card h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.team-role { font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--red-soft); margin-bottom: .7rem; }
.team-card p:not(.team-role) { font-size: .93rem; color: rgba(244,239,229,.78); }
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; max-width: 26rem; } }

.partners { margin-top: clamp(4rem, 7vw, 6rem); border-top: 1px solid var(--line-light); padding-top: 3rem; }
.partners h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 2rem; }
.partner-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
.partner-cols h4 {
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 1.1rem;
}
@media (max-width: 720px) { .partner-cols { grid-template-columns: 1fr; } }
.partner-logos {
  margin-top: 3rem;
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
}
.partner-logos img {
  height: 5.2rem; width: auto;
  background: var(--paper);
  border-radius: var(--radius);
  padding: .7rem;
}
.logo-kt { padding: 1.1rem 1.4rem !important; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep); color: var(--cream);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter) 2.2rem;
}
.footer-main {
  display: grid; grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.footer-m { width: 3rem; height: 3rem; color: var(--cream); margin-bottom: 1.2rem; }
.footer-tag { font-family: var(--serif); font-size: 1.15rem; max-width: 24ch; line-height: 1.4; }
.footer-meta p, .footer-refs p { font-size: .9rem; line-height: 1.8; color: rgba(244,239,229,.78); }
.refs-title {
  font-family: var(--mono); font-size: .72rem !important; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-soft) !important;
  margin-bottom: .7rem;
}
.footer-base {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding-top: 1.8rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  color: rgba(244,239,229,.55);
}
@media (max-width: 800px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- reveal defaults (JS adds motion) ---------- */
.reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   Meeting-round additions: green-concrete company site
   ============================================================ */

/* citation links */
.citation a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(166,58,43,.4);
  white-space: nowrap;
  transition: border-color .2s;
}
.section-dark .citation a { color: var(--red-soft); border-bottom-color: rgba(184,80,63,.5); }
.citation a:hover { border-bottom-color: currentColor; }

/* credit note (scalability / PSL) */
.credit-note {
  margin-top: 2rem;
  font-family: var(--mono); font-size: .8rem; line-height: 1.7;
  color: rgba(244,239,229,.62);
  max-width: 60ch;
}
.credit-note a { color: var(--red-soft); text-decoration: none; border-bottom: 1px solid rgba(184,80,63,.45); }
.credit-note a:hover { border-bottom-color: currentColor; }

/* geometry section without figure */
.geo-intro { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); color: rgba(244,239,229,.9); }
.geometry-stats.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}
@media (max-width: 680px) { .geometry-stats.grid-2x2 { grid-template-columns: 1fr; } }

/* moisture without figure */
.moisture-layout.no-figure { grid-template-columns: 1fr; max-width: 60rem; }

/* ---------- founder + partners ---------- */
.founder-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-light);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.founder-block img {
  width: 200px; height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.04);
}
.founder-info .team-role {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red-soft); margin-bottom: .5rem;
}
.founder-info h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .5rem; }
.founder-info p:not(.team-role) { color: rgba(244,239,229,.82); max-width: 44ch; margin-bottom: 1rem; }
@media (max-width: 620px) {
  .founder-block { grid-template-columns: 1fr; text-align: left; }
  .founder-block img { width: 150px; height: 150px; }
}

.partner-people {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.partner-person {
  background: var(--navy);
  padding: 1.8rem 1.7rem 2rem;
  display: flex; flex-direction: column;
}
.partner-person h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--paper); margin-bottom: .4rem; }
.partner-aff { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--red-soft); margin-bottom: .8rem; }
.partner-person p:not(.partner-aff) { font-size: .92rem; color: rgba(244,239,229,.78); flex: 1; }
.partner-link {
  display: inline-block; margin-top: 1.1rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .02em;
  color: var(--red-soft); text-decoration: none;
  border-bottom: 1px solid rgba(184,80,63,.45);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: border-color .2s, color .2s;
}
.partner-link:hover { color: var(--cream); border-bottom-color: var(--cream); }
.founder-info .partner-link { margin-top: 0; }
@media (max-width: 800px) { .partner-people { grid-template-columns: 1fr; } }

/* ---------- institution / partner logos ---------- */
.logo-wall-label {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 1.3rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-soft);
}
.logo-wall {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.brand-logo {
  background: var(--paper);
  border-radius: var(--radius);
  min-height: 168px;
  display: grid; place-items: center;
  padding: 1.8rem 2rem;
}
.brand-logo img {
  max-height: 96px;
  max-width: 84%;
  width: auto; height: auto;
  object-fit: contain;
}
@media (max-width: 520px) {
  .logo-wall { grid-template-columns: 1fr; }
  .brand-logo { min-height: 140px; }
}

/* ---------- contact form ---------- */
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-intro p { color: rgba(244,239,229,.85); font-size: 1.05rem; max-width: 34ch; }
.contact-direct { margin-top: 1.6rem; font-family: var(--mono); font-size: .82rem; line-height: 1.9; color: rgba(244,239,229,.6) !important; }
.contact-direct a { color: var(--red-soft); text-decoration: none; border-bottom: 1px solid rgba(184,80,63,.45); }
.contact-direct a:hover { border-bottom-color: currentColor; }

.contact-form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: .5rem; }
.field label {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(244,239,229,.7);
}
.field .opt { text-transform: none; letter-spacing: 0; opacity: .6; }
.contact-form input,
.contact-form textarea {
  font-family: var(--sans); font-size: 1rem;
  color: var(--paper);
  background: rgba(244,239,229,.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  width: 100%;
  transition: border-color .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 6rem; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red-soft);
  background: rgba(244,239,229,.1);
}
.contact-form input:user-invalid,
.contact-form textarea:user-invalid { border-color: #c0574a; }
.contact-submit {
  justify-self: start;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream); background: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: .85rem 1.8rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.contact-submit:hover { background: var(--red-soft); }
.contact-submit:active { transform: translateY(1px); }
.form-note { font-family: var(--mono); font-size: .8rem; min-height: 1.2em; margin: 0; }
.form-note.ok { color: #8fd0a8; }
.form-note.err { color: #e39387; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

/* competitive table — tie the four "Yes" marks to "four capabilities" (desktop) */
.compete-table td[data-mark="yes"]::before { content: "\2713\00a0"; }

/* ---- mobile: render the table as stacked cards (no horizontal scroll) ---- */
@media (max-width: 680px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .compete-table { display: block; min-width: 0; max-width: 100%; width: 100%; border-collapse: separate; border-spacing: 0; }
  .compete-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compete-table tbody, .compete-table tr, .compete-table td { display: block; max-width: 100%; width: 100%; }
  .compete-table td[data-label]::before { min-width: 0; overflow-wrap: anywhere; }
  .compete-table tr {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    padding: 1.2rem 1.3rem 1.35rem;
  }
  .compete-table tr:last-child { margin-bottom: 0; }
  .compete-table td { border: 0; padding: 0; }

  /* approach name = card header */
  .compete-table td:first-child {
    font-family: var(--serif);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.25;
    padding-bottom: .9rem;
    margin-bottom: .4rem;
    border-bottom: 1px solid var(--line);
  }
  /* capability rows: label column + value column — never overlap */
  .compete-table td[data-label] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: .3rem .9rem;
    padding: .62rem 0;
    font-family: var(--mono);
    font-size: .92rem;
    overflow-wrap: anywhere;
    text-align: right;
  }
  /* the mobile label replaces the desktop checkmark on this ::before */
  .compete-table td[data-label]::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .04em;
    line-height: 1.35;
    text-transform: uppercase;
    text-align: left;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
  }
  .compete-table td[data-mark="yes"] { color: #2c7a52; font-weight: 600; }
  .compete-table td[data-mark="no"] { color: var(--ink-soft); opacity: .6; }
  .compete-table td[data-mark="partial"] { color: #b07d2b; }

  /* Minerava highlighted card */
  .compete-table tr.row-minerava { background: var(--navy); border-color: var(--navy); }
  .row-minerava td:first-child { color: var(--paper); border-bottom-color: var(--line-light); }
  .row-minerava td[data-label]::before { color: rgba(244,239,229,.6); }
  .row-minerava td[data-mark="yes"] { color: #8fd0a8; font-size: 1rem; font-weight: 700; }
  /* keep the label the same small size on Minerava (override desktop checkmark rule) */
  .compete-table td[data-mark="yes"][data-label]::before { font-size: .7rem; font-weight: 400; }
}
.row-minerava td[data-mark="yes"] {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .01em;
  color: #8fd0a8;
  white-space: nowrap;
}
.row-minerava td[data-mark="yes"]::before {
  font-size: 1.15em;
  font-weight: 700;
}

/* cooling section without figure */
.cooling-layout.no-figure { grid-template-columns: 1fr; max-width: 62rem; }

/* Diamanti / PSL credited figure — the featured meter-scale image */
.diamanti-figure {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
}
.diamanti-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6);
}
.diamanti-frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(244,239,229,.12);
  border-radius: var(--radius);
  pointer-events: none;
}
.diamanti-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  transform: scale(1.14);
  will-change: transform;
}
.diamanti-figure figcaption {
  margin-top: 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--red-soft);
  font-family: var(--mono); font-size: .78rem; line-height: 1.7;
  color: rgba(244,239,229,.62);
  max-width: 64ch;
}
.diamanti-figure figcaption a {
  color: var(--red-soft); text-decoration: none;
  border-bottom: 1px solid rgba(184,80,63,.45);
}
.diamanti-figure figcaption a:hover { border-bottom-color: currentColor; }
.diamanti-figure figcaption em { font-style: italic; }

/* ============================================================
   Deck-v3 round: benefits section, wider table, larger logo/labels
   ============================================================ */

/* header logo slightly larger (per feedback) */
.site-header .wordmark-m { width: 2.7rem; height: 2.7rem; }

/* eyebrow labels noticeably larger (felt too small) */
.eyebrow { font-size: 1rem; letter-spacing: .13em; margin-bottom: 1.6rem; }
.sec-num { font-size: .9rem; padding: .22rem .58rem; }
.hero-eyebrow { font-size: .92rem; }

/* DE callout label sits tight above the supply stats */
.de-supply-label { margin-top: 0; margin-bottom: 1.2rem; }

/* "Minerava at work" — now four steps */
.work-steps { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .work-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .work-steps { grid-template-columns: 1fr; } }

/* cost / energy / environmental benefits */
.benefits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
}
.benefit-col h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 1.3rem; padding-bottom: .8rem;
  border-bottom: 1px solid var(--line-strong);
}
@media (max-width: 820px) { .benefits-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* competitive table now has 6 capability columns — give it room */
.compete-table { min-width: 60rem; }
@media (max-width: 680px) { .compete-table { min-width: 0; } }

/* published passive-cooling figure (Huang et al.) — right column, kept crisp */
.cooling-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.cooling-pub { margin: 0; display: flex; flex-direction: column; align-items: center; }
.cooling-pub .pub-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(.85rem, 1.6vw, 1.3rem);
  max-width: 430px;                 /* native art is ~394px — don't upscale */
  box-shadow: 0 26px 55px -30px rgba(20,20,25,.4);
}
.cooling-pub img { width: 100%; display: block; border-radius: 1px; }
.cooling-pub figcaption {
  margin-top: 1.1rem;
  max-width: 430px;
  font-family: var(--mono); font-size: .74rem; line-height: 1.65;
  color: var(--ink-soft);
  border-left: 2px solid var(--red);
  padding-left: .85rem;
}
.cooling-pub figcaption a { color: var(--red); text-decoration: none; border-bottom: 1px solid rgba(166,58,43,.4); }
.cooling-pub figcaption a:hover { border-bottom-color: currentColor; }
.cooling-pub figcaption em { font-style: italic; }

/* quiet DE label above the supply stats */
.de-supply-note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.de-supply { margin-top: 0; }


@media (max-width: 900px) {
  .cooling-layout { grid-template-columns: 1fr; align-items: start; }
  .cooling-pub { margin-top: .5rem; align-items: flex-start; }
}

/* safety: never allow sideways scroll on phones */
@media (max-width: 680px) {
  html, body { overflow-x: clip; max-width: 100%; }
}

/* footer-base links (PCI Ventures) */
.footer-base a { color: var(--red-soft); text-decoration: none; border-bottom: 1px solid rgba(184,80,63,.45); }
.footer-base a:hover { border-bottom-color: currentColor; }

/* contact form — spam honeypot (hidden) + sending state */
.contact-form .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-submit:disabled { opacity: .6; cursor: default; }

/* ---------- news section ---------- */
.news-feature {
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 52rem;
  transition: border-color .25s, transform .25s;
}
.news-feature:hover { transform: translateY(-2px); }
.news-meta {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.news-source { color: var(--red); font-weight: 500; }
.news-date { color: var(--ink-soft); }
.news-date::before { content: "· "; }
.news-feature h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .8rem; }
.news-feature p { color: var(--ink-soft); font-size: 1rem; max-width: 60ch; margin-bottom: 1.2rem; }
.news-link {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .04em;
  color: var(--red);
  border-bottom: 1px solid rgba(166,58,43,.4); padding-bottom: 1px;
}
.news-feature:hover .news-link { border-bottom-color: currentColor; }

.video-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.4rem);
}
.news-video { margin: 0; }
.news-video video {
  width: 100%; height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.news-video figcaption {
  margin-top: .9rem;
  font-family: var(--mono); font-size: .76rem; line-height: 1.6;
  color: var(--ink-soft);
  border-left: 2px solid var(--red);
  padding-left: .85rem;
}
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }
