/* ============================================================
   RESET & TOKENS
============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    color: #000;
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

:root {
    --pad: clamp(16px, 5vw, 80px);
    --ff-m: 'IBM Plex Mono', monospace;
    --max: 1320px;
    --muted: rgba(0, 0, 0, .58);
    --muted-inv: rgba(255, 255, 255, .62);
    --line: rgba(0, 0, 0, .14);
    --line-inv: rgba(255, 255, 255, .20);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

/* ============================================================
   PRELOADER
============================================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: opacity .6s var(--ease), visibility .6s var(--ease);
}

#preloader.done {
    opacity: 0;
    visibility: hidden;
}

.pre-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    animation: preFadeIn .6s var(--ease-out) .1s forwards;
}

.pre-logo__mark {
    height: 44px;
    padding: 0 14px;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: .04em;
}

.pre-logo__name {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .18em;
}

.pre-bar {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, .15);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: preFadeIn .6s var(--ease-out) .35s forwards;
}

.pre-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #fff;
    animation: preFill 1.6s var(--ease) .5s forwards;
}

.pre-status {
    font-family: var(--ff-m);
    font-size: .68rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    opacity: 0;
    animation: preFadeIn .6s var(--ease-out) .55s forwards;
}

@keyframes preFadeIn {
    to {
        opacity: 1
    }
}

@keyframes preFill {
    to {
        width: 100%
    }
}

/* ============================================================
   TYPE
============================================================ */
.eyebrow {
    font-family: var(--ff-m);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    opacity: .62;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: .6;
    flex-shrink: 0;
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.07;
}

h2 {
    font-size: clamp(1.9rem, 4.4vw, 3.3rem);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.section-intro {
    max-width: 560px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

#cases .section-intro,
#cases h2,
#cases .eyebrow {
    color: #fff;
}

#cases .section-intro {
    color: var(--muted-inv);
}

#cases .eyebrow {
    opacity: .6;
}

/* ============================================================
   TEXTURE
============================================================ */
.texture {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.texture::before {
    content: '';
    position: absolute;
    inset: -30%;
    background-size: 64px 64px;
    animation: gridDrift 70s linear infinite alternate;
}

.texture--dark::before {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, .05) 1px, transparent 1px);
}

.texture--light::before {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
}

@keyframes gridDrift {
    from {
        transform: translate(0, 0)
    }

    to {
        transform: translate(64px, 64px)
    }
}

.ghost {
    position: absolute;
    font-weight: 900;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    font-size: clamp(8rem, 26vw, 22rem);
    letter-spacing: -.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, .06);
}

.ghost--inv {
    -webkit-text-stroke: 1px rgba(255, 255, 255, .08);
}

/* ============================================================
   GLASS PANELS
============================================================ */
.glass {
    position: relative;
    background: rgba(255, 255, 255, .46);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(0, 0, 0, .13);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .65);
    color: #000;
}

.glass-dark {
    position: relative;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .14);
    color: #fff;
}

.lift {
    transition: transform .4s var(--ease-out), background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.lift:hover {
    transform: translateY(-6px);
}

.glass.lift:hover {
    background: rgba(255, 255, 255, .68);
    border-color: rgba(0, 0, 0, .25);
}

.glass-dark.lift:hover {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .32);
}

/* ============================================================
   REVEAL
============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal-stagger.in>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.in>*:nth-child(1) {
    transition-delay: .05s;
}

.reveal-stagger.in>*:nth-child(2) {
    transition-delay: .15s;
}

.reveal-stagger.in>*:nth-child(3) {
    transition-delay: .25s;
}

.reveal-stagger.in>*:nth-child(4) {
    transition-delay: .35s;
}

.reveal-stagger.in>*:nth-child(5) {
    transition-delay: .45s;
}

/* ============================================================
   STATUS DOT
============================================================ */
@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .25
    }
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: currentColor;
    animation: pulse 2.6s ease-in-out infinite;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ============================================================
   NAV
============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(-110%);
    transition: transform .6s var(--ease-out);
}

header.ready {
    transform: translateY(0);
}

.nav-bar {
    margin: 14px var(--pad) 0;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(0, 0, 0, .12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 18px;
    transition: height .3s var(--ease), margin .3s var(--ease);
}

header.scrolled .nav-bar {
    height: 56px;
}

/* Logo with vertical breathing space in navbar only */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    /* Adds space above and below the entire logo area */
}

.logo__mark {
    height: 48px;
    width: auto;
    max-width: 180px;
    transition: transform .3s var(--ease-out);
    flex-shrink: 0;
    margin-top: 4px;
    /* Extra fine tuning */
    margin-bottom: 4px;
}

.logo:hover .logo__mark {
    transform: translateX(-4px);
}

/* Mobile adjustment */
@media (max-width: 640px) {
    .logo__mark {
        height: 48px;
    }

    .logo {
        padding: 4px 0;
    }

    .pre-logo img {
        height: 48px;
    }
}

/* Preloader Logo */
.pre-logo img {
    height: 58px;
    width: auto;
}


.logo__name {
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .16em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1.5px;
    background: #000;
    transition: right .3s var(--ease-out);
}

.nav-links a:hover::after {
    right: 0;
}

.nav-cta {
    border: 1.5px solid #000;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    font-family: var(--ff-m);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: background .2s, color .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nav-cta:hover {
    background: transparent;
    color: #000;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px 0;
}

.hamburger span {
    display: block;
    height: 1.5px;
    width: 100%;
    background: #000;
    transition: transform .3s var(--ease), opacity .2s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 0 var(--pad);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s var(--ease);
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    color: #fff;
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.01em;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-inv);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

.mobile-nav.open a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.open a:nth-child(2) {
    transition-delay: .1s;
}

.mobile-nav.open a:nth-child(3) {
    transition-delay: .17s;
}

.mobile-nav.open a:nth-child(4) {
    transition-delay: .24s;
}

.mobile-nav.open a:nth-child(5) {
    transition-delay: .31s;
}

.mobile-nav.open a:nth-child(6) {
    transition-delay: .38s;
}

.mobile-nav .nav-cta {
    margin-top: 30px;
    width: 100%;
    border-color: #fff;
    background: transparent;
    color: #fff;
    padding: 18px 20px;
    font-size: .82rem;
}

.mobile-nav .nav-cta:hover {
    background: #fff;
    color: #000;
}

.mobile-close {
    position: absolute;
    top: 22px;
    right: var(--pad);
    font-family: var(--ff-m);
    font-size: .72rem;
    letter-spacing: .2em;
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
}

/* ============================================================
   HERO
============================================================ */
#hero {
    position: relative;
    padding: 140px var(--pad) 90px;
    overflow: hidden;
}

#hero .texture {
    z-index: 0;
}

#hero .ghost {
    top: 60px;
    right: -2vw;
}

.hero-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: clamp(2.3rem, 5.6vw, 4.4rem);
    margin-bottom: 24px;
}

h1 span {
    display: block;
    overflow: hidden;
}

h1 span>span {
    display: inline-block;
    transform: translateY(110%);
    animation: lineRise .9s var(--ease-out) forwards;
}

h1 span:nth-child(2)>span {
    animation-delay: .15s;
}

@keyframes lineRise {
    to {
        transform: translateY(0)
    }
}

h1 .light {
    font-weight: 300;
}

.hero-sub {
    max-width: 430px;
    color: var(--muted);
    font-size: 1.01rem;
    line-height: 1.85;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .8s var(--ease-out) .55s forwards;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .8s var(--ease-out) .7s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.hero-eyebrow {
    opacity: 0;
    animation: fadeUp .8s var(--ease-out) .1s forwards;
}

.btn {
    font-family: var(--ff-m);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 15px 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all .25s var(--ease);
}

.btn-fill {
    background: #000;
    color: #fff;
    border: 1.5px solid #000;
    position: relative;
    overflow: hidden;
}

.btn-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .35), transparent);
    transition: left .6s var(--ease);
}

.btn-fill:hover::after {
    left: 130%;
}

.btn-fill:hover {
    background: #1a1a1a;
}

.btn-fill .arrow {
    transition: transform .3s var(--ease-out);
}

.btn-fill:hover .arrow {
    transform: translateX(4px);
}

.btn-outline.glass {
    color: #000;
    border: 1.5px solid rgba(0, 0, 0, .18);
}

.btn-outline.glass:hover {
    transform: translateY(-3px);
}

/* Defense stack */
.stack {
    position: relative;
    background: #000;
    border: 1px solid #000;
    padding: 24px;
    overflow: hidden;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--ease-out) .4s forwards;
}

.stack .texture {
    z-index: 0;
}

.stack-ghost {
    position: absolute;
    bottom: -10px;
    left: 14px;
    font-family: var(--ff-m);
    font-size: .68rem;
    letter-spacing: .22em;
    color: rgba(255, 255, 255, .25);
    writing-mode: vertical-rl;
    z-index: 1;
}

.layer {
    position: relative;
    z-index: 1;
    padding: 18px 20px;
    width: 92%;
}

.layer:nth-child(2) {
    align-self: flex-start;
}

.layer:nth-child(3) {
    align-self: flex-end;
}

.layer:nth-child(4) {
    align-self: flex-start;
}

.layer:nth-child(5) {
    align-self: flex-end;
}

.layer-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.layer-num {
    font-family: var(--ff-m);
    font-size: .74rem;
    letter-spacing: .16em;
    color: var(--muted-inv);
}

.layer-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.layer-desc {
    font-size: .8rem;
    color: var(--muted-inv);
    line-height: 1.7;
}

/* ============================================================
   RECOGNITION + LOGO MARQUEE
============================================================ */
#recognition {
    position: relative;
    background: #000;
    color: #fff;
    padding: 64px var(--pad) 56px;
    overflow: hidden;
}

#recognition .texture {
    z-index: 0;
}

.recog-inner {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.recog-eyebrow {
    color: #fff;
}

/* Logo marquee */
.marquee {
    position: relative;
    overflow: hidden;
    margin: 0 calc(var(--pad) * -1) 44px;
    padding: 24px 0;
    border-top: 1px solid var(--line-inv);
    border-bottom: 1px solid var(--line-inv);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 64px;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 140px;
    padding: 0 12px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .7);
    transition: color .3s var(--ease);
    font-family: 'Archivo', sans-serif;
}

.marquee-item:hover {
    color: #fff;
}

.marquee-item .verified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-m);
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .18em;
    margin-left: 14px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .5);
}

.marquee-item .dot {
    width: 5px;
    height: 5px;
    background: #fff;
}

@keyframes marquee {
    to {
        transform: translateX(-50%)
    }
}

.recog-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.recog-stat {
    padding: 28px 22px;
}

.recog-stat .n {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}

.recog-stat .l {
    font-family: var(--ff-m);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-inv);
}

/* ============================================================
   SECTION SHELL
============================================================ */
.section {
    position: relative;
    padding: clamp(72px, 11vw, 120px) var(--pad);
    overflow: hidden;
}

.section .texture {
    z-index: 0;
}

.section-head {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================================
   SERVICES
============================================================ */
#services .ghost {
    bottom: -40px;
    left: -2vw;
}

.svc-grid {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.svc-card {
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
}

.icon-box {
    width: 54px;
    height: 54px;
    border: 1.5px solid rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    flex-shrink: 0;
    transition: background .3s var(--ease), border-color .3s var(--ease);
}

.svc-card:hover .icon-box {
    background: #000;
    border-color: #000;
}

.icon-box svg {
    stroke: #000;
    transition: stroke .3s var(--ease);
}

.svc-card:hover .icon-box svg {
    stroke: #fff;
}

.svc-num {
    font-family: var(--ff-m);
    font-size: .72rem;
    letter-spacing: .18em;
    color: var(--muted);
    margin-bottom: 10px;
}

.svc-title {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: 14px;
}

.svc-desc {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 26px;
    flex-grow: 1;
}

.svc-deliv li {
    font-size: .8rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 10px;
}

.svc-deliv li:first-child {
    border-top: 1px solid var(--line);
}

.svc-deliv li::before {
    content: '—';
    color: var(--muted);
    flex-shrink: 0;
}

.svc-price {
    font-family: var(--ff-m);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 18px;
    margin-top: 6px;
}

.svc-price .p-label {
    font-size: .64rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.svc-price .p-val {
    font-size: 1.08rem;
    font-weight: 700;
}

/* ============================================================
   ABOUT
============================================================ */
#about .ghost {
    top: -30px;
    right: -2vw;
}

.about-grid {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
}

.about-text p {
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.9;
    margin-bottom: 22px;
}

.about-text p strong {
    color: #000;
    font-weight: 600;
}

.cred-list {
    margin-top: 30px;
    border-top: 1px solid var(--line);
}

.cred-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
}

.cred-check {
    width: 16px;
    height: 16px;
    border: 1.5px solid #000;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    font-weight: 900;
}

/* Image placeholders w/ placehold.co */
.cert-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.cert-ph {
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
    transition: transform .4s var(--ease-out);
}

.cert-ph:hover {
    transform: translateY(-3px);
}

.cert-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}

.cert-ph:hover img {
    transform: scale(1.05);
}

/* About black module */
.module {
    position: relative;
    background: #000;
    border: 1px solid #000;
    padding: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.module .texture {
    z-index: 0;
}

.module>* {
    position: relative;
    z-index: 1;
}

.founder-ph {
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
}

.founder-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-out);
}

.founder-ph:hover img {
    transform: scale(1.04);
}

.module-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.module-stat {
    padding: 20px 16px;
}

.module-stat .n {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}

.module-stat .l {
    font-family: var(--ff-m);
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-inv);
    line-height: 1.6;
}

/* ============================================================
   CASES
============================================================ */
#cases {
    background: #000;
}

#cases .ghost {
    bottom: -20px;
    right: -2vw;
}

.case-grid {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.case-card {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.case-ref {
    font-family: var(--ff-m);
    font-size: .68rem;
    letter-spacing: .16em;
    color: var(--muted-inv);
    margin-bottom: 20px;
}

.case-title {
    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: 8px;
}

.case-partner {
    font-size: .74rem;
    color: var(--muted-inv);
    margin-bottom: 16px;
    font-family: var(--ff-m);
    letter-spacing: .04em;
}

.case-desc {
    font-size: .88rem;
    color: var(--muted-inv);
    line-height: 1.8;
    margin-bottom: 24px;
    flex-grow: 1;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid var(--line-inv);
    padding-top: 16px;
}

.case-metric .ml {
    font-family: var(--ff-m);
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-inv);
    margin-bottom: 5px;
}

.case-metric .mv {
    font-size: .82rem;
    font-weight: 700;
}

/* ============================================================
   GALLERY — DUAL SLIDING CAROUSELS
============================================================ */
.gallery-head {
    max-width: var(--max);
    margin: 0 auto 36px;
    position: relative;
    z-index: 1;
}

.gallery-head h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}

.gallery-head p {
    font-family: var(--ff-m);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-inv);
}

.carousel-wrap {
    position: relative;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    padding: 6px 0;
}

.carousel-wrap+.carousel-wrap {
    margin-top: 18px;
}

.carousel-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: slideLeft 50s linear infinite;
}

.carousel-track.reverse {
    animation: slideRight 55s linear infinite;
}

.carousel-wrap:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes slideLeft {
    to {
        transform: translateX(-50%)
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-50%)
    }

    to {
        transform: translateX(0)
    }
}

.carousel-item {
    flex-shrink: 0;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, .18);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border-color .3s var(--ease), transform .4s var(--ease-out);
}

.carousel-item:hover {
    border-color: rgba(255, 255, 255, .45);
    transform: translateY(-3px);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s var(--ease-out);
}

.carousel-item:hover img {
    transform: scale(1.06);
}

.carousel-item::after {
    content: '+';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 300;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .3s var(--ease);
}

.carousel-item:hover::after {
    opacity: 1;
}

/* ============================================================
   MODAL GALLERY
============================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s var(--ease);
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px var(--pad);
    border-bottom: 1px solid var(--line-inv);
}

.modal-counter {
    font-family: var(--ff-m);
    font-size: .72rem;
    letter-spacing: .18em;
    color: var(--muted-inv);
    text-transform: uppercase;
}

.modal-close {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    font-family: var(--ff-m);
    font-size: .7rem;
    letter-spacing: .2em;
    padding: 8px 16px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.modal-close:hover {
    background: #fff;
    color: #000;
}

.modal-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px var(--pad);
    position: relative;
    min-height: 0;
}

.modal-preview {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-preview img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: scale(.96);
    transition: opacity .35s var(--ease-out), transform .4s var(--ease-out);
}

.modal-preview img.shown {
    opacity: 1;
    transform: scale(1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--line-inv);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background .25s, border-color .25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, .18);
    border-color: #fff;
}

.modal-prev {
    left: var(--pad);
}

.modal-next {
    right: var(--pad);
}

.modal-strip {
    padding: 14px var(--pad) 22px;
    border-top: 1px solid var(--line-inv);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
}

.modal-strip::-webkit-scrollbar {
    height: 6px;
}

.modal-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .2);
}

.modal-thumbs {
    display: flex;
    gap: 10px;
    min-width: max-content;
}

.modal-thumb {
    width: 78px;
    height: 60px;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--line-inv);
    opacity: .5;
    transition: opacity .25s, border-color .25s, transform .25s;
}

.modal-thumb:hover {
    opacity: .85;
    transform: translateY(-2px);
}

.modal-thumb.active {
    opacity: 1;
    border-color: #fff;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   CONTACT
============================================================ */
#contact .ghost {
    top: -30px;
    left: -2vw;
}

.contact-grid {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
}

.contact-info p {
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.9;
    margin-bottom: 34px;
    max-width: 420px;
}

.info-list {
    border-top: 1px solid var(--line);
    margin-bottom: 28px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.info-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .3s var(--ease);
}

.info-row:hover .info-icon {
    background: #000;
}

.info-row:hover .info-icon svg {
    stroke: #fff;
}

.info-icon svg {
    stroke: #000;
    width: 18px;
    height: 18px;
    transition: stroke .3s var(--ease);
}

.info-row dt {
    font-family: var(--ff-m);
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
}

.info-row dd {
    font-size: .92rem;
    font-weight: 500;
}

.office-ph {
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.office-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out);
}

.office-ph:hover img {
    transform: scale(1.04);
}

/* Form */
.form {
    padding: 36px 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fg {
    margin-bottom: 22px;
}

.fg label {
    display: block;
    font-family: var(--ff-m);
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.fg input,
.fg textarea,
.fg select {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, .25);
    outline: none;
    font-size: .94rem;
    background: transparent;
    font-family: 'Archivo', sans-serif;
    color: #000;
    padding: 8px 0;
    transition: border-color .25s var(--ease);
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
    border-color: #000;
}

.fg textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.7;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: '▾';
    position: absolute;
    right: 4px;
    bottom: 10px;
    font-size: .8rem;
    color: var(--muted);
    pointer-events: none;
}

.fg select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.fg input::placeholder,
.fg textarea::placeholder {
    color: rgba(0, 0, 0, .32);
}

.btn-submit {
    width: 100%;
    border: 1.5px solid #000;
    background: #000;
    color: #fff;
    font-family: var(--ff-m);
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .2s, color .2s;
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .35), transparent);
    transition: left .6s var(--ease);
}

.btn-submit:hover::after {
    left: 130%;
}

.btn-submit:hover {
    background: #1a1a1a;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
    border-top: 1px solid var(--line);
    padding: 30px var(--pad);
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-meta {
    font-family: var(--ff-m);
    font-size: .68rem;
    letter-spacing: .1em;
    color: var(--muted);
}

.footer-tag {
    font-family: var(--ff-m);
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}

.to-top {
    border: 1.5px solid #000;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .2s, color .2s, transform .3s var(--ease-out);
    cursor: pointer;
    background: none;
}

.to-top:hover {
    background: #000;
    color: #fff;
    transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE — MOBILE PERFECTION
============================================================ */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-cta.desktop-only {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .stack {
        min-height: 440px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .module {
        max-width: 100%;
    }

    .module-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .founder-ph {
        object-fit: contain;
    }

    .svc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .case-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .marquee-item {
        font-size: 1.1rem;
        min-width: 120px;
    }

    .marquee-track {
        gap: 48px;
        animation-duration: 28s;
    }

    .carousel-item {
        height: 160px;
    }
}

@media (max-width: 640px) {
    :root {
        --pad: 18px;
    }

    #hero {
        padding: 110px 18px 70px;
    }

    .section {
        padding: 64px 18px;
    }

    #recognition {
        padding: 48px 18px 40px;
    }

    .nav-bar {
        margin-top: 10px;
        height: 58px;
        padding: 0 14px;
    }

    header.scrolled .nav-bar {
        height: 52px;
    }

    .logo__name {
        font-size: .78rem;
        letter-spacing: .14em;
    }

    h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
        margin-bottom: 20px;
    }

    .hero-sub {
        font-size: .94rem;
        margin-bottom: 30px;
    }

    .btn {
        padding: 14px 22px;
        font-size: .7rem;
    }

    .hero-btns {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .form {
        padding: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .case-metrics {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

    .case-metric .mv {
        font-size: .74rem;
    }

    .layer {
        width: 100%;
        align-self: stretch !important;
    }

    .module-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stack {
        padding: 16px;
        min-height: auto;
        gap: 10px;
    }

    .layer {
        padding: 14px 16px;
    }

    .recog-stat {
        padding: 22px 18px;
    }

    .recog-stat .n {
        font-size: 1.8rem;
    }

    .svc-card {
        padding: 28px 22px;
    }

    .svc-title {
        font-size: 1.1rem;
    }

    .case-card {
        padding: 26px 22px;
    }

    .module {
        padding: 18px;
    }

    .founder-ph {
        object-fit: contain;
    }

    .cert-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .marquee-item {
        font-size: 1rem;
        min-width: 100px;
    }

    .marquee-track {
        gap: 36px;
    }

    .carousel-item {
        height: 130px;
    }

    .carousel-track {
        gap: 12px;
    }

    .modal-header {
        padding: 14px 18px;
    }

    .modal-main {
        padding: 20px 14px;
    }

    .modal-nav {
        width: 38px;
        height: 38px;
    }

    .modal-prev {
        left: 8px;
    }

    .modal-next {
        right: 8px;
    }

    .modal-thumb {
        width: 60px;
        height: 46px;
    }

    footer {
        padding: 24px 18px;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }

    .info-row dd {
        font-size: .86rem;
    }

    .ghost {
        font-size: clamp(7rem, 30vw, 12rem);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}