/* ==========================================================================
   CRG Solutions Caribbean — "Tidewater" design system
   Clean lines: hairline rules, sharp corners, numbered labels, generous space.
   Single stylesheet. Light theme only (AI Warriors panels are the navy exception).
   Mobile-first. Breakpoints: 768px, 1024px (desktop nav), 1440px.
   Colours confirmed against the logo (ribbon teal #137482 / #1B8F98, deep #12405C, wordmark #3E4E55).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --sand: #F7F5EF;
    --sand-2: #EFEBE1;
    --paper: #FFFFFF;
    --navy: #0F2A3D;
    --ocean: #12405C;
    --slate: #4A5B6A;
    --wordmark: #3E4E55;
    --teal: #1B9AA0;          /* decorative and large text */
    --teal-700: #137482;      /* text, links, focus: 5:1 on sand */
    --teal-200: #6CCFCF;      /* accents on navy */
    --teal-50: #E8F3F2;
    --amber: #F2A93B;         /* calls to action, navy text on top */
    --amber-600: #E0951F;
    --line: #E2DDD2;
    --line-strong: #CEC7B7;
    --line-cool: rgba(15, 42, 61, .09);
    --line-dark: rgba(108, 207, 207, .22);

    --text: var(--navy);
    --muted: var(--slate);
    --focus: var(--teal-700);

    --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mark: "Montserrat", var(--font-head);

    --fs-xs: .78rem;
    --fs-sm: .9375rem;
    --fs-base: 1.0625rem;
    --fs-lead: clamp(1.125rem, 1.02rem + .45vw, 1.3rem);
    --fs-h3: clamp(1.15rem, 1.06rem + .35vw, 1.3rem);
    --fs-h2: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem);
    --fs-h1: clamp(2.25rem, 1.55rem + 3.2vw, 4.25rem);

    --container: 1240px;
    --gutter: 16px;
    --section-y: clamp(4rem, 2.6rem + 5vw, 7.5rem);
    --radius: 6px;
    --radius-lg: 10px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 76px;
    --shadow: 0 1px 0 rgba(15, 42, 61, .04), 0 12px 32px -12px rgba(15, 42, 61, .18);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1440px) { :root { --gutter: 48px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
    margin: 0;
    background: var(--sand);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.12;
    letter-spacing: -.022em;
    margin: 0 0 .55em;
    text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
address { font-style: normal; }
::selection { background: var(--teal-50); color: var(--navy); }

.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; display: inline-block; }
svg.icon[stroke] { fill: none; }
.visually-hidden {
    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: absolute; left: 16px; top: -100px; z-index: 1000;
    background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: var(--radius);
    font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; outline-color: var(--amber); }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.bg-sand { background: var(--sand); }
.bg-white { background: var(--paper); }
.bg-mist { background: var(--teal-50); }
.bg-navy { background: var(--navy); }
.bg-footer { background: var(--sand-2); }

/* ---------- 3. Type helpers ---------- */
.kicker {
    display: flex; align-items: center; gap: .75rem;
    margin: 0 0 1.25rem;
    font: 700 var(--fs-xs)/1 var(--font-head);
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--slate);
}
.kicker__num { color: var(--teal-700); letter-spacing: .04em; }
.kicker::before {
    content: ""; order: 1; width: 32px; height: 1px; background: var(--teal);
}
.kicker__num { order: 0; }
.kicker__label { order: 2; }
.kicker--light { color: rgba(255, 255, 255, .72); }
.kicker--light .kicker__num { color: var(--teal-200); }
.kicker--light::before { background: var(--teal-200); }

.lead { font-size: var(--fs-lead); color: var(--slate); line-height: 1.6; }
.muted { color: var(--slate); }
.fine-print { font-size: var(--fs-sm); color: var(--slate); }
.fine-print--spaced { margin-top: 2rem; }
.h3, .tile__title { font-size: var(--fs-h3); }
.text-accent { color: var(--teal-700); }

/* ---------- 4. Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 50px; padding: .75em 1.35em;
    border: 1px solid transparent; border-radius: var(--radius);
    font: 700 .97rem/1.2 var(--font-head); letter-spacing: -.005em;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn__arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--accent { background: var(--amber); color: var(--navy); }
.btn--accent:hover { background: var(--amber-600); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--ocean); }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--light { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: .55em 1.05em; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .45em;
    font: 700 .95rem/1.3 var(--font-head); color: var(--navy); text-decoration: none;
    border-bottom: 1px solid var(--teal); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--teal-700); }
.link-arrow:hover .btn__arrow { transform: translateX(4px); }

/* ---------- 5. Top bar & header ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .85); font-size: var(--fs-sm); }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .15rem 1.5rem; padding-block: .45rem; }
.topbar__tag { display: none; margin-right: auto; font: 600 var(--fs-xs)/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-200); }
.topbar__link { display: inline-flex; align-items: center; gap: .45em; min-height: 30px; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.topbar__link .icon { color: var(--teal-200); }
.topbar__link:hover { text-decoration: underline; }
.topbar :focus-visible { outline-color: var(--amber); }
@media (min-width: 768px) {
    .topbar__inner { justify-content: flex-end; }
    .topbar__tag { display: block; }
}

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 245, 239, .9);
    backdrop-filter: saturate(1.5) blur(10px);
    -webkit-backdrop-filter: saturate(1.5) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 6px 24px -14px rgba(15, 42, 61, .35); }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--wordmark); text-decoration: none; margin-right: auto; min-width: 0; }
.brand__mark { width: 52px; height: auto; flex: none; }
.brand__logo { height: 50px; width: auto; }
@media (max-width: 400px) { .brand__logo { height: 40px; } }
@media (min-width: 1024px) { .brand__logo { height: 58px; } }
.site-footer .brand__logo { height: 56px; }
.brand__text {
    display: flex; flex-direction: column;
    font: 600 .95rem/1.12 var(--font-mark); letter-spacing: .035em; text-transform: uppercase;
    color: var(--wordmark); white-space: nowrap;
}
@media (max-width: 380px) {
    .brand__mark { width: 42px; }
    .brand__text { font-size: .8rem; }
}

.site-header__cta { display: none; }
@media (min-width: 1200px) { .site-header__cta { display: inline-flex; } }

.nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    min-height: 44px; padding: .5rem .9rem;
    border: 1px solid var(--navy); border-radius: var(--radius);
    background: transparent; color: var(--navy);
    font: 700 .92rem/1 var(--font-head); cursor: pointer;
}
.nav-toggle .icon { width: 1.25em; height: 1.25em; }
.nav-toggle:hover { background: var(--navy); color: #fff; }

.nav-desktop { display: none; }

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
    .site-header__cta { white-space: nowrap; }
    .nav-desktop { display: block; align-self: stretch; }
    .nav-desktop__list { display: flex; align-items: stretch; height: 100%; list-style: none; margin: 0; padding: 0; }
    .nav-desktop__item { position: relative; display: flex; align-items: center; }
    .nav-desktop__link {
        position: relative; display: flex; align-items: center; height: 100%;
        padding: 0 .7rem;
        color: var(--navy); text-decoration: none;
        font: 600 .94rem/1 var(--font-head);
        white-space: nowrap;
    }
    .nav-desktop__link::after {
        content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -1px;
        height: 2px; background: var(--teal);
        transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
    }
    .nav-desktop__link:hover::after, .nav-desktop__link[aria-current="page"]::after { transform: scaleX(1); }
    .nav-desktop__link[aria-current="page"] { color: var(--teal-700); }
    .nav-desktop__link--featured { color: var(--teal-700); }
    .has-children > .nav-desktop__link { padding-right: .15rem; }
    .has-children > .nav-desktop__link::after { right: 0; }
    .nav-desktop__toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 26px; height: 32px; margin-right: .35rem; padding: 0;
        border: 0; background: transparent; color: var(--navy); border-radius: var(--radius); cursor: pointer;
    }
    .nav-desktop__toggle .icon { width: 1.2em; height: 1.2em; transition: transform .2s var(--ease); }
    .nav-desktop__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
    .nav-desktop__sub {
        position: absolute; top: 100%; left: 0; z-index: 60;
        min-width: 340px; margin: 0; padding: .5rem 0;
        list-style: none;
        background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--teal);
        border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(6px);
        transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
    }
    .has-children:hover > .nav-desktop__sub, .has-children.is-open > .nav-desktop__sub {
        opacity: 1; visibility: visible; transform: none;
        transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s;
    }
    .nav-desktop__sub a {
        display: block; padding: .65rem 1.25rem;
        color: var(--navy); text-decoration: none; font-weight: 600;
        border-left: 2px solid transparent;
    }
    .nav-desktop__sub a:hover, .nav-desktop__sub a[aria-current="page"] { background: var(--teal-50); border-left-color: var(--teal); color: var(--teal-700); }
}
@media (min-width: 1200px) {
    .nav-desktop__link { padding-inline: .95rem; }
    .nav-desktop__link::after { left: .95rem; right: .95rem; }
}

/* Mobile drawer */
.nav-drawer { position: fixed; inset: 0; z-index: 100; }
.nav-drawer[hidden] { display: none; }
.nav-drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 42, 61, .5); opacity: 0; transition: opacity .25s var(--ease); }
.nav-drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(90vw, 400px);
    display: flex; flex-direction: column; gap: 1.5rem;
    padding: 1rem 1.5rem 2rem;
    background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); transition: transform .3s var(--ease);
}
.nav-drawer.is-open .nav-drawer__backdrop { opacity: 1; }
.nav-drawer.is-open .nav-drawer__panel { transform: none; }
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line); }
.nav-drawer__title { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.nav-drawer__close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: transparent; color: var(--navy); cursor: pointer;
}
.nav-drawer__close .icon { width: 1.3em; height: 1.3em; }
.nav-drawer__list, .nav-drawer__sub { list-style: none; margin: 0; padding: 0; }
.nav-drawer__list > li { border-bottom: 1px solid var(--line); }
.nav-drawer__list a { display: block; padding: .85rem 0; color: var(--navy); text-decoration: none; font: 700 1.1rem/1.3 var(--font-head); }
.nav-drawer__list a[aria-current="page"] { color: var(--teal-700); }
.nav-drawer__sub { padding: 0 0 .75rem 1rem; border-left: 1px solid var(--teal); margin-left: .1rem; }
.nav-drawer__sub a { padding: .45rem 0; font: 600 1rem/1.35 var(--font-body); color: var(--slate); }
.nav-drawer__contact { display: grid; gap: .5rem; font-size: var(--fs-sm); }
.nav-drawer__contact a { color: var(--teal-700); overflow-wrap: anywhere; }

/* ---------- 6. Wave divider (two ribbons → two hairlines) ---------- */
.wave { line-height: 0; position: relative; margin-block: -1px; }
.wave svg { display: block; width: 100%; height: clamp(36px, 5vw, 80px); }
.wave__fill { fill: currentColor; }
.wave__line { fill: none; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.wave__line--a { stroke: var(--teal); opacity: .55; }
.wave__line--b { stroke: var(--ocean); opacity: .25; }
.wave--to-white { color: var(--paper); }
.wave--to-sand { color: var(--sand); }
.wave--to-mist { color: var(--teal-50); }
.wave--to-navy { color: var(--navy); }
.wave--to-footer { color: var(--sand-2); }
.wave--to-navy .wave__line--a { stroke: var(--teal-200); }
.bg-navy .wave__line--b, .wave.bg-navy .wave__line--b { stroke: var(--teal-200); opacity: .3; }

/* ---------- 7. Layout primitives ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section-head { max-width: 760px; margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 4rem); }
.section-head--split { max-width: none; display: grid; gap: 1.5rem; align-items: end; }
.section-head--split .lead { margin: 0; }
@media (min-width: 1024px) {
    .section-head--split { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
}
.section-head h2 { margin-bottom: .35em; }

.narrow { max-width: 760px; margin-top: 3rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* Hairline grid background */
.has-grid { position: relative; isolation: isolate; }
.has-grid::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(to right, var(--line-cool) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line-cool) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: -1px -1px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}

/* ---------- 8. Hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3rem, 2rem + 3vw, 5rem); }
.hero__inner { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.15fr .85fr; } }
.hero__title { margin-bottom: .4em; }
.hero__title em { font-style: normal; color: var(--teal-700); }
.hero__lead { font-size: var(--fs-lead); color: var(--slate); max-width: 36em; }
.hero__meta {
    display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2.25rem 0 0; padding: 1.25rem 0 0;
    list-style: none; border-top: 1px solid var(--line);
    font: 600 var(--fs-sm)/1.3 var(--font-head); color: var(--navy);
}
.hero__meta li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta li::before { content: ""; width: 6px; height: 6px; background: var(--teal); transform: rotate(45deg); }

/* Agent workflow panel (hero illustration built from real portal stages) */
.workflow {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
}
.workflow__bar {
    display: flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--line); background: var(--sand);
    font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.workflow__dots { display: inline-flex; gap: 5px; margin-right: .4rem; }
.workflow__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.workflow__list { list-style: none; margin: 0; padding: .5rem 0; counter-reset: wf; }
.workflow__item {
    display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: center; gap: .85rem;
    padding: .8rem 1.1rem; position: relative;
}
.workflow__item + .workflow__item::before {
    content: ""; position: absolute; left: calc(1.1rem + 1.125rem); top: -.6rem; height: 1.2rem; width: 1px; background: var(--line-strong);
}
.workflow__num {
    display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
    border: 1px solid var(--teal); border-radius: 50%; background: var(--paper);
    font: 700 .78rem/1 var(--font-head); color: var(--teal-700);
}
.workflow__label { font: 700 .98rem/1.25 var(--font-head); color: var(--navy); }
.workflow__desc { display: block; font: 400 .88rem/1.35 var(--font-body); color: var(--slate); }
.workflow__check { width: 1.15rem; height: 1.15rem; color: var(--teal); }
.workflow__foot {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: .9rem 1.1rem; border-top: 1px solid var(--line);
    font: 600 var(--fs-sm)/1.3 var(--font-head); color: var(--navy); background: var(--teal-50);
}
.workflow__foot span:last-child { color: var(--teal-700); }

/* Hero "connected business" stack */
.stack { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.stack__list { list-style: none; margin: 0; padding: 1rem; display: grid; gap: .5rem; }
.stack__layer {
    display: grid; grid-template-columns: 2.5rem 1fr; gap: .9rem; align-items: center;
    padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.stack__layer:hover { border-color: var(--teal); transform: translateX(4px); }
.stack__layer .icon { width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); }
.stack__layer strong { display: block; font: 700 .98rem/1.25 var(--font-head); color: var(--navy); }
.stack__layer small { display: block; font-size: .88rem; color: var(--slate); }
.stack__layer--top { border-color: rgba(27, 154, 160, .45); }
.stack__layer--base { background: var(--sand); }
.stack__foot {
    display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem;
    border-top: 1px solid var(--line); background: var(--navy); color: rgba(255, 255, 255, .85);
    font: 600 var(--fs-sm)/1.3 var(--font-head);
}
.stack__foot .icon { width: 1.2rem; height: 1.2rem; color: var(--amber); }
.stack__foot strong { color: #fff; }

/* Eight-service grid and tile body text */
@media (min-width: 1100px) { .tiles.tiles--4 { grid-template-columns: repeat(4, 1fr); } }
.tile__text { color: var(--slate); font-size: var(--fs-sm); flex: 1; margin: 0 0 1.75rem; }
.tile--feature .tile__text { color: rgba(255, 255, 255, .78); }

/* Platforms strip */
.techline { display: grid; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .techline { grid-template-columns: 220px 1fr; align-items: center; gap: 2rem; } }
.techline__label { margin: 0; font: 700 var(--fs-xs)/1.4 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.techline .chips { margin: 0; }

/* ---------- Slider ---------- */
.slider { position: relative; background: var(--sand); isolation: isolate; }
.slider__viewport { position: relative; height: clamp(520px, 78vh, 780px); overflow: hidden; }
.slider--preview .slider__viewport { height: 100vh; min-height: 0; }
.slide-preview-body { margin: 0; overflow: hidden; }
.slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; z-index: 1; }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide__overlay { position: absolute; inset: 0; z-index: -1; background: var(--slide-overlay, transparent); }
.slide--light-text .slide__overlay { background: linear-gradient(90deg, var(--slide-overlay), var(--slide-overlay)); }
.slide__content { display: flex; width: 100%; padding-block: 3rem 6rem; }
.slide__content--left { justify-content: flex-start; text-align: left; }
.slide__content--center { justify-content: center; text-align: center; }
.slide__content--right { justify-content: flex-end; text-align: left; }
.slide__inner { max-width: 640px; color: var(--slide-text, var(--navy)); }
.slide__content--center .slide__inner { max-width: 760px; }
.slide__title {
    margin: 0 0 .35em; color: inherit;
    font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
}
.slide__sub { margin: 0 0 2rem; font-size: var(--fs-lead); line-height: 1.55; color: inherit; opacity: .88; max-width: 34em; }
.slide__content--center .slide__sub { margin-inline: auto; }
.slide--light-text .slide__title, .slide--light-text .slide__sub { text-shadow: 0 2px 18px rgba(15, 42, 61, .35); }
.slide--light-text :focus-visible { outline-color: var(--amber); }
@media (max-width: 767px) {
    .slide { align-items: flex-end; }
    .slide__img { object-position: 75% center; }
    .slide__content--right { justify-content: flex-start; }
    .slide__content { padding-block: 2.5rem 5.5rem; }
    /* Soft fade behind the text so it stays readable over any image on small screens */
    .slide__overlay::after { content: ""; position: absolute; inset: 22% 0 0; background: linear-gradient(to bottom, rgba(247, 245, 239, 0), rgba(247, 245, 239, .95) 40%); }
    .slide--light-text .slide__overlay::after { background: linear-gradient(to bottom, rgba(15, 42, 61, 0), rgba(15, 42, 61, .88) 40%); }
}
@media (max-width: 560px) {
    .slider__controls { gap: .35rem; }
    .slider__controls [data-slider-prev], .slider__controls [data-slider-next] { display: none; }
    .slider__dots { padding: 0; gap: 0; flex: 1; }
    .slider__dot { width: 40px; }
    .slider__bar { bottom: 1rem; }
}

/* Per-slide animation styles (run each time a slide becomes active) */
.slide.is-active[data-anim="fade"] .slide__inner > * { animation: slide-fade .9s var(--ease) both; }
.slide.is-active[data-anim="slide-up"] .slide__inner > * { animation: slide-up .9s var(--ease) both; }
.slide.is-active[data-anim="zoom"] .slide__img { animation: slide-zoom 9s ease-out both; }
.slide.is-active[data-anim="zoom"] .slide__inner > * { animation: slide-fade 1.1s var(--ease) both; }
.slide.is-active .slide__inner > :nth-child(2) { animation-delay: .15s; }
.slide.is-active .slide__inner > :nth-child(3) { animation-delay: .3s; }
@keyframes slide-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes slide-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Controls */
.slider__bar { position: absolute; left: 0; right: 0; bottom: 1.5rem; z-index: 5; pointer-events: none; }
.slider__controls { display: flex; align-items: center; gap: .6rem; pointer-events: auto; }
.slider__btn {
    display: grid; place-items: center; width: 44px; height: 44px; flex: none;
    border: 1px solid rgba(15, 42, 61, .25); border-radius: 50%;
    background: rgba(255, 255, 255, .85); color: var(--navy); font-size: 1.05rem; cursor: pointer;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.slider__btn:hover { background: var(--navy); color: #fff; }
.slider__btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.slider__btn .icon { width: 18px; height: 18px; }
.slider__icon-play { display: none; }
.slider.is-paused .slider__icon-play { display: block; }
.slider.is-paused .slider__icon-pause { display: none; }
.slider__dots { display: flex; gap: .4rem; padding: 0 .4rem; }
.slider__dot {
    position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
}
.slider__dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(15, 42, 61, .2); }
.slider__progress { position: absolute; left: 4px; top: 50%; height: 4px; margin-top: -2px; width: 0; border-radius: 4px; background: var(--teal-700); }
.slider__dot[aria-current="true"]::before { background: rgba(15, 42, 61, .3); }
.slider__dot[aria-current="true"] .slider__progress { width: calc(100% - 8px); animation: slider-progress var(--slider-interval, 7s) linear both; transform-origin: left; }
.slider.is-paused .slider__progress, .slider.is-hold .slider__progress { animation-play-state: paused; }
.slider__dot:focus-visible { outline: 2px solid var(--amber); outline-offset: -4px; border-radius: 6px; }
@keyframes slider-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider--light .slider__dot::before { background: rgba(255, 255, 255, .35); }
.slider--light .slider__progress { background: #fff; }

@media (prefers-reduced-motion: reduce) {
    .slide, .slide.is-active { transition: none; }
    .slide.is-active .slide__inner > *, .slide.is-active .slide__img { animation: none !important; }
    .slider__dot[aria-current="true"] .slider__progress { animation: none; transform: none; }
}

/* ---------- 9. Pillars (three-column hairline strip) ---------- */
.pillars { display: grid; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
    .pillar { padding: 2rem 2rem 2rem 0; border-bottom: 0; }
    .pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--line); }
}
.pillar__num { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .12em; color: var(--teal-700); margin-bottom: 1rem; display: block; }
.pillar__big { font: 800 clamp(2rem, 1.6rem + 1.6vw, 2.75rem)/1 var(--font-head); letter-spacing: -.03em; color: var(--navy); margin-bottom: .5rem; display: block; }
.pillar h3 { margin-bottom: .4em; }
.pillar p { color: var(--slate); margin: 0; }

/* ---------- 10. Problem statement + question list ---------- */
.statement { font: 800 clamp(1.6rem, 1.25rem + 1.6vw, 2.5rem)/1.15 var(--font-head); letter-spacing: -.03em; color: var(--navy); margin-bottom: .6em; }
.statement span { color: var(--teal-700); }
.qlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); counter-reset: q; }
.qlist li {
    counter-increment: q;
    display: grid; grid-template-columns: 3rem 1fr; gap: .5rem;
    padding: 1.1rem 0; border-bottom: 1px solid var(--line);
    font: 600 1.05rem/1.45 var(--font-head); color: var(--navy);
}
.qlist li::before { content: counter(q, decimal-leading-zero); font: 700 var(--fs-xs)/1.9 var(--font-head); letter-spacing: .1em; color: var(--teal-700); }

/* ---------- 11. Process (connected steps) ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; position: relative; }
@media (min-width: 900px) {
    .process { grid-template-columns: repeat(4, 1fr); }
    .process::before {
        content: ""; position: absolute; left: 0; right: 0; top: 1.4rem; height: 1px; background: var(--line-strong);
    }
}
.process__step { position: relative; padding: 0 0 2rem 3.75rem; }
.process__step::after {
    content: ""; position: absolute; left: 1.4rem; top: 2.8rem; bottom: 0; width: 1px; background: var(--line-strong);
}
.process__step:last-child::after { display: none; }
@media (min-width: 900px) {
    .process__step { padding: 4.25rem 2rem 0 0; }
    .process__step::after { display: none; }
}
.process__node {
    position: absolute; left: 0; top: 0;
    display: grid; place-items: center; width: 2.8rem; height: 2.8rem;
    background: var(--paper); border: 1px solid var(--teal); border-radius: 50%;
    font: 800 .85rem/1 var(--font-head); color: var(--teal-700);
}
.bg-white .process__node { background: var(--sand); }
.process__step:last-child .process__node { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.process__title { font-size: 1.35rem; margin-bottom: .3em; }
.process__time { display: inline-block; margin-bottom: .6rem; font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.process__step p { color: var(--slate); margin: 0; }
.process + .fine-print { margin-top: 2.5rem; }

/* ---------- 12. Service tiles (hairline grid) ---------- */
.tiles {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: flex; flex-direction: column; padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); background: var(--paper); transition: background-color .25s var(--ease); }
.tile:hover { background: #FBFAF7; }
.tile__num { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .12em; color: var(--teal-700); margin-bottom: 2.25rem; display: flex; justify-content: space-between; align-items: center; }
.tile__num .icon { width: 1.4rem; height: 1.4rem; color: var(--teal); }
.tile__title { margin-bottom: .6em; }
.tile__link { color: var(--navy); text-decoration: none; }
.tile__link::after { content: ""; position: absolute; inset: 0; }
.tile__link:focus-visible { outline: none; }
.tile:has(.tile__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: -4px; }
.tile__list { list-style: none; margin: 0 0 1.75rem; padding: 0; color: var(--slate); font-size: var(--fs-sm); flex: 1; }
.tile__list li { padding: .3rem 0 .3rem 1rem; position: relative; }
.tile__list li::before { content: ""; position: absolute; left: 0; top: .9em; width: 6px; height: 1px; background: var(--teal); }
.tile__more { font: 700 .92rem/1 var(--font-head); color: var(--navy); display: inline-flex; gap: .45em; align-items: center; }
.tile:hover .tile__more { color: var(--teal-700); }
.tile:hover .btn__arrow { transform: translateX(4px); }
.tile--feature { background: var(--navy); color: rgba(255, 255, 255, .8); }
.tile--feature:hover { background: var(--ocean); }
.tile--feature .tile__link, .tile--feature .tile__more { color: #fff; }
.tile--feature .tile__num { color: var(--teal-200); }
.tile--feature .tile__list { color: rgba(255, 255, 255, .78); }
.tile--feature .tile__list li::before { background: var(--teal-200); }

/* ---------- Compact service list (home page) ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 2.5rem; border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .svc-list { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--svc-rows, 4), auto); grid-auto-flow: column; } }
.svc-row {
    position: relative; display: grid; grid-template-columns: 2.75rem 1fr auto; align-items: center; gap: 1rem;
    padding: 1.05rem .75rem 1.05rem .25rem; border-bottom: 1px solid var(--line);
    transition: background-color .2s var(--ease);
}
.svc-row:hover { background: rgba(255, 255, 255, .7); }
.svc-row__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--teal-700); }
.svc-row__icon .icon { width: 1.3rem; height: 1.3rem; }
.svc-row__body { min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: baseline; }
.svc-row__num { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .1em; color: var(--teal-700); }
.svc-row__title { margin: 0; font-size: 1.06rem; line-height: 1.3; }
.svc-row__link { color: var(--navy); text-decoration: none; }
.svc-row__link::after { content: ""; position: absolute; inset: 0; }
.svc-row__link:focus-visible { outline: none; }
.svc-row:has(.svc-row__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.svc-row__text { grid-column: 2; margin-top: .2rem; font-size: var(--fs-sm); color: var(--slate); line-height: 1.45; }
.svc-row__arrow { color: var(--teal-700); font-size: 1.15rem; transition: transform .25s var(--ease); }
.svc-row:hover .svc-row__arrow { transform: translateX(4px); }
.svc-row:hover .svc-row__link { color: var(--teal-700); }
.svc-row--feature .svc-row__icon { background: var(--navy); border-color: var(--navy); color: var(--teal-200); }
.svc-row--feature { background: rgba(255, 255, 255, .55); }
.section-head--split .link-arrow { margin-top: 1rem; }

/* ---------- 13. AI Warriors (navy panels with circuit motif) ---------- */
.ai {
    position: relative; isolation: isolate;
    background-color: var(--navy); color: rgba(255, 255, 255, .8);
}
.ai::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: url("../img/circuit.svg"), radial-gradient(ellipse 60% 70% at 85% 15%, rgba(27, 154, 160, .28), transparent 70%), radial-gradient(ellipse 50% 60% at 5% 100%, rgba(18, 64, 92, .9), transparent 70%);
    background-size: 240px 240px, auto, auto;
    -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .55));
    mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .55));
}
.ai h1, .ai h2, .ai h3 { color: #fff; }
.ai a:not(.btn) { color: var(--teal-200); }
.ai :focus-visible { outline-color: var(--amber); }
.ai .lead { color: rgba(255, 255, 255, .78); }
.ai__brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.ai__shield { width: 54px; height: 54px; flex: none; }
.ai__title { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem); margin: 0; letter-spacing: -.04em; }
.ai__sub { font: 600 var(--fs-sm)/1.3 var(--font-head); color: var(--teal-200); letter-spacing: .02em; margin: .3rem 0 0; }
.ai__tagline { font: 700 var(--fs-lead)/1.4 var(--font-head); color: #fff; }
.ai__tagline span { color: var(--teal-200); }
.ai-band__inner { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .ai-band__inner { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.portfolio { border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .03); }
.portfolio__head { display: flex; align-items: baseline; gap: 1rem; padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--line-dark); flex-wrap: wrap; }
.portfolio__count { font: 800 clamp(3rem, 2.2rem + 3vw, 4.5rem)/.9 var(--font-head); letter-spacing: -.05em; color: #fff; }
.portfolio__label { font: 700 var(--fs-xs)/1.4 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-200); }
.portfolio__label strong { display: block; color: rgba(255, 255, 255, .8); letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.portfolio__list { list-style: none; margin: 0; padding: 0; }
.portfolio__list li { display: grid; grid-template-columns: 3rem 1fr; gap: .75rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line-dark); }
.portfolio__list li:last-child { border-bottom: 0; }
.portfolio__n { font: 800 1.5rem/1 var(--font-head); color: var(--amber); letter-spacing: -.02em; }
.portfolio__list h2, .portfolio__list h3 { font-size: 1.05rem; margin: 0 0 .2em; letter-spacing: -.01em; }
.portfolio__list p { margin: 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, .72); }

.ai-steps { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 2rem 0 0; padding: 0; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.ai-steps li { flex: 1 1 50%; padding: .9rem 1rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); font: 700 .98rem/1.2 var(--font-head); color: #fff; }
.ai-steps li span { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--amber); margin-bottom: .3rem; }
@media (min-width: 600px) { .ai-steps li { flex-basis: 25%; border-bottom: 0; } .ai-steps li:last-child { border-right: 0; } }

/* ---------- Clients logo scroller (left to right) ---------- */
.clients { padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.clients__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.clients__head .kicker { margin: 0; }
.clients__title { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.9rem); margin: 0; }
.marquee {
    position: relative; overflow: hidden;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: marquee-ltr 60s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee--static { -webkit-mask-image: none; mask-image: none; }
.marquee--static .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
.marquee--static .client:first-child > a, .marquee--static .client:first-child > .client__box { border-left: 1px solid var(--line); }
@keyframes marquee-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.client > a, .client__box {
    position: relative; display: flex; align-items: center; justify-content: center;
    height: 112px; min-width: 200px; padding: 1.5rem 2.25rem;
    border-right: 1px solid var(--line); text-decoration: none; color: var(--slate);
}
.client img { max-height: 56px; max-width: 170px; width: auto; height: auto; filter: grayscale(1); opacity: .7; transition: filter .25s var(--ease), opacity .25s var(--ease); }
.client > a:hover img, .client > a:focus-visible img { filter: none; opacity: 1; }
.client__name { font: 800 1.05rem/1.2 var(--font-head); letter-spacing: -.01em; color: var(--wordmark); text-align: center; max-width: 220px; transition: color .2s var(--ease); }
.client > a:hover .client__name { color: var(--teal-700); }
.client > a:focus-visible { outline-offset: -4px; }
.client__flag, .quote-card__flag {
    position: absolute; top: .5rem; right: .5rem; padding: .15rem .45rem; border-radius: 4px;
    background: #FFF4E0; border: 1px solid rgba(242, 169, 59, .6); color: #7A4A00;
    font: 700 .65rem/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
}
.admin-preview-note { margin: 0 0 1rem; padding: .6rem .9rem; border: 1px dashed rgba(242, 169, 59, .8); border-radius: var(--radius); background: #FFFBF2; color: #6B4300; font-size: var(--fs-sm); }
@media (prefers-reduced-motion: reduce) {
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
    .marquee__track > [aria-hidden="true"] { display: none; }
}

/* ---------- Testimonials ---------- */
.testimonials__nav { display: flex; gap: .5rem; justify-self: end; }
.testimonials__nav[hidden] { display: none; }
.testimonials__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--navy); border-radius: 50%; background: transparent; color: var(--navy); font-size: 1.15rem; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.testimonials__btn:hover:not(:disabled) { background: var(--navy); color: #fff; }
.testimonials__btn:disabled { opacity: .35; cursor: default; }
.testimonials__track {
    list-style: none; margin: 0; padding: 0 0 .5rem;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 88%); gap: 1.25rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin;
    overscroll-behavior-x: contain;
}
@media (min-width: 768px) { .testimonials__track { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (min-width: 1100px) { .testimonials__track { grid-auto-columns: calc((100% - 2.5rem) / 3); } }
.testimonials__track:focus-visible { outline-offset: 6px; }
.quote-card { scroll-snap-align: start; display: flex; }
.quote-card figure {
    position: relative; margin: 0; width: 100%; display: flex; flex-direction: column;
    padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.quote-card__mark { width: 36px; height: 36px; color: var(--teal); margin-bottom: 1rem; }
.quote-card blockquote { margin: 0 0 1.75rem; flex: 1; }
.quote-card blockquote p { margin: 0; font: 600 1.08rem/1.55 var(--font-head); color: var(--navy); letter-spacing: -.005em; }
.quote-card figcaption { display: flex; align-items: center; gap: .85rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.quote-card__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.quote-card__initials { display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); font: 800 1rem/1 var(--font-head); }
.quote-card figcaption strong { display: block; font: 700 1rem/1.3 var(--font-head); color: var(--navy); }
.quote-card figcaption span span { display: block; font-size: var(--fs-sm); color: var(--slate); }

/* ---------- 14. Quote ---------- */
.quote { margin: 0; padding: 0; max-width: 980px; }
.quote__mark { width: 40px; height: 40px; color: var(--teal); margin-bottom: 1.25rem; }
.quote blockquote { margin: 0; font: 700 clamp(1.4rem, 1.1rem + 1.5vw, 2.25rem)/1.25 var(--font-head); letter-spacing: -.025em; color: var(--navy); }
.quote figcaption { margin-top: 1.25rem; font: 600 var(--fs-sm)/1.4 var(--font-head); color: var(--slate); display: flex; align-items: center; gap: .75rem; }
.quote figcaption::before { content: ""; width: 32px; height: 1px; background: var(--teal); }

/* ---------- 15. CTA ---------- */
.cta { display: grid; gap: 2rem; align-items: center; padding: clamp(2rem, 1.5rem + 3vw, 4rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr auto; } }
.cta::after {
    content: ""; position: absolute; right: -40px; bottom: -30px; width: 260px; height: 200px; pointer-events: none;
    background: url("../img/logo-mark.svg") no-repeat center / contain; opacity: .08;
}
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; color: var(--slate); }
.cta p a { overflow-wrap: anywhere; }
.cta .btn-row { margin: 0; position: relative; z-index: 1; }

/* ---------- 16. Inner page hero & breadcrumb ---------- */
.page-hero { padding-block: clamp(2.75rem, 2rem + 3.5vw, 5.5rem) clamp(2.25rem, 1.75rem + 2vw, 3.75rem); border-bottom: 1px solid var(--line); }
.page-hero__inner { max-width: 860px; }
.page-hero h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem); margin-bottom: .35em; }
.page-hero .lead { margin: 0; max-width: 40em; }
.breadcrumb { margin-bottom: 1.75rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; font: 600 var(--fs-sm)/1.3 var(--font-head); color: var(--slate); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-700); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--navy); }
.ai.page-hero { border-bottom: 0; }
.ai .breadcrumb ol, .ai .breadcrumb a { color: rgba(255, 255, 255, .7); }
.ai .breadcrumb [aria-current] { color: #fff; }

/* ---------- 17. Prose (CMS body content) ---------- */
.prose { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 1.25rem + .9vw, 1.9rem); margin: 2.25em 0 .6em; padding-top: 1.25em; border-top: 1px solid var(--line); }
.prose h2:first-child { padding-top: 0; border-top: 0; }
.prose h3 { margin: 1.75em 0 .5em; }
.prose p, .prose li { color: #24394A; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding: .35rem 0 .35rem 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 1px; background: var(--teal); }
.prose ul li strong { color: var(--navy); }
.prose .lead { color: var(--slate); }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--teal); font: 600 1.2rem/1.45 var(--font-head); color: var(--navy); }
.prose .callout { margin: 2rem 0; padding: 1.5rem; background: var(--teal-50); border: 1px solid rgba(19, 116, 130, .2); border-radius: var(--radius); }
.prose .callout p:last-child { margin: 0; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list li { background: var(--paper); padding: 1.5rem; }
.feature-list h3 { font-size: 1.08rem; margin: 0 0 .35em; }
.feature-list p { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
.prose .feature-list li { padding: 1.5rem; }
.prose .feature-list li::before { display: none; }

/* Service page layout */
.with-aside { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .with-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 5rem; } }
.aside { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 1024px) { .aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
.aside-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.aside-box h2 { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0 0 1rem; }
.aside-nav { list-style: none; margin: 0; padding: 0; }
.aside-nav a { display: block; padding: .55rem 0 .55rem .85rem; border-left: 1px solid var(--line); color: var(--navy); text-decoration: none; font: 600 .95rem/1.35 var(--font-head); }
.aside-nav a:hover { border-left-color: var(--teal); color: var(--teal-700); }
.aside-nav a[aria-current="page"] { border-left: 2px solid var(--teal); color: var(--teal-700); }
.aside-box--dark { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .8); }
.aside-box--dark h2 { color: var(--teal-200); }
.aside-box--dark p { font-size: var(--fs-sm); }
.aside-box--dark :focus-visible { outline-color: var(--amber); }

/* Independence statement */
.notice {
    display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
    padding: 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--paper);
}
.notice .icon { width: 1.5rem; height: 1.5rem; color: var(--teal-700); margin-top: .15rem; }
.notice h2 { font-size: 1.05rem; margin: 0 0 .35em; }
.notice p { margin: 0; color: var(--slate); }

/* ---------- About: team and leadership bio ---------- */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.team-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.team-card__photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--teal-50); }
.team-card__initials { display: grid; place-items: center; font: 800 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--font-head); color: var(--teal-700); letter-spacing: -.03em; }
.team-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.team-card__name { font-size: 1.2rem; margin: 0 0 .2em; }
.team-card__role { margin: 0 0 .9rem; font: 700 var(--fs-xs)/1.4 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.team-card__bio { margin: 0 0 1.25rem; color: var(--slate); font-size: var(--fs-sm); flex: 1; }
.team-card__link { display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; padding: .45rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--navy); text-decoration: none; font: 700 .88rem/1 var(--font-head); }
.team-card__link:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.team-card__link .icon { width: 16px; height: 16px; }

.bio-block { max-width: 980px; margin-bottom: 3rem; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sand); position: relative; }
.bio-block__label { position: absolute; top: -.75rem; left: 1.5rem; margin: 0; padding: .3rem .7rem; background: var(--navy); color: #fff; border-radius: 4px; font: 700 .7rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.bio-block__grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 700px) { .bio-block__grid { grid-template-columns: 180px 1fr; gap: 2.25rem; } }
.bio-block__photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; background: var(--teal-50); }
.bio-block__name { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin: 0 0 .2em; }
.bio-block__title { margin: 0 0 1rem; font: 700 var(--fs-xs)/1.4 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.bio-block__text { max-width: none; }
.notice--wide { max-width: 980px; }
.bio-block--after-intro { margin: 3.5rem 0 0; }

/* reCAPTCHA widget (304px wide; scaled down on very narrow screens) */
.captcha { min-height: 78px; }
@media (max-width: 359px) { .captcha .g-recaptcha { transform: scale(.88); transform-origin: 0 0; } }

/* Contact page */
.contact-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid li { background: var(--paper); padding: 2rem 1.5rem; }
.contact-grid .icon { width: 1.5rem; height: 1.5rem; color: var(--teal-700); margin-bottom: 1.25rem; }
.contact-grid h2 { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0 0 .6rem; }
.contact-grid a, .contact-grid p { font: 700 1.15rem/1.35 var(--font-head); color: var(--navy); text-decoration: none; overflow-wrap: anywhere; margin: 0; }
.contact-grid a:hover { color: var(--teal-700); text-decoration: underline; }

/* ---------- Contact page & forms ---------- */
.contact-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1100px) { .contact-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; } }
@media (min-width: 1300px) { .contact-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 4rem; } }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 24px); }
.form-card__title { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-bottom: .3em; }
.form-card__intro { color: var(--slate); font-size: var(--fs-sm); margin-bottom: 1.75rem; }
.req { color: #B4441B; font-weight: 700; }
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font: 700 .92rem/1.3 var(--font-head); color: var(--navy); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: .75rem .9rem;
    font: 400 1rem/1.4 var(--font-body); color: var(--navy);
    background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(19, 116, 130, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B4441B; }
.field__error { margin: 0; color: #9E3A16; font-size: var(--fs-sm); font-weight: 600; }
.field__hint { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
.field--hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: .5rem; }
.form__privacy { margin: 0; font-size: var(--fs-sm); color: var(--slate); }
.form-alert { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border: 1px solid rgba(180, 68, 27, .35); border-left: 3px solid #B4441B; border-radius: var(--radius); background: #FDF3EF; color: #7A2E12; }
.form-alert:focus, .form-success:focus { outline: none; }
.form-success { text-align: left; }
.form-success__icon { width: 3rem; height: 3rem; padding: .6rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); }
.form-success h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.form-success p { color: var(--slate); }
.contact-aside { display: grid; gap: 1.5rem; }
@media (min-width: 640px) and (max-width: 1099px) { .contact-aside { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .contact-aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .85rem; align-items: start; }
.contact-list .icon { width: 2.5rem; height: 2.5rem; padding: .6rem; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); }
.contact-list span { display: block; font: 700 var(--fs-xs)/1.4 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.contact-list a, .contact-list p { font: 700 1rem/1.4 var(--font-head); color: var(--navy); text-decoration: none; margin: 0; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--teal-700); text-decoration: underline; }
.next-steps { margin: 0; padding: 0; list-style: none; counter-reset: ns; display: grid; gap: .9rem; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 1.75rem 1fr; gap: .6rem; font-size: var(--fs-sm); color: var(--slate); }
.next-steps li::before { content: counter(ns); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--teal); border-radius: 50%; font: 700 .8rem/1 var(--font-head); color: var(--teal-700); }
.next-steps strong { color: var(--navy); }

/* ---------- 18. AI Warriors page components ---------- */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles li { background: var(--paper); padding: 1.75rem; }
.principles li.principles__intro { background: var(--navy); color: rgba(255, 255, 255, .8); }
.principles__intro h3 { color: #fff; font-size: 1.4rem; }
.principles__n { display: block; font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .12em; color: var(--teal-700); margin-bottom: 1.5rem; }
.principles h3 { margin-bottom: .4em; }
.principles p { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
.principles__intro p { color: rgba(255, 255, 255, .78); }

.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; counter-reset: p; }
@media (min-width: 900px) { .pipeline { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.pipeline li {
    counter-increment: p; position: relative;
    padding: 1.25rem; background: var(--paper); border: 1px solid var(--line);
}
@media (min-width: 900px) {
    .pipeline li { border-right-width: 0; }
    .pipeline li:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
    .pipeline li:last-child { border-right-width: 1px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
    .pipeline li + li::before {
        content: ""; position: absolute; left: -7px; top: 1.6rem; width: 12px; height: 12px;
        background: var(--paper); border-top: 1px solid var(--teal); border-right: 1px solid var(--teal); transform: rotate(45deg);
    }
}
.pipeline li::after { content: "0" counter(p); position: absolute; right: 1rem; top: 1.1rem; font: 700 var(--fs-xs)/1 var(--font-head); color: var(--teal-700); letter-spacing: .1em; }
.pipeline h3 { font-size: 1.05rem; margin: 0 0 .4em; padding-right: 2rem; }
.pipeline p { margin: 0; font-size: var(--fs-sm); color: var(--slate); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.chips li { padding: .45rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 .88rem/1.2 var(--font-head); color: var(--navy); background: var(--paper); }
.ai .chips li { border-color: var(--line-dark); background: transparent; color: #fff; }

.outcomes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.outcomes li { display: grid; gap: .25rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.outcomes li { grid-template-columns: 3rem 1fr; align-items: baseline; }
.outcomes p { grid-column: 2; }
.outcomes__n { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .12em; color: var(--teal-700); }
.outcomes h3 { margin: 0; font-size: 1.15rem; }
.outcomes p { margin: 0; color: var(--slate); }

.tiers { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .tiers { grid-template-columns: 1.5fr 1fr; } }
.tier { border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.tier__head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line-dark); font: 700 var(--fs-xs)/1.3 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-200); }
.tier__head strong { display: block; color: #fff; font-size: 1.05rem; letter-spacing: -.01em; text-transform: none; margin-top: .3rem; }
.tier dl { margin: 0; }
.tier div { display: grid; gap: .15rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 600px) { .tier div { grid-template-columns: 1fr 1.2fr; gap: 1rem; } }
.tier div:last-child { border-bottom: 0; }
.tier dt { font: 700 .95rem/1.35 var(--font-head); color: #fff; }
.tier dd { margin: 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, .75); }

.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path { position: relative; display: flex; flex-direction: column; padding: 1.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.path--recommended { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.path__flag { position: absolute; top: -.8rem; left: 1.5rem; padding: .3rem .7rem; background: var(--amber); color: var(--navy); border-radius: 4px; font: 800 .7rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.path__n { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .12em; color: var(--teal-700); margin-bottom: 1rem; display: block; }
.path h3 { font-size: 1.35rem; margin-bottom: .25em; }
.path__tag { font: 700 var(--fs-xs)/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 1rem; display: block; }
.path > p { color: var(--slate); }
.path__stages { list-style: none; margin: auto 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .1rem; }
.path__stages li { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font: 600 .93rem/1.3 var(--font-head); color: var(--navy); }
.path__stages li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--teal); border-radius: 50%; flex: none; }
.path--recommended .path__stages li::before { background: var(--teal); }
.path--muted .path__stages li { color: var(--slate); }
.path--muted .path__stages li::before { border-color: var(--line-strong); }
.path__note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--slate); }
.decision-lens { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font: 600 var(--fs-sm)/1.5 var(--font-head); color: var(--slate); }
.decision-lens strong { color: var(--navy); }

.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 768px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .journey { grid-template-columns: repeat(4, 1fr); } }
.journey > li { background: var(--paper); padding: 1.75rem; display: flex; flex-direction: column; }
.journey > li:last-child { background: var(--teal-50); }
.journey__n { font: 800 2.25rem/1 var(--font-head); letter-spacing: -.04em; color: var(--teal); margin-bottom: 1rem; }
.journey h3 { margin-bottom: .2em; }
.journey__time { font: 700 var(--fs-xs)/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .9rem; display: block; }
.journey p { color: var(--slate); font-size: var(--fs-sm); }
.journey ul { margin: auto 0 0; padding: .9rem 0 0; list-style: none; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.journey ul li { padding: .2rem 0 .2rem 1rem; position: relative; }
.journey ul li::before { content: ""; position: absolute; left: 0; top: .85em; width: 6px; height: 1px; background: var(--teal); }

.assurances { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .assurances { grid-template-columns: repeat(3, 1fr); } }
.assurances li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.assurances .icon { width: 1.75rem; height: 1.75rem; color: var(--teal-700); }
.assurances h3 { font-size: 1rem; margin: 0 0 .2em; text-transform: uppercase; letter-spacing: .06em; }
.assurances p { margin: 0; color: var(--slate); font-size: var(--fs-sm); }

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.35rem 0; cursor: pointer; list-style: none;
    font: 700 clamp(1.05rem, 1rem + .3vw, 1.2rem)/1.4 var(--font-head); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 14px; height: 14px;
    background: linear-gradient(var(--teal-700), var(--teal-700)) center / 14px 1.5px no-repeat, linear-gradient(var(--teal-700), var(--teal-700)) center / 1.5px 14px no-repeat;
    transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal-700); }
.faq__body { padding: 0 3rem 1.5rem 0; color: var(--slate); max-width: 760px; }
.faq__body p:last-child { margin: 0; }

.principle-line { margin-top: 2rem; font: 700 var(--fs-sm)/1.5 var(--font-head); color: var(--navy); }
.principle-line span { color: var(--teal-700); letter-spacing: .12em; text-transform: uppercase; margin-right: .5rem; }

.closing { text-align: left; max-width: 900px; }
.closing h2 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.4rem); }

/* ---------- Updates ---------- */
.section-head__action { margin: 0; justify-self: end; align-self: end; }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card__media { aspect-ratio: 16 / 9; background: var(--sand); overflow: hidden; }
.post-card__media > img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sand), var(--teal-50)); }
.post-card__placeholder img { width: 96px; opacity: .55; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.post-card__date { margin: 0 0 .6rem; font: 700 var(--fs-xs)/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.post-card__title { font-size: 1.2rem; margin: 0 0 .5em; }
.post-card__link { color: var(--navy); text-decoration: none; }
.post-card__link::after { content: ""; position: absolute; inset: 0; }
.post-card__link:focus-visible { outline: none; }
.post-card:has(.post-card__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.post-card__excerpt { margin: 0 0 1.25rem; color: var(--slate); font-size: var(--fs-sm); flex: 1; }
.post-card__more { font: 700 .92rem/1 var(--font-head); color: var(--navy); display: inline-flex; gap: .45em; }
.post-card:hover .post-card__more { color: var(--teal-700); }
.post-card:hover .btn__arrow { transform: translateX(4px); }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.pager__info { color: var(--slate); font-size: var(--fs-sm); }

.post__meta { margin: 0 0 .9rem; font: 700 var(--fs-xs)/1.4 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.post__layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .post__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 5rem; } }
.post__image { margin: 0 0 2.25rem; }
.post__image img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.post__body { max-width: 720px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share__label { font: 700 var(--fs-xs)/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-right: .5rem; }
.share__btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 42px; height: 42px; padding: 0 .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--navy); font: 700 .85rem/1 var(--font-head); text-decoration: none; cursor: pointer; }
.share__btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.share__btn .icon { width: 18px; height: 18px; }
.post-nav { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__link { display: block; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy); text-decoration: none; font: 700 1rem/1.35 var(--font-head); }
.post-nav__link span { display: block; margin-bottom: .3rem; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.post-nav__link:hover { border-color: var(--teal); }
.post-nav__link--next { text-align: right; }

/* ---------- Lightbox ---------- */
.lb-link { display: block; cursor: zoom-in; border-radius: var(--radius); }
.lb-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.post__image a { cursor: zoom-in; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4.5rem 1rem 2rem; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(10, 30, 44, .88); }
.lightbox__figure { position: relative; margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: grid; justify-items: center; gap: .8rem; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); background: #fff; }
.lightbox__cap { color: rgba(255, 255, 255, .85); font-size: var(--fs-sm); text-align: center; max-width: 60ch; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: rgba(15, 42, 61, .6); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: #fff; color: var(--navy); }
.lightbox__btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 1rem; right: 1rem; font-size: 1.8rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; } }
.aside-box--follow .btn { gap: .5rem; }
.aside-box--follow .icon { width: 18px; height: 18px; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--sand-2); color: var(--navy); padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.7fr 1fr 1.25fr 1.25fr; gap: 3rem; } }
.site-footer__about p { color: var(--slate); margin-top: 1.25rem; max-width: 32em; }
.site-footer__heading { font: 700 var(--fs-xs)/1.3 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin: 0 0 1.1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-strong); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer__links a { color: var(--navy); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.site-footer__links a:hover { color: var(--teal-700); text-decoration: underline; }
.site-footer__links address { color: var(--slate); }
.site-footer__portal { margin-top: 1.5rem; }
.site-footer__legal {
    display: grid; gap: .75rem; margin-top: 3.5rem; padding-block: 1.75rem 2.25rem;
    border-top: 1px solid var(--line-strong); font-size: var(--fs-sm); color: var(--slate);
}
@media (min-width: 1024px) { .site-footer__legal { grid-template-columns: 1fr auto; gap: 3rem; align-items: start; } }
.independence { max-width: 72ch; margin: 0; }
.copyright { margin: 0; white-space: nowrap; }
@media (max-width: 1023px) { .copyright { white-space: normal; } }

.social { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--navy); transition: background-color .2s var(--ease), color .2s var(--ease); }
.social a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.social .icon { width: 18px; height: 18px; }

/* ---------- 20. Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
