/* =========================================================
   Aeva Chemicals — landing page
   ========================================================= */
:root {
  /* Client palette: 60% cream, 30% emerald, 10% leaf green + gold, all body text in ink */
  --emerald: #0b4434;   /* Aeva Emerald: header, footer, hero */
  --leaf: #0b6b4f;      /* Leaf Green: buttons, links, icons */
  --cream: #f4f1e8;     /* Venus Cream: page background */
  --ink: #16211c;       /* Ink: all body text */
  --gold: #e8b84b;      /* Aeva Gold: highlights and key figures only */

  /* shades derived from the five colours */
  --ink-soft: rgba(22, 33, 28, .74);
  --ink-mute: rgba(22, 33, 28, .56);
  --line: rgba(22, 33, 28, .14);
  --cream-soft: rgba(244, 241, 232, .74);
  --cream-mute: rgba(244, 241, 232, .5);
  --tint: color-mix(in srgb, var(--cream) 91%, var(--emerald));

  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --roll-color: var(--leaf);
  --section-label-size: clamp(14px, 1.2vw, 17px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:has(#inquiry:target) { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: "Jost", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
input, select, textarea { font-family: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.eyebrow, .sp-eyebrow, .p-label {
  font-family: "Jost", system-ui, sans-serif;
  font-size: var(--section-label-size);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-soft);
}
.eyebrow--dim { color: var(--ink-mute); }

.display {
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -.025em;
}

/* film grain over the hero */
.grain {
  position: absolute; inset: -50%;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* =========================================================
   ROLL TEXT EFFECT
   Line rolls up, a coloured copy slides in from below.
   On leave the colour fades back slowly, leaving a trail.
   ========================================================= */
.roll { display: inline-block; vertical-align: top; overflow: hidden; line-height: 1.2; }
.roll__in { display: block; position: relative; transition: transform .55s var(--ease); }
.roll__in > span { display: block; white-space: nowrap; transition: color 1.1s ease; }
.roll__in > span + span {
  position: absolute; left: 0; right: 0; top: 100%;
  color: var(--roll-color);
}
.roll:hover .roll__in,
.btn:hover .roll__in,
.roll:focus-visible .roll__in,
.roll.is-on .roll__in { transform: translateY(-100%); }
/* trail: after the pointer leaves, the copy stays up and fades back to the base colour */
.roll.is-fade .roll__in > span + span { color: inherit; }

.roll--big { font-size: clamp(26px, 3.4vw, 46px); font-weight: 400; letter-spacing: -.01em; line-height: 1.22; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 32px;
  border-radius: 999px;
  font-size: 17px; font-weight: 500;
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--light, .btn--primary { background: var(--leaf); color: var(--cream); --roll-color: var(--gold); }
.btn--light:hover, .btn--primary:hover { background: color-mix(in srgb, var(--leaf) 82%, var(--cream)); }
.btn--ghost { border: 1.5px solid var(--cream-mute); color: var(--cream); --roll-color: var(--gold); }
.btn--ghost:hover { border-color: var(--gold); }
.hero .btn--ghost, .hero .btn--light {
  border: 1.5px solid rgba(244, 241, 232, .7); color: var(--cream); --roll-color: var(--gold);
  background: rgba(11, 68, 52, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero .btn--ghost:hover, .hero .btn--light:hover { border-color: var(--cream); background: rgba(11, 68, 52, .4); }
.btn--pill { height: 44px; padding: 0 22px; font-size: 15px; background: var(--leaf); color: var(--cream); --roll-color: var(--gold); }
.btn--pill:hover { background: color-mix(in srgb, var(--leaf) 82%, var(--cream)); }

/* =========================================================
   PRELOADER — two curtains part to reveal the page (index.html)
   ========================================================= */
.aeva-cinematic-loader { position: fixed; inset: 0; z-index: 1000; overflow: hidden; pointer-events: none; user-select: none; -webkit-user-select: none; }
.aeva-cinematic-loader[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .aeva-cinematic-loader { display: none; }
}
.aeva-curtain {
  position: absolute; left: 0; width: 100%; height: 50.5vh;
  display: flex; justify-content: center;
  background: var(--emerald);
  transition: transform 2s cubic-bezier(.77, 0, .175, 1);
}
.aeva-curtain--top { top: 0; align-items: flex-end; border-bottom: 1px solid rgba(232, 184, 75, .25); box-shadow: 0 10px 40px rgba(0, 0, 0, .7); }
.aeva-curtain--bottom { bottom: 0; align-items: flex-start; border-top: 1px solid rgba(232, 184, 75, .25); box-shadow: 0 -10px 40px rgba(0, 0, 0, .7); }
.aeva-curtain-inner { display: flex; flex-direction: column; align-items: center; transition: transform 2s cubic-bezier(.77, 0, .175, 1), opacity 1.4s cubic-bezier(.4, 0, .2, 1); }
.aeva-curtain-inner--top { padding-bottom: clamp(14px, 2.6vh, 32px); }
.aeva-curtain-inner--bottom { padding-top: clamp(14px, 2.6vh, 32px); }
.aeva-word { font-weight: 900; text-transform: uppercase; animation: aevaGlowPulse 2s ease-in-out infinite alternate; }
.aeva-word--aeva {
  font-size: clamp(38px, 8.5vw, 105px); line-height: .9; letter-spacing: clamp(6px, 1.4vw, 18px); color: var(--cream);
  text-shadow: 0 0 45px rgba(232, 184, 75, .18), 0 0 80px rgba(11, 107, 79, .25);
}
.aeva-word--chemicals {
  font-size: clamp(22px, 5vw, 62px); line-height: .95; letter-spacing: clamp(4px, 1.1vw, 14px); text-indent: clamp(4px, 1.1vw, 14px); color: var(--gold);
  text-shadow: 0 0 45px rgba(232, 184, 75, .28), 0 0 80px rgba(11, 107, 79, .2);
}
.aeva-divider-line {
  position: absolute; top: 50%; left: 50%; z-index: 1; width: min(520px, 84vw); height: 1px; pointer-events: none;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(232, 184, 75, .5) 20%, rgba(244, 241, 232, .95) 50%, rgba(232, 184, 75, .5) 80%, transparent);
  transition: transform 1.2s cubic-bezier(.4, 0, .2, 1), opacity 1s ease;
}
@keyframes aevaGlowPulse {
  0% { opacity: .94; text-shadow: 0 0 25px rgba(232, 184, 75, .12); }
  100% { opacity: 1; text-shadow: 0 0 50px rgba(232, 184, 75, .32), 0 0 90px rgba(11, 107, 79, .35); }
}
@media (max-width: 860px), (pointer: coarse) {
  .aeva-curtain { height: 50%; }
  .aeva-curtain, .aeva-curtain-inner, .aeva-divider-line { transition-duration: .55s; }
}
.aeva-cinematic-loader.is-revealed .aeva-curtain--top { transform: translateY(-100%); }
.aeva-cinematic-loader.is-revealed .aeva-curtain--bottom { transform: translateY(100%); }
.aeva-cinematic-loader.is-revealed .aeva-curtain-inner--top { transform: translateY(-110px); opacity: 0; }
.aeva-cinematic-loader.is-revealed .aeva-curtain-inner--bottom { transform: translateY(110px); opacity: 0; }
.aeva-cinematic-loader.is-revealed .aeva-divider-line { transform: translate(-50%, -50%) scaleX(0); opacity: 0; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  color: var(--cream); --roll-color: var(--gold);
  transition: background .4s, padding .4s, backdrop-filter .4s, color .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(11, 68, 52, .92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-block: 12px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 42px; height: 42px; color: currentColor; overflow: visible; }
/* stacked like the company logo: bold AEVA over a light, wide CHEMICALS */
.nav__word { display: flex; flex-direction: column; line-height: 1; }
.nav__word b { font-weight: 600; font-size: 22px; letter-spacing: .34em; margin-right: -.34em; }
.nav__word em { font-style: normal; font-weight: 400; font-size: 9.5px; letter-spacing: .52em; margin-top: 5px; opacity: .85; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; }
.nav__links a { position: relative; opacity: .9; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }
.nav__links .roll__in > span + span, .nav__cta .roll__in > span + span { color: inherit; }
.nav__links a:focus-visible, .nav__cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
@media (min-width: 861px) {
  .nav__links { gap: 34px; font-size: 16px; font-weight: 500; letter-spacing: .025em; }
  .nav__links a { transition: opacity .2s; }
  .nav__links a:hover, .nav__links a:focus-visible { opacity: 1; }
  .nav__cta { flex-shrink: 0; font-size: 16px; letter-spacing: .015em; }
}
@media (min-width: 861px) and (max-width: 1000px) {
  .nav { gap: 24px; }
  .nav__links { gap: 26px; }
}
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .nav__links a, .nav__cta {
    --nav-dock: 0;
    --nav-dock-growth: .42;
    transform-origin: center;
    transform: translateY(calc(var(--nav-dock) * -11px)) scale(calc(1 + var(--nav-dock) * var(--nav-dock-growth)));
  }
  .nav__cta { --nav-dock-growth: .14; transition-property: background, color, border-color; }
}
.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 15px; } .nav__burger span:last-child { top: 24px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
/* header "Request a trial": the same glass as the hero buttons */
.nav__cta.btn--pill {
  border: 1.5px solid rgba(244, 241, 232, .7); color: var(--cream); --roll-color: var(--gold);
  background: rgba(11, 68, 52, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav__cta.btn--pill:hover { border-color: var(--cream); background: rgba(11, 68, 52, .4); }

/* =========================================================
   HERO
   ========================================================= */
/* the hero pins while the pour plays out over the extra scroll */
.hero-scroll { position: relative; height: 290svh; background: var(--emerald); } /* 160svh of pour + 30svh hold (script.js) */
/* phones: the hero is 100svh tall, so when the address bar hides the screen grows taller than it;
   the emerald behind it fills that strip so the hero runs straight into the brush edge */
.hero {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  background: var(--emerald); /* shown until the first frame arrives */
}
.hero__film {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  z-index: -2;
  filter: brightness(1.3); /* lifts the film's deep green up to Aeva Emerald */
  transform: scale(1.08);
  animation: heroZoom 18s var(--ease-out) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 68, 52, .6) 0%, rgba(11, 68, 52, .25) 45%, rgba(11, 68, 52, 0) 65%),
    linear-gradient(180deg, rgba(11, 68, 52, .5) 0%, rgba(11, 68, 52, 0) 22%);
}
.hero .grain { z-index: -1; opacity: .06; }
.hero__inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero__title {
  font-weight: 500;
  font-size: clamp(52px, 9.6vw, 150px);
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--cream);
  text-shadow: 0 2px 22px rgba(22, 33, 28, .3);
}
.hero__title .split { display: block; }
.hero__rotator { display: inline-block; height: .98em; overflow: hidden; vertical-align: bottom; text-shadow: none; } /* a clipped glow would show as a box */
.hero__rot-track { display: block; transition: transform .8s var(--ease); }
.hero__rot-track > span { display: block; height: .98em; line-height: .98em; white-space: nowrap; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.hero__scroll {
  opacity: calc(1 - var(--hero-p, 0) * 10);
  position: absolute; left: 50%; bottom: 32px; margin-left: -13px;
  width: 26px; height: 42px; border: 1.5px solid rgba(244, 241, 232, .6); border-radius: 14px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cream); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
/* desktop: the pour runs down the right, so the words sit in the empty left */
@media (min-width: 861px) {
  .hero { align-items: flex-start; text-align: left; }
  .hero__inner { margin: 0; align-items: flex-start; max-width: 58%; }
  .hero__title { font-size: clamp(52px, 7.2vw, 124px); }
  .hero__ctas { justify-content: flex-start; }
  /* slide the film right, fading its left edge into the matching emerald, so the pour clears the headline */
  .hero__film {
    left: 22%; width: 78%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  }
}

/* split-char intro */
.char { display: inline-block; transform: translateY(105%); opacity: 0; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.is-ready .char { animation: charUp 1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 28ms + 200ms); }
@keyframes charUp { to { transform: translateY(0); opacity: 1; } }

/* =========================================================
   SPLIT PANEL
   ========================================================= */
.split-panel__text {
  display: flex; flex-direction: column; justify-content: center; gap: 34px;
  padding: 120px clamp(24px, 6vw, 110px);
}
.green { background: var(--cream); color: var(--ink); }
.green .eyebrow { color: var(--leaf); }
.green p:not(.eyebrow) { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; max-width: 640px; }
.green .btn { align-self: flex-start; }

/* =========================================================
   ABOUT — the soaping bath in a flask (drawn by script.js)
   ========================================================= */
.story { position: relative; height: 360svh; background: var(--cream); }
.story__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story__card {
  position: absolute; z-index: 1; left: clamp(20px, 5vw, 80px); top: 50%; transform: translateY(-44%);
  width: min(460px, calc(100% - 40px)); padding: clamp(24px, 2.6vw, 36px);
  background: var(--tint); color: var(--ink);
  border: 1px solid var(--line); border-radius: 26px;
  box-shadow: 0 30px 80px -50px rgba(22, 33, 28, .45);
}
.story__eyebrow { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--leaf); }
.story__steps { display: grid; margin: 0; padding: 0; list-style: none; }
.story__steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .6s var(--ease-out); }
.story__steps li.is-on { opacity: 1; transform: none; }
.story__stage { margin: 0 0 14px; font: 500 11px/1.4 "Jost", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.story__steps h3 { margin: 0 0 16px; font-weight: 500; font-size: clamp(30px, 3vw, 46px); line-height: 1.02; letter-spacing: -.025em; }
.story__steps li > p:last-child { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.story__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.story__progress { display: flex; gap: 6px; }
.story__progress i { position: relative; width: 26px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.story__progress i::after { content: ""; position: absolute; inset: 0; background: var(--leaf); transform: scaleX(var(--fill, 0)); transform-origin: left; }
.story__film {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px;
  border: 1px solid rgba(11, 68, 52, .3); border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--emerald); white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.story__film svg { width: 22px; height: 22px; }
.story__film:hover { background: var(--emerald); border-color: var(--emerald); color: var(--cream); }
.story__film:focus-visible, .film__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 720px) {
  .story__card { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; transform: none; padding: 20px; border-radius: 20px; }
  .story__eyebrow { margin-bottom: 14px; padding-bottom: 12px; }
  .story__progress i { width: 16px; }
  .story__steps h3 { font-size: 26px; margin-bottom: 10px; }
  .story__steps li > p:last-child { font-size: 15px; }
  .story__foot { margin-top: 18px; }
  .story__film { font-size: 14px; }
}
/* the company film, opened from the story card */
.film { width: min(1100px, 92vw); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.film::backdrop { background: rgba(22, 33, 28, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--ink); }
.film__close {
  position: absolute; top: -52px; right: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(244, 241, 232, .4); color: var(--cream); font-size: 18px; line-height: 1;
  transition: background .25s, color .25s;
}
.film__close:hover { background: var(--cream); color: var(--ink); }

/* Tailor-made: copy on the left, the liquid artwork (script.js) on the right */
.formulation { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; scroll-margin-top: 72px; }
.formulation .split-panel__text { justify-content: flex-start; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 6vw, 88px); }
.formulation__lead { text-align: justify; }
.formulation .tailor { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 640px; }
.tailor > div { background: var(--tint); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.tailor i { width: 22px; height: 22px; border-radius: 6px; margin-bottom: 8px; }
.tailor b { font-weight: 600; font-size: 18px; }
.tailor span { font-size: 14px; color: var(--ink-soft); }
.liquid-scene { position: relative; min-height: 660px; isolation: isolate; overflow: hidden; background: var(--cream); }
.liquid-scene__image, .liquid-scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.liquid-scene__image { object-fit: contain; object-position: center; padding: 4%; mix-blend-mode: multiply; }
/* script.js fits the artwork between the top label and the caption */
.liquid-scene.is-placed .liquid-scene__image { inset: var(--art-y) auto auto var(--art-x); width: var(--art-size); height: var(--art-size); padding: 0; }
.liquid-scene__canvas { opacity: 0; transition: opacity .6s; }
.liquid-scene.is-ready .liquid-scene__canvas { opacity: 1; }
.liquid-scene__top, .liquid-scene__bottom { position: absolute; z-index: 1; left: clamp(24px, 3.4vw, 56px); right: clamp(24px, 3.4vw, 56px); display: flex; align-items: center; justify-content: space-between; color: var(--emerald); }
.liquid-scene__top { justify-content: flex-end; top: 30px; font: 400 10px/1.5 "Jost", system-ui, sans-serif; letter-spacing: .19em; }
.liquid-scene__symbol { color: var(--gold); font-size: 30px; line-height: 1; }
.liquid-scene__bottom { bottom: var(--caption-bottom, 34px); align-items: flex-end; } /* level with the cards, set by script.js */
.liquid-scene__bottom p { font-size: clamp(32px, 3.2vw, 48px); letter-spacing: -.025em; line-height: 1.1; font-weight: 400; }
.liquid-scene__bottom p span { color: var(--leaf); }
@media (max-width: 860px) {
  .formulation { grid-template-columns: 1fr; min-height: 0; }
  .liquid-scene { min-height: 0; aspect-ratio: 1; }
  .liquid-scene__bottom { bottom: 26px; }
}
@media (max-width: 560px) {
  .formulation .tailor { grid-template-columns: 1fr; }
  .liquid-scene { aspect-ratio: 3 / 4; } /* room for the caption below the artwork */
}

/* =========================================================
   CAPABILITIES — industries reel: while the section is pinned,
   the names scroll up through a tilted gold bar (script.js)
   ========================================================= */
.capabilities {
  position: relative; color: var(--cream); overflow: clip;
  background: #000; /* black, so it reads as a new section after the emerald hero */
}
.hero-brush-edge {
  position: absolute;
  z-index: 2;
  bottom: -1px;
  width: 100%;
  height: clamp(32px, 6vw, 92px);
  pointer-events: none;
}
.cap-stage {
  --fs: clamp(20px, min(3.95vw, calc((100svh - 190px) / 8.2)), 76px); /* as large as the width and the screen height allow */
  --row: calc(var(--fs) * 1.2);
  min-height: 100svh; padding: 88px clamp(16px, 2.6vw, 44px) 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center;
}
.capabilities.is-pinned { height: calc(100svh + var(--cap-steps, 5) * 42svh); }
.capabilities.is-pinned .cap-stage { position: sticky; top: 0; height: 100svh; }
.capabilities .eyebrow { color: var(--cream-soft); }
.cap-line {
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.3vw, 20px);
  margin-block: calc(var(--row) * 3.6) calc(var(--row) * 3.6 - 32px);
  font: 600 var(--fs)/1.2 "Jost", system-ui, sans-serif; letter-spacing: -.01em; text-transform: uppercase;
}
/* one row tall in the layout, so the stacked lines never push the section taller */
.cap-side { height: var(--row); display: flex; flex-direction: column; justify-content: center; color: var(--gold); white-space: nowrap; line-height: 1.04; }
.cap-side > span { display: block; }
/* the side text's last line sits on the bar's line: "… for [industry]" */
.cap-side--l { text-align: right; transform: translateY(-1.04em); }
.cap-reel { position: relative; height: var(--row); }
/* the six names sit in a loop round the bar and fade out three rows above and below it */
.cap-window {
  box-sizing: content-box; height: var(--row);
  margin-block: calc(var(--row) * -3.5); padding-block: calc(var(--row) * 3.5); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent);
  mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent);
}
.cap-words { list-style: none; margin: 0; padding: 0; }
.cap-words li { height: var(--row); white-space: nowrap; will-change: transform, opacity; }
.cap-words a, .cap-words span { display: block; padding-inline: .4em; color: rgba(244, 241, 232, .24); transition: color .3s; }
.cap-words a:hover, .cap-words a:focus-visible { color: rgba(244, 241, 232, .6); }
.cap-bar {
  position: absolute; inset: calc(var(--row) * -.07) 0; overflow: hidden; pointer-events: none;
  background: var(--gold); transform: rotate(-2deg);
  box-shadow: 0 14px 34px rgba(4, 30, 22, .35);
}
.cap-words--lit { margin-top: calc(var(--row) * .07); }
.cap-words--lit span { color: var(--emerald); }
@media (max-width: 760px) {
  .cap-stage { --fs: clamp(19px, 6.2vw, 30px); padding-top: 76px; }
  .cap-line { flex-direction: column; gap: 0; margin-block: 28px 0; }
  .cap-side, .cap-side--l { height: auto; display: block; text-align: center; transform: none; }
  .cap-side > span { display: inline; }
  .cap-reel { margin-block: calc(var(--row) * 4.6); }
}

/* =========================================================
   TICKER — Aeva promises drifting right to left above the inquiry form.
   Two identical groups, so sliding by half the track loops seamlessly.
   ========================================================= */
.ticker { background: var(--cream); overflow: hidden; padding: clamp(28px, 4vw, 64px) 0; }
.ticker__track { display: flex; width: max-content; animation: tickerMove var(--ticker-dur, 70s) linear infinite; will-change: transform; }
.ticker__group {
  display: flex; flex: none; gap: 1.1em; padding: 0 1.1em 0 0; margin: 0; list-style: none;
  font: 600 clamp(52px, 9vw, 150px)/1 "Jost", system-ui, sans-serif; letter-spacing: -.02em;
  text-transform: uppercase; white-space: nowrap; color: rgba(11, 68, 52, .22);
}
@keyframes tickerMove { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* =========================================================
   FOOTER — halftone wordmark (dots drawn by script.js)
   ========================================================= */
.hwf-root {
  --hwf-bg: var(--emerald); --hwf-ink: var(--cream);
  position: relative; width: 100%; padding-bottom: calc(14vw + 90px); overflow: hidden; isolation: isolate;
  background: var(--hwf-bg); color: var(--hwf-ink);
}
.hwf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.footer__cols {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px;
  padding: clamp(90px, 10vw, 130px) var(--gutter) 0; --roll-color: var(--gold);
}
.footer__copyright { position: relative; margin: 28px var(--gutter) 0; color: var(--cream-soft); }
.footer__h { text-transform: uppercase; font-size: 21px; font-weight: 500; margin-bottom: 24px; letter-spacing: .01em; }
.footer__sub a { font-size: 21px; color: var(--cream-soft); line-height: 1.43; }
.whatsapp-float {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cream);
  border-radius: 50%;
  background: var(--leaf);
  color: var(--cream);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
}
.whatsapp-float svg { width: 24px; height: 24px; fill: currentColor; }
.whatsapp-float:hover { background: var(--emerald); }
.whatsapp-float:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.footer__social { display: flex; align-items: center; gap: clamp(5px, calc((100% - 208px) / 7), 18px); }
.footer__social a { display: grid; place-items: center; }
.footer__social svg { width: 26px; height: 26px; fill: var(--cream-soft); transition: fill .3s, transform .3s var(--ease-out); }
.footer__social a:hover svg { fill: var(--gold); transform: translateY(-3px); }
.footer__region {
  margin-top: 30px; display: flex; align-items: center; gap: 12px;
  width: min(290px, 100%); height: 54px; padding: 0 22px;
  border: 2px solid var(--cream-mute); border-radius: 999px; font-size: 19px;
  transition: background .3s, color .3s;
}
.footer__region svg { width: 26px; height: 26px; }
.footer__region svg:last-child { margin-left: auto; width: 18px; height: 18px; }
.footer__region:hover { background: var(--cream); color: var(--emerald); border-color: var(--cream); }
a.footer__region { text-decoration: none; color: inherit; }
.hwf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) { .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } }
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__h, .footer__sub a { font-size: 18px; }
}

/* =========================================================
   SCROLL REVEALS
   ========================================================= */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal-up.is-in { opacity: 1; transform: none; }
.reveal-words .word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.reveal-words.is-in .word > span { transform: none; }
.hero .reveal-up { transition-delay: 1s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .nav.is-open { background: var(--emerald); flex-wrap: wrap; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; width: 100%; gap: 16px; padding: 18px 0 8px; font-size: 26px; }
  .split-panel__text { padding: 64px var(--gutter); }
  .hero__scroll { display: none; }
  /* phones: the pour fills the frame, so the headline drops to the bottom */
  .hero { justify-content: flex-end; padding-bottom: 64px; }
  /* Fill the screen even after the address bar hides (100lvh), so no strip shows under the film.
     While the bar is showing, the extra height sits behind it, so the text is lifted by that much. */
  @supports (height: 100lvh) {
    .hero { height: 100lvh; padding-bottom: calc(64px + 100lvh - 100svh); }
  }
  /* only a short fade behind the buttons, so the flask stays clear; the headline's shadow keeps it readable */
  .hero__shade, .hero .grain { display: none; }
  .hero__film { filter: none; }
  .hero__title { text-shadow: 0 2px 18px rgba(4, 30, 22, .55); }
}
@media (max-width: 560px) {
  .tailor { grid-template-columns: 1fr; }
  .roll--big { white-space: normal; }
  .btn { height: 52px; padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .char, .reveal-up, .reveal-words .word > span { opacity: 1 !important; transform: none !important; }
  .story__steps li { transition: none; }
  .hero-scroll { height: auto; } /* no scrub: the hero shows the filled flask */
  .hero { position: relative; }
  .aeva-curtain, .aeva-curtain-inner, .aeva-divider-line { transition-duration: .3s !important; }
}

/* Inquiry box */
.inquiry { background: var(--cream); color: var(--ink); padding: clamp(64px,9vw,120px) var(--gutter); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: clamp(32px,5vw,80px); border-top: 1px solid var(--line); }
.inquiry__head h2 { font-size: clamp(2rem,4.5vw,3.6rem); line-height: 1.02; margin: 12px 0 16px; color: var(--emerald); }
.inquiry__head p:last-child { color: var(--ink-soft); max-width: 34ch; }
.inquiry__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.inquiry__form label { display: grid; gap: 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); }
.inquiry__form input, .inquiry__form select, .inquiry__form textarea { font: inherit; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; resize: vertical; }
.inquiry__form :is(input,select,textarea):focus { outline: 2px solid var(--leaf); outline-offset: 1px; border-color: transparent; }
.inquiry__full { grid-column: 1 / -1; }
.inquiry__form .btn { justify-self: start; border: 0; cursor: pointer; }
@media (max-width: 760px) { .inquiry, .inquiry__form { grid-template-columns: minmax(0,1fr); } }
.inquiry { grid-template-areas: "head form" "map form"; grid-template-rows: auto 1fr; row-gap: 32px; }
.inquiry__head { grid-area: head; }
.inquiry__form { grid-area: form; align-self: start; }
.inquiry .eyebrow { color: var(--leaf); }
/* office map under the intro */
.inquiry__map { grid-area: map; display: flex; flex-direction: column; min-height: 240px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.inquiry__map iframe { flex: 1; width: 100%; min-height: 180px; border: 0; display: block; background: #e8ebe4; }
.inquiry__address { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.inquiry__address b { color: var(--emerald); font-weight: 600; }
.inquiry__address a { flex: none; color: var(--leaf); font-weight: 500; }
.inquiry__address a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .inquiry { grid-template-areas: "head" "form" "map"; grid-template-rows: auto; }
  .inquiry__map { min-height: 380px; }
}

/* Careers page */
.careers { background: var(--cream); color: var(--ink); padding: 140px var(--gutter) 96px; }
.careers__hero { max-width: 820px; }
.careers__hero h1 { font-size: clamp(2.4rem,6vw,4.8rem); line-height: 1; color: var(--emerald); margin: 14px 0 20px; }
.careers__hero p:last-child { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }
.careers__why { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 64px 0; }
.careers__why div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.careers__why h3, .job h3 { color: var(--emerald); font-size: 1.3rem; margin-bottom: 8px; }
.careers__why p, .job p { color: var(--ink-soft); }
.careers__jobs h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); color: var(--emerald); margin-bottom: 20px; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.job__meta { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf) !important; margin-bottom: 6px; }
.careers__note { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; color: var(--ink-soft); }
.careers__note a { color: var(--leaf); text-decoration: underline; }
@media (max-width: 760px) { .careers { padding-top: 110px; } .careers__why { grid-template-columns: minmax(0,1fr); } .job { flex-direction: column; align-items: flex-start; } }

/* the Contact us button also shows inside the open phone menu */
@media (max-width: 860px) {
  .nav.is-open .nav__burger { order: 1; }
  .nav.is-open .nav__links { order: 2; }
  .nav.is-open .nav__cta { order: 3; display: inline-flex; margin: 4px 0 18px; }
}

/* Editable sections wait for the saved content (cms-config.js, cms.js) */
html.cms-wait [data-cms] { visibility: hidden; }
.careers__empty { color: var(--ink-soft); padding: 18px 0; }
.inquiry__sent { padding: 12px 16px; border-radius: 12px; background: #e6f0ea; color: var(--emerald); font-size: 15px; line-height: 1.5; }
.inquiry__sent a { color: var(--leaf); text-decoration: underline; }
