/* ==========================================================================
   Divonis — landing styles
   Tokens follow the Figma "Divonis — Design Guidelines" frame:
   01 primitives → 02 semantic tokens → 06 type scale.
   Never reference a primitive directly in a rule — go through a semantic token.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Founders Grotesk";
  src: local("Founders Grotesk Light"), local("FoundersGrotesk-Light"),
       local("Test Founders Grotesk Light"), local("TestFoundersGrotesk-Light"),
       url("../assets/fonts/founders-grotesk-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Founders Grotesk";
  src: local("Founders Grotesk Medium"), local("FoundersGrotesk-Medium"),
       local("Test Founders Grotesk Medium"), local("TestFoundersGrotesk-Medium"),
       url("../assets/fonts/founders-grotesk-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TASA Orbiter";
  src: url("../assets/fonts/TASAOrbiter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TASA Orbiter";
  src: url("../assets/fonts/TASAOrbiter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sentient";
  src: url("../assets/fonts/Sentient-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* 01 — Color primitives (one warm neutral ramp) */
  --ink-900: #080808;
  --stone-700: #33312c;
  --stone-600: #66635e;
  --stone-500: #817d78;
  --stone-400: #a09c97;
  --stone-200: #c6c2bc;
  --bone-200: #e5e5e3;
  --bone-100: #f7f7f7;
  --base-white: #ffffff;
  --line-dark: #3b3b3b;   /* border/on-dark-strong variable in file */
  --line-bone: #c5c3c0;
  --line-soft: #cfcdc9;

  /* 02 — Semantic tokens */
  --surface-dark: var(--ink-900);
  --surface-subtle: var(--bone-200);
  --surface-inverse: var(--bone-100);
  --surface-media: var(--ink-900);

  --text-primary-on-dark: var(--bone-100);
  --text-secondary-on-dark: var(--stone-200);
  --text-tertiary-on-dark: var(--stone-400);
  --text-accent-on-dark: var(--stone-400);

  --text-primary-on-light: var(--ink-900);
  --text-secondary-on-light: var(--stone-700);
  --text-tertiary-on-light: var(--stone-600);
  --text-accent-on-light: var(--stone-500);

  --border-on-dark-strong: var(--line-dark);
  --border-on-light: var(--line-bone);
  --border-subtle: var(--line-soft);

  --action-primary-bg: var(--bone-100);
  --action-primary-fg: var(--ink-900);
  --action-secondary-bg: rgba(255, 255, 255, 0.1); /* keep the alpha: sits over the hero photo */
  --action-secondary-fg: var(--bone-100);

  /* Spacers */
  --spacer-1: 4px;
  --spacer-16: 16px;
  --spacer-32: 32px;
  --spacer-40: 40px;

  /* 05 — Typefaces */
  --font-display: "Founders Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "TASA Orbiter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Sentient", "Times New Roman", Georgia, serif;

  /* 06 — Type scale (size / line-height / tracking) */
  --display-xl-size: clamp(44px, 2.4vw + 26px, 76px);   /* 76 / 1.1 / -5% */
  --display-l-size: clamp(34px, 1.6vw + 22px, 54px);    /* 54 / 1.2 / -4% */
  --display-m-size: clamp(26px, 0.9vw + 20px, 36px);    /* 36 / 1.3 / -4% */
  --display-xs-size: clamp(20px, 0.4vw + 17px, 24px);   /* 24 / 1.3 / -2% */
  --body-l-size: 17px;                                   /* 17 / 1.4 */
  --body-s-size: 14px;                                   /* 14 / 1.3 */
  --label-s-size: 14px;                                  /* 14 / 1.3 / 500 */

  /* Layout */
  --container-max: 1920px;
  --gutter: var(--spacer-40);
  --section-pt: 68px;
  --section-pb: 124px;
  --section-gap: 124px;
  --header-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface-dark);
  color: var(--text-primary-on-light);
  font-family: var(--font-body);
  font-size: var(--body-l-size);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
blockquote, figure { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

/* ---------- Type styles ---------- */
.display-xl { font-family: var(--font-display); font-weight: 300; font-size: var(--display-xl-size); line-height: 1.1; letter-spacing: -0.05em; }
.display-l  { font-family: var(--font-display); font-weight: 300; font-size: var(--display-l-size);  line-height: 1.2; letter-spacing: -0.04em; }
.display-m  { font-family: var(--font-display); font-weight: 300; font-size: var(--display-m-size);  line-height: 1.3; letter-spacing: -0.04em; }
.display-xs { font-family: var(--font-display); font-weight: 300; font-size: var(--display-xs-size); line-height: 1.3; letter-spacing: -0.02em; }
.body-l  { font-family: var(--font-body); font-weight: 400; font-size: var(--body-l-size); line-height: 1.4; }
.body-s  { font-family: var(--font-body); font-weight: 400; font-size: var(--body-s-size); line-height: 1.3; }
.label-s { font-family: var(--font-body); font-weight: 500; font-size: var(--label-s-size); line-height: 1.3; }
.numeral { font-family: var(--font-serif); font-weight: 300; font-size: var(--display-l-size); line-height: 1.2; letter-spacing: -0.04em; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  display: flex;
  justify-content: center;
}
.section__inner {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-top: var(--section-pt);
  padding-bottom: var(--section-pb);
}
.section--dark  { background: var(--surface-dark); color: var(--text-primary-on-dark); }
.section--subtle { background: var(--surface-subtle); color: var(--text-primary-on-light); }
.section--inverse { background: var(--surface-inverse); color: var(--text-primary-on-light); }

/* Eyebrow: hairline + label, 58px tall block */
.eyebrow {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 58px;
  width: 100%;
}
.eyebrow::before {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: var(--border-on-light);
}
.eyebrow__label { color: var(--text-tertiary-on-light); white-space: nowrap; }
.section--dark .eyebrow::before { background: var(--border-on-dark-strong); }
.section--dark .eyebrow__label { color: var(--text-tertiary-on-dark); }

.hairline { height: 1px; width: 100%; background: var(--border-on-light); }
.section--dark .hairline { background: var(--border-on-dark-strong); }
.hairline--subtle { background: var(--border-subtle); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 13px var(--spacer-16) 12px;
  border-radius: 4px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--label-s-size);
  line-height: 1.3;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn__icon { width: 15px; height: 15px; flex: 0 0 15px; overflow: hidden; }
.btn__icon img { width: 100%; height: 100%; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.btn--primary { background: var(--action-primary-bg); color: var(--action-primary-fg); }
.btn--primary:hover { background: var(--base-white); }
.btn--secondary { background: var(--action-secondary-bg); color: var(--action-secondary-fg); }
.btn--secondary:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  height: var(--header-h);
  padding-block: 10px;
  color: var(--text-primary-on-dark);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacer-16);
  height: 100%;
}
.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: normal;
  letter-spacing: -0.5px;
  color: var(--text-primary-on-dark);
  white-space: nowrap;
}
.nav {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  height: 18px;
  font-size: var(--body-s-size);
  line-height: 1.3;
  white-space: nowrap;
  opacity: 1;
  transition: opacity .18s ease;
}
.nav__link:hover { opacity: .7; }
.nav__cta { display: none; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-right: -10px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 1400px);
  background: var(--surface-dark);
  color: var(--text-primary-on-dark);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  container-type: size;   /* lets object-position below use the hero's real size (cqw/cqh) */
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;   /* fallback for browsers without container units */
  /* One rule for every screen. Photo is 4096×2106 (ratio 1.945); the founder stands at
     62–94 % of its width, head at 68–81 % (centre 74.5 %). With cover the photo is 194.5cqh
     wide. Two candidate crops:
       A) the Figma framing — visible right edge at 188.7cqh (as in the 2560×1400 mock);
       B) head-centred — head centre (144.9cqh) aligned to the middle of the box.
     max() picks A whenever it keeps the head in view, B otherwise (portrait phones/tablets);
     min(0px, …) prevents a gap on ultra-wide boxes where cover scales by width. */
  object-position: min(0px, max(calc(100cqw - 188.7cqh), calc(50cqw - 144.9cqh))) 50%;
}
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 96px;
}
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: flex-start;
}
.hero__title { max-width: 1061px; color: var(--text-primary-on-dark); }
.hero__title .accent { color: var(--text-accent-on-light); }
.hero__lede { max-width: 656px; color: var(--text-primary-on-dark); }
.hero__cta { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero__actions { display: flex; gap: var(--spacer-16); flex-wrap: wrap; }
.hero__note { max-width: 363px; color: var(--text-tertiary-on-dark); }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-direction: column; gap: 60px; width: 100%; }
.section-head--tight { gap: 48px; }
.section-head__body { display: flex; flex-direction: column; gap: 36px; width: 100%; }
.section-head__lede { max-width: 805px; color: var(--text-tertiary-on-light); }
.section--dark .section-head__lede { color: var(--text-tertiary-on-dark); }

/* ---------- Why we exist ---------- */
.why__content {
  display: flex;
  flex-direction: column;
  gap: 33px;
  width: 100%;
  max-width: 1440px;
}
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.row-2__body { color: var(--text-secondary-on-light); }
.why__footnote { color: var(--text-tertiary-on-light); }

/* ---------- How we work ---------- */
.how__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 92px;
  align-items: start;
}
.how__lede { padding-top: 8px; color: var(--text-tertiary-on-dark); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 128px;
  width: 100%;
}
.step { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.step__head { display: flex; flex-direction: column; gap: 20px; }
.step__num { color: var(--text-accent-on-dark); }
.step__title { color: var(--text-primary-on-dark); }
.step__body { display: flex; flex-direction: column; gap: 20px; }
.step__text { color: var(--text-secondary-on-dark); }
.step__caption { color: var(--text-tertiary-on-dark); max-width: 400px; }

/* ---------- Who carries the bet ---------- */
.section--who .section__inner {
  padding-top: 100px;
  padding-bottom: 88px;
  gap: var(--section-gap);
}
.who__intro {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  text-align: center;
  width: 100%;
}
.who__intro .eyebrow__label { text-align: center; }
.who__intro-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
  max-width: 100%;
}
.who__intro-body .section-head__lede { max-width: 640px; }
.who__group { display: flex; flex-direction: column; gap: 60px; width: 100%; }

.before { display: flex; flex-direction: column; gap: 32px; width: 100%; }
.before__label { display: flex; flex-direction: column; gap: 10px; }
.before__label .label { color: var(--text-tertiary-on-light); }
.before__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-width: 0;
  background: var(--surface-subtle);
  padding: var(--spacer-40) 48px var(--spacer-40) var(--spacer-40);
}
.card__top { display: flex; flex-direction: column; gap: 48px; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card__logo { display: flex; align-items: center; height: 36px; }
.card__years { color: var(--text-tertiary-on-light); white-space: nowrap; }
.card__text { color: var(--text-primary-on-light); }
.logo-aura { width: 89px; height: 28.39px; }
.logo-figleaf { width: 36px; height: 36px; }
.logo-clario { position: relative; width: 84px; height: 22.45px; }
.logo-clario img { position: absolute; top: 0; left: 0; }
.logo-clario .logo-clario__word { width: 77.85px; height: 22.45px; }
.logo-clario .logo-clario__mark { left: 53.31px; width: 30.34px; height: 22.17px; }

.media-link {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  min-width: 0;
}
/* The thumbnail gives way first: it shrinks (keeping 143:80) so the label never wraps. */
.media-link__thumb {
  flex: 0 1 clamp(64px, 26%, 143px);   /* scales with the card, keeps 143:80 */
  min-width: 48px;
  aspect-ratio: 143 / 80;
  overflow: hidden;
  background: var(--surface-media);
}
.media-link__thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-link__label { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; color: var(--text-primary-on-light); white-space: nowrap; }
.media-link__arrow { width: 9px; height: 10px; flex: 0 0 9px; transition: transform .18s ease; }
.media-link:hover .media-link__arrow { transform: translate(2px, -2px); }

.team { display: flex; flex-direction: column; gap: var(--section-gap); width: 100%; }
.team__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.team__lede { color: var(--text-tertiary-on-light); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.member { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.member__role {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 1px;
  width: 100%;
}
.member__role .label { color: var(--text-tertiary-on-light); white-space: nowrap; }
.member__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-media);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo--yuri img { object-position: 50% 12%; }
.member__photo--pavlo img { object-position: 50% 28%; }
.member__photo--alex img { object-position: 50% 50%; }
.member__info { display: flex; flex-direction: column; gap: 14px; }
.member__name { color: var(--text-primary-on-light); }
.member__bio { color: var(--text-secondary-on-light); }

/* ---------- Where to start ---------- */
.start {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.start__panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* content sits in the vertical middle of the 509px panel */
  background: var(--surface-dark);
  color: var(--text-primary-on-dark);
  padding: 64px;
}
@media (min-width: 1025px) {
  .start__panel { min-height: 509px; }
}
.start__title { color: var(--text-primary-on-dark); }
.start__body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  padding-top: 40px;
}
.start__text { max-width: 570px; color: var(--text-secondary-on-dark); }
.start__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.start__meta { color: var(--text-tertiary-on-dark); white-space: nowrap; }
.start__cta { margin-top: 8px; }
.start__email { color: var(--text-tertiary-on-dark); white-space: nowrap; }
.start__reveal, .start__email a {
  font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: opacity .2s var(--ease-hover);
}
.start__reveal:hover, .start__email a:hover { opacity: .8; }
.start__email a { color: var(--text-secondary-on-dark); }

.founder-note {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
  text-align: center;
  align-self: center;
}
.founder-note__mark { width: 32px; height: 18px; }
.founder-note__eyebrow { color: var(--text-tertiary-on-light); }
.founder-note__quote { max-width: 640px; color: var(--text-primary-on-light); text-align: left; }  /* only the body copy is left-aligned */
.founder-note__name { color: var(--text-secondary-on-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-primary-on-dark);
  display: flex;
  justify-content: center;
}
.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-block: 64px;
  border-bottom: 1px solid var(--border-on-dark-strong);
}
.site-footer__nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-footer__nav a { font-weight: 500; font-size: var(--label-s-size); line-height: 1.3; white-space: nowrap; transition: opacity .18s ease; }
.site-footer__nav a:hover { opacity: .7; }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: var(--spacer-32);
  color: var(--text-tertiary-on-dark);
}

/* ---------- Responsive ---------- */
/* ---------- Hero photo: keep the founder in frame on every screen ----------
   The photo is 4096×2106; the founder stands on the right (x ≈ 64–92 %), face at ≈ 74–84 %.
   Desktop (aspect > 3:2): centred crop, as in the mock — only a sliver is cut on each side.
   Squarish landscape (1:1 … 3:2 — iPad landscape, small laptops): anchor to the right edge.
   Portrait (phones, tablets upright): centre the crop on the face (≈ 90 %), copy at the bottom.
   Short landscape (phones rotated, height ≤ 600): the hero grows taller than the viewport,
   so anchor right and shade the left side under the copy. */
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 3/2) {
  .hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,8,8,.82) 0%, rgba(8,8,8,.55) 45%, rgba(8,8,8,0) 75%);
  }
}
@media (max-aspect-ratio: 1/1) {
  .hero__bg img { object-position: 84% 50%; }   /* head (68–81 % of the photo) centred */
  .hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,8,.25) 0%, rgba(8,8,8,.15) 30%, rgba(8,8,8,.78) 60%, rgba(8,8,8,.92) 100%);
  }
  .hero__inner { justify-content: flex-end; padding-bottom: 72px; }
}
@media (max-height: 600px) and (min-aspect-ratio: 1/1) {
  .hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,8,8,.85) 0%, rgba(8,8,8,.6) 50%, rgba(8,8,8,.1) 85%);
  }
}
}

@media (max-width: 1280px) {
  :root { --section-gap: 96px; --section-pb: 96px; }
  .steps { gap: 64px; }
  .before__grid { gap: 24px; }
  .card { padding: 32px; }
  .start__panel { padding: 48px; }
}

@media (max-width: 1024px) {
  :root { --section-gap: 80px; --section-pb: 80px; }
  .row-2, .how__head, .team__head { grid-template-columns: 1fr; gap: 24px; }
  .how__lede { padding-top: 0; }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .before__grid, .team__grid { grid-template-columns: 1fr; }
  .start { flex-direction: column; align-items: stretch; gap: 64px; }
  .start__panel { flex: 0 0 auto; max-width: none; }
  .who__intro { align-items: flex-start; text-align: left; }
  .who__intro .eyebrow__label { text-align: left; }
  .who__intro-body { align-items: flex-start; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --section-pt: 48px; --section-pb: 64px; --section-gap: 64px; }
  .site-header { padding-block: 10px; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--surface-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav__cta { display: inline-flex; width: 100%; margin-top: auto; }
  .nav__link { height: auto; font-size: 22px; font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .site-header .brand { position: relative; z-index: 2; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-header__cta { display: none; }
  body.nav-open { overflow: hidden; }

  /* Phones: keep the whole hero inside one screen — tighter copy, content pinned to the bottom,
     the head sits in the free space above. */
  .hero__inner { padding-top: calc(var(--header-h) + 16px); padding-bottom: 56px; }
  .hero__lede { font-size: 15px; line-height: 1.4; }
  .hero__cta { gap: 16px; }
  .hero__content { gap: 28px; }
  /* one colour, no forced line break on phones */
  .hero__title br { display: none; }
  .hero__title .accent { color: inherit; }
  /* two buttons per row while they fit, then each on its own full-width row */
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }

  .section-head { gap: 40px; }
  .section-head__body { gap: 20px; }
  /* How we work: numeral and title on one line */
  .step__head { flex-direction: row; align-items: baseline; gap: 16px; }
  .step__num { font-size: var(--display-m-size); line-height: 1.3; }
  .step { gap: 24px; }
  .card { padding: 24px; }
  .media-link__thumb { display: none; }   /* phones: label only */
  .start__panel { padding: 32px 24px; }
  .start__body { padding: 28px 0 8px; gap: 32px; }
  .site-footer__top { flex-direction: column; gap: 32px; padding-block: 48px; }
  .site-footer__nav { gap: 20px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==========================================================================
   Motion — appear effects and hovers, timed after the Westbridge Framer spec
   (hero image: 1.2s [.44,0,.11,1]; blocks: 1s [.12,.23,0,.99] y40→0;
   small items: .6s [.12,.23,.17,.99] y10→0; hovers: .2s [.44,0,.56,1]).
   Everything is gated on `html.js` so the page is fully visible without JS.
   ========================================================================== */
:root {
  --ease-hero: cubic-bezier(.44, 0, .11, 1);
  --ease-appear: cubic-bezier(.12, .23, 0, .99);
  --ease-small: cubic-bezier(.12, .23, .17, .99);
  --ease-hover: cubic-bezier(.44, 0, .56, 1);
  --appear-from: .55;          /* scroll-appear only: barely-there fade, never from 0 */
  --appear-opacity-dur: 1.4s;  /* slower than the 1s slide */
}

/* --- Hero intro --- */
.js .hero__bg img {
  transform: scale(1.2);
  transition: transform 1.2s var(--ease-hero);
}
.js .hero--ready .hero__bg img { transform: scale(1); }

.js .site-header .brand,
.js .site-header .nav__list > li,
.js .site-header .site-header__cta,
.js .site-header .nav-toggle {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s var(--ease-small), transform .6s var(--ease-small);
}
.js .hero--ready .site-header .brand,
.js .hero--ready .site-header .nav__list > li,
.js .hero--ready .site-header .site-header__cta,
.js .hero--ready .site-header .nav-toggle { opacity: 1; transform: none; }
.js .hero--ready .site-header .nav__list > li:nth-child(1) { transition-delay: .05s; }
.js .hero--ready .site-header .nav__list > li:nth-child(2) { transition-delay: .1s; }
.js .hero--ready .site-header .nav__list > li:nth-child(3) { transition-delay: .15s; }
.js .hero--ready .site-header .nav__list > li:nth-child(4) { transition-delay: .2s; }
.js .hero--ready .site-header .site-header__cta,
.js .hero--ready .site-header .nav-toggle { transition-delay: .15s; }

.js .hero__title,
.js .hero__lede,
.js .hero__actions,
.js .hero__note {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-appear), transform 1s var(--ease-appear);
}
.js .hero--ready .hero__title,
.js .hero--ready .hero__lede,
.js .hero--ready .hero__actions,
.js .hero--ready .hero__note { opacity: 1; transform: none; }
.js .hero--ready .hero__title   { transition-delay: .3s; }
.js .hero--ready .hero__lede    { transition-delay: .5s; }
.js .hero--ready .hero__actions { transition-delay: .55s; }
.js .hero--ready .hero__note    { transition-delay: .6s; }

/* --- Hovers (Westbridge: arrow swap, line wipe, dark overlay; no shadow / zoom / lift) --- */
:root { --ease-ui: cubic-bezier(.31, 0, 0, 1); }

/* Button: two arrows in a 15×15 clipped box. A exits top-right, B enters from bottom-left. */
.btn { position: relative; isolation: isolate; transition: none; }
.btn:hover, .btn:active { transform: none; box-shadow: none; }
.btn::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: rgba(8, 8, 8, .06);
  opacity: 0;
  transition: opacity .3s var(--ease-ui);
  pointer-events: none;
}
.btn--secondary::before { background: rgba(255, 255, 255, .08); }
.btn:hover::before { opacity: 1; }
.btn--primary:hover { background: var(--action-primary-bg); }
.btn--secondary:hover { background: var(--action-secondary-bg); }
.btn__icon { position: relative; overflow: hidden; }
.btn__icon img { transition: none; }
.btn__icon .btn__arrow {
  position: absolute;
  width: 15px; height: 15px;
  transition: top .3s var(--ease-ui), left .3s var(--ease-ui), right .3s var(--ease-ui), bottom .3s var(--ease-ui);
}
.btn__icon .btn__arrow--a { top: 0; left: 0; }
.btn__icon .btn__arrow--b { bottom: -13px; left: -13px; }
.btn:hover .btn__icon .btn__arrow--a { top: -13px; left: 13px; }
.btn:hover .btn__icon .btn__arrow--b { bottom: 0; left: 0; }

/* Nav / footer links: opacity → .8 */
.nav__link { transition: opacity .2s var(--ease-hover); }
.nav__link:hover { opacity: .8; }
.site-footer__nav a { transition: opacity .2s var(--ease-hover); }
.site-footer__nav a:hover { opacity: .8; }
.brand { transition: opacity .2s var(--ease-hover); }
.brand:hover { opacity: .8; }

/* Media links: arrow swap + overlay on the thumb */
.media-link:hover .media-link__label { color: var(--text-primary-on-light); }
.media-link__arrow-box {
  position: relative;
  width: 15px; height: 15px; flex: 0 0 15px;
  overflow: hidden;
}
.media-link__arrow {
  position: absolute;
  width: 9px; height: 10px; flex: none;
  transition: top .3s var(--ease-ui), left .3s var(--ease-ui);
}
.media-link__arrow--a { top: 3px; left: 3px; }
.media-link__arrow--b { top: 16px; left: -10px; }
.media-link:hover .media-link__arrow--a { top: -10px; left: 16px; }
.media-link:hover .media-link__arrow--b { top: 3px; left: 3px; }

@media (prefers-reduced-motion: reduce) {
  .js .hero__bg img,
  .js .site-header .brand, .js .site-header .nav__list > li, .js .site-header .site-header__cta, .js .site-header .nav-toggle,
  .js .hero__title, .js .hero__lede, .js .hero__actions, .js .hero__note {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .btn::before, .btn__arrow, .media-link__arrow { transition: none !important; }
}
