/* =============================================================
   ReefFoundry — styles
   Editorial climate-tech aesthetic: pale aqua grounds, near-black
   ecological greens, rounded media cards, uppercase display sans,
   serif body. Inspired by editorial climate-tech sites, not copied.
   ============================================================= */

:root {
  /* Palette */
  --ink:        #0e1a14;   /* near-black green */
  --ink-2:      #14271d;
  --deep:       #0c2019;   /* dark feature ground */
  --moss:       #2f5d44;
  --reef:       #3a7a5c;   /* accent green */
  --reef-bright:#5fae84;
  --shell:      #f3efe6;   /* warm paper */
  --pale:       #e6f0ea;   /* pale aqua */
  --pale-2:     #d8e9e2;
  --mist:       #f7faf8;
  --mineral:    #8a9a93;   /* mineral grey */
  --line:       rgba(14,26,20,0.12);
  --line-light: rgba(255,255,255,0.16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --r-lg: 36px;
  --r-md: 22px;
  --r-sm: 14px;
  --r-pill: 999px;

  --maxw: 1240px;
  --gap: clamp(1rem, 2.4vw, 2rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--mist);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
  font-size: clamp(2rem, 5.2vw, 4.1rem);
  margin: 0;
  text-wrap: balance;
}
.display--light { color: var(--shell); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--reef);
  display: inline-block;
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--reef-bright); }

.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.5em 1.1em;
  border-radius: var(--r-pill);
  background: var(--reef);
  color: var(--shell);
}
.pill--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--moss);
}

.tag {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.45em 0.9em;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.9);
  color: var(--ink);
}
.tag--mineral {
  background: rgba(255,255,255,0.08);
  color: var(--reef-bright);
  border: 1px solid var(--line-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.95em 1.7em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn--small { padding: 0.6em 1.2em; font-size: 0.82rem; }
.btn--dark {
  background: var(--ink);
  color: var(--shell);
}
.btn--dark:hover { background: var(--reef); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14,26,20,0.22); }
.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--shell); transform: translateY(-2px); }
.btn--light {
  background: var(--shell);
  color: var(--ink);
}
.btn--light:hover { background: var(--reef-bright); color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,0.3); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247,250,248,0.78);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__brand {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav__mark {
  width: 22px; height: 22px;
  border-radius: 50% 50% 50% 12px;
  background: radial-gradient(circle at 35% 30%, var(--reef-bright), var(--moss) 70%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
}
.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
}
.nav__links a { position: relative; padding: 0.2em 0; color: var(--ink-2); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--reef);
  transition: width 0.25s ease;
}
.nav__links a:hover { color: var(--reef); }
.nav__links a:hover::after { width: 100%; }
.nav > .nav__inner > .btn { margin-left: 0; }
.nav__links + .btn { margin-left: 0; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ---------- Section scaffolding ---------- */
.section {
  padding: clamp(4.5rem, 9vw, 8.5rem) 0;
}
.section--pale { background: var(--pale); }
.section--dark { background: var(--deep); color: var(--shell); }

.section__head {
  max-width: 880px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__head--left { max-width: 560px; margin-bottom: 0; }
.section__intro {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--moss);
  margin-top: 1.4rem;
  max-width: 640px;
}
.section--dark .section__intro { color: var(--pale-2); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(90deg, rgba(8,22,17,0.94) 0%, rgba(8,22,17,0.80) 32%, rgba(8,22,17,0.42) 64%, rgba(8,22,17,0.62) 100%),
    url("images/hero-oyster.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: var(--shell);
}
.hero__grid,
.hero__scroll { position: relative; z-index: 1; }

/* Hero sits on a dark photo, so flip the copy to light treatment */
.hero__copy { max-width: 720px; }
.hero .hero__sub { color: var(--pale-2); }
.hero .pill--ghost { border-color: var(--line-light); color: var(--shell); }
.hero__stats { border-top-color: var(--line-light); }
.hero__stats strong { color: var(--shell); }
.hero__stats span { color: var(--pale-2); }
.hero .btn--outline { border-color: var(--shell); color: var(--shell); }
.hero .btn--outline:hover { background: var(--shell); color: var(--ink); }
.hero__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: calc(100vh - 70px);
}
.hero__title {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 1.2rem 0 1.4rem;
}
.hero__sub {
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  color: var(--moss);
  max-width: 30em;
  margin: 0 0 2rem;
}
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero__stats {
  list-style: none;
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  padding: 2.6rem 0 0;
  margin: 2.6rem 0 0;
  border-top: 1px solid var(--line);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.hero__stats span {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mineral);
  margin-top: 0.5rem;
  max-width: 12em;
}

.hero__media {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--gap);
  height: 100%;
  max-height: 78vh;
}
.media-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.media-card--tall {
  min-height: 340px;
  box-shadow: 0 30px 60px -30px rgba(14,26,20,0.45);
}
.media-card--accent {
  background: linear-gradient(135deg, var(--deep), var(--moss));
  padding: 1.6rem;
  display: flex;
  align-items: flex-end;
  min-height: 110px;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--mineral);
}
.hero__scroll::after {
  content: ""; display: block; width: 1px; height: 28px;
  background: var(--mineral); margin: 0.6rem auto 0;
  animation: scrollpulse 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollpulse {
  0%,100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Image placeholders (CSS-generated textures) ---------- */
.media-card--tall[data-img="reef"],
.deep__media[data-img] {
  background-color: var(--moss);
  background-size: cover;
  background-position: center;
}
/* Unsplash sources with layered gradient fallbacks for a biomaterial feel */
/* Oyster photography for the showcase areas; custom SVG diagrams for the
   technical module deep-dives so each stays accurate to its topic. */
.media-card--tall[data-img="reef"] {
  background-image:
    linear-gradient(180deg, rgba(8,22,17,0.05), rgba(8,22,17,0.42)),
    url("images/hero-oyster.jpg");
}
/* oyster-filtration diagram figure in the Biology section (vector, crisp) */
.filtration-figure {
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  max-width: 560px;
}
.filtration-figure__img {
  width: 100%;
  aspect-ratio: 680 / 860;
  background: #0c1f18 url("art-filtration.svg") center / contain no-repeat;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-light);
}
.deep__media[data-img="metals"] {
  background-image: url("art-metals.svg");
}
.deep__media[data-img="plastic"] {
  background-image: url("art-microplastics.svg");
}
.deep__media[data-img="struvite"] {
  background-image: url("art-struvite.svg");
}

/* ---------- PROBLEM ---------- */
.problem__lede {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  font-size: 1.12rem;
}
.problem__lede p { margin: 0; }

.card-grid { display: grid; gap: var(--gap); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.8rem 1.6rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -28px rgba(14,26,20,0.4);
  border-color: var(--reef);
}
.card h3 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.12rem;
  margin: 0 0 0.7rem;
}
.card p { margin: 0; font-size: 0.98rem; color: var(--moss); }
.card__index {
  font-family: var(--sans);
  font-style: italic;
  color: var(--reef);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.2rem;
}

/* ---------- INSPIRATION FLOW ---------- */
.flow {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  counter-reset: flow;
}
.flow__step {
  position: relative;
  padding: 1.6rem 1.2rem;
  border-left: 1px solid var(--line-light);
}
.flow__step:first-child { border-left: none; }
.flow__num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--reef);
  color: var(--shell);
  margin-bottom: 1.1rem;
}
.flow__step h3 {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
  color: var(--shell);
}
.flow__step p { margin: 0; font-size: 0.9rem; color: var(--pale-2); }
.flow__step::before {
  content: "";
  position: absolute;
  top: calc(1.6rem + 17px);
  left: -1px;
  width: 1px;
}

/* ---------- ARCHITECTURE ---------- */
.arch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.arch__module {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.arch__module::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 60%, rgba(58,122,92,0.1));
  opacity: 0; transition: opacity 0.3s ease;
}
.arch__module:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(14,26,20,0.45); }
.arch__module:hover::before { opacity: 1; }
.arch__module--wide { grid-column: span 3; }
.arch__letter {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--reef);
  display: block;
  margin-bottom: 1rem;
}
.arch__module h3 {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 1.08rem;
  margin: 0 0 0.7rem;
}
.arch__module p { margin: 0; color: var(--moss); font-size: 0.98rem; }

/* ---------- DEEP DIVES ---------- */
.deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.deep:last-child { margin-bottom: 0; }
.deep--reverse .deep__media { order: 2; }
.deep__media {
  border-radius: var(--r-lg);
  min-height: 420px;
  box-shadow: 0 30px 60px -34px rgba(14,26,20,0.5);
}
.deep__title {
  font-family: "Playfair Display", var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.04;
  margin: 1.2rem 0 1.2rem;
  letter-spacing: -0.01em;
}
.deep__copy p { color: var(--moss); font-size: 1.1rem; max-width: 34em; }

/* ---------- VALORISATION ---------- */
.card-grid--val {
  grid-template-columns: repeat(3, 1fr);
}
/* Design-graph teaser: four equal questions, no spanning card */
.card-grid--q { grid-template-columns: repeat(4, 1fr); }
.card-grid--q .card--val:nth-child(4) { grid-column: auto; }
.card--val {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-light);
  color: var(--shell);
}
.card--val:hover { border-color: var(--reef-bright); box-shadow: 0 24px 44px -28px rgba(0,0,0,0.6); }
.card--val h3 {
  margin: 1rem 0 0.6rem;
  font-size: 1.25rem;
}
.card--val p { color: var(--pale-2); }
.card--val:nth-child(4) { grid-column: span 2; }

.note {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--reef-bright);
  margin-top: 2.2rem;
  padding: 1.1rem 1.4rem;
  border: 1px dashed var(--line-light);
  border-radius: var(--r-sm);
  display: inline-flex;
  gap: 0.6rem;
}
.note span { color: var(--shell); }

/* ---------- SAFETY ---------- */
.safety {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.safety__list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.safety__list li {
  font-family: var(--sans);
  font-size: 1.05rem;
  padding: 1.15rem 0 1.15rem 2.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.safety__list li::before {
  content: "";
  position: absolute; left: 0; top: 1.5rem;
  width: 12px; height: 12px;
  border-radius: 4px 4px 4px 0;
  background: var(--reef);
}

/* ---------- ROADMAP TIMELINE ---------- */
.timeline {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.timeline__item {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.8rem 1.6rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline__item:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -30px rgba(14,26,20,0.4); }
.timeline__phase {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--reef);
  display: inline-block;
  padding: 0.35em 0.9em;
  border-radius: var(--r-pill);
  background: var(--pale-2);
  margin-bottom: 1.1rem;
}
.timeline__item h3 {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 1.02rem;
  margin: 0 0 0.6rem;
}
.timeline__item p { margin: 0; color: var(--moss); font-size: 0.96rem; }

/* ---------- CLOSING ---------- */
.closing { text-align: center; }
.closing__wrap { max-width: 900px; }
.closing__title {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin: 0.6rem 0 1.4rem;
  color: var(--shell);
  text-wrap: balance;
}
.closing__sub {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--pale-2);
  max-width: 38em;
  margin: 0 auto 2.4rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: var(--pale-2);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.footer__brand {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--shell);
}
.footer__brand p {
  flex-basis: 100%;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--mineral);
  font-size: 0.98rem;
  margin: 1rem 0 0;
  max-width: 26em;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.footer__cols h4 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--reef-bright);
  margin: 0 0 1rem;
}
.footer__cols a {
  display: block;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--pale-2);
  padding: 0.3rem 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer__cols a:hover { color: var(--reef-bright); padding-left: 4px; }
.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--mineral);
}

/* ---------- Marquee band (moving text) ---------- */
.marquee {
  background: var(--ink);
  color: var(--shell);
  overflow: hidden;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  will-change: transform;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-weight: 600;
}
.marquee__track span:nth-child(even) {
  color: var(--reef-bright);
  -webkit-text-stroke: 1px var(--reef-bright);
  -webkit-text-fill-color: transparent;
}
.marquee__dot {
  width: 10px; height: 10px;
  border-radius: 50% 50% 50% 2px;
  background: var(--reef);
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Big oyster banner (parallax + slow zoom) ---------- */
.banner {
  position: relative;
  height: clamp(420px, 70vh, 760px);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
}
.banner__bg {
  position: absolute;
  inset: -8% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.banner__bg[data-img="oyster-macro"] {
  background-image: url("images/oyster-pile.jpg");
  background-color: var(--deep);
}
.banner__bg[data-img="reef-wide"] {
  background-image: url("images/oyster-reef.jpg");
  background-color: var(--deep);
}
.banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,22,17,0.55), rgba(8,22,17,0.35) 50%, rgba(8,22,17,0.7));
}
.banner__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  color: var(--shell);
}
.banner__title {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin: 1rem 0 0;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
@keyframes kenburns {
  from { transform: scale(1) translate3d(0,0,0); }
  to   { transform: scale(1.14) translate3d(-2%, -2%, 0); }
}

/* ---------- Drifting bubbles (dark sections) ---------- */
.section--dark { position: relative; overflow: hidden; }
.section--dark > .wrap { position: relative; z-index: 2; }
.bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.bubbles i {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(95,174,132,0.5), rgba(95,174,132,0.05) 70%);
  border: 1px solid rgba(95,174,132,0.2);
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-115vh) translateX(40px) scale(1.1); opacity: 0; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1020px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .arch { grid-template-columns: repeat(2, 1fr); }
  .arch__module--wide { grid-column: span 2; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow__step:nth-child(4) { border-left: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .card-grid--val { grid-template-columns: repeat(2, 1fr); }
  .card--val:nth-child(4) { grid-column: span 2; }
  .card-grid--q { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--mist);
    padding: 1.2rem clamp(1.25rem, 4vw, 3rem) 1.6rem;
    border-bottom: 1px solid var(--line);
    gap: 0.4rem;
  }
  .nav__toggle { display: flex; }
  .nav > .nav__inner > .btn--small { display: none; }
  .hero__grid { grid-template-columns: 1fr; min-height: auto; }
  .hero__media { max-height: none; margin-top: 1rem; }
  .media-card--tall { min-height: 300px; }
  .hero__scroll { display: none; }
  .problem__lede { grid-template-columns: 1fr; }
  .deep { grid-template-columns: 1fr; }
  .deep--reverse .deep__media { order: 0; }
  .deep__media { min-height: 300px; }
  .safety { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .card-grid--4 { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }
  .arch__module--wide { grid-column: span 1; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__step { border-left: none; border-top: 1px solid var(--line-light); }
  .timeline { grid-template-columns: 1fr; }
  .card-grid--val { grid-template-columns: 1fr; }
  .card--val:nth-child(4) { grid-column: span 1; }
  .card-grid--q { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 1.4rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
  .marquee__track,
  .banner__bg,
  .bubbles i { animation: none !important; }
}
