/* SebGrosjean.com — site styles
   Brand tokens from ../Brand.md. Inter is self-hosted (no Google Fonts call).

   Two devices carry the brand through the page:
   1. Heavy + light type in headlines, taken from the logotype (SEB 900 + GROSJEAN 400).
   2. Two overlapping circles, teal and gold: the two worlds, and the seed where they meet. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-wght-normal.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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --teal: #1A8A8A;
  --teal-hover: #157070;
  --teal-bright: #35B5B5;
  --teal-subtle: rgba(26, 138, 138, 0.10);
  --gold: #D4AF37;
  --gold-hover: #E0BF4F;
  --ink: #0A1F2E;
  --ink-2: #0D3B4F;
  --muted: #5F6B76;
  --muted-2: #9CA3AF;
  --line-dark: #1E3344;
  --line: #E8E0CC;
  --bg: #FFFFFF;
  --cream: #F5F0E1;
  --cream-2: #FBF8EF;

  --on-dark: #E7EDF0;
  --on-dark-muted: #A9B6BF;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "calt", "ss03", "cv11";
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--ink); font-weight: 700;
  padding: .75rem 1rem; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-hover);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 2.7px, currentColor 3.2px);
  flex: none;
}
.on-dark .eyebrow { color: var(--gold); }

.h-display {
  font-size: clamp(3.25rem, 7.4vw, 6.25rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.h-display span { display: block; }

.h2 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.035em;
}
/* The light half of a headline. Same idea as the logotype. */
.lt { font-weight: 300; letter-spacing: -.04em; }
.h2 .lt { display: block; }

.h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
}
.on-dark .lead { color: var(--on-dark-muted); }

.gold { color: var(--gold); }
.teal { color: var(--teal); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 56px;
  padding: 0 1.75rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .25s var(--ease), box-shadow .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 14px 34px -14px rgba(212, 175, 55, .6); }
.btn--gold:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(212, 175, 55, .65); }

.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 16px 34px -16px rgba(10, 31, 46, .7); }
.btn--ink:hover { background: var(--ink-2); transform: translateY(-2px); }

.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-hover); transform: translateY(-2px); }

.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .05); }

.btn--sm { min-height: 42px; padding: 0 1.15rem; font-size: .9375rem; box-shadow: none; }
.btn--lg { min-height: 64px; padding: 0 2.25rem; font-size: 1.125rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 31, 46, .86);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #fff;
}
.site-header .bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 22px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn):not(.lang) {
  position: relative;
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .76);
  text-decoration: none;
  padding-block: .5rem;
  transition: color .2s ease;
}
.nav a:not(.btn):not(.lang)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .15rem;
  height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:not(.btn):not(.lang):hover { color: #fff; }
.nav a:not(.btn):not(.lang):hover::after { transform: scaleX(1); }

.nav a.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 44px;
  padding: 0 .7rem;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.nav a.lang:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

@media (max-width: 880px) {
  .nav { gap: .6rem; }
  .nav a:not(.btn):not(.lang) { display: none; }
}
@media (max-width: 380px) {
  .brand img { height: 18px; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(5rem, 11vw, 9rem); position: relative; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .h2, .section--dark .h3 { color: #fff; }
.section--dark .lt { color: rgba(255, 255, 255, .78); }

.section-head { max-width: 860px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1.5rem; max-width: 40rem; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(50% 60% at 80% 34%, rgba(26, 138, 138, .34), transparent 70%),
    radial-gradient(34% 40% at 98% 70%, rgba(212, 175, 55, .10), transparent 70%),
    radial-gradient(40% 40% at 6% 100%, rgba(13, 59, 79, .9), transparent 70%),
    var(--ink);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: stretch;
  gap: 1rem;
  min-height: min(calc(100svh - var(--header-h)), 900px);
}
.hero__copy {
  align-self: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  z-index: 2;
}
.hero__copy .eyebrow { margin-bottom: 1.75rem; }
.hero__copy .lead { margin-top: 2rem; max-width: 33ch; color: rgba(255, 255, 255, .8); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.5rem; }
.hero__ctas[data-center] { justify-content: center; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.75rem;
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9375rem;
  line-height: 1.35;
  color: var(--on-dark-muted);
}
.hero__proof li { display: grid; gap: .3rem; }
.hero__proof strong {
  display: block;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* No z-index here on purpose: the portrait blends ("lighten") straight into the
   hero background, so the photo's own dark backdrop disappears. */
.hero__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero__media picture { width: 100%; }
.hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 99%), linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 99%), linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

/* Desktop: the portrait fills the hero height and is anchored to its bottom
   edge. The subject sits at 62% of the photo's width, so the photo is shifted
   to bring him to the centre of the column and of the ripples. */
@media (min-width: 901px) {
  .hero__proof { max-width: 33rem; }
  .hero__media picture { position: absolute; inset: 0; }
  .hero__media img {
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 92%;
    width: auto;
    max-width: none;
    margin: 0;
    transform: translateX(-58%);
    /* Bottom, sides and top-left corner fade out, so no edge of the photo shows. */
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 98%), linear-gradient(to right, transparent 0%, #000 12%, #000 92%, transparent 100%), linear-gradient(135deg, transparent 4%, #000 26%);
    mask-image: linear-gradient(to bottom, #000 80%, transparent 98%), linear-gradient(to right, transparent 0%, #000 12%, #000 92%, transparent 100%), linear-gradient(135deg, transparent 4%, #000 26%);
  }
}

/* Two ripple sources, one teal and one gold, crossing behind the portrait. */
.waves {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(220%, 1300px);
  max-width: none;
  aspect-ratio: 1.2;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.waves circle { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.waves__a { color: var(--teal-bright); }
.waves__b { color: var(--gold); }
.waves__a circle, .waves__b circle { stroke: currentColor; }
.waves g { transform-box: fill-box; transform-origin: center; animation: breathe 14s ease-in-out infinite; }
.waves__b { animation-delay: -7s !important; }
.waves circle:nth-child(1) { opacity: .5; }
.waves circle:nth-child(2) { opacity: .38; }
.waves circle:nth-child(3) { opacity: .28; }
.waves circle:nth-child(4) { opacity: .2; }
.waves circle:nth-child(5) { opacity: .13; }
.waves circle:nth-child(6) { opacity: .08; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__copy { padding-bottom: 1.5rem; }
  .hero__copy .lead { max-width: 36ch; }
  .hero__media { margin-inline: calc(var(--gutter) * -1); }
  .hero__media img { max-width: 440px; }
  .waves { top: 40%; left: 56%; width: 230%; }
  .hero__proof { gap: 1.25rem 2rem; margin-top: 2.5rem; }
  .hero__proof strong { font-size: 1.75rem; }
}

/* ---------- Why now (statement) ---------- */

.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.why__copy { font-size: clamp(1.1875rem, 1.7vw, 1.4375rem); line-height: 1.5; color: var(--muted); padding-top: .35rem; }
.why__copy strong { color: var(--ink); font-weight: 600; }
.why__copy .punch {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid #DAD0B6;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--ink);
}
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* ---------- Approach (two worlds) ---------- */

.venn {
  --d: clamp(440px, 46vw, 600px);
  position: relative;
  display: flex;
  justify-content: center;
}
.venn__c {
  position: relative;
  width: var(--d);
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
}
.venn__c--a {
  background: radial-gradient(circle at 35% 35%, rgba(26, 138, 138, .13), rgba(26, 138, 138, .06));
  border: 1.5px solid rgba(26, 138, 138, .6);
  padding-left: calc(var(--d) * .14);
}
.venn__c--b {
  background: radial-gradient(circle at 65% 35%, rgba(212, 175, 55, .2), rgba(212, 175, 55, .09));
  border: 1.5px solid rgba(212, 175, 55, .85);
  margin-left: calc(var(--d) * -.22);
  justify-content: flex-end;
  padding-right: calc(var(--d) * .14);
  text-align: right;
}
.venn__in { width: calc(var(--d) * .5); }
.venn__tag {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.venn__c--a .venn__tag { color: var(--teal-hover); }
.venn__c--b .venn__tag { color: #8A6D12; }
.venn h3 { font-size: clamp(1.625rem, 2.7vw, 2.25rem); font-weight: 850; line-height: 1.05; letter-spacing: -.03em; }
.venn__in > p { color: var(--muted); margin: .75rem 0 0; }
.venn ul { margin-top: 1.5rem; display: grid; gap: .55rem; font-size: 1.125rem; font-weight: 600; }

.venn__seed {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.venn__seed img { width: 100%; height: 100%; position: relative; z-index: 1; }
.venn__seed::before, .venn__seed::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(26, 138, 138, .45);
  animation: pulse 4.5s ease-out infinite;
}
.venn__seed::after { animation-delay: -2.25s; }
@keyframes pulse {
  0% { transform: scale(.75); opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}

.venn__cap {
  max-width: 34rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  text-align: center;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
}
.venn__cap strong {
  display: block;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-hover);
  margin-bottom: .6rem;
}

@media (max-width: 940px) {
  .venn { --d: min(calc(100vw - 2 * var(--gutter)), 420px); flex-direction: column; align-items: center; }
  .venn__c, .venn__c--b { justify-content: center; text-align: center; padding: 0; }
  .venn__c--a { padding-bottom: calc(var(--d) * .1); }
  .venn__c--b { margin-left: 0; margin-top: calc(var(--d) * -.2); padding-top: calc(var(--d) * .1); }
  .venn__in { width: calc(var(--d) * .68); }
  .venn__in > p { font-size: 1rem; margin-top: .5rem; }
  .venn ul { margin-top: 1rem; gap: .35rem; font-size: 1.0625rem; }
  .venn__tag { margin-bottom: .5rem; }
  .venn__seed { width: 48px; height: 48px; }
}

/* ---------- Promise (ledger) ---------- */

.ledger { border-bottom: 1px solid #DAD0B6; }
.ledger li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: baseline;
  gap: 0 1.5rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem) 0;
  border-top: 1px solid #DAD0B6;
  transition: padding-left .4s var(--ease);
}
.ledger__n { font-size: 1rem; font-weight: 700; letter-spacing: .06em; color: var(--teal-hover); font-variant-numeric: tabular-nums; }
.ledger h3 {
  font-size: clamp(1.625rem, 3.2vw, 2.5rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.03em;
  transition: color .3s ease;
}
.ledger p { font-size: 1.125rem; line-height: 1.5; color: var(--muted); max-width: 34rem; }
@media (hover: hover) {
  .ledger li:hover { padding-left: .75rem; }
  .ledger li:hover h3 { color: var(--teal-hover); }
}
@media (max-width: 760px) {
  .ledger li { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .ledger p { grid-column: 2; margin-top: .5rem; font-size: 1.0625rem; }
}

/* ---------- Story ---------- */

.story {
  background:
    radial-gradient(45% 50% at 100% 0%, rgba(26, 138, 138, .22), transparent 70%),
    radial-gradient(40% 45% at 0% 100%, rgba(13, 59, 79, .8), transparent 70%),
    var(--ink);
  overflow: hidden;
}
.h-story {
  font-size: clamp(2.5rem, 7.4vw, 6.25rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.04em;
  color: #fff;
  max-width: 15ch;
}
.h-story > span { display: block; }
.h-story .lt { color: rgba(255, 255, 255, .62); }
.h-story s { position: relative; text-decoration: none; white-space: nowrap; }
.h-story s::after {
  content: "";
  position: absolute; left: -.06em; right: -.06em; top: 54%;
  height: .075em; min-height: 3px;
  background: var(--gold);
  border-radius: 999px;
  transform-origin: left;
}

.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: 2.25rem;
}
.track::before, .track::after {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px;
}
.track::before { background: var(--line-dark); }
.track::after { background: linear-gradient(to right, var(--teal), var(--teal-bright) 55%, var(--gold)); transform-origin: left; }
.track li { position: relative; }
.track li::before {
  content: ""; position: absolute; left: 0; top: calc(-2.25rem + 0px);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--teal-bright);
  z-index: 1;
}
.track li:last-child::before { background: var(--gold); border-color: var(--gold); }
.track .when {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #fff;
}
.track li:last-child .when { color: var(--gold); }
.track .what { display: block; margin-top: .4rem; color: var(--on-dark-muted); font-size: 1rem; line-height: 1.45; }

.story__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.story__copy { font-size: 1.1875rem; line-height: 1.65; color: var(--on-dark); max-width: 36rem; }
.story__copy .big {
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #fff;
}
.story__pull {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  margin: 0;
  padding-left: clamp(1.5rem, 3vw, 2.25rem);
  border-left: 2px solid var(--gold);
}
.story__pull p {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: rgba(255, 255, 255, .8);
}
.story__pull p strong { font-weight: 850; color: #fff; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(4rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 2.25rem 1.5rem 0 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
.stat b {
  display: block;
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: .75rem; color: var(--on-dark-muted); font-size: 1rem; line-height: 1.45; }

@media (max-width: 960px) {
  .story__body { grid-template-columns: 1fr; }
  .story__pull { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding-bottom: 2.25rem; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); padding-bottom: 0; }
}
@media (max-width: 700px) {
  .track { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-left: 2.25rem; }
  .track::before, .track::after { left: 7px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .track::after { background: linear-gradient(to bottom, var(--teal), var(--teal-bright) 55%, var(--gold)); transform-origin: top; }
  .track li { padding-bottom: 1.75rem; }
  .track li:last-child { padding-bottom: 0; }
  .track li::before { left: -2.25rem; top: .4rem; }
}

/* ---------- Beliefs ---------- */

.beliefs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 6vw, 6rem);
}
.belief {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.belief__n {
  font-size: 3.25rem;
  font-weight: 200;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.belief .h3 { font-size: clamp(1.3125rem, 2vw, 1.625rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: .6rem; }
.belief p { color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 820px) {
  .beliefs { grid-template-columns: 1fr; }
  .belief { grid-template-columns: 3.75rem 1fr; padding: 1.75rem 0; }
  .belief__n { font-size: 2.5rem; }
}

/* ---------- Fit ---------- */

.fit {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(10, 31, 46, .35);
}
.fit__col { padding: clamp(1.75rem, 4vw, 3.25rem); }
.fit__col--no { background: var(--cream-2); border-left: 1px solid var(--line); }
.fit__col .h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 850; letter-spacing: -.025em; margin-bottom: 1.5rem; }
.fit__col li { display: flex; gap: .9rem; padding: .7rem 0; line-height: 1.45; font-size: 1.125rem; }
.fit__col li svg { flex: none; width: 26px; height: 26px; margin-top: 1px; }
.fit__col--yes li { font-weight: 500; }
.fit__col--yes li svg { color: var(--teal); }
.fit__col--no .h3 { color: var(--muted); }
.fit__col--no li { color: var(--muted); }
.fit__col--no li svg { color: var(--muted-2); }
@media (max-width: 860px) {
  .fit { grid-template-columns: 1fr; }
  .fit__col--no { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Tribe ---------- */

.tribe {
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 90% at 50% 120%, rgba(10, 31, 46, .55), transparent 70%),
    linear-gradient(160deg, #1A8A8A, #126565 70%);
}
.tribe::before, .tribe::after {
  content: ""; position: absolute; top: 50%; z-index: -1;
  width: min(120vw, 1100px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  transform: translate(-50%, -50%);
}
.tribe::before { left: 34%; }
.tribe::after { left: 66%; border-color: rgba(212, 175, 55, .4); }
.tribe img { width: 52px; height: 52px; margin: 0 auto 2.25rem; }
.tribe blockquote { margin: 0 auto; max-width: 1040px; }
.tribe blockquote p {
  font-size: clamp(1.875rem, 4.6vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
  color: rgba(255, 255, 255, .86);
}
.tribe blockquote strong { font-weight: 850; color: #fff; }
.tribe figcaption { margin-top: 2rem; color: rgba(255, 255, 255, .86); font-size: 1.125rem; }

/* ---------- Apply ---------- */

.apply {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(26, 138, 138, .26), transparent 70%),
    linear-gradient(160deg, var(--ink-2), var(--ink) 60%);
}
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.step { position: relative; padding: 2.5rem 1.5rem 0 0; border-top: 2px solid var(--line-dark); }
.step::before {
  content: ""; position: absolute; left: 0; top: -9px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink-2); border: 2px solid var(--teal-bright);
}
.step:first-child { border-top-color: var(--gold); }
.step:first-child::before { background: var(--gold); border-color: var(--gold); }
.step__n { font-size: .875rem; font-weight: 800; letter-spacing: .14em; color: var(--gold); }
.step .h3 { margin: .5rem 0 .6rem; font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.step p { color: var(--on-dark-muted); font-size: 1.0625rem; line-height: 1.5; max-width: 22rem; }

.apply-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 2.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 32px;
  background: linear-gradient(135deg, #E2C04F, var(--gold) 55%, #C39C26);
  color: var(--ink);
  box-shadow: 0 50px 90px -50px rgba(212, 175, 55, .55);
}
.apply-cta::before, .apply-cta::after {
  content: ""; position: absolute; z-index: -1; right: -6%; top: 50%;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(10, 31, 46, .16);
  transform: translateY(-50%);
}
.apply-cta::after { right: 10%; }
.apply-cta h3 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.apply-cta p { margin-top: .9rem; font-size: 1.1875rem; color: rgba(10, 31, 46, .82); }

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 0; } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .apply-cta .btn { width: 100%; }
  .apply-cta { border-radius: 24px; }
  .apply-cta::before, .apply-cta::after { display: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  border-top: 1px solid var(--line-dark);
  padding-block: 3.5rem 3rem;
  font-size: .9375rem;
}
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer .brand img { height: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.site-footer a { text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.site-footer .fine { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); color: #8A97A1; font-size: .875rem; }

/* ---------- Legal pages ---------- */

.doc { padding-block: clamp(3.5rem, 8vw, 6rem); }
.doc .container { max-width: calc(760px + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; margin-bottom: .75rem; }
.doc .updated { color: var(--muted); margin-bottom: 3rem; }
.doc h2 { font-size: 1.375rem; font-weight: 800; margin: 2.75rem 0 1rem; letter-spacing: -.01em; }
.doc dl { display: grid; grid-template-columns: 13.5rem 1fr; gap: .6rem 1.5rem; margin: 0; }
.doc dt { font-weight: 600; color: var(--muted); }
.doc dd { margin: 0; }
.doc a { color: var(--teal-hover); text-underline-offset: 3px; }
.doc ul.bullets { list-style: disc; padding-left: 1.25rem; margin-bottom: 1.1em; }
.doc ul.bullets li { margin-bottom: .4rem; }
.doc .lang-note { background: var(--cream); border-radius: 14px; padding: 1rem 1.25rem; font-size: 1rem; color: var(--ink); }

@media (max-width: 560px) {
  .doc dl { grid-template-columns: 1fr; gap: .15rem; }
  .doc dd { margin-bottom: .8rem; }
}

/* ---------- 404 ---------- */

.notfound { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; text-align: center; }
.notfound .h-display { margin-bottom: 1.5rem; }
.notfound .lead { margin-bottom: 2rem; }

/* ---------- Motion (only when JS is on) ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.js .ledger li.reveal:nth-child(even), .js .belief.reveal:nth-child(even) { transition-delay: .08s; }
.js .step.reveal:nth-child(2) { transition-delay: .08s; }
.js .step.reveal:nth-child(3) { transition-delay: .16s; }
.js .step.reveal:nth-child(4) { transition-delay: .24s; }

/* The verdict gets struck out, and the timeline fills, once they scroll into view. */
.js .reveal .h-story s::after { transform: scaleX(0); transition: transform .8s var(--ease) .55s; }
.js .reveal.is-in .h-story s::after { transform: scaleX(1); }
.js .track.reveal::after { transform: scaleX(0); transition: transform 1.8s var(--ease) .3s; }
.js .track.reveal.is-in::after { transform: scaleX(1); }
@media (max-width: 700px) {
  .js .track.reveal::after { transform: scaleY(0); }
  .js .track.reveal.is-in::after { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal .h-story s::after, .js .track.reveal::after { transform: none; }
  .venn__seed::before, .venn__seed::after { opacity: .5; }
}

/* French headline words ("ANCESTRALE.") are longer: scale down on small phones. */
@media (max-width: 480px) {
  :lang(fr) .h-display { font-size: 11.4vw; }
}
