/*
   Puerta Diaz Engineering — Concept B "Precision Dark"
   Steel-blue / graphite design system
   (style.css is kept untouched for the blog pages)
*/

:root {
    /* Surfaces */
    --bg: #0A0E13;
    --bg-2: #0E131A;
    --surface: #121922;
    --surface-2: #18212C;
    --glass: rgba(22, 30, 40, 0.55);

    /* Brand — taken from the logo */
    --accent: #5AA9D6;
    --accent-strong: #3E8DB5;
    --accent-soft: #9CCFEA;
    --steel: #C5CFD9;
    --accent-glow: rgba(90, 169, 214, 0.18);

    /* Text */
    --text: #F2F5F8;
    --text-muted: #9AA7B4;
    --text-dim: #66727F;

    /* Lines */
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.13);
    --line-accent: rgba(90, 169, 214, 0.35);

    /* Type */
    --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Layout */
    --container: 1280px;
    --header-h: 104px;
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #061018; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
p { color: var(--text-muted); }

.grad {
    background: linear-gradient(100deg, var(--accent-soft) 0%, var(--accent) 45%, var(--accent-strong) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--accent);
}

.lead { font-size: 1.15rem; max-width: 60ch; line-height: 1.7; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }
.section { padding: 7.5rem 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
    margin-bottom: 3.5rem;
}
.section-head .lead { margin-top: 1rem; }

/* Blueprint grid background */
.blueprint {
    background-image:
        linear-gradient(rgba(90, 169, 214, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 169, 214, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #04121C;
    box-shadow: 0 10px 30px -10px rgba(90, 169, 214, 0.6), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(90, 169, 214, 0.75), inset 0 1px 0 rgba(255,255,255,.3); }

.btn-ghost {
    border: 1px solid var(--line-strong);
    color: var(--text);
    background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); background: rgba(90,169,214,0.06); }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.875rem; }

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background .4s, border-color .4s, backdrop-filter .4s, height .3s ease;
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(10, 14, 19, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--line);
    height: calc(var(--header-h) - 16px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo img { height: 96px; width: auto; mix-blend-mode: lighten; transition: height .3s ease; }
.header.scrolled .logo img { height: 76px; }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav-list { display: flex; gap: 2rem; }
.nav-list a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.3rem 0;
    transition: color .25s;
}
.nav-list a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.nav-list a:hover, .nav-list a.active { color: var(--text); }
.nav-list a:hover::after, .nav-list a.active::after { transform: scaleX(1); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: .3s var(--ease);
}
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: min(100vh, 960px);
    padding: calc(var(--header-h) + 3rem) 0 8rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 78% 30%, rgba(90,169,214,0.16) 0%, transparent 60%),
        radial-gradient(40% 50% at 10% 90%, rgba(62,141,181,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    /* fade the blueprint grid at the bottom */
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 220px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    gap: 4.5rem;
    align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.5rem; }
.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-sub {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.cta-sub::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.hero-tags li {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-photo-wrap {
    position: relative;
    width: 100%;
}
.hero-photo {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(90,169,214,0.08);
    aspect-ratio: 1 / 1.02;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10,14,19,0.55) 100%);
}
/* corner brackets — technical drawing feel */
.hero-photo-wrap::before, .hero-photo-wrap::after {
    content: '';
    position: absolute;
    width: 42px; height: 42px;
    border: 1.5px solid var(--accent);
    opacity: .7;
    z-index: 3;
}
.hero-photo-wrap::before { top: -14px; left: -14px; border-right: 0; border-bottom: 0; }
.hero-photo-wrap::after { bottom: -14px; right: -14px; border-left: 0; border-top: 0; }

.hero-badge-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
    position: relative;
    z-index: 4;
}
.float-card {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.35rem;
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    box-shadow: 0 20px 50px -15px rgba(0,0,0,0.7);
    animation: floatBadge 5s ease-in-out infinite;
}
.float-card .fc-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(90,169,214,0.15);
    border: 1px solid var(--line-accent);
    color: var(--accent-soft);
    flex-shrink: 0;
}
.float-card .fc-icon svg { width: 20px; height: 20px; }
.float-card strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.float-card small { color: var(--text-muted); font-size: 0.78rem; }
.fc-1 {
    white-space: nowrap;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ---------- Stats strip ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
    overflow: hidden;
}
.stat { padding: 2.25rem 2rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.6rem;
}
.stat-num .grad { display: inline; }
.stat p { font-size: 0.9rem; }

/* ---------- Coached Startups Marquee ---------- */
.section-startups {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(14, 19, 26, 0.75) 50%, var(--bg) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.startups-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.startups-header .eyebrow {
    justify-content: center;
    margin: 0 auto 1.25rem;
    text-indent: 0.18em;
}

.startups-header .eyebrow::before {
    display: none;
}

.startups-header h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 0.85rem;
}

.startups-header .lead {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin: 0 auto;
}

.startups-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1.25rem 0 1.75rem;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: marqueeScroll 65s linear infinite;
}

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

.marquee-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem;
    flex-shrink: 0;
}

.startup-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    width: 168px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s var(--ease);
}

.startup-logo-box {
    width: 100%;
    height: 76px;
    background: #FFFFFF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.startup-logo-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: transform 0.3s var(--ease);
}

.startup-name {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.25s ease;
}

.startup-card:hover .startup-logo-box {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(90, 169, 214, 0.22);
}

.startup-card:hover .startup-logo-box img {
    transform: scale(1.04);
}

.startup-card:hover .startup-name {
    color: var(--accent-soft);
}

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

@media (max-width: 768px) {
    .section-startups {
        padding: 3.5rem 0 2.5rem;
    }
    .startups-header {
        margin-bottom: 2rem;
    }
    .startup-card {
        width: 140px;
        gap: 0.6rem;
    }
    .startup-logo-box {
        height: 64px;
        padding: 10px 14px;
        border-radius: 10px;
    }
    .startup-name {
        font-size: 0.75rem;
    }
    .marquee-group {
        gap: 1.1rem;
        padding-right: 1.1rem;
    }
    .marquee-track {
        animation-duration: 50s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        overflow-x: auto;
    }
}

/* ---------- Institutional Accelerators & Programs ---------- */
.section-programs {
    padding: 4.5rem 0 5rem;
    position: relative;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.programs-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.programs-head .eyebrow {
    justify-content: center;
    margin: 0 auto 1.25rem;
    text-indent: 0.18em;
}

.programs-head .eyebrow::before {
    display: none;
}

.programs-head h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 0.85rem;
}

.programs-head .lead {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin: 0 auto;
}

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

.program-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-accent);
    box-shadow: 0 12px 32px var(--accent-glow);
}

.program-logo-box {
    width: 100%;
    height: 72px;
    background: #FFFFFF;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s var(--ease);
}

.program-card:hover .program-logo-box {
    transform: scale(1.02);
}

.program-logo-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.program-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.program-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
    letter-spacing: -0.015em;
}

.program-badge {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(90, 169, 214, 0.12);
    border: 1px solid rgba(90, 169, 214, 0.28);
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.program-body p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .section-programs {
        padding: 3.5rem 0 3.5rem;
    }
    .programs-head {
        margin-bottom: 2rem;
    }
}

/* ---------- Audience ---------- */
.audience {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.audience-item {
    padding: 1.75rem;
    border-left: 2px solid var(--accent);
    background: linear-gradient(90deg, rgba(90,169,214,0.06), transparent 70%);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.audience-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.audience-item p { font-size: 0.93rem; }

/* ---------- Services ---------- */
.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.service {
    position: relative;
    padding: 2.5rem;
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 55%);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.service::before {
    /* mouse-follow spotlight */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(90,169,214,0.12), transparent 45%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}
.service:hover { transform: translateY(-4px); border-color: var(--line-accent); box-shadow: 0 30px 70px -30px rgba(90,169,214,0.35); }
.service:hover::before { opacity: 1; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.75rem; }
.service-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: rgba(90,169,214,0.1);
    border: 1px solid var(--line-accent);
    color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }
.service-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); }
.service h3 { font-size: 1.45rem; margin-bottom: 1.25rem; }
.service li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    color: var(--text-muted);
    font-size: 0.96rem;
}
.service li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.68em;
    width: 8px; height: 1.5px;
    background: var(--accent);
}

/* ---------- Work / Projects ---------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}
.case {
    grid-column: span 3;
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.case.wide { grid-column: span 6; }
.case:hover, .case:focus-visible {
    transform: translateY(-6px);
    border-color: var(--line-accent);
    box-shadow: 0 40px 80px -35px rgba(90,169,214,0.4);
    outline: none;
}
.case-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0B0F14; }
.case.wide .case-media { aspect-ratio: 16 / 10; }
.case-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease), filter .6s;
    filter: saturate(0.9) brightness(0.92);
}
.case:hover .case-media img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.case-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(18,25,34,0.95) 100%);
}
.case-code { display: none; }
.case-arrow {
    position: absolute;
    top: 1rem; right: 1rem;
    z-index: 2;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(10,14,19,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line-strong);
    transition: background .35s, transform .45s var(--ease), color .35s;
}
.case-arrow svg { width: 16px; height: 16px; }
.case:hover .case-arrow { background: var(--accent); color: #04121C; transform: rotate(-45deg); border-color: var(--accent); }
.case-body { padding: 1.5rem 1.6rem 1.75rem; margin-top: -2.5rem; position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; }
.chip {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(90,169,214,0.12);
    border: 1px solid var(--line-accent);
    margin-bottom: 0.9rem;
}
.case h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.case.wide h3 { font-size: 1.55rem; }
.case-result {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.6rem;
}
.case-result b { color: var(--accent); font-weight: 600; white-space: nowrap; }
.case-details { display: none; }

/* Case modal */
.case-modal {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: min(1100px, 94vw);
    width: 100%;
    margin: auto;
    color: var(--text);
}
.case-modal::backdrop { background: rgba(4, 7, 10, 0.78); backdrop-filter: blur(6px); }
.case-modal[open] { animation: modalIn .5s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    overflow: hidden;
    max-height: 90vh;
}
.modal-media { background: #0B0F14; min-height: 100%; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 2.75rem; overflow-y: auto; position: relative; }
.modal-body h3 { font-size: 1.9rem; margin-bottom: 1.25rem; }
.modal-body p { margin-bottom: 1.5rem; }
.modal-body ul { margin-bottom: 1.75rem; }
.modal-body li { position: relative; padding-left: 1.5rem; margin-bottom: 0.65rem; color: var(--text-muted); }
.modal-body li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 8px; height: 1.5px; background: var(--accent); }
.modal-result {
    padding: 1.1rem 1.25rem;
    border-radius: var(--r-md);
    background: rgba(90,169,214,0.08);
    border: 1px solid var(--line-accent);
}
.modal-result small { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }
.modal-close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: grid; place-items: center;
    transition: background .3s, border-color .3s;
}
.modal-close:hover { background: rgba(255,255,255,0.06); border-color: var(--accent); }
.modal-close svg { width: 16px; height: 16px; }

/* ---------- Partner ---------- */
.partner {
    position: relative;
    border-radius: 28px;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(90,169,214,0.14) 0%, transparent 60%),
        linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
    padding: 4.5rem 4rem;
    overflow: hidden;
}
.partner-head { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.partner-head .eyebrow::after { content: ''; width: 22px; height: 1px; background: var(--accent); }
.partner-head .lead { margin: 1rem auto 0; }

.partner-link {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    max-width: 820px;
    margin: 0 auto 3.5rem;
}
.partner-logo {
    height: 120px;
    border-radius: var(--r-md);
    border: 1px solid var(--line-strong);
    background: rgba(10,14,19,0.6);
    display: grid;
    place-items: center;
    padding: 1.25rem 1.75rem;
    transition: border-color .35s, transform .35s var(--ease);
}
.partner-logo:hover { border-color: var(--line-accent); transform: translateY(-3px); }
.partner-logo img { max-height: 76px; width: auto; object-fit: contain; }
.partner-logo.pde img { max-height: 84px; }
.partner-connector {
    position: relative;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.partner-connector::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent-soft);
    box-shadow: 0 0 16px 4px var(--accent);
    transform: translate(-50%, -50%);
    animation: pulseTravel 2.6s ease-in-out infinite;
}
.partner-connector span {
    position: absolute;
    top: -2rem; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    white-space: nowrap;
}
@keyframes pulseTravel {
    0% { left: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.split-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 980px;
    margin: 0 auto 2.5rem;
}
.role {
    padding: 1.5rem 1.75rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: rgba(10,14,19,0.4);
}
.role small { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.role h4 { font-size: 1.1rem; margin: 0.4rem 0 0.5rem; }
.role p { font-size: 0.92rem; }

.capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.capability {
    padding: 1.75rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: rgba(22,30,40,0.5);
    transition: border-color .35s, transform .35s var(--ease);
}
.capability:hover { border-color: var(--line-accent); transform: translateY(-3px); }
.capability .service-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1.1rem; }
.capability .service-icon svg { width: 20px; height: 20px; }
.capability h4 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.capability p { font-size: 0.9rem; }

.cap-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.cap-tags li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
}
.partner-cta { text-align: center; }

/* ---------- How We Work Together / Engagement Models ---------- */
.engagement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: stretch;
}
.engagement-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem 2.25rem;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(22, 30, 40, 0.7) 0%, rgba(15, 20, 27, 0.95) 100%);
    border: 1px solid var(--line-strong);
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, background .35s;
}
.engagement-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(28, 44, 60, 0.85) 0%, rgba(15, 22, 30, 0.98) 100%);
    box-shadow: 0 16px 36px -10px rgba(90, 169, 214, 0.25);
}
.engagement-badge {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(90, 169, 214, 0.1);
    border: 1px solid var(--line-accent);
    color: var(--accent);
    margin-bottom: 1.25rem;
    transition: background .3s, border-color .3s, color .3s;
}
.engagement-card:hover .engagement-badge {
    background: var(--accent);
    color: #0B0F14;
    border-color: var(--accent);
    font-weight: 700;
}
.engagement-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    line-height: 1.25;
}
.engagement-duration {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-soft);
    margin-bottom: 1.1rem;
}
.engagement-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.55;
}
.engagement-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}
.engagement-list li {
    font-size: 0.88rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.45;
}
.engagement-list li svg {
    width: 17px;
    height: 17px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.engagement-fit {
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.45;
}
.engagement-fit strong {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.3rem;
}
.engagement-card .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s;
}
.engagement-card:hover .btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #04121C;
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(90, 169, 214, 0.6), inset 0 1px 0 rgba(255,255,255,.25);
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 5rem;
    align-items: start;
}
.about-text h2 { margin-bottom: 0.4rem; }
.about-role { color: var(--accent); font-weight: 600; font-size: 1.1rem; margin-bottom: 2rem; }
.about-text p + p { margin-top: 1.1rem; }
.about-text .btn { margin-top: 2.25rem; }

.about-panel {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    border-radius: var(--r-lg);
    border: 1px solid var(--line-strong);
    background: linear-gradient(170deg, var(--surface-2), var(--surface));
    overflow: hidden;
}
.about-panel-photo { aspect-ratio: 4 / 3; overflow: hidden; background: #0B0F14; }
.about-panel-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about-panel-body { padding: 1.75rem 2rem 2rem; }
.about-panel h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem; font-weight: 500; }
.cred-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.cred-list li:last-child { border-bottom: 0; }
.cred-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; }
.industry-tags span {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(90,169,214,0.08);
    border: 1px solid var(--line-accent);
    color: var(--accent-soft);
}

/* ---------- Ecosystem & Track Record ---------- */
.eco { padding: 6rem 0 5rem; border-top: 1px solid var(--line); }
.eco-row + .eco-row { margin-top: 4rem; }
.eco-label {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.eco-label h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.eco-label .count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.eco-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.eco-verified-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.eco-card {
    padding: 1.75rem 1.5rem;
    border-radius: var(--r-md);
    background: linear-gradient(180deg, rgba(22, 30, 40, 0.5) 0%, rgba(15, 20, 27, 0.8) 100%);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: border-color .35s, transform .3s;
}
.eco-card:hover {
    border-color: var(--line-accent);
    transform: translateY(-2px);
}
.eco-card .eco-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}
.eco-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}
.eco-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.eco-domains-wrap {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}
.eco-domains-wrap .lead-sm {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.eco-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}
.eco-domain-pill {
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line-strong);
    font-size: 0.88rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: border-color .25s, color .25s, background .25s;
}
.eco-domain-pill:hover {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(90, 169, 214, 0.05);
}
.eco-domain-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---------- Contact ---------- */
.contact {
    position: relative;
    text-align: center;
    padding: 7rem 2rem;
    border-radius: 28px;
    border: 1px solid var(--line-strong);
    overflow: hidden;
    background:
        radial-gradient(60% 100% at 50% 100%, rgba(90,169,214,0.22) 0%, transparent 65%),
        var(--surface);
}
.contact h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); margin-bottom: 1.25rem; }
.contact .lead { margin: 0 auto 2.5rem; }
.contact .cta-group { justify-content: center; }
.contact-nda {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.75rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--text-muted);
}
.contact-nda svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-nda a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color .2s;
}
.contact-nda a:hover {
    color: var(--accent);
}
.contact-meta { margin-top: 2rem; font-size: 0.88rem; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer { padding: 4rem 0 2.5rem; margin-top: 6rem; border-top: 1px solid var(--line); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 36ch; }
.footer h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.1rem; font-weight: 500; }
.footer li { margin-bottom: 0.55rem; }
.footer li a { color: var(--text-muted); font-size: 0.93rem; transition: color .25s; }
.footer li a:hover { color: var(--accent-soft); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.1s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; gap: 4rem; }
    .hero-visual { max-width: 560px; margin: 0 auto; }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .case, .case.wide { grid-column: span 1; }
    .case.wide .case-media { aspect-ratio: 4 / 3; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-panel { position: static; max-width: 560px; }
    .capabilities { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    :root { --header-h: 84px; }
    .logo img { height: 72px; }
    .menu-toggle { display: inline-flex; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 2rem 1.5rem 2.5rem;
        background: rgba(10,14,19,0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform .5s var(--ease);
    }
    .menu-open .nav { transform: none; }
    .nav-list { flex-direction: column; gap: 1.25rem; }
    .nav-list a { font-size: 1.15rem; }
    .section { padding: 5rem 0; }
    .section-head { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .audience, .services, .split-roles { grid-template-columns: 1fr; }
    .partner { padding: 3rem 1.5rem; }
    .partner-link { grid-template-columns: 1fr; justify-items: center; }
    .partner-logo { width: 100%; }
    .partner-connector { width: 2px; height: 60px; background: linear-gradient(180deg, transparent, var(--accent), transparent); }
    .partner-connector::before { animation: none; left: 50%; top: 50%; }
    .partner-connector span { top: 50%; left: 1.25rem; transform: translateY(-50%); }
    .modal-card { grid-template-columns: 1fr; }
    .modal-media { max-height: 260px; }
    .modal-body { padding: 2rem 1.5rem; }
    .programs, .eco-verified-grid { grid-template-columns: 1fr 1fr; }
    .engagement-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .work-grid, .capabilities { grid-template-columns: 1fr; }
    .eco-verified-grid { grid-template-columns: 1fr; }
    .hero-badge-wrap { margin-top: 1.15rem; }
    .float-card { padding: 0.75rem 1rem; }
    .float-card .fc-icon { width: 34px; height: 34px; }
    .contact { padding: 4.5rem 1.25rem; }
    .contact-nda { flex-direction: column; text-align: center; border-radius: 16px; padding: 1rem; }
}
