:root {
    --bg: #f2f6fb;
    --bg-alt: #e8eff7;
    --text: #1c2534;
    --text-muted: #5f6b7a;
    --primary: #0d3b66;
    --primary-soft: rgba(13, 59, 102, 0.12);
    --accent: #4c93d3;
    --surface: #ffffff;
    --border: rgba(28, 37, 52, 0.08);
    --shadow: 0 20px 60px rgba(13, 59, 102, 0.12);
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
button:hover {
    cursor: pointer;
}

.container {
    width: min(1040px, 88vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
    background: rgba(242, 246, 251, 0.9);
    border-bottom: 1px solid var(--border);
    z-index: 20;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.brand .brand-mark {
    font-size: 1.4rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-muted);
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    border: none;
    background: none;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin-bottom: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0b2f52);
    color: white;
    box-shadow: 0 12px 24px rgba(13, 59, 102, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(13, 59, 102, 0.25);
}

.btn-secondary {
    background: rgba(13, 59, 102, 0.1);
    color: var(--primary);
}

.btn-ghost {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid rgba(13, 59, 102, 0.16);
}

.btn-ghost:hover {
    background: rgba(13, 59, 102, 0.08);
}

.hero {
    position: relative;
    padding: clamp(6rem, 10vw, 7.5rem) 0 clamp(4rem, 8vw, 5.5rem);
    background: linear-gradient(180deg, rgba(244, 248, 253, 0.95) 0%, rgba(235, 243, 252, 0.2) 65%, transparent 100%);
    overflow: hidden;
}

.hero-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(2.5rem, 6vw, 3.5rem);
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    justify-items: flex-start;
}

.hero-main,
.hero-copy {
    display: grid;
    gap: 1.5rem;
    max-width: 540px;
}

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

.hero-main .eyebrow,
.hero-copy .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--accent);
}

.hero-main h1,
.hero-copy h1 {
    font-size: clamp(2.8rem, 6vw, 3.8rem);
    margin: 0 0 0.5rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 34rem;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-visual {
    position: absolute;
    inset: 0;
    --mouseX: 0;
    --mouseY: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: min(720px, 120vw);
    height: min(720px, 120vw);
    border-radius: 50%;
    background: radial-gradient(circle at calc(50% + var(--mouseX) * 18%) calc(50% + var(--mouseY) * 18%), rgba(76, 147, 211, 0.24), rgba(232, 239, 247, 0.04) 70%);
    filter: blur(0.3px);
    opacity: 0.85;
}

.hero-visual::after {
    content: "";
    position: absolute;
    width: min(540px, 90vw);
    height: min(540px, 90vw);
    border-radius: 50%;
    background: radial-gradient(circle at calc(50% + var(--mouseX) * 22%) calc(50% + var(--mouseY) * 22%), rgba(76, 147, 211, 0.18), transparent 72%);
    filter: blur(0.6px);
    opacity: 0.65;
}

.hero-visual .orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.75;
    transition: transform 0.45s ease;
    will-change: transform;
}

.hero-visual .orb-lg {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(76, 147, 211, 0.25), transparent 70%);
    transform: translate(calc(var(--mouseX) * 20px), calc(var(--mouseY) * 20px));
}

.hero-visual .orb-md {
    width: 70%;
    height: 70%;
    top: 18%;
    right: -12%;
    background: radial-gradient(circle, rgba(13, 59, 102, 0.22), transparent 70%);
    transform: translate(calc(var(--mouseX) * -14px), calc(var(--mouseY) * -18px));
}

.hero-visual .orb-sm {
    width: 55%;
    height: 55%;
    bottom: -12%;
    left: -8%;
    background: radial-gradient(circle, rgba(76, 147, 211, 0.32), transparent 70%);
    transform: translate(calc(var(--mouseX) * 14px), calc(var(--mouseY) * 22px));
}

.hero-logo {
    position: relative;
    z-index: 2;
    font-size: clamp(3.8rem, 12vw, 6rem);
    font-weight: 700;
    color: rgba(13, 59, 102, 0.26);
    letter-spacing: 0.35rem;
    text-shadow: 0 18px 45px rgba(13, 59, 102, 0.2);
    transition: transform 0.45s ease;
    transform: translate(calc(var(--mouseX) * 10px), calc(var(--mouseY) * 10px));
}

.hero-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.2rem 2.3rem;
    border-radius: 26px;
    border: 1px solid rgba(13, 59, 102, 0.08);
    box-shadow: 0 18px 42px rgba(13, 59, 102, 0.12);
    display: grid;
    gap: 1.5rem;
    max-width: 420px;
    justify-self: end;
    width: 100%;
}

.hero-panel-title {
    margin: 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-brand-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.brand-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(13, 59, 102, 0.08);
    box-shadow: 0 12px 24px rgba(13, 59, 102, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(13, 59, 102, 0.12);
}

.brand-card-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 59, 102, 0.08);
    color: var(--primary);
    flex-shrink: 0;
}

.brand-card-icon i {
    font-size: 1.5rem;
}

.brand-card-icon--logo {
    background: transparent;
    box-shadow: none;
    border: none;
}

.brand-card-icon--logo img {
    width: 68%;
    height: auto;
    display: block;
    object-fit: contain;
}

.brand-card-icon--logo i {
    color: var(--primary);
}

.brand-card-icon--edgeintel,
.brand-card-icon--edgenext,
.brand-card-icon--careeredge,
.brand-card-icon--equityai {
    background: transparent;
    box-shadow: none;
}

.brand-card-icon--edgeintel img {
    width: 64%;
}

.brand-card-icon--edgenext img,
.brand-card-icon--careeredge img {
    width: 78%;
}

.brand-card-icon--equityai img {
    width: 96%;
}

.brand-card-text h3 {
    margin: 0;
    font-size: 1.1rem;
}

.brand-card-text p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.section-header {
    text-align: center;
    margin-bottom: 3.2rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.6rem);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    margin-inline: auto;
    max-width: 640px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

.two-column {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ecosystem {
    padding: 5.5rem 0;
}

.overview-layout {
    display: grid;
    gap: clamp(2.5rem, 4vw, 3.5rem);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.overview-intro {
    display: grid;
    gap: 1.6rem;
}

.overview-callout {
    border-left: 3px solid rgba(76, 147, 211, 0.35);
    padding-left: 1.6rem;
    display: grid;
    gap: 0.9rem;
}

.overview-callout h3 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.overview-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.overview-insights {
    display: grid;
    gap: 2.2rem;
}

.overview-item {
    display: grid;
    gap: 1rem;
    padding-left: 1.6rem;
    border-left: 2px solid rgba(13, 59, 102, 0.15);
}

.overview-label {
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
}

.overview-subtitle {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.check-list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(76, 147, 211, 0.18);
}

.has-logo-overlay {
    position: relative;
}

.brand-mark-overlay {
    position: absolute;
    bottom: 18px;
    left: 18px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-mark-overlay img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-mark-overlay--edgeintel {
    width: 68px;
}

.brand-mark-overlay--edgenext {
    width: 96px;
}

.brand-mark-overlay--careeredge {
    width: 108px;
}

.brand-mark-overlay--equityai {
    width: 115px;
}

.brand-mark-overlay--icon {
    width: 74px;
    height: 74px;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(0, 0, 0, 0.22);
}

.brand-mark-overlay--icon i {
    font-size: 1.6rem;
}

.footer-services {
    gap: 0.8rem;
}

.footer-service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
}

.footer-service-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.footer-service-logo img {
    width: 82%;
    height: auto;
    display: block;
}

.footer-service-logo--equityai img {
    width: 100%;
}

.footer-service-logo i {
    font-size: 1.1rem;
    color: var(--primary);
}

.services {
    padding: 5.5rem 0;
}

.card-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.services-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: clamp(2.4rem, 4vw, 3.1rem);
    border: 1px solid rgba(13, 59, 102, 0.08);
    box-shadow: 0 20px 48px rgba(13, 59, 102, 0.12);
}

.service-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 22px;
    padding: 2.05rem 2rem;
    border: 1px solid rgba(13, 59, 102, 0.08);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    align-items: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(13, 59, 102, 0.14);
}

.neu-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 59, 102, 0.08);
    color: var(--primary);
}

.neu-icon i {
    font-size: 1.4rem;
}

.service-card .duration {
    font-weight: 600;
    color: var(--accent);
}

.impact {
    padding: 5.5rem 0;
    background: var(--surface);
}

.impact .section-header h2 {
    max-width: 640px;
    margin-inline: auto;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 2.3rem 2.1rem;
    text-align: center;
    border: 1px solid rgba(13, 59, 102, 0.08);
    box-shadow: 0 18px 36px rgba(13, 59, 102, 0.12);
    display: grid;
    gap: 0.9rem;
}

.stat-card h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin: 0;
    letter-spacing: 0.01em;
}

.stat-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.portfolio {
    padding: 5.5rem 0;
}

.filter-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.chip {
    border: none;
    background: rgba(13, 59, 102, 0.08);
    color: var(--primary);
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.chip:hover,
.chip:focus {
    transform: translateY(-1px);
    background: rgba(13, 59, 102, 0.14);
}

.chip.active {
    background: var(--primary);
    color: white;
}

.portfolio-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(13, 59, 102, 0.08);
    box-shadow: 0 18px 34px rgba(13, 59, 102, 0.12);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(13, 59, 102, 0.14);
}

.portfolio-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.portfolio-card h3 {
    margin: 1.75rem 1.75rem 0.6rem;
}

.portfolio-card p {
    margin: 0 1.75rem 1.6rem;
    color: var(--text-muted);
}

.portfolio-card .badge {
    position: absolute;
    background: var(--primary);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 1.2rem;
    box-shadow: 0 8px 18px rgba(13, 59, 102, 0.18);
}

.portfolio-card .btn {
    margin: 0 1.75rem 1.75rem;
    align-self: flex-start;
}

.portfolio-grid {
    gap: 2.25rem;
}

.portfolio-card {
    position: relative;
}

.sub-brands {
    padding: 5rem 0;
    background: var(--surface);
}

.subbrand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.8rem, 4vw, 2.6rem);
}

.subbrand-card {
    background: #ffffff;
    border-radius: 26px;
    border: 1px solid rgba(13, 59, 102, 0.08);
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(13, 59, 102, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.subbrand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(13, 59, 102, 0.14);
}

.subbrand-media {
    position: relative;
    padding: clamp(2rem, 4vw, 2.75rem) clamp(1.2rem, 3vw, 1.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, rgba(13, 59, 102, 0.1), rgba(76, 147, 211, 0.08));
}

.subbrand-media img:not(.subbrand-logo) {
    display: none;
}

.subbrand-media--edgeintel {
    background: radial-gradient(circle at 20% 20%, rgba(76, 147, 211, 0.25), transparent 65%), linear-gradient(155deg, rgba(13, 59, 102, 0.82), rgba(13, 59, 102, 0.35));
}

.subbrand-media--edgenext {
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 60%), linear-gradient(155deg, rgba(54, 148, 255, 0.75), rgba(31, 201, 198, 0.4));
}

.subbrand-media--equityai {
    background: radial-gradient(circle at 25% 25%, rgba(255, 215, 141, 0.3), transparent 60%), linear-gradient(150deg, rgba(55, 63, 72, 0.85), rgba(104, 110, 120, 0.45));
}

.subbrand-media--careeredge {
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.75), transparent 70%), linear-gradient(150deg, rgba(49, 62, 88, 0.75), rgba(194, 158, 142, 0.45));
}

.subbrand-logo {
    position: static;
    width: 240px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(13, 59, 102, 0.16));
    object-fit: contain;
    display: block;
    margin-inline: auto;
}

.subbrand-logo--edgeintel {
    width: 180px;
}

.subbrand-logo--edgenext {
    width: 240px;
}

.subbrand-logo--careeredge {
    width: 260px;
    filter: none;
}

.subbrand-logo--equityai {
    width: 280px;
}

.subbrand-logo--icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(13, 59, 102, 0.88);
    color: #fff;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.subbrand-content {
    display: grid;
    gap: 1.1rem;
    padding: 1.9rem 1.9rem 2.2rem;
}

.subbrand-content .badge {
    background: rgba(13, 59, 102, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.subbrand-content h3 {
    margin: 0;
    font-size: 1.35rem;
}

.brand-lead {
    margin: 0;
    color: var(--text-muted);
}

.subbrand-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    color: var(--text-muted);
}

.subbrand-list li::before {
    content: "•";
    color: var(--accent);
    margin-right: 0.35rem;
}

.subbrand-card .btn {
    justify-self: flex-start;
}

.cta {
    padding: 5rem 0 6rem;
}

.cta-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 2.7rem;
    text-align: center;
    border: 1px solid rgba(13, 59, 102, 0.08);
    box-shadow: 0 20px 44px rgba(13, 59, 102, 0.12);
}

.cta-banner {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.cta-card h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 1rem;
}

.site-footer {
    background: rgba(236, 243, 252, 0.6);
    padding: 3rem 0 1.5rem;
    color: rgba(28, 37, 52, 0.86);
    border-top: 1px solid rgba(28, 37, 52, 0.08);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-brand .brand-mark {
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
}

.footer-brand .brand-name {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.site-footer h4 {
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.footer-meta {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: inherit;
}

body.subpage .hero {
    padding: 6rem 0 4rem;
}

body.subpage .hero-logo {
    font-size: clamp(3rem, 8vw, 5rem);
    color: rgba(13, 59, 102, 0.18);
}

body.subpage .hero-copy h1 {
    font-size: clamp(2.4rem, 6vw, 3.4rem);
}

body.subpage .hero-visual .orb-lg {
    top: 20px;
    right: 0;
}

body.subpage main section {
    padding: 4.5rem 0;
}

body.subpage .portfolio .service-card {
    min-height: 260px;
}

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

@media (max-width: 900px) {
    .main-nav ul {
        position: absolute;
        top: 70px;
        right: 5%;
        background: var(--surface);
        border-radius: 16px;
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: var(--shadow);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .main-nav.open ul {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 6px;
    }

    .site-header .container {
        flex-wrap: wrap;
    }

    .btn-primary {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.4rem;
        justify-items: stretch;
    }

    .hero-panel {
        padding: 2rem;
        max-width: none;
        justify-self: stretch;
    }

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

    .subbrand-logo {
        width: min(220px, 60vw);
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 5.5rem 0 4rem;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-brand-grid {
        grid-template-columns: 1fr;
    }

    .brand-card {
        padding: 1rem 1.1rem;
    }

    .subbrand-grid {
        grid-template-columns: 1fr;
    }

    .subbrand-logo {
        width: min(200px, 70vw);
    }

    .services-panel {
        padding: 2rem;
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

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

    .subbrand-logo {
        width: min(180px, 80vw);
    }
}

@media (min-width: 1200px) {
    .hero-brand-grid {
        max-width: none;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
