/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/schibsted-grotesk.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/schibsted-grotesk-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/newsreader-italic.woff2") format("woff2"); }

:root {
  --ink: #1E2A3A;
  --steel: #5F6B7A;
  --lab: #F6F7F5;
  --medium: #F6C6CD;
  --phenol: #C93653;
  --line: rgba(30,42,58,.14);
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--lab); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--phenol); outline-offset: 3px; border-radius: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(246,247,245,.88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.03em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav ul a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--phenol); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--lab) !important; padding: 11px 20px; border-radius: 999px;
  transition: background .2s;
}
.btn:hover { background: var(--phenol); }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--lab) !important; }
.menu-toggle { display: none; }

/* ---------- Pages ---------- */
.page { display: none; }
.page.active { display: block; }

/* ---------- Heroes ---------- */
.hero {
  position: relative; overflow: hidden; padding: 0;
  background: radial-gradient(120% 90% at 80% 20%, #FADADF 0%, var(--medium) 45%, #EFAAB6 100%);
  display: flex; align-items: flex-end; min-height: 64svh;
}
.hero.full { min-height: 100svh; }
.hero-text { position: relative; z-index: 1; padding: 130px var(--pad) clamp(48px, 8vh, 96px); max-width: 1240px; }
.hero h1 {
  font-weight: 800; letter-spacing: -.045em; line-height: 1.02;
  font-size: clamp(46px, 7.6vw, 118px); margin: 0 0 28px; max-width: 12ch;
}
.hero.full h1 { font-size: clamp(44px, min(8.6vw, 11.2vh), 132px); max-width: 11ch; margin-bottom: 22px; }
.hero.full .hero-text { padding-top: 100px; padding-bottom: clamp(36px, 6vh, 80px); }
.hero.full .hero-actions { margin-top: 24px; }
.hero p { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; max-width: 38ch; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Home: batch culture */
#batch { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero.full::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(30% 26% at 94% 94%, rgba(250,218,223,.9) 0%, rgba(250,218,223,.6) 40%, rgba(250,218,223,.2) 70%, transparent 100%),
    radial-gradient(70% 62% at 14% 82%, rgba(250,218,223,.92) 0%, rgba(250,218,223,.6) 45%, transparent 75%); }
/* Same soft frost behind the nav bar, fading out gradually so there's no edge over the cells */
.hero.full::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 190px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(250,218,223,.9) 0%, rgba(250,218,223,.82) 25%, rgba(250,218,223,.6) 45%, rgba(250,218,223,.32) 65%, rgba(250,218,223,.12) 82%, rgba(250,218,223,0) 100%); }
.hero.full .hero-text { pointer-events: none; }
.hero.full .hero-text a { pointer-events: auto; }
.hero p.batch-caption { font-family: var(--sans); line-height: 1.4; font-size: 14px; }
.batch-caption { position: absolute; z-index: 1; right: var(--pad); bottom: clamp(48px, 8vh, 96px); font-size: 14px; text-align: right; max-width: 24ch; }
.batch-caption strong { display: block; font-size: 15px; }
.batch-caption span { opacity: .7; }

/* Mission: headline word reveal */
.reveal .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.reveal .w > span { display: inline-block; transform: translateY(105%); }
.page.active .reveal .w > span { animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 150ms); }
@keyframes rise { to { transform: none; } }
.page.active .reveal-after { animation: fade .8s var(--ease) both; animation-delay: .75s; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Technology: differentiation canvas */
.hero.split-hero { align-items: stretch; }
.split-hero .inner { display: grid; grid-template-columns: 1.1fr 1fr; width: 100%; align-items: end; }
#diff { width: 100%; height: 100%; min-height: 420px; display: block; }

/* Applications: one source, three streams */
.streams-wrap { display: flex; align-items: center; padding: 110px var(--pad) 40px 0; }
#streams { width: 100%; height: auto; max-height: 72svh; overflow: visible; }
#streams .paths path { fill: none; stroke: rgba(30,42,58,.18); stroke-width: 2; transition: stroke .3s, opacity .3s; }
#streams .paths path.hot { stroke: var(--phenol); }
#streams.focus .paths path:not(.hot) { opacity: .35; }
#streams .source-halo { fill: rgba(255,240,242,.6); stroke: rgba(201,54,83,.35); stroke-width: 1.5; }
#streams .drop { fill: url(#lipid); stroke: rgba(201,54,83,.35); stroke-width: 1; }
#streams .market { cursor: pointer; outline: none; }
#streams .market text { font: 700 22px var(--sans); fill: var(--ink); letter-spacing: -.01em; transition: fill .2s; }
#streams .node { fill: var(--lab); stroke: var(--ink); stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: fill .2s; }
#streams .node.ping { animation: ping .5s var(--ease); }
@keyframes ping { 40% { transform: scale(1.45); fill: var(--medium); } }
#streams .market:hover text, #streams .market:focus-visible text { fill: var(--phenol); }
#streams .market:hover .node, #streams .market:focus-visible .node { fill: var(--phenol); stroke: var(--phenol); }
#streams .market:focus-visible text { text-decoration: underline; }

/* Applications: the path that isn't finished yet */
.horizon { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.horizon svg { width: 100%; height: 90px; display: block; overflow: visible; }
.horizon path { fill: none; vector-effect: non-scaling-stroke; }
.h-branch, .h-line { stroke: var(--phenol); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.h-branch { transition: stroke-dashoffset .7s var(--ease); }
.h-line { transition: stroke-dashoffset 2.2s var(--ease) .6s; }
.h-future { stroke: rgba(30,42,58,.28); stroke-width: 2; stroke-dasharray: 2 8; }
.horizon.in .h-branch, .horizon.in .h-line { stroke-dashoffset: 0; }
.h-dot { position: absolute; left: calc(10 / 1200 * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--phenol); }
.h-dot.d1 { top: 18px; } .h-dot.d2 { top: 45px; } .h-dot.d3 { top: 72px; }
.h-goal { position: absolute; left: calc(1150 / 1200 * 100%); top: 45px; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 2px dashed rgba(30,42,58,.4); background: var(--lab); }
.horizon.in .h-goal { animation: breathe 3.2s ease-in-out 3s infinite; }
@keyframes breathe { 50% { border-color: var(--phenol); transform: scale(1.12); } }
.h-labels { display: flex; justify-content: space-between; margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--steel); }
.h-labels span:last-child { color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 8vw, 112px) var(--pad); }
.wrap { max-width: 1200px; margin: 0 auto; }
.dark { background: var(--ink); color: var(--lab); }
.label { font-size: 16px; font-weight: 700; color: var(--phenol); margin: 0 0 14px; }
.dark .label { color: var(--medium); }
.big { font-size: clamp(34px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0; max-width: 18ch; }
.lede { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; margin: 0; max-width: 30ch; }
.body { font-family: var(--serif); font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; margin: 0; max-width: 40ch; }
.dark .body { color: #D6DBE1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.cols { display: grid; gap: clamp(24px, 3.5vw, 56px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.col { border-top: 2px solid var(--ink); padding-top: 22px; }
.dark .col { border-top: 1px solid rgba(246,247,245,.25); }
.col h3 { margin: 0 0 12px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.col h3.huge { font-size: clamp(36px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: .95; color: var(--medium); }
a.col { text-decoration: none; }
a.col:hover h3.huge { color: #fff; }
.stack > * + * { margin-top: clamp(32px, 4vw, 56px); }

/* Technology: species timeline (draws when scrolled into view) */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 34px; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 9px; left: 0; height: 2px; }
.timeline::before { right: 0; background: rgba(246,247,245,.18); }
.timeline::after { width: 100%; background: var(--medium); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.timeline.in::after { transform: scaleX(.84); }
.t-step { position: relative; padding-right: 24px; }
.t-step::before { content: ""; position: absolute; top: -34px; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); box-shadow: inset 0 0 0 2px rgba(246,247,245,.35); transition: background .4s, box-shadow .4s; }
.timeline.in .t-step::before { background: var(--medium); box-shadow: inset 0 0 0 2px var(--medium); }
.timeline.in .t-step:nth-child(1)::before { transition-delay: .2s; }
.timeline.in .t-step:nth-child(2)::before { transition-delay: .9s; }
.timeline.in .t-step:nth-child(3)::before { transition-delay: 1.6s; }
.t-step p { font-size: 15px; font-weight: 700; color: var(--medium); margin: 0 0 6px; }
.t-step h3 { margin: 0; font-size: clamp(36px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: .95; }

/* Applications: market selector */
.markets { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.market-tabs { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.market-tabs button {
  all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: rgba(30,42,58,.35);
  transition: color .25s;
}
.market-tabs button:hover { color: rgba(30,42,58,.7); }
.market-tabs button[aria-selected="true"] { color: var(--ink); }
.market-tabs button .dot { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--phenol); transform: scale(0); transition: transform .35s var(--ease); align-self: center; }
.market-tabs button[aria-selected="true"] .dot { transform: scale(1); }
.market-tabs button:focus-visible { outline: 3px solid var(--phenol); outline-offset: 4px; }
.market-panel { background: var(--medium); border-radius: 28px; padding: clamp(28px, 4vw, 52px); min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.market-panel[hidden] { display: none; }
.market-panel.enter { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.market-panel h3 { margin: 0; font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1; max-width: 14ch; }
.market-panel .who { font-size: 15px; font-weight: 700; color: var(--phenol); margin: 0 0 8px; }

/* Team */
/* Founders side by side as equal cards; "Read bio" opens a full-width drawer under both */
.founders { --g: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; column-gap: var(--g); }
.founder { display: flex; flex-direction: column; align-items: center; text-align: center; }
.founder img { width: min(100%, 300px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--medium); }
.founder h3 { margin: 28px 0 0; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.025em; line-height: 1.1; }
.founder .role { color: var(--phenol); font-weight: 700; font-size: 16px; margin: 6px 0 20px; }
.bio-toggle[aria-expanded="true"] { background: var(--ink); color: var(--lab) !important; }
.bio { grid-column: 1 / -1; position: relative; margin-top: 40px; background: var(--medium); border-radius: 28px; padding: clamp(28px, 4vw, 56px); }
.bio[hidden] { display: none; }
.bio.enter { animation: panelIn .5s var(--ease); }
.bio::before { content: ""; position: absolute; top: -13px; left: calc((100% - var(--g)) / 4); width: 28px; height: 28px; margin-left: -14px; background: var(--medium); border-radius: 4px; transform: rotate(45deg); }
.bio[data-side="right"]::before { left: calc(100% - (100% - var(--g)) / 4); }
.bio .body { position: relative; max-width: 62ch; margin: 0 auto; }
.bio .body + .body { margin-top: 1em; }

/* Contact */
.email-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.email-big { font-size: clamp(36px, 6.4vw, 96px); font-weight: 800; letter-spacing: -.045em; line-height: 1; text-decoration: none; border-bottom: 4px solid var(--phenol); padding-bottom: 6px; }
.email-big:hover { color: var(--phenol); }
.copy-btn { position: relative; overflow: hidden; min-width: 132px; text-align: center; }
.copy-btn .done { position: absolute; inset: 0; display: grid; place-items: center; background: var(--phenol); transform: translateY(100%); transition: transform .35s var(--ease); }
.copy-btn.copied .done { transform: none; }

/* Closing (shared) */
.closing { background: var(--medium); }
.closing .wrap { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: end; }
.closing .btn { font-size: 17px; padding: 15px 28px; }
.closing h2 { font-size: clamp(44px, 7vw, 108px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 0; max-width: 10ch; }
.closing p { font-family: var(--serif); font-size: 21px; max-width: 32ch; margin: 0 0 24px; }

footer { padding: 40px var(--pad); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 15px; color: var(--steel); }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(95,107,122,.4); }
.menu-legal { display: none; }
.menu-legal a + a { margin-left: 22px; }
.nav ul .lang-switch a { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--steel); }
.nav ul .lang-switch a:hover { color: var(--ink); border-color: currentColor; }

/* Legal notice */
.legal-page { padding-top: 160px; min-height: 70svh; }
.legal-page h1 { font-size: clamp(44px, 6vw, 88px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin: 0 0 40px; }
.legal-body { max-width: 68ch; border-top: 2px solid var(--ink); padding-top: 28px; }
.placeholder { border: 2px dashed rgba(30,42,58,.22); border-radius: 16px; padding: 40px 28px; color: var(--steel); font-family: var(--serif); font-size: 19px; }
.legal-body h2.label { margin: 40px 0 10px; }
.legal-body h2.label:first-child { margin-top: 0; }
.legal-body address { font-style: normal; }
.legal-body .body { max-width: none; }
.legal-body .body + .body { margin-top: 14px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .nav ul { display: none; }
  .nav.open { background: var(--lab); }
  .nav.open ul {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    position: absolute; top: 100%; left: 0; right: 0; padding: 24px var(--pad) 32px; background: var(--lab); box-shadow: 0 1px 0 var(--line);
  }
  .nav.open ul a { font-size: 22px; }
  .nav.open ul .lang-switch a { font-size: 13px; }
  .nav.open .menu-legal { display: block; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); align-self: stretch; }
  .nav.open .menu-legal a { font-size: 15px; color: var(--steel); }
  .menu-toggle { display: block; background: none; border: 0; font: 600 16px var(--sans); color: var(--ink); padding: 8px 0; cursor: pointer; }
  .split, .cols-2, .cols-3, .closing .wrap, .founders, .markets, .split-hero .inner { grid-template-columns: 1fr; }
  .split-hero .inner { align-items: start; }
  .split-hero .hero-text { padding-bottom: 0; }
  #diff { min-height: 300px; }
  .streams-wrap { padding: 8px var(--pad) 40px; }
  #streams .market text { font-size: 32px; }
  .founders { row-gap: 48px; }
  .founder img { width: min(100%, 240px); }
  .bio { margin-top: -24px; }
  .bio::before, .bio[data-side="right"]::before { left: 50%; }
  .batch-caption { left: var(--pad); right: auto; text-align: left; bottom: 20px; }
  .hero.full::after { background:
    radial-gradient(70% 12% at 12% 97%, rgba(250,218,223,.9) 0%, rgba(250,218,223,.6) 40%, rgba(250,218,223,.2) 70%, transparent 100%),
    radial-gradient(70% 62% at 14% 82%, rgba(250,218,223,.92) 0%, rgba(250,218,223,.6) 45%, transparent 75%); }
  .hero.full .hero-text { padding-bottom: 104px; }
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 40px; gap: 28px; }
  .timeline::before, .timeline::after { top: 0; bottom: 0; left: 9px; width: 2px; height: auto; }
  .timeline::after { transform: scaleY(0); transform-origin: top; }
  .timeline.in::after { transform: scaleY(.8); }
  .t-step::before { top: 4px; left: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Multi-page additions (built on the prototype's tokens) ---------- */
/* Technology: images from the lab */
.lab-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.lab-grid figure { margin: 0; }
.lab-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: #0B1118; }
.lab-grid figcaption { margin-top: 12px; font-size: 15px; line-height: 1.35; color: #D6DBE1; }

/* Technology: four-step scale-up timeline (same drawing animation as the species timeline) */
.timeline.four { grid-template-columns: repeat(4, 1fr); }
.timeline.in .t-step:nth-child(4)::before { transition-delay: 2.3s; }
.t-step .t-note { font-family: var(--serif); font-size: 17px; font-weight: 400; color: #D6DBE1; margin: 10px 0 0; }

/* Rounded photo with caption */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; max-width: 440px; aspect-ratio: 1; object-fit: cover; border-radius: 28px; background: var(--medium); }
.photo figcaption { margin-top: 12px; font-size: 15px; color: var(--steel); max-width: 40ch; }

/* Applications: photo inside a market panel */
.panel-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.panel-foot img { width: 120px; height: 120px; flex: none; object-fit: cover; border-radius: 50%; }

@media (max-width: 820px) {
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline.four { grid-template-columns: 1fr; }
  .panel-foot { flex-direction: column; align-items: flex-start; }
  .panel-foot img { width: 96px; height: 96px; }
}
