/* ==========================================================================
   Nexus Advisory Ltd. - public site
   Palette taken from the NAL logo: navy #202068, signal red #A81820.
   Typography: Plus Jakarta Sans (headings), Inter (body), JetBrains Mono (metadata & KPIs).
   ========================================================================== */

:root {
    --navy: #202068;
    --navy-800: #1b1b5a;
    --navy-900: #14144a;
    --navy-950: #0b0b2b;
    --red: #a81820;
    --red-600: #8c1218;
    --red-soft: rgba(168, 24, 32, .09);
    --ink: #15173a;
    --muted: #5a5e7c;
    --bg: #f5f5fa;
    --surface: #ffffff;
    --line: rgba(32, 32, 104, .12);
    --glass: linear-gradient(140deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .46));
    --glass-strong: linear-gradient(140deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .72));
    --glass-edge: rgba(255, 255, 255, .85);
    --shadow: 0 22px 60px -28px rgba(20, 20, 74, .38);
    --shadow-soft: 0 12px 34px -22px rgba(20, 20, 74, .3);
    --radius: 20px;
    --radius-sm: 12px;
    --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --max: 1240px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 76px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    color-scheme: light;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Subtle architectural abstract behind the whole site */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("../img/bg-curves.jpg") center / cover no-repeat;
    opacity: .55;
    pointer-events: none;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
img { font-style: italic; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .25s var(--ease); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid rgba(168, 24, 32, .55); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--navy);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 .6em;
    font-weight: 800;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; }
h2 em, h1 em, .hero-title em, .cta-band em { font-style: normal; color: var(--red); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; position: relative; }
.narrow { max-width: 860px; }
.center { justify-content: center; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .74rem;
    margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.eyebrow-light { color: #ff8a90; }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tint { background: linear-gradient(180deg, rgba(32, 32, 104, .045), rgba(32, 32, 104, .01)); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-row > div { max-width: 720px; }
.section-head .lead { margin-bottom: 0; }

/* ---------- Glass system ------------------------------------------------- */
.glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.glass-strong {
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    backdrop-filter: blur(26px) saturate(170%);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--shadow);
}
.glass-frame {
    padding: 10px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .25));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: var(--shadow);
}
.glass-frame img { border-radius: 20px; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 1.5rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .01em;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -14px rgba(32, 32, 104, .75); }
.btn-primary:hover { background: var(--red); color: #fff; box-shadow: 0 14px 30px -14px rgba(168, 24, 32, .8); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 14px 30px -14px rgba(168, 24, 32, .8); }
.btn-red:hover { background: var(--red-600); color: #fff; }
.btn-outline { background: rgba(255, 255, 255, .5); border-color: var(--navy); color: var(--navy); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { padding: .72rem 1.05rem; font-size: .85rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; align-items: center; }

/* ---------- Header & navigation ------------------------------------------ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    border-bottom-color: rgba(255, 255, 255, .85);
    box-shadow: 0 10px 40px -24px rgba(20, 20, 74, .4);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-compact { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: 1rem; letter-spacing: -.01em; min-width: 0; }
.brand-compact img { width: 54px; height: auto; flex: 0 0 auto; }
.brand-compact span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.brand-compact:hover { color: var(--navy); }

.nav-desktop ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-desktop a {
    position: relative;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .88rem;
    color: var(--navy);
    text-decoration: none;
    border-radius: 999px;
}
.nav-desktop a::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 3px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.nav-desktop a:hover { color: var(--red); }
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after { transform: scaleX(1); }
.nav-desktop a.is-active { color: var(--red); }
.nav-desktop .nav-pdf svg { width: 13px; height: 13px; opacity: .7; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--glass-edge);
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    padding: 0;
    position: relative;
}
.menu-toggle span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(11, 11, 43, .35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: min(420px, calc(100% - 20px));
    border-radius: 26px;
    padding: 96px 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    overflow-y: auto;
    transform: translateX(110%);
    transition: transform .55s var(--ease);
}
.mobile-menu.is-open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu ul { list-style: none; display: grid; gap: 4px; }
.mobile-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 6px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--red); }
.ext-tag { font-family: var(--font-mono); font-size: .65rem; background: var(--red-soft); color: var(--red); padding: 3px 7px; border-radius: 6px; }
.mobile-menu-foot { display: grid; gap: 12px; }
.mobile-menu-foot .btn { padding: 1rem; }

/* ---------- Hero --------------------------------------------------------- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(60px, 8vw, 110px);
    overflow: hidden;
    isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
.hero-title { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.04; margin-bottom: .45em; }
.hero-copy .lead { font-size: clamp(1.02rem, 1.35vw, 1.18rem); }
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 2.4rem 0 0; }
.kpi { padding: 18px 18px 16px; margin: 0; }
.kpi dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; line-height: 1.35; margin-bottom: 6px; }
.kpi dd { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.kpi .suffix { color: var(--red); }

.hero-visual { position: relative; margin: 0; }
.hero-frame { transform: rotate(-1.2deg); transition: transform 1s var(--ease); }
.hero-visual:hover .hero-frame { transform: rotate(0deg); }
.hero-frame img { aspect-ratio: 4 / 3.3; object-fit: cover; }
.hero-chip {
    position: absolute;
    left: -14px;
    bottom: 26px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
    max-width: calc(100% - 40px);
}
.chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(168, 24, 32, .5); animation: pulse 2.4s infinite; flex: 0 0 auto; }
.float-badge {
    position: absolute;
    top: 18px;
    right: -10px;
    padding: 14px 20px;
    text-align: center;
    border-radius: 18px;
    animation: floaty 9s ease-in-out infinite;
}
.float-badge .mono { display: block; text-transform: uppercase; color: var(--muted); font-size: .66rem; }
.float-badge strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--red); line-height: 1.1; letter-spacing: -.02em; }

/* Ambient motion orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .42; pointer-events: none; animation: floaty 16s ease-in-out infinite; }
.orb-a { width: 380px; height: 380px; background: radial-gradient(circle, rgba(168, 24, 32, .55), transparent 70%); top: -120px; right: -90px; }
.orb-b { width: 460px; height: 460px; background: radial-gradient(circle, rgba(32, 32, 104, .55), transparent 70%); bottom: -180px; left: -140px; animation-delay: -6s; }
.orb-c { width: 260px; height: 260px; background: radial-gradient(circle, rgba(120, 140, 230, .5), transparent 70%); top: 30%; left: 42%; animation-delay: -11s; }

/* Partners ribbon */
.partners { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 26px 0 28px; overflow: hidden; }
.partners-label { text-align: center; color: var(--muted); margin: 0 0 16px; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 42s linear infinite; padding-left: 56px; }
.partner-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: .02em;
    color: rgba(32, 32, 104, .38);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 56px;
    transition: color .3s;
}
.partner-name::after { content: ""; width: 7px; height: 7px; background: var(--red); border-radius: 50%; opacity: .55; }
.marquee-track:hover .partner-name { color: rgba(32, 32, 104, .5); }
.marquee-track .partner-name:hover { color: var(--navy); }

/* ---------- Cards -------------------------------------------------------- */
.grid-4, .grid-3 { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 28px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card-h { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
a.card, .card-service { text-decoration: none; color: inherit; }
a.card:hover, .card-service:hover, .card-project:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -30px rgba(20, 20, 74, .45); }
.card-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, rgba(32, 32, 104, .1), rgba(32, 32, 104, .03));
    color: var(--navy);
    margin-bottom: 6px;
    transition: background .4s, color .4s, transform .5s var(--ease);
}
.card-icon svg { width: 27px; height: 27px; }
.card-service:hover .card-icon { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.04); }
.card-link { margin-top: auto; padding-top: 10px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--red); display: inline-flex; align-items: center; gap: 8px; }
.card-link .arrow { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.card-service:hover .card-link .arrow { transform: translateX(5px); }
.arrow { width: 18px; height: 18px; flex: 0 0 auto; }

.tag {
    font-family: var(--font-mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--red-soft);
    color: var(--red);
    white-space: nowrap;
}
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.project-year { color: var(--navy); font-size: .9rem; font-weight: 500; }
.project-client { font-size: .9rem !important; color: var(--muted) !important; margin: 0 !important; }
.project-client .mono { color: var(--red); text-transform: uppercase; font-size: .66rem; margin-right: 6px; }
.project-summary { font-size: .9rem; }
.card-project h2, .card-project h3 { font-size: 1.08rem; }

/* ---------- Pills, lists, chips ------------------------------------------ */
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.pill-list-lg .pill { font-size: .95rem; padding: 12px 18px; }
.pill {
    display: inline-flex;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .7);
    color: var(--navy);
    font-size: .88rem;
    font-weight: 500;
}
.mini-title { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin: 1.8rem 0 .9rem; }
.link-list { list-style: none; display: grid; gap: 4px; }
.link-list a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--navy); }
.link-list a:hover { color: var(--red); }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .7);
    color: var(--navy);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .88rem;
    transition: all .35s var(--ease);
}
.chip:hover { border-color: var(--navy); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 12px 26px -14px rgba(32, 32, 104, .8); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.result-count { color: var(--muted); margin-bottom: 22px; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- Page hero (inner pages) -------------------------------------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 56px) 0 clamp(56px, 7vw, 86px); overflow: hidden; isolation: isolate; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 245, 250, 0) 40%, var(--bg) 100%); }
.page-title { font-size: clamp(2.2rem, 4.8vw, 3.8rem); max-width: 22ch; }
.page-hero .lead { margin-top: .4rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4rem; font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--red); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span[aria-current] { color: var(--navy); }

/* ---------- Two column / prose -------------------------------------------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.two-col > .section-head { margin-bottom: 0; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #2b2e4f; }
.prose ul { padding-left: 1.2em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--red); font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); }
.prose a { color: var(--red); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--navy); font-family: var(--font-head); }
.updated { color: var(--muted); margin-top: 2.4rem; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }
.note { color: var(--muted); font-size: .9rem; margin-top: 2rem; }
.side-figure { margin: 0; display: grid; gap: 18px; align-content: start; }
.side-figure img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facts-card { padding: 26px 26px 14px; }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .88rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); font-size: .92rem; }

.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.stat-prefix { color: var(--red); text-transform: uppercase; font-size: .7rem; }
.stat-value { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.stat-label { color: var(--muted); text-transform: uppercase; font-size: .68rem; letter-spacing: .06em; }
.sidebar { display: grid; gap: 18px; align-content: start; }
.sidebar-card { padding: 26px; }
.sidebar-card .mini-title { margin-top: 0; }
.sidebar-note p { color: var(--muted); }
.sidebar-note .mono { color: var(--red); text-transform: uppercase; }
.service-detail .prose { max-width: none; }

/* ---------- Leadership spotlight (dark, motion) -------------------------- */
.section-dark { background: var(--navy-950); color: #e8e9f7; overflow: hidden; }
.leader { position: relative; padding: clamp(72px, 10vw, 130px) 0; isolation: isolate; overflow: hidden; }
.leader-bg { position: absolute; inset: 0; z-index: -1; }
.leader-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.leader-tint { position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 0%, rgba(32, 32, 104, .65), rgba(11, 11, 43, .92) 60%), linear-gradient(180deg, rgba(11, 11, 43, .2), rgba(11, 11, 43, .8)); }
.leader-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.leader-portrait { margin: 0; position: relative; max-width: 500px; width: 100%; justify-self: center; }
.portrait-frame { background: linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .25); }
.portrait-frame img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; filter: saturate(.95); }
.portrait-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px 20px;
    background: rgba(11, 11, 43, .55);
    border-color: rgba(255, 255, 255, .25);
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
}
.portrait-caption strong { font-family: var(--font-head); font-size: 1.1rem; }
.portrait-caption span { font-size: .85rem; color: rgba(255, 255, 255, .75); }
.leader-copy .eyebrow { color: #ff8a90; }
.leader-copy h2 { color: #fff; }
.leader-quote { position: relative; margin: 0 0 1.6rem; padding-left: 0; }
.leader-quote p { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.22rem, 2vw, 1.6rem); line-height: 1.45; color: #fff; letter-spacing: -.01em; margin: 0; }
.quote-mark { position: absolute; top: -28px; left: -6px; font-family: var(--font-head); font-size: 5rem; color: var(--red); line-height: 1; opacity: .9; }
.leader-quote p { padding-top: 22px; }
.leader-bio { color: rgba(232, 233, 247, .8); max-width: 60ch; }
.leader-copy .mini-title { color: #ff8a90; }
.leader .pill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.credential-list { list-style: none; display: grid; gap: 8px; color: rgba(232, 233, 247, .85); font-size: .95rem; }
.credential-list li { padding-left: 18px; position: relative; }
.credential-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1.5px; background: var(--red); }
.signature { margin: 2rem 0 1.6rem; display: flex; flex-direction: column; gap: 2px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); max-width: 340px; }
.signature-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: #fff; }
.signature-role { color: rgba(255, 255, 255, .6); text-transform: uppercase; font-size: .7rem; letter-spacing: .1em; }

/* ---------- Quality accordion & timeline --------------------------------- */
.qa-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.accordion, .faq-list { list-style: none; display: grid; gap: 12px; }
.accordion details, .faq-list details { padding: 0; overflow: hidden; transition: box-shadow .35s; }
.accordion summary, .faq-list summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px 22px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--navy);
}
.faq-list summary { grid-template-columns: 1fr auto; }
.accordion summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.accordion summary:focus-visible, .faq-list summary:focus-visible { outline-offset: -4px; }
.step-no { color: var(--red); font-size: .9rem; }
.step-title { font-size: 1.02rem; }
.step-toggle { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--red-soft); }
.step-toggle::before, .step-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--red); transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.step-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .step-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.accordion details p, .faq-answer { padding: 0 22px 22px 60px; color: var(--muted); margin: -4px 0 0; animation: fadeIn .5s var(--ease); }
.faq-answer { padding-left: 22px; }
.accordion details[open], .faq-list details[open] { box-shadow: var(--shadow); }

.timeline { list-style: none; display: grid; gap: 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 39px; top: 10px; bottom: 10px; width: 1.5px; background: linear-gradient(var(--red), var(--navy)); opacity: .45; }
.timeline-step { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 18px; align-items: start; }
.timeline-no { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1rem; box-shadow: 0 0 0 8px rgba(255, 255, 255, .7); position: relative; z-index: 1; }
.timeline-card { padding: 26px 28px; }
.timeline-card p { color: var(--muted); margin: 0; }

/* ---------- Team -------------------------------------------------------- */
.team-card { padding: 30px; }
.monogram {
    width: 64px; height: 64px; border-radius: 20px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, var(--navy), var(--navy-800));
    color: #fff;
    font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
    box-shadow: 0 14px 26px -14px rgba(32, 32, 104, .9);
    margin-bottom: 8px;
}
.team-role { color: var(--red); text-transform: uppercase; font-size: .7rem; letter-spacing: .06em; margin: 0; }
.team-qual { font-size: .88rem; }
.team-exp { font-size: .9rem; color: var(--navy) !important; font-weight: 500; }

.client-group { margin-bottom: 40px; }
.client-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.client { padding: 16px 18px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy); line-height: 1.4; }

/* ---------- Gallery ------------------------------------------------------ */
.masonry { columns: 3; column-gap: 20px; }
.masonry-item { break-inside: avoid; margin: 0 0 20px; }
.masonry-item .lightbox-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); }
.masonry-item img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.masonry-item .lightbox-trigger:hover img { transform: scale(1.04); }
.masonry-item figcaption { font-size: .86rem; color: var(--muted); padding: 10px 4px 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(11, 11, 43, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { border-radius: 16px; max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 10px; font-size: .92rem; }
.lightbox-close { position: absolute; top: -8px; right: -8px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }

/* ---------- Contact ------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-aside { display: grid; gap: 18px; }
.contact-card { padding: 30px; }
.contact-card .card-h { margin-bottom: 14px; }
.address { font-style: normal; color: var(--muted); margin-bottom: 18px; }
.contact-list { list-style: none; display: grid; gap: 14px; margin: 0 0 22px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .mono { color: var(--red); text-transform: uppercase; font-size: .66rem; letter-spacing: .08em; }
.contact-list a { font-weight: 600; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--red); }
.contact-note p { margin: 0; color: var(--muted); font-size: .92rem; }
.form-card { padding: clamp(24px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy); }
.req { color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%;
    font: inherit;
    font-size: 16px; /* prevents iOS zoom */
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(32, 32, 104, .16);
    background: rgba(255, 255, 255, .85);
    color: var(--ink);
    transition: border-color .25s, box-shadow .25s, background .25s;
    appearance: none;
    -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(32, 32, 104, .12); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: .84rem; margin: 0; font-weight: 500; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.notice { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.notice-success { border-color: rgba(32, 32, 104, .25); color: var(--navy); }
.notice-error { background: var(--red-soft); color: var(--red); border: 1px solid rgba(168, 24, 32, .25); font-weight: 600; }
.flash { margin-top: calc(var(--header-h) + 14px); padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); border: 1px solid var(--line); color: var(--navy); font-weight: 600; }

/* ---------- CTA band ----------------------------------------------------- */
.cta-band {
    position: relative;
    background: radial-gradient(90% 140% at 100% 0%, rgba(168, 24, 32, .55), transparent 55%), linear-gradient(120deg, var(--navy-900), var(--navy));
    color: #fff;
    padding: clamp(56px, 7vw, 92px) 0;
    overflow: hidden;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: auto -10% -60% auto;
    width: 60%;
    height: 220%;
    background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .08), transparent 60%);
    transform: rotate(-12deg);
    animation: sheen 9s ease-in-out infinite;
    pointer-events: none;
}
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 24ch; margin-bottom: .4em; }
.cta-band h2 em { color: #ff8a90; }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 56ch; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { position: relative; background: var(--navy-950); color: #d9dbef; padding: clamp(64px, 8vw, 100px) 0 28px; overflow: hidden; isolation: isolate; }
.footer-bg { position: absolute; inset: 0; z-index: -1; }
.footer-video { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.footer-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-950) 0%, rgba(11, 11, 43, .75) 45%, var(--navy-950) 100%); }
.footer-mega { display: flex; flex-direction: column; gap: 18px; padding-bottom: 44px; margin-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-logo { width: clamp(170px, 22vw, 240px); height: auto; }
.footer-lead { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); color: #fff; margin: 0; max-width: 40ch; letter-spacing: -.01em; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.35fr); gap: 36px 28px; }
.footer-col h3 { color: #fff; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #d9dbef; text-decoration: none; font-size: .93rem; transition: color .25s, padding .3s var(--ease); }
.footer-col a:hover { color: #ff8a90; padding-left: 4px; }
.footer-contact address { font-style: normal; margin-bottom: 14px; color: #d9dbef; font-size: .93rem; }
.footer-contact .contact-list { margin: 0; gap: 10px; }
.footer-contact .contact-list li { font-size: .93rem; }
.footer-contact .contact-list a { color: #fff; font-weight: 600; }
.footer-contact .muted { color: rgba(217, 219, 239, .6); font-size: .78rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: rgba(217, 219, 239, .75); }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom nav a { color: rgba(217, 219, 239, .85); text-decoration: none; }
.footer-bottom nav a:hover { color: #fff; }
.credit a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--red); }
.credit a:hover { color: #ff8a90; }

/* ---------- Floating WhatsApp ------------------------------------------- */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border-radius: 999px;
    background: #1f8f4e;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 18px 36px -14px rgba(31, 143, 78, .8);
    transition: transform .35s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-3px); color: #fff; }
.whatsapp-float svg { width: 22px; height: 22px; flex: 0 0 auto; }

/* ---------- Reveal on scroll (motion) ----------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .grid-4 > .reveal:nth-child(2), .js .grid-3 > .reveal:nth-child(2), .js .stats-strip > .reveal:nth-child(2) { --d: .08s; }
.js .grid-4 > .reveal:nth-child(3), .js .grid-3 > .reveal:nth-child(3), .js .stats-strip > .reveal:nth-child(3) { --d: .16s; }
.js .grid-4 > .reveal:nth-child(4), .js .grid-3 > .reveal:nth-child(4), .js .stats-strip > .reveal:nth-child(4) { --d: .24s; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floaty { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(0, -18px, 0) scale(1.04); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(168, 24, 32, .5); } 70% { box-shadow: 0 0 0 10px rgba(168, 24, 32, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 24, 32, 0); } }
@keyframes sheen { 0%, 100% { transform: translateX(-30%) rotate(-12deg); } 50% { transform: translateX(10%) rotate(-12deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1180px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: inline-block; }
}
@media (min-width: 1181px) {
    .mobile-menu { display: none; }
}
@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .masonry { columns: 2; }
}
@media (max-width: 920px) {
    .hero-grid, .two-col, .qa-grid, .leader-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-visual { max-width: 640px; margin-inline: auto; width: 100%; }
    .leader-portrait { max-width: 440px; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpi-row { margin-top: 2rem; }
    .float-badge { right: 8px; }
    .hero-chip { left: 10px; }
}
@media (max-width: 760px) {
    :root { --header-h: 66px; }
    .header-cta { display: none; }
    .brand-compact span { font-size: .92rem; }
    .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .section-head-row { align-items: flex-start; }
    .masonry { columns: 1; }
    .timeline::before { left: 39px; }
    .timeline-step { grid-template-columns: 80px minmax(0, 1fr); }
    .timeline-no { width: 64px; height: 64px; font-size: .9rem; }
    .timeline::before { left: 31px; }
    .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .kpi { padding: 14px 12px; }
    .kpi dd { font-size: 1.55rem; }
    .kpi dt { font-size: .6rem; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1 1 auto; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 14px; right: 14px; bottom: 14px; }
    .card { padding: 24px; }
    .accordion summary, .faq-list summary { padding: 18px; }
    .accordion details p, .faq-answer { padding-left: 18px; }
    .stat-value { font-size: 2rem; }
    .hero-frame { transform: none; }
    .float-badge { top: -14px; right: 6px; }
    .page-title { max-width: none; }
    .whatsapp-float { font-size: 0; }
    .whatsapp-float svg { width: 26px; height: 26px; }
}
@media (max-width: 420px) {
    .kpi-row { grid-template-columns: 1fr; }
    .hero-chip { font-size: .78rem; }
    .btn { white-space: normal; text-align: center; }
    .cta-row .btn, .hero-copy .btn { width: 100%; }
}
@media (min-width: 1025px) and (max-width: 1340px) {
    .nav-desktop a { padding: 8px 7px; font-size: .82rem; }
    .nav-desktop ul { gap: 0; }
    .brand-compact span { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .marquee-track { animation: none; }
    .js .reveal { opacity: 1; transform: none; }
    .leader-video, .footer-video { display: none; }
}

/* ==========================================================
   HERO SLIDER + MOTION LAYER
   ========================================================== */
.slide-stack { display: grid; }
.slide-stack > * { grid-area: 1 / 1; }

/* Copy: cross-fade with staggered rise */
.slide-copy { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; visibility: hidden; }
.slide-copy.is-active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.slide-copy.is-active > * { animation: heroRise .9s var(--ease) both; }
.slide-copy.is-active > :nth-child(2) { animation-delay: .08s; }
.slide-copy.is-active > :nth-child(3) { animation-delay: .16s; }
.slide-copy.is-active > :nth-child(4) { animation-delay: .24s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Media: cross-fade with a soft scale */
.slide-media { margin: 0; opacity: 0; transform: scale(.985); transition: opacity .9s var(--ease), transform 1.2s var(--ease); visibility: hidden; }
.slide-media.is-active { opacity: 1; transform: none; visibility: visible; }
.slide-media .hero-frame img { transition: transform 9s ease-out; }
.slide-media.is-active .hero-frame img { transform: scale(1.07); }

/* Graphic positions per slide (chip + badge never overlap the copy column) */
.slide-media-bl .hero-chip { left: -14px; right: auto; bottom: 26px; top: auto; }
.slide-media-bl .float-badge { top: 18px; right: -10px; bottom: auto; left: auto; }
.slide-media-tl .hero-chip { left: -14px; right: auto; top: 26px; bottom: auto; }
.slide-media-tl .float-badge { bottom: 26px; right: -10px; top: auto; left: auto; }
.slide-media-br .hero-chip { right: -14px; left: auto; bottom: 26px; top: auto; }
.slide-media-br .float-badge { top: 18px; left: -10px; right: auto; bottom: auto; }
.slide-media-tr .hero-chip { right: -14px; left: auto; top: 26px; bottom: auto; }
.slide-media-tr .float-badge { bottom: 26px; left: -10px; right: auto; top: auto; }

/* Slider controls */
.slider-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: clamp(28px, 4vw, 48px); position: relative; }
.slider-btn { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; color: var(--navy); background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-soft); transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.slider-btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.slider-btn:focus-visible, .slider-dot:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.slider-dots { display: flex; gap: 10px; align-items: center; }
.slider-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(32, 32, 104, .25); cursor: pointer; transition: width .5s var(--ease), background .3s var(--ease); }
.slider-dot.is-active { width: 34px; background: var(--red); }
.slider-progress { flex: 1; max-width: 220px; height: 2px; background: rgba(32, 32, 104, .12); border-radius: 2px; overflow: hidden; margin-left: 8px; }
.slider-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--navy)); }
.slider-progress.is-running span { animation: sliderFill var(--slide-ms, 6500ms) linear forwards; }
.hero-slider.is-paused .slider-progress.is-running span { animation-play-state: paused; }
@keyframes sliderFill { from { width: 0; } to { width: 100%; } }

/* Cursor parallax on the hero visual (fine pointers only, JS sets --px/--py) */
.hero-visual[data-tilt] .slide-stack-media { transform: translate3d(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -10px), 0) rotateX(calc(var(--py, 0) * 2deg)) rotateY(calc(var(--px, 0) * -3deg)); transition: transform .9s var(--ease); transform-style: preserve-3d; }

/* Ambient motion: slow drifting aurora behind the hero */
.hero-bg::after { content: ""; position: absolute; inset: -20%; background: conic-gradient(from 0deg at 50% 50%, rgba(168, 24, 32, .10), rgba(32, 32, 104, .12), rgba(168, 24, 32, .06), rgba(32, 32, 104, .12), rgba(168, 24, 32, .10)); filter: blur(60px); animation: aurora 26s linear infinite; pointer-events: none; }
@keyframes aurora { to { transform: rotate(360deg); } }

/* Project cards: pointer-driven glow and tilt */
.card-project { position: relative; overflow: hidden; transition: box-shadow .5s var(--ease); }
.project-tilt { height: 100%; transform: perspective(900px) rotateX(calc(var(--cy, 0) * -3deg)) rotateY(calc(var(--cx, 0) * 3deg)); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.card-project::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(168, 24, 32, .13), transparent 60%); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.card-project:hover::before { opacity: 1; }
.card-project:hover { box-shadow: 0 24px 60px -28px rgba(32, 32, 104, .45); }
.card-project[hidden] { display: none !important; }

/* Live project filter */
.filter-search { display: flex; align-items: center; gap: 10px; min-width: min(100%, 300px); padding: 10px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.filter-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--navy); outline: none; }
.filter-search svg { flex: 0 0 auto; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-bar .chip { cursor: pointer; }
.filter-empty { display: none; }
.filter-empty.is-shown { display: block; }
.result-count { margin: 18px 0 22px; color: var(--muted); }

@media (max-width: 720px) {
    .slide-media-bl .hero-chip, .slide-media-tl .hero-chip, .slide-media-br .hero-chip, .slide-media-tr .hero-chip { left: 10px; right: auto; top: auto; bottom: 12px; }
    .slide-media-tl .float-badge, .slide-media-bl .float-badge, .slide-media-br .float-badge, .slide-media-tr .float-badge { top: 10px; bottom: auto; right: 10px; left: auto; }
    .slider-progress { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .slide-copy, .slide-copy.is-active > *, .slide-media, .slide-media .hero-frame img, .hero-visual[data-tilt] .slide-stack-media, .project-tilt { transition: none !important; animation: none !important; transform: none !important; }
    .hero-bg::after { animation: none; }
    .slider-progress { display: none; }
}
.projects-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; }
.projects-toolbar .result-count { margin: 0; }
.projects-toolbar .filter-search { flex: 0 1 340px; }
.slide-stack { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.slide-stack > * { min-width: 0; width: 100%; }
.slide-media img { width: 100%; height: auto; }
.hero-visual, .hero-copy { min-width: 0; }
p.hero-title { font-family: var(--font-head); font-weight: 800; color: var(--navy); letter-spacing: -.035em; margin-top: 0; }
p.hero-title em { font-style: normal; color: var(--red); }
.projects-toolbar { margin-bottom: 30px; }

/* ==========================================================
   BANNER SLIDER (hero) — uses the designed brand banners
   ========================================================== */
.banner-slider { position: relative; margin-top: clamp(44px, 6vw, 80px); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px -36px rgba(20, 20, 74, .55), 0 0 0 1px rgba(255, 255, 255, .7) inset; background: #fff; }
.banner-track { position: relative; aspect-ratio: 2.5 / 1; }
.banner-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: scale(1.03); transition: opacity 1s var(--ease), transform 1.6s var(--ease), visibility 1s; }
.banner-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide.is-active img { animation: bannerDrift 9s ease-out both; }
@keyframes bannerDrift { from { transform: scale(1.04); } to { transform: scale(1); } }
.banner-slider .slider-controls { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; justify-content: center; pointer-events: none; }
.banner-slider .slider-controls > * { pointer-events: auto; }
.banner-slider .slider-btn { width: 42px; height: 42px; }
.banner-slider .slider-progress { display: none; }
.banner-slider .slider-dot { background: rgba(255, 255, 255, .75); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.banner-slider .slider-dot.is-active { background: var(--red); }

/* Square graphic in hero: keep copy and visual balanced */
.hero-visual .hero-frame img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Inner-page header: designed breadcrumb banner */
.page-hero-bg img { opacity: .9 !important; object-position: center; }

@media (max-width: 720px) {
    .banner-track { aspect-ratio: 4 / 3; }
    .banner-slide img { object-position: 8% 50%; }
    .banner-slider { border-radius: 18px; }
    .banner-slider .slider-controls { bottom: 10px; }
}

.hero-visual[data-tilt] .hero-frame { transform: translate3d(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -10px), 0) rotateX(calc(var(--py, 0) * 2deg)) rotateY(calc(var(--px, 0) * -3deg)); transition: transform .9s var(--ease); }
.hero-visual .hero-frame { transform: rotate(-1.2deg); }
.hero-visual:hover .hero-frame { transform: rotate(0deg); }
/* Keep headline legible over the breadcrumb banner */
.page-hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(245, 245, 250, .94) 0%, rgba(245, 245, 250, .82) 40%, rgba(245, 245, 250, .25) 75%, rgba(245, 245, 250, .1) 100%); pointer-events: none; }
.page-hero-inner { position: relative; z-index: 2; }
@media (max-width: 720px) { .page-hero-bg::before { background: rgba(245, 245, 250, .86); } }
