/* ==========================================================================
   MESO+  —  Maternal mental-health screening platform
   Design system + animations. Built for readability (mothers & older users),
   warmth, trust, and gentle motion. Respects prefers-reduced-motion.
   ========================================================================== */

/* ----------  Design tokens  ---------- */
:root {
  /* Brand palette: health-teal, motherhood-coral, African gold, warm cream */
  --brand:        #0E6E5C;   /* deep teal-green  */
  --brand-dark:   #0A5245;
  --brand-soft:   #E4F1EC;
  --accent:       #E86A4C;   /* warm terracotta / coral */
  --accent-soft:  #FCE7DF;
  --gold:         #F2B705;
  --cream:        #FBF7F0;
  --cream-2:      #F4ECDE;
  --ink:          #1E2A28;
  --ink-soft:     #4A5A56;
  --white:        #ffffff;
  --line:         #E7E0D4;

  --radius:       22px;
  --radius-sm:    14px;
  --radius-pill:  999px;

  --shadow-sm:    0 4px 14px rgba(30,42,40,.06);
  --shadow-md:    0 14px 40px rgba(30,42,40,.10);
  --shadow-lg:    0 30px 70px rgba(14,110,92,.16);

  --maxw:         1180px;
  --ease:         cubic-bezier(.22,.61,.36,1);

  /* Brand type: a warm soft-serif for headings + a friendly, highly legible
     grotesque for body. Chosen for identity + warmth, not framework defaults. */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
}

/* ----------  Reset-ish  ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(17px, 1.05vw + 12px, 19px);   /* large & readable */
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* Inline icon sizing — every meso_icon() SVG gets a sane default so none blow up */
svg { flex: none; }
.eyebrow svg { width: 18px; height: 18px; }
.mv-card__icon svg, .value__icon svg { width: 28px; height: 28px; }
.hero-badge__icon svg { width: 20px; height: 20px; }
.rcard .ic svg, .problem__points .ic svg { width: 22px; height: 22px; }
.product__tag svg { width: 15px; height: 15px; }
.feature-list .tick svg { width: 14px; height: 14px; }
.footer__note svg { width: 18px; height: 18px; }
.to-top svg { width: 22px; height: 22px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: normal; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ----------  Layout helpers  ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(64px, 8vw, 118px); position: relative; }
/* Keep anchor targets (e.g. #contact reached from another page) clear of the fixed header */
[id] { scroll-margin-top: 90px; }
.section--tint { background: var(--brand-soft); }
.section--cream { background: var(--cream-2); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  background: var(--white); border: 1px solid var(--line);
  padding: .5em 1.05em; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.eyebrow--accent { color: var(--accent); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-top: .55em; }
.section-lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-soft); max-width: 640px; }
.center .section-lead { margin-inline: auto; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem;
  padding: .95em 1.7em; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  min-height: 54px;                 /* large touch target */
  white-space: nowrap;              /* keep labels like "Partner with us" on one line */
  text-align: center;
}
/* The header CTA must never be squeezed/wrapped by a tight top row */
.site-header .btn--primary, .site-header .brand { flex: none; }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px rgba(232,106,76,.35); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(232,106,76,.45); }
.btn--ghost { background: var(--white); color: var(--brand); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.btn--light { background: rgba(255,255,255,.16); color:#fff; border-color: rgba(255,255,255,.5); }
.btn--light:hover { background: rgba(255,255,255,.28); transform: translateY(-3px); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding-block: 16px;
  /* Always-on translucent backdrop so page content never shows through the
     fixed header (it becomes fully opaque once scrolled). */
  background: rgba(251,247,240,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header.is-scrolled {
  background: rgba(251,247,240,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(30,42,40,.08);
  padding-block: 9px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: .6em; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center; color:#fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 8px 18px rgba(14,110,92,.32);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand b { color: var(--accent); }
/* Real logo image (assets/img/logo*.svg|png) when present; sized to the bar */
.brand__img { height: 38px; width: auto; display: block; }
@media (max-width: 560px) { .brand__img { height: 32px; } }
/* "MESO+" wordmark shown in front of the logo image */
.brand__word { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: #FF886E; letter-spacing: -.01em; }
@media (max-width: 560px) { .brand__word { font-size: 1.2rem; } }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; color: var(--ink-soft);
  padding: .55em .85em; border-radius: var(--radius-pill); position: relative; transition: color .2s, background .2s;
  white-space: nowrap;   /* never let a label ("Our Products") break onto 2 lines */
}
.nav__links a:hover { color: var(--brand); background: var(--brand-soft); }
.nav__links a.is-active { color: var(--brand); font-weight: 600; }
/* Menu icons, the in-menu CTA and the in-menu language chooser are for the
   mobile drop-down only */
.nav__ico { display: none; }
.nav__cta-item { display: none; }
.nav__lang-item { display: none; }

.nav__right { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: .45em; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .5em .9em; box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.lang__btn:hover { border-color: var(--brand); }
.lang__btn svg { width: 16px; height: 16px; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .22s var(--ease);
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu li { margin: 0; }
.lang__menu button {
  width: 100%; text-align: left; display: flex; align-items: center; gap: .6em;
  background: none; border: 0; cursor: pointer; font-family: var(--font-body); font-size: .95rem;
  color: var(--ink); padding: .6em .7em; border-radius: 9px; transition: background .15s;
}
.lang__menu button:hover { background: var(--brand-soft); }
.lang__menu .is-current { color: var(--brand); font-weight: 700; }
/* Checkmark on the selected language only — sized so it can't overflow */
.lang__menu button svg { display: none; width: 16px; height: 16px; margin-left: auto; color: var(--brand); flex: none; }
.lang__menu button.is-current svg { display: block; }
.lang__menu .soon { margin-left: auto; font-size: .68rem; color: var(--accent); background: var(--accent-soft); padding: .2em .6em; border-radius: 999px; font-weight: 700; letter-spacing: .04em; }

.nav__toggle { display: none; padding: 0; background: var(--white); border: 1px solid var(--line); width: 48px; height: 48px; border-radius: 13px; cursor: pointer; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); flex: none; }
.nav__toggle span { position: relative; display: block; width: 22px; height: 2.4px; background: var(--ink); border-radius: 3px; transition: .3s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after { content:""; position: absolute; left: 0; width: 22px; height: 2.4px; background: var(--ink); border-radius: 3px; transition: .3s var(--ease); }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top: 7px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: clamp(130px, 16vw, 190px); padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(1100px 600px at 80% -8%, var(--accent-soft), transparent 60%),
  radial-gradient(900px 620px at -5% 12%, var(--brand-soft), transparent 55%),
  var(--cream); }
.blob { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .5; z-index: -1; }
.blob--1 { width: 320px; height: 320px; background: radial-gradient(circle at 30% 30%, #F7C9BB, transparent 70%); top: 8%; right: 6%; animation: drift 16s ease-in-out infinite; }
.blob--2 { width: 260px; height: 260px; background: radial-gradient(circle at 30% 30%, #BFE4D7, transparent 70%); bottom: 4%; left: 3%; animation: drift 20s ease-in-out infinite reverse; }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.1rem); letter-spacing: -.02em; }
.hero__title .hl { color: var(--brand); position: relative; }
.hero__title .hl::after { content:""; position:absolute; left:0; right:0; bottom:.06em; height:.28em; background: var(--gold); opacity:.32; border-radius: 4px; z-index:-1; transform: scaleX(0); transform-origin:left; animation: underline 1s var(--ease) .7s forwards; }
.hero__tagline { font-size: clamp(1.12rem, 1.8vw, 1.4rem); color: var(--ink-soft); max-width: 30ch; margin-bottom: 1.6em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--ink-soft); font-size: .95rem; }
.hero__trust svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* Hero illustration card */
.hero__art { position: relative; }
.hero-card {
  position: relative; background: #fff; border-radius: 30px; padding: 26px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-card__scene { border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #EAF3EF, #FBEAE3); aspect-ratio: 1 / .92; position: relative; }
.hero-badge {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 12px 16px; display: flex; align-items: center; gap: .7em; font-family: var(--font-head); font-weight: 600; font-size: .92rem;
}
.hero-badge small { display:block; font-family: var(--font-body); font-weight:400; color: var(--ink-soft); font-size:.78rem; }
.hero-badge__icon { width: 38px; height: 38px; border-radius: 11px; display:grid; place-items:center; color:#fff; flex:none; }
.hero-badge--a { top: 22px; left: -26px; animation: floaty 5s ease-in-out infinite; }
.hero-badge--a .hero-badge__icon { background: var(--brand); }
.hero-badge--b { bottom: 26px; right: -22px; animation: floaty 6s ease-in-out infinite .6s; }
.hero-badge--b .hero-badge__icon { background: var(--accent); }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.4rem); color: var(--brand); line-height: 1; }
.stat__num .suf { color: var(--accent); }
.stat__label { color: var(--ink-soft); font-size: .98rem; margin-top: .5em; }

/* ==========================================================================
   MISSION / VISION split
   ========================================================================== */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.mv-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width: 6px; }
.mv-card--mission::before { background: var(--brand); }
.mv-card--vision::before  { background: var(--accent); }
.mv-card__icon { width: 58px; height: 58px; border-radius: 16px; display:grid; place-items:center; color:#fff; margin-bottom: 18px; }
.mv-card--mission .mv-card__icon { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.mv-card--vision  .mv-card__icon { background: linear-gradient(135deg, var(--accent), #C9502F); }
.mv-card h3 { font-size: 1.5rem; }

/* ==========================================================================
   PROBLEM  (feature list on tint)
   ========================================================================== */
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.problem__points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.problem__points li { display: flex; gap: 14px; background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.problem__points .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display:grid; place-items:center; background: var(--accent-soft); color: var(--accent); }
.problem__points strong { display:block; font-family: var(--font-head); }
.problem__points span { color: var(--ink-soft); font-size: .95rem; }
.pull { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--brand); line-height: 1.25; }
.pull .accent { color: var(--accent); }

/* ==========================================================================
   SOLUTION  (steps)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 46px; }
.step { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__n { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color:#fff; width: 44px; height: 44px; border-radius: 50%; display:grid; place-items:center; background: var(--brand); margin-bottom: 16px; }
.step:nth-child(2) .step__n { background: var(--accent); }
.step:nth-child(3) .step__n { background: var(--gold); color: var(--ink); }
.step h3 { font-size: 1.28rem; }
.callout { margin-top: 40px; text-align:center; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color:#fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); }
.callout p { font-family: var(--font-head); font-weight:600; font-size: clamp(1.2rem,2.4vw,1.7rem); margin:0; }
.callout .accent { color: var(--gold); }

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.product {
  background:#fff; border:1px solid var(--line); border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product__top { padding: 34px 32px 26px; position: relative; overflow: hidden; }
.product--hcp .product__top { background: linear-gradient(150deg, #E4F1EC, #F3FAF7); }
.product--mom .product__top { background: linear-gradient(150deg, #FCE7DF, #FFF4EF); }
.product__tag { display:inline-flex; align-items:center; gap:.5em; font-family: var(--font-head); font-weight:700; font-size:.8rem; letter-spacing:.08em; text-transform:uppercase; padding:.45em 1em; border-radius:999px; background:#fff; box-shadow: var(--shadow-sm); }
.product--hcp .product__tag { color: var(--brand); }
.product--mom .product__tag { color: var(--accent); }
.product__top h3 { font-size: clamp(1.4rem,2.4vw,1.9rem); margin-top: 16px; }
.product__phone { margin-top: 20px; }
.product__body { padding: 28px 32px 34px; }
.feature-list { list-style:none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.feature-list li { display:flex; gap:12px; align-items:flex-start; }
.feature-list .tick { flex:none; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; color:#fff; margin-top:2px; }
.product--hcp .feature-list .tick { background: var(--brand); }
.product--mom .feature-list .tick { background: var(--accent); }
.product--hcp .btn--primary { background: var(--brand); box-shadow: 0 12px 26px rgba(14,110,92,.32); }

/* Phone mockup */
.phone { width: 190px; margin-inline: auto; background:#0f1512; border-radius: 30px; padding: 10px; box-shadow: 0 22px 50px rgba(15,21,18,.35); }
.phone__screen { border-radius: 22px; overflow:hidden; background:#fff; aspect-ratio: 9/17.5; position: relative; }
.phone__notch { position:absolute; top:8px; left:50%; transform:translateX(-50%); width:60px; height:6px; background:#0f1512; border-radius:999px; z-index:3; }

/* ==========================================================================
   RESEARCH
   ========================================================================== */
.research { position: relative; color:#fff; overflow: hidden; }
.research::before { content:""; position:absolute; inset:0; z-index:-1; background:
  radial-gradient(700px 400px at 85% 10%, rgba(242,183,5,.22), transparent 60%),
  linear-gradient(160deg, var(--brand-dark), #073b31); }
.research .eyebrow { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); color:#fff; }
.research .section-title { color:#fff; }
.research .section-lead { color: rgba(255,255,255,.85); }
.research__grid { display:grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items:center; }
.research__cards { display:grid; gap: 16px; }
.rcard { background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); border-radius: var(--radius-sm); padding: 22px 24px; backdrop-filter: blur(4px); display:flex; gap:16px; }
.rcard .ic { flex:none; width:46px; height:46px; border-radius:13px; background: rgba(242,183,5,.2); color: var(--gold); display:grid; place-items:center; }
.rcard h4 { margin:0 0 .3em; font-size:1.15rem; }
.rcard p { margin:0; color: rgba(255,255,255,.82); font-size:.96rem; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team { display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 48px; }
.member { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-align:center; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.member__avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; display:grid; place-items:center; font-family: var(--font-head); font-weight:700; font-size:2rem; color:#fff; }
.member:nth-child(1) .member__avatar { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.member:nth-child(2) .member__avatar { background: linear-gradient(135deg, var(--accent), #C9502F); }
.member:nth-child(3) .member__avatar { background: linear-gradient(135deg, var(--gold), #D99A00); color: var(--ink); }
.member h3 { font-size: 1.28rem; margin-bottom: .15em; }
.member__role { font-family: var(--font-head); font-weight:600; color: var(--accent); font-size:.95rem; margin-bottom:.6em; }
.member p { color: var(--ink-soft); font-size:.95rem; margin:0; }

/* ==========================================================================
   VALUES
   ========================================================================== */
.values { display:grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 46px; }
.value { display:flex; gap:20px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.value:hover { transform: translateY(-4px); }
.value__icon { flex:none; width: 56px; height:56px; border-radius: 16px; display:grid; place-items:center; color:#fff; }
.value:nth-child(1) .value__icon { background: var(--brand); }
.value:nth-child(2) .value__icon { background: var(--accent); }
.value:nth-child(3) .value__icon { background: var(--gold); color: var(--ink); }
.value:nth-child(4) .value__icon { background: var(--brand-dark); }
.value h3 { font-size: 1.22rem; margin-bottom: .2em; }
.value p { margin:0; color: var(--ink-soft); font-size:.96rem; }

/* ==========================================================================
   CTA + FOOTER
   ========================================================================== */
.cta { text-align:center; }
.cta__box { background: linear-gradient(135deg, var(--accent), #C9502F); color:#fff; border-radius: 30px; padding: clamp(40px,6vw,72px); box-shadow: var(--shadow-lg); position: relative; overflow:hidden; }
.cta__box h2 { color:#fff; font-size: clamp(1.8rem,3.6vw,2.8rem); }
.cta__box p { color: rgba(255,255,255,.9); max-width: 560px; margin-inline:auto; font-size:1.1rem; }
.cta__actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top: 26px; }

.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: 60px 30px; }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color:#fff; }
.footer__about { max-width: 34ch; margin-top: 14px; font-size:.96rem; }
.footer__col h4 { color:#fff; font-size:1.05rem; margin-bottom: 1em; }
.footer__col ul { list-style:none; margin:0; padding:0; display:grid; gap:.7em; }
.footer__col a { display:inline-block; transition: color .2s var(--ease), transform .2s var(--ease); }
.footer__col a:hover { color:#fff; transform: translateX(4px); }
.footer__bottom { border-top:1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.88rem; }
.footer__note { background: rgba(242,183,5,.14); border:1px solid rgba(242,183,5,.3); color: #f6d477; border-radius: 12px; padding: 10px 16px; font-size:.86rem; display:inline-flex; gap:.6em; align-items:center; }

/* ==========================================================================
   SCROLL REVEAL animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-anim="left"]  { transform: translateX(-40px); }
.reveal[data-anim="right"] { transform: translateX(40px); }
.reveal[data-anim="zoom"]  { transform: scale(.92); }
.reveal.is-in[data-anim] { transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }

/* Keyframes */
@keyframes drift   { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(24px,-26px) scale(1.06); } }
@keyframes floaty  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes underline { to { transform: scaleX(1); } }
@keyframes pulse   { 0%,100% { transform: scale(1); opacity:1; } 50% { transform: scale(1.12); opacity:.85; } }
.pulse-dot { animation: pulse 2.2s ease-in-out infinite; }

/* Back-to-top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width:52px; height:52px; border-radius:50%; border:0; cursor:pointer; background: var(--brand); color:#fff; box-shadow: var(--shadow-md); display:grid; place-items:center; opacity:0; visibility:hidden; transform: translateY(14px); transition:.3s var(--ease); }
.to-top.is-show { opacity:1; visibility:visible; transform:none; }
.to-top:hover { background: var(--brand-dark); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero__grid, .mv, .problem__grid, .research__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .steps, .team { grid-template-columns: 1fr; }
  .products, .values { grid-template-columns: 1fr; }
  /* Footer: brand full-width on top, then Explore + Get in touch side by side
     so the footer stays compact on small screens. */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 26px; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  /* Collapse to the hamburger before the full row would get cramped / wrap
     (5 links + language + CTA stop fitting well below ~1024px). */
  .nav__links, .nav__right .lang { display: none; }
  .nav__toggle { display: inline-flex; }
  .site-header .nav__right { gap: 8px; }

  /* mobile menu panel — soft card with icon rows + staggered entrance */
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: calc(100% + 12px); left: 12px; right: 12px;
    background: rgba(255,255,255,.99);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: 24px;
    padding: 14px; box-shadow: var(--shadow-lg);
    animation: menuIn .32s var(--ease) both;
  }
  .nav__links.is-open a {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 12px; font-size: 1.06rem; font-weight: 600; color: var(--ink);
    border-radius: 16px; background: transparent;
    animation: itemIn .4s var(--ease) both;
  }
  .nav__links.is-open a:hover { background: var(--cream-2); color: var(--ink); }
  .nav__links.is-open a.is-current { background: var(--brand-soft); color: var(--brand); }
  .nav__links.is-open .nav__ico {
    display: grid; place-items: center; flex: none;
    width: 42px; height: 42px; border-radius: 13px;
    background: var(--brand-soft); color: var(--brand);
    transition: background .2s var(--ease), color .2s var(--ease);
  }
  .nav__links.is-open .nav__ico svg { width: 21px; height: 21px; }
  .nav__links.is-open a:hover .nav__ico { background: #fff; }
  .nav__links.is-open a.is-current .nav__ico { background: var(--brand); color: #fff; }
  .nav__links.is-open li:nth-child(1) a { animation-delay: .04s; }
  .nav__links.is-open li:nth-child(2) a { animation-delay: .08s; }
  .nav__links.is-open li:nth-child(3) a { animation-delay: .12s; }
  .nav__links.is-open li:nth-child(4) a { animation-delay: .16s; }
  .nav__links.is-open li:nth-child(5) a { animation-delay: .20s; }
  .nav__links.is-open li:nth-child(6) a { animation-delay: .24s; }
  /* "Partner with us" pinned to the bottom of the open menu */
  .nav__links.is-open .nav__cta-item {
    display: block; margin-top: 8px; padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .nav__links.is-open .nav__cta {
    display: flex; width: 100%; justify-content: center; min-height: 50px;
    animation: itemIn .4s var(--ease) .26s both;
  }
  .nav__links.is-open .nav__cta svg { width: 18px; height: 18px; }
  /* Language chooser inside the open menu */
  .nav__links.is-open .nav__lang-item {
    display: block; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line);
    animation: itemIn .4s var(--ease) .3s both;
  }
  .nav__lang-label {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: .74rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
    padding: 0 4px 10px;
  }
  .nav__lang-label svg { width: 18px; height: 18px; color: var(--brand); }
  .nav__lang-opts { display: flex; flex-wrap: wrap; gap: 8px; }
  .nav__lang-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    padding: 9px 15px; border-radius: var(--radius-pill); cursor: pointer;
    background: #fff; color: var(--ink); border: 1px solid var(--line);
    transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  }
  .nav__lang-btn:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
  .nav__lang-btn.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
  .nav__lang-btn[disabled] { opacity: .55; cursor: not-allowed; }
  .nav__lang-btn .soon {
    font-size: .62rem; color: var(--accent); background: var(--accent-soft);
    padding: .15em .5em; border-radius: 999px; font-weight: 700; letter-spacing: .04em;
  }
  .nav.is-open .nav__toggle span { background: transparent; }
  .nav.is-open .nav__toggle span::before { top:0; transform: rotate(45deg); }
  .nav.is-open .nav__toggle span::after  { top:0; transform: rotate(-45deg); }
}
@media (max-width: 600px) {
  /* On phones, logo + CTA + hamburger don't fit on one row — hide only the
     top-row CTA (the "Partner with us" pinned inside the open menu stays). */
  .site-header .nav__right > .btn--primary { display: none; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ==========================================================================
   ACCESSIBILITY — reduced motion (important for older users)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .blob, .hero-badge--a, .hero-badge--b { animation: none !important; }
}

/* ==========================================================================
   MULTI-PAGE ADDITIONS — nav active state, sub-page headers, explainer,
   explore cards, team media (photo + video). Added for the 5-page site.
   ========================================================================== */

/* Active nav item (header uses .is-current) */
.nav__links a.is-current { color: var(--brand); font-weight: 600; background: var(--brand-soft); }

/* ----------  Sub-page header  ---------- */
.page-head {
  position: relative;
  padding: clamp(148px, 16vh, 210px) 0 clamp(40px, 6vw, 70px);
  background: linear-gradient(180deg, var(--brand-soft), var(--cream));
  overflow: hidden;
  text-align: center;
}
.page-head__title { font-size: clamp(2rem, 4.4vw, 3.3rem); margin: .25em auto .3em; max-width: 16ch; }
.page-head__lead { font-size: clamp(1.05rem, 1.4vw, 1.28rem); color: var(--ink-soft); max-width: 62ch; margin: 0 auto; }

/* ----------  Objectives explainer (coded animation / real-video slot)  ---------- */
.explainer {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 30px);
  box-shadow: var(--shadow-md);
}
.explainer__stage,
.explainer__video {
  position: relative;
  width: 100%;
  aspect-ratio: 320 / 220;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--brand-soft);
}
.explainer__video { display: none; object-fit: cover; background: #0A5245; }
.explainer.has-video .explainer__video { display: block; }
.explainer.has-video .explainer__stage,
.explainer.has-video .explainer__toggle { display: none; }

.explainer__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 70% 20%, rgba(242,183,5,.18), transparent 70%);
}
.explainer .scene {
  position: absolute; inset: 0; opacity: 0;
  animation: sceneCycle 16s var(--ease) infinite;
}
.explainer .scene svg { width: 100%; height: 100%; display: block; }
.explainer .scene--1 { animation-delay: 0s; }
.explainer .scene--2 { animation-delay: 4s; }
.explainer .scene--3 { animation-delay: 8s; }
.explainer .scene--4 { animation-delay: 12s; }
@keyframes sceneCycle {
  0%   { opacity: 0; transform: scale(1.03); }
  3%   { opacity: 1; transform: scale(1); }
  22%  { opacity: 1; transform: scale(1); }
  25%  { opacity: 0; transform: scale(.99); }
  100% { opacity: 0; }
}

/* In-scene motion accents */
.explainer .pulse-ring { transform-origin: 164px 120px; animation: pulseRing 2.6s ease-out infinite; }
@keyframes pulseRing { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.explainer .check-pop { transform-origin: center; animation: pop 4s ease-in-out infinite; }
.explainer .flag-pop  { transform-origin: center; animation: pop 4s ease-in-out .3s infinite; }
@keyframes pop { 0%,12% { transform: scale(0); } 20% { transform: scale(1.15); } 26%,80% { transform: scale(1); } 92%,100% { transform: scale(1); } }
.explainer .fill-bar { transform-origin: left center; animation: fillBar 4s ease-in-out infinite; }
@keyframes fillBar { 0% { transform: scaleX(.1); } 30% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
.explainer .wire { stroke-dashoffset: 40; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.explainer .node { transform-box: fill-box; transform-origin: center; animation: nodeIn 4s ease-out infinite; }
.explainer .n2 { animation-delay: .15s; } .explainer .n3 { animation-delay: .3s; } .explainer .n4 { animation-delay: .45s; }
@keyframes nodeIn { 0%,10% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
.explainer .bar { transform-box: fill-box; transform-origin: bottom; animation: grow 4s var(--ease) infinite; }
.explainer .b2 { animation-delay: .12s; } .explainer .b3 { animation-delay: .24s; } .explainer .b4 { animation-delay: .36s; }
@keyframes grow { 0%,10% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); } }
.explainer .trend { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 4s ease-out infinite; }
@keyframes draw { 0%,20% { stroke-dashoffset: 260; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
.explainer .trend-dot { transform-box: fill-box; transform-origin: center; animation: pop 4s ease-out infinite; }

/* Captions */
.explainer__captions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.explainer__captions li {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 12px 14px 12px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.explainer__captions li strong { color: var(--ink); }
.explainer__captions li.is-active { background: var(--brand-soft); border-color: rgba(14,110,92,.18); color: var(--ink); }
.explainer__step {
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; background: #fff; color: var(--brand); border: 1px solid var(--line);
}
.explainer__captions li.is-active .explainer__step { background: var(--brand); color: #fff; border-color: var(--brand); }

.explainer__toggle {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  cursor: pointer; transition: background .25s var(--ease), border-color .25s var(--ease);
}
.explainer__toggle:hover { background: var(--brand-soft); border-color: var(--brand); }
.explainer__toggle-icon svg { width: 16px; height: 16px; }
.explainer.is-paused .scene,
.explainer.is-paused .scene *,
.explainer.is-paused [class*="pulse"],
.explainer.is-paused [class*="pop"] { animation-play-state: paused !important; }

/* ----------  Explore cards (home)  ---------- */
.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.explore-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.explore-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.explore-card__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.explore-card__icon svg { width: 26px; height: 26px; }
.explore-card h3 { font-size: 1.25rem; margin-bottom: .35em; }
.explore-card p { color: var(--ink-soft); font-size: .98rem; margin: 0 0 18px; }
.explore-card__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.explore-card__go svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.explore-card:hover .explore-card__go svg { transform: translateX(4px); }

/* ----------  Team page — full member card with photo + video  ---------- */
.research__cards--wide { grid-template-columns: repeat(3, 1fr); }
.values--3 { grid-template-columns: repeat(3, 1fr); }

.team-list { display: grid; gap: clamp(26px, 4vw, 48px); }
.member--full {
  display: grid; grid-template-columns: 320px 1fr; gap: clamp(22px, 3vw, 40px);
  align-items: center; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 30px); box-shadow: var(--shadow-sm);
}
.member--full:hover { transform: none; box-shadow: var(--shadow-sm); }
.member--full:nth-child(even) { grid-template-columns: 1fr 320px; }
.member--full:nth-child(even) .member__media { order: 2; }

.member__media { display: grid; gap: 14px; }
.member__photo {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden;
  display: grid; place-items: center;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__initials { display: none; font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; color: #fff; }
.member__photo.is-fallback { }
.member__photo.is-fallback .member__initials { display: block; }
.member--brand  .member__photo { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.member--accent .member__photo { background: linear-gradient(135deg, var(--accent), #C9502F); }
.member--gold   .member__photo { background: linear-gradient(135deg, var(--gold), #D99A00); }
.member--gold   .member__initials { color: var(--ink); }

.member__video {
  position: relative; margin: 0; aspect-ratio: 16 / 10; min-height: 150px;
  border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, #123, #0A5245);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 14px;
}
.member__video video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.member__play {
  position: relative; z-index: 2;
  width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--brand);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.member__play:hover { transform: scale(1.08); }
.member__play svg { width: 26px; height: 26px; margin-left: 3px; }
.member__video-note {
  position: relative; z-index: 2; max-width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .82rem; color: #fff; opacity: .92; text-align: center; line-height: 1.35;
}
.member__video-note svg { width: 15px; height: 15px; }
.member__video.is-playing .member__play,
.member__video.is-playing .member__video-note { display: none; }

.member__info h3 { font-size: 1.5rem; margin-bottom: .12em; }
.member__info .member__role { font-family: var(--font-head); font-weight: 600; color: var(--accent); font-size: 1rem; margin-bottom: .7em; }
.member__info p { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }

.team-note { margin-top: 40px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 10px; }
.team-note svg { width: 18px; height: 18px; color: var(--brand); }

/* ----------  Responsive  ---------- */
@media (max-width: 980px) {
  .explainer { grid-template-columns: 1fr; }
  .explore { grid-template-columns: 1fr; }
  .research__cards--wide, .values--3 { grid-template-columns: 1fr; }
  .member--full,
  .member--full:nth-child(even) { grid-template-columns: 1fr; text-align: center; }
  .member--full:nth-child(even) .member__media { order: 0; }
  .member__media { max-width: 420px; margin: 0 auto; }
  .member__info h3 { text-align: center; }
}

/* ----------  Reduced motion — freeze the explainer, show all captions  ---------- */
@media (prefers-reduced-motion: reduce) {
  .explainer .scene { animation: none !important; }
  .explainer .scene--1 { opacity: 1; }
  .explainer .scene--2, .explainer .scene--3, .explainer .scene--4 { opacity: 0; }
  .explainer .scene *, .explainer .pulse-ring, .explainer .fill-bar,
  .explainer .wire, .explainer .node, .explainer .bar, .explainer .trend, .explainer .trend-dot,
  .explainer .check-pop, .explainer .flag-pop { animation: none !important; }
  .explainer .trend { stroke-dashoffset: 0; }
  .explainer__captions li { background: var(--brand-soft); border-color: rgba(14,110,92,.14); color: var(--ink); }
  .explainer__toggle { display: none; }
}

/* When a real MP4 is present, captions become a static labelled list */
.explainer.has-video .explainer__captions li { background: var(--brand-soft); border-color: rgba(14,110,92,.14); color: var(--ink); }
.explainer.has-video .explainer__captions li .explainer__step { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Caption text wrapper — keeps each li a clean 2-column grid (step + text) */
.explainer__cap-text { display: block; font-size: .98rem; line-height: 1.5; }

/* ==========================================================================
   Mobile-menu entrance + small-screen team media tweaks
   ========================================================================== */
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes itemIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  /* Team intro video: keep the placeholder comfortable, button + note stacked */
  .member__media { max-width: 340px; }
  .member__video { aspect-ratio: 16 / 11; min-height: 140px; }
  .member__play { width: 54px; height: 54px; }
  .member__play svg { width: 22px; height: 22px; }
  .member__video-note { font-size: .78rem; }
  .member__initials { font-size: 2.8rem; }
}
