/* Arome, page 10: scent made visible.
   A luminous pale-mist ground, black precise type, and the colours of the notes. */

:root {
  --ground: #f1f3f5;
  --ground-2: #e8ecef;
  --ink: #0b0d10;
  --ink-2: #454c55;
  --ink-3: #5f6771;
  --line: #d2d8dd;
  --line-2: #b9c1c8;
  --marine: #1c5cc4;
  --melon: #ec5a84;
  --amber: #d98718;
  --green: #3a9a50;
  --focus: #1c5cc4;
  --error: #b3261e;
  --ok: #1f7a3f;

  --display: 'Spectral', 'Iowan Old Style', Georgia, serif;
  --text: 'Geologica', system-ui, sans-serif;
  --mono: 'Azeret Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --pad: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --section: clamp(80px, 9vw, 136px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  accent-color: var(--marine);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-2) var(--ground);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--ground); }
::selection { background: var(--marine); color: #fff; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 300 17px/1.6 var(--text);
  caret-color: var(--marine);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 200; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.04; max-width: 18ch; }
h3 { font-family: var(--text); font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
q { quotes: '\201C' '\201D'; }
sub { font-size: 0.72em; line-height: 0; vertical-align: -0.22em; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; }

.tag {
  display: inline-block;
  font: 500 11px/1 var(--text);
  letter-spacing: 0.03em;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 8px 4px;
  vertical-align: 0.15em;
  white-space: nowrap;
}
.tag--quiet { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: 999px;
  font: 500 15px/1 var(--text); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease), box-shadow 0.35s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: #1d2733; box-shadow: 0 8px 24px -10px rgba(11, 13, 16, 0.45); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ground-2); box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 500 15px/1.2 var(--text); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line-2);
  transition: text-decoration-color 0.25s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.link-arrow:hover { text-decoration-color: var(--ink); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  height: 68px; padding-inline: var(--pad);
  background: rgba(241, 243, 245, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled { background: rgba(241, 243, 245, 0.97); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand span { font: 300 27px/1 var(--display); letter-spacing: 0.005em; margin-top: -4px; }
.brand__mark { width: 26px; height: 26px; }
.brand__mark path { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 400; }
.nav__links a { text-decoration: none; color: var(--ink-2); padding: 6px 0; transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.nav__links .narrow { display: none; }
.nav__cta { margin-left: 8px; }

@media (max-width: 860px) {
  .nav { position: relative; flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 8px; gap: 8px 16px; }
  .nav__cta { margin-left: auto; order: 2; }
  .nav__links { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 8px; font-size: 14px; }
  .nav__links .wide { display: none; }
  .nav__links .narrow { display: inline; }
}

/* ---------- Plume canvases and fallbacks ---------- */
.plume { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.plume-fallback { position: absolute; pointer-events: none; opacity: 0.95; }
.js .plume-fallback { display: none; }
html:not(.js) .plume { display: none; }

/* Molecule drawings */
.mol { overflow: visible; height: auto; }
.mol__b line { stroke: var(--ink); stroke-width: 1.35; stroke-linecap: round; fill: none; }
.mol__a text { font: 400 13px/1 var(--text); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.mol--small .mol__b line { stroke-width: 1.2; }
.mol--small .mol__a text { font-size: 12px; }
.mol--draw .mol__b line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.5s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.mol--draw .mol__a text { opacity: 0; transition: opacity 0.4s ease 0.5s; }
.mol--draw.is-drawn .mol__b line { stroke-dashoffset: 0; }
.mol--draw.is-drawn .mol__a text { opacity: 1; }

.source { position: absolute; z-index: 2; display: grid; justify-items: center; gap: 6px; }
.source__cap { display: flex; gap: 10px; font: 400 12px/1.3 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.source__cap span:first-child { color: var(--ink); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(660px, calc(100svh - 68px), 980px);
  overflow: hidden;
  display: grid;
  align-content: center;
  padding: 40px var(--pad) 200px;
  max-width: 1600px; margin-inline: auto;
}
.hero__copy { position: relative; z-index: 3; max-width: 600px; margin-top: -40px; }
.hero h1 {
  font-size: clamp(3rem, 6.3vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 10.5ch;
}
.hero h1 em { font-style: italic; font-weight: 200; }
.hero__offer { margin-top: 28px; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.hero__space { display: contents; }
.source--hero { left: 63%; bottom: 64px; transform: translateX(-50%); }
/* The hero plume fills the background; it thins behind the headline so the type stays readable. */
.hero .plume {
  -webkit-mask-image: linear-gradient(100deg, rgb(0 0 0 / 0.28) 0%, rgb(0 0 0 / 0.4) 30%, #000 52%);
  mask-image: linear-gradient(100deg, rgb(0 0 0 / 0.28) 0%, rgb(0 0 0 / 0.4) 30%, #000 52%);
}
@media (max-width: 760px) {
  .hero .plume {
    -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.22) 0%, rgb(0 0 0 / 0.3) 48%, #000 64%);
    mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.22) 0%, rgb(0 0 0 / 0.3) 48%, #000 64%);
  }
}
.source--hero .mol { width: 150px; }
.plume-fallback--hero { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 63% 100%; }

.legend {
  position: absolute; z-index: 3; right: var(--pad); bottom: 56px;
  width: 256px; margin: 0;
  font-size: 13px; line-height: 1.45;
}
.legend figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.legend__title { font-weight: 500; font-size: 14px; }
.legend__brief { margin: 10px 0 8px; color: var(--ink-2); }
.legend__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.legend__list li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 6px; }
.legend__list i { height: 2px; border-radius: 2px; background: var(--c); box-shadow: 0 0 0 0.5px var(--c); }
.legend__list span { font: 400 12px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.legend__key { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; }

@media (max-width: 1100px) {
  .source--hero { left: 70%; }
  .legend { width: 220px; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; padding: 36px var(--pad) 0; align-content: start; }
  .hero__copy { margin-top: 0; }
  .hero__offer { margin-top: 20px; }
  .hero__actions { margin-top: 28px; }
  .hero__space { display: block; position: relative; height: 440px; }
  .source--hero { left: 50%; bottom: 20px; }
  .source--hero .mol { width: 130px; }
  .legend { position: relative; right: auto; bottom: auto; width: auto; margin: 8px 0 24px; }
}

/* ---------- Section intros ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.intro p { color: var(--ink-2); max-width: 58ch; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

/* ---------- Generate ---------- */
.gen { padding-top: clamp(72px, 9vw, 128px); padding-bottom: var(--section); }
.stage {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr) minmax(270px, 320px);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.brief, .readout { padding: 28px 0; }
.brief { padding-right: 28px; display: flex; flex-direction: column; gap: 22px; }
.readout { padding-left: 28px; }

.brief__form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.brief__row { display: grid; gap: 12px; justify-items: start; }
.brief__row input {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 8px 0 10px;
  font: 300 17px/1.3 var(--text); border-radius: 0;
}
.brief__row input::placeholder { color: var(--ink-3); }
.brief__row input:focus { outline: none; border-bottom-color: var(--marine); }
.brief__row input:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.brief__msg { min-height: 1.4em; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.brief__msg[data-tone="error"] { color: var(--error); }
.brief__or { font-size: 14px; font-weight: 500; margin-bottom: -12px; }
.brief__examples { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 8px 16px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  font: 400 15px/1.2 var(--text); text-align: left;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-2); counter-reset: log; }
.log li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: center; transition: color 0.3s; }
.log li::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.log li[data-state="done"] { color: var(--ink); }
.log li[data-state="done"]::before { background: var(--ink); border-color: var(--ink); }
.log li[data-state="active"] { color: var(--ink); }
.log li[data-state="active"]::before { border-color: var(--marine); background: var(--marine); transform: scale(1.25); animation: pulse 1s ease-in-out infinite alternate; }
.log li[data-state="pending"] { color: var(--ink-3); }
@keyframes pulse { to { opacity: 0.35; } }
.note { margin-top: auto; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.note .tag { margin-right: 4px; }

.view {
  position: relative; min-height: 640px;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  overflow: hidden;
}
.plume-fallback--stage { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.source--stage { left: 50%; bottom: 116px; transform: translateX(-50%); }
.source__mol { transition: opacity 0.4s var(--ease), filter 0.4s var(--ease); }
.source__mol.is-out { opacity: 0; filter: blur(3px); }
.source--stage .mol { width: 170px; }

.drydown { position: absolute; z-index: 3; left: 24px; right: 24px; bottom: 18px; }
.drydown__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.drydown label { font-size: 14px; font-weight: 500; }
.drydown output { font: 400 12.5px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.drydown input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0;
}
.drydown input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: var(--track, var(--line-2)); }
.drydown input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: var(--track, var(--line-2)); }
.drydown input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border-radius: 50%;
  background: var(--ground); border: 1.5px solid var(--ink); box-shadow: 0 2px 6px -2px rgba(11, 13, 16, 0.35);
}
.drydown input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ground); border: 1.5px solid var(--ink); }
.drydown input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.drydown__ticks { position: relative; height: 16px; font: 400 11px/1 var(--mono); color: var(--ink-2); }
.drydown__ticks span { position: absolute; left: calc(var(--x) * 1%); transform: translateX(calc(var(--x) * -1%)); top: 2px; white-space: nowrap; }

.readout__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.readout h3 { font: 300 2.1rem/1 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.readout__brief { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.readout__label { margin-top: 24px; font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.readout__label span { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.bars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: 74px 1fr 38px; gap: 10px; align-items: center; font-size: 14px; }
.bars__track { position: relative; height: 8px; }
.bars__track i, .bars__track b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; }
.bars__track i, .bars__track b { width: 100%; transform-origin: 0 50%; }
.bars__track i { transform: scaleX(var(--o)); background: var(--c); opacity: 0.16; }
.bars__track b { transform: scaleX(var(--v)); background: var(--c); transition: transform 0.7s var(--ease); }
.bars__val { font: 400 12.5px/1 var(--mono); text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.props { margin: 24px 0 0; display: grid; }
.props div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.props dt { color: var(--ink-2); }
.props dd { margin: 0; color: var(--ink); }
.props dd span { font: 400 12.5px/1 var(--mono); color: var(--ink-2); margin-left: 4px; }

@media (max-width: 1120px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .brief { padding-right: 24px; }
  .view { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-right: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 560px; }
  .readout { grid-row: 1; grid-column: 2; }
}
@media (max-width: 720px) {
  .stage { grid-template-columns: 1fr; }
  .brief { padding-right: 0; }
  .readout { grid-row: auto; grid-column: auto; padding-left: 0; }
  .view { grid-row: auto; min-height: 500px; margin-inline: calc(var(--pad) * -1); }
  .source--stage .mol { width: 140px; }
  .drydown { left: var(--pad); right: var(--pad); }
}

/* ---------- Predict ---------- */
.predict { padding-block: 120px; padding-block: var(--section); border-top: 1px solid var(--line); }
.predict__body {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px 72px; align-items: start;
}
.anatomy { margin: 0; }
.anatomy__view { position: relative; height: clamp(520px, 52vw, 680px); overflow: hidden; }
.plume-fallback--anatomy { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.anatomy__marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.anatomy__marks .arc { fill: none; stroke-width: 3; stroke-linecap: butt; }
.anatomy__marks .tick { stroke: var(--ink); stroke-width: 1; }
.anatomy__marks .guide { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.anatomy__note { position: absolute; z-index: 3; max-width: 190px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.anatomy__note b { display: block; font-weight: 500; color: var(--ink); }
.anatomy__note--rise { right: 0; top: 16%; text-align: right; }
.anatomy__note--density { left: 0; top: 30%; }
.anatomy__note--share { left: 0; bottom: 118px; }
.source--anatomy { left: 50%; bottom: 20px; transform: translateX(-50%); }
.source--anatomy .mol { width: 150px; }
.receptors { margin-top: 20px; }
.receptors__band { width: 100%; height: 56px; fill: var(--ink); }
.receptors__cap { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.anatomy__cap { margin-top: 20px; font-size: 14px; color: var(--ink-2); max-width: 64ch; }

.measures { margin: 0; display: grid; }
.measures div { padding: 20px 0; border-top: 1px solid var(--line-2); display: grid; gap: 4px; }
.measures div:last-child { border-bottom: 1px solid var(--line-2); }
.measures dt { font-weight: 500; font-size: 1.0625rem; }
.measures dd { margin: 0; color: var(--ink-2); max-width: 46ch; }
.measures__how { font-size: 14px; color: var(--ink) !important; }
.measures__how::before { content: ''; display: inline-block; width: 18px; height: 2px; margin-right: 8px; vertical-align: 0.3em; border-radius: 2px; background: var(--melon); }
.measures div:nth-child(2) .measures__how::before { background: var(--marine); }
.measures div:nth-child(3) .measures__how::before { background: var(--amber); }

@media (max-width: 980px) {
  .predict__body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .anatomy__view { height: 540px; margin-inline: calc(var(--pad) * -1); }
  .anatomy__note { max-width: 150px; font-size: 12.5px; }
  .anatomy__note--rise { right: var(--pad); top: 3%; }
  .anatomy__note--density { left: var(--pad); top: 20%; }
  .anatomy__note--share { left: var(--pad); bottom: 112px; }
}

/* ---------- Make ---------- */
.make { padding-block: 120px; padding-block: var(--section); border-top: 1px solid var(--line); }
.tree { margin-top: clamp(40px, 5vw, 72px); }
.tree__target { display: grid; justify-items: center; }
.tree__plume { position: relative; width: min(420px, 100%); height: 300px; }
.source--make { left: 50%; bottom: 0; transform: translateX(-50%); }
.source--make .mol { width: 160px; }
.tree__name { margin-top: 12px; font: 300 1.75rem/1 var(--display); text-align: center; }
.tree__name span { display: block; margin-top: 8px; font: 400 12.5px/1.3 var(--mono); color: var(--ink-2); }
.tree__branches {
  position: relative;
  margin-top: 40px; padding-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 96px);
}
.tree__branches::before {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 48px;
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 14px 14px 0 0;
}
.tree__branches::after { content: ''; position: absolute; top: -40px; left: 50%; height: 40px; border-left: 1px solid var(--line-2); }
.branch { margin: 0; display: grid; align-content: start; gap: 10px; justify-items: center; text-align: center; }
.branch h3 { font: 300 1.6rem/1.1 var(--display); }
.branch__lede { color: var(--ink-2); max-width: 40ch; font-size: 15px; }
.branch figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.branch figcaption .tag { margin-right: 6px; }
.path { list-style: none; margin: 16px 0 0; padding: 0; display: grid; justify-items: center; width: 100%; }
.path__edge {
  position: relative; width: 100%; max-width: 360px;
  display: grid; justify-items: center; gap: 0;
  padding: 18px 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); text-wrap: balance;
}
.path__edge::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--line-2); }
.path__edge::after {
  content: ''; position: absolute; left: calc(50% - 4px); top: 1px; width: 8px; height: 8px;
  border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); transform: rotate(45deg);
}
.path__step, .path__text { position: relative; background: var(--ground); }
.path__step { font: 500 11px/1 var(--mono); color: var(--ink); letter-spacing: 0.02em; padding: 12px 8px 5px; }
.path__text { padding: 2px 8px 4px; }
.path__node { display: grid; justify-items: center; gap: 4px; padding: 6px 12px; background: var(--ground); }
.path__node--pair { grid-auto-flow: column; align-items: end; gap: 18px; }
.chem { display: grid; justify-items: center; gap: 4px; }
.chem .mol { width: auto; max-height: 90px; }
.chem__name { font-weight: 500; font-size: 15px; color: var(--ink); }
.chem__meta { font: 400 12px/1.3 var(--mono); color: var(--ink-2); }
.chem__plus { align-self: center; margin-bottom: 36px; }
.chem__plus svg { width: 12px; height: 12px; stroke: var(--ink-2); stroke-width: 1.4; }
.branch--bio .path__node { padding: 8px 14px; }
.branch--bio .path__node .chem__name { position: relative; }
.branch--bio .path__node .chem__name::before {
  content: ''; position: absolute; left: -16px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--green);
}

@media (max-width: 860px) {
  .tree__branches { grid-template-columns: 1fr; gap: 72px; padding-top: 16px; }
  .tree__branches::before { display: none; }
  .tree__branches::after { top: -40px; height: 48px; }
  .path__node--pair { gap: 10px; }
  .chem .mol { max-height: 76px; }
}

/* ---------- Agents ---------- */
.agents { padding-block: 120px; padding-block: var(--section); border-top: 1px solid var(--line); }
.run {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 40px 56px; align-items: start;
}
.run__brief { font-size: 15px; color: var(--ink-2); padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.run__brief .tag { margin-left: 4px; }
.run__steps { list-style: none; margin: 0 0 20px; padding: 0; }
.run__steps li {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line);
  transition: color 0.3s, opacity 0.3s;
}
.run__name { font-weight: 500; font-size: 15px; }
.run__what { grid-column: 1; font-size: 13.5px; color: var(--ink-2); }
.run__n { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 400 1.9rem/1 var(--display); font-variant-numeric: tabular-nums lining-nums; min-width: 2ch; text-align: right; }
.run__steps li[data-state="pending"] { opacity: 0.38; }
.run__steps li[data-state="active"] .run__name { color: var(--marine); }
.run__steps li[data-state="active"] .run__n { color: var(--marine); }

.screen { position: relative; }
.screen__grid {
  position: relative; z-index: 2;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.cand {
  position: relative; height: 170px; padding: 8px 10px 10px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: background-color 0.4s var(--ease);
}
.cand__code { font: 500 11.5px/1.2 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.cand__why { font-size: 12px; line-height: 1.3; color: var(--ink-2); min-height: 1.3em; }
.cand.is-pending .cand__why, .cand:not(.is-out):not(.is-chosen):not(.is-alt) .cand__why { visibility: hidden; }
.cand.is-pending .cand__code { color: var(--ink-3); }
.cand.is-out .cand__code { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.cand.is-chosen { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cand.is-chosen .cand__why { color: var(--ink); font-weight: 500; }
.cand.is-alt .cand__why { color: var(--ink); }

.jobs { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 16px 56px; }
.jobs h3 { font: 300 1.6rem/1.15 var(--display); }
.jobs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.jobs li { padding: 14px 0; border-top: 1px solid var(--line-2); color: var(--ink); }

@media (max-width: 980px) {
  .run, .jobs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .screen__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cand { height: 128px; padding: 6px 6px 8px; }
  .cand__code { font-size: 11px; }
  .cand__why { font-size: 11px; }
  .jobs ul { grid-template-columns: 1fr; }
}

/* ---------- Who ---------- */
.who { padding-block: 120px; padding-block: var(--section); border-top: 1px solid var(--line); }
.doors { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; }
.doors li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.3fr) 190px; gap: 8px 32px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--line-2);
}
.doors li:last-child { border-bottom: 1px solid var(--line-2); }
.doors__wisp { width: 30px; height: 48px; }
.doors__wisp path { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; }
.doors__wisp path + path { opacity: 0.5; }
.doors h3 { font: 300 1.6rem/1.15 var(--display); }
.doors p { color: var(--ink-2); max-width: 56ch; }
.doors a { justify-self: end; font-weight: 500; font-size: 15px; white-space: nowrap; text-decoration-color: var(--line-2); }
.doors a:hover { text-decoration-color: var(--c); }
@media (max-width: 900px) {
  .doors li { grid-template-columns: 36px 1fr; align-items: start; }
  .doors__wisp { grid-row: 1 / span 3; }
  .doors p, .doors a { grid-column: 2; justify-self: start; }
}

/* ---------- Talk + contact ---------- */
.talk { padding-block: 120px; padding-block: var(--section); border-top: 1px solid var(--line); }
.talk__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(40px, 7vw, 112px); align-items: start; }
.talk__copy > p { margin-top: 24px; color: var(--ink-2); max-width: 54ch; }
.talk__who { margin-top: 40px; display: grid; gap: 28px; }
.talk__who > div { padding-top: 20px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; justify-items: start; }
.talk__who p { color: var(--ink-2); max-width: 52ch; }

.contact { scroll-margin-top: 88px; padding: 32px; padding: clamp(24px, 3vw, 40px); background: #fbfcfd; border-radius: 18px; box-shadow: 0 1px 2px rgba(11, 13, 16, 0.06), 0 22px 44px -28px rgba(11, 13, 16, 0.22); }
.contact__title { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: none; }
.contact__lede { margin-top: 8px; color: var(--ink-2); }
.contact form { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; padding: 10px 0; font: 300 16px/1.4 var(--text);
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 104px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8l4-3.5' fill='none' stroke='%230b0d10' stroke-width='1.3'/%3E%3C/svg%3E") right 2px center / 12px no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--marine); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.contact form > .btn { grid-column: 1 / -1; justify-self: start; min-width: 140px; }
[data-form-status] { grid-column: 1 / -1; margin: 0; font-size: 14px; min-height: 1.4em; color: var(--ink-2); }
[data-form-status][data-tone="error"] { color: var(--error); }
[data-form-status][data-tone="success"] { color: var(--ok); font-weight: 500; }
.contact form.is-sent .btn { background: var(--ok); border-color: var(--ok); }

@media (max-width: 900px) {
  .talk__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .contact form { grid-template-columns: 1fr; }
  .contact { border-radius: 14px; }
}

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line-2); padding-block: 40px 48px; }
.foot__grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px 40px; align-items: center; }
.foot__line { color: var(--ink-2); font-size: 15px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.foot__nav a { color: var(--ink-2); text-decoration: none; }
.foot__nav a:hover { color: var(--ink); text-decoration: underline; }
.foot__legal { font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) {
  .foot__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
