@charset "UTF-8";
/* ============================================================
   Crestline Constructions — main stylesheet
   1. Tokens          8. Hero slider      15. Testimonials
   2. Base            9. Marquee          16. CTA
   3. Utilities      10. Intro / about    17. Footer
   4. Buttons        11. Services         18. Floats + lightbox
   5. Loader/header  12. Before & after   19. Gallery
   6. Drawer         13. Stats band       20. Contact
   7. Banner         14. Process          21. Motion + responsive
   ============================================================ */

/* ── 1. Tokens ────────────────────────────────────────────── */
:root {
    --navy-950: #050b16;
    --navy-900: #0a1628;
    --navy-850: #0c1c32;
    --navy-800: #0f1f38;
    --navy-700: #17304f;
    --navy-600: #22436b;

    --amber:    #f2a41c;
    --amber-2:  #ffc14d;
    --amber-3:  #c9820c;

    --paper:    #ffffff;
    --sand:     #f6f3ee;
    --sand-2:   #ebe6dd;

    --ink:      #101828;
    --ink-2:    #28323f;
    --muted:    #5d6a7a;
    --muted-2:  #8a95a3;

    --line:     rgba(16, 24, 40, .10);
    --line-d:   rgba(255, 255, 255, .12);

    --shell:    1320px;
    --gut:      clamp(1.25rem, 4vw, 2.5rem);

    --r-sm: 6px;
    --r:    14px;
    --r-lg: 22px;
    --r-xl: 32px;

    --ff-display: "Sora", "Segoe UI", system-ui, sans-serif;
    --ff-body:    "Inter", "Segoe UI", system-ui, sans-serif;

    --ease:  cubic-bezier(.22, 1, .36, 1);
    --ease2: cubic-bezier(.65, 0, .35, 1);

    --shadow:    0 18px 50px -24px rgba(10, 22, 40, .45);
    --shadow-lg: 0 40px 90px -40px rgba(10, 22, 40, .6);

    --hdr-h: 78px;
}

/* ── 2. Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* The off-canvas drawer is parked past the right edge; clip it so no page
       ever scrolls sideways. "clip" rather than "hidden" — it keeps sticky working. */
    overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--ff-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
    margin: 0;
    text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
em { font-style: normal; color: var(--amber); }

::selection { background: var(--amber); color: var(--navy-900); }

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
    border-radius: 3px;
}

.skip {
    position: fixed; top: -200px; left: 1rem; z-index: 999;
    background: var(--amber); color: var(--navy-900);
    padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
    font-weight: 600;
}
.skip:focus { top: 0; }

/* ── 3. Utilities ─────────────────────────────────────────── */
.shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gut);
}

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--navy-900); color: #e8edf4; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .7rem;
    font-family: var(--ff-display);
    font-size: .78rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--amber-3);
    margin: 0 0 1.1rem;
}
.eyebrow span {
    width: 2.25rem; height: 2px; background: var(--amber);
    display: block; flex: none;
}
.eyebrow--light { color: var(--amber-2); }
.eyebrow--center { justify-content: center; }

.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--muted);
    max-width: 62ch;
}
.section--dark .lead { color: #aebaca; }

.head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }
.head--center .lead { margin-inline: auto; }
.head--split {
    max-width: none; display: grid; gap: clamp(1.25rem, 3vw, 3rem);
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: end;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── 4. Buttons ───────────────────────────────────────────── */
.btn {
    --bg: var(--amber);
    --fg: var(--navy-900);
    position: relative;
    display: inline-flex; align-items: center; gap: .6rem;
    padding: 1.05rem 1.7rem;
    font-family: var(--ff-display);
    font-size: .92rem; font-weight: 700;
    letter-spacing: .02em;
    color: var(--fg);
    background: var(--bg);
    border-radius: 100px;
    overflow: hidden;
    isolation: isolate;
    transition: transform .4s var(--ease), color .3s var(--ease), box-shadow .4s var(--ease);
    will-change: transform;
}
.btn svg { width: 1.05rem; height: 1.05rem; stroke-width: 2.1; flex: none; transition: transform .4s var(--ease); }
.btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--navy-900);
    transform: translateY(101%);
    transition: transform .5s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:hover::after { transform: translateY(0); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn--sm { padding: .8rem 1.3rem; font-size: .84rem; }
.btn--lg { padding: 1.2rem 2.1rem; font-size: 1rem; }

.btn--dark { --bg: var(--navy-900); --fg: #fff; }
.btn--dark::after { background: var(--amber); }
.btn--dark:hover { color: var(--navy-900); }

.btn--ghost {
    --bg: transparent; --fg: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
}
.btn--ghost::after { background: #fff; }
.btn--ghost:hover { color: var(--navy-900); box-shadow: inset 0 0 0 1.5px #fff; }

.btn--outline {
    --bg: transparent; --fg: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--outline::after { background: var(--navy-900); }
.btn--outline:hover { color: #fff; }

.link {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--ff-display); font-weight: 700; font-size: .9rem;
    letter-spacing: .02em; color: var(--ink);
    padding-bottom: 3px;
    background-image: linear-gradient(var(--amber), var(--amber));
    background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
    transition: background-size .45s var(--ease), color .3s;
}
.link svg { width: 1rem; height: 1rem; stroke-width: 2.2; transition: transform .4s var(--ease); }
.link:hover { background-size: 100% 2px; }
.link:hover svg { transform: translate(3px, -3px); }
.link--light { color: #fff; }

/* ── 5. Loader, progress, top bar, header ─────────────────── */
.loader {
    position: fixed; inset: 0; z-index: 10000;
    display: grid; place-content: center; justify-items: center; gap: 1.4rem;
    background: var(--navy-950);
    transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__svg { width: 64px; height: 64px; color: #fff; animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.02); } }
.loader__bar { width: min(240px, 50vw); height: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0%; background: var(--amber); transition: width .25s linear; }
.loader__pct { font-family: var(--ff-display); font-size: .75rem; letter-spacing: .25em; color: var(--muted-2); }

.scrollbar {
    position: fixed; top: 0; left: 0; z-index: 900;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--amber-3), var(--amber-2));
    pointer-events: none;
}

.topbar {
    background: var(--navy-950);
    color: #9fb0c4;
    font-size: .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    position: relative; z-index: 600;
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.topbar__items { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .5rem; transition: color .3s; }
.topbar__item svg { width: 1rem; height: 1rem; color: var(--amber); flex: none; }
a.topbar__item:hover { color: #fff; }
.topbar__social { display: flex; gap: .35rem; }
.topbar__social a {
    display: grid; place-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    transition: background .3s, color .3s, transform .3s;
}
.topbar__social svg { width: 1rem; height: 1rem; }
.topbar__social a:hover { background: var(--amber); color: var(--navy-900); transform: translateY(-2px); }

.header {
    position: sticky; top: 0; z-index: 700;
    background: rgba(10, 22, 40, .0);
    transition: background .45s var(--ease), box-shadow .45s var(--ease), backdrop-filter .45s;
}
.is-inner .header, .header.is-solid {
    background: rgba(8, 18, 34, .92);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.header.is-solid { box-shadow: 0 10px 40px -24px rgba(0, 0, 0, .8); }
.header.is-hidden { transform: translateY(-100%); }
.header { transition: background .45s var(--ease), transform .5s var(--ease), box-shadow .45s; }

.header__in { display: flex; align-items: center; gap: 1.5rem; min-height: var(--hdr-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; flex: none; }
.brand__mark { width: 38px; height: 38px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong {
    font-family: var(--ff-display); font-weight: 800; font-size: 1.12rem;
    letter-spacing: -.02em; text-transform: uppercase;
}
.brand__text em {
    font-style: normal; font-size: .62rem; font-weight: 600;
    letter-spacing: .32em; text-transform: uppercase; color: var(--amber);
    margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__link {
    position: relative;
    padding: .55rem .95rem;
    font-family: var(--ff-display); font-size: .88rem; font-weight: 600;
    color: rgba(255, 255, 255, .78);
    border-radius: 100px;
    transition: color .3s;
}
.nav__link::before {
    content: ""; position: absolute; left: 50%; bottom: .15rem;
    width: 0; height: 2px; background: var(--amber);
    transform: translateX(-50%);
    transition: width .4s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::before, .nav__link.is-active::before { width: 1.4rem; }
.nav__link.is-active { color: #fff; }

.header__right { display: flex; align-items: center; gap: .75rem; }

.burger {
    display: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    position: relative;
}
.burger span {
    position: absolute; left: 50%; width: 18px; height: 2px;
    background: #fff; border-radius: 2px;
    transform: translateX(-50%);
    transition: transform .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateX(-50%) translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateX(-50%) translateY(-5px) rotate(-45deg); }

/* ── 6. Drawer ────────────────────────────────────────────── */
.drawer {
    position: fixed; inset: 0; z-index: 800;
    background: rgba(5, 11, 22, .65);
    backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(420px, 88vw);
    background: var(--navy-900);
    display: flex; flex-direction: column;
    padding: 1.5rem clamp(1.5rem, 5vw, 2.5rem) 2rem;
    transform: translateX(100%);
    transition: transform .6s var(--ease);
    overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-d); }
.drawer__mark { width: 40px; height: 40px; color: #fff; }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-content: center; }
.drawer__close svg { width: 1.2rem; height: 1.2rem; }
.drawer__close:hover { background: var(--amber); color: var(--navy-900); }

.drawer__nav { padding-block: 1.5rem; flex: 1; }
.drawer__link {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-family: var(--ff-display); font-size: 1.45rem; font-weight: 700;
    color: rgba(255, 255, 255, .85);
    transition: color .3s, padding-left .4s var(--ease);
}
.drawer__link svg { width: 1.1rem; height: 1.1rem; margin-left: auto; opacity: 0; transform: translateX(-8px); transition: .4s var(--ease); }
.drawer__no { font-size: .7rem; color: var(--amber); letter-spacing: .15em; }
.drawer__link:hover, .drawer__link.is-active { color: #fff; padding-left: .5rem; }
.drawer__link:hover svg, .drawer__link.is-active svg { opacity: 1; transform: none; }

.drawer__foot { display: grid; gap: .6rem; color: #9fb0c4; font-size: .9rem; }
.drawer__foot a { display: inline-flex; align-items: center; gap: .6rem; }
.drawer__foot svg { width: 1rem; height: 1rem; color: var(--amber); }
.drawer__foot a:hover { color: #fff; }
.drawer__social { display: flex; gap: .5rem; margin-top: .75rem; }
.drawer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: grid; place-content: center; }
.drawer__social svg { color: #fff; }
.drawer__social a:hover { background: var(--amber); }
.drawer__social a:hover svg { color: var(--navy-900); }

/* ── 7. Page banner ───────────────────────────────────────── */
.banner {
    position: relative;
    min-height: clamp(380px, 56vh, 620px);
    display: grid; align-items: center;
    margin-top: calc(var(--hdr-h) * -1);
    padding-top: calc(var(--hdr-h) + clamp(3rem, 6vw, 5rem));
    padding-bottom: clamp(3rem, 6vw, 5rem);
    overflow: hidden;
    background: var(--navy-900);
}
.banner__media { position: absolute; inset: -12% 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(5, 11, 22, .94) 8%, rgba(5, 11, 22, .72) 45%, rgba(5, 11, 22, .45) 100%),
        linear-gradient(to top, rgba(5, 11, 22, .85), transparent 55%);
}
.banner__in { position: relative; z-index: 2; color: #fff; }
.banner__title { max-width: 16ch; }
.banner__sub { max-width: 54ch; color: #b9c6d6; margin-top: 1.25rem; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.banner__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to top, var(--paper), transparent); z-index: 2; }
.section--sand + .banner__fade { background: linear-gradient(to top, var(--sand), transparent); }

.crumbs {
    display: flex; align-items: center; gap: .6rem;
    margin-top: 1.75rem;
    font-size: .82rem; color: #93a3b6;
    font-family: var(--ff-display); font-weight: 600;
    letter-spacing: .04em;
}
.crumbs svg { width: .95rem; height: .95rem; color: var(--amber); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #fff; }

/* ── 8. Hero slider ───────────────────────────────────────── */
.hero {
    position: relative;
    min-height: clamp(620px, 94vh, 1000px);
    margin-top: calc(var(--hdr-h) * -1);
    display: grid;
    overflow: hidden;
    background: var(--navy-950);
    isolation: isolate;
}
.hero__stage { position: absolute; inset: 0; }
.hero__slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__img { position: absolute; inset: 0; overflow: hidden; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero__veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(95deg, rgba(5, 11, 22, .93) 0%, rgba(5, 11, 22, .72) 40%, rgba(5, 11, 22, .25) 78%),
        linear-gradient(to top, rgba(5, 11, 22, .92), transparent 50%);
}
.hero__grid-lines {
    position: absolute; inset: 0; z-index: 1;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: calc(100% / 6) 100%;
    pointer-events: none;
}

.hero__in {
    position: relative; z-index: 3;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: calc(var(--hdr-h) + 3rem);
    padding-bottom: clamp(9rem, 16vh, 12rem);
    width: 100%;
}
.hero__copy { max-width: 58ch; color: #fff; }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 5.2rem); max-width: 15ch; }
.hero__text { margin-top: 1.5rem; max-width: 50ch; color: #c2cedd; font-size: clamp(1rem, 1.35vw, 1.17rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

/* controls */
.hero__ui {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero__ui-in { display: flex; align-items: flex-end; gap: clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap; }

.hero__count { font-family: var(--ff-display); color: #fff; display: flex; align-items: baseline; gap: .35rem; }
.hero__count b { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.hero__count i { font-style: normal; color: var(--muted-2); font-size: .9rem; }

.hero__progress { flex: 1; min-width: 120px; height: 2px; background: rgba(255, 255, 255, .18); position: relative; margin-bottom: .55rem; }
.hero__progress span { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--amber); }

.hero__arrows { display: flex; gap: .5rem; }
.hero__arrow {
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-content: center;
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
    transition: background .35s, color .35s, transform .35s var(--ease);
}
.hero__arrow svg { width: 1.2rem; height: 1.2rem; }
.hero__arrow:hover { background: var(--amber); color: var(--navy-900); box-shadow: none; transform: translateY(-3px); }

.hero__thumbs { display: flex; gap: .6rem; margin-left: auto; }
.hero__thumb {
    position: relative;
    width: 86px; height: 56px;
    border-radius: 8px; overflow: hidden;
    opacity: .45;
    transition: opacity .4s, transform .4s var(--ease);
}
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero__thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--amber); transition: box-shadow .4s; }
.hero__thumb.is-active, .hero__thumb:hover { opacity: 1; transform: translateY(-4px); }
.hero__thumb.is-active::after { box-shadow: inset 0 0 0 2.5px var(--amber); }

.hero__scroll {
    position: absolute; left: 50%; bottom: clamp(1.5rem, 3vw, 2.5rem); z-index: 5;
    transform: translateX(-50%);
    display: grid; justify-items: center; gap: .4rem;
    font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    font-family: var(--ff-display); font-weight: 600;
}
.hero__scroll i { display: block; width: 1px; height: 38px; background: linear-gradient(to bottom, var(--amber), transparent); }

/* quick facts strip under hero */
.facts { background: var(--navy-900); color: #fff; position: relative; z-index: 5; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__item {
    padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1rem, 2vw, 2rem);
    border-right: 1px solid var(--line-d);
    display: flex; gap: 1rem; align-items: flex-start;
}
.facts__item:last-child { border-right: 0; }
.facts__icon { width: 2.6rem; height: 2.6rem; border-radius: 10px; background: rgba(242, 164, 28, .14); color: var(--amber); display: grid; place-content: center; flex: none; }
.facts__icon svg { width: 1.3rem; height: 1.3rem; }
.facts__t { font-family: var(--ff-display); font-weight: 700; font-size: 1rem; margin-bottom: .2rem; }
.facts__d { font-size: .86rem; color: #9fb0c4; line-height: 1.55; }

/* ── 9. Marquee ───────────────────────────────────────────── */
.marquee {
    background: var(--amber);
    color: var(--navy-900);
    padding: 1.05rem 0;
    overflow: hidden;
    white-space: nowrap;
}
.marquee__track { display: inline-flex; gap: 2.5rem; align-items: center; will-change: transform; }
.marquee__item {
    display: inline-flex; align-items: center; gap: 2.5rem;
    font-family: var(--ff-display); font-weight: 800;
    font-size: clamp(.95rem, 1.6vw, 1.2rem);
    letter-spacing: .04em; text-transform: uppercase;
}
.marquee__item svg { width: 1.1rem; height: 1.1rem; stroke-width: 2.4; }

/* ── 10. Intro / about split ──────────────────────────────── */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.split--rev .split__media { order: 2; }

.collage { position: relative; }
.collage__main {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.collage__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.collage__side {
    position: absolute; right: -8%; bottom: -12%;
    width: 46%;
    border-radius: var(--r);
    overflow: hidden;
    border: 8px solid var(--paper);
    box-shadow: var(--shadow-lg);
}
.section--sand .collage__side { border-color: var(--sand); }
.collage__side img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.collage__badge {
    position: absolute; left: -6%; top: -6%;
    background: var(--amber);
    color: var(--navy-900);
    border-radius: var(--r);
    padding: 1.1rem 1.4rem;
    font-family: var(--ff-display);
    box-shadow: var(--shadow);
    text-align: center;
}
.collage__badge b { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1; }
.collage__badge span { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; margin-top: .35rem; }

.ticks { display: grid; gap: .85rem; margin-top: 2rem; }
.ticks li { display: flex; gap: .85rem; align-items: flex-start; font-size: .98rem; }
.ticks svg { width: 1.15rem; height: 1.15rem; color: var(--amber); flex: none; margin-top: .3rem; stroke-width: 2.6; }

/* counters */
.counters {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
}
.counter__n {
    font-family: var(--ff-display); font-weight: 800;
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    line-height: 1; letter-spacing: -.04em;
    color: var(--ink);
}
.section--dark .counter__n, .stats .counter__n { color: #fff; }
.counter__n em { color: var(--amber); }
.counter__l {
    margin-top: .6rem; font-size: .84rem; color: var(--muted);
    letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
.section--dark .counter__l, .stats .counter__l { color: #9fb0c4; }

/* ── 11. Services ─────────────────────────────────────────── */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(1rem, 1.8vw, 1.5rem);
}
.svc { grid-column: span 2; }
.svc--wide { grid-column: span 3; }

.svc__card {
    position: relative;
    display: block;
    height: 100%;
    min-height: 340px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--navy-900);
    isolation: isolate;
}
.svc--wide .svc__card { min-height: 420px; }
.svc__img { position: absolute; inset: 0; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc__card:hover .svc__img img { transform: scale(1.08); }
.svc__veil {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5, 11, 22, .95) 10%, rgba(5, 11, 22, .55) 45%, rgba(5, 11, 22, .15) 100%);
    transition: background .5s;
}
.svc__card:hover .svc__veil { background: linear-gradient(to top, rgba(5, 11, 22, .97) 15%, rgba(10, 22, 40, .75) 55%, rgba(10, 22, 40, .35) 100%); }
.svc__body {
    position: relative; z-index: 2;
    height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: clamp(1.4rem, 2.4vw, 2.1rem);
    color: #fff;
}
.svc__no {
    position: absolute; top: clamp(1.2rem, 2.2vw, 1.9rem); right: clamp(1.2rem, 2.2vw, 1.9rem);
    font-family: var(--ff-display); font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: rgba(255, 255, 255, .13);
    line-height: 1;
    transition: color .5s;
}
.svc__card:hover .svc__no { color: rgba(242, 164, 28, .38); }
.svc__icon {
    width: 3rem; height: 3rem; border-radius: 12px;
    background: var(--amber); color: var(--navy-900);
    display: grid; place-content: center;
    margin-bottom: 1.1rem;
    transform: translateY(0);
    transition: transform .5s var(--ease);
}
.svc__icon svg { width: 1.5rem; height: 1.5rem; stroke-width: 1.8; }
.svc__card:hover .svc__icon { transform: translateY(-5px) rotate(-6deg); }
.svc__t { font-size: clamp(1.25rem, 1.9vw, 1.65rem); margin-bottom: .55rem; }
.svc__d { font-size: .93rem; color: #b9c6d6; margin: 0; max-width: 42ch; }
.svc__go {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-top: 1.1rem;
    font-family: var(--ff-display); font-weight: 700; font-size: .85rem;
    color: var(--amber);
    opacity: 0; transform: translateY(8px);
    transition: .45s var(--ease);
}
.svc__go svg { width: 1rem; height: 1rem; stroke-width: 2.2; }
.svc__card:hover .svc__go { opacity: 1; transform: none; }

/* service detail rows (services page) */
.svc-row { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-row:first-of-type { border-top: 0; }
.svc-row__grid {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.svc-row:nth-child(even) .svc-row__media { order: 2; }
.svc-row__media { position: relative; }
.svc-row__main { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.svc-row__main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc-row__alt {
    position: absolute; width: 42%; bottom: -14%; right: -5%;
    border: 8px solid var(--paper); border-radius: var(--r);
    overflow: hidden; box-shadow: var(--shadow-lg);
}
.svc-row:nth-child(even) .svc-row__alt { right: auto; left: -5%; }
.svc-row__alt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-row__body { position: relative; z-index: 1; }
.svc-row__no {
    position: absolute; top: -3.25rem; left: -1.25rem;
    font-family: var(--ff-display); font-weight: 800;
    font-size: clamp(4rem, 9vw, 7.5rem); line-height: 1;
    color: var(--sand-2); z-index: -1;
}
.svc-row__lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); font-weight: 500; color: var(--ink-2); margin-bottom: 1rem; }
.svc-row__points {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1.5rem; margin-top: 1.75rem;
}
.svc-row__points li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.svc-row__points svg { width: 1.05rem; height: 1.05rem; color: var(--amber); stroke-width: 2.6; flex: none; margin-top: .35rem; }

/* ── 12. Projects ────────────────────────────────── */
.proj-media {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--navy-900);
    box-shadow: var(--shadow-lg);
}
.proj-media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}
.proj-media:hover img { transform: scale(1.05); }
.proj-media::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    pointer-events: none;
}
.proj-media__year {
    position: absolute; top: 1rem; left: 1rem; z-index: 2;
    padding: .4rem .85rem;
    border-radius: 100px;
    background: var(--amber);
    color: var(--navy-900);
    font-family: var(--ff-display); font-size: .72rem; font-weight: 700;
    letter-spacing: .14em;
}

.proj-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
}
.proj-row + .proj-row {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid var(--line);
}
.section--dark .proj-row + .proj-row { border-color: var(--line-d); }
.proj-row--rev { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.proj-row--rev .proj-row__media { order: 2; }

.proj-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .9rem; }
.proj-t { margin-bottom: .6rem; }
.proj-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }

/* Card grid */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 1.8vw, 1.5rem);
}
.proj-card {
    position: relative;
    display: block;
    min-height: 380px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--navy-900);
    isolation: isolate;
}
.proj-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}
.proj-card:hover img { transform: scale(1.07); }
.proj-card__veil {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5, 11, 22, .95) 12%, rgba(5, 11, 22, .52) 50%, rgba(5, 11, 22, .14) 100%);
    transition: background .5s;
}
.proj-card:hover .proj-card__veil { background: linear-gradient(to top, rgba(5, 11, 22, .97) 18%, rgba(10, 22, 40, .72) 58%, rgba(10, 22, 40, .3) 100%); }
.proj-card__body {
    position: relative; z-index: 2;
    height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: clamp(1.3rem, 2.2vw, 1.9rem);
    color: #fff;
}
.proj-card__t { font-size: clamp(1.1rem, 1.5vw, 1.35rem); margin-bottom: .45rem; }
.proj-card__d { font-size: .9rem; color: #b9c6d6; margin: 0; }
.proj-card__go {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-top: 1.1rem;
    font-family: var(--ff-display); font-weight: 700; font-size: .85rem;
    color: var(--amber);
    opacity: 0; transform: translateY(8px);
    transition: .45s var(--ease);
}
.proj-card__go svg { width: 1rem; height: 1rem; stroke-width: 2.2; }
.proj-card:hover .proj-card__go { opacity: 1; transform: none; }

.chip {
    display: inline-flex; align-items: center; gap: .45rem;
    line-height: 1.35;
    padding: .35rem .8rem;
    border-radius: 100px;
    background: var(--sand-2);
    font-family: var(--ff-display); font-size: .72rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.chip svg { width: .85rem; height: .85rem; stroke-width: 2.8; flex: none; color: var(--amber-3); }
.chip--amber { background: rgba(242, 164, 28, .18); color: var(--amber-3); }
.section--dark .chip { background: rgba(255, 255, 255, .1); color: #d6dfea; }
.section--dark .chip svg { color: var(--amber); }
.proj-card .chip { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); }
.proj-card .chip svg { color: var(--amber); }

/* ── 13. Stats band ───────────────────────────────────────── */
.stats {
    position: relative;
    padding-block: clamp(4rem, 8vw, 7rem);
    overflow: hidden;
    color: #fff;
    background: var(--navy-900);
}
.stats__media { position: absolute; inset: -12% 0; }
.stats__media img { width: 100%; height: 100%; object-fit: cover; }
.stats__veil { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(5, 11, 22, .95), rgba(10, 22, 40, .86)); }
.stats__in { position: relative; z-index: 2; }

/* ── 14. Process ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.step {
    position: relative;
    padding: clamp(1.6rem, 2.6vw, 2.2rem);
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
    overflow: hidden;
}
.section--sand .step { background: var(--paper); }
.step::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: var(--amber); transform: scaleX(0); transform-origin: left;
    transition: transform .55s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.step:hover::before { transform: scaleX(1); }
.step__no {
    font-family: var(--ff-display); font-weight: 800; font-size: 2.4rem;
    line-height: 1; color: var(--sand-2); margin-bottom: 1rem;
    transition: color .4s;
}
.step:hover .step__no { color: var(--amber); }
.step__t { font-size: 1.15rem; margin-bottom: .5rem; }
.step__d { font-size: .92rem; color: var(--muted); margin: 0; }

/* ── 15. Why / testimonials ───────────────────────────────── */
.why-list { display: grid; gap: 1.1rem; }
.why-item {
    display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
    padding: 1.3rem 1.4rem;
    border-radius: var(--r);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-d);
    transition: background .4s, transform .4s var(--ease);
}
.why-item:hover { background: rgba(255, 255, 255, .08); transform: translateX(6px); }
.why-item__i { width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--amber); color: var(--navy-900); display: grid; place-content: center; }
.why-item__i svg { width: 1.3rem; height: 1.3rem; stroke-width: 2.2; }
.why-item__t { font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem; color: #fff; margin-bottom: .2rem; }
.why-item__d { font-size: .9rem; color: #9fb0c4; margin: 0; }

.quotes { position: relative; }
.quote {
    display: none;
    text-align: center;
    max-width: 62rem; margin-inline: auto;
}
.quote.is-active { display: block; }
.quote__mark { width: 3rem; height: 3rem; color: var(--amber); margin: 0 auto 1.5rem; }
.quote__t {
    font-family: var(--ff-display); font-weight: 600;
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    line-height: 1.45; letter-spacing: -.02em;
    margin-bottom: 1.75rem;
}
.quote__who { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.quote__n { font-family: var(--ff-display); font-weight: 700; }
.quote__r { font-size: .85rem; color: var(--muted); }
.section--dark .quote__r { color: #9fb0c4; }
.quotes__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 2.25rem; }
.quotes__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: .35s var(--ease); }
.section--dark .quotes__dot { background: rgba(255, 255, 255, .22); }
.quotes__dot.is-active { background: var(--amber); width: 30px; border-radius: 100px; }

/* ── 16. CTA band ─────────────────────────────────────────── */
.cta {
    position: relative; overflow: hidden;
    padding-block: clamp(4.5rem, 9vw, 8rem);
    text-align: center; color: #fff;
    background: var(--navy-950);
}
.cta__media { position: absolute; inset: -12% 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5, 11, 22, .9), rgba(5, 11, 22, .82)); }
.cta__in { position: relative; z-index: 2; display: grid; justify-items: center; }
.cta__title { max-width: 20ch; }
.cta__text { margin-top: 1.25rem; max-width: 56ch; color: #b9c6d6; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 2.25rem; }

/* ── 17. Footer ───────────────────────────────────────────── */
.footer { background: var(--navy-950); color: #9fb0c4; padding-top: clamp(3.5rem, 7vw, 6rem); font-size: .94rem; }
.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.2fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.brand--footer { margin-bottom: 1.4rem; }
.footer__about { max-width: 44ch; line-height: 1.75; }
.footer__badge { display: inline-flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--amber-2); margin-top: 1rem; }
.footer__badge svg { width: 1.1rem; height: 1.1rem; }
.footer__social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .06); display: grid; place-content: center; transition: .35s var(--ease); }
.footer__social svg { width: 1.1rem; height: 1.1rem; }
.footer__social a:hover { background: var(--amber); color: var(--navy-900); transform: translateY(-3px); }

.footer__h {
    font-family: var(--ff-display); font-size: .82rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase; color: #fff;
    margin-bottom: 1.3rem;
}
.footer__list li + li { margin-top: .6rem; }
.footer__list a { display: inline-flex; align-items: center; gap: .5rem; transition: color .3s, gap .35s var(--ease); }
.footer__list svg { width: .9rem; height: .9rem; color: var(--amber); opacity: .6; }
.footer__list a:hover { color: #fff; gap: .8rem; }

.footer__contact li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; line-height: 1.6; }
.footer__contact li + li { margin-top: 1rem; }
.footer__contact svg { width: 1.15rem; height: 1.15rem; color: var(--amber); margin-top: .22rem; }
.footer__contact a:hover { color: #fff; }

.footer__bar {
    display: flex; flex-wrap: wrap; gap: 1rem;
    align-items: center; justify-content: space-between;
    padding-block: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .85rem;
}
.footer__bar p { margin: 0; }
.footer__bar-right { display: flex; gap: .6rem; }
.footer__bar a:hover { color: #fff; }

/* ── 18. Floating actions + lightbox ──────────────────────── */
.float {
    position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); z-index: 650;
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-content: center;
    box-shadow: var(--shadow);
    transition: transform .4s var(--ease), opacity .4s, background .3s;
}
.float svg { width: 1.45rem; height: 1.45rem; }
.float--mail { bottom: clamp(1rem, 2.5vw, 1.75rem); background: var(--amber); color: var(--navy-900); }
.float--mail:hover { transform: scale(1.1); background: var(--amber-2); }
.float--top {
    bottom: calc(clamp(1rem, 2.5vw, 1.75rem) + 64px);
    background: var(--navy-900); color: #fff;
    opacity: 0; pointer-events: none;
}
.float--top svg { transform: rotate(-90deg); width: 1.25rem; height: 1.25rem; }
.float--top.is-on { opacity: 1; pointer-events: auto; }
.float--top:hover { background: var(--amber); color: var(--navy-900); transform: translateY(-4px); }

.lightbox {
    position: fixed; inset: 0; z-index: 950;
    background: rgba(4, 9, 18, .96);
    display: grid; place-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
    padding: clamp(1rem, 5vw, 3rem);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; text-align: center; }
.lightbox__fig img {
    max-width: min(1200px, 92vw); max-height: 78vh;
    width: auto; border-radius: var(--r);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}
.lightbox__fig figcaption { color: #c2cedd; margin-top: 1rem; font-size: .92rem; }
.lightbox__close, .lightbox__nav {
    position: absolute; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-content: center; color: #fff;
    background: rgba(255, 255, 255, .1);
    transition: background .3s, transform .3s;
}
.lightbox__close svg, .lightbox__nav svg { width: 1.3rem; height: 1.3rem; }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__nav--prev { left: clamp(.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--amber); color: var(--navy-900); }

/* ── 19. Gallery ──────────────────────────────────────────── */
.gal { columns: 3; column-gap: clamp(.9rem, 1.6vw, 1.4rem); }
.gal__item {
    break-inside: avoid;
    margin-bottom: clamp(.9rem, 1.6vw, 1.4rem);
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    display: block;
    background: var(--navy-900);
    cursor: zoom-in;
}
.gal__item img { width: 100%; transition: transform .9s var(--ease), filter .6s; }
.gal__item:hover img { transform: scale(1.06); }
.gal__cap {
    position: absolute; inset: auto 0 0 0;
    padding: 2.5rem 1.1rem 1.1rem;
    background: linear-gradient(to top, rgba(5, 11, 22, .92), transparent);
    color: #fff; font-size: .88rem; font-weight: 500;
    transform: translateY(12px); opacity: 0;
    transition: .45s var(--ease);
}
.gal__item:hover .gal__cap { transform: none; opacity: 1; }
.gal__zoom {
    position: absolute; top: 1rem; right: 1rem;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--amber); color: var(--navy-900);
    display: grid; place-content: center;
    opacity: 0; transform: scale(.7);
    transition: .45s var(--ease);
}
.gal__zoom svg { width: 1.1rem; height: 1.1rem; }
.gal__item:hover .gal__zoom { opacity: 1; transform: none; }

/* ── 20. Contact ──────────────────────────────────────────── */
.contact-grid {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}
.icard {
    display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
    padding: 1.5rem;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--paper);
    transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.icard + .icard { margin-top: 1rem; }
.icard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.icard__i { width: 2.9rem; height: 2.9rem; border-radius: 12px; background: var(--navy-900); color: var(--amber); display: grid; place-content: center; }
.icard__i svg { width: 1.35rem; height: 1.35rem; }
.icard__t { font-family: var(--ff-display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .35rem; }
.icard__v { font-size: 1rem; color: var(--ink); line-height: 1.6; }
.icard__v a:hover { color: var(--amber-3); }

.form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 3.5vw, 2.75rem);
    box-shadow: var(--shadow);
}
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--ff-display); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.field label span { color: var(--amber-3); }
.field input, .field select, .field textarea {
    width: 100%;
    font: inherit; font-size: .96rem;
    color: var(--ink);
    background: var(--sand);
    border: 1.5px solid transparent;
    border-radius: var(--r-sm);
    padding: .9rem 1rem;
    transition: border-color .3s, background .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6a7a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: var(--paper); }
.field.has-error input, .field.has-error textarea { border-color: #d64545; background: #fdf3f3; }
.field__err { font-size: .82rem; color: #c23030; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert {
    display: flex; gap: .9rem; align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: var(--r-sm);
    margin-bottom: 1.5rem;
    font-size: .94rem;
}
.alert svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .15rem; }
.alert--success { background: #e9f7ef; color: #1c6b40; border: 1px solid #bfe6cf; }
.alert--error { background: #fdf0f0; color: #a62828; border: 1px solid #f3cccc; }

.map {
    border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    line-height: 0;
    background: var(--sand-2);
}
.map iframe { width: 100%; height: clamp(320px, 42vw, 460px); border: 0; filter: grayscale(.25) contrast(1.05); }

/* ── 404 ──────────────────────────────────────────────────── */
.nf { min-height: 72vh; display: grid; place-content: center; text-align: center; padding-block: 6rem; }
.nf__big {
    font-family: var(--ff-display); font-weight: 800;
    font-size: clamp(7rem, 22vw, 16rem); line-height: .85;
    letter-spacing: -.06em;
    background: linear-gradient(180deg, var(--navy-900), var(--sand-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── 21. Motion helpers ───────────────────────────────────── */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.word__i { display: inline-block; }
html.js .word__i { transform: translateY(115%); }
html.js [data-anim="fade"] { opacity: 0; transform: translateY(28px); }
html.js [data-anim="img"] { clip-path: inset(0 0 100% 0); }
html.js [data-anim="scale"] { opacity: 0; transform: scale(.94); }
html.js .is-revealed [data-anim],
html.js [data-anim].is-revealed { opacity: 1; transform: none; clip-path: none; }

/* ── 22. Responsive ───────────────────────────────────────── */
@media (max-width: 1180px) {
    .svc { grid-column: span 3; }
    .svc--wide { grid-column: span 3; }
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
    :root { --hdr-h: 70px; }
    .nav { display: none; }
    .burger { display: block; }
    .header__cta { display: none; }
    .topbar__item--hide { display: none; }
    .hero__thumbs { display: none; }
    .facts__grid { grid-template-columns: repeat(2, 1fr); }
    .facts__item:nth-child(2n) { border-right: 0; }
    .facts__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .gal { columns: 2; }
    .head--split { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 860px) {
    .split, .svc-row__grid, .ba-feature, .contact-grid { grid-template-columns: 1fr; }
    .ba-feature--rev { grid-template-columns: 1fr; }
    .split--rev .split__media,
    .svc-row:nth-child(even) .svc-row__media,
    .ba-feature--rev .ba-feature__media { order: 0; }
    .collage { margin-bottom: 4rem; }
    .collage__side { right: 0; bottom: -10%; width: 40%; }
    .svc-row__alt { position: relative; width: 60%; right: auto !important; left: auto !important; bottom: auto; margin: -3rem auto 0; }
    .counters { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .quote__t { font-size: 1.2rem; }
}

@media (max-width: 680px) {
    :root { --gut: 1.25rem; }
    .topbar__items { gap: 1rem; font-size: .75rem; }
    .topbar__item span { display: none; }
    .topbar__item svg { width: 1.05rem; height: 1.05rem; }
    .hero { min-height: 88vh; }
    .hero__in { padding-bottom: 11rem; }
    .hero__ui-in { gap: .9rem; }
    .hero__count b { font-size: 1.6rem; }
    .hero__arrow { width: 44px; height: 44px; }
    .hero__scroll { display: none; }
    .facts__grid { grid-template-columns: 1fr; }
    .facts__item { border-right: 0; border-bottom: 1px solid var(--line-d); }
    .svc, .svc--wide { grid-column: span 6; }
    .svc__card, .svc--wide .svc__card { min-height: 300px; }
    .steps { grid-template-columns: 1fr; }
    .svc-row__points { grid-template-columns: 1fr; }
    .gal { columns: 1; }
    .form__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bar { justify-content: center; text-align: center; }
    .ba__grip { width: 46px; height: 46px; }
    .btn { padding: .95rem 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    /* No movement, no parallax, no drifting decorations — but a plain
       cross-fade is still comfortable, so content is not left static. */
    html.js .word__i            { transform: none !important; opacity: 0; }
    html.js [data-anim="fade"],
    html.js [data-anim="scale"] { transform: none !important; }
    html.js [data-anim="img"]   { clip-path: none !important; opacity: 0; }

    [data-deco-left]::before,
    [data-deco-right]::after { transform: translateY(-50%) !important; }

    /* Scripts blocked entirely: nothing may stay invisible. */
    html:not(.js) .word__i,
    html:not(.js) [data-anim] { opacity: 1 !important; }
}

/* ── Timeline (about page) ────────────────────────────────── */
.timeline { position: relative; padding-left: 0; }
.timeline::before {
    content: ""; position: absolute; left: 7.25rem; top: .75rem; bottom: .75rem;
    width: 1px; background: linear-gradient(to bottom, transparent, var(--line-d) 12%, var(--line-d) 88%, transparent);
}
.tl {
    position: relative;
    display: grid; grid-template-columns: 6rem auto 1fr;
    gap: 0 1.75rem;
    align-items: start;
    padding-block: 1.35rem;
}
.tl__y {
    font-family: var(--ff-display); font-weight: 800;
    font-size: 1.15rem; color: var(--amber);
    text-align: right; line-height: 1.4;
    letter-spacing: -.01em;
}
.tl__dot {
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--navy-900);
    box-shadow: inset 0 0 0 2.5px var(--amber);
    margin-top: .45rem; margin-left: .55rem;
    position: relative; z-index: 2;
    transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.tl:hover .tl__dot { box-shadow: inset 0 0 0 6px var(--amber); transform: scale(1.18); }
.tl__t { font-size: 1.1rem; color: #fff; margin-bottom: .3rem; }
.tl__d { font-size: .94rem; color: #9fb0c4; margin: 0; max-width: 62ch; }

@media (max-width: 680px) {
    .timeline::before { left: .38rem; }
    .tl { grid-template-columns: auto 1fr; gap: 0 1.1rem; }
    .tl__y { grid-column: 2; text-align: left; margin-bottom: .2rem; }
    .tl__dot { grid-row: 1 / span 3; margin-left: 0; }
    .tl__body { grid-column: 2; }
}

/* ── Gallery strip tweak on narrow screens ────────────────── */
@media (max-width: 1024px) { .gal[style*="columns:4"] { columns: 2 !important; } }
@media (max-width: 680px)  { .gal[style*="columns:4"] { columns: 1 !important; } }

/* Head split helper link spacing */
.head--split .lead .link { display: inline-flex; }

/* ── Heading → body spacing ───────────────────────────────── */
h1 + .lead, h2 + .lead, h3 + .lead,
h1 + p, h2 + p, h3 + p,
h2 + .svc-row__lead { margin-top: 1.35rem; }
.head h2 + .lead { margin-top: 1.5rem; }
.ba-card__t + .lead { margin-top: 1rem; }
.svc__t + .svc__d { margin-top: 0; }
.step__t + .step__d, .why-item__t + .why-item__d, .tl__t + .tl__d { margin-top: 0; }

/* ── Span-based label/value stacks ────────────────────────── */
.icard__t, .icard__v,
.facts__t, .facts__d,
.why-item__t { display: block; }

/* ============================================================
   Section decorations — SVG patterns placed in the empty
   side margins through CSS ::before / ::after pseudo-elements.

   Usage:  <section class="section" data-deco-left="ticks"
                                    data-deco-right="dots">

   The shape is applied as a MASK, so one SVG file works on both
   light and dark sections — the colour comes from --deco.
   On narrow viewports the gutter disappears and the decoration
   slides off-screen by itself.
   ============================================================ */
:root {
    --deco: rgba(16, 24, 40, .13);
    --deco-shift: 0px;
}
.section--dark,
.stats,
.cta,
.footer,
.banner { --deco: rgba(255, 255, 255, .12); }

.section--sand { --deco: rgba(16, 24, 40, .11); }

[data-deco-left],
[data-deco-right] { position: relative; }

[data-deco-left]::before,
[data-deco-right]::after {
    content: "";
    position: absolute;
    top: 50%;
    z-index: 0;
    pointer-events: none;
    background-color: var(--deco);
    transform: translateY(calc(-50% + var(--deco-shift)));
    -webkit-mask-repeat: no-repeat;         mask-repeat: no-repeat;
    -webkit-mask-size: contain;             mask-size: contain;
    -webkit-mask-position: center;          mask-position: center;
}

/* Park them in the outer gutter — they bleed off-screen when it narrows. */
[data-deco-left]::before { left:  calc((100vw - var(--shell)) / 2 - 172px); }
[data-deco-right]::after { right: calc((100vw - var(--shell)) / 2 - 172px); }

/* ── The shapes ───────────────────────────────────────────── */
[data-deco-left="ticks"]::before,
[data-deco-right="ticks"]::after {
    width: 60px; height: 320px;
    -webkit-mask-image: url("../img/deco/ticks.svg"); mask-image: url("../img/deco/ticks.svg");
}
[data-deco-left="dots"]::before,
[data-deco-right="dots"]::after {
    width: 184px; height: 184px;
    -webkit-mask-image: url("../img/deco/dots.svg"); mask-image: url("../img/deco/dots.svg");
}
[data-deco-left="chevrons"]::before,
[data-deco-right="chevrons"]::after {
    width: 140px; height: 200px;
    -webkit-mask-image: url("../img/deco/chevrons.svg"); mask-image: url("../img/deco/chevrons.svg");
}
[data-deco-left="grid"]::before,
[data-deco-right="grid"]::after {
    width: 200px; height: 200px;
    -webkit-mask-image: url("../img/deco/grid.svg"); mask-image: url("../img/deco/grid.svg");
}
[data-deco-left="plus"]::before,
[data-deco-right="plus"]::after {
    width: 184px; height: 184px;
    -webkit-mask-image: url("../img/deco/plus.svg"); mask-image: url("../img/deco/plus.svg");
}
[data-deco-left="hex"]::before,
[data-deco-right="hex"]::after {
    width: 170px; height: 212px;
    -webkit-mask-image: url("../img/deco/hex.svg"); mask-image: url("../img/deco/hex.svg");
}
[data-deco-left="contour"]::before,
[data-deco-right="contour"]::after {
    width: 200px; height: 180px;
    -webkit-mask-image: url("../img/deco/contour.svg"); mask-image: url("../img/deco/contour.svg");
}
[data-deco-left="compass"]::before,
[data-deco-right="compass"]::after {
    width: 200px; height: 200px;
    -webkit-mask-image: url("../img/deco/compass.svg"); mask-image: url("../img/deco/compass.svg");
}
[data-deco-left="beam"]::before,
[data-deco-right="beam"]::after {
    width: 150px; height: 220px;
    -webkit-mask-image: url("../img/deco/beam.svg"); mask-image: url("../img/deco/beam.svg");
}
[data-deco-left="wave"]::before,
[data-deco-right="wave"]::after {
    width: 200px; height: 180px;
    -webkit-mask-image: url("../img/deco/wave.svg"); mask-image: url("../img/deco/wave.svg");
}

/* Amber accent variant */
[data-deco-accent] { --deco: rgba(242, 164, 28, .3); }

/* No gutter to live in — hide them rather than crowd the content. */
@media (max-width: 1100px) {
    [data-deco-left]::before,
    [data-deco-right]::after { display: none; }
}

/* ── Projects: responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
    .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .proj-row, .proj-row--rev { grid-template-columns: 1fr; }
    .proj-row--rev .proj-row__media { order: 0; }
}
@media (max-width: 680px) {
    .proj-grid { grid-template-columns: 1fr; }
    .proj-card { min-height: 330px; }
}

/* ── Single-page helpers ──────────────────────────────────── */
section[id], article[id] { scroll-margin-top: 96px; }
.anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.mt-sm { margin-top: .75rem; }
.mt-md { margin-top: 1.25rem; }
.mt-lg { margin-top: 1.75rem; }
.mt-xl { margin-top: 2.25rem; }
.mb-sm { margin-bottom: .75rem; }
.mb-md { margin-bottom: 1.75rem; }
.mb-lg { margin-bottom: 2rem; }
.head.mb-lg { margin-bottom: 3rem; }

.form__note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* The band component reuses .cta but is left-aligned inside the page flow */
.cta .eyebrow { justify-content: center; }

/* ── 26. Inner page banner ────────────────────────────────── */
.phero {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--navy-900); color: #fff;
    padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.75rem, 5vw, 4.5rem);
}
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.phero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, var(--navy-900) 28%, rgba(10, 22, 40, .72) 70%, rgba(10, 22, 40, .5));
}
.phero h1 {
    color: #fff; max-width: 17ch;
    font-size: clamp(2rem, 4.8vw, 3.5rem); letter-spacing: -.03em;
}
.phero .lead { color: #b7c4d4; max-width: 60ch; }
.phero__meta {
    display: inline-flex; align-items: center; gap: .55rem;
    margin-top: 2rem; padding: .55rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
    font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--amber-2);
}
.phero__meta svg { width: 1rem; height: 1rem; }

.crumb {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    margin-bottom: 1.5rem; font-size: .84rem; color: #8fa1b8;
}
.crumb a { color: #cedcec; }
.crumb a:hover { color: var(--amber-2); }
.crumb svg { width: .85rem; height: .85rem; opacity: .55; }

/* ── 27. Legal pages ──────────────────────────────────────── */
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.legal__toc { position: sticky; top: calc(var(--hdr-h) + 1.5rem); }
.legal__toc-h {
    font-family: var(--ff-display); font-weight: 700; font-size: .76rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2);
    padding-bottom: .9rem; border-bottom: 1px solid var(--line); margin: 0;
}
.legal__toc-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.legal__toc-list a {
    display: flex; gap: .7rem; align-items: baseline;
    padding: .5rem 0; font-size: .92rem; color: var(--muted);
    border-left: 2px solid transparent; padding-left: .85rem; margin-left: -.85rem;
    transition: color .3s var(--ease), border-color .3s var(--ease);
}
.legal__toc-list a:hover { color: var(--ink); }
.legal__toc-list a.is-active { color: var(--ink); border-left-color: var(--amber); font-weight: 600; }
.legal__toc-no { font-family: var(--ff-display); font-size: .72rem; color: var(--muted-2); flex: none; }
.legal__toc-list a.is-active .legal__toc-no { color: var(--amber-3); }

.legal__aside-cta {
    margin-top: 2rem; padding: 1.25rem; border-radius: var(--r);
    background: var(--sand); border: 1px solid var(--line);
}
.legal__aside-cta p { margin: 0 0 .85rem; font-size: .9rem; color: var(--muted); }

/* Prose */
.prose { max-width: 74ch; }
.prose__sec { scroll-margin-top: calc(var(--hdr-h) + 2rem); }
.prose__sec + .prose__sec { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.prose h2 {
    display: flex; gap: .85rem; align-items: baseline;
    font-size: clamp(1.25rem, 2.1vw, 1.6rem); letter-spacing: -.02em;
    padding-bottom: .9rem; border-bottom: 1px solid var(--line);
}
.prose__no { font-size: .82rem; color: var(--amber-3); font-weight: 700; flex: none; }
.prose p { color: var(--muted); line-height: 1.8; margin: 1.1rem 0 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--amber-3); }
.prose ul { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.prose ul li {
    position: relative; padding-left: 1.6rem; margin-top: .75rem;
    color: var(--muted); line-height: 1.75;
}
.prose ul li::before {
    content: ""; position: absolute; left: .25rem; top: .62em;
    width: 7px; height: 7px; border-radius: 2px;
    background: var(--amber); transform: rotate(45deg);
}

.prose__foot {
    margin-top: clamp(2.75rem, 5vw, 4rem); padding-top: 2rem;
    border-top: 2px solid var(--ink);
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    align-items: center; justify-content: space-between;
}
.prose__foot p { margin: 0; font-size: .92rem; line-height: 1.7; }

@media (max-width: 980px) {
    .legal { grid-template-columns: 1fr; }
    .legal__toc {
        position: static; padding: 1.25rem; border-radius: var(--r);
        background: var(--sand); border: 1px solid var(--line);
    }
    .legal__toc-list { columns: 2; column-gap: 1.5rem; }
    .legal__toc-list li { break-inside: avoid; }
    .legal__aside-cta { background: var(--paper); }
}
@media (max-width: 560px) {
    .legal__toc-list { columns: 1; }
    .prose__foot { flex-direction: column; align-items: flex-start; }
}

/* ── 28. Pakistan map (where we work) ─────────────────────── */
.pkmap { display: grid; justify-items: center; }
.pkmap__svg {
    display: block; width: 100%; max-width: 820px; height: auto;
    overflow: visible;
}
.pkmap__land {
    fill: url(#pkLand);
    stroke: rgba(242, 164, 28, .55);
    stroke-width: 2.5; stroke-linejoin: round;
    filter: drop-shadow(0 34px 60px rgba(0, 0, 0, .5));
}
.pin__dot { fill: var(--amber); stroke: var(--navy-900); stroke-width: 3; transition: fill .3s var(--ease); }
.pin__halo {
    fill: none; stroke: rgba(242, 164, 28, .55); stroke-width: 2;
    transform-box: fill-box; transform-origin: center;
    animation: pkPulse 3.4s var(--ease) infinite;
    animation-delay: calc(var(--i) * .26s);
}
.pin__label {
    fill: #cfdbea; font-family: var(--ff-display); font-weight: 600;
    font-size: 25px; letter-spacing: .01em; dominant-baseline: middle;
}
.pin:hover .pin__dot { fill: #fff; }
.pin:hover .pin__label { fill: #fff; }

@keyframes pkPulse {
    0%        { transform: scale(.4); opacity: .85; }
    70%, 100% { transform: scale(1.2); opacity: 0; }
}

.pkmap__legend {
    display: none; list-style: none; margin: 1.75rem 0 0; padding: 0;
    flex-wrap: wrap; gap: .55rem; justify-content: center;
}
.pkmap__legend li {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .8rem; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .15);
    font-size: .8rem; color: #aebaca;
}
.pkmap__legend span { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }

@media (max-width: 820px) {
    .pin__label { display: none; }
    .pkmap__legend { display: flex; }
    .pkmap__svg { max-width: 440px; }
}
