/* ---------- font: self-hosted Host Grotesk (OFL), one variable file per script range ---------- */
/* every page preloads the latin file: <link rel="preload" href="/assets/fonts/host-grotesk-latin.woff2" as="font" type="font/woff2" crossorigin> */
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/host-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/host-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  --paper: #ede8df;
  --ink: #2a2520;
  --graphite: #6b6259; /* 4.9:1 on paper, the floor for body-size text */
  --rule: #d6cec1;

  --font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  --col: min(calc(var(--max) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter)));

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* set by main.js: film grain texture (light specks on transparent) */
  --grain: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- marker ink (redactions + hero stroke) ---------- */
/* inline redaction: the words underneath are placeholders, the real ones never ship */
.r {
  position: relative;
  color: transparent;
  user-select: none;
  white-space: nowrap;
  margin-right: 0.18em;
}

/* one hand-drawn marker swipe; main.js adds a live grain canvas inside */
.ink {
  position: absolute;
  inset: 0.06em -0.16em -0.02em -0.1em;
  overflow: hidden;
  border-radius: 0.12em 0.3em 0.18em 0.35em;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.26), transparent 4%, transparent 96%, rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(0deg, rgba(237, 232, 223, 0.04) 0 1px, transparent 1px 4px, rgba(0, 0, 0, 0.06) 4px 5px, transparent 5px 7px),
    var(--ink);
  transform: rotate(var(--rot, -0.6deg)) skewX(-4deg);
  filter: url(#marker-sm);
  pointer-events: none;
}
.ink canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* the hero word: a bigger swipe with rougher edges, wiped off on scroll */
.reveal { position: relative; display: inline-block; }
.ink--stroke {
  inset: 0.3em -0.12em 0.06em -0.08em;
  border-radius: 0.06em 0.2em 0.08em 0.24em / 0.12em 0.08em 0.16em 0.1em;
  filter: url(#marker);
  transform: rotate(-2.4deg);
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  transition: transform 160ms var(--ease-out), opacity 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--icon { width: 44px; padding: 0; justify-content: center; }
@media (hover: hover) and (pointer: fine) { .btn:hover { opacity: 0.88; } }

.textlink {
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .textlink:hover { text-decoration-color: var(--ink); } }

/* ---------- nav: EE · branches in a pill · contact ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  height: 64px;
  padding: 0 var(--edge);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 15px;
}
.nav__mark { justify-self: start; font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }
.nav__end { justify-self: end; display: flex; align-items: baseline; gap: 8px; }
/* the other language, set before Contact: FR / Contact */
.nav__lang {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--graphite);
  transition: color 160ms ease;
}
.nav__lang::after { content: ""; position: absolute; inset: -14px -10px; } /* thumb-sized hit area */
.nav__sep { font-size: 15px; color: var(--graphite); }
.nav__cta { font-weight: 500; transition: opacity 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .nav__lang:hover { color: var(--ink); }
  .nav__cta:hover { opacity: 0.6; }
}

.pill {
  position: relative;
  display: flex;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.pill a {
  position: relative;
  z-index: 1;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--graphite);
  transition: color 260ms var(--ease-out);
}
.pill a.is-on { color: var(--paper); }
/* one soft highlight that glides to whatever you point at, or the section you're in */
.pill__glow {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0;
  transform: translateX(var(--gx, 0px));
  transition:
    transform 260ms var(--ease-out),
    width 260ms var(--ease-out),
    opacity 260ms var(--ease-out);
}
.pill.has-glow .pill__glow { opacity: 1; }
.pill.no-anim .pill__glow { transition: opacity 260ms var(--ease-out); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  width: var(--col);
  min-height: 100svh;
  margin: 0 auto;
  padding: 88px 0 40px;
}
/* grid items default to min-width: auto; the endless roll would otherwise widen the column */
.hero__copy { min-width: 0; }
.hero__title {
  margin: 0;
  font-size: clamp(52px, 6.8vw, 100px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.hero__lede {
  margin: 32px 0 0;
  max-width: 30ch;
  font-size: 20px;
  line-height: 1.4;
  color: var(--graphite);
}
.hero__lede strong { color: var(--ink); font-weight: 500; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: clamp(28px, 4.5vh, 40px); }

.badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--graphite);
  white-space: nowrap;
}
.badge strong { color: var(--ink); font-weight: 500; }

/* industries, rolling past forever; the list is duplicated in main.js for a seamless loop */
.industries {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(36px, 6vh, 56px);
  max-width: 600px;
}
.industries .badge { flex: none; }
.roll {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.roll__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  animation: roll var(--roll-duration, 90s) linear infinite;
}
.roll__track li { padding-right: 40px; }
@keyframes roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .roll__track { animation: none; }
}

/* the four branches, listed plainly; only SO keeps its secret */
.index { list-style: none; margin: 0; padding: 0; }
.index li { border-top: 1px solid var(--rule); }
.index li:last-child { border-bottom: 1px solid var(--rule); }
.index a {
  display: grid;
  grid-template-columns: 7.5em 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
}
.index__name { display: inline-block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.index__desc { color: var(--graphite); }
.index .badge { align-self: center; }
.index__name { transition: transform 200ms var(--ease-out); }
.index__desc { transition: color 200ms ease; }
.index a.is-lit .index__name { transform: translateX(4px); }
.index a.is-lit .index__desc { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .index a:hover .index__name { transform: translateX(4px); }
  .index a:hover .index__desc { color: var(--ink); }
}

/* ---------- loop: research → experiments → outcomes → research ---------- */
/* same two-column rhythm as the branch sections below */
.loop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(24px, 6vw, 96px);
  width: var(--col);
  margin: 0 auto;
  padding: clamp(56px, 10vh, 104px) 0;
}
.loop__title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.loop__figure {
  position: relative;
  height: 76px;
}
.loop__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop__track { fill: none; stroke: var(--rule); stroke-width: 1.25; }
.loop__run { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; }
.loop__head { fill: var(--ink); }
.loop__label {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--graphite);
  white-space: nowrap;
  transition: color 400ms ease;
}
.loop__label.is-active { color: var(--ink); }

/* ---------- branches (all four share one layout) ---------- */
.branch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 6vw, 96px);
  width: var(--col);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 112px) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 40px;
}
.branch__name {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.branch__pitch {
  margin: 0;
  max-width: 38ch;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.list { list-style: none; margin: 36px 0 32px; padding: 0; }
.list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
}
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list a { transition: color 160ms ease; }
.list a:hover { color: var(--graphite); }
.list--terms { margin-top: -8px; }
.list__meta { color: var(--graphite); font-size: 15px; white-space: nowrap; }
.list__main { flex: 1; }
.list .badge { align-self: center; }

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  width: var(--col);
  margin: 0 auto;
  padding: clamp(120px, 20vh, 220px) 0;
  border-top: 1px solid var(--rule);
}
.contact__title {
  margin: 0 0 40px;
  max-width: 14ch;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.note {
  display: grid;
  grid-template-columns: 96px 1fr;
  column-gap: 24px;
  align-items: start;
  margin: 0;
}
/* bridge first, small and centered over the block; then the photo beside the quote */
.note > div { display: contents; }
.note__photo { grid-row: 2 / span 2; }
.note__quote { grid-column: 2; grid-row: 2; }
.note__by { grid-column: 2; grid-row: 3; }
.note__photo {
  display: block;
  width: 96px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--rule);
}
.note__quote {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.note__quote strong { font-weight: 600; }
.note__by {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-weight: 500;
}
.bridge {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  width: 100%;
  max-width: 260px;
  margin-bottom: 28px;
  padding: 22px 0;
}
.bridge svg { display: block; width: 100%; height: auto; overflow: visible; }
.bridge__arch, .bridge__deck { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bridge__hangers line { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bridge__dot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.bridge__dot--top { fill: var(--ink); }
.bridge__label { position: absolute; font-size: 13px; color: var(--graphite); white-space: nowrap; }
.bridge__label--theory { left: 0; bottom: 0; }
.bridge__label--practice { right: 0; bottom: 0; }
.bridge__label--top { left: 50%; top: 0; transform: translateX(-50%); color: var(--ink); font-weight: 500; }
/* a test tube beside "Expériences": the lab sense of the word, not lived experience */
.bridge .bridge__tube { position: absolute; right: calc(100% + 6px); top: 50%; width: 11px; height: 16px; overflow: visible; transform: translateY(-55%) rotate(14deg); }
.bridge__tube-glass { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.bridge__tube-liquid { fill: var(--ink); }

/* ---------- footer ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 32px;
  width: var(--col);
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--graphite);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { transition: color 160ms ease; }
.foot a:hover { color: var(--ink); }

/* "Live": a dot that breathes, for things that update on their own */
.badge--live { align-items: center; gap: 7px; color: var(--ink); }
.badge--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3f9a5c;
  box-shadow: 0 0 0 0 rgba(63, 154, 92, 0.45);
  animation: live 2.4s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(63, 154, 92, 0.45); }
  70%, 100% { box-shadow: 0 0 0 6px rgba(63, 154, 92, 0); }
}
@media (prefers-reduced-motion: reduce) { .badge--live::before { animation: none; } }

/* ---------- info pages (about, press, legal, 404): one column of prose under a title ---------- */
.page {
  width: var(--col);
  margin: 0 auto;
  padding: clamp(120px, 18vh, 176px) 0 clamp(72px, 12vh, 128px);
}
.page__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.page__lede {
  margin: 32px 0 0;
  max-width: 34ch;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--graphite);
}
.page__lede strong { color: var(--ink); font-weight: 500; }
.page__sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 6vw, 96px);
  margin-top: clamp(64px, 10vh, 104px);
  padding-top: clamp(32px, 5vh, 48px);
  border-top: 1px solid var(--rule);
}
.page__h2 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.copy { max-width: 62ch; }
.copy > :first-child { margin-top: 0; }
.copy p, .copy ul, .copy dl { margin: 0 0 18px; }
.copy h3 { margin: 32px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.copy ul { padding-left: 1.1em; }
.copy li { margin-bottom: 6px; }
.copy a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 160ms ease;
}
.copy a:not(.btn):hover { text-decoration-color: var(--ink); }
.copy .list { margin: 8px 0 24px; padding-left: 0; }
.copy .list a { text-decoration: none; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 18px; }
.facts dt { color: var(--graphite); }
.facts dd { margin: 0; }
/* a block meant to be copied as is: press boilerplate, citations */
.quotable {
  margin: 0 0 12px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere; /* long URLs in citations */
}
.quotable + .air-note, .page .note-small { font-size: 14px; color: var(--graphite); }
/* press: the logo in its two colourways, then its clear space drawn over the file itself */
.brand { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; margin: 0 0 36px; }
.brand figure { margin: 0; }
.brand__frame { position: relative; aspect-ratio: 1; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.brand__frame img { display: block; width: 100%; height: 100%; }
.brand__frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand__zone { fill: none; stroke: var(--graphite); stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.brand__box { fill: none; stroke: var(--rule); vector-effect: non-scaling-stroke; }
.brand__dim { fill: none; stroke: var(--graphite); vector-effect: non-scaling-stroke; }
.brand text { font: 500 26px var(--font); fill: var(--graphite); }
.brand figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin-top: 10px; font-size: 15px; }
.brand figcaption span { color: var(--graphite); font-size: 14px; font-variant-numeric: tabular-nums; }
.copy .brand__rules { align-self: center; margin: 0; font-size: 15px; }
.brand__rules dt { font-weight: 600; }
.brand__rules dd { margin: 2px 0 16px; color: var(--graphite); }
.brand__rules dd:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .page__sec { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .brand { gap: 24px 12px; }
  .brand__space, .brand__rules { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dd { margin-bottom: 10px; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pill a { padding: 5px 10px; }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 56px; min-height: 0; padding-top: calc(60px + 8vh); }
  .hero__lede { font-size: 18px; margin-top: 24px; }
  .hero__title { font-size: clamp(60px, 16.5vw, 96px); line-height: 0.92; }
  .index {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border-block: 1px solid var(--rule);
  }
  .index li, .index li:last-child { border: 0; background: var(--paper); }
  .index a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    height: 100%;
    padding: 20px 16px 22px 0;
  }
  .index li:nth-child(even) a { padding: 20px 0 22px 16px; }
  .index__desc { font-size: 15px; line-height: 1.35; }
  .index .badge { margin-top: 8px; align-self: flex-start; }
  .index__name { font-size: 20px; }

  .branch, .loop { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nav { font-size: 13.5px; }
  .pill { padding: 2px; }
  .pill a { padding: 5px 8px; }
  /* Contact on top, the other language tucked underneath */
  .nav__end { flex-direction: column-reverse; align-items: flex-end; gap: 1px; }
  .nav__sep { display: none; }
  .nav__lang { font-size: 11px; line-height: 1.2; }
  .nav__lang::after { inset: 0 -12px -12px; }
  .pill__glow { top: 2px; bottom: 2px; }
  .loop__label { font-size: 15px; }
  .loop__figure { height: 64px; }
  .note { grid-template-columns: 72px 1fr; column-gap: 16px; }
  .bridge { max-width: 240px; margin-bottom: 20px; }
  .contact { padding-bottom: 72px; }
  .note__photo { width: 72px; height: 90px; }
  .list li { flex-wrap: wrap; column-gap: 10px; row-gap: 4px; }
  .list li > :first-child, .list__main { flex-basis: 100%; }
  .list .badge { align-self: auto; }
}

@media (max-width: 370px) {
  .nav { font-size: 12.5px; column-gap: 6px; }
  .pill a { padding: 5px 6px; }
}
