/* =========================================================
   IMPERMEABLE ENGINEERING — Design System
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    /* Brand color scale */
    --teal-950: #002325;
    --teal-900: #00383b;
    --teal-800: #00575b;
    --teal-700: #005f63;
    --teal-600: #007479;
    --teal-500: #178d92;
    --teal-400: #59a5a8;
    --teal-300: #86bcbf;
    --teal-200: #a6cfd2;
    --teal-100: #cfe4e5;
    --teal-50:  #eef5f5;

    --gray-950: #17181a;
    --gray-900: #26282a;
    --gray-800: #34363a;
    --gray-700: #46484a;
    --gray-600: #595a5c;
    --gray-500: #7d7f81;
    --gray-400: #9a9c9e;
    --gray-300: #b7baba;
    --gray-200: #dfe2e2;
    --gray-100: #e7eaea;
    --gray-50:  #f5f7f7;
    --white: #ffffff;

    /* Semantic */
    --bg: var(--white);
    --bg-alt: var(--gray-50);
    --surface: var(--white);
    --text: var(--gray-900);
    --text-muted: var(--gray-600);
    --text-soft: var(--gray-500);
    --border: var(--gray-200);
    --brand: var(--teal-600);
    --brand-dark: var(--teal-800);
    --ink: var(--gray-950);

    /* Type */
    --font: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-xs: clamp(.75rem, .72rem + .1vw, .8125rem);
    --fs-sm: clamp(.875rem, .84rem + .15vw, .9375rem);
    --fs-base: clamp(1rem, .96rem + .2vw, 1.0625rem);
    --fs-md: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
    --fs-lg: clamp(1.375rem, 1.25rem + .5vw, 1.625rem);
    --fs-xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
    --fs-2xl: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem);
    --fs-3xl: clamp(2.75rem, 2rem + 3vw, 4.5rem);
    --fs-hero: clamp(3rem, 2rem + 4.5vw, 6rem);

    /* Space (4px base) */
    --sp-1: .25rem;
    --sp-2: .5rem;
    --sp-3: .75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 2.5rem;
    --sp-8: 3rem;
    --sp-10: 4rem;
    --sp-12: 5rem;
    --sp-16: 7rem;
    --sp-20: 9rem;

    --container: 1320px;
    --container-narrow: 860px;
    --gutter: clamp(1.25rem, 1rem + 1.5vw, 3rem);

    --radius-sm: 2px;
    --radius: 4px;
    --radius-lg: 8px;

    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --dur: .35s;

    --shadow-sm: 0 1px 2px rgba(15, 23, 24, .06);
    --shadow: 0 8px 24px rgba(15, 23, 24, .08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 24, .14);

    --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
html {
    overflow-x: hidden;
}
body {
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ink);
}
::selection { background: var(--teal-600); color: #fff; }

:focus-visible {
    outline: 2px solid var(--teal-600);
    outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-16); }
.section-tight { padding-block: var(--sp-10); }
@media (max-width: 767px) {
    .section { padding-block: var(--sp-10); }
    .section-tight { padding-block: var(--sp-6); }
}
.bg-alt { background: var(--bg-alt); }
.bg-ink { background: var(--ink); color: var(--gray-200); }
.bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }
.bg-brand { background: var(--brand); color: #fff; }

.grid { display: grid; gap: var(--sp-6); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ---------- Type ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: var(--sp-4);
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--teal-600);
    display: inline-block;
}
.bg-ink .eyebrow, .on-dark .eyebrow { color: var(--teal-300); }
.bg-ink .eyebrow::before, .on-dark .eyebrow::before { background: var(--teal-300); }

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

.section-head { max-width: 720px; margin-bottom: var(--sp-10); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p.lead { color: var(--text-muted); font-size: var(--fs-md); margin-top: var(--sp-4); }

.lead { font-size: var(--fs-md); color: var(--text-muted); line-height: 1.7; }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    padding: 1rem 1.75rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .02em;
    border-radius: var(--radius-sm);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    white-space: nowrap;
}
.btn svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-700); box-shadow: var(--shadow); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--gray-800); }
.btn-outline { border: 1.5px solid currentColor; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-outline.dark-ctx { color: var(--ink); }
.btn-outline.dark-ctx:hover { background: var(--ink); color: #fff; }
.btn-ghost { padding: 0; color: var(--teal-600); font-weight: 700; }
.btn-ghost:hover { color: var(--teal-800); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: .7rem 1.25rem; font-size: var(--fs-xs); }

/* ---------- Header / Nav ---------- */
.topbar {
    background: var(--ink);
    color: var(--gray-300);
    font-size: var(--fs-xs);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar a { color: var(--gray-300); transition: color var(--dur) var(--ease); }
.topbar a:hover { color: var(--teal-300); }
.topbar-links { display: flex; gap: var(--sp-6); }
.topbar-links .item { display: flex; align-items: center; gap: .5em; }
.topbar-links i { color: var(--teal-400); font-size: 1.05em; }
.topbar-locations { letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; color: var(--gray-400); }
@media (max-width: 767px) { .topbar { display: none; } }

.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .93);
    border-bottom: 1px solid rgba(38, 40, 42, .06);
    transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), height var(--dur) var(--ease);
}
.site-header.is-scrolled {
    height: 68px;
    background: rgba(255, 255, 255, .97);
    box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); }

.brand {
    position: relative;
    z-index: 260;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }
@media (max-width: 575.98px) {
    .brand img { height: 28px; }
}

.main-nav { display: flex; align-items: center; gap: var(--sp-8); }
.main-nav ul { display: flex; align-items: center; gap: var(--sp-6); }
.main-nav a {
    position: relative;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--gray-700);
    padding: .4em 0;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--teal-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: var(--sp-4); }
.header-cta .btn {
    padding: .75rem 1.4rem;
    border-radius: 999px;
    font-size: var(--fs-xs);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 116, 121, .28);
}
.header-cta .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 116, 121, .35); }

.nav-toggle {
    position: relative;
    z-index: 260;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 250;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: calc(var(--header-h) + var(--sp-6)) var(--gutter) var(--sp-8);
        opacity: 0;
        transition: opacity .3s var(--ease-out);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .main-nav.is-open {
        display: flex;
        opacity: 1;
    }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: var(--sp-3); width: 100%; }
    .main-nav a { font-size: var(--fs-lg); padding: .2em 0; }
    .header-cta { flex-direction: column; align-items: stretch; width: 100%; margin-top: var(--sp-6); }
    .header-cta .btn {
        padding: 1rem 1.75rem;
        border-radius: var(--radius-sm);
        font-size: var(--fs-sm);
        justify-content: center;
    }
    .nav-toggle { display: flex; }
    .header-cta .btn-only-desktop { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,35,37,.55) 0%, rgba(0,35,37,.35) 35%, rgba(0,35,37,.85) 85%, #001b1d 100%),
        linear-gradient(100deg, rgba(0,87,91,.55), transparent 55%);
}
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: calc(var(--header-h) + var(--sp-12));
    padding-bottom: var(--sp-10);
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    padding: .5em 1em;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255,255,255,.08);
    margin-bottom: var(--sp-6);
}
.hero-tag i { color: var(--teal-300); }
.hero h1 {
    font-size: var(--fs-hero);
    color: #fff;
    max-width: 15ch;
    letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--teal-300); }
.hero .lead { color: rgba(255,255,255,.82); max-width: 46ch; margin-top: var(--sp-5); font-size: var(--fs-md); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-8); }

.stat-bar {
    position: relative;
    z-index: 2;
    margin-top: -80px;
}
.stat-bar .container { display: block; }
.stat-bar-inner {
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-bar-inner .stat {
    padding: var(--sp-6) var(--sp-5);
    text-align: center;
    border-right: 1px solid var(--border);
}
.stat-bar-inner .stat:last-child { border-right: none; }
.stat .num {
    display: block;
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.02em;
}
.stat .num .suffix { color: var(--teal-600); }
.stat .label {
    display: block;
    margin-top: .35em;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-soft);
}
@media (max-width: 767px) {
    .stat-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-bar-inner .stat:nth-child(2) { border-right: none; }
    .stat-bar-inner .stat:nth-child(1), .stat-bar-inner .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
    .hero { min-height: auto; padding-bottom: var(--sp-10); }
    .stat-bar { margin-top: -40px; }
}
.after-stat-spacer { display: none; }

/* ---------- Page intro (inner pages) ---------- */
.page-intro {
    position: relative;
    background: var(--ink);
    color: #fff;
    padding-top: calc(var(--header-h) + var(--sp-8));
    padding-bottom: var(--sp-10);
    overflow: hidden;
}
.page-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1100px 500px at 15% 0%, rgba(0,116,121,.35), transparent 60%),
        linear-gradient(160deg, var(--teal-900), var(--ink) 60%);
    z-index: 0;
}
.page-intro .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: .6em; align-items: center; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-200); margin-bottom: var(--sp-5); }
.breadcrumb a { color: var(--teal-200); opacity: .85; }
.breadcrumb a:hover { opacity: 1; color: #fff; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: #fff; }
.page-intro h1 { color: #fff; font-size: var(--fs-3xl); max-width: 18ch; }
.page-intro .lead { color: rgba(255,255,255,.78); max-width: 60ch; margin-top: var(--sp-4); }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.service-card { overflow: hidden; position: relative; display: flex; flex-direction: column; height: 100%; }
.service-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.service-card:hover .thumb img { transform: scale(1.08); }
.service-card .num {
    position: absolute; top: var(--sp-4); left: var(--sp-4);
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em;
    color: #fff; background: rgba(0,35,37,.55); backdrop-filter: blur(4px);
    padding: .35em .8em; border-radius: 999px;
}
.service-card .body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.service-card p { color: var(--text-muted); font-size: var(--fs-sm); flex: 1; }
.service-card .more { margin-top: var(--sp-5); display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: var(--fs-sm); color: var(--teal-600); }
.service-card .more svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.service-card:hover .more svg { transform: translateX(4px); }

.value-tile { padding: var(--sp-6); height: 100%; }
.value-tile .icn {
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    background: var(--teal-50); color: var(--teal-600); border-radius: var(--radius); font-size: 24px; margin-bottom: var(--sp-5);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.value-tile:hover .icn { background: var(--teal-600); color: #fff; }
.value-tile h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.value-tile p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 6/5; object-fit: cover; border-radius: var(--radius); }
.floating-card {
    position: absolute;
    bottom: -28px; right: -28px;
    background: var(--ink);
    color: #fff;
    padding: var(--sp-5) var(--sp-6);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
}
.floating-card .num { font-size: var(--fs-xl); font-weight: 800; color: var(--teal-300); display: block; }
.floating-card .label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--gray-300); }
@media (max-width: 991px) {
    .split { gap: var(--sp-6); }
    .floating-card { right: var(--sp-4); bottom: var(--sp-4); min-width: 160px; }
}
@media (max-width: 767px) {
    .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .floating-card { position: static; margin-top: var(--sp-5); display: inline-block; }
}

.check-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.check-list li { display: flex; gap: .8em; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); }
.check-list i { color: var(--teal-600); margin-top: .25em; flex-shrink: 0; }

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); counter-reset: step; }
@media (max-width: 991px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { position: relative; padding-top: var(--sp-8); border-top: 2px solid var(--border); }
.process-step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute; top: -22px; left: 0;
    font-size: var(--fs-lg); font-weight: 800; color: var(--teal-600);
    background: var(--bg); padding-right: .4em;
}
.process-step h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.process-step p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Logos strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-8); opacity: .75; }
.logo-strip img { max-height: 34px; width: auto; filter: grayscale(1); }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    padding-block: var(--sp-12);
    background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
    color: #fff;
    overflow: hidden;
    text-align: center;
}
.cta-band::before {
    content: "";
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 60px);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: var(--sp-4) auto 0; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .eyebrow { color: #fff; }
.cta-band .eyebrow::before { background: #fff; }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.filter-btn {
    padding: .6em 1.4em; font-size: var(--fs-sm); font-weight: 600;
    border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted);
    transition: all var(--dur) var(--ease);
}
.filter-btn:hover { border-color: var(--teal-500); color: var(--teal-700); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.project-card { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.project-card:hover img { transform: scale(1.1); }
.project-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,35,37,.92) 0%, rgba(0,35,37,.1) 55%, transparent 70%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: var(--sp-6); color: #fff;
}
.project-card .tag {
    align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    background: var(--teal-600); padding: .3em .8em; border-radius: 999px; margin-bottom: var(--sp-3);
}
.project-card h3 { color: #fff; font-size: var(--fs-md); margin-bottom: .2em; }
.project-card p { color: rgba(255,255,255,.75); font-size: var(--fs-sm); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 991px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .project-grid { grid-template-columns: 1fr; } }
.project-item.is-hidden { display: none; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: var(--sp-5) 0; text-align: left; font-weight: 700; font-size: var(--fs-md);
}
.faq-q .plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; margin-left: var(--sp-4); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--teal-600); transition: transform var(--dur) var(--ease); }
.faq-q .plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-q .plus::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-item.is-open .faq-q .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding-bottom: var(--sp-5); color: var(--text-muted); font-size: var(--fs-sm); max-width: 68ch; }

/* ---------- Careers ---------- */
.job-row {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap;
    padding: var(--sp-6); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--sp-4);
    transition: all var(--dur) var(--ease);
}
.job-row:hover { border-color: var(--teal-500); box-shadow: var(--shadow); }
.job-row h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.job-meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-soft); }
.job-meta i { color: var(--teal-600); margin-right: .4em; }
.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 767px) { .perk-grid { grid-template-columns: 1fr; } }
.perk { display: flex; gap: var(--sp-4); align-items: flex-start; }
.perk i { color: var(--teal-600); font-size: 1.4em; margin-top: .1em; }
.perk h4 { font-size: var(--fs-base); margin-bottom: .3em; }
.perk p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-panel { background: var(--ink); color: #fff; padding: var(--sp-10); position: relative; overflow: hidden; }
.contact-panel::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 400px at 100% 0%, rgba(0,116,121,.4), transparent 60%); }
.contact-panel > * { position: relative; }
.contact-panel h2 { color: #fff; font-size: var(--fs-xl); margin-bottom: var(--sp-6); }
.contact-line { display: flex; gap: var(--sp-4); padding-block: var(--sp-5); border-top: 1px solid rgba(255,255,255,.12); }
.contact-line:first-of-type { border-top: none; }
.contact-line i { font-size: 22px; color: var(--teal-300); margin-top: .1em; }
.contact-line h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--gray-300); margin-bottom: .3em; }
.contact-line a, .contact-line p { color: #fff; font-size: var(--fs-base); }
.contact-form-panel { background: var(--surface); padding: var(--sp-10); }
.field { margin-bottom: var(--sp-5); }
.field label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-600); margin-bottom: .6em; }
.field label .req { color: var(--teal-600); }
.field input, .field textarea {
    width: 100%; padding: .9em 1em; background: var(--gray-50); border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: var(--fs-base); color: var(--gray-900);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-soft); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #c05a5a; background: #fdf6f6; }
.field input.is-invalid:focus, .field textarea.is-invalid:focus { border-color: #c05a5a; }
.field-error {
    display: none;
    margin-top: .5em;
    font-size: var(--fs-xs);
    color: #a13c3c;
}
.field-error.is-visible { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 575px) { .field-row { grid-template-columns: 1fr; } }
.form-note { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--text-soft); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
    display: flex;
    align-items: flex-start;
    gap: .7em;
    margin-bottom: var(--sp-5);
    padding: var(--sp-4) var(--sp-5);
    background: #fdf6f6;
    border: 1px solid #e3b3b3;
    border-radius: var(--radius-sm);
    color: #a13c3c;
    font-size: var(--fs-sm);
}
.form-error i { margin-top: .2em; flex-shrink: 0; }
.form-error[hidden] { display: none; }
.map-wrap { line-height: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: var(--sp-10); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; filter: grayscale(.2) contrast(1.05); }

input:-webkit-autofill, textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--gray-900);
    -webkit-box-shadow: 0 0 0 1000px var(--gray-50) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--gray-400); padding-top: var(--sp-16); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-8); padding-bottom: var(--sp-10); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about { color: var(--gray-400); font-size: var(--fs-sm); line-height: 1.8; max-width: 42ch; margin: var(--sp-5) 0; }
.footer-locations { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-300); }
.footer-heading { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-5); position: relative; padding-bottom: var(--sp-3); }
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--teal-500); }
.footer-links li { margin-bottom: var(--sp-3); }
.footer-links a { font-size: var(--fs-sm); color: var(--gray-400); transition: color var(--dur) var(--ease), padding var(--dur) var(--ease); }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-col p { font-size: var(--fs-sm); color: var(--gray-400); line-height: 1.8; margin-bottom: var(--sp-3); }
.footer-col p a { color: var(--gray-400); }
.footer-col p a:hover { color: #fff; }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer-social a {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.15); border-radius: 50%; transition: all var(--dur) var(--ease);
}
.footer-social a:hover { background: var(--teal-600); border-color: var(--teal-600); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--sp-5); margin-top: var(--sp-6); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3); }
.footer-bottom p { font-size: var(--fs-xs); color: var(--gray-500); }
.footer-legal { display: flex; gap: var(--sp-5); font-size: var(--fs-xs); color: var(--gray-500); flex-wrap: wrap; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 150;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--teal-600); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all var(--dur) var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--ink); }

/* ---------- Brand guidelines page ---------- */
.swatch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-8); }
@media (max-width: 767px) { .swatch-grid { grid-template-columns: repeat(2, 1fr); } }
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.swatch .fill { height: 96px; }
.swatch .meta { padding: var(--sp-4); background: #fff; }
.swatch .meta h4 { font-size: var(--fs-sm); margin-bottom: .3em; }
.swatch .meta p { font-size: var(--fs-xs); font-family: 'SFMono-Regular', Consolas, monospace; color: var(--text-soft); }
.logo-tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 767px) { .logo-tile-grid { grid-template-columns: repeat(2, 1fr); } }
.logo-tile { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); padding: var(--sp-4); }
.logo-tile img { height: 32px; width: auto; max-width: 100%; object-fit: contain; }
.logo-tile.on-white { background: #fff; border: 1px solid var(--border); }
.logo-tile.on-teal { background: var(--teal-600); }
.logo-tile.on-gray { background: var(--gray-600); }
.logo-tile.on-black { background: #0d0d0d; }
.clearspace-box { display: flex; align-items: center; justify-content: center; padding: var(--sp-10); background: var(--gray-50); border: 1px dashed var(--gray-300); border-radius: var(--radius); }
.clearspace-box img { height: 70px; }
.type-row { padding: var(--sp-5) 0; border-top: 1px solid var(--border); }
.type-row:first-child { border-top: none; }
.type-row .tag { display: block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-600); margin-bottom: var(--sp-2); }
.dos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 767px) { .dos-grid { grid-template-columns: 1fr; } }
.dos-card { padding: var(--sp-5); border-radius: var(--radius); border: 1px solid var(--border); }
.dos-card.do { background: var(--teal-50); border-color: var(--teal-200); }
.dos-card.dont { background: #fdf6f6; border-color: #e3b3b3; }
.dos-card h4 { font-size: var(--fs-sm); margin-bottom: .3em; }
.dos-card.do h4 { color: var(--teal-700); }
.dos-card.dont h4 { color: #a13c3c; }
.dos-card p { font-size: var(--fs-sm); color: var(--text-muted); }
.asset-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.asset-row a { display: inline-flex; align-items: center; gap: .6em; padding: .9em 1.4em; background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600; transition: all var(--dur) var(--ease); }
.asset-row a:hover { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }

/* ---------- Team ---------- */
.team-card { text-align: center; overflow: hidden; }
.team-card .photo { aspect-ratio: 1/1; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.team-card:hover .photo img { transform: scale(1.08); }
.team-card .info { padding: var(--sp-5); }
.team-card h3 { font-size: var(--fs-base); margin-bottom: .2em; }
.team-card .role { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-600); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: var(--sp-8); border-left: 2px solid var(--border); }
.timeline-item { position: relative; padding-bottom: var(--sp-8); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ""; position: absolute; left: calc(-1 * var(--sp-8) - 6px); top: 4px;
    width: 12px; height: 12px; border-radius: 50%; background: var(--teal-600); box-shadow: 0 0 0 4px var(--teal-50);
}
.timeline-item .date { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-600); margin-bottom: .4em; display: block; }
.timeline-item h3 { font-size: var(--fs-md); margin-bottom: .3em; }
.timeline-item p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Misc utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.text-center { text-align: center; }
