/* ========================================
   Areldo — Corporate Masterbrand Site
   Source of truth: /branding/areldo-brand-identity.md
   ======================================== */

:root {
    /* Primary palette */
    --navy: #0B2545;
    /* Deep Current Blue — authority, headlines, dark surfaces */
    --navy-600: #13315C;
    /* Current Blue 600 — hover states */
    --navy-900: #061527;
    /* Darkest navy — hero base, deep scrim */
    --amber: #F5A623;
    /* Volt Amber — energy, CTAs, current line. Max ~10% of any layout */
    --cloud: #F8FAFC;
    /* Cloud White — default background */
    --graphite: #1F2933;
    /* body text on light backgrounds */

    /* Secondary palette */
    --sky: #DCE9F7;
    /* info surfaces, table stripes */
    --green: #1E9E6A;
    /* positive metrics, confirmations */
    --red: #D64545;
    /* errors, destructive actions only */
    --sand: #F3EDE3;
    /* editorial warmth blocks */
    --line: #E2E8F0;
    /* borders */

    /* KassleFlow's own palette — used ONLY inside its portfolio card (§5.8) */
    --kf-forest: #1A3D2B;
    --kf-cream: #FAF7F2;

    --text-secondary: #64748B;
    --text-muted: #94A3B8;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-card: 0 12px 32px rgba(11, 37, 69, 0.1);

    --section-padding: 6.5rem 0;
    --container-max: 1180px;
    --nav-height: 76px;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --transition: all 0.2s ease-out;
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--graphite);
    background: var(--cloud);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-wrap: pretty;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--navy);
}

/* Sentence case everywhere — headlines and buttons alike (§4.4/§8.2) */
h1, h2, h3, h4, .btn, .badge, .nav-links a {
    text-transform: none;
}

/* ========================================
   Accessibility
   ======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

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

/* ========================================
   Buttons — Space Grotesk voice, Inter body (§5.4 UI type)
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.65rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Primary — amber fill, graphite text (never white-on-amber, §5.3) */
.btn-primary {
    background: var(--amber);
    color: var(--graphite);
}

.btn-primary:hover {
    background: #E4961A;
    transform: translateY(-1px);
}

/* Secondary — white fill, navy text, slate border */
.btn-secondary {
    background: #FFFFFF;
    color: var(--navy);
    border-color: #CBD5E1;
}

.btn-secondary:hover {
    border-color: var(--navy);
    background: var(--sky);
}

/* Text/ghost — underlined navy-600 */
.btn-text {
    background: transparent;
    color: var(--navy-600);
    text-decoration: underline;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.btn-text:hover {
    color: var(--navy);
}

.btn-block {
    width: 100%;
}

/* On dark (hero) surfaces */
.btn-outline-light {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(248, 250, 252, 0.3);
}

.btn-outline-light:hover {
    border-color: #FFFFFF;
    background: rgba(248, 250, 252, 0.08);
}

/* ========================================
   Badges
   ======================================== */
.badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--sky);
    color: var(--navy-600);
}

.badge-success {
    background: #E4F5EC;
    color: #177A52;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.15rem 0;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    height: 26px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-links a {
    color: var(--graphite);
    font-weight: 500;
    font-size: 0.9375rem;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cta-mobile {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    padding: calc(var(--nav-height) + 6rem) 0 5rem;
    background: var(--navy-900);
    color: #FFFFFF;
    overflow: hidden;
}

/* ---------- Hero background "video" — ambient current lines + drifting light ---------- */
.hero-video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-video-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hv-line {
    stroke: rgba(248, 250, 252, 0.14);
    stroke-width: 1.5;
    stroke-dasharray: 2 14;
    animation: hv-flow 26s linear infinite;
}

.hv-line:nth-child(2) { animation-duration: 32s; animation-delay: -4s; stroke: rgba(245, 166, 35, 0.16); }
.hv-line:nth-child(3) { animation-duration: 22s; animation-delay: -9s; }
.hv-line:nth-child(4) { animation-duration: 36s; animation-delay: -14s; stroke: rgba(245, 166, 35, 0.12); }
.hv-line:nth-child(5) { animation-duration: 28s; animation-delay: -6s; }

.hv-node {
    fill: var(--amber);
    animation: hv-pulse 4.5s ease-in-out infinite;
}

.hv-node:nth-child(7) { animation-delay: -1s; }
.hv-node:nth-child(8) { animation-delay: -2.2s; }
.hv-node:nth-child(9) { animation-delay: -3.1s; }
.hv-node:nth-child(10) { animation-delay: -0.4s; }

@keyframes hv-flow {
    to { stroke-dashoffset: -640; }
}

@keyframes hv-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.9; }
}

.hero-video-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.28;
    animation: hv-drift 34s ease-in-out infinite;
}

.hero-video-orb-1 {
    width: 460px;
    height: 460px;
    top: -120px;
    right: -80px;
    background: var(--amber);
    opacity: 0.16;
    animation-duration: 30s;
}

.hero-video-orb-2 {
    width: 380px;
    height: 380px;
    bottom: -160px;
    left: 10%;
    background: var(--navy-600);
    opacity: 0.35;
    animation-duration: 38s;
    animation-delay: -10s;
}

.hero-video-orb-3 {
    width: 300px;
    height: 300px;
    top: 30%;
    right: 20%;
    background: #F5A623;
    opacity: 0.08;
    animation-duration: 26s;
    animation-delay: -18s;
}

@keyframes hv-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.08); }
}

.hero-video-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
            rgba(0, 0, 0 , 0.97) 0%, 
            rgba(9, 25, 43 , 0.90) 42%, 
            rgba(6, 21, 39, 0.68) 70%, 
            rgba(0, 18, 40 , 0.89) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 620px;
    margin: 0;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.85rem;
    background: rgba(245, 166, 35, 0.14);
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--amber);
    margin-bottom: 1.75rem;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--amber);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: normal;
    color: var(--amber);
}

.hero-subtitle {
    font-size: 1.1875rem;
    color: rgba(248, 250, 252, 0.75);
    margin-bottom: 2.25rem;
    max-width: 540px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-proof {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    color: rgba(248, 250, 252, 0.65);
    font-size: 0.9375rem;
}

.hero-proof svg {
    color: var(--amber);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========================================
   Section Header
   ======================================== */
.section-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 3.5rem;
}

.section-eyebrow {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.section-eyebrow .n {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--amber);
    letter-spacing: 0.06em;
}

.section-eyebrow .label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.section-header-light .section-title,
.section-header-light .n {
    color: #FFFFFF;
}

.section-header-light .section-subtitle {
    color: rgba(248, 250, 252, 0.7);
}

/* ========================================
   The Current Line — signature device (§5.7)
   ======================================== */
.current-line-section {
    padding: var(--section-padding);
    background: var(--navy);
    color: #FFFFFF;
}

.current-line-flows {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.cl-flow {
    display: flex;
    align-items: center;
    gap: 0;
}

.cl-node {
    flex: none;
    text-align: left;
}

.cl-node .lb {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7D96B4;
    font-weight: 600;
}

.cl-node .vl {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.875rem;
    letter-spacing: -0.02em;
    margin-top: 0.4rem;
    font-variant-numeric: tabular-nums;
}

.cl-node.out .vl {
    color: var(--amber);
}

.cl-wire {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, #2E4C74, var(--amber));
    margin: 1.6rem 1.75rem 0;
    position: relative;
    min-width: 60px;
}

.cl-wire::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -4.5px;
    width: 12px;
    height: 12px;
    background: var(--amber);
    border-radius: 1px;
}

.current-line-note {
    text-align: center;
    color: #B9CBE0;
    font-size: 0.9375rem;
    line-height: 1.65;
    max-width: 52ch;
    margin: 3rem auto 0;
}

/* ========================================
   Pillars (message house)
   ======================================== */
.pillars-section {
    padding: var(--section-padding);
    background: #FFFFFF;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.pillar-card {
    padding: 2rem;
    background: var(--cloud);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: var(--transition);
}

.pillar-card:hover {
    border-color: var(--amber);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--sky);
    color: var(--navy);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.pillar-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.85rem;
}

.pillar-card ul {
    list-style: none;
}

.pillar-card li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 1.1rem;
    position: relative;
}

.pillar-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--amber);
}

/* ========================================
   Portfolio / Products
   ======================================== */
.portfolio-section {
    padding: var(--section-padding);
    background: var(--cloud);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 980px;
    margin: 0 auto;
}

.product-card {
    padding: 2.25rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

/* KassleFlow keeps its OWN palette inside its card only — §5.8 */
.product-card-kassleflow {
    background: var(--kf-cream);
    border-color: #E7DFD3;
}

.product-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    background: #E4F5EC;
    color: #177A52;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1E9E6A;
}

.product-status-next {
    background: var(--sky);
    color: var(--navy-600);
}

.kf-lockup {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 1.5rem;
}

.product-mark-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1.5px dashed var(--line);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.product-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-card-kassleflow p {
    color: #4A5A50;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--cloud);
    border: 1px solid var(--line);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
}

.product-card-kassleflow .product-tag {
    background: #F1ECE1;
    border-color: #E7DFD3;
    color: #5C6B60;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
}

.product-card-kassleflow .product-link {
    color: var(--kf-forest);
}

.product-link:hover {
    color: var(--navy-600);
}

/* ========================================
   Audience Section
   ======================================== */
.audience-section {
    padding: var(--section-padding);
    background: #FFFFFF;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.audience-card {
    padding: 2rem;
    background: var(--cloud);
    border-radius: 12px;
}

.audience-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.75rem;
}

.audience-card .pain {
    font-size: 0.875rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.audience-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Consulting Section
   ======================================== */
.consulting-section {
    padding: var(--section-padding);
    background: var(--sand);
}

.consulting-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.consulting-copy .section-eyebrow {
    justify-content: flex-start;
}

.consulting-copy .section-header {
    text-align: left;
    margin: 0 0 1.5rem;
    max-width: none;
}

.consulting-copy p {
    color: #6B5F4F;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.consulting-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.consulting-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #5C5140;
    font-weight: 500;
}

.consulting-list svg {
    color: var(--green);
    flex-shrink: 0;
}

.consulting-visual {
    background: #FFFFFF;
    border: 1px solid #E7DFD3;
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: var(--shadow-card);
}

.consulting-visual h4 {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.consulting-step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.consulting-step:first-of-type {
    border-top: none;
}

.consulting-step .num {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--amber);
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.consulting-step strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--navy);
    margin-bottom: 0.2rem;
}

.consulting-step span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========================================
   Values Section
   ======================================== */
.values-section {
    padding: var(--section-padding);
    background: #FFFFFF;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.value-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.value-card .num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    letter-spacing: 0.06em;
}

.value-card h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.6rem;
}

.value-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 6rem 0;
    background: var(--navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-rail {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: var(--amber);
}

.cta-content h2 {
    font-size: 2.25rem;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.cta-content p {
    font-size: 1.0625rem;
    color: rgba(248, 250, 252, 0.7);
    margin-bottom: 2.25rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 4.5rem 0 2.25rem;
    background: var(--graphite);
    color: #94A3B8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-brand .logo svg {
    height: 24px;
}

.footer-brand p {
    color: #94A3B8;
    margin-top: 1.25rem;
    max-width: 300px;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-tagline {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    color: #FFFFFF;
}

.footer-tagline em {
    font-style: normal;
    color: var(--amber);
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: #94A3B8;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-bottom {
    padding-top: 2.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748B;
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ========================================
   Contact Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 37, 69, 0.65);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(11, 37, 69, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--sky);
    color: var(--navy);
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-content > p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 0.9375rem;
}

.contact-form .form-group {
    margin-bottom: 1.15rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.875rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    background: var(--cloud);
    color: var(--graphite);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.contact-form textarea {
    resize: vertical;
    min-height: 90px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.16);
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .pillars-grid,
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 1rem;
    }

    .consulting-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .consulting-copy .section-header,
    .consulting-copy .section-eyebrow {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .pillars-grid,
    .portfolio-grid,
    .audience-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .cl-flow {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cl-wire {
        width: 3px;
        height: 40px;
        margin: 0 0 0 8px;
        background: linear-gradient(180deg, #2E4C74, var(--amber));
    }

    .cl-wire::after {
        right: -4.5px;
        top: auto;
        bottom: -1px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
