/* ==========================================================================
   Grandis Pharma
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0a0f2c;
  --ink-2: #131a45;
  --navy: #283889;
  --green: #00a050;
  --green-lt: #3ddc84;
  --pink: #d81858;
  --paper: #060919;
  --paper-2: #0e1433;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.58);
  --text-2: rgba(255, 255, 255, 0.76);
  --blue-lt: #9aa9ff;
  --line: rgba(255, 255, 255, 0.1);
  --line-lt: rgba(255, 255, 255, 0.14);

  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --pad: clamp(20px, 4.4vw, 72px);
  --gap: clamp(16px, 2vw, 32px);
  --radius: clamp(18px, 2vw, 32px);
  --section: clamp(72px, min(13vw, 20vh), 200px);

  --fs-hero: clamp(3.2rem, min(12.4vw, 21vh), 13rem);
  --fs-title: clamp(2.8rem, 8.2vw, 8.5rem);
  --fs-lead: clamp(1.55rem, 3.5vw, 3.6rem);
  --fs-statement: clamp(1.7rem, 4.3vw, 4.6rem);
  --fs-body: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);

  --intro: 2.05s; /* length of the logo intro; 0 when it is skipped */
}

@media (max-width: 599px) { :root { --fs-hero: min(17.4vw, 13vh); } }

.no-intro { --intro: 0s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: #fff;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 0; }

.wrap { width: 100%; max-width: 1680px; margin-inline: auto; padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
.section { padding-block: var(--section); position: relative; }
.section--dark { background: var(--ink); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; }
.skip:focus { top: 16px; }

/* ---------- shared type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.label span {
  display: inline-grid; place-items: center; min-width: 38px; height: 24px; padding-inline: 8px;
  border: 1px solid currentColor; border-radius: 99px; font-size: 0.7rem; letter-spacing: 0.08em;
}
.section--dark .label, .label--light { color: rgba(255, 255, 255, 0.66); }

.title {
  font-size: var(--fs-title); font-weight: 500; line-height: 0.92; letter-spacing: -0.055em;
  margin-top: clamp(18px, 2.4vw, 36px);
}
.title em { color: var(--green-lt); letter-spacing: -0.03em; }
.title em .wi { background: linear-gradient(95deg, var(--blue-lt) 0%, var(--green-lt) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0.1em 0.12em 0.2em 0.02em; margin: -0.1em -0.12em -0.2em -0.02em; }
.section--dark .title em { color: var(--green-lt); }
.section--dark .title em .wi { background-image: linear-gradient(95deg, #9aa9ff 0%, var(--green-lt) 80%); }

.head { margin-bottom: clamp(36px, min(7vw, 11vh), 112px); }
.head--split { display: grid; gap: var(--gap); }
.head__text { max-width: 46ch; color: rgba(255, 255, 255, 0.72); font-size: clamp(1.05rem, 1.25vw, 1.3rem); line-height: 1.55; }

.statement {
  font-size: var(--fs-statement); font-weight: 500; line-height: 1.06; letter-spacing: -0.04em;
  max-width: 22ch; margin-top: clamp(56px, min(11vw, 16vh), 180px); text-wrap: balance;
}
.statement em { color: var(--green-lt); }

/* ---------- buttons & links ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 26px; border-radius: 99px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease-out), color 0.3s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--green); transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); }
.btn:active { transform: scale(0.97); transition-duration: 0.12s; }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--ghost { --bg: rgba(255, 255, 255, 0.12); --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--lg { height: 62px; padding: 0 32px; font-size: 1.02rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { color: #fff; }
  .btn:hover::before { transform: none; }
  .btn:hover svg { transform: translate(3px, 0); }
  .btn:hover svg.i-down { transform: translate(0, 3px); }
  .btn:hover svg.i-out { transform: translate(2px, -2px); }
}

.link { position: relative; display: inline-block; width: fit-content; white-space: nowrap; font-size: clamp(1.25rem, 2vw, 1.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.3; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--green)); transform: scaleX(0); transform-origin: left; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; z-index: 100; top: calc(clamp(16px, 1.8vw, 28px) + env(safe-area-inset-top)); left: var(--pad); right: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 8px 0 18px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 40px -12px rgba(10, 15, 44, 0.28);
  transition: transform 0.6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(calc(-100% - 36px)); }
.nav.is-hidden:focus-within { transform: none; }
.nav__logo .logo { height: 42px; width: auto; }
.nav__links { display: none; gap: 2px; }
.nav__links a {
  position: relative; padding: 10px 14px; border-radius: 99px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  transition: color 0.25s ease, background-color 0.25s ease;
}
.nav__links a[aria-current="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:not([aria-current="true"]):hover { background: rgba(10, 15, 44, 0.07); }
}
.nav__cta { display: none; height: 48px; }
.nav__burger { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); }
.nav__burger span { position: absolute; left: 15px; right: 15px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.4s var(--ease-out); }
.nav__burger span:first-child { top: 20px; }
.nav__burger span:last-child { top: 27px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (min-width: 1100px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 112px var(--pad) calc(32px + env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.7s var(--ease-in-out), visibility 0s; }
.menu__links { display: grid; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px; padding: 10px 0;
  font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1;
  border-bottom: 1px solid var(--line-lt);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.menu__links i { font-style: normal; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--green-lt); font-weight: 600; }
.menu.is-open .menu__links a { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out); }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.20s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.25s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.30s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.35s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.40s; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: 0.45s; }
.menu.is-open .menu__links a:nth-child(7) { transition-delay: 0.50s; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 8px 24px; color: rgba(255, 255, 255, 0.7); font-weight: 500; }
@media (min-width: 1100px) { .menu { display: none; } }

/* ==========================================================================
   LOGO + INTRO
   ========================================================================== */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { display: block; overflow: visible; }
.logo .lg-blue { fill: #283888; }
.logo .lg-ga, .logo .lg-gb { fill: #00a050; }
.logo .lg-tag { fill: #d81858; }
.logo use { transform-box: fill-box; transform-origin: 50% 100%; }

/* the logo assembles itself once per visit, then lifts away */
.intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #fff;
  animation: introOut 0.9s var(--ease-in-out) 1.8s forwards;
}
.no-intro .intro { display: none; }
.logo--intro { width: min(66vw, 520px); height: auto; }
.intro .lg-blue { animation: wipeDown 0.95s var(--ease-in-out) 0.1s backwards; }
.intro .lg-gb { animation: wipeUp 0.8s var(--ease-in-out) 0.3s backwards; }
.intro .lg-ga { animation: wipeUp 0.7s var(--ease-in-out) 0.6s backwards; }
.intro .lg-word use { animation: letterUp 0.8s var(--ease-out) calc(0.6s + var(--i) * 0.06s) backwards; }
.intro .lg-tag { animation: wipeRight 0.7s var(--ease-out) 1.1s backwards; }
@keyframes wipeDown { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipeUp { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipeRight { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes letterUp { from { opacity: 0; transform: translateY(45%); } }
@keyframes introOut { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes hop { 40% { transform: translateY(-7%); } }
@media (hover: hover) and (pointer: fine) {
  .nav__logo:hover .lg-ga { animation: hop 0.7s var(--ease-out); }
  .nav__logo:hover .lg-blue { animation: hop 0.7s var(--ease-out) 0.08s; }
}

/* ==========================================================================
   HERO — particle DNA helix
   ========================================================================== */
.hero {
  --inset: clamp(6px, 0.7vw, 12px);
  position: relative; margin: var(--inset); border-radius: clamp(22px, 2.6vw, 40px);
  height: calc(100vh - var(--inset) * 2); height: calc(100svh - var(--inset) * 2); min-height: 540px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden; isolation: isolate; transform: translateZ(0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(58% 70% at 84% 28%, rgba(40, 56, 137, 0.8), transparent 70%),
    radial-gradient(46% 56% at 58% 104%, rgba(0, 160, 80, 0.24), transparent 70%),
    var(--ink);
}
.hero__dna { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(8, 12, 38, 0.9) 0%, rgba(8, 12, 38, 0.4) 36%, transparent 60%),
    linear-gradient(to right, rgba(8, 12, 38, 0.6), transparent 52%);
}
/* the "enhance" lens: a viewfinder ring that follows the pointer over the hero */
.lens {
  --lens: 300px;
  position: absolute; left: 0; top: 0; z-index: 3; width: var(--lens); height: var(--lens); margin: calc(var(--lens) / -2) 0 0 calc(var(--lens) / -2);
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); pointer-events: none; opacity: 0;
  transition: opacity 0.35s ease; will-change: transform;
}
.lens::before, .lens::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255, 255, 255, 0.55); }
.lens::before { width: 13px; height: 1px; margin: 0 0 0 -6.5px; }
.lens::after { width: 1px; height: 13px; margin: -6.5px 0 0 0; }
.lens span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 9px); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.lens.is-on { opacity: 1; }
@media not ((hover: hover) and (pointer: fine)) { .lens { display: none; } }

.hero__inner { position: relative; z-index: 4; padding-bottom: clamp(20px, 3vw, 44px); pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: clamp(10px, 1.6vw, 24px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-lt); box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 12px rgba(61, 220, 132, 0); } }

.hero__title { font-size: var(--fs-hero); font-weight: 500; line-height: 0.86; letter-spacing: -0.062em; margin-left: -0.04em; }
.hero__title .line { display: block; overflow: hidden; padding: 0.06em 0.08em 0.14em 0.04em; margin: -0.06em -0.08em -0.14em -0.04em; }
.hero__title .hw { display: inline-block; }
.hero__title em {
  font-size: 1.04em; letter-spacing: -0.035em; padding-right: 0.06em;
  background: linear-gradient(95deg, #9aa9ff 5%, var(--green-lt) 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title .hw--em { margin-left: 0.07em; }

.hero__row { display: flex; flex-direction: column; gap: 24px; margin-top: clamp(22px, 3vw, 48px); }
.hero__sub { max-width: 40ch; font-size: clamp(1rem, 1.3vw, 1.3rem); line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__bar {
  position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-lt);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  max-width: none; pointer-events: none;
}
.hero__places { display: flex; flex-wrap: wrap; gap: 6px 0; color: rgba(255, 255, 255, 0.78); }
.hero__places li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--green-lt); margin: 0 14px 2px; }
.hero__scroll { display: flex; align-items: center; gap: 12px; }
.hero__scroll i { position: relative; width: 1px; height: 34px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: drip 2s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (min-width: 900px) {
  .hero__row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
@media (max-width: 480px) { .hero__scroll span { display: none; } }
/* short screens (small laptops, scaled displays): tighten the hero's vertical rhythm */
@media (min-width: 900px) { .hero { min-height: 430px; } }
@media (max-height: 720px) and (min-width: 900px) {
  .hero__eyebrow { margin-bottom: 6px; }
  .hero__row { margin-top: 16px; }
  .hero__inner { padding-bottom: 14px; }
  .hero__bar { padding-block: 12px 14px; }
  .hero__sub { font-size: 1rem; max-width: 46ch; }
}
/* on narrow screens the helix runs behind the headline: deepen the shade so the text stays crisp */
@media (max-width: 899px) {
  .hero__shade { background: linear-gradient(to top, rgba(8, 12, 38, 0.94) 0%, rgba(8, 12, 38, 0.72) 34%, rgba(8, 12, 38, 0.3) 56%, transparent 72%); }
}

/* hero entrance — pure CSS; waits for the logo intro when it plays */
.hero__title .hw { transform-origin: left bottom; animation: heroWord 1.2s var(--ease-out) calc(var(--intro) + 0.05s + var(--i) * 0.08s) backwards; }
.hero__eyebrow, .hero__sub, .hero__actions, .hero__bar { animation: heroUp 0.9s var(--ease-out) var(--intro) backwards; }
.hero__sub { animation-delay: calc(var(--intro) + 0.4s); }
.hero__actions { animation-delay: calc(var(--intro) + 0.5s); }
.hero__bar { animation-delay: calc(var(--intro) + 0.65s); }
.nav { animation: navIn 1s var(--ease-out) calc(var(--intro) + 0.35s) backwards; }
@keyframes heroWord { from { transform: translateY(115%) rotate(4deg); } }
.hero__title .hw--em em { display: inline-block; animation: focusPull 1.7s var(--ease-out) calc(var(--intro) + 0.3s) backwards; }
@keyframes focusPull { from { filter: blur(16px); letter-spacing: 0.04em; } }
@keyframes heroUp { from { opacity: 0; transform: translateY(20px); } }
@keyframes navIn { from { transform: translateY(calc(-100% - 36px)); } }

/* ---------- wipe slideshow (used by the capsule) ---------- */
.slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; transform: translate3d(0, 100%, 0); }
.slide__shift { position: absolute; inset: 0; transform: translate3d(0, -100%, 0); }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; object-position: 50% 30%; }
.slide.is-active, .slide.is-prev { visibility: visible; transform: none; }
.slide.is-active .slide__shift { transform: none; }
.slide.is-active { z-index: 2; }
.slide.is-prev { z-index: 1; }
.slide.is-prev .slide__shift { transform: translate3d(0, -14%, 0); }
.slide.is-anim, .slide.is-anim .slide__shift { transition: transform 1.4s var(--ease-in-out); }
.slide.is-active img, .slide.is-prev img { animation: kenburns 9s var(--ease-out) both; }
@keyframes kenburns { from { transform: scale(1.16); } to { transform: scale(1.02); } }

/* ---------- scroll helix (desktop progress indicator) ---------- */
.spine { position: fixed; z-index: 80; right: calc(var(--pad) / 2 - 17px); top: 50%; width: 34px; height: 200px; margin-top: -100px; pointer-events: none; display: none; opacity: 0; transition: opacity 0.6s ease; }
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .spine { display: block; }
  .spine.is-on { opacity: 1; }
  .progress { display: none; }
}

/* ==========================================================================
   REVEALS
   ========================================================================== */
.js [data-reveal]:not([data-reveal="img"]):not([data-reveal="map"]) {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js [data-reveal].in { opacity: 1 !important; transform: none !important; }

.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); isolation: isolate; transform: translateZ(0); }
.frame picture, .frame img { width: 100%; height: 100%; }
.frame img { object-fit: cover; }
.frame picture { transform: scale(1.14); }
.js [data-reveal="img"] { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease-in-out); }
.js [data-reveal="img"].in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-reveal="img"] picture { transform: scale(1.4); transition: transform 1.8s var(--ease-out); }
.js [data-reveal="img"].in picture { transform: scale(1.14); }

/* split words */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0.06em 0.16em 0.02em; margin: -0.08em -0.06em -0.16em -0.02em; }
.wi { display: inline-block; transform: translateY(118%); }
.in > .w > .wi, .in > em > .w > .wi { transform: none; transition: transform 1.1s var(--ease-out) calc(var(--i) * 38ms); }

/* ==========================================================================
   TILES — the dark card system used across the page
   ========================================================================== */
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(22px, 2.4vw, 40px); border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025) 62%);
  border: 1px solid var(--line);
}
/* a soft light follows the pointer across each tile */
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(115, 132, 255, 0.22), transparent 62%);
  transition: opacity 0.45s ease;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover { border-color: rgba(255, 255, 255, 0.24); }
  .tile:hover::after { opacity: 1; }
}
.bento { display: grid; gap: var(--gap); grid-template-columns: 1fr; }

/* faint colour washes behind the sections, for depth */
.about::before, .work::before, .strengths::before, .contact::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.about::before { background: radial-gradient(46% 40% at 0% 30%, rgba(40, 56, 137, 0.42), transparent 70%); }
.work::before { background: radial-gradient(42% 34% at 100% 40%, rgba(0, 160, 80, 0.14), transparent 70%); }
.strengths::before { background: radial-gradient(50% 30% at 100% 12%, rgba(40, 56, 137, 0.4), transparent 70%); }
.contact::before { background: radial-gradient(46% 40% at 0% 60%, rgba(0, 160, 80, 0.12), transparent 70%); }

/* ==========================================================================
   ABOUT — a large statement, a capsule-shaped photo window, facts at a glance, four columns
   ========================================================================== */
.lead { font-size: var(--fs-lead); font-weight: 500; line-height: 1.12; letter-spacing: -0.04em; text-wrap: pretty; }
.lead .lw { opacity: 0.38; transition: opacity 0.5s ease; }
.lead .lw.on { opacity: 1; }
/* (the boxed statement tile is still used on the country pages) */
.tile--lead { display: grid; gap: clamp(22px, 3vw, 48px); align-content: space-between; padding: clamp(26px, 3.4vw, 56px); }

.about__top { display: grid; gap: clamp(32px, 5vw, 72px); }
.about__lead { display: grid; gap: clamp(20px, 3.4vh, 44px); align-content: start; justify-items: start; }
.about__lead .lead { font-size: clamp(1.85rem, min(4.7vw, 9.2vh), 5rem); line-height: 1.07; letter-spacing: -0.045em; max-width: 22ch; }
.about__photo { display: grid; gap: 16px; justify-items: center; }

/* the photo window is a capsule: a wipe slideshow of the four team photos */
.capsule-wrap { position: relative; width: min(62vw, 270px); will-change: transform; }
/* a thin ring around the capsule with a light that travels along it */
.capsule__orbit {
  position: absolute; inset: -11px; border-radius: 999px; padding: 1px; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.capsule__orbit::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 215%; aspect-ratio: 1; margin: -107.5% 0 0 -107.5%;
  background: conic-gradient(rgba(255, 255, 255, 0.13) 0 72%, rgba(61, 220, 132, 0.9) 93%, #fff 99%, rgba(255, 255, 255, 0.13));
  animation: orbit 11s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.js .capsule__orbit { opacity: 0; transition: opacity 1.2s ease 0.7s; }
.js .capsule.in ~ .capsule__orbit { opacity: 1; }
.capsule { position: relative; overflow: hidden; border-radius: 999px; aspect-ratio: 9 / 15; background: var(--paper-2); isolation: isolate; transform: translateZ(0); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 90px -40px rgba(61, 220, 132, 0.35); }
.js .capsule[data-reveal="img"] { clip-path: inset(100% 0 0 0 round 999px); }
.js .capsule[data-reveal="img"].in { clip-path: inset(0 0 0 0 round 999px); }
.js .capsule[data-reveal="img"] picture, .js .capsule[data-reveal="img"].in picture { transform: none; transition: none; }
.capsule__count { display: flex; align-items: center; gap: 12px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; color: var(--muted); }
.capsule__count b { color: #fff; font-weight: 700; }
.capsule__count .track { width: 72px; height: 2px; background: rgba(255, 255, 255, 0.22); border-radius: 2px; overflow: hidden; }
.capsule__count .track span { display: block; height: 100%; background: var(--green-lt); transform: scaleX(0); transform-origin: left; }
.capsule__count .track span.run { animation: fill var(--slide-ms, 6000ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* at a glance */
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: clamp(48px, min(8vw, 12vh), 120px) 0 0; border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column-reverse; gap: 6px; padding: clamp(18px, 2.6vw, 36px) clamp(14px, 2vw, 32px) clamp(18px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: clamp(14px, 2vw, 32px); border-left: 1px solid var(--line); }
.fact dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 0; font-size: clamp(3rem, min(8vw, 14vh), 7.2rem); font-weight: 500; line-height: 0.92; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.fact dd i { font-style: normal; color: var(--green-lt); }

.about__cols { display: grid; gap: clamp(28px, 3vw, 48px); margin-top: clamp(40px, min(6vw, 9vh), 88px); }
.acol h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-lt); }
.acol h3::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.acol p { color: var(--text-2); max-width: 44ch; }

@media (min-width: 620px) { .about__cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) {
  .about__top { grid-template-columns: 1fr auto; align-items: center; }
  .about__photo { justify-items: end; padding-right: 11px; }
  .capsule-wrap { width: min(28vw, 240px); }
}
@media (min-width: 900px) {
  .capsule-wrap { width: min(24vw, 330px, 44vh); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact, .fact:nth-child(even) { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
  .fact:first-child { padding-left: 0; border-left: 0; }
  .about__cols { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   WORK — a pinned photo beside three large rows, then an open statement
   ========================================================================== */
.work__grid { display: grid; gap: clamp(28px, 5vw, 88px); }
.work__figure { margin: 0; }
.work__figure .frame { aspect-ratio: 4 / 3; }
.work__figure img { object-position: 50% 42%; }
.work__cap { display: none; align-items: center; gap: 12px; margin-top: 16px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--muted); }
.work__cap b { color: #fff; font-weight: 700; }
.work__cap .track { flex: none; width: 72px; height: 2px; background: rgba(255, 255, 255, 0.22); border-radius: 2px; overflow: hidden; }
.work__cap .track span { display: block; height: 100%; background: var(--green-lt); transform: scaleX(0.3333); transform-origin: left; transition: transform 0.7s var(--ease-out); }
.work__rows { border-top: 1px solid var(--line); }
.wrow { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 2.4vw, 40px); padding: clamp(22px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); isolation: isolate; }
/* a soft band sweeps in behind the row under the pointer */
.wrow::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -0.5); z-index: -1; border-radius: 18px; background: linear-gradient(100deg, rgba(47, 66, 166, 0.5), rgba(0, 160, 80, 0.14)); opacity: 0; transform: scaleX(0.96); transition: opacity 0.45s ease, transform 0.6s var(--ease-out); }
.wrow.is-on::before { opacity: 0.55; transform: none; }
.js .wrow h3 { color: rgba(255, 255, 255, 0.62); }
.js .wrow.is-on h3 { color: #fff; }
.wrow__no { padding-top: 0.5em; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; color: var(--green-lt); }
.wrow__main { display: grid; gap: 12px; }
.wrow h3 { margin-bottom: 4px; font-size: clamp(1.8rem, min(3.6vw, 7vh), 3.4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; transition: transform 0.6s var(--ease-out), color 0.5s ease; }
.wrow p { color: var(--text-2); max-width: 58ch; }
.wrow__links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.wrow__links .office__link { margin-top: 4px; }
@media (hover: hover) and (pointer: fine) {
  .wrow:hover::before { opacity: 1; transform: none; }
  .js .wrow:hover h3 { color: #fff; transform: translateX(10px); }
}
@media (min-width: 900px) {
  .work__grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .work__figure { position: sticky; top: 108px; }
  .work__figure .frame { aspect-ratio: auto; height: min(62vh, 700px); }
  .js .work__cap { display: flex; }
}

/* highlighted statement tile (core strengths) */
.tile--statement {
  display: grid; align-content: center; padding: clamp(26px, 3.6vw, 60px);
  background: linear-gradient(120deg, rgba(47, 66, 166, 0.6), rgba(0, 160, 80, 0.2) 90%), linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025) 62%);
}
.tile--statement .statement { margin: 0; max-width: 27ch; font-size: clamp(1.5rem, 3.1vw, 3.2rem); line-height: 1.1; }
.tile--wide { margin-top: clamp(40px, 6vw, 96px); }
.tile--wide .statement { max-width: 32ch; }

/* ==========================================================================
   PRESENCE
   ========================================================================== */
.presence { border-radius: clamp(28px, 4vw, 64px); margin-inline: clamp(0px, 1vw, 16px); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.presence::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 72% 55%, rgba(0, 160, 80, 0.2), transparent 70%), radial-gradient(50% 40% at 20% 10%, rgba(40, 56, 137, 0.55), transparent 70%);
}
.presence .wrap { position: relative; }
/* stacked (phones, tablets): heading, map, then the market list */
.presence__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.presence__copy { display: contents; }
.presence__head { display: grid; gap: clamp(14px, 2vw, 24px); justify-items: start; }
.presence__head .title { margin-top: 0; }
.presence__stage { order: 2; min-width: 0; }
.presence .markets { order: 3; margin-top: 0; }

/* pinned (wide screens): copy on the left, map on the right, everything on screen at once.
   The scene holds still while scrolling unwinds the helix into the map. */
.presence.is-pinned { padding-block: 0; overflow: clip; }
.presence.is-pinned .presence__sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; padding-block: 92px 24px; }
.presence.is-pinned .presence__grid { grid-template-columns: minmax(300px, 4fr) 8fr; align-items: center; gap: clamp(28px, 4vw, 72px); }
.presence.is-pinned .presence__copy { display: grid; gap: clamp(14px, 3vh, 36px); }
.presence.is-pinned .presence__head { gap: clamp(10px, 2vh, 22px); }
.presence.is-pinned .title { font-size: clamp(2.3rem, min(5.2vw, 11vh), 5.4rem); }
.presence.is-pinned .head__text { font-size: clamp(0.94rem, 1.1vw, 1.15rem); max-width: 40ch; }
.presence.is-pinned .presence__stage, .presence.is-pinned .markets { order: 0; }
.presence.is-pinned .markets { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.presence.is-pinned .markets button { font-size: clamp(1rem, min(1.5vw, 3.2vh), 1.4rem); padding: clamp(7px, 1.5vh, 16px) 0; border-bottom: 1px solid var(--line-lt); }
.presence.is-pinned .map { width: min(100%, calc((100vh - 140px) * 16 / 9)); margin-inline: auto; }
@media (min-width: 900px) { .head--split { grid-template-columns: 7fr 5fr; align-items: end; } }

.map { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.map__land, .map__glow { position: absolute; inset: 0; -webkit-mask: center / 100% 100% no-repeat; mask: center / 100% 100% no-repeat; }
.map.is-near .map__land, .map.is-near .map__glow, html:not(.js) .map__land { -webkit-mask-image: url("../img/map-mask.png"); mask-image: url("../img/map-mask.png"); }
.map__base { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.09; }
.map__land { background: radial-gradient(circle, rgba(255, 255, 255, 0.62) 1.15px, transparent 1.75px) 0 0 / 7px 7px; }
.map__glow { background: radial-gradient(22% 34% at 72% 50%, rgba(61, 220, 132, 0.95), transparent 70%), radial-gradient(10% 16% at 40.600% 52%, rgba(61, 220, 132, 0.8), transparent 70%); animation: breathe 4.5s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: 0.45; } to { opacity: 1; } }
.js .map__land, .js .map__base { opacity: 0; transform: scale(1.04); transition: opacity 1.4s var(--ease-out), transform 1.8s var(--ease-out); }
.js .map.in .map__land { opacity: 1; transform: none; }
.js .map.in .map__base { opacity: 0.09; transform: none; }
/* canvas mode: the dots begin as a helix and reassemble into the map on scroll */
.map__dots { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.map.has-canvas .map__dots { display: block; }
.map.has-canvas .map__land { display: none; }
.js .map.has-canvas .map__base { opacity: 0; transform: none; transition: opacity 1.2s ease; }
.js .map.has-canvas.is-formed .map__base { opacity: 0.07; }
.map.has-canvas .map__glow { opacity: 0; animation: none; transition: opacity 1.2s ease; }
.map.has-canvas.is-formed .map__glow { opacity: 1; animation: breathe 4.5s ease-in-out 1.2s infinite alternate; }
.map__arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__arcs path { fill: none; stroke: var(--green-lt); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.85; }
.js .map__arcs path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-in-out) 0.7s; }
.js .map.in:not(.has-canvas) .map__arcs path, .js .map.is-formed .map__arcs path { stroke-dashoffset: 0; }
.js .map.has-canvas .map__arcs path { transition: stroke-dashoffset 0.5s var(--ease-out); }
.js .map.has-canvas.is-formed .map__arcs path { transition: stroke-dashoffset 1.5s var(--ease-in-out) 0.25s; }

.pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.pin i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.9); transition: transform 0.4s var(--ease-out), background-color 0.3s ease; }
.pin i::before, .pin i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--green-lt); animation: ripple 2.8s var(--ease-out) infinite; }
.pin i::after { animation-delay: 1.4s; }
@keyframes ripple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(5.5); opacity: 0; } }
.pin span {
  position: absolute; white-space: nowrap; font-size: clamp(0.62rem, 1vw, 0.86rem); font-weight: 600; letter-spacing: 0.04em;
  padding: 0.35em 0.8em; border-radius: 99px; background: rgba(10, 15, 44, 0.72); border: 1px solid var(--line-lt);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.pin--l span { right: 16px; top: 0; transform: translateY(-50%); }
.pin--r span { left: 16px; top: 0; transform: translateY(-50%); }
.pin--t span { left: 0; bottom: 14px; transform: translateX(-50%); }
.pin--b span { left: 0; top: 14px; transform: translateX(-50%); }
.pin.is-hot i { transform: scale(1.5); background: var(--green-lt); }
.pin.is-hot span { background: #fff; color: var(--ink); border-color: #fff; }
.js .pin { opacity: 0; transition: opacity 0.6s ease calc(1s + var(--n) * 0.18s); }
.js .map.in:not(.has-canvas) .pin, .js .map.is-formed .pin { opacity: 1; }
.js .map.has-canvas .pin { transition: opacity 0.3s ease; }
.js .map.has-canvas.is-formed .pin { transition: opacity 0.6s ease calc(0.2s + var(--n) * 0.14s); }

.markets { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(32px, 4vw, 64px); border-top: 1px solid var(--line-lt); }
.markets button {
  display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left;
  padding: clamp(14px, 1.6vw, 24px) 0; border-bottom: 1px solid var(--line-lt);
  font-size: clamp(1.15rem, 2vw, 2rem); font-weight: 500; letter-spacing: -0.04em;
  transition: color 0.3s ease, padding-left 0.4s var(--ease-out);
}
.markets i { font-style: normal; font-size: 0.7rem; letter-spacing: 0.1em; font-weight: 600; color: var(--green-lt); }
.markets button.is-hot { color: var(--green-lt); }
@media (min-width: 900px) {
  .markets { grid-template-columns: repeat(5, 1fr); }
  .markets button { border-bottom: 0; }
}
@media (max-width: 699px) {
  /* zoom the map onto Africa–Asia, where the markets are */
  .map { width: 150%; margin-left: -45%; }
  .pin i { left: -4px; top: -4px; width: 8px; height: 8px; box-shadow: 0 0 0 2px rgba(61, 220, 132, 0.9); }
  .pin span { font-size: 0.68rem; }
  .pin--l span { right: 11px; }
  .pin--r span { left: 11px; }
  .pin--t span { bottom: 10px; }
  .pin--b span { top: 10px; }
}

/* ==========================================================================
   STRENGTHS
   ========================================================================== */
.strengths .head { margin-bottom: clamp(32px, 4vw, 64px); }
.marquee { overflow: hidden; padding-block: clamp(8px, 1vw, 16px); border-block: 1px solid var(--line); margin-bottom: clamp(56px, 8vw, 128px); }
.marquee__track { display: flex; align-items: center; gap: clamp(24px, 3.4vw, 56px); width: max-content; padding-right: clamp(24px, 3.4vw, 56px); animation: marquee 32s linear infinite; }
.marquee span { font-size: clamp(3rem, 9vw, 9rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1.1; }
.marquee span.o { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; color: var(--green-lt); }
.marquee svg { width: clamp(36px, 5vw, 76px); height: auto; flex: none; fill: none; stroke: var(--blue-lt); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

.strengths__grid { display: grid; gap: clamp(32px, 5vw, 88px); }
.strengths__side .frame { aspect-ratio: 4 / 5; }
.frame__tag { color: var(--ink); position: absolute; left: 16px; bottom: 16px; padding: 10px 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.stack { display: grid; gap: 20px; }
.stack__card {
  position: relative; display: grid; gap: 18px; align-content: start;
  padding: clamp(28px, 3.4vw, 56px); border-radius: var(--radius); color: #fff; border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 0; transform-origin: 50% 0; will-change: transform;
  overflow: hidden;
}
.stack__card::after { content: ""; position: absolute; right: -18%; top: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent); pointer-events: none; }
.stack__card--navy { background: linear-gradient(150deg, #3145b0, #1a2468); }
.stack__card--green { background: linear-gradient(150deg, #0a8f52, #04532f); }
.stack__card--ink { background: linear-gradient(150deg, #171f52, #0b1030); }
.stack__no { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; opacity: 0.7; }
.stack__card h3 { font-size: clamp(2.2rem, 4.6vw, 4.6rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.95; margin-bottom: clamp(8px, 2vw, 32px); }
.stack__card p { max-width: 60ch; color: rgba(255, 255, 255, 0.86); position: relative; z-index: 1; }

@media (min-width: 900px) {
  .strengths__grid { grid-template-columns: 4fr 7fr; align-items: start; }
  .strengths__side { position: sticky; top: 112px; }
  .strengths__side .frame { aspect-ratio: auto; height: min(74vh, 780px); }
}

@media (min-width: 900px) { .stack__card { min-height: clamp(280px, 40vh, 420px); } }
@media (min-width: 900px) and (min-height: 700px) {
  .stack__item { position: sticky; top: calc(112px + var(--i) * 22px); }
}

/* ==========================================================================
   THERAPY — one list, one stage. The particles re-form into each area's icon.
   ========================================================================== */
.therapy { position: relative; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); border-radius: clamp(28px, 4vw, 64px); margin-inline: clamp(0px, 1vw, 16px); }
.therapy__sticky { padding-block: var(--section); }
.therapy__grid { position: relative; display: grid; gap: clamp(20px, 4vw, 48px); }
.therapy__copy { display: contents; }
.therapy__head { order: 1; }
.tlist { order: 3; }
.therapy__head { display: grid; gap: clamp(10px, 2vh, 22px); justify-items: start; }
.therapy__head .title { margin-top: 0; font-size: clamp(2.4rem, min(6vw, 11vh), 6rem); }

.tlist { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.titem { border-bottom: 1px solid var(--line); }
.titem__h { font: inherit; letter-spacing: inherit; }
.titem__btn {
  position: relative; display: flex; align-items: center; gap: clamp(10px, 1.2vw, 16px); width: 100%; text-align: left;
  padding: clamp(7px, 1.75vh, 18px) 0; font-size: clamp(1.1rem, min(1.9vw, 3.5vh), 1.85rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.2;
  color: rgba(255, 255, 255, 0.5); transition: color 0.35s ease, padding-left 0.5s var(--ease-out);
}
.titem__btn i { flex: none; min-width: 22px; font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); transition: color 0.35s ease; }
.titem__btn .ico { flex: none; width: clamp(20px, 3.4vh, 28px); height: clamp(20px, 3.4vh, 28px); opacity: 0.5; transition: opacity 0.35s ease; }
.titem__btn::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--green-lt); transform: scale(0); transition: transform 0.45s var(--ease-out); }
.titem.is-open .titem__btn { color: #fff; }
.titem.is-open .titem__btn i { color: var(--green-lt); }
.titem.is-open .titem__btn .ico { opacity: 1; }
.titem.is-open .titem__btn::after { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .titem__btn:hover { color: #fff; } }

.titem__body { display: grid; grid-template-rows: 1fr; }
.titem__in { overflow: hidden; min-height: 0; display: grid; gap: 12px; justify-items: start; align-content: start; }
.titem__in > p { color: var(--text-2); max-width: 46ch; }
.titem__in > :last-child { margin-bottom: clamp(12px, 2vh, 20px); }
.js .titem__body { grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-out); }
.js .titem.is-open .titem__body { grid-template-rows: 1fr; }
.js .titem__in > * { opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.3s ease; }
.js .titem.is-open .titem__in > * { opacity: 1; transform: none; transition: opacity 0.5s ease 0.12s, transform 0.6s var(--ease-out) 0.12s; }

.card__cta { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.9rem; font-weight: 600; white-space: nowrap; transition: background-color 0.3s ease, color 0.3s ease; }
.card__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card__cta:hover { background: #fff; color: var(--ink); }
  .card__cta:hover svg { transform: translateX(3px); }
}

/* icon drawing styles (the same shapes the particle stage is sampled from) */
.ico { overflow: visible; }
.ico .s, .ico .a, .ico .k { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ico .s { stroke: #b4bfff; }
.ico .a { stroke: var(--green-lt); }
.ico .a--bold { stroke-width: 5.5; }
.ico .k { stroke: #0b1a2e; stroke-width: 2.2; }
.ico .f { fill: var(--green-lt); }
.ico .d { fill: #b4bfff; }

/* the stage */
.therapy__stage { position: relative; order: 2; width: min(74vw, 340px); aspect-ratio: 1 / 1; margin-inline: auto; }
.therapy__dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.tstage__fallback { position: absolute; inset: 17%; display: none; }
.therapy__stage.no-dots .therapy__dots { display: none; }
.therapy__stage.no-dots .tstage__fallback { display: block; }
.tstage__fallback .ico { width: 100%; height: 100%; animation: icoIn 0.6s var(--ease-out); }
@keyframes icoIn { from { opacity: 0; transform: scale(0.94); } }
.tstage__count { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.tstage__count b { font-size: clamp(1.8rem, min(4vw, 7vh), 3.6rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }

/* pinned (wide screens): the list holds on the left; scrolling steps through the seven areas.
   Each area's text shows under the stage instead of inside the list, so the list never moves. */
.therapy.is-pinned .therapy__sticky { position: sticky; top: 0; height: 100vh; display: flex; padding-block: 92px 26px; }
.therapy.is-pinned .therapy__grid { flex: 1; grid-template-columns: minmax(320px, 5fr) 7fr; align-items: center; column-gap: clamp(28px, 5vw, 96px); }
.therapy.is-pinned .therapy__copy { display: block; }
.therapy.is-pinned .therapy__head { margin-bottom: clamp(14px, 3vh, 36px); }
.therapy.is-pinned .therapy__stage { order: 0; align-self: start; width: min(100%, calc(100vh - 226px), 600px); }
.therapy.is-pinned .titem__body {
  --g: clamp(28px, 5vw, 96px); --p: max(var(--pad), env(safe-area-inset-left));
  position: absolute; left: calc(var(--p) + (100% - var(--p) * 2 - var(--g)) * 5 / 12 + var(--g)); right: var(--p); bottom: 0;
  grid-template-rows: 1fr; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.therapy.is-pinned .titem.is-open .titem__body { opacity: 1; visibility: visible; transition: opacity 0.5s ease 0.15s, visibility 0s; }
.therapy.is-pinned .titem__in { grid-template-columns: 1fr auto; align-items: end; gap: 16px 28px; }
.therapy.is-pinned .titem__in > p { font-size: clamp(1rem, min(1.35vw, 2.9vh), 1.3rem); line-height: 1.45; max-width: 40ch; }
.therapy.is-pinned .titem__in > :last-child { margin-bottom: 0; }
/* very short windows: a tighter list so all seven areas still fit */
@media (max-height: 520px) {
  .therapy.is-pinned .therapy__sticky { padding-block: 84px 16px; }
  .therapy.is-pinned .therapy__head { gap: 6px; margin-bottom: 10px; }
  .therapy.is-pinned .therapy__head .title { font-size: 2.1rem; }
  .therapy.is-pinned .titem__btn { padding-block: 5px; font-size: 1rem; }
  .therapy.is-pinned .card__cta { padding: 7px 14px; }
}

/* ==========================================================================
   CAREERS
   ========================================================================== */
.careers__panel { position: relative; overflow: hidden; isolation: isolate; transform: translateZ(0); border-radius: clamp(24px, 3vw, 48px); min-height: min(86vh, 900px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.careers__panel picture { position: absolute; inset: -12% 0; }
.careers__panel img { width: 100%; height: 100%; object-fit: cover; }
.js .careers__panel[data-reveal="img"] picture { transform: scale(1.25); }
.js .careers__panel[data-reveal="img"].in picture, .careers__panel picture { transform: none; }
.careers__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 9, 32, 0.92), rgba(6, 9, 32, 0.45) 55%, rgba(6, 9, 32, 0.15)); }
.careers__content { position: relative; display: grid; gap: clamp(20px, 2.6vw, 40px); justify-items: start; padding: clamp(24px, 4.5vw, 80px); }
.careers__title { font-size: clamp(1.7rem, 3.7vw, 4rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.045em; max-width: 26ch; text-wrap: balance; }
.careers__title em { color: var(--green-lt); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding-top: clamp(40px, 6vw, 96px); }
.offices { display: grid; gap: var(--gap); }
.office {
  position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(24px, 2.4vw, 40px);
  min-height: 260px;
}
.office::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, #3145b0, #0a8f52); transform: translateY(101%); transition: transform 0.7s var(--ease-out); }
.office > * { position: relative; transition: color 0.4s ease; }
.office__no { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; color: var(--green-lt); }
.office h3 { font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin-bottom: auto; padding-bottom: 28px; }
.office address { color: var(--muted); max-width: 34ch; }
.office__link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: 10px; font-size: 0.9rem; font-weight: 600; color: var(--green-lt); }
.office__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .office:hover::before { transform: none; }
  .office:hover h3 { color: #fff; }
  .office:hover address { color: rgba(255, 255, 255, 0.78); }
  .office:hover .office__no { color: var(--green-lt); }
  .office:hover .office__link { color: #fff; }
  .office__link:hover svg { transform: translateX(4px); }
}
@media (min-width: 800px) { .offices { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 799px) { .office { min-height: 0; } .office h3 { padding-bottom: 12px; } }

.contact__grid { display: grid; gap: clamp(40px, 6vw, 96px); margin-top: clamp(56px, 8vw, 128px); }
.contact__info { display: grid; gap: var(--gap); align-content: start; grid-template-columns: 1fr; }
.info { display: grid; gap: 6px; align-content: start; }
.info h3, .form h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.live { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; color: var(--green-lt); font-weight: 700; font-size: clamp(1.1rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; background: radial-gradient(90% 160% at 0% 50%, rgba(0, 160, 80, 0.3), transparent 70%), linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025) 62%); }
.live i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--green-lt); box-shadow: 0 0 0 0 rgba(0, 160, 80, 0.5); animation: ping2 2s ease-out infinite; }
@keyframes ping2 { 70%, 100% { box-shadow: 0 0 0 10px rgba(0, 160, 80, 0); } }

.form { display: grid; gap: 8px; padding: clamp(24px, 3.4vw, 56px); }
.form .btn--ink { --bg: #fff; --fg: var(--ink); }
.form h3 { margin-bottom: 4px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; padding: 30px 0 12px; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; background: none;
  font: inherit; font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 500; letter-spacing: -0.02em; color: #fff;
  outline: none; resize: vertical; transition: border-color 0.3s ease;
}
.field textarea { min-height: 130px; }
.field span { position: absolute; left: 0; top: 30px; color: var(--muted); font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 500; letter-spacing: -0.02em; pointer-events: none; transform-origin: left top; transition: transform 0.35s var(--ease-out), color 0.3s ease; }
.field input:focus, .field textarea:focus { border-color: #fff; }
.field input:focus + span, .field textarea:focus + span,
.field input:not(:placeholder-shown) + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-24px) scale(0.62); color: var(--green-lt); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--pink); }
.field.is-bad span { color: var(--pink); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.form__status { font-size: 0.92rem; font-weight: 600; color: var(--muted); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 5fr 7fr; } }

/* ==========================================================================
   COUNTRY PAGES
   ========================================================================== */
/* padding-top keeps the heading clear of the menu bar even in very short windows */
.hero--page { height: auto; min-height: min(72vh, 640px); padding-top: 112px; --fs-hero: clamp(2.5rem, min(8vw, 15vh), 7.6rem); }
.hero--page .hero__title { line-height: 0.94; }
.hero--page .hero__sub { max-width: 52ch; }
.crumbs { pointer-events: auto; justify-content: flex-start; gap: 12px; }
.crumbs a { color: rgba(255, 255, 255, 0.72); }
.crumbs a::after { content: "/"; margin-left: 12px; color: rgba(255, 255, 255, 0.35); }
.crumbs span { color: #fff; }
.bento--page .tile h2 { font-size: clamp(1.4rem, 2.2vw, 2.1rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 14px; }
.bento--page .tile p, .bento--page address { color: var(--text-2); }
.bento--page .lead { font-size: clamp(1.45rem, 2.7vw, 2.7rem); }
.bento--page .label { margin-bottom: clamp(18px, 2.4vw, 36px); }
.tile--office { display: grid; gap: 14px; align-content: start; }
.tile--office .link { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
.plist { display: grid; gap: 2px; }
.plist a { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text-2); transition: color 0.3s ease; }
.plist a i { font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--green-lt); }
.tile--cta { display: grid; gap: 18px; align-content: space-between; justify-items: start; background: linear-gradient(120deg, rgba(47, 66, 166, 0.6), rgba(0, 160, 80, 0.2) 90%), linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025) 62%); }
.others { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--gap); }
@media (hover: hover) and (pointer: fine) { .plist a:hover { color: #fff; } .crumbs a:hover { color: #fff; } }
@media (min-width: 700px) {
  .bento--page { grid-template-columns: repeat(12, 1fr); }
  .bento--page .tile--lead { grid-column: 1 / span 8; }
  .bento--page .tile--office { grid-column: 9 / -1; grid-row: 1 / span 2; }
  .bento--page .tile--copy { grid-column: span 4; }
  .bento--page .tile--list, .bento--page .tile--cta { grid-column: span 4; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .bento--page .tile--lead, .bento--page .tile--office { grid-column: 1 / -1; grid-row: auto; }
  .bento--page .tile--copy, .bento--page .tile--list, .bento--page .tile--cta { grid-column: span 6; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); padding-top: clamp(64px, 9vw, 140px); border-radius: clamp(28px, 4vw, 64px) clamp(28px, 4vw, 64px) 0 0; overflow: hidden; }
.footer__grid { display: grid; gap: clamp(40px, 5vw, 80px); }
.footer__h { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 22px; }
.footer p, .footer address { color: rgba(255, 255, 255, 0.72); max-width: 44ch; }
.footer address { margin-block: 14px 18px; }
.footer__logo { display: inline-block; padding: 12px 18px; border-radius: 18px; background: #fff; margin-bottom: 22px; }
.footer__logo .logo { height: 58px; width: auto; }
.footer__links { display: grid; gap: 8px; }
.footer__links a { display: inline-block; font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.86); transition: color 0.3s ease, transform 0.5s var(--ease-out); }
.link--light { font-size: clamp(1.25rem, 1.8vw, 1.7rem); }
.footer__social { display: flex; align-items: center; gap: 10px; width: fit-content; margin-top: 26px; padding: 10px 18px 10px 12px; border-radius: 99px; border: 1px solid var(--line-lt); font-weight: 600; font-size: 0.9rem; transition: background-color 0.3s ease, color 0.3s ease; }
.footer__social svg { width: 20px; height: 20px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover { color: var(--green-lt); transform: translateX(8px); }
  .footer__social:hover { background: #fff; color: var(--ink); }
}
.footer__mark { margin-top: clamp(48px, 8vw, 120px); line-height: 0.84; text-align: center; overflow: hidden; }
.footer__mark span {
  /* sized to fit the content width, including on very wide screens where that width is capped */
  display: inline-block; font-size: min(22.2vw, 23.8rem); font-weight: 700; letter-spacing: -0.07em; padding-right: 0.07em;
  background: linear-gradient(100deg, #4a5fd0 5%, #1f8f7a 55%, var(--green-lt) 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  will-change: transform;
}
.footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 26px calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-lt); font-size: 0.88rem; }
.footer__base p { color: rgba(255, 255, 255, 0.6); }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.footer__top { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.footer__motion { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-lt); color: rgba(255, 255, 255, 0.8); font-size: 0.82rem; font-weight: 600; transition: background-color 0.3s ease, color 0.3s ease; }
.footer__motion[aria-pressed="true"] { background: #fff; color: var(--ink); }
button.skip { cursor: pointer; }

/* "Pause animations": stops everything that moves on its own */
.calm .marquee__track, .calm .pin i::before, .calm .pin i::after, .calm .dot, .calm .live i,
.calm .hero__scroll i::after, .calm .map__glow, .calm .slide img, .calm .therapy__hint svg, .calm .capsule__orbit::before { animation-play-state: paused !important; }
.footer__top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer__top:hover svg { transform: translateY(-4px); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 5fr 3fr 4fr; } }

/* ==========================================================================
   REDUCED MOTION — keep fades, drop movement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .marquee__track { animation: none; }
  .intro { display: none; }
  :root { --intro: 0s; }
  .js [data-reveal] { transform: none !important; transition: opacity 0.4s ease !important; }
  .js [data-reveal="img"] { clip-path: none; opacity: 0; }
  .js [data-reveal="img"] picture, .frame picture { transform: none !important; transition: none !important; }
  .wi { transform: none !important; transition: none !important; }
  .lens { display: none; }
  .nav { transform: none !important; transition: none !important; }
  .slide, .slide__shift { transform: none !important; transition: none !important; }
  .slide { opacity: 0; transition: opacity 0.6s ease !important; }
  .slide.is-active { opacity: 1; }
  .slide img { animation: none !important; }
  .js .ico .s, .js .ico .a, .js .ico .k { stroke-dashoffset: 0; transition: none; }
  .js .ico .f, .js .ico .d { opacity: 1; transform: none; transition: none; }
  .spine { display: none !important; }
  .js .titem__body, .js .titem__in > * { transition: opacity 0.3s ease !important; transform: none !important; }
  .lead .lw { opacity: 1; }
  .js .map__land, .js .map__base { transform: none; }
  .js .map__arcs path { transition: none; stroke-dashoffset: 0; }
  .btn, .btn::before, .card, .ico, .office::before { transition-duration: 0.01s !important; }
}
