/* =========================================================================
   MED BRIDGE — site styles
   Brand: MEDBRIDGE brand spec v1.1, red colorway (Navy / Red / Coral / Mist)
   Type:  Sora (display + wordmark, per spec), Inter (body)
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --navy: #0B2545;
  --navy-950: #061528;
  --navy-900: #081C36;
  --navy-800: #0F2D52;
  --navy-700: #183B66;
  --red: #D7263D;          /* on white 4.96:1, white on red 4.96:1 */
  --red-hover: #B91D32;
  --coral: #FF5A5F;        /* accent on navy only (5.04:1) */
  --mist: #F3F6F8;
  --white: #FFFFFF;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--mist);
  --ink: var(--navy);
  --ink-soft: #3B5170;     /* 8.1:1 on white, 7.4:1 on mist */
  --ink-mute: #5A6E88;     /* 5.2:1 on white */
  --line: #DCE3EA;
  --line-strong: #C3CEDA;
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, .78);
  --line-dark: rgba(255, 255, 255, .16);
  --focus: #D7263D;

  /* Type */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.1rem + .9vw, 1.875rem);
  --fs-2xl: clamp(1.875rem, 1.3rem + 2vw, 3rem);
  --fs-3xl: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem);
  --fs-hero: clamp(2.6rem, 1.2rem + 5.6vw, 6.5rem);

  /* Space (spacious, 8pt) */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem; --s-6: 4rem; --s-7: 6rem; --s-8: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1rem, .5rem + 3vw, 3rem);
  --container: 1320px;
  --radius: 4px;
  --radius-lg: 10px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --d-fast: 180ms;
  --d-base: 320ms;
  --d-slow: 700ms;
  --d-reveal: 1000ms;

  /* Layers */
  --z-base: 1; --z-raised: 10; --z-nav: 100; --z-menu: 200; --z-skip: 1000;

  --shadow-card: 0 1px 2px rgba(11, 37, 69, .06), 0 12px 32px -12px rgba(11, 37, 69, .18);
}

/* ---------- 2. Base ---------- */
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .nav:not(.is-solid) :focus-visible, .menu :focus-visible { outline-color: var(--coral); }

.skip-link {
  position: fixed; left: var(--s-2); top: var(--s-2); z-index: var(--z-skip);
  padding: .75rem 1.25rem; background: var(--navy); color: var(--white);
  border-radius: var(--radius); transform: translateY(-200%);
  transition: transform var(--d-base) var(--ease-out);
}
.skip-link:focus { transform: none; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--mist { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark .muted { color: var(--on-dark-soft); }

.muted { color: var(--ink-soft); }
.accent { color: var(--red); }
.on-dark .accent, .section--dark .accent { color: var(--coral); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- 3. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6;
}
.eyebrow--red { color: var(--red); }
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--on-dark-soft); }
.section--dark .eyebrow--red, .on-dark .eyebrow--red { color: var(--coral); }

.h-display { font-size: var(--fs-3xl); }
.h-section { font-size: var(--fs-2xl); }
.h-card { font-size: var(--fs-xl); font-weight: 400; letter-spacing: -.015em; }
.lede { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.section--dark .lede, .on-dark .lede { color: var(--on-dark-soft); }
h1 em, h2 em, h3 em, blockquote em { font-style: normal; }
.h-display em, .h-section em, .cta__title em, .page-hero__title em { font-weight: 600; }
.hero__title em { font-weight: 600; }

.section-head {
  display: grid; gap: var(--s-3);
  grid-template-columns: 1fr;
  margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: var(--s-6); }
}

/* ---------- 4. Buttons & links ---------- */
.btn {
  --btn-bg: var(--red); --btn-fg: var(--white); --btn-bd: var(--red);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  touch-action: manipulation;
  transition: background-color var(--d-fast) ease, color var(--d-fast) ease, border-color var(--d-fast) ease, transform var(--d-base) var(--ease-out);
  isolation: isolate; overflow: hidden;
}
.btn:hover { --btn-bg: var(--red-hover); --btn-bd: var(--red-hover); }
.btn:active { transform: scale(.97); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: var(--mist); --btn-bd: var(--mist); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-bd: currentColor; }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line-strong); }
.btn--ghost-dark:hover { --btn-bg: var(--mist); --btn-bd: var(--navy); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--d-base) var(--ease-out); }
.btn:hover .icon--ne { transform: translate(2px, -2px); }
.btn:hover .icon--e { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  color: var(--navy); text-decoration: none;
  padding-block: .6rem; /* 44px tap target with line-height */
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .45rem) / 0 1px no-repeat;
  transition: background-size var(--d-base) var(--ease-out), color var(--d-fast);
}
.link-arrow:hover { background-size: 100% 1px; color: var(--red); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--d-base) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }
.section--dark .link-arrow { color: var(--white); }
.section--dark .link-arrow:hover { color: var(--coral); }

/* ---------- 5. Logo lockup (per spec: mark = 1.58 × font size, gap = .58 × font size) ---------- */
.logo {
  --fs: 15px;
  display: inline-flex; align-items: center; gap: calc(var(--fs) * .58);
  text-decoration: none; color: inherit;
  min-height: 44px;
}
.logo__mark { height: calc(var(--fs) * 1.58); width: auto; overflow: visible; }
.logo__mark path { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.logo__mark .arch-l { stroke: var(--navy); }
.logo__mark .arch-r { stroke: var(--red); }
.logo__word {
  font-family: var(--font-display); font-size: var(--fs);
  letter-spacing: .18em; text-transform: uppercase; line-height: 1;
  white-space: nowrap;
}
.logo__word b { font-weight: 700; }
.logo__word span { font-weight: 300; }
.logo--reversed .arch-l { stroke: var(--white); }
.logo--reversed .arch-r { stroke: var(--coral); }

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  color: var(--white);
  transition: background-color var(--d-base) ease, color var(--d-base) ease, transform var(--d-slow) var(--ease-out), box-shadow var(--d-base) ease;
}
.nav::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px;
  background: var(--line-dark); transform-origin: left;
  transition: opacity var(--d-base);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  height: 84px; transition: height var(--d-base) var(--ease-out);
}
.nav .logo .arch-l { stroke: var(--white); transition: stroke var(--d-base); }
.nav .logo .arch-r { stroke: var(--coral); transition: stroke var(--d-base); }
.nav.is-solid {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-solid::after { opacity: 0; }
.nav.is-solid .nav__inner { height: 68px; }
.nav.is-solid .logo .arch-l { stroke: var(--navy); }
.nav.is-solid .logo .arch-r { stroke: var(--red); }
.nav.is-hidden { transform: translateY(-100%); }

.nav__links { display: none; gap: .25rem; align-items: center; }
.nav__links a {
  position: relative; padding: .75rem .75rem; text-decoration: none; white-space: nowrap;
  font-size: var(--fs-sm); font-weight: 500; opacity: .88;
  transition: opacity var(--d-fast);
}
.nav__links a::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .45rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--d-base) var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"]::after { background: var(--coral); }
.nav.is-solid .nav__links a[aria-current="page"]::after { background: var(--red); }

.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__cta { display: none; }
.nav:not(.is-solid) .nav__cta { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bd: var(--white); }
.nav:not(.is-solid) .nav__cta:hover { --btn-bg: var(--mist); --btn-bd: var(--mist); }

.lang {
  display: inline-flex; align-items: center;
  border: 1px solid currentColor; border-radius: 999px; padding: 3px;
  opacity: .9;
}
.lang button {
  min-width: 40px; min-height: 36px; padding: 0 .6rem;
  background: none; border: 0; border-radius: 999px;
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em;
  color: inherit; opacity: .7;
  transition: background-color var(--d-fast), color var(--d-fast), opacity var(--d-fast);
}
.lang button[aria-pressed="true"] { background: currentColor; opacity: 1; }
.lang button[aria-pressed="true"] span { color: var(--navy); }
.nav.is-solid .lang button[aria-pressed="true"] span { color: var(--white); }
.lang button:hover { opacity: 1; }

.burger {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; background: none; border: 0; border-radius: 999px;
  margin-right: -.5rem;
}
.burger .icon { width: 26px; height: 26px; }

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

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) max(var(--s-4), env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0;
  transition: opacity var(--d-base) ease, visibility 0s linear var(--d-base);
  overflow-y: auto;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity var(--d-base) ease; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 84px; flex: none; }
.menu__links { display: grid; gap: .25rem; margin-top: var(--s-4); }
.menu__links a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -.02em;
  text-decoration: none; padding-block: .35rem;
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out), color var(--d-fast);
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}
.menu__links a small { font-size: var(--fs-xs); font-family: var(--font-display); color: var(--coral); letter-spacing: .1em; font-weight: 600; }
.menu__links a[aria-current="page"], .menu__links a:hover { color: var(--coral); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__foot { margin-top: auto; padding-top: var(--s-5); display: grid; gap: var(--s-3); border-top: 1px solid var(--line-dark); }
.menu .lang button[aria-pressed="true"] span { color: var(--navy); }
.menu__foot .lang { justify-self: start; }
body.menu-open { overflow: hidden; }

/* ---------- 7. Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  color: var(--white); background: var(--navy-950);
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__parallax { position: absolute; inset: -15% 0 0 0; transform: translate3d(0, var(--parallax, 0px), 0); will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  filter: saturate(.75) contrast(1.05);
  transform: scale(1.08);
  transition: transform 2.4s var(--ease-out);
}
.is-loaded .hero__media img { transform: scale(1); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 21, 40, .55) 0%, rgba(6, 21, 40, 0) 22%),
    linear-gradient(95deg, rgba(8, 28, 54, .94) 0%, rgba(11, 37, 69, .78) 42%, rgba(11, 37, 69, .35) 75%, rgba(11, 37, 69, .25) 100%),
    linear-gradient(0deg, rgba(6, 21, 40, .9) 0%, rgba(6, 21, 40, 0) 45%);
}
/* thin architectural frame lines (Ref 2) */
.hero__grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid span { position: absolute; background: var(--line-dark); transition: transform 1.6s var(--ease-out); }
.hero__grid .gv { top: 0; bottom: 0; width: 1px; transform: scaleY(0); transform-origin: top; }
.hero__grid .gh { left: 0; right: 0; height: 1px; transform: scaleX(0); transform-origin: left; }
.hero__grid .gv:nth-child(1) { left: var(--gutter); }
.hero__grid .gv:nth-child(2) { right: var(--gutter); transition-delay: .15s; }
.hero__grid .gv:nth-child(3) { display: none; }
.is-loaded .hero__grid span { transform: none; }

.hero__body {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 132px;
}
.hero__title {
  font-size: var(--fs-hero); font-weight: 300; line-height: 1.02; letter-spacing: -.035em;
  max-width: 14ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; }
.hero__eyebrow { margin-bottom: var(--s-4); color: var(--on-dark-soft); }
.hero__eyebrow::before { background: var(--coral); opacity: 1; }

.hero__bottom {
  position: relative;
  display: grid; gap: var(--s-4);
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  padding-block: var(--s-4) max(var(--s-4), env(safe-area-inset-bottom));
}
.hero__bottom::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-dark);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .4s;
}
.is-loaded .hero__bottom::before { transform: none; }
.hero__lede { color: var(--on-dark-soft); font-size: var(--fs-lg); max-width: 46ch; }
.hero__scroll {
  display: none; align-items: center; gap: .6rem; align-self: end;
  font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-dark-soft); text-decoration: none; min-height: 44px;
}
.hero__scroll i {
  position: relative; width: 1px; height: 40px; background: var(--line-dark); overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--coral);
  animation: scrollcue 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollcue { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

.hero-card {
  display: none;
  position: relative; background: var(--white); color: var(--navy);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.hero-card__slides { display: grid; }
.hero-card__slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 42%; gap: 0;
  opacity: 0; visibility: hidden; transition: opacity var(--d-slow) ease, visibility 0s linear var(--d-slow);
}
.hero-card__slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--d-slow) ease; }
.hero-card__text { padding: 1.4rem 1.5rem 3.4rem; display: grid; gap: .5rem; align-content: start; }
.hero-card__text .kicker { font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.hero-card__text h2 { font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em; }
.hero-card__text p { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-soft); }
.hero-card__img { position: relative; overflow: hidden; }
.hero-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
.hero-card__slide.is-active .hero-card__img img { transform: scale(1); }
.hero-card__controls {
  position: absolute; left: 1.5rem; bottom: .75rem; display: flex; align-items: center; gap: .25rem;
}
.hero-card__dot {
  width: 44px; height: 32px; background: none; border: 0; padding: 0; display: grid; align-items: center;
}
.hero-card__dot::before {
  content: ""; display: block; height: 3px; border-radius: 3px; background: var(--line);
  background-image: linear-gradient(var(--navy), var(--navy)); background-repeat: no-repeat; background-size: 0 100%;
}
.hero-card__dot[aria-current="true"]::before { background-size: 100% 100%; transition: background-size var(--slide-ms, 6000ms) linear; }
.hero-card.is-paused .hero-card__dot[aria-current="true"]::before { transition: none; }
.hero-card__pause { width: 32px; height: 32px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-soft); border-radius: 999px; }
.hero-card__pause .icon { width: 16px; height: 16px; }
.hero-card__pause:hover { color: var(--navy); background: var(--mist); }

@media (min-width: 720px) {
  .hero__bottom { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 1080px) {
  .hero__bottom { grid-template-columns: 140px minmax(0, 1.35fr) minmax(380px, 1fr); gap: var(--s-5); align-items: stretch; }
  .hero__scroll { display: inline-flex; }
  .hero-card { display: block; align-self: end; }
  .hero__intro { padding-left: var(--s-5); border-left: 1px solid var(--line-dark); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4); }
  .hero__intro .btn-row { margin-top: 0; }
}
@media (min-width: 900px) and (max-height: 1000px) {
  .hero__title { font-size: min(var(--fs-hero), 11.5vh); }
  .hero__body { padding-top: 120px; }
  .hero__bottom { margin-top: 2.5rem; }
}

/* Page-level hero (inner pages) */
.page-hero {
  position: relative; color: var(--white); background: var(--navy-950); isolation: isolate; overflow: hidden;
  padding-top: clamp(9rem, 7rem + 8vw, 13rem); padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}
.page-hero .hero__media::after {
  background:
    linear-gradient(95deg, rgba(8, 28, 54, .96) 0%, rgba(11, 37, 69, .85) 50%, rgba(11, 37, 69, .6) 100%),
    linear-gradient(0deg, rgba(6, 21, 40, .6) 0%, rgba(6, 21, 40, 0) 50%);
}
.page-hero__title { font-size: var(--fs-3xl); max-width: 18ch; margin-top: var(--s-3); }
.page-hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.page-hero__title .line > span { display: inline-block; }
.page-hero .lede { margin-top: var(--s-4); color: var(--on-dark-soft); }
.breadcrumb { display: flex; gap: .5rem; font-size: var(--fs-xs); color: var(--on-dark-soft); font-family: var(--font-display); letter-spacing: .08em; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* ---------- 8. Facts strip ---------- */
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.fact { padding: var(--s-4) var(--s-3); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; }
.fact__num {
  font-family: var(--font-display); font-weight: 200; font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--navy);
}
.fact__num sup, .fact__num small { font-size: .42em; font-weight: 400; color: var(--red); letter-spacing: 0; vertical-align: top; margin-left: .1em; }
.fact__label { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.5; max-width: 28ch; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { padding: var(--s-5) var(--s-4); }
}

/* ---------- 9. Marquee ---------- */
.marquee {
  --gap: 3rem;
  display: flex; overflow: hidden; user-select: none;
  padding-block: var(--s-4);
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; flex: none; gap: var(--gap); padding-right: var(--gap);
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: var(--gap);
  font-family: var(--font-display); font-weight: 300; font-size: var(--fs-xl); letter-spacing: -.01em;
  color: var(--ink-soft); white-space: nowrap;
}
.marquee__item::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- 10. Two sides / bridge ---------- */
.bridge {
  display: grid; gap: var(--s-4); align-items: stretch;
  grid-template-columns: 1fr;
}
.side {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  display: grid; gap: var(--s-3); align-content: start;
  transition: border-color var(--d-base), box-shadow var(--d-base), transform var(--d-base) var(--ease-out);
}
.side:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.side__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--navy); }
.side--br .side__icon { background: rgba(215, 38, 61, .08); color: var(--red); }
.side__label { font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-mute); }
.side h3 { font-size: var(--fs-xl); font-weight: 400; }
.side dl { display: grid; gap: var(--s-2); margin: 0; }
.side dt { font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.side dt.has { color: var(--navy); }
.side dt.lacks { color: var(--red); }
.side dd { margin: .25rem 0 0; color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.6; }

.bridge__center { display: grid; place-items: center; gap: var(--s-2); text-align: center; padding-block: var(--s-2); }
.bridge__mark { width: min(220px, 55vw); height: auto; overflow: visible; }
.bridge__mark path { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.bridge__mark .arch-l { stroke: var(--navy); }
.bridge__mark .arch-r { stroke: var(--red); }
.bridge__mark .ground { stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 2 4; }
.bridge__caption { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--ink-soft); max-width: 22ch; }
.bridge__caption strong { color: var(--navy); font-weight: 600; }
@media (min-width: 1000px) {
  .bridge { grid-template-columns: 1fr minmax(220px, 280px) 1fr; }
  .bridge__center { padding-block: 0; }
}
[data-draw] path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); }

/* ---------- 11. Services list ---------- */
.svc-list { border-top: 1px solid var(--line); counter-reset: svc; }
.svc {
  position: relative; display: grid; gap: var(--s-2);
  grid-template-columns: 1fr;
  padding-block: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.svc__num { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }
.svc__title { font-size: var(--fs-xl); font-weight: 400; transition: transform var(--d-base) var(--ease-out); }
.svc__desc { color: var(--ink-soft); max-width: 52ch; }
.svc__arrow {
  display: none; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong);
  place-items: center; color: var(--navy); justify-self: end; align-self: center;
  transition: background-color var(--d-base), color var(--d-base), border-color var(--d-base), transform var(--d-base) var(--ease-out);
}
.svc__arrow .icon { width: 20px; height: 20px; }
.svc__thumb { display: none; }
.svc::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform var(--d-slow) var(--ease-out);
}
.svc:hover::before, .svc:focus-visible::before { transform: scaleX(1); }
.svc:hover .svc__arrow, .svc:focus-visible .svc__arrow { background: var(--red); border-color: var(--red); color: var(--white); transform: rotate(-45deg); }
@media (min-width: 900px) {
  .svc { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.15fr) 64px; align-items: start; gap: var(--s-4); }
  .svc__title { padding-right: var(--s-3); }
  .svc__arrow { display: grid; }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .svc:hover .svc__title { transform: translateX(8px); }
  .svc__thumb {
    display: block; position: absolute; right: 120px; top: 50%; width: 220px; aspect-ratio: 4 / 3;
    border-radius: var(--radius); overflow: hidden; pointer-events: none; z-index: var(--z-raised);
    opacity: 0; transform: translate3d(0, -40%, 0) rotate(-3deg) scale(.9);
    transition: opacity var(--d-base) ease, transform var(--d-slow) var(--ease-out);
    box-shadow: 0 24px 48px -16px rgba(11, 37, 69, .4);
  }
  .svc__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .svc:hover .svc__thumb { opacity: 1; transform: translate3d(0, -50%, 0) rotate(0) scale(1); }
}

/* ---------- 12. Challenge cards (dark) ---------- */
.cards-4 { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.c-card {
  background: var(--navy); padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  display: grid; gap: var(--s-2); align-content: start; min-height: 280px;
  position: relative; transition: background-color var(--d-base);
}
.c-card:hover { background: var(--navy-800); }
.c-card .icon { width: 32px; height: 32px; color: var(--coral); stroke-width: 1.25; margin-bottom: var(--s-3); }
.c-card h3 { font-size: 1.3rem; font-weight: 400; letter-spacing: -.01em; }
.c-card p { color: var(--on-dark-soft); font-size: var(--fs-sm); }
.c-card__num { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-display); font-size: var(--fs-xs); color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }

/* ---------- 13. Process timeline ---------- */
.process { display: grid; gap: var(--s-5); }
@media (min-width: 1000px) { .process { grid-template-columns: .85fr 1.15fr; gap: var(--s-7); } .process__intro { position: sticky; top: 120px; align-self: start; } }
.steps { position: relative; display: grid; gap: 0; padding-left: 44px; }
.steps__list { margin: 0; padding: 0; list-style: none; }
.steps__rail { position: absolute; left: 11px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.steps__rail i { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(var(--progress, 0)); }
.step { position: relative; padding-bottom: var(--s-5); }
.step:last-child { padding-bottom: 0; }
.step__dot {
  position: absolute; left: -44px; top: 4px; width: 23px; height: 23px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line-strong); display: grid; place-items: center;
  transition: border-color var(--d-base), background-color var(--d-base);
}
.step__dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background-color var(--d-base), transform var(--d-base) var(--ease-out); }
.step.is-active .step__dot { border-color: var(--red); }
.step.is-active .step__dot::after { background: var(--red); transform: scale(1.3); }
.step__meta { font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-mute); }
.step h3 { font-size: var(--fs-xl); font-weight: 400; margin: .4rem 0 .75rem; }
.step p { color: var(--ink-soft); max-width: 54ch; }
.step ul { margin-top: var(--s-2); display: grid; gap: .5rem; }
.step li { display: flex; gap: .75rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.step li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--red); margin-top: .8em; }

/* ---------- 14. Audience tabs ---------- */
.tabs__list {
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  margin-bottom: var(--s-5); position: relative; max-width: 100%;
}
.tabs__list button {
  position: relative; z-index: 1; min-height: 44px; padding: .6rem 1.25rem; border: 0; background: none; border-radius: 999px;
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft);
  transition: color var(--d-base);
}
.tabs__list button[aria-selected="true"] { color: var(--white); }
.tabs__pill {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--navy);
  width: var(--pill-w, 50%); transform: translateX(var(--pill-x, 4px));
  transition: transform var(--d-slow) var(--ease-out), width var(--d-slow) var(--ease-out);
}
.tabs__panel { display: grid; gap: var(--s-5); }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-entering > * { animation: panelIn var(--d-slow) var(--ease-out) both; }
.tabs__panel.is-entering > *:nth-child(2) { animation-delay: 80ms; }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } }
@media (min-width: 1000px) { .tabs__panel { grid-template-columns: 1.1fr .9fr; gap: var(--s-7); align-items: start; } }
.quote {
  font-family: var(--font-display); font-weight: 300; font-size: var(--fs-xl); line-height: 1.4; letter-spacing: -.01em;
  position: relative; padding-left: var(--s-4); border-left: 2px solid var(--red);
}
.checklist { display: grid; gap: var(--s-2); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: .75rem; align-items: start; color: var(--ink-soft); }
.checklist .icon { width: 22px; height: 22px; color: var(--red); margin-top: .15rem; }
.checklist strong { color: var(--navy); font-weight: 600; display: block; }
.panel-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); display: grid; gap: var(--s-4); }

/* ---------- 15. Story / image split ---------- */
.split { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-7); } .split--rev > :first-child { order: 2; } }
.media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--mist);
  aspect-ratio: 4 / 5;
}
.media--wide { aspect-ratio: 16 / 10; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media__tag {
  position: absolute; left: var(--s-3); bottom: var(--s-3); z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--navy); font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em;
}
.media__tag .icon { width: 16px; height: 16px; color: var(--red); }
.big-quote { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-2xl); line-height: 1.2; letter-spacing: -.025em; }
.big-quote em { font-style: normal; color: var(--red); }
.signature { margin-top: var(--s-4); display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--ink-soft); }
.signature svg { width: 44px; height: auto; }

/* ---------- 15b. Global medical fairs ---------- */
.fairs__title { color: var(--red); }
.fairs__lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink); max-width: 56ch; }
.fairs__dl { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: var(--s-4); }
.fairs__dl .icon--dl { width: 18px; height: 18px; transition: transform var(--d-base) var(--ease-out); }
.fairs__dl .btn:hover .icon--dl { transform: translateY(3px); }
.fairs__dl-note { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }

.fairs__marquee {
  --gap: 1.25rem;
  display: flex; overflow: hidden;
  padding-block: .75rem 1.5rem; /* room for hover lift + shadow */
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.fairs__track {
  display: flex; flex: none; gap: var(--gap); padding-right: var(--gap);
  margin: 0; list-style: none; align-items: stretch;
  animation: marquee 92s linear infinite;
}
.fairs__marquee:hover .fairs__track,
.fairs__marquee:focus-within .fairs__track,
.fairs__marquee.is-paused .fairs__track { animation-play-state: paused; }
.fairs__track > li { display: flex; }

.fair {
  width: 300px; display: flex; flex-direction: column; gap: .5rem;
  padding: 1.6rem 1.6rem 1.5rem;
  background: var(--mist); border: 1px solid transparent; border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: transform var(--d-base) var(--ease-out), background-color var(--d-base), box-shadow var(--d-base), border-color var(--d-base);
}
.fair:hover, .fair:focus-visible { transform: translateY(-5px); background: var(--white); border-color: var(--line); box-shadow: 0 22px 36px -26px rgba(11, 37, 69, .45); }
.fair small { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.fair h3 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; color: var(--red); margin-top: .15rem; }
.fair__date { font-weight: 600; font-size: var(--fs-sm); color: var(--navy); }
.fair p { font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-soft); }
.fair__visit { margin-top: auto; padding-top: .75rem; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--red); }
.fair__visit .icon { width: 16px; height: 16px; transition: transform var(--d-base) var(--ease-out); }
.fair:hover .fair__visit .icon { transform: translate(2px, -2px); }
@media (max-width: 480px) { .fair { width: 264px; } }

.fairs__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; margin-top: var(--s-2); }
.fairs__note { font-size: var(--fs-xs); color: var(--ink-mute); max-width: 80ch; }
.fairs__pause {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem;
  background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft);
  transition: border-color var(--d-fast), color var(--d-fast), background-color var(--d-fast);
}
.fairs__pause:hover { border-color: var(--navy); color: var(--navy); background: var(--mist); }
.fairs__pause .icon { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .fairs__marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; padding-inline: var(--gutter); }
  .fairs__track { animation: none; }
  .fairs__track[aria-hidden="true"], .fairs__pause { display: none; }
}

/* ---------- 16. CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--white);
  padding-block: clamp(5rem, 3.5rem + 7vw, 10rem);
}
.cta__arches { position: absolute; right: -8%; bottom: -30%; width: min(900px, 110vw); z-index: -1; opacity: .9; pointer-events: none; }
.cta__arches path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 9; }
.cta__arches .arch-l { stroke: rgba(255, 255, 255, .06); }
.cta__arches .arch-r { stroke: rgba(255, 90, 95, .22); }
.cta__title { font-size: var(--fs-3xl); max-width: 16ch; }
.cta__inner { display: grid; gap: var(--s-4); }
.cta .lede { color: var(--on-dark-soft); }

/* ---------- 17. Service detail (services page) ---------- */
.detail { display: grid; gap: var(--s-4); padding-block: var(--s-6); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.detail:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 1000px) { .detail { grid-template-columns: 90px 1fr 1fr; gap: var(--s-5); } }
.detail__num { font-family: var(--font-display); font-weight: 200; font-size: var(--fs-2xl); color: var(--red); line-height: 1; font-variant-numeric: tabular-nums; }
.detail h2 { font-size: var(--fs-2xl); margin-bottom: var(--s-3); }
.detail h3 { font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-mute); margin-bottom: var(--s-2); }
.deliverables { display: grid; gap: .25rem; border-top: 1px solid var(--line); }
.deliverables li { padding: .9rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .9rem; align-items: baseline; font-size: var(--fs-sm); }
.deliverables li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red); transform: translateY(-2px); }

.subnav {
  position: sticky; top: 68px; z-index: 50; background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
  /* slide with a GPU transform (no layout work while scrolling) */
  transform: translate3d(0, 0, 0); will-change: transform;
  transition: transform var(--d-slow) var(--ease-out);
}
body.nav-hidden .subnav { transform: translate3d(0, -68px, 0); }
.subnav ul { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-block: .5rem; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--ink-soft);
  transition: background-color var(--d-fast), color var(--d-fast);
}
.subnav a:hover { color: var(--navy); background: var(--mist); }
.subnav a.is-current { color: var(--white); background: var(--navy); }

/* Regulatory table */
.reg-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.reg-table caption { text-align: left; font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--s-2); caption-side: bottom; padding-top: var(--s-2); }
.reg-table th, .reg-table td { text-align: left; padding: 1rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.reg-table thead th { font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; border-bottom-color: var(--navy); }
.reg-table tbody th { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.risk { display: inline-flex; gap: 3px; margin-right: .5rem; vertical-align: middle; }
.risk i { width: 6px; height: 14px; border-radius: 2px; background: var(--line); }
.risk i.on { background: var(--red); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding: 1.5rem 0; min-height: 64px;
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform var(--d-base) var(--ease-out), background-color var(--d-base), color var(--d-base), border-color var(--d-base); }
.faq summary .plus .icon { width: 18px; height: 18px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--navy); color: var(--white); border-color: var(--navy); }
.faq summary:hover .plus { border-color: var(--navy); }
.faq .faq__a { padding-bottom: 1.75rem; color: var(--ink-soft); max-width: 70ch; }
.faq .faq__a p + p { margin-top: .75rem; }
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height var(--d-slow) var(--ease-out), content-visibility var(--d-slow) allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- 18. Principles / values (about) ---------- */
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); border-top: 0; } }
.principle { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--s-2); align-content: start; }
@media (min-width: 900px) { .principle { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: 0; border-top: 1px solid var(--navy); } .principle + .principle { padding-left: var(--s-4); border-left: 1px solid var(--line); } }
.principle__vs { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--ink-mute); }
.principle__vs s { text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.principle h3 { font-size: var(--fs-xl); font-weight: 400; }
.principle p { color: var(--ink-soft); font-size: var(--fs-sm); }

.timeline-h { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .timeline-h { grid-template-columns: repeat(3, 1fr); } }
.th-item { border-top: 1px solid var(--line-dark); padding-top: var(--s-3); display: grid; gap: .5rem; position: relative; }
.th-item::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.th-item b { font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); font-weight: 600; }
.th-item h3 { font-size: var(--fs-xl); font-weight: 400; }
.th-item p { color: var(--on-dark-soft); font-size: var(--fs-sm); }

/* ---------- 19. Insights ---------- */
.posts { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, 1fr); } .post--feature { grid-column: span 2; } }
.post {
  display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--d-base), transform var(--d-base) var(--ease-out), border-color var(--d-base);
}
.post:hover { box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.post__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); position: relative; }
.post--feature .post__media { aspect-ratio: 16 / 8; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post:hover .post__media img { transform: scale(1.04); }
.post__body { padding: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.post__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: var(--fs-xs); color: var(--ink-mute); font-family: var(--font-display); letter-spacing: .06em; }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 .7rem; border-radius: 999px; background: var(--mist); color: var(--navy); font-weight: 600; font-size: .75rem; letter-spacing: .04em; }
.chip--soon { background: rgba(215, 38, 61, .08); color: var(--red); }
.post h2, .post h3 { font-size: 1.35rem; font-weight: 400; letter-spacing: -.015em; line-height: 1.25; }
.post--feature h2 { font-size: var(--fs-xl); }
.post p { color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- 19b. Resources, article cards & article pages ---------- */
/* Bilingual long-form: show the block matching the page language */
[data-lang-block="pt"] { display: none !important; }
html[lang^="pt"] [data-lang-block="pt"] { display: block !important; }
html[lang^="pt"] [data-lang-block="en"] { display: none !important; }

.resources { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .resources { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .resources { grid-template-columns: repeat(3, 1fr); } }
.rcard { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--d-base), border-color var(--d-base); }
.rcard:hover { box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.rcard__cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); position: relative; }
.rcard__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease-out); box-shadow: 0 0 0 1px var(--line) inset; }
.rcard:hover .rcard__cover img { transform: scale(1.04); }
.rcard__body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; }
.rcard__body h3 { font-size: 1.3rem; font-weight: 400; letter-spacing: -.015em; line-height: 1.25; }
.rcard__body > p:not(.post__meta) { color: var(--ink-soft); font-size: var(--fs-sm); flex: 1; }
.rcard__body .btn { margin-top: var(--s-1); }
.rcard__cover--tool, .acard__cover { display: grid; place-items: center; color: var(--white); background: radial-gradient(ellipse at 80% 110%, rgba(215, 38, 61, .45), transparent 60%), var(--navy); }
.cov__arch { position: absolute; right: -8%; bottom: -30%; width: 70%; opacity: .9; }
.cov__arch path { fill: none; stroke-width: 9; stroke-linecap: round; }
.cov__arch .arch-l { stroke: rgba(255, 255, 255, .08); }
.cov__arch .arch-r { stroke: rgba(255, 90, 95, .25); }
.cov__big { font-family: var(--font-display); font-weight: 200; font-size: 4.5rem; line-height: 1; letter-spacing: -.04em; position: relative; }
.cov__big small { font-size: .35em; font-weight: 600; color: var(--coral); margin-left: .1em; }
.cov__code { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); letter-spacing: -.03em; position: relative; }
.cov__label { position: absolute; left: 1.2rem; bottom: 1rem; font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }

.articles { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .articles { grid-template-columns: repeat(2, 1fr); } }
.acard { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; background: var(--white); transition: box-shadow var(--d-base), border-color var(--d-base), transform var(--d-base) var(--ease-out); }
.acard:hover { box-shadow: var(--shadow-card); border-color: var(--line-strong); transform: translateY(-3px); }
.acard__cover { aspect-ratio: 16 / 7; position: relative; overflow: hidden; }
.acard__cover--red { background: radial-gradient(ellipse at 20% 120%, rgba(255, 90, 95, .55), transparent 60%), var(--navy-800); }
.acard__body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.acard__t { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 400; letter-spacing: -.015em; line-height: 1.25; color: var(--navy); }
.acard__p { color: var(--ink-soft); font-size: var(--fs-sm); }
.acard .link-arrow { align-self: flex-start; }
.acard:hover .link-arrow { color: var(--red); background-size: 100% 1px; }

.art-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: clamp(8rem, 6rem + 6vw, 11rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem); }
.art-hero__arch { position: absolute; right: -6%; bottom: -35%; width: min(620px, 80vw); pointer-events: none; }
.art-hero__arch path { fill: none; stroke-width: 9; stroke-linecap: round; }
.art-hero__arch .arch-l { stroke: rgba(255, 255, 255, .06); }
.art-hero__arch .arch-r { stroke: rgba(255, 90, 95, .2); }
.art-hero__meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: var(--s-4); font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: .06em; color: var(--on-dark-soft); position: relative; }
.chip--dark { background: rgba(255, 255, 255, .12); color: var(--white); }
.art-hero__title { position: relative; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.3rem); font-weight: 300; line-height: 1.12; max-width: 24ch; margin-top: var(--s-3); }
.art { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1080px) { .art { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-7); } .art__side { position: sticky; top: 100px; } }
.art__main { min-width: 0; }
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-soft); }
.prose .dek { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 300; line-height: 1.55; color: var(--navy); padding-bottom: var(--s-4); margin-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.prose h2 { font-size: 1.5rem; font-weight: 500; color: var(--navy); margin: 2.2rem 0 .8rem; letter-spacing: -.015em; }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.3rem; display: grid; gap: .55rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: ""; position: absolute; left: .2rem; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.prose ol li::marker { color: var(--red); font-family: var(--font-display); font-weight: 600; }
.prose .note { margin-top: 1rem; padding: .9rem 1.1rem; border-left: 3px solid var(--red); background: var(--mist); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--fs-sm); }
.art-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: var(--fs-sm); }
.art-table th, .art-table td { text-align: left; vertical-align: top; padding: .8rem .7rem; border-bottom: 1px solid var(--line); }
.art-table thead th { font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); border-bottom-color: var(--navy); }
.art-table tbody th { color: var(--navy); font-weight: 600; width: 38%; }
.art__cta { margin-top: var(--s-6); padding: var(--s-4); border-radius: var(--radius-lg); background: var(--mist); display: grid; gap: .6rem; max-width: 70ch; }
.art__cta-t { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--navy); }
.art__cta p:not(.art__cta-t) { color: var(--ink-soft); }
.art__cta .btn-row { margin-top: .4rem; }
.art__side { display: grid; gap: var(--s-3); }
.side-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; background: var(--white); }
.side-box--dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.side-box__h { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .8rem; }
.side-box--dark .side-box__h { color: var(--coral); }
.side-box--dark ul { display: grid; gap: .65rem; }
html[lang^="pt"] .side-box--dark ul[data-lang-block="pt"] { display: grid !important; }
.side-box--dark li { font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .82); padding-left: 1rem; position: relative; }
.side-box--dark li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.side-box--dark li strong { color: var(--white); font-weight: 600; }
.src-list { display: grid; gap: .5rem; }
.src-list a { font-size: .86rem; color: var(--navy); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; line-height: 1.4; display: inline-block; }
.src-list a:hover { color: var(--red); text-decoration-color: currentColor; }
.side-dl { display: grid; gap: .6rem; text-decoration: none; color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: .92rem; line-height: 1.35; }
.side-dl img { border-radius: var(--radius); border: 1px solid var(--line); transition: transform var(--d-base) var(--ease-out); }
.side-dl:hover img { transform: translateY(-2px); }
.side-dl:hover span { color: var(--red); }

/* ---------- 20. Contact ---------- */
.contact-grid { display: grid; gap: var(--s-5); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-7); } }
.contact-cards { display: grid; gap: var(--s-2); }
.contact-card {
  display: grid; grid-template-columns: 52px 1fr auto; gap: var(--s-2); align-items: center;
  padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; background: var(--white);
  transition: border-color var(--d-base), box-shadow var(--d-base);
}
.contact-card:hover { border-color: var(--navy); box-shadow: var(--shadow-card); }
.contact-card__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; color: var(--red); }
.contact-card small { display: block; font-size: var(--fs-xs); color: var(--ink-mute); font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.contact-card strong { font-weight: 500; font-size: var(--fs-base); overflow-wrap: anywhere; }
.contact-card > .icon { color: var(--ink-mute); transition: transform var(--d-base) var(--ease-out), color var(--d-base); }
.contact-card:hover > .icon { transform: translate(2px, -2px); color: var(--red); }

.form { display: grid; gap: var(--s-3); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 3rem); }
.form__row { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; align-content: start; }
.field label, .field legend { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.field .req { color: var(--red); margin-left: .15rem; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-mute); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 37, 69, .15); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-mute); }
.field__error { font-size: var(--fs-xs); color: var(--red); font-weight: 600; display: none; }
.field.has-error .field__error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .45rem; }
.segmented label {
  position: relative; display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .75rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-weight: 500; font-family: var(--font-body); font-size: var(--fs-sm);
  transition: border-color var(--d-fast), background-color var(--d-fast);
}
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: border var(--d-fast); }
.segmented label:has(input:checked) { border-color: var(--navy); background: var(--mist); }
.segmented label:has(input:checked)::before { border: 5px solid var(--red); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.form__note { font-size: var(--fs-xs); color: var(--ink-mute); }
.form__status { font-size: var(--fs-sm); padding: .9rem 1rem; border-radius: var(--radius); background: var(--mist); color: var(--navy); display: none; }
.form__status.is-visible { display: block; }

/* Free-assessment form additions */
.form__lede { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.6; }
.form__mfr { display: grid; gap: var(--s-3); padding: var(--s-3); border-radius: var(--radius-lg); background: var(--mist); }
.form__mfr[hidden] { display: none; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-top: .45rem; }
.checks label {
  display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .6rem .9rem; cursor: pointer;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--navy);
  transition: border-color var(--d-fast), background-color var(--d-fast);
}
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); flex: none; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--navy); }
.checks label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.contact-card__icon--wa { color: #128C7E; background: rgba(37, 211, 102, .12); }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; z-index: 90;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .55rem; min-height: 56px; padding: 0 1.25rem 0 1rem;
  background: var(--navy); color: var(--white); border-radius: 999px; text-decoration: none;
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(6, 21, 40, .55);
  opacity: 0; transform: translateY(16px) scale(.96);
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out), background-color var(--d-fast);
}
.wa-float.is-in { opacity: 1; transform: none; }
.wa-float:hover { background: var(--navy-700); }
.wa-float .icon { width: 24px; height: 24px; color: #25D366; stroke-width: 1.75; }
.wa-float:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Distributor vetting (services page) */
.vet { margin-top: var(--s-4); margin-bottom: var(--s-6); padding: clamp(1.5rem, 1rem + 2vw, 3rem); background: var(--navy); color: var(--white); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.vet__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
@media (min-width: 900px) { .vet__head { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s-6); } }
.vet__head h2 { font-size: var(--fs-2xl); }
.vet__head h2 em { font-weight: 600; color: var(--coral); }
.vet__head p { color: var(--on-dark-soft); }
.vet__grid { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .vet__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .vet__grid { grid-template-columns: repeat(4, 1fr); } }
.vet__item { background: var(--navy); padding: 1.5rem; display: grid; gap: .5rem; align-content: start; transition: background-color var(--d-base); }
.vet__item:hover { background: var(--navy-800); }
.vet__num { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; color: var(--coral); }
.vet__item h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.vet__item p { font-size: var(--fs-sm); color: var(--on-dark-soft); line-height: 1.55; }
.vet__foot { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.vet__foot p { color: var(--on-dark-soft); font-size: var(--fs-sm); max-width: 62ch; }
.vet__foot p strong { color: var(--white); font-weight: 600; }

/* ---------- 20b. Brazil Entry Estimator ---------- */
.est { display: grid; gap: var(--s-5); align-items: start; }
.est > * { min-width: 0; }
.fact-r > *, .gt__row > *, .docs li > * { min-width: 0; }
.fact-r__t, .docs li { overflow-wrap: anywhere; }
.res__body > * { min-width: 0; }
.res__cta .btn { white-space: normal; text-align: center; line-height: 1.3; max-width: 100%; }
@media (max-width: 520px) {
  .fact-r { grid-template-columns: 30px 1fr; }
  .fact-r__s { grid-column: 2; justify-self: start; margin-top: -.1rem; }
  .res__head, .res__body { padding-left: 1.1rem; padding-right: 1.1rem; }
  .res__time { text-align: left; }
}
@media (min-width: 1080px) { .est { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--s-6); } .est__result { position: sticky; top: 92px; } }
.est__form { display: grid; gap: var(--s-3); }
.est__q { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); padding: clamp(1.1rem, .8rem + 1vw, 1.6rem); margin: 0; min-width: 0; }
.est__q[hidden] { display: none; }
.est__q legend { display: flex; align-items: center; gap: .7rem; float: left; width: 100%; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; color: var(--navy); margin-bottom: .9rem; padding: 0; }
.est__q legend + * { clear: both; }
.est__n { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.est__hint { font-size: var(--fs-xs); color: var(--ink-mute); margin: -.4rem 0 .8rem; clear: both; }
.opts { display: grid; gap: .5rem; clear: both; }
.opts--2 { grid-template-columns: repeat(2, 1fr); }
.opts--3 { grid-template-columns: 1fr; }
.opts--4 { grid-template-columns: repeat(2, 1fr); }
.opts--5 { grid-template-columns: repeat(5, 1fr); }
@media (min-width: 640px) { .opts--3 { grid-template-columns: repeat(3, 1fr); } .opts--4 { grid-template-columns: repeat(4, 1fr); } }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box {
  display: flex; flex-direction: column; gap: .2rem; height: 100%; min-height: 52px; padding: .8rem .9rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white);
  transition: border-color var(--d-fast), background-color var(--d-fast), box-shadow var(--d-base), transform var(--d-base) var(--ease-out);
}
.opt__box .icon { width: 22px; height: 22px; color: var(--ink-mute); margin-bottom: .35rem; transition: color var(--d-fast); }
.opt__box b { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--navy); line-height: 1.25; }
.opt__box small { font-size: .75rem; color: var(--ink-mute); line-height: 1.35; }
.opt--sm .opt__box { align-items: center; text-align: center; justify-content: center; }
.opt:hover .opt__box { border-color: var(--navy); }
.opt input:checked + .opt__box { border-color: var(--navy); background: var(--navy); box-shadow: 0 10px 22px -14px rgba(11, 37, 69, .6); }
.opt input:checked + .opt__box b { color: var(--white); }
.opt input:checked + .opt__box small { color: rgba(255, 255, 255, .72); }
.opt input:checked + .opt__box .icon { color: var(--coral); }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt:active .opt__box { transform: scale(.98); }
.opt--check input:checked + .opt__box { background: var(--white); border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.opt--check input:checked + .opt__box b { color: var(--red); }
.opt--check input:checked + .opt__box small { color: var(--ink-soft); }

.res { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.res__head { background: var(--navy); color: var(--white); padding: 1.3rem 1.5rem 1.4rem; position: relative; overflow: hidden; }
.res__head::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 220px; height: 150px; border: 14px solid rgba(255, 90, 95, .14); border-bottom: 0; border-radius: 120px 120px 0 0; }
.res__eyebrow { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.res__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; position: relative; z-index: 1; }
.res__regime { font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.05; }
.res__regime small { display: inline-block; margin-left: .6rem; font-size: .9rem; font-weight: 600; color: var(--coral); letter-spacing: 0; }
.res__meta { font-size: var(--fs-sm); color: rgba(255, 255, 255, .72); margin-top: .3rem; }
.res__time { text-align: right; }
.res__time small { display: block; font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.res__time b { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.res__body { padding: 1.2rem 1.5rem 1.5rem; display: grid; gap: 1.3rem; }
.res__h { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .6rem; }
.res__h--sub { margin-top: .8rem; }

.efacts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact-r { display: grid; grid-template-columns: 30px 1fr auto; gap: .75rem; align-items: start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.fact-r__i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--mist); color: var(--ink-mute); }
.fact-r__i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact-r__t b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--navy); line-height: 1.3; }
.fact-r__t small { display: block; font-size: .78rem; color: var(--ink-soft); line-height: 1.45; margin-top: .1rem; }
.fact-r__s { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; padding: .28rem .6rem; border-radius: 999px; background: var(--mist); color: var(--ink-soft); margin-top: .1rem; }
.t-req .fact-r__i { background: rgba(215, 38, 61, .1); color: var(--red); }
.t-req .fact-r__s { background: var(--red); color: var(--white); }
.t-ok .fact-r__i { background: var(--mist); color: var(--navy); }
.t-star .fact-r__i { background: var(--navy); color: var(--coral); }
.t-star .fact-r__s { background: var(--navy); color: var(--white); }
.t-warn .fact-r__s { background: #FFF1E8; color: #9A4A12; }
.t-warn .fact-r__i { background: #FFF1E8; color: #9A4A12; }

.gt__row { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; gap: .7rem; align-items: center; min-height: 26px; }
.gt__label { font-size: .78rem; color: var(--navy); line-height: 1.25; }
.gt__track { position: relative; height: 12px; border-radius: 3px; background: var(--mist); }
.gt__bar, .gt__ghost { position: absolute; top: 0; bottom: 0; border-radius: 3px; transform-origin: left; }
.gt__ghost { background: rgba(11, 37, 69, .18); }
.gt__bar { background: var(--navy); }
.gt__bar.hl { background: var(--red); }
.gt__ghost.hl { background: rgba(215, 38, 61, .25); }
.gt__axis { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; gap: .7rem; margin-top: .3rem; }
.gt__ticks { position: relative; height: 14px; }
.gt__ticks span { position: absolute; transform: translateX(-50%); font-family: var(--font-display); font-size: .68rem; font-weight: 600; color: var(--ink-mute); white-space: nowrap; }
.gt__ticks span:first-child { transform: none; }
.gt__legend { font-size: .72rem; color: var(--ink-mute); margin-top: .5rem; }
.res.is-anim .gt__bar, .res.is-anim .gt__ghost { animation: gtGrow .8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
.res.is-anim .fact-r { animation: panelIn .5s var(--ease-out) both; }
@keyframes gtGrow { from { transform: scaleX(0); } }

.docs ul { display: grid; gap: .35rem; }
.docs li { display: grid; grid-template-columns: 14px 1fr; gap: .55rem; font-size: .84rem; color: var(--ink-soft); line-height: 1.45; }
.docs li::before { content: ""; width: 10px; height: 10px; margin-top: .3rem; border: 1.5px solid var(--navy); border-radius: 2px; }
.docs .keep li::before { border-style: dashed; border-color: var(--ink-mute); }
.res__cta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; padding-top: .3rem; }
.res__disc { font-size: .72rem; color: var(--ink-mute); line-height: 1.5; border-top: 1px solid var(--line); padding-top: .9rem; }

/* ---------- 20c. Visual system: duotone photography ---------- */
/* Every photo is mapped to one navy→mist duotone (SVG filter #mb-duo, injected by main.js),
   then lifted with a red accent corner so all imagery reads as one family. */
.js-duo .hero__media img,
.js-duo .hero-card__img img,
.js-duo .media img,
.js-duo .svc__thumb img,
.js-duo .post__media img { filter: url(#mb-duo) contrast(1.06); }
.hero-card__img::before, .media::before, .svc__thumb::before, .post__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(215, 38, 61, .42) 0%, rgba(215, 38, 61, 0) 40%),
    linear-gradient(0deg, rgba(11, 37, 69, .22) 0%, rgba(11, 37, 69, 0) 45%);
  mix-blend-mode: multiply;
}
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 88% 92%, rgba(215, 38, 61, .38), rgba(215, 38, 61, 0) 70%);
  mix-blend-mode: screen;
}
.hero__media::after { z-index: 1; }

/* ---------- 20d. Data visuals: world route map & Brazil hub map ---------- */
.rmap { margin: 0 0 var(--s-6); position: relative; }
.rmap__svg { width: 100%; height: auto; overflow: visible; }
.rmap__land { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 3.4; stroke-linecap: round; }
.rmap__arc { fill: none; stroke: var(--coral); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .85; }
.rmap__pulse { fill: #fff; filter: drop-shadow(0 0 4px rgba(255, 90, 95, .9)); }
.rmap__node circle { fill: var(--navy); stroke: var(--coral); stroke-width: 1.6; }
.rmap__node text, .rmap__hub text { font-family: var(--font-display); font-size: 11px; font-weight: 600; fill: rgba(255, 255, 255, .78); letter-spacing: .04em; }
.rmap__hub text { font-size: 13px; fill: #fff; }
.rmap__hub .dot, .brmap__hub .dot { fill: var(--red); stroke: #fff; stroke-width: 2; }
.rmap__hub .ping, .brmap__hub .ping { fill: none; stroke: var(--coral); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: mapPing 2.6s var(--ease-out) infinite; }
.rmap__hub .ping--2, .brmap__hub .ping--2 { animation-delay: 1.3s; }
@keyframes mapPing { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.rmap__cap { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center; margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--on-dark-soft); }
.rmap__cap > span:last-child { flex-basis: 100%; }
@media (min-width: 900px) { .rmap__cap > span:last-child { flex-basis: auto; margin-left: auto; } }
.rmap__key, .brmap-legend li { display: inline-flex; align-items: center; gap: .5rem; }
.k-hub, .k-node, .k-cap, .k-route { display: inline-block; flex: none; }
.k-hub { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.k-node { width: 10px; height: 10px; border-radius: 50%; background: var(--navy); border: 1.6px solid var(--coral); }
.k-cap { width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.k-route { width: 22px; height: 0; border-top: 2px solid var(--red); }

.brmap-block { display: grid; gap: var(--s-5); align-items: center; padding: var(--s-6) 0; border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .brmap-block { grid-template-columns: .9fr 1.1fr; gap: var(--s-7); } }
.brmap-block h2 { font-size: var(--fs-2xl); }
.brmap-block h2 em { font-style: normal; font-weight: 600; color: var(--red); }
.brmap-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.brmap { position: relative; }
.brmap__svg { width: 100%; height: auto; max-height: 620px; overflow: visible; }
.brmap .st { fill: #E4EAF0; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; transition: fill var(--d-base); }
.brmap .st:hover { fill: #CBD6E2; }
.brmap .st--hub, .brmap .st--hub:hover { fill: var(--navy); }
.brmap .st.is-covered { fill: #B9C8D8; }
.brmap__arc { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .9; }
.brmap__cap { fill: var(--navy); stroke: #fff; stroke-width: 1.5; }
.brmap__pulse { fill: var(--red); }
.brmap__uf { font-family: var(--font-display); font-size: 11px; font-weight: 600; fill: var(--ink-mute); letter-spacing: .06em; pointer-events: none; }
.brmap__uf--hub { fill: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .rmap__arc, .js [data-reveal] .brmap__arc { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-in-out); transition-delay: calc(var(--i, 0) * 140ms + 300ms); }
  .js .is-in .rmap__arc, .js .is-in .brmap__arc, .js .rmap.is-in .rmap__arc, .js .brmap-block.is-in .brmap__arc { stroke-dashoffset: 0; }
  .js [data-reveal] .rmap__node, .js [data-reveal] .brmap__cap { opacity: 0; transition: opacity .6s ease; transition-delay: calc(var(--i, 0) * 140ms); }
  .js .is-in .rmap__node, .js .is-in .brmap__cap { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rmap__pulse, .brmap__pulse, .rmap__hub .ping, .brmap__hub .ping { display: none; }
}

/* ---------- 21. Footer ---------- */
.footer { background: var(--navy-950); color: var(--on-dark-soft); padding-top: var(--s-7); padding-bottom: max(var(--s-4), env(safe-area-inset-bottom)); font-size: var(--fs-sm); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid { display: grid; gap: var(--s-5); padding-bottom: var(--s-6); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .logo { color: var(--white); --fs: 17px; }
.footer__about { max-width: 34ch; margin-top: var(--s-3); }
.footer h2 { font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--white); font-weight: 600; margin-bottom: var(--s-2); }
.footer ul { display: grid; gap: .1rem; }
.footer ul a { display: inline-flex; min-height: 36px; align-items: center; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); justify-content: space-between; align-items: center; padding-top: var(--s-4); border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); }
.footer__big {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  /* sized so the full word always fits the container (≈ 8.5em wide incl. tracking) */
  font-size: min(9vw, 8.5rem); line-height: .9; color: rgba(255, 255, 255, .04);
  white-space: nowrap; overflow: hidden; margin-top: var(--s-5); user-select: none; text-align: center;
  text-indent: .14em; /* balances the trailing letter-spacing so the word sits centred */
}
.footer__big span { font-weight: 200; }

/* ---------- 22. Motion: load choreography & scroll reveals ---------- */
/* Only hide content when JS is running and motion is welcome. No-JS / reduced motion = fully visible. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span,
  .js .page-hero__title .line > span { transform: translate3d(0, 105%, 0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 250ms); }
  .js .is-loaded .hero__title .line > span,
  .js .is-loaded .page-hero__title .line > span { transform: none; }

  .js [data-load] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
  .js .is-loaded [data-load] { opacity: 1; transform: none; }

  .js .nav { transform: translateY(-100%); }
  .js .is-loaded .nav:not(.is-hidden) { transform: none; }

  .js [data-reveal] {
    opacity: 0; transform: translate3d(0, 32px, 0);
    transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal="fade"] { transform: none; }
  .js [data-reveal="left"] { transform: translate3d(-32px, 0, 0); }
  .js [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
  .js [data-reveal="scale"] { transform: scale(.96); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Image curtain: a panel slides away (transform-only), image settles from 1.12 */
  .js [data-reveal="curtain"] { opacity: 1; transform: none; }
  .js [data-reveal="curtain"]::after {
    content: ""; position: absolute; inset: 0; z-index: 3; background: var(--mist);
    transform-origin: top; transition: transform 1.2s var(--ease-in-out);
  }
  .js .section--dark [data-reveal="curtain"]::after { background: var(--navy-800); }
  .js [data-reveal="curtain"] img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
  .js [data-reveal="curtain"].is-in::after { transform: scaleY(0); }
  .js [data-reveal="curtain"].is-in img { transform: scale(1); }

  /* Line-draw dividers */
  .js [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
  .js [data-reveal="line"].is-in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .hero__media img { transform: none !important; }
  .hero__grid span, .hero__bottom::before { transform: none; }
  @view-transition { navigation: none; }
}

/* Page transitions (cross-document view transitions; progressive) */
::view-transition-old(root) { animation: vtOut 280ms var(--ease-in) both; }
::view-transition-new(root) { animation: vtIn 520ms var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- 23. Utilities ---------- */
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.stack-2 > * + * { margin-top: var(--s-2); }
.stack-3 > * + * { margin-top: var(--s-3); }
.stack-4 > * + * { margin-top: var(--s-4); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.center { text-align: center; }
.maxw-60 { max-width: 60ch; }

@media print {
  .nav, .menu, .hero__media, .cta__arches, .marquee, .footer__big { display: none !important; }
  .hero, .page-hero, .section--dark, .cta, .footer { background: #fff !important; color: #000 !important; }
}
