/* --gut = total horizontal gutter (half on each side)
   --nav-h = header height (single source of truth for nav, menu, scroll offset) */
:root {
    --gut: clamp(40px, 7vw, 80px);
    --nav-h: 72px;
    --ink: #0E1A3A;
    --paper: #F5F7FB;
    --signal: #002C47;
    --sky: #DCE6FF;
    --line: #D5DCEC;
    --muted: #55627F;
    --err: #002C47;
    --f1: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --f2: "Instrument Sans", "Segoe UI", system-ui, sans-serif
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
    -webkit-text-size-adjust: 100%
}

body {
    font: 17px/1.65 var(--f2);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip
}

img {
    display: block;
    max-width: 100%
}

a {
    color: inherit
}

h1,
h2,
h3 {
    font-family: var(--f1);
    line-height: 1.08;
    letter-spacing: -.025em
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 700;
    max-width: 20ch
}

.wrap {
    width: min(1180px, 100% - var(--gut));
    margin-inline: auto
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
    border-radius: 6px
}

.sub {
    color: var(--muted);
    margin-top: 12px
}

/* buttons */
.btn {
  
    display: inline-block;
    background: var(--signal);
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 14px 26px;
    border: 2px solid var(--signal);
    border-radius: 999px;
    cursor: pointer;
    font: 600 16px/1.2 var(--f2);
    transition: transform .2s, background .2s, border-color .2s, color .2s
}

.btn:hover {
    background: var(--signal-dk);
    border-color: var(--signal-dk);
    transform: translateY(-2px)
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink)
}

.btn-ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff
}

.btn-sm {
    padding: 9px 20px;
    font-size: 15px
}

/* nav / header */
.progress {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: 0 50%;
    z-index: 60;
    pointer-events: none
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 247, 251, .88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: border-color .3s;
    border-bottom: 1px solid transparent
}

.nav.scrolled {
    border-color: var(--line)
}

.nav-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h)
}

.logo {
    font: 800 1.6rem/1 var(--f1);
    letter-spacing: -.04em;
    text-decoration: none;
    white-space: nowrap
}

.logo span {
    color: var(--signal)
}

#menu {
    display: flex;
    align-items: center;
    gap: 30px
}

#menu a:not(.btn) {
    text-decoration: none;
    font-weight: 500;
    position: relative
}

#menu a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .25s
}

#menu a:not(.btn):hover::after,
#menu a[aria-current]::after {
    transform: scaleX(1)
}

.burger {
    display: none;
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent
}

.burger i {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .3s
}

.burger i:first-child {
    top: 18px
}

.burger i:last-child {
    top: 25px
}

.nav.open .burger i:first-child {
    transform: translateY(3.5px) rotate(45deg)
}

.nav.open .burger i:last-child {
    transform: translateY(-3.5px) rotate(-45deg)
}

/* hero */
.hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
    padding: 72px 0 56px
}

.hero>* {
    min-width: 0
}

h1 {
    font-size: clamp(2.2rem, 6vw, 5.1rem);
    font-weight: 800;
    letter-spacing: -.04em;
    max-width: 13ch;
    overflow-wrap: break-word
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 46ch;
    margin: 26px 0 34px
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px
}

[data-in] {
    opacity: 0;
    transform: translateY(22px);
    animation: in .8s cubic-bezier(.2, .7, .2, 1) forwards;
    animation-delay: calc(var(--d, 0)*.14s + .1s)
}

@keyframes in {
    to {
        opacity: 1;
        transform: none
    }
}

/* hero image */
.hero-image {
    width: 100%;
    max-width: 460px;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px
}

/* stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid var(--line)
}

.stats div {
    padding: 34px 24px;
    border-left: 1px solid var(--line)
}

.stats div:first-child {
    border-left: 0;
    padding-left: 0
}

.stats strong {
    font: 800 clamp(2.2rem, 4vw, 3.4rem)/1 var(--f1);
    letter-spacing: -.04em;
    display: block
}

.stats p {
    color: var(--muted);
    margin-top: 10px;
    font-size: 15px;
    max-width: 22ch
}

/* about */
.about {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 64px;
    padding: 100px 0;
    align-items: center
}

.about p {
    margin: 22px 0 28px;
    max-width: 56ch;
    color: var(--muted)
}

.about p+p {
    margin-top: -6px
}

.quote {
    background: var(--sky);
    padding: 40px;
    border-radius: 28px 28px 28px 4px
}

.quote blockquote,
.slide blockquote {
    font: 500 1.35rem/1.45 var(--f1);
    letter-spacing: -.01em
}

figcaption {
    margin-top: 22px;
    font-weight: 600
}

figcaption span {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: 15px
}

/* services */
.services {
    background: #fff;
    padding: 96px 0;
    border-block: 1px solid var(--line)
}

.tabs {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-top: 48px
}

.tablist {
    display: flex;
    flex-direction: column
}

.tab {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    padding: 16px 20px;
    font: 600 1.05rem/1.3 var(--f1);
    border-left: 3px solid var(--line);
    color: var(--muted);
    transition: color .25s, background .25s, border-color .25s
}

.tab:hover {
    color: var(--ink);
    background: var(--paper)
}

.tab[aria-selected=true] {
    color: var(--ink);
    border-color: var(--signal);
    background: var(--paper)
}

.tab:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: -3px
}

.panel {
    background: var(--paper);
    border-radius: 24px;
    padding: 48px;
    min-height: 340px
}

.panel.swap {
    animation: swap .45s cubic-bezier(.2, .7, .2, 1)
}

@keyframes swap {
    from {
        opacity: 0;
        transform: translateX(18px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.panel h3 {
    font-size: 2rem;
    font-weight: 700
}

.panel p {
    margin: 16px 0 24px;
    max-width: 54ch;
    color: var(--muted)
}

.panel ul {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-bottom:20px;
}

.panel li,
.outcomes li {
    padding-left: 34px;
    position: relative
}

.panel li::before,
.outcomes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--signal)
}

.panel li::after,
.outcomes li::after {
    content: "";
    position: absolute;
    left: 7px;
    top: .55em;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg)
}

/* process */
.process {
    padding: 100px 0
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    margin-top: 64px;
    position: relative;
    --p: 0
}

.steps::before,
.steps::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    height: 4px;
    border-radius: 4px
}

.steps::before {
    right: 0;
    background: var(--line)
}

.steps::after {
    width: calc(var(--p)*100%);
    background: var(--signal)
}

.steps li {
    padding-top: 42px;
    position: relative;
    opacity: .45;
    transition: opacity .4s
}

.steps li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--paper);
    border: 4px solid var(--line);
    z-index: 1;
    transition: background .4s, border-color .4s, box-shadow .4s
}

.steps li.on {
    opacity: 1
}

.steps li.on::before {
    background: var(--signal);
    border-color: var(--signal);
    box-shadow: 0 0 0 7px rgba(255, 91, 26, .18)
}

.steps h3 {
    font-size: 1.25rem;
    margin-bottom: 8px
}

.steps p {
    color: var(--muted);
    font-size: 15.5px
}

/* outcomes */
.outcomes {
    background: var(--ink);
    color: #fff;
    padding: 96px 0
}

.outcomes ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 64px;
    margin-top: 48px
}

.outcomes li {
    font-size: 1.15rem;
    padding-left: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .18)
}

.outcomes li::before {
    top: 26px
}

.outcomes li::after {
    top: 30px
}

.voices {
    padding: 100px 0
}

.slider {
    margin-top: 40px;
    overflow: hidden
}

.track {
    display: flex;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1)
}

.slide {
    flex: 0 0 100%;
    padding: 0 4px
}

.slide blockquote {
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    max-width: 30em
}

.ctrl {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 36px
}

.arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: none;
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
    transition: background .2s, color .2s
}

.arrow:hover {
    background: var(--ink);
    color: #fff
}

.dots {
    display: flex;
    gap: 10px
}

.dots button {
    width: 12px;
    height: 12px;
    border-radius: 12px;
    border: 0;
    background: var(--line);
    cursor: pointer;
    transition: width .3s, background .3s
}

.dots button[aria-current=true] {
    width: 34px;
    background: var(--signal)
}

/* contact */
.contact {
    background: var(--sky);
    padding: 96px 0
}

.contact-in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start
}

.contact-in>* {
    min-width: 0
}

.contact p {
    margin-top: 18px;
    max-width: 42ch;
    color: var(--muted)
}

.contact form {
    background: #fff;
    padding: 36px;
    border-radius: 24px;
    display: grid;
    gap: 18px
}

.contact label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    font-size: 15px
}

input,
textarea {
    font: 400 16px/1.4 var(--f2);
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    resize: vertical
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--signal);
    box-shadow: 0 0 0 3px rgba(255, 91, 26, .2)
}

[aria-invalid=true] {
    border-color: var(--err)
}

.contact form .btn {
    justify-self: start
}

.contact .status {
    min-height: 1.4em;
    margin: 0;
    font-weight: 600;
    color: var(--ink)
}

.contact .status.err {
    color: var(--err)
}

footer {
    background: var(--ink);
    color: #fff;
    padding: 48px 0
}

footer .logo span {
    color: var(--signal)
}

.foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.foot nav {
    display: flex;
    gap: 26px
}

.foot nav a {
    text-decoration: none;
    opacity: .8
}

.foot nav a:hover {
    opacity: 1
}

.foot p {
    opacity: .6;
    font-size: 14px
}

/* =====================================================
   RESPONSIVE SYSTEM
   2200+ ultra-wide | 1600+ large desktop | <=1100 small laptop
   <=960 tablet + mobile menu | <=700 large phone
   <=560 phone | <=360 small phone | landscape phone | touch
   ===================================================== */
@media(min-width:1600px) {
    body {
        font-size: 18px
    }

    .wrap {
        width: min(1360px, 100% - 128px)
    }

    .hero {
        padding: 96px 0 72px
    }

    .tabs {
        grid-template-columns: 340px 1fr
    }
}

@media(min-width:2200px) {
    :root {
        --nav-h: 84px
    }

    body {
        font-size: 20px
    }

    .wrap {
        width: min(1640px, 100% - 200px)
    }
}

@media(max-width:1100px) {
    #menu {
        gap: 22px
    }

    .about,
    .contact-in {
        gap: 40px
    }

    .tabs {
        grid-template-columns: 260px 1fr;
        gap: 28px
    }

    .panel {
        padding: 36px
    }

    .steps {
        gap: 18px
    }

    .steps p {
        font-size: 15px
    }
}

@media(max-width:960px) {

    .hero,
    .about,
    .contact-in {
        grid-template-columns: 1fr
    }

    .hero {
        padding: 40px 0 32px;
        gap: 28px
    }

    .hero-image {
        max-width: 340px;
        justify-self: start
    }

    .about,
    .process,
    .voices,
    .services,
    .outcomes,
    .contact {
        padding: 72px 0
    }

    .about {
        gap: 36px
    }

    .stats {
        grid-template-columns: 1fr 1fr
    }

    .stats div {
        padding: 28px 20px
    }

    .stats div:nth-child(odd) {
        border-left: 0;
        padding-left: 0
    }

    .stats div:nth-child(n+3) {
        border-top: 1px solid var(--line)
    }

    .tabs {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px
    }

    .tablist {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        margin-inline: calc(var(--gut) / -2);
        padding-inline: calc(var(--gut) / 2);
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch
    }

    .tablist::-webkit-scrollbar {
        display: none
    }

    .tab {
        display: flex;
        align-items: center;
        min-height: 48px;
        border-left: 0;
        border-bottom: 3px solid var(--line);
        white-space: nowrap;
        scroll-snap-align: start
    }

    .panel {
        padding: 32px;
        min-height: 0
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-left: 46px;
        margin-top: 44px
    }

    .steps::before,
    .steps::after {
        top: 0;
        left: 10px;
        width: 4px;
        height: 100%
    }

    .steps::after {
        height: calc(var(--p)*100%)
    }

    .steps li {
        padding: 0
    }

    .steps li::before {
        left: -46px;
        top: 2px
    }

    .steps p {
        font-size: 16px
    }

    .outcomes ul {
        gap: 20px 40px
    }

    /* mobile menu: hidden menu is not focusable, scrolls if screen is short */
    .burger {
        display: block
    }

    #menu {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        z-index: 1;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        padding: 8px calc(var(--gut) / 2) 24px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px -22px rgba(14, 26, 58, .35);
        max-height: calc(100vh - var(--nav-h));
        max-height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-14px);
        pointer-events: none;
        transition: transform .35s, opacity .25s, visibility 0s .35s
    }

    .nav.open #menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition-delay: 0s
    }

    #menu a:not(.btn) {
        padding: 15px 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.05rem
    }

    #menu a:not(.btn)::after {
        display: none
    }

    #menu .btn {
        margin-top: 18px;
        padding: 14px
    }
}

@media(max-width:700px) {
    .outcomes ul {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .outcomes li {
        font-size: 1.08rem
    }

    .foot {
        flex-direction: column;
        align-items: flex-start
    }

    .foot nav {
        flex-wrap: wrap;
        gap: 10px 22px
    }

    .contact form {
        padding: 26px
    }
}

@media(max-width:560px) {
    :root {
        --nav-h: 64px
    }

    body {
        font-size: 16px
    }

    .hero {
        padding-top: 28px
    }

    .hero-image {
        max-width: 250px;
        justify-self: center
    }

    .hero-cta {
        flex-direction: column
    }

    .hero-cta .btn {
        width: 100%
    }

    .lead {
        font-size: 1.08rem;
        margin: 20px 0 26px
    }

    .stats strong {
        font-size: 2.1rem
    }

    .stats div {
        padding: 22px 14px
    }

    .stats p {
        font-size: 14px
    }

    .quote {
        padding: 28px
    }

    .quote blockquote {
        font-size: 1.2rem
    }

    .panel {
        padding: 24px;
        border-radius: 18px
    }

    .panel h3 {
        font-size: 1.6rem
    }

    .slide blockquote {
        font-size: 1.3rem
    }

    .ctrl {
        margin-top: 28px;
        gap: 14px
    }

    .contact form {
        padding: 20px;
        border-radius: 18px
    }

    .contact form .btn {
        justify-self: stretch
    }

    .about,
    .process,
    .voices,
    .services,
    .outcomes,
    .contact {
        padding-block: 60px
    }
}

@media(max-width:360px) {
    h1 {
        font-size: 2.05rem
    }

    h2 {
        font-size: 1.65rem
    }

    .stats strong {
        font-size: 1.85rem
    }

    .stats p {
        font-size: 13px
    }

    .logo {
        font-size: 1.4rem
    }
}

/* phone held sideways: slim header, keep hero two-column, trim vertical space */
@media(max-height:520px) and (orientation:landscape) {
    :root {
        --nav-h: 56px
    }

    .hero {
        grid-template-columns: 1.2fr .8fr;
        padding: 28px 0
    }

    .hero-image {
        max-width: 230px;
        justify-self: center
    }

    h1 {
        font-size: clamp(2rem, 5vw, 3rem)
    }

    .lead {
        margin: 14px 0 20px
    }

    .about,
    .process,
    .voices,
    .services,
    .outcomes,
    .contact {
        padding-block: 48px
    }
}

/* touch devices: no sticky hover states, bigger tap areas */
@media(hover:none) {
    .btn:hover {
        transform: none
    }

    .tab:hover {
        background: transparent
    }

    .tab[aria-selected="true"]:hover {
        background: var(--paper)
    }
}

@media(pointer:coarse) {
    .dots button {
        position: relative
    }

    .dots button::after {
        content: "";
        position: absolute;
        inset: -16px -5px
    }

    input,
    textarea {
        min-height: 48px
    }

    .btn-sm {
        padding: 12px 22px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }

    [data-in] {
        opacity: 1;
        transform: none
    }

    .w {
        opacity: 1
    }
}