/* ---------- Tokens ---------- */
:root {
    /* Hybrid theme: light body, dark hero kept for video drama */
    --bg:           #FCFAEC;    /* light cream — body background */
    --bg-elev:      #F4F0DC;    /* slightly darker alt sections */
    --surface:      #FFFFFF;    /* card surface */
    --surface-2:    #FAF6E6;    /* card hover */
    --border:       rgba(16, 25, 33, 0.10);
    --border-strong:rgba(16, 25, 33, 0.18);
    --text:         #101921;    /* dark navy — primary text */
    --text-muted:   #4a5563;    /* muted dark blue-gray */
    --text-dim:     #6b7388;    /* dim gray */
    --accent:       #116dff;    /* brand blue */
    --accent-2:     #3d9be9;    /* secondary lighter blue */
    --accent-deep:  #003A96;    /* deep navy blue */
    --accent-glow:  rgba(17, 109, 255, 0.22);
    --success: #2d8a32;
    --danger: #d12d54;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
    --container: 1180px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul { list-style: none; padding: 0; margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 1.2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 640px;
}

/* ---------- Non-production environment banner ---------- */
/* Banner is rendered as the first row of the fixed header, so it scrolls/sticks
   with the header rather than as a separately-floating bar.
   z-index keeps it above the mobile menu — both live inside <header>, so they
   share its stacking context; without this the menu (which comes later in
   the DOM) paints over the banner when it's slid offscreen. */
.env-banner {
    display: none;
    position: relative;
    z-index: 1;
    height: 32px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, #991b1b 0%, #dc2626 50%, #991b1b 100%);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 16px;
    text-align: center;
    overflow: hidden;
}

.env-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
    animation: env-banner-pulse 1.5s ease-in-out infinite;
}

@keyframes env-banner-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.6); }
}

.env-banner strong { color: #fff; letter-spacing: 0.20em; }
.env-banner-sep { opacity: 0.5; }
.env-banner-msg {
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.92;
}

html.is-nonprod .env-banner { display: flex; }

@media (max-width: 640px) {
    .env-banner-sep,
    .env-banner-msg { display: none; }
    .env-banner { font-size: 11px; }
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 14, 26, 0.65);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease);
}

.site-header.scrolled {
    background: rgba(10, 14, 26, 0.92);
    border-bottom-color: var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--text);
}

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

.brand-logo-footer { height: 32px; margin-bottom: 4px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.97rem;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    box-shadow: 0 12px 32px -12px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px var(--accent-glow);
    color: #fff;
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--text);
}

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #0a1119;
}

.hero-bg > * { pointer-events: none; }

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.05) contrast(1.05) brightness(0.85);
    transform: scale(1.04);
}

/* Brand-blue tint baked over the footage so it harmonizes with the rest of the site */
.hero-tint {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 58, 150, 0.55) 0%, rgba(16, 25, 33, 0.35) 50%, rgba(17, 109, 255, 0.25) 100%),
        linear-gradient(180deg, rgba(10, 17, 25, 0.35) 0%, rgba(10, 17, 25, 0.7) 100%);
    mix-blend-mode: normal;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.65;
    mix-blend-mode: screen;
}

/* Slow horizontal light sweep — adds motion without distraction */
.hero-scanline {
    position: absolute;
    top: 0; bottom: 0;
    left: -30%;
    width: 30%;
    background: linear-gradient(90deg, transparent 0%, rgba(17, 109, 255, 0.06) 50%, transparent 100%);
    animation: sweep 12s ease-in-out infinite;
}

@keyframes sweep {
    0%   { transform: translateX(0); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(500%); opacity: 0; }
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    mix-blend-mode: screen;
    will-change: transform;
}

.aurora-a {
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(17, 109, 255, 0.35) 0%, transparent 70%);
    top: -220px; left: -180px;
    animation: drift-a 22s ease-in-out infinite alternate;
}

.aurora-b {
    width: 540px; height: 540px;
    background: radial-gradient(circle, rgba(61, 155, 233, 0.28) 0%, transparent 70%);
    bottom: -220px; right: -140px;
    animation: drift-b 26s ease-in-out infinite alternate;
}

@keyframes drift-a {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(160px, 80px) scale(1.15); }
}
@keyframes drift-b {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-140px, -90px) scale(1.1); }
}
@keyframes drift-c {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(-100px, 120px) scale(0.9); opacity: 1; }
}

.noise {
    position: absolute;
    inset: 0;
    opacity: 0.09;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, transparent 0%, transparent 35%, rgba(10, 17, 25, 0.85) 100%),
        linear-gradient(180deg, rgba(10, 17, 25, 0) 60%, rgba(10, 17, 25, 0.85) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.hero-title {
    margin-bottom: 28px;
}

.hero-sub {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 80px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    max-width: 760px;
}

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* ---------- Sections ---------- */
section { position: relative; }

.approach, .services, .about, .contact {
    padding: 120px 0;
}

.section-head {
    max-width: 720px;
    margin-bottom: 64px;
}

.section-head h2 { margin-bottom: 20px; }

/* ---------- Approach (Pillars) ---------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar {
    padding: 36px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.pillar:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.pillar-icon {
    width: 44px; height: 44px;
    color: var(--accent);
    margin-bottom: 22px;
}

.pillar h3 { color: var(--text); margin-bottom: 12px; }
.pillar p { margin: 0; font-size: 0.97rem; }

/* ---------- Services ---------- */
.services { background: var(--bg-elev); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 40px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card .read-more {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.92rem;
}

a.service-card { color: inherit; }
a.service-card:hover { color: inherit; }

.section-footer {
    margin-top: 48px;
    text-align: center;
}

.service-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1.45rem;
    color: var(--text);
    margin-bottom: 14px;
}

.service-card > p { margin-bottom: 22px; }

.service-points li {
    position: relative;
    padding-left: 22px;
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-bottom: 8px;
}

.service-points li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 12px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-copy h2 { margin-bottom: 24px; }
.about-copy .btn { margin-top: 16px; }

.about-card {
    padding: 36px 32px;
    background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.card-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 24px;
}

.expect-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.expect-list li:last-child { border-bottom: none; }
.expect-list span { color: var(--text); font-weight: 500; }
.expect-list em {
    font-style: normal;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact { background: var(--bg-elev); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    align-items: start;
}

.contact-copy h2 { margin-bottom: 22px; }

.contact-details { margin-top: 36px; }
.contact-details li {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-details li:last-child { border-bottom: none; }
.contact-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dim);
}
.contact-details a { color: var(--text); }
.contact-details a:hover { color: var(--accent); }

.contact-form {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.form-row { margin-bottom: 20px; }

.form-row label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: inherit;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.form-row textarea { resize: vertical; min-height: 110px; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(17, 109, 255, 0.18);
}

.form-row select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa3b7' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

.form-status {
    margin: 14px 0 0;
    font-size: 0.9rem;
    min-height: 1.2em;
}
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

/* ---------- Legal pages ---------- */
.legal-hero {
    padding: 160px 0 60px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(17, 109, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 58, 150, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, #0c1620 0%, #101921 100%);
    border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 12px;
}

.legal-hero .updated {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin: 0;
}

.legal-body {
    padding: 72px 0 96px;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin: 44px 0 16px;
    color: var(--text);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.legal-content ul {
    margin: 0 0 1em;
    padding-left: 1.2em;
    list-style: disc;
}

.legal-content ul li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.legal-content strong {
    color: var(--text);
    font-weight: 600;
}

/* ---------- 404 page ---------- */
.error-hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(17, 109, 255, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(0, 58, 150, 0.10) 0%, transparent 55%),
        linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
}

.error-inner { max-width: 880px; }

.error-code {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(7rem, 22vw, 14rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    opacity: 0.9;
}

.error-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin-bottom: 18px;
}

.error-hero .hero-sub {
    max-width: 620px;
    margin-bottom: 32px;
    color: var(--text-muted);
    font-size: 1.08rem;
}

.error-hero .hero-actions { margin-bottom: 72px; }

.error-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.error-link-col h2 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-dim);
    margin-bottom: 14px;
    font-weight: 600;
}

.error-link-col ul li {
    margin-bottom: 8px;
}

.error-link-col a {
    color: var(--text);
    font-size: 0.95rem;
}

.error-link-col a:hover { color: var(--accent); }

@media (max-width: 720px) {
    .error-links { grid-template-columns: 1fr; gap: 24px; }
    .error-hero { padding: 120px 0 72px; }
}

/* ---------- Service detail pages ---------- */
.service-hero {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(17, 109, 255, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(0, 58, 150, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, #0c1620 0%, #101921 100%);
    border-bottom: 1px solid var(--border);
}

.service-hero .container { position: relative; z-index: 1; max-width: 880px; }

.service-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 18px;
}

.service-hero .hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 700px;
}

.service-body {
    padding: 96px 0;
}

.service-section {
    margin-bottom: 96px;
}

.service-section:last-child { margin-bottom: 0; }

.service-section .section-head {
    margin-bottom: 40px;
    max-width: 720px;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.deliverable {
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.deliverable:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.deliverable h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }

.deliverable p { margin: 0; font-size: 0.94rem; }

.phases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.phase {
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
}

.phase-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.phase h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.phase p { margin: 0; font-size: 0.93rem; }

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.outcome {
    padding: 32px 24px;
    background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.outcome-stat {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.outcome p { margin: 0; font-size: 0.95rem; }

.cta-band {
    margin-top: 24px;
    padding: 56px 48px;
    background: linear-gradient(135deg, rgba(17, 109, 255, 0.15) 0%, rgba(0, 58, 150, 0.2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta-band h3 { font-size: 1.6rem; margin-bottom: 12px; color: var(--text); }
.cta-band p { max-width: 560px; margin: 0 auto 24px; }

/* Tablet (720-960): collapse 4-col phases to 2x2, keep deliverables/outcomes as-is */
@media (max-width: 960px) {
    .phases { grid-template-columns: repeat(2, 1fr); }
}

/* Phone (≤720): collapse everything to single column */
@media (max-width: 720px) {
    .deliverables-grid,
    .phases,
    .outcomes-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 40px 24px; }
    .service-card,
    .pillar,
    .deliverable,
    .phase,
    .outcome,
    .post-card { padding: 28px 22px; }
    .service-body { padding: 64px 0; }
    .service-section { margin-bottom: 64px; }
    .error-code { font-size: clamp(5rem, 24vw, 9rem); }
    .error-hero .hero-actions { margin-bottom: 48px; }
}

/* ---------- Blog ---------- */
.blog-hero {
    padding: 160px 0 60px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(17, 109, 255, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, #0c1620 0%, #101921 100%);
    border-bottom: 1px solid var(--border);
}

.blog-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 14px;
}

.blog-hero p { color: var(--text-muted); max-width: 640px; font-size: 1.08rem; }

.blog-body { padding: 72px 0 96px; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
    padding: 32px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
    color: inherit;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--surface-2);
    color: inherit;
}

.post-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.post-meta .post-category {
    color: var(--accent);
    font-weight: 600;
}

.post-card h2 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 14px;
    color: var(--text);
}

.post-card p {
    color: var(--text-muted);
    margin: 0 0 18px;
    font-size: 0.95rem;
    flex: 1;
}

.post-card .read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tablet (720-960): 2-col posts. Phone (≤720): 1 col handled below. */
@media (max-width: 960px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .posts-grid { grid-template-columns: 1fr; }
    .blog-body { padding: 56px 0 72px; }
}

/* ---------- Article (blog post page) ---------- */
.article-hero {
    padding: 140px 0 50px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(17, 109, 255, 0.16) 0%, transparent 55%),
        linear-gradient(180deg, #0c1620 0%, #101921 100%);
    border-bottom: 1px solid var(--border);
}

.article-hero .container { max-width: 780px; }

.article-hero .post-meta { margin-bottom: 22px; }

.article-hero h1 {
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    margin-bottom: 18px;
}

.article-hero .lede {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.article-body {
    padding: 64px 0 96px;
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
}

.article-content p,
.article-content li {
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.55rem;
    margin: 48px 0 16px;
    color: var(--text);
}

.article-content h3 {
    font-size: 1.2rem;
    margin: 32px 0 12px;
    color: var(--text);
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
    list-style: disc;
}
.article-content ol { list-style: decimal; }

.article-content li { margin-bottom: 10px; }

.article-content blockquote {
    margin: 28px 0;
    padding: 20px 28px;
    border-left: 3px solid var(--accent);
    background: rgba(17, 109, 255, 0.06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text);
    font-style: italic;
}

.article-content blockquote p { margin: 0; color: var(--text); }

.article-content strong { color: var(--text); }

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
    padding: 2px 6px;
    background: rgba(252, 249, 226, 0.08);
    border-radius: 4px;
    color: var(--text);
}

.article-footer {
    max-width: 720px;
    margin: 64px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.site-footer {
    background: #060912;
    border-top: 1px solid var(--border);
    padding: 64px 0 24px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 56px;
    margin-bottom: 48px;
}

.footer-brand .brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text);
}
.footer-brand p {
    margin-top: 12px;
    font-size: 0.93rem;
    max-width: 320px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-cols h4 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.footer-cols a {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 2;
}
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.86rem;
    color: var(--text-dim);
}

.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

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

/* Tablet (≤960): asymmetric two-column layouts stack;
   service-grid stays 2 col, pillars stay 3 col */
@media (max-width: 960px) {
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .nav-links { gap: 24px; }
    h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
}

/* Phone (≤720): everything stacks; mobile nav appears */
@media (max-width: 720px) {
    .pillars { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }

    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 24px;
        background: rgba(10, 14, 26, 0.98);
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(12px);
        /* Menu lives inside the header's stacking context, so a slide-down
           animation passes the menu visibly OVER the header on its way in.
           Fade + tiny drop in place avoids the artifact entirely — menu
           appears at its target position (under the header) without
           transitioning through the header area. */
        opacity: 0;
        transform: translateY(-8px);
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity .22s var(--ease),
            transform .22s var(--ease),
            visibility 0s linear .22s;
    }
    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        transition:
            opacity .22s var(--ease),
            transform .22s var(--ease),
            visibility 0s linear 0s;
    }
    .nav-links a { width: 100%; padding: 14px 0; }
    /* Higher-specificity rule so the CTA's padding/alignment beats .nav-links a */
    .nav-links .nav-cta {
        width: 100%;
        padding: 14px 22px;
        margin-top: 12px;
        display: flex;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .hero { padding: 130px 0 72px; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-actions { margin-bottom: 56px; }

    .approach, .services, .about, .contact { padding: 72px 0; }
    .section-head { margin-bottom: 40px; }
    .hero-stats { grid-template-columns: 1fr; gap: 18px; }
    .contact-form { padding: 24px; }
    .about-card { padding: 28px 24px; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand p { max-width: 100%; }

    /* Larger touch targets */
    .btn { padding: 14px 22px; }

    /* On small screens drop the frosted-glass header — too-strong content
       behind the header (hero CTA, headlines) reads through it badly.
       Solid background keeps everything crisp as the page scrolls. */
    .site-header {
        background: rgba(252, 250, 236, 0.97);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .site-header.scrolled {
        background: var(--bg);
        border-bottom-color: var(--border);
    }

    /* When the TEST banner is showing it shifts the header down to top:32px,
       so the mobile menu (top:72px) needs to start 32px lower too,
       otherwise its top items hide behind the header. */
    html.is-nonprod .nav-links { top: 104px; }
}

/* Small phone (≤480): tighter horizontal padding, smaller display type */
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
    h1 { font-size: clamp(2rem, 7vw, 2.6rem); }
    .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1.05; }
    .hero-sub { font-size: 1rem; }
    .hero { padding: 120px 0 56px; }
    .cta-band { padding: 32px 20px; }
    .cta-band h3 { font-size: 1.3rem; }
    .approach, .services, .about, .contact { padding: 56px 0; }
    .pillar,
    .service-card,
    .deliverable,
    .phase,
    .outcome,
    .post-card { padding: 24px 20px; }
    .article-content p,
    .article-content li { font-size: 1rem; }
}

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


/* ============================================================
   Hybrid theme overrides
   Light body, light footer, light non-home heroes.
   Home hero keeps its dark video treatment.
   ============================================================ */

/* ---------- Hero stays dark — re-light the text inside ---------- */
.hero { color: #FCF9E2; }
.hero .hero-title { color: #FCF9E2; }
.hero .hero-sub { color: rgba(252, 249, 226, 0.85); }
.hero .stat-num { color: #FCF9E2; }
.hero .stat-label { color: rgba(252, 249, 226, 0.65); }
.hero .hero-stats { border-color: rgba(252, 249, 226, 0.18); }
.hero .btn-ghost {
    color: #FCF9E2;
    border-color: rgba(252, 249, 226, 0.25);
    background: rgba(252, 249, 226, 0.04);
}
.hero .btn-ghost:hover {
    color: #FCF9E2;
    background: rgba(252, 249, 226, 0.10);
    border-color: rgba(252, 249, 226, 0.45);
}

/* ---------- Header ---------- */
.site-header {
    background: rgba(252, 250, 236, 0.72);
    border-bottom-color: transparent;
}
.site-header.scrolled {
    background: rgba(252, 250, 236, 0.94);
    border-bottom-color: var(--border);
}
.nav-toggle span { background: var(--text); }
.brand { color: var(--text); }
/* Logo is white — invert to dark so it shows on the light header */
.site-header .brand-logo { filter: brightness(0) saturate(100%); opacity: 0.92; }

@media (max-width: 720px) {
    .nav-links {
        background: rgba(252, 250, 236, 0.98);
        border-bottom-color: var(--border);
    }
}

/* ---------- Section backgrounds ---------- */
.services { background: var(--bg-elev); }
.contact  { background: var(--bg-elev); }

/* ---------- Cards: white with soft shadow ---------- */
.pillar,
.service-card,
.deliverable,
.phase,
.post-card,
.contact-form {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 1px 2px rgba(16, 25, 33, 0.04), 0 8px 24px rgba(16, 25, 33, 0.05);
}

.pillar:hover,
a.service-card:hover,
.deliverable:hover,
.post-card:hover {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 2px 6px rgba(16, 25, 33, 0.06), 0 16px 36px rgba(17, 109, 255, 0.10);
}

/* About card on home */
.about-card {
    background: linear-gradient(160deg, #FFFFFF 0%, #F4F0DC 100%);
    border-color: var(--border);
    box-shadow: 0 1px 2px rgba(16, 25, 33, 0.04), 0 12px 32px rgba(16, 25, 33, 0.07);
}

/* Outcomes */
.outcome {
    background: linear-gradient(160deg, #FFFFFF 0%, #F4F0DC 100%);
    border-color: var(--border);
    box-shadow: 0 1px 2px rgba(16, 25, 33, 0.04), 0 12px 28px rgba(16, 25, 33, 0.06);
}

/* ---------- Ghost buttons (outside hero) ---------- */
.btn-ghost {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(16, 25, 33, 0.02);
}
.btn-ghost:hover {
    background: rgba(16, 25, 33, 0.06);
    color: var(--text);
    border-color: var(--accent);
}

/* ---------- Form ---------- */
.form-row input,
.form-row select,
.form-row textarea {
    background-color: #FFFFFF;
    border-color: var(--border-strong);
    color: var(--text);
}
.form-row select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a5563' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* ---------- Service / Blog / Article / Legal heroes ---------- */
.service-hero,
.blog-hero,
.article-hero,
.legal-hero {
    background:
        radial-gradient(ellipse at 15% 0%, rgba(17, 109, 255, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(0, 58, 150, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
    border-bottom-color: var(--border);
}

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, rgba(17, 109, 255, 0.10) 0%, rgba(0, 58, 150, 0.12) 100%);
    border-color: var(--border);
    box-shadow: 0 12px 32px rgba(17, 109, 255, 0.08);
}

/* Article body */
.article-content blockquote {
    background: rgba(17, 109, 255, 0.06);
}
.article-content code {
    background: rgba(16, 25, 33, 0.06);
}

/* Service card top accent: pop slightly darker blue on light */
.service-card::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-elev);
    border-top-color: var(--border);
}
.site-footer .brand-logo { filter: brightness(0) saturate(100%); opacity: 0.85; }
