/* ==========================================================================
   AFRIMED — "Clinical Engineering Sheet" design system
   Brand colours unchanged: #6fceea / #4ab0d4 / #d4f1fb / #0a0a0a / #ffffff
   Type: Archivo (display, engineered grotesque) · Public Sans (body, public-
   sector clarity) · IBM Plex Mono (spec-sheet labels, codes and figures)
   ========================================================================== */

:root {
    --brand: #6fceea;
    --brand-dark: #4ab0d4;
    --brand-light: #d4f1fb;
    --black: #0a0a0a;
    --white: #ffffff;

    /* neutrals (tints of ink) */
    --ink: #0a0a0a;
    --ink-2: #111a1e;
    --ink-3: #18262c;
    --gray-50: #f7f9fa;
    --gray-100: #eef2f4;
    --gray-200: #dfe5e8;
    --gray-300: #c6cfd3;
    --gray-400: #96a3a9;
    --gray-600: #56636a;
    --gray-700: #36424a;
    --gray-800: #1f2a30;
    --paper: #fbfcfc;

    /* gradients built only from brand colours */
    --grad-brand: linear-gradient(120deg, #6fceea 0%, #4ab0d4 100%);
    --grad-flow: linear-gradient(90deg, rgba(111,206,234,0) 0%, #6fceea 45%, #4ab0d4 70%, rgba(74,176,212,0) 100%);
    --grad-ink: linear-gradient(160deg, #0a0a0a 0%, #0f1a1f 55%, #132830 100%);
    --grad-mist: linear-gradient(180deg, #ffffff 0%, #f2fafd 100%);

    --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --f-body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-io: cubic-bezier(.65, 0, .35, 1);

    --wrap: 1320px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --header-h: 72px;
    --strip-h: 0px;
    --hair: 1px solid var(--gray-200);
    --hair-dark: 1px solid rgba(255,255,255,.12);
    --radius: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; border-radius: 2px; }
.visually-hidden, .sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; left: 1rem; top: -100px; z-index: 5000;
    background: var(--ink); color: var(--white); padding: .75rem 1.1rem;
    font-family: var(--f-mono); font-size: .8rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; font-stretch: 108%; }
.display-xl { font-size: clamp(2.6rem, 7.2vw, 6.6rem); font-weight: 800; letter-spacing: -.04em; line-height: .96; font-stretch: 112%; }
.display-l  { font-size: clamp(2.2rem, 5.2vw, 4.6rem); font-weight: 750; letter-spacing: -.035em; line-height: 1; }
.display-m  { font-size: clamp(1.8rem, 3.6vw, 3.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.display-s  { font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--gray-700); font-weight: 400; }
.body-l { font-size: 1.075rem; line-height: 1.75; color: var(--gray-700); }
.muted { color: var(--gray-600); }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.accent { color: var(--brand-dark); }
.on-dark .accent, .is-dark .accent { color: var(--brand); }
.hl {
    background-image: linear-gradient(transparent 62%, rgba(111,206,234,.45) 62%);
    background-repeat: no-repeat; background-size: 0% 100%;
    transition: background-size 1.1s var(--ease-out) .25s;
}
.is-in .hl, .hl.is-in { background-size: 100% 100%; }
.measure { max-width: 62ch; }
.measure-s { max-width: 46ch; }

/* ---------- Layout ---------- */
.wrap, .container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: 920px; }
.sect, .section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; position: relative; }
.sect-s, .section-sm { padding: clamp(3rem, 6vw, 5rem) 0; position: relative; }
.sect--tint, .bg-gray { background: var(--gray-50); }
.sect--mist { background: var(--grad-mist); }
.sect--ink, .bg-black, .is-dark { background: var(--grad-ink); color: var(--white); }
.sect--ink .lead, .sect--ink .body-l, .is-dark .lead, .is-dark .body-l { color: rgba(255,255,255,.72); }
.sect--ink .muted, .is-dark .muted { color: rgba(255,255,255,.55); }
.bg-brand-light { background: var(--brand-light); }
.text-center { text-align: center; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-12 { grid-column: 1 / -1; }
.col-start-7 { grid-column: 7 / span 6; } .col-start-8 { grid-column: 8 / span 5; }
.at-l5 { grid-column: 1 / span 5; } .at-r5 { grid-column: 8 / span 5; } .at-l6 { grid-column: 1 / span 6; } .at-r6 { grid-column: 7 / span 6; } .at-r7 { grid-column: 6 / span 7; }
.o-1 { order: 1; } .o-2 { order: 2; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; }
.align-center { align-items: center; } .align-start { align-items: start; } .align-end { align-items: end; }
.sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
.stack > * + * { margin-top: 1.25rem; }
.stack-s > * + * { margin-top: .6rem; }
.stack-l > * + * { margin-top: 2rem; }
.row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Sheet header (section index) ---------- */
.kicker {
    display: inline-flex; align-items: center; gap: .75rem;
    font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gray-600); margin-bottom: 1.4rem;
}
.kicker b { font-weight: 500; color: var(--brand-dark); }
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .5; }
.is-dark .kicker, .sect--ink .kicker, .on-dark .kicker { color: rgba(255,255,255,.55); }
.is-dark .kicker b, .sect--ink .kicker b, .on-dark .kicker b { color: var(--brand); }
.sheet-head {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem clamp(2rem, 6vw, 6rem);
    align-items: end; margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.sheet-head--stack { grid-template-columns: 1fr; max-width: 860px; }
.sheet-head p { color: var(--gray-700); font-size: 1.05rem; line-height: 1.7; max-width: 56ch; }
.is-dark .sheet-head p, .sect--ink .sheet-head p { color: rgba(255,255,255,.68); }
.rule { height: 1px; background: var(--gray-200); border: 0; }
.is-dark .rule, .sect--ink .rule { background: rgba(255,255,255,.12); }

/* legacy compat labels */
.section-label {
    display: inline-flex; align-items: center; gap: .75rem;
    font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-dark); margin-bottom: 1.2rem;
}
.section-label::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.section-title { font-family: var(--f-display); font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 1.1rem; }
.section-title span { color: var(--brand-dark); }
.is-dark .section-title span, .bg-black .section-title span { color: var(--brand); }
.section-subtitle { font-size: 1.05rem; line-height: 1.7; color: var(--gray-700); max-width: 62ch; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn, .btn-primary, .btn-secondary, .btn-white {
    --bg: var(--ink); --fg: var(--white); --chip: var(--brand); --chip-fg: var(--ink);
    position: relative; display: inline-flex; align-items: center; gap: .9rem;
    padding: .5rem .5rem .5rem 1.35rem; min-height: 52px;
    background: var(--bg); color: var(--fg);
    font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: -.005em; font-stretch: 105%;
    border-radius: 999px; border: 1px solid transparent; overflow: hidden; isolation: isolate;
    transition: color .35s var(--ease-out), border-color .35s, transform .35s var(--ease-out);
    white-space: nowrap;
}
.btn::before, .btn-primary::before, .btn-secondary::before, .btn-white::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: var(--grad-brand); transform: translateX(-101%);
    transition: transform .55s var(--ease-out);
}
.btn .btn-chip, .btn-primary .btn-chip, .btn-secondary .btn-chip, .btn-white .btn-chip {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: var(--chip); color: var(--chip-fg); flex-shrink: 0;
    transition: transform .45s var(--ease-out), background .35s;
}
.btn .btn-chip svg { width: 15px; height: 15px; }
.btn:hover::before, .btn-primary:hover::before, .btn-secondary:hover::before, .btn-white:hover::before { transform: translateX(0); }
.btn:hover, .btn-primary:hover, .btn-white:hover { color: var(--ink); }
.btn:hover .btn-chip { transform: rotate(-45deg); background: var(--ink); color: var(--brand); }
.btn-primary:not(:has(.btn-chip)), .btn-secondary:not(:has(.btn-chip)), .btn-white:not(:has(.btn-chip)) { padding: .5rem 1.5rem; }
.btn--light, .btn-white { --bg: var(--white); --fg: var(--ink); }
.btn--ghost, .btn-secondary { --bg: transparent; --fg: var(--ink); border-color: rgba(10,10,10,.22); }
.btn--ghost:hover, .btn-secondary:hover { color: var(--ink); border-color: transparent; }
.is-dark .btn--ghost, .sect--ink .btn--ghost, .on-dark .btn--ghost { --fg: var(--white); border-color: rgba(255,255,255,.28); }
.is-dark .btn--ghost:hover, .sect--ink .btn--ghost:hover, .on-dark .btn--ghost:hover { color: var(--ink); }
.btn--brand { --bg: var(--brand); --fg: var(--ink); --chip: var(--ink); --chip-fg: var(--brand); }
.btn--brand::before { background: var(--white); }
.btn--sm { min-height: 42px; font-size: .85rem; padding: .35rem .35rem .35rem 1.05rem; }
.btn--sm .btn-chip { width: 32px; height: 32px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--f-display); font-weight: 600; font-size: .95rem;
    padding-bottom: .2rem; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
    transition: background-size .45s var(--ease-out), gap .35s var(--ease-out), color .25s;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.link-arrow:hover { background-size: 0% 1px; background-position: right bottom; gap: .8rem; color: var(--brand-dark); }
.is-dark .link-arrow:hover, .sect--ink .link-arrow:hover { color: var(--brand); }
.link-back {
    display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-mono); font-size: .74rem;
    letter-spacing: .12em; text-transform: uppercase; color: inherit; opacity: .7; transition: opacity .25s, gap .35s var(--ease-out);
}
.link-back:hover { opacity: 1; gap: .85rem; }
.link-back svg { width: 14px; height: 14px; }

/* ---------- Header: solid sticky bar (in the page flow, never covers content) ---------- */
:root { --strip-h: 0px; --header-h: 72px; }
body { padding-top: 0; }

.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--gray-200); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(10, 30, 40, .28); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header.is-scrolled { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header__bar { height: calc(var(--header-h) - 1px); display: flex; align-items: center; gap: 1.5rem; }

.site-header__logo { display: inline-flex; align-items: center; flex-shrink: 0; height: 100%; }
.site-header__logo img { height: 44px; width: auto; max-width: 170px; object-fit: contain; }
.site-header__word { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; color: var(--ink); }
.site-header__word em { font-style: normal; color: var(--brand-dark); }

.site-nav { margin-left: auto; height: 100%; }
.site-nav__list { display: flex; align-items: stretch; height: 100%; gap: .25rem; }
.site-nav__item { position: relative; display: flex; align-items: center; }
.site-nav__link { position: relative; display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .85rem; border-radius: 6px;
    font-family: var(--f-body); font-size: .94rem; font-weight: 500; color: var(--gray-700); white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
.site-nav__link:hover, .has-dd.is-open > .site-nav__link { color: var(--ink); background: var(--gray-100); }
.site-nav__link.is-active { color: var(--ink); font-weight: 600; }
.site-nav__link.is-active::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: -15px; height: 2px; background: var(--brand-dark); border-radius: 2px; }
.site-nav__chev { width: 10px; height: 10px; opacity: .65; transition: transform .2s ease; }
.has-dd.is-open .site-nav__chev { transform: rotate(180deg); }

/* dropdown: the panel starts flush under the item (padding bridges the gap) so moving the pointer down never closes it */
.site-dd { position: absolute; top: 100%; left: -.5rem; z-index: 1001; padding-top: 0; display: none; min-width: 340px; }
.has-dd.is-open > .site-dd { display: block; }
html:not(.js) .has-dd:hover > .site-dd, html:not(.js) .has-dd:focus-within > .site-dd { display: block; }
.site-dd__list { background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(10, 30, 40, .35); padding: .5rem; display: grid; gap: 2px; }
.site-dd__link { display: grid; gap: .15rem; padding: .7rem .85rem; border-radius: 7px; transition: background-color .15s ease; }
.site-dd__link:hover, .site-dd__link:focus-visible { background: var(--gray-50); }
.site-dd__t { font-weight: 600; font-size: .95rem; color: var(--ink); }
.site-dd__d { font-size: .84rem; line-height: 1.45; color: var(--gray-600); }
.site-dd__link.is-current { background: var(--brand-light); }
.site-dd__link.is-current .site-dd__t { color: var(--ink); }

.site-header__end { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.site-header__mini { font-size: .85rem; color: var(--gray-700); }
.site-header__mini:hover { color: var(--ink); text-decoration: underline; }
.site-header__cta { display: inline-flex; align-items: center; height: 42px; padding: 0 1.2rem; border-radius: 6px; background: var(--ink); color: var(--white);
    font-family: var(--f-body); font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.site-header__cta:hover, .site-header__cta.is-active { background: var(--brand-dark); color: var(--white); }

.site-burger { display: none; width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--gray-200); align-items: center; justify-content: center; }
.site-burger:hover { background: var(--gray-100); }
.site-burger__bars { position: relative; width: 20px; height: 14px; display: block; }
.site-burger__bars i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.site-burger__bars i:nth-child(1) { top: 0; } .site-burger__bars i:nth-child(2) { top: 6px; } .site-burger__bars i:nth-child(3) { top: 12px; }
.site-burger[aria-expanded="true"] .site-burger__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-burger[aria-expanded="true"] .site-burger__bars i:nth-child(2) { opacity: 0; }
.site-burger[aria-expanded="true"] .site-burger__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile / tablet panel: fills the screen under the bar, scrolls on its own */
.site-menu { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 999; background: var(--white); border-top: 1px solid var(--gray-200); overflow-y: auto; overscroll-behavior: contain; }
.site-menu[hidden] { display: none; }
.site-menu__inner { padding-top: 1rem; padding-bottom: 2rem; display: flex; flex-direction: column; min-height: 100%; }
.site-menu__list > li { border-bottom: 1px solid var(--gray-200); }
.site-menu__link { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 1rem .25rem; font-family: var(--f-body); font-size: 1.08rem; font-weight: 600; color: var(--ink); text-align: left; }
.site-menu__link.is-active { color: var(--brand-dark); }
.site-menu__toggle .site-nav__chev { width: 12px; height: 12px; }
.site-menu__toggle[aria-expanded="true"] .site-nav__chev { transform: rotate(180deg); }
.site-menu__sub { padding: 0 0 .75rem .25rem; display: grid; }
.site-menu__sub[hidden] { display: none; }
.site-menu__sublink { display: block; padding: .6rem .75rem; border-left: 2px solid var(--gray-200); color: var(--gray-700); font-size: .98rem; }
.site-menu__sublink:hover, .site-menu__sublink.is-active { color: var(--ink); border-left-color: var(--brand-dark); }
.site-menu__foot { margin-top: 1.75rem; display: grid; gap: 1rem; }
.site-menu__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .92rem; color: var(--gray-700); }
.site-menu__meta a:hover { color: var(--ink); text-decoration: underline; }
.site-menu__logout { font-size: .92rem; color: var(--gray-700); text-decoration: underline; }
body.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
    .site-nav__link { padding: 0 .6rem; font-size: .9rem; }
    .site-nav__link.is-active::after { left: .6rem; right: .6rem; }
    .site-header__mini { display: none; }
}
@media (max-width: 1024px) {
    .site-nav, .site-header__mini { display: none; }
    .site-header__end { margin-left: auto; }
    .site-burger { display: inline-flex; }
}
@media (min-width: 1025px) { .site-menu { display: none !important; } }
@media (max-width: 480px) {
    :root { --header-h: 64px; }
    .site-header__logo img { height: 38px; }
    .site-header__cta { display: none; }
}

/* ---------- Gas field canvas ---------- */

.gas-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.page-hero .gas-canvas, .home-hero .gas-canvas, .cta .gas-canvas, .sect--ink .gas-canvas { z-index: -1; }
.sect--ink { isolation: isolate; overflow: hidden; }

/* ---------- Follow the oxygen (pinned) ---------- */
.journey { position: relative; height: 340vh; background: #070d10; color: var(--white); }
.journey__pin { position: sticky; top: 0; height: 100vh; min-height: 620px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate;
    background: radial-gradient(60% 70% at 75% 45%, rgba(111,206,234,.14), transparent 70%), linear-gradient(180deg, #070d10, #0b1a20); }
.journey__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-top: calc(var(--strip-h) + var(--header-h)); }
.journey .kicker { color: rgba(255,255,255,.55); } .journey .kicker b { color: var(--brand); }
.journey__lead { color: rgba(255,255,255,.65); margin-top: 1rem; line-height: 1.65; font-size: .98rem; max-width: 42ch; }
.journey__steps { margin-top: 1.75rem; display: grid; border-top: 1px solid rgba(255,255,255,.12); }
.journey__step { display: grid; grid-template-columns: 2.25rem 1fr; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); opacity: .35; transition: opacity .5s; }
.journey__step.is-on { opacity: 1; }
.journey__n { font-family: var(--f-mono); font-size: .7rem; color: var(--brand); padding-top: .25rem; }
.journey__t { font-family: var(--f-display); font-weight: 650; font-size: 1.05rem; letter-spacing: -.015em; }
.journey__d { grid-column: 2; color: rgba(255,255,255,.62); font-size: .88rem; line-height: 1.55; max-height: 0; overflow: hidden; transition: max-height .6s var(--ease-out), margin .6s; }
.journey__step.is-current .journey__d { max-height: 6em; margin-top: .35rem; }
.journey__meter { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.journey__bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; max-width: 220px; }
.journey__bar i { display: block; height: 100%; width: 100%; background: var(--grad-brand); transform-origin: left; transform: scaleX(0); }
.journey__art { position: relative; }
.journey__svg { width: 100%; height: auto; overflow: visible; }
.journey__svg--v { display: none; }
.journey__grid-lines line { stroke: rgba(255,255,255,.04); stroke-width: 1; }
.journey__pipe { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.journey__gas { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.journey__glow { fill: none; stroke-width: 14; stroke-linecap: round; opacity: .55; }
.journey__kit { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.2; stroke-linejoin: round; }
.journey__node .journey__ring { fill: #070d10; stroke: rgba(255,255,255,.25); stroke-width: 1.5; transition: stroke .4s, r .4s; }
.journey__node .journey__dot { fill: rgba(255,255,255,.3); transition: fill .4s; }
.journey__node .journey__lbl { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; fill: rgba(255,255,255,.35); transition: fill .4s; }
.journey__node.is-on .journey__ring { stroke: var(--brand); }
.journey__node.is-on .journey__dot { fill: var(--brand); }
.journey__node.is-on .journey__lbl { fill: var(--white); }
.journey__node.is-on .journey__ring { animation: node-pulse 2s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes node-pulse { 0% { stroke-opacity: 1; } 100% { stroke-opacity: .3; } }
.journey__p { fill: #bff0ff; }
.journey__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: clamp(1rem, 3vh, 2rem); padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.journey__foot .mono { color: rgba(255,255,255,.45); }
.journey .link-arrow { color: var(--white); }

@media (max-width: 860px) {
    .journey { height: 420vh; }
    .journey__grid { grid-template-columns: 1fr; gap: .5rem; padding-top: calc(var(--strip-h) + var(--header-h) + .5rem); }
    .journey__lead, .journey__meter, .journey .kicker { display: none; }
    .journey .display-l { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .journey__steps { margin-top: .75rem; }
    .journey__step { display: none; padding: .5rem 0; border: 0; }
    .journey__step.is-current { display: grid; opacity: 1; }
    .journey__steps { border: 0; min-height: 7.5em; }
    .journey__svg--h { display: none; }
    .journey__svg--v { display: block; max-height: 52vh; margin: 0 auto; width: auto; }
    .journey__foot { display: none; }
}

/* ---------- Scroll rail (oxygen line) ---------- */
.flow-rail { position: fixed; left: clamp(10px, 1.4vw, 22px); top: 50%; transform: translateY(-50%); height: 38vh; width: 2px; background: rgba(10,10,10,.08); z-index: 900; border-radius: 2px; overflow: hidden; pointer-events: none; }
.flow-rail i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--grad-brand); transform-origin: top; transform: scaleY(var(--p, 0)); }
.flow-rail.on-dark { background: rgba(255,255,255,.14); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; overflow: hidden; color: var(--white); background: var(--grad-ink);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 6rem); isolation: isolate;
}
.page-hero .hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-media img { width: 100%; height: 120%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.page-hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(100deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.78) 45%, rgba(10,26,32,.55) 100%),
        radial-gradient(60% 80% at 85% 20%, rgba(111,206,234,.22), transparent 70%);
}
.page-hero .grid-lines { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 88px 88px; mask-image: linear-gradient(180deg, #000 0%, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); }
.hero-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); padding-bottom: 1.5rem; margin-bottom: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-meta b { color: var(--brand); font-weight: 500; }
.crumbs { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.crumbs a:hover { color: var(--white); }
.crumbs span[aria-hidden] { opacity: .4; }
.page-hero h1 { max-width: 16ch; }
.page-hero h1 .accent, .page-hero .hero-title span { color: var(--brand); }
.page-hero .hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; margin-top: clamp(1.75rem, 4vw, 3rem); }
.page-hero .hero-foot p { max-width: 58ch; color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.65; }
.page-hero .flow-svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; z-index: -1; opacity: .9; pointer-events: none; }
.hero-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.04em; font-stretch: 112%; }
.hero-subtitle { color: rgba(255,255,255,.72); font-size: 1.1rem; line-height: 1.65; max-width: 58ch; }
.hero-label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; }
.scroll-cue { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: rgba(255,255,255,.2); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--brand); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Home hero ---------- */
.home-hero { position: relative; min-height: calc(100svh - var(--header-h)); color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 3rem 0 0; }
.home-hero__media { position: absolute; inset: 0; z-index: -2; }
.home-hero__slide { position: absolute; inset: -4% 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.6s var(--ease-io), transform 9s linear; filter: grayscale(.25) contrast(1.05); }
.home-hero__slide.is-active { opacity: 1; transform: scale(1.02); }
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.25) 35%, rgba(10,10,10,.85) 82%, #0a0a0a 100%),
        linear-gradient(90deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.2) 70%),
        radial-gradient(50% 60% at 80% 30%, rgba(111,206,234,.25), transparent 70%); }
.home-hero__noslides { position: absolute; inset: 0; z-index: -2; background: var(--grad-ink); }
.home-hero__noslides::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 88px 88px; }
.home-hero h1 { max-width: 13ch; }
.home-hero h1 .accent { color: var(--brand); display: inline-block; }
.home-hero__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: end; }
.home-hero__copy p { max-width: 52ch; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.65; margin-top: 1.75rem; }
.home-hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2.25rem; }
.spec-panel { border-top: 1px solid rgba(255,255,255,.2); }
.spec-panel .spec { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.spec-panel .spec .num { font-family: var(--f-display); font-weight: 750; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.04em; line-height: 1; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.spec-panel .spec .num sup { font-size: .5em; color: var(--brand); vertical-align: super; margin-left: .05em; }
.spec-panel .spec .lbl { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); text-align: right; }
.home-hero__base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); padding: 1.25rem 0 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.slide-ctrl { display: flex; align-items: center; gap: 1rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: rgba(255,255,255,.6); }
.slide-ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; color: var(--white); transition: background .3s, border-color .3s, color .3s; }
.slide-ctrl button:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.slide-ctrl button svg { width: 14px; height: 14px; }
.slide-bar { position: relative; width: 120px; height: 1px; background: rgba(255,255,255,.2); }
.slide-bar i { position: absolute; inset: 0; background: var(--brand); transform-origin: left; transform: scaleX(0); }
.slide-bar.is-running i { animation: bar var(--dur, 6s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: var(--hair); border-bottom: var(--hair); background: var(--white); padding: 1.3rem 0; }
.marquee.is-dark { background: var(--ink); border-color: rgba(255,255,255,.1); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--speed, 42s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 2.25rem; padding-right: 2.25rem; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -.02em; white-space: nowrap; }
.marquee__item::after { content: ''; width: 10px; height: 10px; border: 1.5px solid var(--brand-dark); transform: rotate(45deg); }
.marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--gray-700); }
.marquee.is-dark .marquee__item:nth-child(even) { -webkit-text-stroke-color: rgba(255,255,255,.5); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Framed media (registration marks) ---------- */
.frame { position: relative; }
.frame__inner { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--gray-100); aspect-ratio: var(--ratio, 4/5); }
.frame__inner img { width: 100%; height: 100%; object-fit: cover; }
.frame::before, .frame::after { content: ''; position: absolute; width: 22px; height: 22px; border-color: var(--brand-dark); border-style: solid; z-index: 2; pointer-events: none; }
.frame::before { top: -10px; left: -10px; border-width: 1px 0 0 1px; }
.frame::after { bottom: -10px; right: -10px; border-width: 0 1px 1px 0; }
.frame__cap { display: flex; justify-content: space-between; gap: 1rem; margin-top: .9rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-600); }
.is-dark .frame__cap { color: rgba(255,255,255,.5); }
.frame__empty { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--gray-600);
    background: repeating-linear-gradient(135deg, var(--gray-50) 0 14px, var(--gray-100) 14px 15px); }
.frame__empty p { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; max-width: 30ch; }

/* generic crossfade slider */
.xslider { position: relative; width: 100%; height: 100%; }
.xslider__slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease-io), transform 6s var(--ease-out); }
.xslider__slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.xslider__slide img { width: 100%; height: 100%; object-fit: cover; }
.xslider__ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; background: linear-gradient(0deg, rgba(10,10,10,.65), transparent); color: var(--white); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; }
.xslider__ui .btns { display: flex; gap: .4rem; }
.xslider__ui button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: background .25s, color .25s; }
.xslider__ui button:hover { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.xslider__ui svg { width: 12px; height: 12px; }
.xslider__ui .slide-bar { flex: 1; max-width: 160px; }

/* ---------- Ledger (rows instead of cards) ---------- */
.ledger { border-top: 1px solid var(--ink); }
.is-dark .ledger, .sect--ink .ledger { border-top-color: rgba(255,255,255,.4); }
.ledger__row {
    position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 6fr) 2.5rem; gap: 1.5rem; align-items: baseline;
    padding: 1.7rem 0; border-bottom: var(--hair); isolation: isolate; transition: padding .5s var(--ease-out), color .3s;
}
.is-dark .ledger__row, .sect--ink .ledger__row { border-bottom: var(--hair-dark); }
.ledger__row::before { content: ''; position: absolute; inset: 0 -1rem; z-index: -1; background: var(--brand-light); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out); border-radius: 2px; }
.is-dark .ledger__row::before, .sect--ink .ledger__row::before { background: rgba(111,206,234,.1); }
.ledger__row:hover::before { transform: scaleY(1); }
.ledger__row:hover { padding-left: .75rem; }
.ledger__n { font-family: var(--f-mono); font-size: .78rem; color: var(--brand-dark); letter-spacing: .06em; }
.is-dark .ledger__n, .sect--ink .ledger__n { color: var(--brand); }
.ledger__t { font-family: var(--f-display); font-weight: 650; font-size: clamp(1.2rem, 2vw, 1.65rem); letter-spacing: -.02em; line-height: 1.15; }
.ledger__d { color: var(--gray-700); font-size: .98rem; line-height: 1.65; }
.is-dark .ledger__d, .sect--ink .ledger__d { color: rgba(255,255,255,.66); }
.ledger__a { justify-self: end; width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .35; transition: opacity .3s, transform .45s var(--ease-out), background .3s, color .3s, border-color .3s; }
.ledger__a svg { width: 13px; height: 13px; }
.ledger__row:hover .ledger__a { opacity: 1; transform: rotate(-45deg); background: var(--ink); color: var(--brand); border-color: var(--ink); }
.is-dark .ledger__row:hover .ledger__a, .sect--ink .ledger__row:hover .ledger__a { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.ledger--compact .ledger__row { grid-template-columns: 3.5rem minmax(0, 1fr) 2.5rem; padding: 1.1rem 0; }
.ledger--compact .ledger__t { font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 600; }
.ledger__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }

/* tick list */
.ticks { display: grid; gap: 0; border-top: var(--hair); }
.ticks li { display: grid; grid-template-columns: 2.25rem 1fr; gap: .5rem; padding: .95rem 0; border-bottom: var(--hair); font-size: .98rem; line-height: 1.55; color: var(--gray-800); }
.ticks li::before { content: counter(tick, decimal-leading-zero); counter-increment: tick; font-family: var(--f-mono); font-size: .72rem; color: var(--brand-dark); padding-top: .2rem; }
.ticks { counter-reset: tick; }
.is-dark .ticks, .sect--ink .ticks { border-top: var(--hair-dark); }
.is-dark .ticks li, .sect--ink .ticks li { border-bottom: var(--hair-dark); color: rgba(255,255,255,.82); }
.is-dark .ticks li::before, .sect--ink .ticks li::before { color: var(--brand); }
.ticks--2 { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
.check-list { counter-reset: tick; display: grid; border-top: var(--hair); }
.check-list li { display: grid; grid-template-columns: 2.25rem 1fr; padding: .9rem 0; border-bottom: var(--hair); color: var(--gray-800); }
.check-list li::before { content: counter(tick, decimal-leading-zero); counter-increment: tick; font-family: var(--f-mono); font-size: .72rem; color: var(--brand-dark); padding-top: .2rem; }

/* tags */
.tag { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border: 1px solid var(--gray-200); border-radius: 999px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-700); background: var(--white); white-space: nowrap; }
.tag--brand { background: var(--brand-light); border-color: transparent; color: #1d6f8c; }
.tag--ink { background: var(--ink); border-color: var(--ink); color: var(--brand); }
.is-dark .tag, .sect--ink .tag { background: transparent; border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.75); }

/* ---------- Principles grid (numbered text blocks, hairlines) ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: var(--hair); border-left: var(--hair); }
.principles > * { border-right: var(--hair); border-bottom: var(--hair); padding: clamp(1.75rem, 3vw, 2.75rem); position: relative; overflow: hidden; isolation: isolate; }
.principles > *::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.principles > *:hover::after { transform: scaleX(1); }
.principles .p-n { font-family: var(--f-display); font-weight: 800; font-size: 3.2rem; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--gray-300); margin-bottom: 2.5rem; transition: color .4s, -webkit-text-stroke-color .4s; font-stretch: 112%; }
.principles > *:hover .p-n { color: var(--brand); -webkit-text-stroke-color: var(--brand); }
.principles h3 { font-size: 1.3rem; font-weight: 650; margin-bottom: .75rem; letter-spacing: -.02em; }
.principles p { color: var(--gray-700); font-size: .96rem; line-height: 1.65; }
.is-dark .principles, .sect--ink .principles { border-color: rgba(255,255,255,.12); }
.is-dark .principles > *, .sect--ink .principles > * { border-color: rgba(255,255,255,.12); }
.is-dark .principles p, .sect--ink .principles p { color: rgba(255,255,255,.66); }
.is-dark .principles .p-n, .sect--ink .principles .p-n { -webkit-text-stroke-color: rgba(255,255,255,.25); }
.principles--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.principles--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ---------- Big figures ---------- */
.figures { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0,1fr)); border-top: 1px solid currentColor; }
.figure { padding: 1.75rem 1.5rem 1.75rem 0; border-right: var(--hair); }
.figure:last-child { border-right: 0; }
.figure + .figure { padding-left: 1.5rem; }
.figure .num { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -.05em; line-height: 1; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.figure .num sup { font-size: .45em; color: var(--brand-dark); }
.figure .lbl { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-600); margin-top: .75rem; }
.is-dark .figure, .sect--ink .figure { border-color: rgba(255,255,255,.12); }
.is-dark .figure .lbl, .sect--ink .figure .lbl { color: rgba(255,255,255,.55); }
.is-dark .figure .num sup, .sect--ink .figure .num sup { color: var(--brand); }

/* ---------- Departure board (regional hubs) ---------- */
.board { border-top: 1px solid rgba(255,255,255,.3); font-family: var(--f-mono); }
.board__head, .board__row { display: grid; grid-template-columns: 3rem minmax(0, 1.4fr) minmax(0, 1.2fr) auto; gap: 1rem; align-items: center; padding: 1.05rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.board__head { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: .7rem 0; }
.board__row .code { color: var(--brand); font-size: .78rem; }
.board__row .city { font-family: var(--f-display); font-weight: 650; font-size: clamp(1.25rem, 2.4vw, 1.9rem); letter-spacing: -.02em; text-transform: uppercase; font-stretch: 115%; }
.board__row .role { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.board__row .status { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--brand); padding: .25rem .55rem; border-radius: 2px; }
.board__row .status.alt { background: transparent; color: var(--brand); border: 1px solid rgba(111,206,234,.5); }
.flap { display: inline-block; }
.flap .ch { display: inline-block; min-width: .62em; text-align: center; }

/* ---------- Timeline (scroll-filled) ---------- */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 1px; background: var(--gray-200); }
.timeline__fill { position: absolute; left: 7px; top: .5rem; width: 1px; height: calc(100% - 1rem); background: var(--grad-brand); transform-origin: top; transform: scaleY(var(--p, 0)); }
.timeline__item { position: relative; padding: 0 0 2.25rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ''; position: absolute; left: calc(-2.5rem + 2px); top: .45rem; width: 11px; height: 11px; border-radius: 50%; background: var(--white); border: 1px solid var(--gray-300); transition: background .4s, border-color .4s, box-shadow .4s; }
.timeline__item.is-lit::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px rgba(111,206,234,.18); }
.timeline__k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-400); transition: color .4s; }
.timeline__item.is-lit .timeline__k { color: var(--brand-dark); }
.timeline__t { font-family: var(--f-display); font-weight: 650; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.02em; color: var(--gray-400); transition: color .5s; margin-top: .25rem; }
.timeline__item.is-lit .timeline__t { color: var(--ink); }
.is-dark .timeline::before, .sect--ink .timeline::before { background: rgba(255,255,255,.15); }
.is-dark .timeline__item::before, .sect--ink .timeline__item::before { background: var(--ink); border-color: rgba(255,255,255,.3); }
.is-dark .timeline__t, .sect--ink .timeline__t { color: rgba(255,255,255,.3); }
.is-dark .timeline__item.is-lit .timeline__t, .sect--ink .timeline__item.is-lit .timeline__t { color: var(--white); }
.is-dark .timeline__item.is-lit .timeline__k, .sect--ink .timeline__item.is-lit .timeline__k { color: var(--brand); }

/* ---------- Scroll-lit paragraph ---------- */
.lit-text { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.45rem, 2.8vw, 2.45rem); line-height: 1.25; letter-spacing: -.025em; }
.lit-text .w { color: var(--gray-300); transition: color .35s; }
.lit-text .w.on { color: var(--ink); }
.is-dark .lit-text .w, .sect--ink .lit-text .w { color: rgba(255,255,255,.2); }
.is-dark .lit-text .w.on, .sect--ink .lit-text .w.on { color: var(--white); }
.lit-text .w.on.k { color: var(--brand-dark); }
.is-dark .lit-text .w.on.k, .sect--ink .lit-text .w.on.k { color: var(--brand); }

/* ---------- Tiles: projects / departments / people ---------- */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.25rem) clamp(1rem, 2vw, 1.75rem); }
.tile { display: flex; flex-direction: column; color: inherit; }
.tile__media { position: relative; overflow: hidden; aspect-ratio: var(--ratio, 4/3); background: var(--gray-100); border-radius: var(--radius); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.tile:hover .tile__media img { transform: scale(1.06); }
.tile__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,.55)); opacity: 0; transition: opacity .5s; }
.tile:hover .tile__media::after { opacity: 1; }
.tile__badge { position: absolute; top: .8rem; left: .8rem; z-index: 2; }
.tile__go { position: absolute; right: .9rem; bottom: .9rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--ink); display: grid; place-items: center; transform: scale(.4) rotate(-45deg); opacity: 0; transition: transform .5s var(--ease-out), opacity .35s; }
.tile__go svg { width: 15px; height: 15px; }
.tile:hover .tile__go { transform: scale(1) rotate(-45deg); opacity: 1; }
.tile__meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-bottom: .6rem; border-bottom: var(--hair); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-600); }
.tile__t { font-family: var(--f-display); font-weight: 650; font-size: clamp(1.1rem, 1.6vw, 1.4rem); letter-spacing: -.02em; line-height: 1.2; margin-top: .85rem; transition: color .3s; }
.tile:hover .tile__t { color: var(--brand-dark); }
.tile__d { color: var(--gray-600); font-size: .92rem; line-height: 1.6; margin-top: .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--grad-ink); color: rgba(255,255,255,.75); font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; font-stretch: 115%; position: relative; overflow: hidden; }
.tile__ph::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; }
.tile__ph span { position: relative; }
.tile__ph span::after { content: ''; display: block; height: 3px; width: 40%; margin-top: .4rem; background: var(--brand); }
.tile.is-hidden { display: none; }

/* featured project (wide) */
.feature-wide { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; color: inherit; }
.feature-wide + .feature-wide { margin-top: clamp(3rem, 6vw, 5rem); }
.feature-wide:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature-wide:nth-child(even) .tile__media { order: 2; }
.feature-wide .tile__media { --ratio: 16/10; }

/* filter bar */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-btn { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--gray-200); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-700); background: var(--white); transition: background .3s, color .3s, border-color .3s; }
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active, .filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--brand); border-color: var(--ink); }

/* people */
.people { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0,1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); }
.person { display: block; color: inherit; }
.person__ph { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--gray-100); border-radius: var(--radius); }
.person__ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1) contrast(1.05); transition: filter .7s var(--ease-out), transform 1s var(--ease-out); }
.person:hover .person__ph img { filter: grayscale(0); transform: scale(1.04); }
.person__ph::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.person:hover .person__ph::after { transform: scaleX(1); }
.person__mono { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--gray-100), var(--brand-light)); font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.04em; color: var(--brand-dark); font-stretch: 112%; }
.person__nm { font-family: var(--f-display); font-weight: 650; font-size: 1.12rem; letter-spacing: -.015em; margin-top: 1rem; line-height: 1.25; }
.person__rl { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-600); margin-top: .35rem; line-height: 1.5; }
.person__links { display: flex; gap: .4rem; margin-top: .6rem; }
.person__links a { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--gray-300); color: var(--gray-700); transition: color .25s, border-color .25s; }
.person__links a:hover { color: var(--brand-dark); border-color: var(--brand-dark); }

/* leadership roster rows */
.roster__row { display: grid; grid-template-columns: 5.5rem minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 1.5rem; align-items: center; padding: 1.4rem 0; border-bottom: var(--hair); transition: background .4s; }
.roster__ph { width: 5.5rem; height: 5.5rem; border-radius: 50%; overflow: hidden; background: var(--brand-light); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: var(--brand-dark); font-size: 1.5rem; letter-spacing: -.03em; }
.roster__ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s; }
.roster__row:hover .roster__ph img { filter: none; }
.roster__nm { font-family: var(--f-display); font-weight: 650; font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.02em; }
.roster__rl { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
.roster__d { color: var(--gray-700); font-size: .95rem; line-height: 1.6; }
.roster { border-top: 1px solid var(--ink); }

/* ---------- Long-form article blocks ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.doc__block { padding: 2.25rem 0; border-top: var(--hair); display: grid; grid-template-columns: 11rem minmax(0,1fr); gap: 1.5rem; }
.doc__block:first-child { border-top: 1px solid var(--ink); }
.doc__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); padding-top: .35rem; }
.doc__label .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: .5rem; background: var(--brand); vertical-align: middle; }
.doc__label .dot--amber { background: #e2a33a; } .doc__label .dot--green { background: #37a87a; }
.doc__body { font-size: 1.04rem; line-height: 1.85; color: var(--gray-800); white-space: pre-line; }
.doc__body h2 { font-size: 1.6rem; margin-bottom: .75rem; white-space: normal; }
.spec-card { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 1.75rem; position: relative; overflow: hidden; }
.spec-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 100% 0%, rgba(111,206,234,.22), transparent 70%); pointer-events: none; }
.spec-card dl { display: grid; gap: 0; position: relative; }
.spec-card dl > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.spec-card dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); padding-top: .2rem; }
.spec-card dd { font-family: var(--f-display); font-weight: 600; font-size: 1rem; }
.spec-card h3 { font-family: var(--f-mono); font-weight: 400; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; position: relative; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: var(--gray-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.gallery a:hover img { transform: scale(1.08); }

/* ---------- Panels & forms ---------- */
.panel { border: var(--hair); border-radius: 10px; background: var(--white); padding: clamp(1.5rem, 3vw, 2.25rem); }
.panel--ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card { background: var(--white); border: var(--hair); border-radius: 10px; padding: clamp(1.5rem, 3vw, 2rem); transition: border-color .3s, transform .4s var(--ease-out); }
.card:hover { border-color: var(--gray-300); }
.card-title { font-family: var(--f-display); font-weight: 650; font-size: 1.2rem; letter-spacing: -.015em; margin-bottom: .5rem; }
.card-text { color: var(--gray-700); font-size: .95rem; line-height: 1.65; }
.card-icon { display: none; }
.form-group { margin-bottom: 1.35rem; }
.form-label { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-600); margin-bottom: .5rem; }
.form-control {
    width: 100%; padding: .85rem 0; border: 0; border-bottom: 1px solid var(--gray-300); border-radius: 0;
    font: inherit; font-size: 1rem; color: var(--ink); background: transparent; outline: none; transition: border-color .3s, box-shadow .3s;
}
.form-control:focus { border-bottom-color: var(--brand-dark); box-shadow: 0 1px 0 0 var(--brand-dark); }
.form-control.error { border-bottom-color: #c2413b; }
input[type=file].form-control { padding: .75rem; border: 1px dashed var(--gray-300); border-radius: 8px; font-size: .88rem; background: var(--gray-50); cursor: pointer; }
input[type=file].form-control:hover { border-color: var(--brand-dark); background: #f3fbfe; }
input[type=file]::file-selector-button { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; border: 0; background: var(--ink); color: var(--white); padding: .55rem .85rem; border-radius: 999px; margin-right: .85rem; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-error { font-size: .82rem; color: #c2413b; margin-top: .4rem; }
.alert { padding: 1rem 1.25rem; border-radius: 8px; font-size: .92rem; border-left: 3px solid; margin-bottom: 1.25rem; }
.alert-success { background: #ecf8f2; color: #1f6b4a; border-color: #37a87a; }
.alert-error { background: #fcefee; color: #8e2c27; border-color: #c2413b; }
.alert-info { background: #effafd; color: #1d5e75; border-color: var(--brand-dark); }
.flash { position: fixed; right: 1.25rem; top: calc(var(--strip-h) + var(--header-h) + 1rem); z-index: 1200; width: min(420px, calc(100vw - 2.5rem)); animation: toast-in .7s var(--ease-out) both; }
.flash .alert { box-shadow: 0 20px 40px -18px rgba(10,30,40,.35); display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.flash .alert button { font-size: 1.1rem; line-height: 1; opacity: .6; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }
.status { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--pending, .status--yellow { background: #fdf5e4; color: #8a5a10; }
.status--green { background: #e8f6ef; color: #1f6b4a; }
.status--red { background: #fcefee; color: #8e2c27; }
.status--purple { background: #f1eefc; color: #5534a5; }
.status--blue { background: #eaf6fb; color: #1d5e75; }
.empty { border: 1px dashed var(--gray-300); border-radius: 10px; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; text-align: center; }
.empty h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.empty p { color: var(--gray-600); max-width: 44ch; margin: 0 auto 1.5rem; }

/* contact sheet */
.contact-sheet { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-top: 1px solid var(--ink); }
.contact-line { display: grid; grid-template-columns: 9rem minmax(0,1fr); gap: 1.5rem; padding: 1.75rem 0; border-bottom: var(--hair); align-items: baseline; }
.contact-line dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-600); }
.contact-line dd { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.9rem); letter-spacing: -.02em; line-height: 1.25; word-break: break-word; }
.contact-line dd a { background: linear-gradient(var(--brand), var(--brand)) left bottom / 0% 2px no-repeat; transition: background-size .5s var(--ease-out); }
.contact-line dd a:hover { background-size: 100% 2px; }
.country-cloud { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }

/* ---------- CTA ---------- */
.cta, .cta-banner { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(5rem, 11vw, 9rem) 0; isolation: isolate; text-align: left; }
.cta::before, .cta-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(60% 90% at 100% 100%, rgba(111,206,234,.28), transparent 65%),
    radial-gradient(40% 60% at 0% 0%, rgba(74,176,212,.16), transparent 70%); }
.cta h2, .cta-banner h2 { font-size: clamp(2.4rem, 6.4vw, 5.8rem); font-weight: 800; letter-spacing: -.045em; line-height: .96; max-width: 14ch; font-stretch: 112%; color: var(--white); margin-bottom: 0; }
.cta h2 .accent { color: var(--brand); }
.cta__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.cta p, .cta-banner p { color: rgba(255,255,255,.7); max-width: 48ch; font-size: 1.05rem; line-height: 1.7; margin: 1.5rem 0 0; }
.cta__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cta-banner .container { display: grid; gap: 1.5rem; justify-items: start; }
.cta .flow-svg, .cta-banner .flow-svg { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .9; }

/* animated flow line (oxygen/MGPS pipe) */
.flow-path { fill: none; stroke: url(#flowGrad); stroke-width: 1.5; stroke-linecap: round; }
.flow-path--ghost { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1; }
.flow-dash { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 2 26; stroke-linecap: round; animation: flow 3.5s linear infinite; opacity: .9; }
@keyframes flow { to { stroke-dashoffset: -280; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.66); position: relative; overflow: hidden; }
.footer a { transition: color .25s; }
.footer a:hover { color: var(--brand); }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 2.5rem; padding: clamp(4rem, 8vw, 6rem) 0 3rem; }
.footer__brand p { max-width: 36ch; line-height: 1.7; font-size: .95rem; margin-top: 1.25rem; }
.footer__logo { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--white); letter-spacing: -.04em; font-stretch: 115%; }
.footer__logo img { max-height: 44px; max-width: 180px; object-fit: contain; filter: brightness(0) invert(1); }
.footer__logo em { font-style: normal; color: var(--brand); }
.footer h4 { font-family: var(--f-mono); font-weight: 400; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1.25rem; }
.footer ul { display: grid; gap: .6rem; font-size: .95rem; }
.footer__contact { display: grid; gap: .75rem; font-size: .95rem; }
.footer__contact span { display: block; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.footer__social { display: flex; gap: .5rem; margin-top: 1.75rem; }
.footer__social a { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .5rem .85rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.footer__social a:hover { border-color: var(--brand); }
.footer__word { font-family: var(--f-display); font-weight: 900; font-size: clamp(4.5rem, 21vw, 21rem); line-height: .78; letter-spacing: -.06em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); user-select: none; font-stretch: 118%; margin-bottom: -.06em; white-space: nowrap; background: linear-gradient(180deg, rgba(111,206,234,.35), transparent 70%); -webkit-background-clip: text; background-clip: text; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0 2rem; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.to-top { display: inline-flex; align-items: center; gap: .5rem; }
.to-top svg { width: 12px; height: 12px; }

/* ---------- Reveal motion ---------- */
.js [data-reveal] { opacity: 0; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), clip-path 1.3s var(--ease-io); transition-delay: calc(var(--d, 0) * 1ms + var(--i, 0) * 90ms); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translateY(42px); }
.js [data-reveal="left"] { transform: translateX(-42px); }
.js [data-reveal="right"] { transform: translateX(42px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="clip"] { opacity: 1; clip-path: inset(100% 0 0 0); }
.js [data-reveal="clip-x"] { opacity: 1; clip-path: inset(0 100% 0 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.js [data-split] .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .sw > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms + var(--i, 0) * 55ms); }
.js [data-split].is-in .sw > span { transform: none; }
/* legacy gsap-* classes (kept for any page still using them) */
.js .gsap-fade-up, .js .gsap-fade-in, .js .gsap-scale-in, .js .gsap-slide-left, .js .gsap-slide-right { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js .gsap-fade-up.is-in, .js .gsap-fade-in.is-in, .js .gsap-scale-in.is-in, .js .gsap-slide-left.is-in, .js .gsap-slide-right.is-in { opacity: 1; transform: none; }

/* ---------- Chat assistant re-skin ---------- */
.afrimed-chat { font-family: var(--f-body) !important; }
.afrimed-chat__fab { font-family: var(--f-display) !important; background: var(--ink) !important; color: var(--white) !important; border-radius: 999px !important; box-shadow: 0 18px 40px -12px rgba(10,30,40,.45) !important; }
.afrimed-chat__fab:hover { background: var(--ink-3) !important; }
.afrimed-chat__fab-icon { background: var(--brand) !important; color: var(--ink) !important; }
.afrimed-chat__panel { border-radius: 16px !important; border: 1px solid rgba(10,10,10,.08) !important; box-shadow: 0 40px 80px -24px rgba(10,30,40,.4) !important; }
.afrimed-chat__head { background: var(--grad-ink) !important; }
.afrimed-chat__sub { font-family: var(--f-mono) !important; letter-spacing: .06em; }
.afrimed-chat__suggestion { font-family: var(--f-body) !important; border-radius: 999px !important; }
.afrimed-chat__send { background: var(--ink) !important; color: var(--brand) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .principles--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .people { --cols: 3; }
}
@media (max-width: 1024px) {
    .home-hero__body, .sheet-head, .doc, .contact-sheet, .feature-wide, .feature-wide:nth-child(even) { grid-template-columns: 1fr; }
    .feature-wide:nth-child(even) .tile__media { order: 0; }
    .grid-12 > * { grid-column: 1 / -1 !important; order: 0 !important; }
    .principles { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .tiles { --cols: 2; }
    .footer__top { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .flow-rail { display: none; }
    .sticky { position: static; }
    .roster__row { grid-template-columns: 4.5rem minmax(0,1fr); }
    .roster__ph { width: 4.5rem; height: 4.5rem; }
    .roster__rl, .roster__d { grid-column: 2; }
    .page-hero .hero-foot { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .grid-2, .grid-3, .grid-4, .ticks--2, .principles, .principles--2, .principles--4 { grid-template-columns: 1fr; }
    .tiles { --cols: 1; }
    .people { --cols: 2; }
    .figures { --cols: 2 !important; }
    .figure { border-right: 0; border-bottom: var(--hair); padding-left: 0 !important; }
    .figure:nth-child(odd) { border-right: var(--hair); padding-right: 1rem; }
    .figure:nth-child(even) { padding-left: 1rem !important; }
    .ledger__row, .ledger--compact .ledger__row { grid-template-columns: 2.75rem minmax(0,1fr) 2.25rem; gap: .9rem; }
    .ledger__d { grid-column: 2 / 3; }
    .ledger__a { grid-row: 1; grid-column: 3; }
    .board__head { display: none; }
    .board__head, .board__row { grid-template-columns: 2.4rem minmax(0,1fr) auto; }
    .board__row .role { grid-column: 2; grid-row: 2; }
    .board__row .status { grid-row: 1; grid-column: 3; }
    .doc__block { grid-template-columns: 1fr; gap: .75rem; }
    .contact-line { grid-template-columns: 1fr; gap: .4rem; }
    .footer__top { grid-template-columns: 1fr; }
    .home-hero__base .scroll-cue { display: none; }
    .cta__row { grid-template-columns: 1fr; }
    .hero-meta .crumbs { display: none; }
    .btn, .btn-primary, .btn-secondary, .btn-white { min-height: 48px; }
}
@media (max-width: 420px) {
    .people { --cols: 1; }
    .home-hero__actions .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
    .js [data-reveal], .js [data-split] .sw > span, .js .gsap-fade-up, .js .gsap-fade-in, .js .gsap-scale-in, .js .gsap-slide-left, .js .gsap-slide-right { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .marquee__track { animation: none; }
    .lit-text .w { color: inherit !important; }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .site-menu, .flow-rail, .afrimed-chat, .whatsapp-float, .footer__word, .cta .flow-svg { display: none !important; }
    body { padding-top: 0; }
    .js [data-reveal], .js [data-split] .sw > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* dark contexts without the .is-dark class */
.home-hero .btn--ghost, .page-hero .btn--ghost, .cta .btn--ghost, .cta-banner .btn--ghost, .menu-panel .btn--ghost { --fg: var(--white); border-color: rgba(255,255,255,.3); }
.home-hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .cta .btn--ghost:hover, .menu-panel .btn--ghost:hover { color: var(--ink); border-color: transparent; }
.home-hero .kicker, .page-hero .kicker, .cta .kicker { color: rgba(255,255,255,.6); }
.home-hero .kicker b, .page-hero .kicker b, .cta .kicker b { color: var(--brand); }
.page-hero .figures { border-top-color: rgba(255,255,255,.25); }
.page-hero .figure { border-color: rgba(255,255,255,.12); }
.page-hero .figure .lbl { color: rgba(255,255,255,.5); }
.ledger__row--app { grid-template-columns: 3.5rem minmax(0,5fr) minmax(0,5fr) auto; }
@media (max-width: 760px) {
    .ledger__row--app { grid-template-columns: 2.75rem minmax(0,1fr); }
    .ledger__row--app .ledger__d, .ledger__row--app .status { grid-column: 2; justify-self: start; }
    .page-hero .figures { --cols: 1 !important; }
    .page-hero .figure { border-right: 0 !important; padding: 1rem 0 !important; }
}
.frame__inner img[data-parallax] { height: 118%; margin-top: -9%; }
.page-hero .hero-media img { margin-top: -10%; }

/* compact people list (departments, AFRICMED team) */
.emp-list { border-top: var(--hair); }
.emp { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: var(--hair); }
.emp img, .emp__mono { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.emp:hover img { filter: none; }
.emp__mono { display: grid; place-items: center; background: var(--brand-light); color: var(--brand-dark); font-family: var(--f-display); font-weight: 800; filter: none; }
.emp__nm { font-family: var(--f-display); font-weight: 650; }
.emp__rl { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-dark); margin-top: .15rem; }
.emp__bio { font-size: .82rem; color: var(--gray-600); margin-top: .25rem; line-height: 1.5; }

