/* =========================================================
   BioSolve Solutions – theme, layout and motion
   Brand navy and teal from the original site and logo.
   ========================================================= */

:root {
    --navy-950: #081C30;
    --navy-900: #0F2A44;
    --navy-800: #15385A;
    --navy-700: #1E4670;
    --slate: #324158;
    --teal: #2FA4A9;
    --teal-600: #24898D;
    --teal-400: #45B6BB;
    --teal-300: #7FD6D9;
    --teal-100: #DDF3F4;
    --mist: #F2F6F8;
    --line: #E1E8EE;
    --ink: #0F2A44;
    --ink-soft: #46596A;
    --muted: #6B7C85;
    --white: #FFFFFF;
    --danger: #C2412F;

    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.76, 0, .24, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    --radius: 18px;
    --radius-lg: 28px;
    --header-h: 84px;
    --gutter: clamp(20px, 4vw, 40px);
    /* iPhone notch / Dynamic Island / home indicator clearance (0 everywhere else). */
    --safe-l: env(safe-area-inset-left, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --edge: max(var(--gutter), var(--safe-l), var(--safe-r));
    --shadow-sm: 0 4px 14px -6px rgba(15, 42, 68, .18);
    --shadow-lg: 0 30px 70px -30px rgba(15, 42, 68, .35);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    /* Navy behind the page, so rubber-band scrolling past the navy header/footer never flashes white. */
    background: var(--navy-950);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body:has(.site-header.is-open) { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--teal); color: var(--white); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1:focus, [tabindex="-1"]:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.container { width: min(1200px, 100% - var(--edge) * 2); margin-inline: auto; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: .7em 1.2em;
    border-radius: 999px;
    background: var(--teal);
    color: var(--white);
    font-weight: 600;
    transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 16px; }

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 70;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--teal-300));
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
    pointer-events: none;
}

/* Elements waiting to slide in from the side mustn't widen the page on phones (clip, unlike hidden, keeps sticky working). */
.page { overflow-x: clip; animation: page-in .7s var(--ease-out) backwards; }

/* ---------- Typography helpers ---------- */

.section { position: relative; padding-block: clamp(84px, 10vw, 140px); }
.section--navy { background: var(--navy-900); color: var(--white); overflow: hidden; }
.section--mist { background: var(--mist); }
.page-hero + .section:not(.section--navy) { padding-top: clamp(48px, 6vw, 80px); }
.section--navy + .cta-band--navy,
.section--mist + .cta-band--mist { padding-top: 0; }
section[id] { scroll-margin-top: 70px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .8em;
    margin: 0 0 1rem;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teal-600);
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.eyebrow--light { color: var(--teal-300); }

.section-title {
    margin: 0 0 .55em;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.08;
}
.text-accent { color: var(--teal); }
.section--navy .text-accent { color: var(--teal-300); }

.lead-text { font-size: 1.07rem; line-height: 1.75; color: var(--ink-soft); }
.section--navy .lead-text { color: rgba(255, 255, 255, .74); }

.section-head { margin-bottom: clamp(44px, 6vw, 64px); }
.section-head--center { max-width: 760px; margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 64px;
    align-items: end;
}
.section-head--split .section-title { margin-bottom: 0; }
.section-head__text { margin: 0; font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.section--navy .section-head__text { color: rgba(255, 255, 255, .72); }

.section-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.section-foot p { max-width: 44em; margin: 0; color: rgba(255, 255, 255, .7); }
.section-foot--center { justify-content: center; border: 0; padding-top: 0; }

.checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin: 26px 0 34px;
    list-style: none;
}
.checklist li {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
}
.checklist .icon {
    width: 24px;
    height: 24px;
    padding: 5px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
}
.checklist--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
    --tx: 0px;
    --ty: 0px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    padding: .95em 1.65em;
    overflow: hidden;
    isolation: isolate;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    translate: var(--tx) var(--ty);
    transition: translate .35s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .35s;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(4px); }
/* A highlight that sweeps across on hover. */
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .8s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

.btn--primary { background: var(--teal); color: var(--white); box-shadow: 0 14px 30px -14px rgba(47, 164, 169, .8); }
.btn--primary:hover { background: var(--teal-400); box-shadow: 0 18px 36px -14px rgba(47, 164, 169, .95); }
.btn--dark { background: var(--navy-900); color: var(--white); box-shadow: 0 14px 30px -16px rgba(15, 42, 68, .7); }
.btn--dark:hover { background: var(--navy-700); }
.btn--light { background: var(--white); color: var(--navy-900); box-shadow: 0 14px 30px -14px rgba(8, 28, 48, .5); }
.btn--light:hover { background: var(--navy-900); color: var(--white); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-600); }
.btn--ghost-light {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .04);
    color: var(--white);
    backdrop-filter: blur(8px);
}
.btn--ghost-light:hover { border-color: var(--teal-300); background: rgba(255, 255, 255, .1); }
.btn--lg { padding: 1.1em 1.95em; font-size: 1rem; }
.btn--sm { padding: .7em 1.25em; font-size: .88rem; }
.btn--block { width: 100%; }

.ripple {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transform: scale(0);
    animation: ripple .7s var(--ease-out) forwards;
    pointer-events: none;
}


/* ---------- Shared backgrounds ---------- */

.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora span {
    position: absolute;
    width: 55vmax;
    height: 55vmax;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
    animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { top: -25vmax; left: -15vmax; background: radial-gradient(circle, rgba(47, 164, 169, .65), transparent 65%); }
.aurora span:nth-child(2) { bottom: -30vmax; right: -20vmax; background: radial-gradient(circle, rgba(30, 70, 112, .9), transparent 65%); animation-duration: 28s; animation-delay: -6s; }
.aurora span:nth-child(3) { top: 20%; left: 40%; width: 35vmax; height: 35vmax; background: radial-gradient(circle, rgba(127, 214, 217, .25), transparent 65%); animation-duration: 18s; animation-delay: -3s; }

.particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 164, 169, .22), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    animation: drift 20s ease-in-out infinite alternate;
}
.glow-orb--left { top: -160px; left: -260px; }
.glow-orb--right { bottom: -200px; right: -260px; }

/* Card glow that follows the pointer (position set by site.js). */
[data-glow] { position: relative; }
[data-glow]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 164, 169, .2), transparent 42%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}
[data-glow]:hover::before { opacity: 1; }

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    height: var(--header-h);
    color: var(--white);
    transition: height .4s var(--ease-out), background-color .4s, box-shadow .4s, transform .5s var(--ease-out), backdrop-filter .4s;
    animation: header-in .9s var(--ease-out) .1s backwards;
}
.site-header[data-scrolled] {
    height: 72px;
    background: rgba(8, 28, 48, .82);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 14px 40px -20px rgba(0, 0, 0, .6);
}
.site-header[data-hidden] { transform: translateY(-105%); }
/* The mobile menu is position:fixed inside the header, so the header mustn't become its containing block while open. */
.site-header.is-open { transform: none; backdrop-filter: none; }

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
}

.brand { display: block; flex: none; transition: opacity .3s; }
.brand:hover { opacity: .85; }
.brand__logo { width: auto; height: 38px; transition: height .4s var(--ease-out); }
.site-header[data-scrolled] .brand__logo { height: 33px; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; }
.site-nav ul a {
    position: relative;
    display: block;
    padding: .6em 1.05em;
    border-radius: 999px;
    color: rgba(255, 255, 255, .78);
    font-family: var(--font-head);
    font-size: .92rem;
    font-weight: 500;
    transition: color .3s, background-color .3s;
}
.site-nav ul a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: .32em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
    transform: translateX(-50%) scale(0);
    transition: transform .4s var(--ease-spring);
}
.site-nav ul a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.site-nav ul a.is-active { color: var(--white); }
.site-nav ul a.is-active::after { transform: translateX(-50%) scale(1); }
.site-nav__mobile-cta { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 18px; }

.header-call { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.header-call__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(127, 214, 217, .4);
    border-radius: 50%;
    color: var(--teal-300);
    transition: background-color .3s, color .3s, transform .5s var(--ease-spring);
}
.header-call__icon .icon { width: 18px; height: 18px; }
.header-call:hover .header-call__icon { background: var(--teal); color: var(--white); transform: rotate(-12deg) scale(1.05); }
.header-call__text small {
    display: block;
    color: rgba(255, 255, 255, .55);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}
.nav-toggle span {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform .45s var(--ease-out), opacity .3s, top .45s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; width: 12px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.site-header.is-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.site-header.is-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(4, 14, 26, .6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: max(100svh, 720px);
    padding: calc(var(--header-h) + 40px) 0 110px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(30, 70, 112, .55), transparent 70%),
        var(--navy-900);
    color: var(--white);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 60px;
    align-items: center;
}

.hero__title {
    margin: 0 0 26px;
    font-size: clamp(3rem, 7.2vw, 5.8rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1;
}
.hero__line { display: block; overflow: hidden; padding: 0 .05em .1em 0; }
.hero__word {
    display: inline-block;
    animation: word-up 1.1s var(--ease-out) both;
    animation-delay: calc(.3s + var(--i) * .14s);
}
.hero__word--accent,
.split__word--accent {
    background: linear-gradient(100deg, var(--teal) 0%, var(--teal-300) 35%, var(--teal) 65%, var(--teal-300) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: word-up 1.1s var(--ease-out) both, shimmer 7s linear 1.6s infinite;
    animation-delay: calc(.3s + var(--i) * .14s), 1.6s;
}

.hero__lede {
    max-width: 33em;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, .74);
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    line-height: 1.7;
    animation: fade-up 1s var(--ease-out) .8s both;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; animation: fade-up 1s var(--ease-out) .95s both; }

.hero__visual { display: grid; place-items: center; }

.emblem {
    position: relative;
    width: min(500px, 100%);
    aspect-ratio: 1;
    translate: 0 var(--py, 0);
    animation: emblem-in 1.4s var(--ease-out) .35s both;
}
.emblem__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.emblem__ring { fill: none; transform-box: fill-box; transform-origin: center; }
.emblem__ring--outer { stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.emblem__ring--dash { stroke: rgba(127, 214, 217, .35); stroke-width: 1.5; stroke-dasharray: 2 12; animation: spin 70s linear infinite; }
.emblem__ring--sweep { stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 260 600; animation: spin 7s linear infinite; }

.emblem__core {
    position: absolute;
    inset: 25%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(127, 214, 217, .28);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(47, 164, 169, .38), rgba(15, 42, 68, .55) 70%);
    box-shadow: inset 0 0 70px rgba(47, 164, 169, .25), 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 14px rgba(47, 164, 169, .05);
    backdrop-filter: blur(6px);
    animation: breathe 6s ease-in-out infinite;
}
.emblem__hazard { position: absolute; width: 74%; height: 74%; color: rgba(127, 214, 217, .14); animation: spin 50s linear infinite reverse; }
.emblem__tick { position: relative; width: 62%; overflow: visible; filter: drop-shadow(0 0 18px rgba(47, 164, 169, .75)); }
.emblem__tick path {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.2s var(--ease-in-out) 1.2s forwards;
}

.emblem__orbit { position: absolute; inset: 4%; border-radius: 50%; animation: spin 16s linear infinite; }
.emblem__orbit span {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(47, 164, 169, .2), 0 0 22px var(--teal);
}
.emblem__orbit--b { inset: 17%; animation-duration: 24s; animation-direction: reverse; }
.emblem__orbit--b span { width: 7px; height: 7px; top: -3.5px; background: var(--white); box-shadow: 0 0 14px rgba(255, 255, 255, .8); }

.chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .65em;
    padding: .55em 1.05em .55em .55em;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(15, 42, 68, .55);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
    backdrop-filter: blur(14px);
    font-family: var(--font-head);
    font-size: .84rem;
    font-weight: 600;
    white-space: nowrap;
    animation: chip-in .9s var(--ease-spring) both, float 6s ease-in-out infinite alternate;
}
.chip__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); }
.chip__icon .icon { width: 17px; height: 17px; }
.chip--a { top: 9%; left: -4%; animation-delay: 1.5s, 2.4s; }
.chip--b { top: 47%; right: -8%; animation-delay: 1.7s, 2.6s; animation-duration: .9s, 7s; }
.chip--c { bottom: 7%; left: 6%; animation-delay: 1.9s, 2.8s; animation-duration: .9s, 5.5s; }

.scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    z-index: 1;
    translate: -50% 0;
    padding: 8px;
    animation: fade-up 1s var(--ease-out) 1.6s both;
}
.scroll-cue__mouse {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-radius: 14px;
}
.scroll-cue__mouse span {
    display: block;
    width: 4px;
    height: 8px;
    margin: 7px auto 0;
    border-radius: 2px;
    background: var(--teal-300);
    animation: scroll-dot 2s var(--ease-in-out) infinite;
}

/* ---------- Intro + coverage ---------- */

.intro__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(48px, 7vw, 96px);
    align-items: center;
}

.intro__copy .btn { margin-top: 14px; }

.coverage {
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}
.coverage__head { display: flex; gap: 16px; }
.coverage__head h3 { margin-bottom: .35em; font-size: 1.25rem; }
.coverage__head p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.coverage__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--teal-100);
    color: var(--teal-600);
}

.coverage__map {
    position: relative;
    aspect-ratio: 4 / 3;
    margin-top: 26px;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at 45% 57%, rgba(47, 164, 169, .22), transparent 55%),
        radial-gradient(rgba(15, 42, 68, .12) 1px, transparent 1.2px) 0 0 / 18px 18px,
        var(--mist);
}
.coverage__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.coverage__lines path {
    fill: none;
    stroke: var(--teal);
    stroke-width: 1.6;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.coverage.is-visible .coverage__lines path { animation: draw 1s var(--ease-in-out) forwards; }
.coverage.is-visible .coverage__lines path:nth-child(2) { animation-delay: .25s; }
.coverage.is-visible .coverage__lines path:nth-child(3) { animation-delay: .5s; }

.coverage__node {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 4px 12px rgba(15, 42, 68, .3);
    transform: translate(-50%, -50%) scale(0);
}
.coverage.is-visible .coverage__node { animation: pop .7s var(--ease-spring) forwards; animation-delay: calc(.5s + var(--i) * .25s); }
.coverage__node--base { width: 24px; height: 24px; background: var(--navy-900); box-shadow: 0 0 0 5px rgba(47, 164, 169, .3); }
.coverage__node b {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    padding: .3em .75em;
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
    transform: translateX(-50%);
}
.coverage__node--base b { background: var(--navy-900); color: var(--white); }
.coverage__pulse { position: absolute; width: 24px; height: 24px; transform: translate(-50%, -50%); }
.coverage__pulse::before,
.coverage__pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--teal);
    border-radius: 50%;
    animation: pulse-ring 3s var(--ease-out) infinite;
}
.coverage__pulse::after { animation-delay: 1.5s; }
.coverage__note { margin: 14px 0 0; color: var(--muted); font-size: .84rem; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(64px, 8vw, 100px);
    border-top: 1px solid var(--line);
    list-style: none;
}
.stat { padding: 34px 26px 0; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat strong {
    display: flex;
    align-items: center;
    min-height: 1.1em;
    color: var(--navy-900);
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}
.stat strong .icon { width: .9em; height: .9em; color: var(--teal); }
.stat > span { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* ---------- Services ---------- */

.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.svc-card-wrap { display: flex; }

.svc-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    color: var(--white);
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .5s var(--ease-out), border-color .4s, box-shadow .4s, translate .5s var(--ease-out);
}
.svc-card:hover {
    translate: 0 -6px;
    border-color: rgba(127, 214, 217, .45);
    box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(47, 164, 169, .25);
}
.svc-card::before { z-index: 2; }

.svc-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(.9);
    transition: transform 1.2s var(--ease-out), filter .6s;
}
.svc-card:hover .svc-card__media img { transform: scale(1.12); filter: saturate(1.1); }
.svc-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 42, 68, 0) 40%, rgba(15, 42, 68, .85));
}
.svc-card__pattern {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(rgba(255, 255, 255, .15) 1px, transparent 1.2px) 0 0 / 16px 16px,
        linear-gradient(135deg, var(--navy-700), var(--teal-600));
}
.svc-card__pattern .icon { width: 42%; height: 42%; color: rgba(255, 255, 255, .85); transition: transform 1.2s var(--ease-out); }
.svc-card:hover .svc-card__pattern .icon { transform: rotate(120deg) scale(1.08); }

.svc-card__body { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; padding: 30px 24px 26px; }
.svc-card__icon {
    position: absolute;
    top: -27px;
    left: 22px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--teal);
    box-shadow: 0 12px 26px -10px rgba(47, 164, 169, .9);
    transition: transform .6s var(--ease-spring);
}
.svc-card__icon .icon { width: 25px; height: 25px; }
.svc-card:hover .svc-card__icon { transform: rotate(-8deg) scale(1.08); }
.svc-card__num {
    position: absolute;
    top: 16px;
    right: 22px;
    color: rgba(255, 255, 255, .3);
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.svc-card__title { margin: 12px 0 10px; font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.svc-card__text { flex: 1; margin: 0; color: rgba(255, 255, 255, .66); font-size: .93rem; line-height: 1.65; }
.svc-card__more {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    margin-top: 20px;
    color: var(--teal-300);
    font-family: var(--font-head);
    font-size: .88rem;
    font-weight: 600;
}
.svc-card__more .icon { width: 1.1em; transition: transform .4s var(--ease-out); }
.svc-card:hover .svc-card__more .icon { transform: translateX(6px); }

/* ---------- Expertise / story ---------- */

.expertise__grid,
.story__grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: clamp(56px, 8vw, 110px);
    align-items: center;
}
.story__grid { grid-template-columns: 1.1fr .9fr; }

.expertise__media,
.story__media { position: relative; }
.expertise__media::before,
.story__media::before {
    content: "";
    position: absolute;
    inset: 28px -28px -28px 28px;
    border: 2px solid rgba(47, 164, 169, .45);
    border-radius: var(--radius-lg);
}

.photo-reveal {
    position: relative;
    aspect-ratio: 1 / 1.02;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--navy-900);
    box-shadow: var(--shadow-lg);
}
.photo-reveal--tall { aspect-ratio: 4 / 4.6; }
.photo-reveal img {
    width: 100%;
    height: 112%;
    margin-top: -6%;
    object-fit: cover;
    translate: 0 var(--py, 0);
    transform: scale(1.18);
    transition: transform 1.8s var(--ease-out);
}
.photo-reveal.is-visible img { transform: scale(1.04); }
.photo-reveal::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, transparent 50%, rgba(15, 42, 68, .45));
}

.float-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy-900);
    animation: float 6s ease-in-out infinite alternate;
}
.float-badge small {
    display: block;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.float-badge__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--teal-100);
    color: var(--teal-600);
}
.float-badge--a { bottom: 30px; left: -32px; }
.float-badge--b { top: 30px; right: -36px; animation-delay: -3s; }

/* ---------- Process timeline ---------- */

.timeline { position: relative; max-width: 1040px; margin-inline: auto; }
.timeline__rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .1);
    transform: translateX(-50%);
}
.timeline__fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(var(--teal-300), var(--teal));
    box-shadow: 0 0 18px rgba(47, 164, 169, .8);
    transform: scaleY(var(--fill, 0));
    transform-origin: top;
}
.timeline__list { display: grid; gap: clamp(28px, 4vw, 48px); list-style: none; }
.timeline__step { display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; }
.timeline__marker {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-inline: auto;
    border: 2px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    background: var(--navy-900);
    color: rgba(255, 255, 255, .45);
    transition: background-color .5s, border-color .5s, color .5s, box-shadow .6s, transform .6s var(--ease-spring);
}
.timeline__marker .icon { width: 26px; height: 26px; }
.timeline__step.is-active .timeline__marker {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 0 0 10px rgba(47, 164, 169, .14), 0 0 36px rgba(47, 164, 169, .65);
    transform: scale(1.06);
}
.timeline__card {
    grid-row: 1;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    background: rgba(255, 255, 255, .04);
    transition: border-color .5s, background-color .5s;
}
.timeline__step:nth-child(odd) .timeline__card { grid-column: 1; }
.timeline__step:nth-child(even) .timeline__card { grid-column: 3; }
.timeline__step.is-active .timeline__card { border-color: rgba(127, 214, 217, .3); background: rgba(255, 255, 255, .06); }
.timeline__card > * { position: relative; z-index: 1; }
.timeline__num {
    color: var(--teal-300);
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.timeline__card h3 { margin: .35em 0 .15em; font-size: 1.45rem; }
.timeline__sub { margin-bottom: .8em; color: var(--teal-300); font-weight: 500; }
.timeline__card p:last-child { margin: 0; color: rgba(255, 255, 255, .72); font-size: .96rem; line-height: 1.7; }

/* ---------- Testimonials ---------- */

.testimonials { background: var(--mist); }
.testimonials__grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(48px, 7vw, 90px);
    align-items: center;
}

.testi {
    position: relative;
    padding: clamp(30px, 5vw, 56px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}
.testi::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--teal-300), var(--navy-700));
}
.testi__mark {
    display: block;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    padding: 13px;
    border-radius: 16px;
    background: var(--teal-100);
    color: var(--teal-600);
}
.testi.is-visible .testi__mark { animation: chip-in .9s var(--ease-spring) .3s both; }
.testi__slides { position: relative; display: grid; }
.testi__slide {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity .7s var(--ease-out), transform .8s var(--ease-out), visibility 0s .8s;
}
.testi__slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
.testi__slide blockquote {
    position: relative;
    margin: 0 0 30px;
    color: var(--navy-900);
    font-family: var(--font-head);
    font-size: clamp(1.15rem, 1.9vw, 1.45rem);
    font-weight: 500;
    line-height: 1.6;
}
.testi__slide figcaption { display: flex; align-items: center; gap: 14px; }
.testi__slide figcaption strong { display: block; font-family: var(--font-head); }
.testi__slide figcaption small { color: var(--muted); font-size: .82rem; }
.testi__avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--navy-700));
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .06em;
}

.testi__controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.testi__btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy-900);
    transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-spring);
}
.testi__btn:hover { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); transform: scale(1.06); }
.testi__dots { display: flex; flex: 1; justify-content: center; gap: 8px; }
.testi__dot {
    position: relative;
    width: 38px;
    height: 5px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    background: var(--line);
}
.testi__dot span { position: absolute; inset: 0; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.testi__dot.is-active span { animation: progress var(--interval, 7s) linear forwards; }
.testi.is-paused .testi__dot.is-active span { animation-play-state: paused; }

/* ---------- CTA band ---------- */

.cta-band { padding-block: clamp(70px, 9vw, 110px); }
.cta-band--navy { background: var(--navy-900); }
.cta-band--mist { background: var(--mist); }
.cta-band--split { padding-block: 0; background: linear-gradient(var(--mist) 50%, var(--navy-900) 50%); }

.cta-band__panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr auto;
    gap: 32px 56px;
    align-items: center;
    padding: clamp(40px, 6vw, 72px);
    overflow: hidden;
    isolation: isolate;
    border-radius: 32px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(127, 214, 217, .5), transparent 55%),
        linear-gradient(120deg, var(--teal-600) 0%, var(--teal) 55%, #3DB4B9 100%);
    box-shadow: 0 50px 90px -45px rgba(47, 164, 169, .9);
    color: var(--white);
}
.cta-band__panel .particles { z-index: -1; }
.cta-band__rings { position: absolute; top: 50%; right: -140px; z-index: -1; width: 560px; aspect-ratio: 1; translate: 0 -50%; }
.cta-band__rings span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    animation: ripple-ring 7.5s var(--ease-out) infinite;
}
.cta-band__rings span:nth-child(2) { animation-delay: -2.5s; }
.cta-band__rings span:nth-child(3) { animation-delay: -5s; }
.cta-band .eyebrow { color: rgba(255, 255, 255, .9); }
.cta-band__title { margin: 0 0 .45em; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.cta-band__text { max-width: 40em; margin: 0; color: rgba(255, 255, 255, .88); font-size: 1.05rem; line-height: 1.7; }
.cta-band__actions { display: grid; gap: 12px; }
.cta-band .btn--ghost-light { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); }

/* ---------- Contact ---------- */

.contact__grid {
    position: relative;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(48px, 6vw, 80px);
    align-items: start;
}

.contact--page { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); }
.contact-cards { display: grid; gap: 14px; margin-top: 34px; }
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px 18px 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    background: rgba(255, 255, 255, .045);
    color: var(--white);
}
a.contact-card:hover { translate: 6px 0; border-color: rgba(127, 214, 217, .45); background: rgba(255, 255, 255, .07); }
.contact-card > * { position: relative; z-index: 1; }
.contact-card__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--teal);
    box-shadow: 0 12px 24px -12px rgba(47, 164, 169, .9);
}
.contact-card__body { min-width: 0; }
.contact-card small {
    display: block;
    color: rgba(255, 255, 255, .6);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.contact-card strong { display: block; font-family: var(--font-head); font-size: 1.06rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-card__arrow { margin-left: auto; opacity: .45; transition: opacity .3s, transform .4s var(--ease-out); }
a.contact-card:hover .contact-card__arrow { opacity: 1; transform: translateX(4px); }

.form-card {
    position: relative;
    padding: clamp(28px, 4vw, 44px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7);
    color: var(--ink);
}
.form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--teal-300), var(--navy-700));
}
.form-card__head { margin-bottom: 26px; }
.form-card__head h3 { margin-bottom: .3em; font-size: 1.5rem; }
.form-card__head p { margin: 0; color: var(--muted); font-size: .9rem; }
.form-card__note { margin: 14px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.req { color: var(--teal-600); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { position: relative; margin-bottom: 16px; }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 1.55em 1em .55em;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--mist);
    color: var(--ink);
    font: inherit;
    transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #CBD6DF; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--teal);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(47, 164, 169, .15);
}
.field label {
    position: absolute;
    top: 1.08em;
    left: 1.1em;
    color: var(--muted);
    pointer-events: none;
    transform-origin: left top;
    transition: transform .3s var(--ease-out), color .3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field label.is-static {
    transform: translateY(-.62em) scale(.76);
}
.field input:focus + label,
.field textarea:focus + label,
.field select:focus + label { color: var(--teal-600); }
.field .invalid { border-color: #E39A8F; background-color: #FFF7F6; }
.validation-message { margin-top: 6px; color: var(--danger); font-size: .82rem; animation: fade-up .4s var(--ease-out) both; }

.form-success { padding: 26px 0 10px; text-align: center; animation: fade-up .6s var(--ease-out) both; }
.form-success__tick { width: 88px; height: 88px; margin: 0 auto 18px; }
.form-success__tick circle,
.form-success__tick path {
    fill: none;
    stroke: var(--teal);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.form-success__tick circle { stroke-width: 2; animation: draw .8s var(--ease-in-out) forwards; }
.form-success__tick path { stroke-width: 3.5; animation: draw .6s var(--ease-in-out) .6s forwards; }
.form-success h3 { margin-bottom: .5em; font-size: 1.5rem; }
.form-success p { color: var(--ink-soft); }
.form-success a { color: var(--teal-600); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(120px, 13vw, 170px);
    overflow: hidden;
    isolation: isolate;
    background: var(--navy-900);
    color: var(--white);
}
.page-hero .aurora,
.page-hero .particles,
.page-hero .grid-lines { z-index: -1; }
.page-hero--image .aurora span { opacity: .3; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; animation: kenburns 24s ease-out both; }
.page-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--navy-900) 20%, rgba(15, 42, 68, .7) 55%, rgba(15, 42, 68, .35) 100%);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .6);
    font-size: .85rem;
    animation: fade-up .8s var(--ease-out) .1s both;
}
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--teal-300); }
.crumbs__sep { opacity: .4; }
.crumbs [aria-current] { color: var(--white); }

.page-hero__icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 24px;
    border: 1px solid rgba(127, 214, 217, .3);
    border-radius: 20px;
    background: rgba(47, 164, 169, .14);
    color: var(--teal-300);
    animation: chip-in .9s var(--ease-spring) .15s both;
}
.page-hero__icon .icon { width: 32px; height: 32px; }
.page-hero__eyebrow { animation: fade-up .8s var(--ease-out) .2s both; }
.page-hero__title {
    max-width: 15em;
    margin-bottom: 22px;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.04;
}
.page-hero__lede {
    max-width: 44em;
    margin: 0;
    color: rgba(255, 255, 255, .75);
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.7;
    animation: fade-up 1s var(--ease-out) .55s both;
}
.page-hero__curve { position: absolute; bottom: -1px; left: 0; z-index: 1; width: 100%; height: clamp(40px, 6vw, 80px); fill: var(--white); }
.page-hero--curve-navy .page-hero__curve { fill: var(--navy-900); opacity: 0; }
.page-hero--curve-mist .page-hero__curve { fill: var(--mist); }

.split { display: inline-block; overflow: hidden; padding-bottom: .08em; vertical-align: bottom; }
.split__word { display: inline-block; animation: word-up 1s var(--ease-out) both; animation-delay: calc(.2s + var(--i) * .08s); }
.split__word.split__word--accent {
    animation: word-up 1s var(--ease-out) both, shimmer 7s linear infinite;
    animation-delay: calc(.2s + var(--i) * .08s), 1.6s;
}

/* ---------- About ---------- */

.reg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; }
.reg-card {
    padding: 30px 26px 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    background: rgba(255, 255, 255, .04);
}
.reg-card > * { position: relative; z-index: 1; }
.reg-card__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(47, 164, 169, .16);
    color: var(--teal-300);
}
.reg-card__icon .icon { width: 28px; height: 28px; }
.reg-card__num {
    position: absolute;
    top: 24px;
    right: 26px;
    color: rgba(255, 255, 255, .22);
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .1em;
}
.reg-card h3 { margin-top: 24px; font-size: 1.08rem; font-weight: 600; line-height: 1.45; }

.statement { padding-block: clamp(90px, 12vw, 160px); }
.statement__text {
    max-width: 27em;
    margin: 0;
    color: var(--navy-900);
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3.6vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
}
.scrub-word { opacity: calc(.16 + var(--o, 0) * .84); transition: opacity .2s linear; }

.cred-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; }
.cred-grid > li { display: flex; }
.cred-card {
    width: 100%;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .5s var(--ease-out), box-shadow .4s, border-color .4s;
}
.cred-card:hover { border-color: rgba(47, 164, 169, .4); box-shadow: var(--shadow-lg); }
.cred-card > * { position: relative; z-index: 1; }
.cred-card__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--navy-900);
    color: var(--teal-300);
    transition: background-color .4s, color .4s, transform .6s var(--ease-spring);
}
.cred-card__icon .icon { width: 28px; height: 28px; }
.cred-card:hover .cred-card__icon { background: var(--teal); color: var(--white); transform: rotate(-6deg) scale(1.06); }
.cred-card h3 { margin: 24px 0 8px; font-size: 1.15rem; }
.cred-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.duo__card { padding: clamp(30px, 4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.duo__card h3 { margin: 22px 0 10px; font-size: 1.35rem; }
.duo__card p { margin: 0; color: var(--ink-soft); line-height: 1.75; }
.duo__card--accent { border-color: transparent; background: var(--navy-900); color: var(--white); }
.duo__card--accent p { color: rgba(255, 255, 255, .75); }
.duo__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--teal-100);
    color: var(--teal-600);
}
.duo__card--accent .duo__icon { background: var(--teal); color: var(--white); }

/* Icons that draw themselves in once their card is revealed. */
.icon-draw path,
.icon-draw circle,
.icon-draw rect { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-visible .icon-draw *,
.page-hero .icon-draw *,
.help-card .icon-draw * { animation: draw 1.4s var(--ease-in-out) .35s forwards; }

/* ---------- Services page ---------- */

.approach__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 96px); align-items: center; }
.approach__list { display: grid; gap: 14px; list-style: none; }
.approach__list li {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--mist);
}
.approach__list li > span {
    display: grid;
    place-items: center;
    flex: none;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--teal-600);
}
.approach__list h3 { font-size: 1.05rem; }
.approach__list p { margin: .25em 0 0; color: var(--muted); font-size: .93rem; }

/* ---------- Service detail ---------- */

.detail__grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.detail__lead {
    margin-bottom: 1.2em;
    color: var(--navy-900);
    font-family: var(--font-head);
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    font-weight: 500;
    line-height: 1.6;
}
.detail__why { margin-top: 44px; padding: clamp(26px, 3vw, 34px); border: 1px solid var(--line); border-radius: 24px; background: var(--mist); }
.detail__why h2 { margin-bottom: 20px; font-size: 1.3rem; }

.detail__aside { position: sticky; top: calc(72px + 24px); display: grid; gap: 22px; }
.help-card { padding: 32px; border-radius: 24px; background: var(--navy-900); color: var(--white); box-shadow: var(--shadow-lg); }
.help-card__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: rgba(47, 164, 169, .18);
    color: var(--teal-300);
}
.help-card__icon .icon { width: 30px; height: 30px; }
.help-card h2 { margin: 22px 0 10px; font-size: 1.3rem; line-height: 1.3; }
.help-card p { color: rgba(255, 255, 255, .72); }
.help-card .btn + .btn { margin-top: 10px; }

.other-services { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.other-services h2 { margin: 0 0 10px 10px; font-size: 1.05rem; }
.other-services ul { list-style: none; }
.other-services a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    border-radius: 12px;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 500;
    transition: background-color .3s, color .3s;
}
.other-services a > .icon:first-child { color: var(--teal); }
.other-services__arrow { margin-left: auto; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease-out); }
.other-services a:hover { background: var(--mist); color: var(--teal-600); }
.other-services a:hover .other-services__arrow { opacity: 1; transform: none; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(64px, 8vw, 96px); }
.pager__link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
}
.pager__link:hover { translate: 0 -4px; border-color: var(--teal); box-shadow: var(--shadow-lg); }
.pager__link--next { justify-content: flex-end; text-align: right; }
.pager__link small {
    display: block;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.pager__link span { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; }
.pager__link .icon {
    width: 44px;
    height: 44px;
    padding: 11px;
    border-radius: 50%;
    background: var(--mist);
    color: var(--teal-600);
    transition: background-color .3s, color .3s;
}
.pager__link:hover .icon { background: var(--teal); color: var(--white); }

/* ---------- Legal ---------- */

.legal__inner > * { max-width: 820px; }
.legal__block { margin-bottom: 34px; }
.legal__block h2 { margin-bottom: .6em; font-size: 1.4rem; }
.legal__block p { color: var(--ink-soft); line-height: 1.8; }
.legal__block ul { display: grid; gap: 10px; margin: .4em 0 1.2em; list-style: none; }
.legal__block li { display: flex; gap: .7em; color: var(--ink-soft); }
.legal__block li .icon { width: 1.25em; margin-top: .15em; color: var(--teal); }
.legal__contact { padding: 24px 28px; border-radius: 20px; background: var(--mist); }
.legal__contact p { margin: 0; }
.legal__contact a { color: var(--teal-600); font-weight: 600; }

/* ---------- Not found ---------- */

.not-found {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: calc(var(--header-h) + 40px) 0 80px;
    overflow: hidden;
    isolation: isolate;
    background: var(--navy-900);
    color: var(--white);
    text-align: center;
}
.not-found .aurora,
.not-found .particles { z-index: -1; }
.not-found__inner { display: grid; justify-items: center; }
.not-found__code {
    margin: 0 0 10px;
    color: rgba(127, 214, 217, .16);
    font-family: var(--font-head);
    font-size: clamp(6rem, 20vw, 13rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    animation: fade-up 1s var(--ease-out) both;
}
.not-found__code span { display: inline-block; color: var(--teal); text-shadow: 0 0 60px rgba(47, 164, 169, .6); animation: breathe 3s ease-in-out infinite; }
.not-found .page-hero__lede { margin-bottom: 34px; }
.not-found .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    padding: clamp(80px, 10vw, 110px) 0 calc(30px + var(--safe-b));
    overflow: hidden;
    background: var(--navy-950);
    color: rgba(255, 255, 255, .72);
}
.site-footer__watermark {
    position: absolute;
    bottom: -.2em;
    left: 50%;
    color: rgba(255, 255, 255, .03);
    font-family: var(--font-head);
    font-size: 22vw;
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}
.site-footer__top {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr .8fr 1.25fr 1.25fr;
    gap: 48px;
}
.site-footer__brand img { width: 230px; }
.site-footer__brand p { margin: 18px 0; color: var(--teal-300); font-family: var(--font-head); font-weight: 600; }
.site-footer__badges { display: grid; gap: 8px; list-style: none; }
.site-footer__badges li { display: flex; align-items: center; gap: .55em; font-size: .9rem; }
.site-footer__badges .icon { width: 1.1em; color: var(--teal); }
.site-footer__col h3 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.site-footer__col ul { display: grid; gap: 11px; list-style: none; }
.site-footer__col a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: color .3s, background-size .4s var(--ease-out);
}
.site-footer__col a:hover { color: var(--teal-300); background-size: 100% 1px; }
.site-footer__contact li { display: flex; align-items: center; gap: .7em; overflow-wrap: anywhere; }
.site-footer__contact .icon { width: 1.1em; color: var(--teal); }
.site-footer__bottom {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 28px;
    margin-top: 70px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .88rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; gap: 24px; list-style: none; }
.site-footer__bottom a:hover { color: var(--teal-300); }

.to-top {
    position: fixed;
    right: max(24px, var(--safe-r) + 12px);
    bottom: max(24px, var(--safe-b) + 12px);
    z-index: 50;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 16px 30px -12px rgba(47, 164, 169, .9);
    color: var(--white);
    opacity: 0;
    transform: translateY(20px) scale(.8);
    pointer-events: none;
    transition: opacity .4s, transform .5s var(--ease-spring), background-color .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal-400); transform: translateY(-4px); }

/* ---------- Scroll reveals (driven by site.js) ---------- */

html.js [data-reveal] {
    opacity: 0;
    transition:
        opacity .9s var(--ease-out) var(--d, 0ms),
        transform 1s var(--ease-out) var(--d, 0ms),
        translate .45s var(--ease-out),
        background-color .35s,
        border-color .35s,
        box-shadow .4s;
}
html.js [data-reveal="up"] { transform: translateY(42px); }
html.js [data-reveal="left"] { transform: translateX(-56px); }
html.js [data-reveal="right"] { transform: translateX(56px); }
html.js [data-reveal="zoom"] { transform: scale(.93); }
html.js [data-reveal="wipe"] { opacity: 1; }
html.js [data-reveal="wipe"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(90deg, var(--teal), var(--teal-600));
    transform-origin: right;
    transition: transform 1.3s var(--ease-in-out) calc(var(--d, 0ms) + .15s);
}
html.js [data-reveal="wipe"].is-visible::before { transform: scaleX(0); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Pre-rendered page ---------- */

/* Each page's HTML is saved into its index.html at deploy time, for search engines and for browsers that
   can't run the app. While the app is starting (html.js) it stays hidden behind the loading screen. */
html.js .prerendered { display: none; }
html:not(.js) .app-loading { display: none; }

/* ---------- Loading + error ---------- */

.app-loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: radial-gradient(ellipse at 50% 40%, var(--navy-800), var(--navy-900) 70%);
}
.app-loading__logo { width: min(260px, 62vw); animation: breathe 2.4s ease-in-out infinite; }
.app-loading__bar { position: relative; width: 160px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.app-loading__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    border-radius: inherit;
    background: var(--teal);
    animation: loading 1.3s var(--ease-in-out) infinite;
}

#blazor-error-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    padding: .7rem 1.25rem;
    background: #FFF8E1;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .2);
    color: #222;
}
#blazor-error-ui .dismiss { position: absolute; top: .5rem; right: .75rem; cursor: pointer; }
.blazor-error-boundary { padding: 1rem; background: #B32121; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }

/* ---------- Keyframes ---------- */

@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes header-in { from { opacity: 0; transform: translateY(-100%); } }
@keyframes word-up { from { transform: translateY(110%) rotate(3deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.12); } }
@keyframes breathe { 50% { transform: scale(1.035); } }
@keyframes float { to { translate: 0 -12px; } }
@keyframes emblem-in { from { opacity: 0; transform: scale(.82) rotate(-12deg); } }
@keyframes chip-in { from { opacity: 0; transform: scale(.6) translateY(16px); } }
@keyframes pop { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes pulse-ring { from { transform: scale(1); opacity: .7; } to { transform: scale(6); opacity: 0; } }
@keyframes ripple-ring { from { transform: scale(.45); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1.04); } }
@keyframes loading { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
    .header-call__text { display: none; }
    .chip--b { right: -2%; }
}

@media (max-width: 1100px) {
    .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
    :root { --header-h: 74px; }

    .nav-toggle { display: block; }
    .site-nav {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: -1;
        display: flex;
        flex-direction: column;
        width: min(400px, 100%);
        padding: calc(var(--header-h) + 24px) max(28px, var(--safe-r) + 16px) max(32px, var(--safe-b) + 16px) 28px;
        overflow-y: auto;
        background: var(--navy-950);
        box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .8);
        transform: translateX(105%);
        transition: transform .6s var(--ease-in-out);
    }
    .site-header.is-open .site-nav { transform: none; }
    .site-nav ul { flex-direction: column; gap: 2px; }
    .site-nav ul li,
    .site-nav__mobile-cta {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity .4s, transform .6s var(--ease-out);
    }
    .site-header.is-open .site-nav ul li,
    .site-header.is-open .site-nav__mobile-cta {
        opacity: 1;
        transform: none;
        transition-delay: calc(.2s + var(--n) * .06s);
    }
    .site-nav ul a { padding: .85em 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.3rem; font-weight: 600; }
    .site-nav ul a:hover { background: none; color: var(--teal-300); }
    .site-nav ul a::after { left: auto; right: 4px; bottom: 50%; transform: translateY(50%) scale(0); width: 8px; height: 8px; }
    .site-nav ul a.is-active { color: var(--teal-300); }
    .site-nav ul a.is-active::after { transform: translateY(50%) scale(1); }
    .site-nav__mobile-cta { display: grid; gap: 12px; margin-top: auto; padding-top: 32px; }
    .site-header__actions { margin-left: auto; }

    .hero__inner,
    .intro__grid,
    .expertise__grid,
    .story__grid,
    .testimonials__grid,
    .contact__grid,
    .approach__grid,
    .detail__grid { grid-template-columns: 1fr; }

    .hero { min-height: auto; padding-bottom: 120px; }
    .emblem { width: min(380px, 82%); margin-top: 10px; }
    .chip { font-size: .76rem; }

    .section-head--split { grid-template-columns: 1fr; }
    .section-foot { flex-direction: column; align-items: flex-start; }
    .scroll-cue { display: none; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat { padding-bottom: 30px; }

    .expertise__media,
    .story__media { max-width: 560px; margin-right: 28px; }
    .story__media { order: -1; }
    .float-badge--a { left: -12px; }
    .float-badge--b { right: -20px; }

    .timeline__rail { left: 33px; }
    .timeline__step { grid-template-columns: 66px 1fr; gap: 20px; align-items: start; }
    .timeline__marker { grid-column: 1; margin: 0; }
    .timeline__step:nth-child(odd) .timeline__card,
    .timeline__step:nth-child(even) .timeline__card { grid-column: 2; }

    .cta-band__panel { grid-template-columns: 1fr; }
    .cta-band__actions { grid-template-columns: repeat(2, max-content); }

    .cred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail__aside { position: static; }
}

/* Phones on their side: lots of width but very little height. Go back to two columns and size
   headings and photos to the screen height, so nothing feels zoomed in or gets cut in half. */
@media (orientation: landscape) and (max-height: 500px) {
    :root { --header-h: 60px; }
    .site-header[data-scrolled] { height: 54px; }
    .brand__logo,
    .site-header[data-scrolled] .brand__logo { height: 28px; }
    .header-call__icon,
    .nav-toggle { width: 40px; height: 40px; }
    .nav-toggle span { left: 10px; }
    .nav-toggle span:nth-child(1) { top: 13px; }
    .nav-toggle span:nth-child(2) { top: 19px; }
    .nav-toggle span:nth-child(3) { top: 25px; }
    .site-header.is-open .nav-toggle span:nth-child(1),
    .site-header.is-open .nav-toggle span:nth-child(3) { top: 19px; }
    .site-nav { padding-top: calc(var(--header-h) + 12px); }
    .site-nav ul a { padding: .5em 0; font-size: 1.1rem; }
    .site-nav__mobile-cta { padding-top: 18px; }

    .section { padding-block: 56px; }
    .section-head { margin-bottom: 32px; }
    .section-title { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
    .lead-text,
    .section-head__text { font-size: .98rem; line-height: 1.7; }
    .btn--lg { padding: .85em 1.5em; font-size: .92rem; }

    .hero { padding: calc(var(--header-h) + 28px) 0 44px; }
    .hero__inner { grid-template-columns: 1.2fr .8fr; gap: 28px; }
    .hero__title { margin-bottom: 16px; font-size: clamp(2.2rem, 5.4vw, 3rem); }
    .hero__lede { margin-bottom: 22px; font-size: .98rem; }
    .emblem { width: min(280px, 70vh); margin: 0; }
    .chip { font-size: .68rem; }
    .chip__icon { width: 24px; height: 24px; }
    .chip__icon .icon { width: 13px; height: 13px; }

    .intro__grid,
    .expertise__grid,
    .story__grid,
    .testimonials__grid,
    .approach__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .story__media { order: 0; }
    .expertise__media,
    .story__media { max-width: none; margin-right: 20px; }
    .photo-reveal,
    .photo-reveal--tall { aspect-ratio: auto; height: min(82vh, 360px); }
    .float-badge { padding: 8px 14px 8px 8px; font-size: .85rem; }
    .float-badge__icon { width: 36px; height: 36px; }
    .stats { margin-top: 48px; grid-template-columns: repeat(4, 1fr); }
    .stat { padding: 24px 16px 0; border-left: 1px solid var(--line); }
    .stat:first-child { padding-left: 0; border-left: 0; }
    .stat:nth-child(3) { padding-left: 16px; border-left: 1px solid var(--line); }
    .stat strong { font-size: 2.2rem; }

    .page-hero { padding: calc(var(--header-h) + 28px) 0 64px; }
    .page-hero__icon { display: none; }
    .crumbs { margin-bottom: 14px; }
    .page-hero__title { margin-bottom: 12px; font-size: clamp(2rem, 5vw, 2.7rem); }
    .page-hero__lede { font-size: .98rem; }
    .page-hero__curve { height: 36px; }

    .statement { padding-block: 64px; }
    .statement__text { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
    .detail__lead { font-size: 1.08rem; }
    .cta-band__panel { padding: 36px 40px; }
    .cta-band__title { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
    .testi__slide blockquote { font-size: 1.05rem; }
    .not-found { min-height: auto; padding-bottom: 56px; }
    .not-found__code { font-size: 5.5rem; }
}

@media (max-width: 640px) {
    /* Process timeline: slimmer markers and a tighter glow so the steps fit a phone screen. */
    .timeline__rail { left: 21px; }
    .timeline__step { grid-template-columns: 42px 1fr; gap: 14px; }
    .timeline__marker { width: 42px; height: 42px; }
    .timeline__marker .icon { width: 19px; height: 19px; }
    .timeline__step.is-active .timeline__marker { box-shadow: 0 0 0 5px rgba(47, 164, 169, .14), 0 0 22px rgba(47, 164, 169, .55); transform: none; }
    .timeline__card { padding: 20px 20px 22px; }
    .timeline__card h3 { font-size: 1.22rem; }

    .header-cta { display: none; }
    .brand__logo { height: 32px; }

    .hero__title { font-size: clamp(2.6rem, 13vw, 3.4rem); }
    .hero__actions .btn { width: 100%; }
    .chip--a { left: -6%; }
    .chip--b { right: -6%; }

    .svc-grid,
    .reg-grid,
    .cred-grid,
    .duo,
    .pager,
    .field-row,
    .checklist--grid { grid-template-columns: 1fr; }

    .stats { grid-template-columns: 1fr 1fr; }
    .stat { padding-inline: 16px 0; }
    .stat strong { font-size: 2.3rem; }

    .cta-band__actions { grid-template-columns: 1fr; }
    .cta-band__actions .btn { width: 100%; }

    .pager__link--next { justify-content: space-between; }
    .site-footer__top { grid-template-columns: 1fr; gap: 36px; }
    .site-footer__bottom { flex-direction: column; }
    .to-top { right: max(16px, var(--safe-r) + 8px); bottom: max(16px, var(--safe-b) + 8px); width: 46px; height: 46px; }
}

/* ---------- Reduced motion: keep the design, drop the movement ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    html.js [data-reveal] { opacity: 1; transform: none; }
    html.js [data-reveal="wipe"]::before { display: none; }
    .scrub-word { opacity: 1; }
}
