:root {
    --ink: #151209;
    --paper: #f5efe3;
    --paper-2: #ece2cc;
    --laterite: #c1522a;
    --laterite-dark: #7c3517;
    --indigo: #1e3a57;
    --indigo-2: #12283f;
    --palm: #3c6b4c;
    --brass: #b9873c;
    --line: rgba(21, 18, 9, 0.14);
    --line-soft: rgba(21, 18, 9, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 44px;
}

h1,
h2,
h3,
h4 {
    font-family: "Fraunces", serif;
    font-weight: 400;
    margin: 0;
    color: var(--ink);
}

p {
    margin: 0;
}

a {
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

::selection {
    background: var(--laterite);
    color: #fff;
}

/* reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal.d1 {
    transition-delay: 0.08s;
}

.reveal.d2 {
    transition-delay: 0.16s;
}

.reveal.d3 {
    transition-delay: 0.24s;
}

.reveal.d4 {
    transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .pulse-dot,
    .origin-glow,
    .route,
    .scroll-cue i {
        animation: none !important;
    }
}

/* truss divider */
.truss {
    height: 16px;
    width: 100%;
    background: repeating-linear-gradient(115deg,
            transparent 0 20px,
            var(--line-soft) 20px 21px);
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 44px;
    background: rgba(245, 239, 227, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
    transition:
        padding 0.35s ease,
        box-shadow 0.35s ease;
}

nav.scrolled {
    padding: 14px 44px;
    box-shadow: 0 8px 24px rgba(21, 18, 9, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-globe {
    flex-shrink: 0;
}

.logo-cci {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.01em;
    color: var(--indigo);
    line-height: 1;
    flex-shrink: 0;
}

.logo-divider {
    width: 1px;
    height: 30px;
    background: var(--line);
    flex-shrink: 0;
}

.mark {
    width: 32px;
    height: 32px;
    border: 1.4px solid var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fraunces", serif;
    font-size: 17px;
    font-style: italic;
    flex-shrink: 0;
}

.wordmark {
    font-size: 13px;
    letter-spacing: 0.02em;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
}

.wordmark span {
    display: block;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--laterite-dark);
    text-transform: uppercase;
}

.navlinks {
    display: flex;
    gap: 32px;
    font-size: 14.5px;
    align-items: center;
}

.navlinks>a,
.drop-trigger {
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    opacity: 0.82;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.navlinks>a::after,
.drop-trigger::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.4px;
    background: var(--laterite);
    transition: width 0.3s ease;
}

.navlinks>a:hover::after,
.dropdown:hover .drop-trigger::after {
    width: 100%;
}

.drop-trigger i {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.dropdown {
    position: relative;
}

.dropdown:hover .drop-trigger i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--paper);
    border: 1px solid var(--line);
    min-width: 300px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.28s ease,
        transform 0.28s ease;
    box-shadow: 0 20px 38px rgba(21, 18, 9, 0.14);
    z-index: 60;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(6px);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    font-size: 13px;
    text-decoration: none;
    color: var(--ink);
    opacity: 1;
    transition:
        background 0.2s ease,
        padding-left 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--paper-2);
    padding-left: 16px;
}

.dropdown-menu a i {
    font-size: 16px;
    color: var(--laterite);
}

.btn {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    border: 1.4px solid var(--ink);
    padding: 11px 20px;
    text-decoration: none;
    color: var(--ink);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    background: transparent;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.solid {
    background: var(--laterite);
    border-color: var(--laterite);
    color: #fff;
}

.btn.solid:hover {
    background: var(--laterite-dark);
    border-color: var(--laterite-dark);
}

.btn.light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn.light:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Mobile nav toggle button (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1.4px solid var(--ink);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.6px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6.6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6.6px) rotate(-45deg);
}

/* Mobile slide-down menu */
.mobile-menu {
    display: none;
    position: sticky;
    top: 0;
    z-index: 49;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 100vh;
    overflow-y: auto;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--ink);
    font-size: 15px;
    padding: 14px 24px;
    border-top: 1px solid var(--line-soft);
}

.mobile-services {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line-soft);
}

.mobile-services-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--laterite-dark);
    padding: 14px 24px 4px;
}

.mobile-services a {
    border-top: none;
    padding: 9px 24px 9px 32px;
    font-size: 14px;
    opacity: 0.85;
}

.mobile-cta {
    margin: 18px 24px 22px;
    justify-content: center;
}

/* HERO */
.hero {
    position: relative;
    min-height: 92vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #0d1826;
    padding-top: 90px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-map {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-routes .route {
    stroke-dasharray: 3 9;
    animation: routeFlow 6s linear infinite;
}

@keyframes routeFlow {
    to {
        stroke-dashoffset: -120;
    }
}

.origin-glow {
    animation: glowPulse 3.4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.18;
    }

    50% {
        opacity: 0.4;
    }
}

.pulse-dot {
    offset-rotate: 0deg;
    animation: pulseMove 4.2s linear infinite;
}

@keyframes pulseMove {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27120%27 height=%27120%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.9%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27 opacity=%270.35%27/%3E%3C/svg%3E");
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(115deg,
            rgba(10, 16, 24, 0.72) 0%,
            rgba(10, 16, 24, 0.32) 42%,
            rgba(10, 16, 24, 0.58) 100%);
}

.hero-frame {
    position: absolute;
    inset: 26px;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(237, 231, 216, 0.14);
}

.frame-corner {
    position: absolute;
    width: 22px;
    height: 22px;
}

.frame-corner.tl {
    top: -1px;
    left: -1px;
    border-top: 1.5px solid var(--laterite);
    border-left: 1.5px solid var(--laterite);
}

.frame-corner.br {
    bottom: -1px;
    right: -1px;
    border-bottom: 1.5px solid var(--laterite);
    border-right: 1.5px solid var(--laterite);
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: end;
    width: 100%;
    padding: 64px 44px 72px;
    color: #fff;
}

.hero-main {
    max-width: 700px;
}

.tag-label.light {
    color: #e9a184;
}

.hero h1 {
    margin-top: 14px;
    font-size: clamp(32px, 4.6vw, 58px);
    line-height: 1.1;
    max-width: 780px;
    color: #fff;
}

.hero h1 em {
    font-style: italic;
    color: #e9a184;
}

.hero p.lede {
    max-width: 520px;
    font-size: 16.5px;
    line-height: 1.65;
    color: #e7e1d2;
    margin-top: 20px;
}

.checks {
    display: flex;
    gap: 26px;
    margin: 26px 0 32px;
    flex-wrap: wrap;
}

.checks div {
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #e7e1d2;
}

.checks i {
    color: #e9a184;
    font-size: 16px;
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 220px;
    padding-left: 36px;
    border-left: 1px solid rgba(237, 231, 216, 0.2);
}

.hero-stats .tag-label.light {
    margin-bottom: 4px;
}

.hero-stats .stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.hero-stats .stat b {
    font-family: "Fraunces", serif;
    font-weight: 500;
    font-style: italic;
    font-size: 30px;
    color: #fff;
    min-width: 42px;
}

.hero-stats .stat span {
    font-size: 12.5px;
    line-height: 1.4;
    color: #c7d0d6;
    max-width: 150px;
}

.scroll-cue {
    position: absolute;
    bottom: 26px;
    right: 44px;
    z-index: 3;
    color: #e7e1d2;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scroll-cue i {
    font-size: 20px;
    animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}

/* CONNECTION DIAGRAM */
.connect {
    padding: 74px 0 68px;
}

.connect-line {
    position: relative;
    height: 2px;
    background: var(--line);
    margin: 0 20px;
}

.connect-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--indigo);
}

.connect-node.origin {
    width: 19px;
    height: 19px;
    background: var(--laterite);
}

.connect-node.dest {
    width: 19px;
    height: 19px;
    background: var(--indigo);
}

.connect-label {
    position: absolute;
    transform: translateX(-50%);
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    color: #5a5548;
    white-space: nowrap;
    text-align: center;
}

.connect-label.above {
    bottom: 26px;
}

.connect-label.below {
    top: 26px;
}

.connect-label b {
    display: block;
    color: var(--ink);
    letter-spacing: 0.04em;
    font-size: 13px;
}

.connect-label span {
    display: block;
    margin-top: 2px;
    color: #8a8474;
}

/* SECTION generic */
section {
    padding: 96px 0;
}

.sec-head {
    margin-bottom: 40px;
    max-width: 640px;
}

.sec-head h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.15;
}

.sec-head p {
    font-size: 15px;
    color: #5a5548;
    margin-top: 14px;
    line-height: 1.65;
}

.tag-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--laterite-dark);
    margin-bottom: 12px;
    display: inline-block;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: start;
}

.about-grid p {
    font-size: 15.5px;
    line-height: 1.75;
    color: #4a453a;
    margin-top: 16px;
}

.panel {
    background: var(--indigo);
    color: #fff;
    padding: 32px;
    border-radius: 2px;
}

.panel+.panel {
    margin-top: 16px;
}

.panel i {
    font-size: 22px;
    color: #9bb6cc;
}

.panel h3 {
    color: #fff;
    font-size: 23px;
    margin-top: 14px;
    font-style: italic;
}

.panel p {
    color: #c7d3dd;
    font-size: 14px;
    line-height: 1.65;
    margin-top: 10px;
}

.panel.alt {
    background: var(--laterite-dark);
}

.panel.alt i {
    color: #efc1a9;
}

.panel.alt p {
    color: #f2d9cb;
}

/* SERVICES — numbered ledger index (no cards) */
.service-index {
    margin-top: 8px;
}

.service-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    grid-template-areas:
        "num heading"
        "num copy";
    column-gap: 30px;
    padding: 38px 0;
    border-top: 1px solid var(--line);
    transition:
        padding-left 0.4s ease,
        background 0.4s ease;
}

.service-item:last-child {
    border-bottom: 1px solid var(--line);
}

.service-item:hover {
    padding-left: 16px;
    background: linear-gradient(to right,
            var(--paper-2) 0%,
            rgba(236, 226, 204, 0) 46%);
}

.service-num {
    grid-area: num;
    font-family: "Fraunces", serif;
    font-style: italic;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0.02em;
    color: var(--brass);
    padding-top: 5px;
    transition: color 0.35s ease;
}

.service-item:hover .service-num {
    color: var(--laterite);
}

.service-heading {
    grid-area: heading;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.service-heading h3 {
    font-size: 22px;
    font-style: italic;
}

.service-mark {
    font-size: 20px;
    color: var(--line);
    flex-shrink: 0;
    transition:
        color 0.35s ease,
        transform 0.35s ease;
}

.service-item:hover .service-mark {
    color: var(--laterite);
    transform: rotate(-8deg);
}

.service-copy {
    grid-area: copy;
    margin-top: 12px;
}

.service-copy p {
    font-size: 14.5px;
    color: #4a453a;
    line-height: 1.7;
    max-width: 760px;
}

.service-copy p+p {
    margin-top: 10px;
}

.bullet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 26px;
    margin-top: 16px;
    max-width: 760px;
}

.bullet-grid div {
    font-size: 13.5px;
    color: #4a453a;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.bullet-grid i {
    color: var(--laterite);
    font-size: 14px;
    margin-top: 3px;
}

/* INVEST */
.invest {
    background: var(--indigo-2);
    color: #ede7d8;
}

.invest .sec-head p {
    color: #b9c4cc;
}

.invest .tag-label {
    color: #e9a184;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 26px;
}

.chip {
    border: 1px solid rgba(237, 231, 216, 0.35);
    font-size: 13px;
    padding: 10px 18px;
    font-family: "IBM Plex Mono", monospace;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.chip:hover {
    background: rgba(237, 231, 216, 0.08);
    border-color: #e9a184;
    transform: translateY(-2px);
}

.invest-note {
    margin-top: 34px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #c7d0d6;
    max-width: 700px;
}

/* WHY / VALUES */
.why-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.why-top p {
    font-size: 15px;
    line-height: 1.75;
    color: #4a453a;
    margin-top: 14px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.val {
    background: var(--paper);
    padding: 28px 24px;
    transition: background 0.3s ease;
}

.val:hover {
    background: var(--paper-2);
}

.val i {
    font-size: 22px;
    color: var(--laterite);
}

.val h4 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 15px;
    margin: 14px 0 6px;
}

.val p {
    font-size: 13px;
    color: #5a5548;
    line-height: 1.6;
}

/* TEAM */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 36px;
}

.person {
    background: var(--paper);
    border: 1px solid var(--line);
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.person:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(21, 18, 9, 0.1);
}

.photo {
    width: 100%;
    aspect-ratio: 4/3.1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--indigo);
    opacity: 0.4;
    font-size: 42px;
    background: linear-gradient(135deg, var(--paper-2), #ded2b4);
    transition: opacity 0.3s ease;
}

.person:hover .photo {
    opacity: 0.6;
}

.person-body {
    padding: 22px 22px 26px;
}

.person-body h4 {
    font-size: 19px;
    font-style: italic;
}

.role {
    font-family: "IBM Plex Mono", monospace;
    font-size: 10.5px;
    color: var(--laterite-dark);
    margin: 7px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.person-body p {
    font-size: 13px;
    color: #5a5548;
    line-height: 1.65;
}

/* GLOBAL PARTNERSHIP */
.global {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.global p {
    font-size: 15px;
    line-height: 1.75;
    color: #4a453a;
    margin-top: 14px;
}

.global-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.gicon {
    border: 1px solid var(--line);
    padding: 18px 10px;
    text-align: center;
    font-size: 11.5px;
    color: #4a453a;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.gicon:hover {
    border-color: var(--laterite);
    transform: translateY(-3px);
}

.gicon i {
    display: block;
    font-size: 24px;
    color: var(--indigo);
    margin-bottom: 8px;
}

/* CTA */
.cta {
    background: var(--ink);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(115deg,
            transparent 0 26px,
            rgba(255, 255, 255, 0.035) 26px 27px);
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.cta .tag-label {
    color: #e9a184;
}

.cta h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
    max-width: 680px;
    margin: 0 auto 18px;
    font-style: italic;
}

.cta p {
    color: #c9c3b0;
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 15px;
    line-height: 1.7;
}

.cta .cta-row {
    justify-content: center;
}

.cta-tagline {
    margin-top: 52px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #948c79;
    text-transform: uppercase;
}

/* FOOTER */
footer {
    padding: 44px;
    font-size: 12.5px;
    color: #6b665c;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-family: "IBM Plex Mono", monospace;
    border-top: 1px solid var(--line);
}

footer a {
    text-decoration: none;
}

footer .fcol {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   Desktop-first source above; overrides layered narrowest-last
   ========================================================= */

/* ---- Large tablet / small laptop ---- */
@media (max-width: 1024px) {
    .wrap {
        padding: 0 32px;
    }

    nav {
        padding: 18px 28px;
    }

    nav.scrolled {
        padding: 12px 28px;
    }

    .hero-content {
        padding: 56px 32px 64px;
        gap: 40px;
    }

    section {
        padding: 76px 0;
    }

    .about-grid,
    .why-top,
    .global {
        gap: 40px;
    }

    .team-grid {
        gap: 18px;
    }
}

/* ---- Tablet: stack nav into hamburger, stack major grids ---- */
@media (max-width: 860px) {
    .wrap {
        padding: 0 24px;
    }

    nav {
        padding: 16px 20px;
    }

    nav.scrolled {
        padding: 12px 20px;
    }

    .navlinks,
    .cta-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .wordmark {
        font-size: 12px;
    }

    .logo-divider {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 44px 24px 56px;
        gap: 32px;
    }

    .hero-stats {
        border-left: none;
        border-top: 1px solid rgba(237, 231, 216, 0.2);
        padding-left: 0;
        padding-top: 18px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px 32px;
        width: 100%;
    }

    .hero-stats .stat {
        min-width: 140px;
    }

    .scroll-cue {
        display: none;
    }

    .checks {
        gap: 16px 22px;
    }

    section {
        padding: 60px 0;
    }

    .sec-head {
        max-width: 100%;
    }

    .about-grid,
    .why-top,
    .global {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .global {
        align-items: start;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bullet-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        column-gap: 20px;
    }

    .connect {
        padding: 56px 0 60px;
    }

    footer {
        padding: 36px 24px;
    }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .wrap {
        padding: 0 20px;
    }

    nav {
        padding: 14px 16px;
    }

    nav.scrolled {
        padding: 10px 16px;
    }

    .logo-cci {
        font-size: 19px;
    }

    .wordmark {
        display: none;
    }

    .mobile-menu a,
    .mobile-services-label {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mobile-cta {
        margin: 16px 20px 20px;
    }

    .hero-content {
        padding: 36px 20px 48px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p.lede {
        font-size: 15px;
        max-width: 100%;
    }

    .checks {
        flex-direction: column;
        gap: 10px;
        margin: 22px 0 26px;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-row .btn {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 14px;
    }

    section {
        padding: 48px 0;
    }

    .sec-head h2,
    .about-grid h2,
    .why-top h2,
    .global h2 {
        font-size: 26px;
    }

    /* connection diagram: switch to vertical timeline on mobile */
    .connect-line {
        height: auto;
        background: none;
        margin: 0 8px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .connect-line::before {
        content: "";
        position: absolute;
        left: 9px;
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: var(--line);
    }

    .connect-line {
        position: relative;
        padding-left: 34px;
    }

    .connect-node {
        position: static;
        transform: none;
        margin-left: -34px;
    }

    .connect-label {
        position: static;
        transform: none;
        text-align: left;
        margin-top: -19px;
    }

    .connect-label.above,
    .connect-label.below {
        top: auto;
        bottom: auto;
    }

    .panel {
        padding: 24px;
    }

    .service-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "num"
            "heading"
            "copy";
        padding: 28px 0;
    }

    .service-item:hover {
        padding-left: 0;
    }

    .service-heading h3 {
        font-size: 19px;
    }

    .service-mark {
        font-size: 18px;
    }

    .chips {
        gap: 8px;
    }

    .chip {
        font-size: 12px;
        padding: 8px 14px;
    }

    .values-grid,
    .team-grid,
    .global-icons {
        grid-template-columns: 1fr;
    }

    .cta h2 {
        font-size: 26px;
    }

    .cta-tagline {
        margin-top: 36px;
        font-size: 11px;
    }

    footer {
        flex-direction: column;
        padding: 32px 20px;
        gap: 20px;
    }
}

/* ---- Small phones ---- */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 26px;
    }

    .logo-cci {
        font-size: 17px;
    }

    .btn {
        font-size: 12.5px;
        padding: 10px 16px;
    }
}