:root {
    --orange: #f15a24;
    --orange-bright: #ff6a24;
    --ink: #2c1711;
    --muted: #6f625d;
    --line: rgba(241, 90, 36, .16);
    --paper: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'Montserrat', Arial, sans-serif;
    overflow-x: hidden;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: #fff;
}

main,
.marketing-footer {
    position: relative;
    z-index: 1;
}

.marketing-header {
    position: relative;
    z-index: 5;
    padding: 12px clamp(22px, 6vw, 110px) 20px;
    background: rgba(255, 255, 255, .92);
}
.utility-bar {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--orange);
    font-size: 10px;
    letter-spacing: .08em;
}
.utility-bar a { text-decoration: none; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 315px; }
.brand img { width: 112px; height: 80px; object-fit: contain; }
.brand span { font-size: clamp(27px, 2.5vw, 42px); letter-spacing: -.08em; white-space: nowrap; }
.brand strong { color: var(--orange); font-weight: 700; }
.brand em { color: #29211f; font-style: normal; font-weight: 400; }
.marketing-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 1.3vw, 26px); flex-wrap: wrap; }
.marketing-nav a { color: var(--orange); font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.marketing-nav a:hover { color: var(--ink); }
.marketing-nav a span { font-size: 13px; margin-left: 3px; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: var(--orange); background: transparent; border: 0; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.nav-dropdown-toggle span { font-size: 13px; transition: transform 180ms ease; }
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle { color: var(--ink); }
.nav-dropdown.is-open .nav-dropdown-toggle span { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 19px); left: 50%; z-index: 20; width: 220px; transform: translate(-50%, -8px); visibility: hidden; opacity: 0; pointer-events: none; background: #fff; border-top: 3px solid #293747; box-shadow: 0 14px 25px rgba(42, 24, 18, .14); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease; }
.nav-dropdown-menu::before { position: absolute; top: -20px; left: 0; right: 0; height: 20px; content: ""; }
.nav-dropdown.is-open .nav-dropdown-menu { transform: translate(-50%, 0); visibility: visible; opacity: 1; pointer-events: auto; }
.nav-dropdown-menu a { display: block; width: 100%; padding: 14px 15px; color: var(--orange); border-bottom: 1px solid rgba(241, 90, 36, .78); font-size: 14px; font-weight: 500; letter-spacing: .01em; }
.nav-dropdown-menu a:hover { color: #fff; background: var(--orange); }
.nav-simple-dropdown .nav-dropdown-menu { width: 270px; }
.nav-simple-dropdown .nav-dropdown-menu a { line-height: 1.08; }
.nav-consultancy-dropdown .nav-dropdown-menu { left: 0; width: 220px; display: block; transform: translate(0, -8px); }
.nav-consultancy-dropdown.is-open .nav-dropdown-menu { transform: translate(0, 0); }
.consultancy-menu-primary { background: #fff; }
.consultancy-parent { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; min-height: 79px; padding: 14px 15px !important; color: var(--orange) !important; background: #fff; border-bottom: 1px solid rgba(241, 90, 36, .7) !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1.05; white-space: normal !important; }
.consultancy-parent b { font-size: 25px; font-weight: 400; line-height: 1; }
.consultancy-parent:hover,
.consultancy-parent.is-active { color: #fff !important; background: var(--orange) !important; }
.consultancy-menu-secondary { position: absolute; top: 0; left: 100%; display: none; width: 300px; visibility: hidden; opacity: 0; pointer-events: none; background: #fff; box-shadow: 0 14px 25px rgba(42, 24, 18, .14); transition: opacity 160ms ease, visibility 160ms ease; }
.consultancy-menu.has-secondary-open .consultancy-menu-secondary { display: block; visibility: visible; opacity: 1; pointer-events: auto; }
.consultancy-links { display: none; }
.consultancy-links.is-active { display: block; }
.consultancy-links a { min-height: 62px; padding: 14px 15px !important; color: var(--orange) !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1.05; white-space: normal !important; }
.consultancy-links a:hover { color: var(--orange) !important; background: #fff8f4 !important; }
.lms-button { padding: 10px 19px; color: #fff !important; background: var(--orange); border-radius: 999px; box-shadow: 0 7px 18px rgba(241, 90, 36, .22); }
.menu-toggle { display: none; border: 1px solid var(--orange); padding: 9px 14px; color: var(--orange); background: #fff; border-radius: 5px; font-weight: 700; }
.menu-toggle-icon { position: relative; display: block; width: 20px; height: 2px; background: currentColor; transition: background 160ms ease; }
.menu-toggle-icon::before, .menu-toggle-icon::after { position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; content: ""; transition: transform 160ms ease; }
.menu-toggle-icon::before { transform: translateY(-6px); }
.menu-toggle-icon::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: rotate(-45deg); }
.marketing-header :is(a, button):focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 82px); max-width: 1450px; margin: 0 auto; padding: 75px clamp(22px, 6vw, 100px); min-height: clamp(650px, calc(100vh - 140px), 840px); transform: translateY(-28px); }
.hero-copy { max-width: 620px; justify-self: center; padding-top: 0; }
.eyebrow { margin: 0 0 13px; color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 610px; margin: 0 0 18px; color: var(--ink); font-size: clamp(32px, 4.6vw, 67px); line-height: .99; letter-spacing: -.06em; text-transform: uppercase; }
.hero-copy > p:not(.eyebrow) { max-width: 560px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 0 20px; border: 1px solid var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.button-primary { color: #fff; background: var(--orange); }
.button-secondary { color: var(--orange); background: transparent; }
.button:hover { transform: translateY(-2px); }
.announcement-card { position: relative; display: flex; align-items: stretch; justify-self: center; width: 100%; max-width: 660px; min-height: 0; }
.announcement-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; width: 62%; margin: 26px -7% 26px 0; padding: 25px; background: rgba(255, 255, 255, .91); box-shadow: 0 8px 25px rgba(38, 24, 18, .08); }
.announcement-label { color: var(--orange); font-size: 10px; }
.announcement-copy h2 { margin: 8px 0 17px; color: var(--orange); font-size: clamp(14px, 1.2vw, 19px); line-height: 1.32; }
.announcement-copy a { color: var(--orange); font-size: 10px; text-decoration: none; text-transform: uppercase; }
.announcement-image { position: relative; width: 58%; aspect-ratio: 16 / 9; overflow: hidden; }
.announcement-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.announcement-image span { position: absolute; z-index: 1; top: 11px; right: 11px; padding: 7px 9px; color: #fff; background: var(--orange); font-size: 8px; }

.section-wrap { max-width: 1450px; margin: 0 auto; padding: 78px clamp(22px, 6vw, 100px); }
.phases { text-align: center; }
.phases h2, .section-heading h2 { max-width: 780px; margin: 0 auto 42px; font-size: clamp(22px, 2.5vw, 37px); line-height: 1.17; letter-spacing: -.045em; text-transform: uppercase; }
.phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 3.2vw, 60px); text-align: left; }
.phase-card img { display: block; width: 100%; max-height: 260px; aspect-ratio: 1 / 1; height: auto; object-fit: contain; }
.phase-number { margin: 12px 0 8px; color: var(--orange); font-size: 17px; font-weight: 600; }
.phase-card h3 { margin: 0; color: var(--orange); font-size: 11px; text-transform: uppercase; }
.phase-card > p:not(.phase-number) { min-height: 42px; margin: 10px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.phase-card a { color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.success-number { display: flex; flex-direction: column; align-items: center; margin-top: 40px; color: var(--orange); }
.success-number strong { font-size: clamp(42px, 5vw, 76px); line-height: .9; letter-spacing: -.08em; }
.success-number span { margin-top: 7px; font-size: 11px; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; max-width: 1240px; margin: 10px auto 80px; box-shadow: 0 12px 30px rgba(49, 24, 13, .06); }
.split-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(35px, 5vw, 75px); }
.split-panel-orange { color: #fff; background: var(--orange); }
.split-panel-orange .eyebrow, .split-panel-orange p { color: rgba(255,255,255,.86); }
.split-panel h2 { max-width: 430px; margin: 0 0 19px; font-size: clamp(30px, 3.2vw, 52px); line-height: 1; letter-spacing: -.07em; }
.split-panel > p:not(.eyebrow) { max-width: 470px; font-size: 14px; line-height: 1.7; }
.button-light { margin-top: 17px; color: #fff; border-color: #fff; }
.split-panel-light { background: #fff; }
.stat-row { display: flex; gap: 42px; margin-top: 30px; }
.stat-row div { display: flex; flex-direction: column; gap: 9px; }
.stat-row strong { color: var(--orange); font-size: 37px; letter-spacing: -.07em; }
.stat-row span { max-width: 130px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.service-section { padding-top: 40px; }
.section-heading { text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-grid article { min-height: 190px; padding: 27px; background: rgba(255,255,255,.88); border-top: 3px solid var(--orange); }
.service-grid h3 { margin: 0 0 11px; color: var(--orange); font-size: 17px; }
.service-link { color: inherit; text-decoration: none; }
.service-link span { display: inline-block; margin-left: 5px; font-size: 13px; transition: transform 160ms ease; }
.service-link:hover span { transform: translate(3px, -2px); }
.service-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.marketing-footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 42px; padding: 55px clamp(22px, 6vw, 100px); color: #fff; background: #2b1812; border-bottom: 12px solid var(--orange); }
.marketing-footer h2 { margin: 0 0 13px; color: var(--orange); font-size: 12px; text-transform: uppercase; }
.marketing-footer p, .marketing-footer a { color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.7; text-decoration: none; }
.footer-brand { display: inline-block; margin-bottom: 12px; color: #fff !important; font-size: 22px !important; font-weight: 800; }
.footer-lms { display: inline-block; padding: 10px 15px; color: #fff !important; background: var(--orange); }

@media (max-width: 1050px) {
    .marketing-header { padding-inline: 25px; }
    .header-main { align-items: flex-start; }
    .brand { min-width: 0; }
    .brand img { width: 84px; height: 64px; }
    .brand span { font-size: 28px; }
    .marketing-nav { gap: 12px; }
    .marketing-nav a { font-size: 9px; }
    .hero { grid-template-columns: 1fr; gap: 38px; transform: none; }
    .hero-copy { max-width: 680px; }
    .announcement-card { justify-self: start; width: min(680px, 100%); margin: 0 0 0 auto; }
    .hero { min-height: clamp(610px, calc(100vh - 135px), 760px); }
}

@media (max-width: 760px) {
    .marketing-header { padding: 12px 16px 18px; }
    .utility-bar { justify-content: flex-start; flex-wrap: wrap; gap: 6px 9px; font-size: 9px; letter-spacing: .02em; }
    .utility-bar a { overflow-wrap: anywhere; }
    .header-main { align-items: center; flex-wrap: wrap; gap: 14px 10px; }
    .brand { flex: 1 1 0; min-width: 0; gap: 6px; }
    .brand img { flex-shrink: 0; width: clamp(40px, 10vw, 68px); height: 48px; }
    .brand span { font-size: clamp(18px, 4.8vw, 24px); }
    .menu-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 9px; min-width: 44px; min-height: 44px; padding: 10px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
    /* Keep the expanded navigation in flow: no fixed header offset or covered content. */
    .marketing-nav { display: none; position: static; flex: 0 0 100%; width: 100%; min-width: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgba(48, 20, 10, .10); }
    .marketing-nav.is-open { display: flex; }
    .marketing-nav a { min-height: 44px; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; white-space: normal; line-height: 1.45; }
    .nav-dropdown { width: 100%; min-width: 0; }
    .nav-dropdown-toggle { width: 100%; min-height: 48px; justify-content: space-between; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; white-space: normal; line-height: 1.45; text-align: left; }
    /* Hidden consultancy children must not reserve height between top-level items. */
    .marketing-nav .nav-dropdown > .nav-dropdown-menu { position: static; display: none; width: 100%; transform: none; visibility: hidden; opacity: 0; pointer-events: none; box-shadow: none; border-top: 0; }
    .marketing-nav .nav-dropdown.is-open > .nav-dropdown-menu { display: block; transform: none; visibility: visible; opacity: 1; pointer-events: auto; }
    .nav-dropdown-menu::before { display: none; }
    .marketing-nav .nav-dropdown-menu a { padding: 12px 14px; font-size: 13px; }
    .nav-simple-dropdown .nav-dropdown-menu { width: 100%; }
    .consultancy-menu-primary, .consultancy-menu-secondary { width: 100%; }
    .consultancy-menu-secondary { position: static; width: 100%; box-shadow: none; }
    .consultancy-menu:not(.has-secondary-open) .consultancy-menu-secondary { display: none; }
    .consultancy-menu.has-secondary-open .consultancy-menu-secondary { display: block; }
    .consultancy-parent { min-height: 44px; padding: 12px 14px !important; font-size: 13px !important; line-height: 1.45; }
    .consultancy-links a { min-height: 44px; padding: 12px 14px 12px 28px !important; font-size: 13px !important; }
    .marketing-nav .lms-button { margin-top: 8px; text-align: center; border: 0; }
    .hero { min-height: 0; padding-top: 42px; }
    .hero h1 { font-size: 43px; }
    .hero-copy > p:not(.eyebrow) { font-size: 13px; }
    .announcement-card { display: block; }
    .announcement-copy { width: 100%; margin: 0 0 -20px; }
    .announcement-image { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .phase-grid, .service-grid { grid-template-columns: 1fr 1fr; gap: 24px 15px; }
    .phase-card > p:not(.phase-number) { min-height: 0; }
    .split-section { grid-template-columns: 1fr; margin-inline: 18px; }
    .marketing-footer { grid-template-columns: 1fr; gap: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}

@media (max-width: 470px) {
    .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .phase-grid, .service-grid { grid-template-columns: 1fr; }
    .phase-card img { max-width: 260px; margin-inline: auto; }
    .phase-card { text-align: center; }
    .stat-row { gap: 20px; }
}
