:root {
    --navy: #071827;
    --navy-2: #102b43;
    --ink: #101820;
    --muted: #596773;
    --paper: #f3f6f7;
    --white: #ffffff;
    --line: #d9e1e5;
    --green: #12705e;
    --mint: #67d5bc;
    --gold: #e3bd4f;
    --blue: #54bfe6;
    --coral: #e66d5c;
    --content: 1180px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: clip;
    background: var(--white);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; }
section[id], div[id] { scroll-margin-top: 76px; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
    align-items: center;
    min-height: 76px;
    padding: 0 clamp(20px, 5vw, 76px);
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,.2);
    transition: color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(255,255,255,.96);
    box-shadow: 0 6px 24px rgba(7,24,39,.08);
    backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 1.08rem; text-transform: uppercase; }
.brand strong { font-weight: 700; }
.brand-mark { width: 28px; height: 28px; border-radius: 5px; background: linear-gradient(135deg, var(--green), var(--gold)); }
.brand-logo { display: block; width: auto; max-width: min(170px, 32vw); height: 38px; object-fit: contain; object-position: left center; }
.footer-brand .brand-logo { max-width: 190px; height: 46px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 38px); font-size: .9rem; }
.nav a { position: relative; font-weight: 500; }
.nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .2s ease; }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { justify-self: end; min-width: 126px; padding: 11px 20px; color: var(--ink); text-align: center; background: var(--white); border-radius: 6px; font-size: .88rem; font-weight: 600; }
.site-header.is-scrolled .header-cta { color: var(--white); background: var(--navy); }
.menu-button { display: none; }

.hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    place-items: center;
    overflow: hidden;
    color: var(--white);
    background: var(--navy);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,24,39,.38), rgba(7,24,39,.72)); }
.hero-content { position: relative; z-index: 2; width: min(920px, calc(100% - 40px)); padding: 118px 0 70px; text-align: center; }
.hero-content h1 { margin-bottom: 22px; font-size: clamp(2.8rem, 6.2vw, 5.8rem); font-weight: 500; line-height: 1.04; }
.hero-content > p:not(.eyebrow) { max-width: 680px; margin: 0 auto 30px; color: rgba(255,255,255,.84); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.eyebrow { margin-bottom: 14px; color: var(--green); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow.light { color: var(--mint); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 6px; font-size: .9rem; font-weight: 600; cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--navy); background: var(--white); }
.button-dark { color: var(--white); background: var(--navy); }
.button-outline { color: var(--navy); background: transparent; border-color: var(--navy); }
.scroll-cue { position: absolute; z-index: 2; bottom: 24px; left: 50%; width: 28px; height: 42px; border: 1px solid rgba(255,255,255,.65); border-radius: 18px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 4px; background: var(--white); border-radius: 50%; animation: scrollCue 1.8s ease infinite; }

.section-pad { padding: clamp(76px, 9vw, 132px) max(24px, calc((100vw - var(--content)) / 2)); }
.about-section { display: grid; grid-template-columns: .95fr 1fr; gap: clamp(50px, 9vw, 130px); align-items: end; min-height: 620px; background: var(--white); }
.about-title h2, .section-heading h2, .industry-heading h2, .process-intro h2, .faq-column > h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.9rem); font-weight: 600; line-height: 1.16; }
.about-copy { max-width: 570px; }
.about-copy > p { margin-bottom: 28px; color: var(--muted); font-size: 1.05rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.services-section { background: var(--paper); }
.section-heading { max-width: 820px; margin-bottom: 52px; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.section-heading > p:last-child { max-width: 660px; margin: 16px auto 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 390px; padding: 28px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(7,24,39,.05); }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--blue); }
.service-card:nth-child(3n+2)::before { background: var(--navy-2); }
.service-card:nth-child(3n)::before { background: var(--mint); }
.service-number { color: #a8b2ba; font-size: .82rem; font-weight: 500; }
.service-card small { display: block; margin-bottom: 10px; color: var(--green); font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.service-card h3 { margin-bottom: 16px; font-size: 1.32rem; font-weight: 600; line-height: 1.3; }
.service-card p { color: var(--muted); font-size: .94rem; }
.service-card > a { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.service-card > a span { font-size: 1.2rem; font-weight: 400; }

.industries-section { overflow: clip; padding-bottom: 0; color: var(--navy); background: #eef2f4; }
.industry-heading { max-width: 760px; }
.industries-section .eyebrow.light { color: var(--green); }
.industry-heading > p:last-child { max-width: 620px; margin-top: 18px; color: var(--muted); }
.industry-deck { position: relative; height: calc(var(--deck-steps) * 48vh + 88vh); margin-top: 38px; }
.industry-stage { position: sticky; top: 76px; display: flex; align-items: center; width: 100%; height: calc(100vh - 76px); overflow: hidden; }
.industry-track { display: flex; width: max-content; height: min(430px, 58vh); transform: translate3d(var(--track-x, 0), 0, 0); will-change: transform; }
.industry-card { position: relative; display: flex; width: var(--card-width, 150px); min-width: 0; height: 100%; padding: clamp(24px, 3vw, 38px); flex: 0 0 var(--card-width, 150px); flex-direction: column; justify-content: space-between; overflow: hidden; color: var(--white); background: #071a2b; border-top: 5px solid #28465e; border-right: 1px solid rgba(255,255,255,.18); transition: background-color .18s ease; will-change: width, flex-basis; }
.industry-card.is-active { background: #22384a; }
.industry-card > span { color: rgba(255,255,255,.46); font-size: .78rem; font-weight: 500; }
.industry-card > div { width: calc(var(--expanded-width, 470px) - clamp(48px, 6vw, 76px)); opacity: 1; }
.industry-card h3 { margin-bottom: 25px; overflow: hidden; font-size: clamp(1.25rem, 1.65vw, 1.65rem); font-weight: 600; line-height: 1.2; white-space: nowrap; }
.industry-card h3::after { content: ""; display: block; width: 100%; height: 1px; margin-top: 24px; background: rgba(255,255,255,.32); }
.industry-card p { max-width: 620px; margin: 0; color: rgba(255,255,255,.65); font-size: clamp(.88rem, 1.2vw, 1rem); }

.process-section { display: grid; grid-template-columns: minmax(340px, .85fr) minmax(500px, 1.15fr); color: var(--white); background: #0b2032; }
.process-intro { position: sticky; top: 0; align-self: start; min-height: 100svh; padding-right: clamp(30px, 6vw, 88px); background: linear-gradient(rgba(7,24,39,.88), rgba(7,24,39,.92)), url('https://images.unsplash.com/photo-1522083165195-3424ed129620?auto=format&fit=crop&w=1400&q=80') center/cover; }
.process-intro > p:not(.eyebrow) { margin: 24px 0 30px; color: rgba(255,255,255,.67); }
.process-cards { padding: clamp(70px, 8vw, 112px) max(24px, calc((100vw - var(--content)) / 2)) clamp(70px, 8vw, 112px) clamp(24px, 5vw, 76px); background: #f7f8f8; }
.process-card { display: grid; grid-template-columns: 100px 1fr; gap: 26px; min-height: 270px; margin-bottom: 20px; padding: 34px; color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.process-card > span { color: #b9c1c7; font-size: 3rem; font-weight: 400; line-height: 1; }
.process-card h3 { font-size: 1.45rem; font-weight: 600; }
.process-card p { margin: 0; color: var(--muted); font-size: .96rem; }

.testimonials-section { overflow: hidden; background: var(--white); }
.testimonial-scroller { display: flex; gap: 18px; width: calc(100vw - max(24px, calc((100vw - var(--content)) / 2))); padding-bottom: 12px; overflow-x: auto; cursor: grab; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.testimonial-scroller:active { cursor: grabbing; }
.testimonial-card { display: flex; flex: 0 0 min(540px, 82vw); flex-direction: column; justify-content: space-between; min-height: 330px; padding: clamp(28px, 4vw, 48px); background: var(--paper); scroll-snap-align: start; }
.testimonial-card > p { color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.55; }
.testimonial-card footer { display: grid; gap: 3px; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial-card strong { font-size: .92rem; font-weight: 600; }
.testimonial-card span { color: var(--muted); font-size: .84rem; }

.faq-contact-section { display: grid; grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr); gap: clamp(50px, 8vw, 110px); align-items: start; color: var(--white); background: var(--navy); }
.contact-lead { max-width: 600px; margin: 20px 0; color: rgba(255,255,255,.68); }
.contact-inline { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-bottom: 40px; color: var(--mint); font-size: .88rem; }
.faq-list { border-top: 1px solid rgba(255,255,255,.22); }
.faq-list details { border-bottom: 1px solid rgba(255,255,255,.22); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0; list-style: none; cursor: pointer; font-size: .94rem; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 1.2rem; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -4px 0 20px; color: rgba(255,255,255,.65); font-size: .9rem; }
.contact-form { display: grid; gap: 20px; padding: clamp(28px, 4vw, 48px); color: var(--ink); background: var(--white); }
.form-intro h3 { margin-bottom: 5px; font-size: 1.7rem; font-weight: 600; }
.form-intro > p:last-child { margin: 0; color: var(--muted); font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form label { display: block; font-size: .8rem; font-weight: 600; }
.contact-form label > span { color: var(--coral); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 47px; margin-top: 7px; padding: 11px 13px; color: var(--ink); background: #fbfcfc; border: 1px solid #cfd8de; border-radius: 5px; outline: none; }
.contact-form textarea { min-height: 125px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,112,94,.1); }
.contact-submit { width: 100%; }
.notice { padding: 12px 14px; border-radius: 5px; font-size: .88rem; }
.notice.success { color: #0c5b49; background: #dff4ed; }

.site-footer { padding: 44px max(20px, calc((100vw - var(--content)) / 2)) 24px; background: #edf4f5; }
.footer-cta { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; min-height: 170px; padding: clamp(28px, 4vw, 48px); color: var(--white); background: var(--navy-2); border-radius: 8px; }
.footer-cta h2 { max-width: 760px; margin: 0; font-size: clamp(1.8rem, 3.5vw, 3.2rem); font-weight: 500; line-height: 1.18; }
.footer-main { display: grid; grid-template-columns: 1fr .9fr .75fr; gap: clamp(32px, 7vw, 96px); margin-top: 22px; padding: clamp(30px, 5vw, 52px); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.footer-brand-block > p { max-width: 320px; margin: 20px 0; color: var(--muted); font-size: .9rem; }
.social-row { display: flex; gap: 8px; }
.social-row a { display: grid; width: 32px; height: 32px; place-items: center; color: var(--navy-2); background: var(--paper); border: 1px solid var(--line); border-radius: 5px; font-size: .7rem; font-weight: 600; transition: color .2s ease, background-color .2s ease; }
.social-row a:hover { color: var(--white); background: var(--green); }
.footer-links { display: grid; align-content: start; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 20px; }
.footer-links h3 { grid-column: 1 / -1; margin-bottom: 8px; color: var(--navy-2); font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.footer-links a { color: var(--muted); font-size: .84rem; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 4px 0; color: var(--muted); font-size: .78rem; }

.legal-page { width: min(820px, calc(100% - 32px)); margin: 100px auto 50px; padding: clamp(28px, 5vw, 50px); background: var(--white); border: 1px solid var(--line); }
.legal-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; line-height: 1.1; }
.legal-page p { color: var(--muted); }
.legal-back { display: inline-flex; margin-bottom: 20px; padding: 10px 15px; color: var(--white); background: var(--navy); border-radius: 5px; font-size: .85rem; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.25,1); transition-delay: var(--delay, 0ms); }
.reveal[data-reveal="left"] { transform: translateX(-48px); }
.reveal[data-reveal="right"] { transform: translateX(48px); }
.reveal.is-visible { opacity: 1; transform: none; }
.animated-footer .footer-cta, .animated-footer .footer-main, .animated-footer .footer-bottom { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.animated-footer.is-visible .footer-cta, .animated-footer.is-visible .footer-main, .animated-footer.is-visible .footer-bottom { opacity: 1; transform: none; }
.animated-footer.is-visible .footer-main { transition-delay: .12s; }
.animated-footer.is-visible .footer-bottom { transition-delay: .22s; }

@keyframes scrollCue { 0% { opacity: 0; transform: translate(-50%,0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,18px); } }

@media (max-width: 980px) {
    .site-header { grid-template-columns: 1fr auto auto; }
    .menu-button { display: grid; width: 42px; height: 42px; place-items: center; padding: 11px; color: currentColor; background: transparent; border: 0; cursor: pointer; }
    .menu-button span { display: block; width: 20px; height: 1px; background: currentColor; transition: transform .2s ease; }
    .menu-button span + span { margin-top: 6px; }
    .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
    .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    .nav { position: fixed; inset: 76px 0 auto; display: grid; gap: 0; padding: 18px 24px 26px; color: var(--ink); background: var(--white); border-bottom: 1px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity .2s ease, transform .2s ease; }
    .nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .about-section, .process-section, .faq-contact-section { grid-template-columns: 1fr; }
    .about-section { min-height: auto; }
    .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .process-intro { position: relative; min-height: auto; }
    .process-cards { padding-right: 24px; padding-left: 24px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .site-header { min-height: 66px; padding: 0 14px; }
    .brand { font-size: .92rem; }
    .brand-mark { width: 25px; height: 25px; }
    .brand-logo { max-width: 112px; height: 31px; }
    .header-cta { min-width: auto; padding: 9px 12px; font-size: .78rem; }
    .nav { top: 66px; }
    .hero-content { padding-top: 96px; }
    .hero-content h1 { font-size: 2.6rem; }
    .section-pad { padding-top: 70px; padding-bottom: 70px; }
    .about-section { gap: 28px; }
    .about-title h2, .section-heading h2, .industry-heading h2, .process-intro h2, .faq-column > h2 { font-size: 2rem; }
    .service-grid, .form-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 340px; }
    .industry-deck { height: calc(var(--deck-steps) * 62vh + 86vh); }
    .industry-stage { top: 66px; height: calc(100vh - 66px); }
    .industry-track { position: relative; width: 100%; height: min(470px, 64vh); transform: none !important; }
    .industry-card { position: absolute; width: 100%; height: min(470px, 64vh); padding: 28px 24px; opacity: var(--mobile-card-opacity, 0); transform: translateX(var(--mobile-card-shift, 12%)) scale(var(--mobile-card-scale, .97)); transition: none; pointer-events: none; }
    .industry-card.is-active { pointer-events: auto; }
    .industry-card > div { width: 100%; }
    .industry-card h3 { font-size: 1.65rem; white-space: normal; }
    .process-card { grid-template-columns: 62px 1fr; min-height: 240px; padding: 24px 20px; }
    .process-card > span { font-size: 2.15rem; }
    .faq-contact-section { gap: 36px; }
    .contact-form { padding: 24px 18px; }
    .footer-cta, .footer-main { grid-template-columns: 1fr; }
    .footer-cta { min-height: 0; border-radius: 6px; }
    .footer-main { gap: 34px; padding: 28px 22px; }
    .footer-brand-block { grid-column: auto; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-links h3 { grid-column: auto; }
    .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal, .animated-footer .footer-cta, .animated-footer .footer-main, .animated-footer .footer-bottom { opacity: 1; transform: none; }
    .industry-deck { height: auto; padding: 50px 0; }
    .industry-stage { position: static; display: grid; height: auto; gap: 16px; }
    .industry-track { display: grid; width: 100%; height: auto; gap: 16px; transform: none; }
    .industry-card { position: relative; width: 100%; min-height: 280px; opacity: 1 !important; transform: none !important; }
    .industry-card > div { width: 100%; opacity: 1; }
}
