/* =============================================================================
   A BELIEVERS EMS — PREMIUM DESIGN SYSTEM
   Editorial / Cinematic / Medical-grade aesthetic
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --c-blue-900: #062841;
    --c-blue-800: #0A3D62;
    --c-blue-700: #134E78;
    --c-blue-600: #1B5A8C;
    --c-blue-500: #3C6382;
    --c-blue-400: #5C82A0;
    --c-blue-300: #8AA6BD;
    --c-blue-200: #B9CAD9;
    --c-blue-100: #DDE6EE;
    --c-blue-50:  #EEF2F6;

    /* Neutrals */
    --c-white:    #FFFFFF;
    --c-cream:    #FAFAF7;
    --c-gray-50:  #F2F2F2;
    --c-gray-100: #E6E6E6;
    --c-gray-200: #D1D1D1;
    --c-gray-300: #B4B4B4;
    --c-gray-400: #8E8E8E;
    --c-gray-500: #6B6B6B;
    --c-gray-600: #4D4D4D;
    --c-gray-700: #333333;
    --c-gray-800: #1A1A1A;
    --c-black:    #000000;

    /* Emergency / accent — pulled from logo */
    --c-red:      #E63946;
    --c-red-dark: #B71C2A;
    --c-green:    #2D6A4F;
    --c-amber:    #F4A261;
    --c-success:  #22C55E;

    /* Semantic */
    --bg:         var(--c-white);
    --bg-alt:     var(--c-cream);
    --bg-muted:   var(--c-gray-50);
    --bg-dark:    var(--c-blue-900);
    --fg:         var(--c-gray-800);
    --fg-soft:    var(--c-gray-600);
    --fg-muted:   var(--c-gray-400);
    --fg-inverse: var(--c-white);
    --accent:     var(--c-blue-800);
    --accent-2:   var(--c-blue-500);
    --line:       rgba(10, 61, 98, 0.10);
    --line-dark:  rgba(255, 255, 255, 0.10);

    /* Typography */
    --ff-display: "Fraunces", "Playfair Display", Georgia, serif;
    --ff-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ff-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --fs-xs:    clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --fs-sm:    clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
    --fs-base:  clamp(1rem,    0.97rem + 0.2vw,  1.0625rem);
    --fs-md:    clamp(1.125rem, 1.08rem + 0.25vw, 1.1875rem);
    --fs-lg:    clamp(1.25rem,  1.18rem + 0.4vw,  1.5rem);
    --fs-xl:    clamp(1.5rem,   1.35rem + 0.75vw, 2rem);
    --fs-2xl:   clamp(2rem,     1.7rem + 1.5vw,  2.75rem);
    --fs-3xl:   clamp(2.5rem,   2rem + 2.5vw,    3.75rem);
    --fs-4xl:   clamp(3rem,     2.4rem + 3vw,    5rem);
    --fs-5xl:   clamp(3.5rem,   2.5rem + 5vw,    7rem);

    --lh-tight: 1.05;
    --lh-snug:  1.2;
    --lh-base:  1.55;
    --lh-loose: 1.75;

    --tracking-tight:  -0.025em;
    --tracking-snug:   -0.01em;
    --tracking-base:   0;
    --tracking-wide:   0.02em;
    --tracking-wider:  0.08em;
    --tracking-widest: 0.18em;

    /* Spacing scale */
    --s-1:  0.25rem;
    --s-2:  0.5rem;
    --s-3:  0.75rem;
    --s-4:  1rem;
    --s-5:  1.25rem;
    --s-6:  1.5rem;
    --s-8:  2rem;
    --s-10: 2.5rem;
    --s-12: 3rem;
    --s-16: 4rem;
    --s-20: 5rem;
    --s-24: 6rem;
    --s-32: 8rem;
    --s-40: 10rem;

    /* Layout */
    --container:    1280px;
    --container-md: 1080px;
    --container-sm: 880px;
    --gutter:       clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
    --radius-sm:    6px;
    --radius:       12px;
    --radius-lg:    20px;
    --radius-xl:    32px;
    --radius-pill:  999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(6, 40, 65, 0.05);
    --shadow-sm: 0 2px 8px rgba(6, 40, 65, 0.06);
    --shadow:    0 10px 30px rgba(6, 40, 65, 0.10), 0 2px 8px rgba(6, 40, 65, 0.05);
    --shadow-lg: 0 25px 60px rgba(6, 40, 65, 0.16), 0 8px 20px rgba(6, 40, 65, 0.08);
    --shadow-xl: 0 40px 90px rgba(6, 40, 65, 0.20), 0 12px 30px rgba(6, 40, 65, 0.10);

    /* Motion */
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast:    150ms;
    --dur:         300ms;
    --dur-slow:    600ms;
    --dur-slower:  900ms;

    /* Z-index scale */
    --z-base:    1;
    --z-elevated:10;
    --z-sticky:  100;
    --z-overlay: 500;
    --z-modal:   1000;
    --z-toast:   2000;
}

/* -----------------------------------------------------------------------------
   2. RESET & GLOBALS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
}

body {
    font-family: var(--ff-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--fg);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

a:hover {
    color: var(--accent-2);
}

ul,
ol {
    list-style: none;
}

::selection {
    background: var(--c-blue-800);
    color: var(--c-white);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* -----------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--ff-display);
    font-weight: 500;
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--fg);
    text-wrap: balance;
}

h1, .h1 { font-size: var(--fs-5xl); font-weight: 400; }
h2, .h2 { font-size: var(--fs-4xl); font-weight: 400; }
h3, .h3 { font-size: var(--fs-3xl); font-weight: 500; }
h4, .h4 { font-size: var(--fs-2xl); font-weight: 500; }
h5, .h5 { font-size: var(--fs-xl);  font-weight: 600; }
h6, .h6 { font-size: var(--fs-lg);  font-weight: 600; }

p {
    margin-bottom: 1em;
    text-wrap: pretty;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: var(--fs-md);
    line-height: var(--lh-loose);
    color: var(--fg-soft);
    max-width: 60ch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--ff-sans);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--s-4);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    display: inline-block;
}

.display {
    font-family: var(--ff-display);
    font-style: italic;
    font-weight: 400;
}

.text-mono {
    font-family: var(--ff-mono);
    font-size: 0.875em;
    letter-spacing: var(--tracking-wide);
}

.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty; }

/* -----------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container-md { max-width: var(--container-md); }
.container-sm { max-width: var(--container-sm); }

.section {
    position: relative;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-huge  { padding-block: clamp(6rem, 12vw, 10rem); }
.section-snap  { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--s-16);
}

.section-head.left {
    text-align: left;
    margin-inline: 0;
}

.section-head h2 {
    margin-bottom: var(--s-5);
}

.grid {
    display: grid;
    gap: var(--s-8);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-8); }

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

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-muted   { color: var(--fg-muted); }
.text-soft    { color: var(--fg-soft); }
.text-accent  { color: var(--accent); }
.text-white   { color: var(--c-white); }
.text-red     { color: var(--c-red); }

.bg-white     { background: var(--c-white); }
.bg-cream     { background: var(--c-cream); }
.bg-gray      { background: var(--c-gray-50); }
.bg-blue      { background: var(--c-blue-800); color: var(--c-white); }
.bg-blue-dark { background: var(--c-blue-900); color: var(--c-white); }
.bg-gradient  {
    background: linear-gradient(135deg, var(--c-blue-900) 0%, var(--c-blue-700) 50%, var(--c-blue-800) 100%);
    color: var(--c-white);
}

.divider {
    height: 1px;
    background: var(--line);
    border: 0;
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background: var(--line);
    border: 0;
}

/* -----------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    --btn-bg: var(--c-blue-800);
    --btn-fg: var(--c-white);
    --btn-bd: var(--c-blue-800);
    --btn-py: 0.95rem;
    --btn-px: 1.65rem;
    --btn-fs: var(--fs-sm);

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: var(--btn-py) var(--btn-px);
    font-family: var(--ff-sans);
    font-size: var(--btn-fs);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-bd);
    border-radius: var(--radius-pill);
    cursor: pointer;
    overflow: hidden;
    transition:
        background var(--dur) var(--ease),
        color var(--dur) var(--ease),
        transform var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
    isolation: isolate;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--c-blue-700), var(--c-blue-500));
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    z-index: -1;
}

.btn:hover {
    color: var(--c-white);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(10, 61, 98, 0.25);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: translateY(0);
}

.btn svg {
    width: 1em;
    height: 1em;
    transition: transform var(--dur) var(--ease);
}

.btn:hover svg.icon-arrow {
    transform: translateX(4px);
}

/* Variants */
.btn-secondary {
    --btn-bg: transparent;
    --btn-fg: var(--c-blue-800);
    --btn-bd: var(--c-blue-800);
}

.btn-secondary:hover {
    --btn-fg: var(--c-white);
}

.btn-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--c-white);
    --btn-bd: rgba(255, 255, 255, 0.4);
}

.btn-ghost::before {
    background: rgba(255, 255, 255, 0.12);
}

.btn-light {
    --btn-bg: var(--c-white);
    --btn-fg: var(--c-blue-900);
    --btn-bd: var(--c-white);
}

.btn-light::before {
    background: linear-gradient(135deg, var(--c-blue-50), var(--c-white));
}

.btn-light:hover {
    --btn-fg: var(--c-blue-900);
}

.btn-red {
    --btn-bg: var(--c-red);
    --btn-fg: var(--c-white);
    --btn-bd: var(--c-red);
}

.btn-red::before {
    background: linear-gradient(135deg, var(--c-red-dark), var(--c-red));
}

.btn-lg {
    --btn-py: 1.15rem;
    --btn-px: 2.2rem;
    --btn-fs: var(--fs-base);
}

.btn-sm {
    --btn-py: 0.65rem;
    --btn-px: 1.2rem;
    --btn-fs: var(--fs-xs);
}

.btn-block {
    width: 100%;
}

/* Link button — minimal */
.link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-weight: 600;
    font-size: var(--fs-sm);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
    transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}

.link:hover {
    gap: var(--s-3);
    color: var(--accent-2);
}

/* -----------------------------------------------------------------------------
   7. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-topbar {
    background: var(--c-blue-900);
    color: var(--c-white);
    font-size: var(--fs-xs);
    padding: var(--s-2) 0;
    font-weight: 500;
    letter-spacing: var(--tracking-wide);
}

.site-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    flex-wrap: wrap;
}

.site-topbar a {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

.site-topbar a:hover {
    color: var(--c-blue-200);
}

.site-topbar .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

.site-topbar .badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-red);
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition:
        background var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.site-header.hide {
    transform: translateY(-100%);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    padding-block: var(--s-3);
    min-height: 76px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    text-decoration: none;
    color: inherit;
}

.site-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.site-logo .logo-text {
    display: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--s-1);
}

.site-nav a {
    position: relative;
    display: inline-block;
    padding: var(--s-3) var(--s-4);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: var(--tracking-wide);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: var(--s-4);
    right: var(--s-4);
    bottom: var(--s-2);
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur) var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    transform: scaleX(1);
}

.site-nav a.active {
    color: var(--accent);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    border-radius: 50%;
    background: transparent;
    transition: background var(--dur) var(--ease);
}

.nav-toggle:hover {
    background: var(--c-gray-50);
}

.nav-toggle span {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 1.5px;
    background: var(--fg);
    transform: translateX(-50%);
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), top var(--dur) var(--ease);
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21.5px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle.open span:nth-child(1) { top: 21.5px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21.5px; transform: translateX(-50%) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--c-blue-900);
    color: var(--c-white);
    z-index: calc(var(--z-sticky) - 1);
    padding: 130px var(--gutter) var(--s-12);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
    overflow-y: auto;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}

.mobile-menu nav a {
    display: block;
    padding: var(--s-4) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--ff-display);
    font-size: var(--fs-2xl);
    font-weight: 400;
    color: var(--c-white);
    transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.mobile-menu nav a:hover {
    color: var(--c-blue-200);
    padding-left: var(--s-4);
}

.mobile-menu-footer {
    margin-top: var(--s-12);
    padding-top: var(--s-8);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.mobile-menu-footer a {
    color: var(--c-blue-200);
    font-size: var(--fs-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

@media (max-width: 980px) {
    .site-nav,
    .header-cta .btn:not(.btn-red) {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* -----------------------------------------------------------------------------
   8. HERO  — mobile-first, then desktop overrides
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh; /* small viewport — handles iOS dynamic toolbar */
    color: var(--c-white);
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 122px 0 var(--s-6);
    gap: var(--s-8);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    will-change: transform;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 40, 65, 0.55) 0%, rgba(6, 40, 65, 0.70) 60%, rgba(6, 40, 65, 0.96) 100%),
        linear-gradient(90deg, rgba(6, 40, 65, 0.80) 0%, rgba(6, 40, 65, 0.35) 60%);
    z-index: 1;
}

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-white);
    margin-bottom: var(--s-6);
    width: fit-content;
    max-width: 100%;
}

.hero-eyebrow span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-red);
    box-shadow: 0 0 12px var(--c-red);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(2.125rem, 1.35rem + 4.8vw, 6.5rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: var(--s-6);
    color: var(--c-white);
    text-wrap: balance;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--c-blue-200);
}

.hero-title .reveal-word,
.split-line {
    display: inline-block;
    overflow: hidden;
}

.hero-title .reveal-word > span {
    display: inline-block;
    transform: translateY(100%);
}

.hero-lead {
    font-size: clamp(0.9375rem, 0.85rem + 0.6vw, 1.25rem);
    line-height: 1.6;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: var(--s-8);
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    align-items: stretch;
}

.hero-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}

/* Meta strip — in-flow on mobile, grid 2x2, then 4-col on desktop */
.hero-meta {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5) var(--s-4);
    padding-top: var(--s-6);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.78);
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hero-meta-item .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-blue-200);
    line-height: 1.2;
}

.hero-meta-item .value {
    font-family: var(--ff-display);
    font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.45rem);
    color: var(--c-white);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scroll hint — desktop only */
.hero-scroll {
    display: none;
}

@media (min-width: 720px) {
    .hero {
        padding: 180px 0 var(--s-8);
        gap: var(--s-12);
    }

    .hero-eyebrow {
        font-size: var(--fs-xs);
        padding: var(--s-2) var(--s-4);
        margin-bottom: var(--s-8);
    }

    .hero-eyebrow .dot {
        width: 8px;
        height: 8px;
    }

    .hero-title {
        line-height: 0.98;
        letter-spacing: -0.03em;
        margin-bottom: var(--s-8);
    }

    .hero-lead {
        margin-bottom: var(--s-10);
    }

    .hero-actions .btn {
        flex: 0 0 auto;
    }

    .hero-meta {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--s-8);
        padding-top: var(--s-8);
    }

    .hero-meta-item .label {
        font-size: var(--fs-xs);
        letter-spacing: var(--tracking-widest);
    }

    .hero-meta-item .value {
        font-size: var(--fs-xl);
        white-space: normal;
        overflow: visible;
    }

    .hero-scroll {
        display: flex;
        position: absolute;
        right: var(--gutter);
        bottom: var(--s-6);
        z-index: 3;
        flex-direction: column;
        align-items: center;
        gap: var(--s-2);
        color: rgba(255, 255, 255, 0.55);
        font-size: var(--fs-xs);
        letter-spacing: var(--tracking-widest);
        text-transform: uppercase;
        pointer-events: none;
    }

    .hero-scroll .line {
        width: 1px;
        height: 40px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
        position: relative;
        overflow: hidden;
    }

    .hero-scroll .line::after {
        content: "";
        position: absolute;
        top: -40px;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(180deg, transparent, var(--c-white));
        animation: scroll-line 2s ease-in-out infinite;
    }
}

@keyframes scroll-line {
    0% { top: -40px; }
    100% { top: 40px; }
}

/* -----------------------------------------------------------------------------
   9. VALUE PROPOSITION
   -------------------------------------------------------------------------- */
.value-prop {
    position: relative;
    overflow: hidden;
}

.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.value-card {
    position: relative;
    padding: var(--s-12) var(--s-6);
    border-right: 1px solid var(--line);
    transition: background var(--dur) var(--ease);
}

.value-card:last-child {
    border-right: 0;
}

.value-card:hover {
    background: var(--c-blue-50);
}

.value-card-num {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--fg-muted);
    letter-spacing: var(--tracking-widest);
    margin-bottom: var(--s-12);
}

.value-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--c-blue-50);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--s-6);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
}

.value-card:hover .value-card-icon {
    background: var(--accent);
    color: var(--c-white);
    transform: scale(1.08);
}

.value-card-icon svg {
    width: 28px;
    height: 28px;
}

.value-card h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--s-3);
}

.value-card p {
    font-size: var(--fs-sm);
    color: var(--fg-soft);
    line-height: var(--lh-loose);
}

@media (max-width: 960px) {
    .value-prop-grid { grid-template-columns: repeat(2, 1fr); }
    .value-card:nth-child(2) { border-right: 0; }
    .value-card:nth-child(1),
    .value-card:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
    .value-prop-grid { grid-template-columns: 1fr; }
    .value-card { border-right: 0; border-bottom: 1px solid var(--line); }
    .value-card:last-child { border-bottom: 0; }
}

/* -----------------------------------------------------------------------------
   10. SERVICES
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--s-6);
}

.service-card {
    position: relative;
    grid-column: span 4;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--line);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.service-card.featured {
    grid-column: span 8;
}

.service-card.large {
    grid-column: span 6;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: inherit;
}

.service-card-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--c-gray-50);
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

.service-card:hover .service-card-media img {
    transform: scale(1.08);
}

.service-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(6, 40, 65, 0.4) 100%);
}

.service-card-tag {
    position: absolute;
    top: var(--s-4);
    left: var(--s-4);
    z-index: 2;
    padding: var(--s-1) var(--s-3);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--accent);
}

.service-card-body {
    padding: var(--s-8);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--s-3);
    line-height: 1.15;
}

.service-card p {
    color: var(--fg-soft);
    font-size: var(--fs-sm);
    line-height: var(--lh-loose);
    margin-bottom: var(--s-6);
    flex: 1;
}

.service-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
}

.service-card-foot .link {
    border-bottom: 0;
    padding: 0;
}

.service-card-foot .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-blue-50);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.service-card:hover .icon-circle {
    background: var(--accent);
    color: var(--c-white);
    transform: rotate(-45deg);
}

@media (max-width: 980px) {
    .service-card,
    .service-card.featured,
    .service-card.large {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .service-card,
    .service-card.featured,
    .service-card.large {
        grid-column: span 12;
    }
}

/* -----------------------------------------------------------------------------
   11. ABOUT PREVIEW (editorial split)
   -------------------------------------------------------------------------- */
.about-preview {
    position: relative;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.about-split-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.about-split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.about-split-media .badge-circle {
    position: absolute;
    bottom: var(--s-6);
    right: var(--s-6);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--c-blue-900);
    color: var(--c-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--s-4);
    box-shadow: var(--shadow-lg);
}

.about-split-media .badge-circle .num {
    font-family: var(--ff-display);
    font-size: var(--fs-3xl);
    line-height: 1;
}

.about-split-media .badge-circle .label {
    font-size: var(--fs-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    margin-top: var(--s-2);
    color: var(--c-blue-200);
}

.about-split-content h2 {
    margin-bottom: var(--s-6);
}

.about-split-content p {
    color: var(--fg-soft);
    font-size: var(--fs-md);
    line-height: var(--lh-loose);
    margin-bottom: var(--s-4);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
    margin: var(--s-10) 0;
    padding: var(--s-6) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}

.about-stat .num {
    font-family: var(--ff-display);
    font-size: var(--fs-3xl);
    line-height: 1;
    color: var(--accent);
}

.about-stat .label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--fg-muted);
}

@media (max-width: 880px) {
    .about-split { grid-template-columns: 1fr; gap: var(--s-10); }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
    .about-stats { grid-template-columns: 1fr; gap: var(--s-4); }
    .about-split-media .badge-circle { width: 120px; height: 120px; }
}

/* -----------------------------------------------------------------------------
   12. TESTIMONIALS / REVIEWS
   -------------------------------------------------------------------------- */
.testimonials {
    background: var(--c-blue-900);
    color: var(--c-white);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(60, 99, 130, 0.4) 0%, transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(60, 99, 130, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.testimonials .section-head h2,
.testimonials .section-head p {
    color: var(--c-white);
}

.testimonials .section-head .eyebrow {
    color: var(--c-blue-200);
}

.testimonials-track {
    position: relative;
    overflow: hidden;
    padding: var(--s-4) 0;
    margin: 0 calc(var(--gutter) * -1);
}

.testimonials-rail {
    display: flex;
    gap: var(--s-6);
    padding: 0 var(--gutter);
    will-change: transform;
}

.review-card {
    flex: 0 0 clamp(280px, 32vw, 420px);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: var(--s-8);
    display: flex;
    flex-direction: column;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.review-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

.review-card-stars {
    display: flex;
    gap: 2px;
    color: var(--c-amber);
    margin-bottom: var(--s-5);
}

.review-card-stars svg {
    width: 16px;
    height: 16px;
}

.review-card-text {
    font-family: var(--ff-display);
    font-size: var(--fs-lg);
    line-height: 1.4;
    color: var(--c-white);
    margin-bottom: var(--s-6);
    flex: 1;
    font-style: italic;
}

.review-card-text::before {
    content: "\201C";
    display: block;
    font-size: 3em;
    line-height: 0.5;
    margin-bottom: var(--s-2);
    color: var(--c-blue-400);
}

.review-card-author {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding-top: var(--s-4);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.review-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--c-blue-700);
}

.review-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card-name {
    font-family: var(--ff-sans);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-white);
    margin: 0;
}

.review-card-role {
    font-size: var(--fs-xs);
    color: var(--c-blue-300);
    letter-spacing: var(--tracking-wide);
}

/* -----------------------------------------------------------------------------
   13. CASE STUDIES
   -------------------------------------------------------------------------- */
.case-grid {
    display: grid;
    gap: var(--s-6);
    grid-template-columns: repeat(12, 1fr);
}

.case-card {
    position: relative;
    grid-column: span 12;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--c-white);
    isolation: isolate;
    min-height: clamp(380px, 50vw, 560px);
    display: flex;
    align-items: flex-end;
    padding: var(--s-10);
    transition: transform var(--dur) var(--ease);
}

.case-card:nth-child(2),
.case-card:nth-child(3) {
    grid-column: span 6;
    min-height: clamp(320px, 40vw, 460px);
}

.case-card:hover {
    transform: translateY(-4px);
    color: var(--c-white);
}

.case-card-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.case-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

.case-card:hover .case-card-media img {
    transform: scale(1.06);
}

.case-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 40, 65, 0.85) 100%);
    z-index: 1;
}

.case-card-body {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.case-card-tag {
    display: inline-flex;
    padding: var(--s-1) var(--s-3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--c-white);
    margin-bottom: var(--s-4);
}

.case-card h3 {
    color: var(--c-white);
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    margin-bottom: var(--s-3);
    line-height: 1.1;
}

.case-card p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--s-5);
    max-width: 50ch;
}

.case-card-foot {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    font-size: var(--fs-xs);
}

.case-card-foot svg {
    transition: transform var(--dur) var(--ease);
}

.case-card:hover .case-card-foot svg {
    transform: translateX(4px);
}

@media (max-width: 760px) {
    .case-card:nth-child(2),
    .case-card:nth-child(3) {
        grid-column: span 12;
    }
}

/* -----------------------------------------------------------------------------
   14. CTA FINAL (with parallax image and split layout)
   -------------------------------------------------------------------------- */
.cta-final {
    position: relative;
    overflow: hidden;
    color: var(--c-white);
    background: var(--c-blue-900);
}

.cta-final-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-final-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.30;
    will-change: transform;
}

.cta-final-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--c-blue-900) 0%, rgba(6, 40, 65, 0.50) 100%);
}

.cta-final .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-12);
    align-items: center;
    padding-block: clamp(5rem, 10vw, 8rem);
}

.cta-final h2 {
    font-size: clamp(2.25rem, 1.8rem + 3vw, 4.5rem);
    color: var(--c-white);
    margin-bottom: var(--s-5);
    line-height: 1.05;
}

.cta-final .lead {
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: var(--s-8);
    max-width: 50ch;
}

.cta-final-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: var(--s-8);
    text-align: center;
}

.cta-final-card .label {
    font-size: var(--fs-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--c-blue-200);
    margin-bottom: var(--s-3);
}

.cta-final-card .phone {
    font-family: var(--ff-display);
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
    color: var(--c-white);
    display: block;
    margin-bottom: var(--s-6);
    line-height: 1;
}

.cta-final-card .phone:hover {
    color: var(--c-blue-200);
}

.cta-final-card .row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-4);
    padding-top: var(--s-6);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: var(--fs-xs);
    color: var(--c-blue-200);
}

.cta-final-card .row .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-success);
    box-shadow: 0 0 12px var(--c-success);
}

@media (max-width: 880px) {
    .cta-final .container { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq {
    background: var(--c-cream);
}

.faq-list {
    max-width: 880px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--line);
    transition: border-color var(--dur) var(--ease);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: var(--s-6) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    font-family: var(--ff-display);
    font-size: var(--fs-lg);
    color: var(--fg);
    transition: color var(--dur) var(--ease);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item summary .toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-white);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.faq-item summary .toggle::before,
.faq-item summary .toggle::after {
    content: "";
    position: absolute;
    background: var(--accent);
    transition: transform var(--dur) var(--ease);
}

.faq-item summary .toggle::before {
    width: 14px;
    height: 1.5px;
}

.faq-item summary .toggle::after {
    width: 1.5px;
    height: 14px;
}

.faq-item[open] summary .toggle {
    background: var(--accent);
}

.faq-item[open] summary .toggle::before,
.faq-item[open] summary .toggle::after {
    background: var(--c-white);
}

.faq-item[open] summary .toggle::after {
    transform: scaleY(0);
}

.faq-content {
    padding: 0 0 var(--s-6);
    color: var(--fg-soft);
    max-width: 720px;
    line-height: var(--lh-loose);
}

.faq-content p { margin-bottom: var(--s-3); }
.faq-content p:last-child { margin-bottom: 0; }

/* -----------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--c-blue-900);
    color: var(--c-blue-200);
    padding-top: clamp(4rem, 8vw, 6rem);
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--s-10);
    padding-bottom: var(--s-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-row {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-6);
}

.footer-brand img {
    height: 60px;
    width: auto;
    background: var(--c-white);
    padding: var(--s-2);
    border-radius: 8px;
}

.footer-brand p {
    color: var(--c-blue-200);
    max-width: 36ch;
    line-height: var(--lh-loose);
    font-size: var(--fs-sm);
    margin-bottom: var(--s-6);
}

.footer-social {
    display: flex;
    gap: var(--s-2);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--c-blue-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer-social a:hover {
    background: var(--c-white);
    color: var(--c-blue-900);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-col h4 {
    color: var(--c-white);
    font-family: var(--ff-sans);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    margin-bottom: var(--s-5);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.footer-col a {
    color: var(--c-blue-200);
    font-size: var(--fs-sm);
    transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.footer-col a:hover {
    color: var(--c-white);
    padding-left: var(--s-2);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    padding: var(--s-6) 0;
    font-size: var(--fs-xs);
    color: var(--c-blue-300);
    flex-wrap: wrap;
}

.footer-bottom .links {
    display: flex;
    gap: var(--s-6);
}

@media (max-width: 880px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
}

/* -----------------------------------------------------------------------------
   17. FORMS
   -------------------------------------------------------------------------- */
.form {
    display: grid;
    gap: var(--s-5);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.form-field label {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--fg-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: var(--s-4) var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--c-white);
    font-family: inherit;
    font-size: var(--fs-base);
    color: var(--fg);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
    width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(10, 61, 98, 0.10);
    background: var(--c-white);
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
}

.form-field .hint {
    font-size: var(--fs-xs);
    color: var(--fg-muted);
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
    border-color: var(--c-red);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.10);
}

.form-field.has-error .error {
    color: var(--c-red);
    font-size: var(--fs-xs);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    font-size: var(--fs-sm);
    color: var(--fg-soft);
}

.form-checkbox input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-status {
    padding: var(--s-4) var(--s-5);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.10);
    color: var(--c-green);
    border: 1px solid rgba(34, 197, 94, 0.20);
}

.form-status.error {
    display: block;
    background: rgba(230, 57, 70, 0.10);
    color: var(--c-red);
    border: 1px solid rgba(230, 57, 70, 0.20);
}

/* Form card layout */
.form-card {
    background: var(--c-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow-sm);
}

/* -----------------------------------------------------------------------------
   18. PAGE HEADER (sub-pages)
   -------------------------------------------------------------------------- */
.page-header {
    position: relative;
    color: var(--c-white);
    overflow: hidden;
    padding: clamp(8rem, 14vw, 12rem) 0 clamp(4rem, 8vw, 6rem);
    background: var(--c-blue-900);
    isolation: isolate;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    will-change: transform;
}

.page-header-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 40, 65, 0.6) 0%, rgba(6, 40, 65, 0.95) 100%);
}

.page-header h1 {
    font-size: clamp(2.5rem, 1.8rem + 4vw, 5rem);
    color: var(--c-white);
    margin-bottom: var(--s-4);
    line-height: 1;
    font-weight: 300;
}

.page-header .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--fs-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--c-blue-200);
    margin-bottom: var(--s-5);
}

.page-header .breadcrumb a {
    color: inherit;
}

.page-header .breadcrumb a:hover {
    color: var(--c-white);
}

.page-header .breadcrumb svg {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.page-header p {
    color: rgba(255, 255, 255, 0.80);
    font-size: var(--fs-md);
    max-width: 60ch;
    line-height: var(--lh-loose);
}

/* -----------------------------------------------------------------------------
   19. CONTACT PAGE
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s-16);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}

.contact-info-item {
    display: flex;
    gap: var(--s-5);
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--line);
}

.contact-info-item:last-child { border-bottom: 0; }

.contact-info-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--c-blue-50);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-item h4 {
    font-family: var(--ff-sans);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--fg-muted);
    margin-bottom: var(--s-1);
    font-weight: 600;
}

.contact-info-item p,
.contact-info-item a {
    font-family: var(--ff-display);
    font-size: var(--fs-lg);
    color: var(--fg);
    line-height: 1.3;
}

.contact-info-item a:hover {
    color: var(--accent);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 480px;
    border: 1px solid var(--line);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.2);
}

@media (max-width: 880px) {
    .contact-grid { grid-template-columns: 1fr; gap: var(--s-10); }
}

/* -----------------------------------------------------------------------------
   20. ANIMATION HELPERS (used by JS / GSAP)
   -------------------------------------------------------------------------- */
.js-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.js-reveal-fade {
    opacity: 0;
}

.js-stagger > * {
    opacity: 0;
    transform: translateY(30px);
}

.js-clip-reveal {
    clip-path: inset(0 0 100% 0);
}

.js-image-reveal {
    overflow: hidden;
    position: relative;
}

.js-image-reveal img {
    transform: scale(1.2);
    opacity: 0;
}

.no-js .js-reveal,
.no-js .js-reveal-fade,
.no-js .js-stagger > *,
.no-js .js-clip-reveal,
.no-js .js-image-reveal img {
    opacity: 1;
    transform: none;
    clip-path: none;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-blue-800);
    pointer-events: none;
    z-index: var(--z-toast);
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.1s linear, width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cursor-dot { display: block; }
    body.cursor-active { cursor: none; }
    body.cursor-active a, body.cursor-active button { cursor: none; }
}

/* -----------------------------------------------------------------------------
   21. SERVICE DETAIL / FEATURE LIST
   -------------------------------------------------------------------------- */
.feature-list {
    display: grid;
    gap: var(--s-2);
    margin: var(--s-6) 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line);
    color: var(--fg-soft);
}

.feature-list li::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 12px;
}

/* -----------------------------------------------------------------------------
   22. TEAM
   -------------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-6);
}

.team-card {
    text-align: left;
}

.team-card-media {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: var(--s-4);
    background: var(--c-gray-50);
}

.team-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

.team-card:hover .team-card-media img {
    transform: scale(1.06);
}

.team-card h4 {
    font-size: var(--fs-lg);
    font-family: var(--ff-display);
    margin-bottom: var(--s-1);
}

.team-card .role {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--fg-muted);
}

@media (max-width: 880px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------------
   23. CERTIFICATIONS
   -------------------------------------------------------------------------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-4);
}

.cert-card {
    background: var(--c-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s-6);
    text-align: center;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.cert-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.cert-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-blue-50);
    color: var(--accent);
    margin: 0 auto var(--s-4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card h5 {
    font-size: var(--fs-base);
    margin-bottom: var(--s-1);
}

.cert-card .body {
    font-size: var(--fs-xs);
    color: var(--fg-muted);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -----------------------------------------------------------------------------
   24. MARQUEE (scrolling brand text)
   -------------------------------------------------------------------------- */
.marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding-block: var(--s-6);
    background: var(--c-cream);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: var(--s-12);
    animation: marquee 30s linear infinite;
    will-change: transform;
    white-space: nowrap;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
    font-family: var(--ff-display);
    font-size: var(--fs-2xl);
    color: var(--fg);
    font-style: italic;
}

.marquee-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-red);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* -----------------------------------------------------------------------------
   25. UTILITIES — spacing / display
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }   .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mt-10 { margin-top: var(--s-10); }
.mt-12 { margin-top: var(--s-12); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }

.hide-mobile { @media (max-width: 720px) { display: none !important; } }
.show-mobile { @media (min-width: 721px) { display: none !important; } }

/* Skip to content (accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--s-4);
    background: var(--accent);
    color: var(--c-white);
    padding: var(--s-3) var(--s-5);
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: var(--fs-sm);
    font-weight: 600;
    z-index: var(--z-modal);
    transition: top var(--dur) var(--ease);
}

.skip-link:focus {
    top: 0;
    color: var(--c-white);
}

/* -----------------------------------------------------------------------------
   26. SCROLL-DRIVEN IMAGE SEQUENCE
   -------------------------------------------------------------------------- */
.seq {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--c-blue-900);
    border-radius: var(--radius-lg);
    color: var(--c-white);
    /* hide scrollbar but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.seq::-webkit-scrollbar { display: none; }

.seq-inner {
    position: relative;
    width: 100%;
}

.seq-stage {
    position: sticky;
    top: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seq-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform, opacity;
    transition: opacity 80ms linear;
}

/* Overlay: progress bar + frame counter + caption */
.seq-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--s-8);
    background: linear-gradient(180deg, rgba(6,40,65,0.35) 0%, transparent 30%, transparent 60%, rgba(6,40,65,0.55) 100%);
}

.seq-overlay-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
}

.seq-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-4);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
}

.seq-counter {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    letter-spacing: var(--tracking-wide);
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--s-2) var(--s-3);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.15);
}

.seq-overlay-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.seq-caption {
    font-family: var(--ff-display);
    font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
    line-height: 1.15;
    color: var(--c-white);
    max-width: 60ch;
    text-shadow: 0 2px 24px rgba(0,0,0,0.4);
    transition: opacity 200ms var(--ease);
}

.seq-caption.is-hidden {
    opacity: 0;
}

.seq-progress {
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.seq-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--c-blue-200), var(--c-white));
    transform-origin: left center;
    transition: width 80ms linear;
}

/* Loader (while preloading) */
.seq-loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--s-4);
    background: var(--c-blue-900);
    color: var(--c-blue-200);
    transition: opacity 400ms var(--ease);
}

.seq-loader.is-done {
    opacity: 0;
    pointer-events: none;
}

.seq-loader-label {
    font-size: var(--fs-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
}

.seq-loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.10);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.seq-loader-fill {
    height: 100%;
    width: 0%;
    background: var(--c-white);
    transition: width 200ms var(--ease);
}

.seq-scroll-hint {
    position: absolute;
    bottom: var(--s-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    font-size: var(--fs-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-2);
    pointer-events: none;
    transition: opacity 300ms var(--ease);
}

.seq-scroll-hint.is-hidden { opacity: 0; }

.seq-scroll-hint::after {
    content: "";
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
    animation: scroll-line 1.6s ease-in-out infinite;
}

/* -----------------------------------------------------------------------------
   27. MOBILE POLISH — section-by-section refinements for ≤720px
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
    /* Topbar — compact, centered, key info only */
    .site-topbar {
        font-size: 10px;
        padding: 6px 0;
        letter-spacing: 0.05em;
    }
    .site-topbar .container {
        flex-wrap: wrap;
        gap: var(--s-2);
        justify-content: center;
        text-align: center;
    }
    .site-topbar .badge {
        font-size: 10px;
    }
    .site-topbar .badge span:last-child {
        max-width: 70vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Header — smaller logo, cleaner CTA */
    .site-header .container {
        min-height: 62px;
        padding-block: var(--s-2);
        gap: var(--s-3);
    }
    .site-logo img {
        height: 42px;
    }
    .header-cta {
        gap: var(--s-2);
    }
    .header-cta .btn-sm {
        --btn-py: 0.55rem;
        --btn-px: 0.85rem;
        font-size: 11px;
    }

    /* Value prop — single column, larger icons */
    .value-card {
        padding: var(--s-8) var(--s-5);
    }
    .value-card-num {
        margin-bottom: var(--s-6);
    }
    .value-card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: var(--s-4);
    }

    /* Section heads — better hierarchy on mobile */
    .section {
        padding-block: clamp(3rem, 10vw, 5rem);
    }
    .section-head {
        margin-bottom: var(--s-10);
    }
    .section-head h2 {
        font-size: clamp(1.875rem, 1.5rem + 3vw, 2.5rem);
    }

    /* Services overview — better mobile cards */
    .service-card-body {
        padding: var(--s-6);
    }
    .service-card h3 {
        font-size: var(--fs-xl);
    }
    .service-card-media {
        aspect-ratio: 16 / 10;
    }

    /* About preview — tighter mobile spacing */
    .about-split {
        gap: var(--s-8);
    }
    .about-split-content h2 {
        font-size: clamp(1.875rem, 1.5rem + 3vw, 2.5rem);
    }
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--s-4);
        margin: var(--s-8) 0;
        padding: var(--s-5) 0;
    }
    .about-stats .about-stat:last-child {
        grid-column: 1 / -1;
    }
    .about-stat .num {
        font-size: var(--fs-2xl);
    }
    .about-split-media .badge-circle {
        width: 100px;
        height: 100px;
        bottom: var(--s-4);
        right: var(--s-4);
    }
    .about-split-media .badge-circle .num {
        font-size: var(--fs-xl);
    }
    .about-split-media .badge-circle .label {
        font-size: 9px;
    }

    /* Sequence player — smaller on mobile */
    .seq {
        border-radius: var(--radius);
    }
    .seq-overlay {
        padding: var(--s-4);
    }
    .seq-caption {
        font-size: clamp(1.05rem, 1rem + 1vw, 1.5rem);
    }
    .seq-eyebrow {
        font-size: 9px;
        padding: 4px 8px;
    }
    .seq-counter {
        font-size: 9px;
        padding: 4px 8px;
    }

    /* Service area — single column with cleaner grid */
    #service-area .js-stagger {
        grid-template-columns: 1fr !important;
        gap: var(--s-8) !important;
    }
    #service-area ul:first-of-type {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Testimonials — bigger touch targets */
    .review-card {
        flex: 0 0 80vw;
        padding: var(--s-6);
    }
    .review-card-text {
        font-size: var(--fs-md);
    }

    /* Case grid — single column */
    .case-card,
    .case-card:nth-child(2),
    .case-card:nth-child(3) {
        grid-column: span 12;
        min-height: 320px;
        padding: var(--s-6);
    }
    .case-card h3 {
        font-size: var(--fs-xl);
    }

    /* CTA final — vertical stack */
    .cta-final .container {
        gap: var(--s-8);
        padding-block: clamp(3rem, 10vw, 5rem);
    }
    .cta-final h2 {
        font-size: clamp(1.875rem, 1.5rem + 3vw, 2.5rem);
    }
    .cta-final-card {
        padding: var(--s-6);
    }
    .cta-final-card .phone {
        font-size: clamp(1.625rem, 1.2rem + 2.5vw, 2.25rem);
    }

    /* FAQ — bigger touch targets */
    .faq-item summary {
        padding: var(--s-5) 0;
        font-size: var(--fs-base);
        gap: var(--s-4);
    }
    .faq-item summary .toggle {
        width: 32px;
        height: 32px;
    }

    /* Footer — better stacking */
    .site-footer {
        padding-top: var(--s-12);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--s-8);
        padding-bottom: var(--s-8);
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-brand img {
        height: 48px;
    }
    .footer-col h4 {
        font-size: 11px;
        margin-bottom: var(--s-3);
    }
    .footer-col a {
        font-size: var(--fs-sm);
    }
    .footer-bottom {
        padding: var(--s-5) 0;
        font-size: 11px;
    }
    .footer-bottom .links {
        flex-wrap: wrap;
        gap: var(--s-3);
    }

    /* Contact — stack everything */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--s-8);
    }
    .contact-info-item {
        padding: var(--s-4) 0;
        gap: var(--s-4);
    }
    .contact-info-icon {
        width: 44px;
        height: 44px;
    }
    .contact-info-item p,
    .contact-info-item a {
        font-size: var(--fs-base);
        word-break: break-word;
    }
    .contact-map {
        height: 320px;
    }

    /* Page headers — less massive padding */
    .page-header {
        padding: clamp(6rem, 18vw, 9rem) 0 clamp(3rem, 8vw, 5rem);
    }
    .page-header h1 {
        font-size: clamp(2rem, 1.5rem + 4vw, 3.5rem);
    }

    /* Form polish */
    .form-card {
        padding: var(--s-6);
    }
    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: var(--s-3) var(--s-4);
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    /* Marquee — slower, larger text */
    .marquee {
        padding-block: var(--s-4);
    }
    .marquee-item {
        font-size: var(--fs-lg);
    }

    /* Buttons — slightly bigger touch */
    .btn {
        --btn-py: 0.85rem;
        --btn-px: 1.3rem;
        min-height: 44px;
    }
    .btn-lg {
        --btn-py: 1rem;
        --btn-px: 1.6rem;
        font-size: var(--fs-sm);
    }
    .btn-sm {
        --btn-py: 0.55rem;
        --btn-px: 1rem;
        min-height: 36px;
    }
}

/* Very small screens (≤400px) — extra-compact */
@media (max-width: 400px) {
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-meta {
        grid-template-columns: 1fr 1fr;
        gap: var(--s-4) var(--s-3);
    }
    .site-topbar .badge span:last-child {
        max-width: 60vw;
    }
    .header-cta .btn-secondary {
        display: none; /* keep only the red call CTA + hamburger */
    }
}

/* -----------------------------------------------------------------------------
   28. INTERACTIVE ANIMATIONS — premium polish
   -------------------------------------------------------------------------- */

/* 3D card tilt (desktop only) */
@media (hover: hover) and (pointer: fine) and (min-width: 880px) {
    [data-tilt] {
        transform-style: preserve-3d;
        transition: transform 0.5s var(--ease-out);
    }
    [data-tilt-inner] {
        transform: translateZ(20px);
        transition: transform 0.5s var(--ease-out);
    }
}

/* Touch ripple — for mobile */
.btn,
.service-card,
.case-card,
.review-card {
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.btn::after,
.service-card::after,
.case-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255, 255, 255, 0.3), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease-out);
}

.btn.is-tapped::after,
.service-card.is-tapped::after,
.case-card.is-tapped::after {
    opacity: 1;
    transition: opacity 0s;
}

/* Refined link arrow */
.icon-arrow {
    transition: transform 350ms var(--ease-out);
}
a:hover .icon-arrow,
button:hover .icon-arrow,
.btn:hover .icon-arrow {
    transform: translateX(5px);
}

/* Mobile menu — slick slide-in animation */
.mobile-menu {
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease-out),
                visibility 0.4s var(--ease-out),
                transform 0.5s var(--ease-out);
}
.mobile-menu.open {
    transform: translateY(0);
}
.mobile-menu nav a {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 200ms var(--ease), padding-left 200ms var(--ease);
}
.mobile-menu.open nav a {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.open nav a:nth-child(1) { transition-delay: 100ms; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: 160ms; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: 220ms; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: 280ms; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: 340ms; }
.mobile-menu.open nav a:nth-child(6) { transition-delay: 400ms; }

.mobile-menu-footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out) 0.4s, transform 0.6s var(--ease-out) 0.4s;
}
.mobile-menu.open .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

/* Card hover lift — refined */
@media (hover: hover) and (pointer: fine) {
    .service-card,
    .case-card,
    .cert-card,
    .review-card {
        transition: transform 0.5s var(--ease-out),
                    box-shadow 0.5s var(--ease-out),
                    border-color 0.3s var(--ease),
                    background 0.3s var(--ease);
    }
    .service-card:hover {
        transform: translateY(-8px) scale(1.005);
    }
    .case-card:hover {
        transform: translateY(-6px) scale(1.005);
    }
    .cert-card:hover {
        transform: translateY(-5px);
    }
}

/* Eyebrow underline animation */
.eyebrow {
    position: relative;
}

/* Anchor underline animation (refined nav) */
@media (hover: hover) {
    .site-nav a::after {
        transition: transform 0.4s var(--ease-out);
    }
}

/* Subtle gradient shift on bg-gradient backgrounds */
.bg-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 14s ease infinite;
}

@keyframes gradient-shift {
    0%   { background-position:   0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
}

/* Form focus glow refined */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    box-shadow: 0 0 0 4px rgba(10, 61, 98, 0.10), 0 4px 14px rgba(10, 61, 98, 0.10);
}

/* Stat number glow on count-up */
[data-counter] {
    display: inline-block;
    background: linear-gradient(135deg, currentColor, currentColor);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Smooth scroll snap zones */
html {
    scroll-snap-type: none; /* off by default */
}

/* Hero badge pulse refined */
.hero-eyebrow .dot {
    position: relative;
}

.hero-eyebrow .dot::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--c-red);
    opacity: 0.5;
    animation: ring-pulse 2s ease-out infinite;
}

@keyframes ring-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

/* -----------------------------------------------------------------------------
   29. SCROLL PROGRESS BAR (top of viewport)
   -------------------------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: calc(var(--z-toast) + 10);
    background: transparent;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--c-blue-700), var(--c-blue-300), var(--c-white));
    box-shadow: 0 0 12px rgba(60, 99, 130, 0.5);
    transform-origin: left center;
    transition: width 50ms linear;
}

/* -----------------------------------------------------------------------------
   30. FLOATING CALL FAB (sticky bottom right)
   -------------------------------------------------------------------------- */
.fab {
    position: fixed;
    right: var(--s-6);
    bottom: var(--s-6);
    z-index: var(--z-sticky);
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-4) var(--s-5);
    background: var(--c-red);
    color: var(--c-white);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-sm);
    letter-spacing: 0.02em;
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.40), 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.55s var(--ease-out), opacity 0.4s var(--ease-out), background 0.3s var(--ease);
    will-change: transform, opacity;
}

.fab.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.fab.is-hidden {
    transform: translateY(120%);
    opacity: 0;
}

.fab:hover {
    color: var(--c-white);
    background: var(--c-red-dark);
}

.fab::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(230, 57, 70, 0.6);
    animation: fab-pulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes fab-pulse {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.35); opacity: 0; }
}

.fab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.fab-label {
    white-space: nowrap;
    overflow: hidden;
    max-width: 200px;
    transition: max-width 0.5s var(--ease-out);
}

@media (max-width: 540px) {
    .fab {
        right: var(--s-4);
        bottom: var(--s-4);
        padding: var(--s-3) var(--s-4);
    }
    .fab-label {
        font-size: var(--fs-xs);
    }
}

/* -----------------------------------------------------------------------------
   31. PAGE TRANSITION OVERLAY (cinematic fade between pages)
   -------------------------------------------------------------------------- */
.page-curtain {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-toast) + 20);
    pointer-events: none;
    background: var(--c-blue-900);
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.7s var(--ease-out);
}

.page-curtain.is-rising {
    transform: scaleY(1);
    transform-origin: bottom;
    pointer-events: all;
}

.page-curtain.is-falling {
    transform: scaleY(0);
    transform-origin: top;
    pointer-events: none;
}

.page-curtain-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--s-4);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.page-curtain.is-rising .page-curtain-inner {
    opacity: 1;
    transition-delay: 0.3s;
}

.page-curtain-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--c-white);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-curtain-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.page-curtain-label {
    color: var(--c-blue-200);
    font-size: var(--fs-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
}

/* -----------------------------------------------------------------------------
   32. LOADING CURTAIN (first paint cinematic intro)
   -------------------------------------------------------------------------- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-toast) + 30);
    background: var(--c-blue-900);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--s-6);
    transition: opacity 0.5s var(--ease) 0.3s,
                visibility 0.5s var(--ease) 0.3s;
}

.page-loader.is-done {
    opacity: 0;
    visibility: hidden;
}

.page-loader-logo {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    background: var(--c-white);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loader-logo-pulse 1.4s ease-in-out infinite;
}

.page-loader-logo img {
    max-width: 100%;
    max-height: 100%;
}

@keyframes loader-logo-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(0.94); }
}

.page-loader-bar {
    width: 180px;
    height: 2px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.page-loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--c-white);
    border-radius: inherit;
    animation: loader-fill 1.6s ease-out forwards;
}

@keyframes loader-fill {
    0%   { width: 0%; }
    60%  { width: 70%; }
    100% { width: 100%; }
}

.page-loader-label {
    color: var(--c-blue-200);
    font-size: var(--fs-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
}

/* -----------------------------------------------------------------------------
   33. TRUST STRIP (credential badges with subtle animation)
   -------------------------------------------------------------------------- */
.trust-strip {
    position: relative;
    background: var(--c-white);
    border-block: 1px solid var(--line);
    padding-block: var(--s-8);
}

.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    gap: var(--s-4) var(--s-6);
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--s-2);
    color: var(--fg-muted);
    transition: color 0.4s var(--ease), transform 0.4s var(--ease-out);
}

.trust-badge:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.trust-badge-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    opacity: 0.65;
    transition: opacity 0.4s var(--ease);
}

.trust-badge:hover .trust-badge-icon {
    opacity: 1;
}

.trust-badge-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    line-height: 1.2;
}

.trust-badge-sub {
    font-family: var(--ff-mono);
    font-size: 9px;
    color: var(--fg-muted);
    letter-spacing: 0.05em;
}

@media (max-width: 880px) {
    .trust-strip-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--s-6) var(--s-4);
    }
}

@media (max-width: 480px) {
    .trust-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -----------------------------------------------------------------------------
   34. SECTION DIVIDER SHAPES (curved transitions between sections)
   -------------------------------------------------------------------------- */
.divider-shape {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.divider-shape svg {
    width: 100%;
    height: 100%;
    display: block;
}

.divider-shape path {
    fill: currentColor;
}

.divider-shape.top {
    margin-top: -1px;
    transform: rotate(180deg);
}

.divider-shape.bottom {
    margin-bottom: -1px;
}

/* -----------------------------------------------------------------------------
   35. KEYBOARD FOCUS — refined accessibility
   -------------------------------------------------------------------------- */
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--c-blue-400);
    outline-offset: 3px;
    border-radius: 4px;
}

/* -----------------------------------------------------------------------------
   36. SELECTION & MISC POLISH
   -------------------------------------------------------------------------- */
::selection {
    background: var(--c-blue-800);
    color: var(--c-white);
    text-shadow: none;
}

/* Hide scroll until ready */
html:not(.page-ready) body {
    overflow: hidden;
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* -----------------------------------------------------------------------------
   37. STUDIO CREDIT (mandatory per webcreator skill)
   -------------------------------------------------------------------------- */
.footer-credit {
    margin-top: 0.35rem;
    padding: var(--s-4) 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.85);
    text-align: center;
    opacity: 0.85;
}

.footer-credit a {
    color: var(--c-blue-200);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.footer-credit a:hover {
    color: var(--c-white);
    border-bottom-color: currentColor;
}

/* -----------------------------------------------------------------------------
   38. INP OPTIMIZATION (content-visibility on offscreen sections)
   -------------------------------------------------------------------------- */
.section,
.cta-final,
.testimonials,
.trust-strip,
.about-preview,
.value-prop,
#service-area,
#experience,
.faq,
.case-card,
.service-card,
.review-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Hero stays eagerly rendered for LCP */
.hero,
.page-header,
.site-header,
.site-topbar {
    content-visibility: visible;
}

/* -----------------------------------------------------------------------------
   39. CONNECTION-AWARE — disable heavy effects on slow networks / battery saver
   -------------------------------------------------------------------------- */
html.reduce-effects .hero-bg img,
html.reduce-effects [data-parallax],
html.reduce-effects .cursor-dot,
html.reduce-effects [data-tilt],
html.reduce-effects .fab::before,
html.reduce-effects .hero-eyebrow .dot::before,
html.reduce-effects .marquee-track,
html.reduce-effects .bg-gradient {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

html.reduce-effects .cursor-dot { display: none !important; }

/* -----------------------------------------------------------------------------
   40. WCAG 2.2 AA — minimum target size + focus appearance
   -------------------------------------------------------------------------- */
a, button, [role="button"], input[type="checkbox"], input[type="radio"], summary {
    min-block-size: 24px;
    min-inline-size: 24px;
}

.btn,
.nav-toggle,
.site-nav a,
.mobile-menu nav a,
.fab,
.footer-social a,
.faq-item summary {
    min-block-size: 44px;
    min-inline-size: 44px;
}

/* Focus appearance — WCAG 2.4.11 (offset NEVER overlaps the element) */
:focus-visible {
    outline: 3px solid var(--c-blue-400);
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 6px rgba(60, 99, 130, 0.18);
}

/* Skip link respects focus-not-obscured — pulled above sticky header */
.skip-link:focus {
    top: 4px;
    z-index: calc(var(--z-toast) + 100);
}

/* -----------------------------------------------------------------------------
   41. ANSWER-FIRST BLOCKS (AI search optimization helper)
   -------------------------------------------------------------------------- */
.answer-block {
    background: var(--c-cream);
    border-left: 3px solid var(--accent);
    padding: var(--s-5) var(--s-6);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: var(--s-5) 0;
    font-size: var(--fs-md);
    line-height: var(--lh-loose);
    color: var(--fg);
}

.answer-block::before {
    content: "Quick answer";
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--s-2);
}

/* -----------------------------------------------------------------------------
   END
   -------------------------------------------------------------------------- */
