@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&family=Syne:wght@500;600;700;800&display=swap");

:root {
    --bg: #070b10;
    --bg-2: #0d141c;
    --surface: #141d27;
    --cream: #f3eee4;
    --cream-2: #e7dfd1;
    --ink: #f4efe6;
    --ink-dark: #101820;
    --muted: #9aa4ae;
    --muted-dark: #5b6570;
    --line: rgba(244, 239, 230, 0.12);
    --line-dark: rgba(16, 24, 32, 0.12);
    --accent: #4eb7d9;
    --accent-deep: #1c7ea3;
    --copper: #d7a77a;
    --navy: #0a2238;
    --danger: #e24b4b;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --radius: 22px;
    --radius-sm: 14px;
    --header-h: 30px;
    --container: 1240px;
    --font-display: "Syne", sans-serif;
    --font-body: "Manrope", sans-serif;
    --font-serif: "Instrument Serif", serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.container-wide {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
}

.serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.section {
    padding: 110px 0;
    position: relative;
}

.section-cream {
    background: var(--cream);
    color: var(--ink-dark);
}

.section-cream .eyebrow {
    color: var(--accent-deep);
}

.section-cream .eyebrow::before {
    background: var(--accent-deep);
}

.section-head {
    max-width: 760px;
    margin-bottom: 56px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2.1rem, 4.4vw, 4.1rem);
}

.lead {
    font-size: 1.08rem;
    color: var(--muted);
    margin-top: 18px;
}

.section-cream .lead {
    color: var(--muted-dark);
}

/* Buttons */
.btn {
    --btn-bg: var(--accent);
    --btn-fg: #04151e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.35s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(78, 183, 217, 0.28);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    background: rgba(244, 239, 230, 0.08);
    box-shadow: none;
}

.btn-dark {
    --btn-bg: var(--ink-dark);
    --btn-fg: var(--ink);
}

.btn-dark:hover {
    box-shadow: 0 12px 30px rgba(16, 24, 32, 0.25);
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: #05080c;
    display: grid;
    place-items: center;
    transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.preloader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader.is-gone {
    display: none;
}

.preloader-inner {
    text-align: center;
    width: min(280px, 70vw);
}

.preloader img {
    height: 54px;
    margin: 0 auto 28px;
}

.preloader-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.preloader-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    animation: loadBar 0.6s var(--ease) forwards;
}

@keyframes loadBar {
    to {
        width: 100%;
    }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 18px 0 0;
    background: transparent;
    border: 0;
}

.header-inner {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 8px 16px 8px 16px;
    position: relative;
    z-index: 70;
    background: rgba(8, 12, 18, 0.78);
    border: 1px solid rgba(244, 239, 230, 0.14);
    border-radius: 18px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
    overflow: visible;
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    z-index: -1;
    pointer-events: none;
}

.site-header.is-scrolled .header-inner,
.page-inner .header-inner {
    background: rgba(8, 12, 18, 0.92);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
}

.logo {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 10px;
    padding: 0 4px 0 2px;
    height: 44px;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.logo img {
    height: 42px;
    width: 42px;
    object-fit: cover;
    border-radius: 11px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text strong {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.logo-text span {
    margin-top: 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #05080c;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 88px 24px 40px;
}

.nav-list a {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-family: var(--font-display);
    color: rgba(244, 239, 230, 0.84);
    transition: color 0.3s, background 0.3s;
}

.nav-list a:hover,
.nav-list a.is-active {
    color: var(--ink);
    background: rgba(244, 239, 230, 0.1);
}

.header-cta {
    display: none;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 8px;
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 13px;
    background: var(--ink);
    color: var(--bg);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: transform 0.3s var(--ease), background 0.3s;
}

.header-phone svg {
    width: 15px;
    height: 15px;
}

.header-phone:hover {
    transform: translateY(-1px);
    background: #fff;
}

.nav-call {
    display: block;
    margin-top: 18px;
}

.nav-call a {
    font-size: 15px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--accent) !important;
    font-family: var(--font-body) !important;
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 80;
    width: 44px;
    height: 44px;
    margin-left: auto;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: #f4efe6;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 1.5px;
    background: #070b10;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle span {
    top: 50%;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    left: 0;
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.nav-open .nav-toggle {
    background: rgba(244, 239, 230, 0.14);
}

.nav-open .nav-toggle span {
    background: transparent;
}

.nav-open .nav-toggle span::before,
.nav-open .nav-toggle span::after {
    background: #f4efe6;
}

.nav-open .nav-toggle span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-open .nav-toggle span::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (min-width: 1101px) {
    .nav-toggle {
        display: none;
    }

    .header-inner {
        display: grid;
        grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
        align-items: center;
        padding: 10px 14px 10px 18px;
        min-height: 72px;
    }

    .logo {
        justify-self: start;
        padding: 0 4px 0 2px;
    }

    .header-cta {
        display: flex;
        align-items: center;
        justify-self: end;
        align-self: center;
        gap: 8px;
        position: relative;
        z-index: 2;
        height: 44px;
    }

    .nav-call {
        display: none;
    }

    .site-nav {
        position: static;
        inset: auto;
        transform: none;
        height: 44px;
        width: auto;
        background: transparent;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        justify-self: center;
        align-self: center;
        z-index: 2;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 2px;
        height: 44px;
    }

    .nav-list a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        font-size: 12px;
        font-family: var(--font-body);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(244, 239, 230, 0.78);
        padding: 0 14px;
        line-height: 1;
    }

    .nav-list a:hover {
        background: rgba(244, 239, 230, 0.06);
    }

    .nav-list a.is-active {
        background: rgba(244, 239, 230, 0.12);
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: var(--ink);
    padding-top: calc(var(--header-h) + 72px);
    box-sizing: border-box;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img,
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(5, 8, 12, 0.82) 0%, rgba(5, 8, 12, 0.55) 38%, rgba(5, 8, 12, 0.22) 68%, rgba(5, 8, 12, 0.18) 100%),
        linear-gradient(180deg, rgba(5, 8, 12, 0.9) 0%, rgba(5, 8, 12, 0.55) 14%, rgba(5, 8, 12, 0.28) 32%, rgba(5, 8, 12, 0.88) 100%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto 0;
    padding: 48px 0 42px;
}

.hero .eyebrow {
    color: #8fe0f5;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.hero h1 {
    font-size: clamp(3rem, 8.2vw, 7.4rem);
    max-width: 16ch;
    margin: 8px 0 22px;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(0, 0, 0, 0.45);
}

.hero h1 .serif {
    color: #f6debf;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85), 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero-copy {
    max-width: 560px;
    color: #f4efe6;
    font-size: 1.08rem;
    margin-bottom: 28px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    border-top: 1px solid rgba(244, 239, 230, 0.18);
    padding-top: 22px;
}

.hero-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
}

.hero-stats span {
    color: rgba(244, 239, 230, 0.82);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero .btn-ghost {
    background: rgba(5, 8, 12, 0.35);
    border-color: rgba(244, 239, 230, 0.55);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scroll-hint {
    position: absolute;
    right: 40px;
    bottom: 42px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.scroll-hint i {
    width: 22px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
    position: relative;
}

.scroll-hint i::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 3px;
    height: 7px;
    border-radius: 4px;
    background: var(--accent);
    transform: translateX(-50%);
    animation: mouse 1.6s infinite;
}

@keyframes mouse {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

/* Marquee */
.ticker {
    background: var(--cream);
    color: var(--ink-dark);
    overflow: hidden;
    border-bottom: 1px solid var(--line-dark);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.ticker-track span {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 0;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-right: 28px;
}

.ticker-track b {
    color: var(--copper);
    font-weight: 700;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Sectors */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.sector-card {
    position: relative;
    min-height: 340px;
    padding: 28px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.5s var(--ease);
}

.sector-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.08);
    transition: transform 0.8s var(--ease), filter 0.5s;
    filter: grayscale(0.35) contrast(1.05);
}

.sector-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(7, 11, 16, 0.15), rgba(7, 11, 16, 0.88));
}

.sector-card:hover {
    transform: translateY(-8px);
}

.sector-card:hover img {
    transform: scale(1.18);
    filter: grayscale(0) contrast(1.08);
}

.sector-card em {
    font-style: normal;
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
}

.sector-card h3 {
    font-size: 1.55rem;
    margin-bottom: 8px;
}

.sector-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 64px;
    align-items: start;
}

.about-sticky {
    position: sticky;
    top: 110px;
}

.about-copy h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    margin-bottom: 20px;
}

.about-copy p {
    color: var(--muted);
    margin-bottom: 18px;
}

.photo-stack {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.photo-stack figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.photo-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
    transition: transform 0.8s var(--ease);
}

.photo-stack figure:hover img {
    transform: scale(1.07);
}

.photo-stack figure:nth-child(2) {
    margin-top: 48px;
}

.highlight-list {
    margin-top: 28px;
    display: grid;
    gap: 10px;
}

.highlight-list li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: rgba(244, 239, 230, 0.88);
}

.highlight-list li svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    margin-top: 3px;
}

/* Stats */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat-item {
    background: var(--bg-2);
    padding: 36px 28px;
}

.stat-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    letter-spacing: -0.04em;
}

.stat-item span {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 18px;
}

.project-card {
    position: relative;
    min-height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
}

.project-card.small {
    min-height: 201px;
}

.project-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-card .meta {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 12, 0.92));
}

.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9dffc2;
    margin-bottom: 10px;
}

.live-tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3dff8a;
    box-shadow: 0 0 0 0 rgba(61, 255, 138, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 8px rgba(61, 255, 138, 0);
    }
}

.project-card h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.project-card p {
    color: var(--muted);
    font-size: 0.92rem;
}

.stack-col {
    display: grid;
    gap: 18px;
}

/* Horizontal cards */
.rail-wrap {
    position: relative;
}

.rail-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 18px;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-dark);
    background: transparent;
    color: var(--ink-dark);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.icon-btn:hover {
    background: var(--ink-dark);
    color: var(--ink);
}

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 32%);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.rail::-webkit-scrollbar {
    display: none;
}

.work-card {
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 100%;
    box-shadow: 0 10px 30px rgba(16, 24, 32, 0.06);
    transition: transform 0.4s var(--ease);
}

.work-card:hover {
    transform: translateY(-6px);
}

.work-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.work-card .body {
    padding: 20px 22px 24px;
}

.work-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.work-card p {
    color: var(--muted-dark);
    font-size: 0.9rem;
    margin: 0 0 4px;
}

/* Clients */
.clients {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
}

.logo-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
    align-items: center;
}

.logo-track img {
    height: 72px;
    width: auto;
    margin: 0 28px;
    object-fit: contain;
    filter: grayscale(1) contrast(0.9);
    opacity: 0.85;
    transition: filter 0.3s, opacity 0.3s;
}

.logo-track img:hover {
    filter: none;
    opacity: 1;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 18px;
}

.value-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.value-card.span-2 {
    grid-row: span 2;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.value-card.span-2 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.value-card.span-2::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(7, 11, 16, 0.92));
}

.value-card.span-2 > * {
    position: relative;
    z-index: 1;
}

.value-card h3 {
    font-size: 1.4rem;
    margin: 14px 0 8px;
}

.value-card p {
    color: var(--muted);
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(78, 183, 217, 0.12);
    color: var(--accent);
}

/* CTA */
.cta-banner {
    position: relative;
    min-height: 420px;
    border-radius: 32px;
    overflow: hidden;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 48px 24px;
}

.cta-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 11, 16, 0.35), rgba(7, 11, 16, 0.78));
}

.cta-banner .inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.cta-banner h2 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    margin: 10px 0 22px;
}

/* Gallery mosaic */
.mosaic {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 14px;
}

.mosaic a,
.mosaic figure {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.mosaic a:hover img,
.mosaic figure:hover img {
    transform: scale(1.08);
}

.mosaic a:first-child,
.mosaic figure:first-child {
    grid-row: span 2;
}

/* Footer */
.site-footer {
    background: #05080c;
    border-top: 1px solid var(--line);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand img {
    height: 56px;
    margin-bottom: 18px;
}

.footer-brand p {
    color: var(--muted);
    max-width: 420px;
}

.site-footer h4 {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--copper);
}

.site-footer a {
    color: var(--muted);
    display: inline-block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--ink);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.footer-bottom a {
    color: var(--accent);
}

.whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s var(--ease);
}

.whatsapp:hover {
    transform: scale(1.08);
}

.whatsapp img {
    width: 30px;
}

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 50;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(7, 11, 16, 0.8);
    color: var(--ink);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.3s var(--ease);
    cursor: pointer;
}

.scroll-top.is-on {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

/* Page hero */
.page-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 200px 0 80px;
    overflow: hidden;
    box-sizing: border-box;
}

.page-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 11, 16, 0.35), rgba(7, 11, 16, 0.88));
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.coming-soon {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.coming-soon::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 80% 20%, rgba(78, 183, 217, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(215, 167, 122, 0.1), transparent 50%);
    pointer-events: none;
}

.coming-soon .container {
    position: relative;
    z-index: 1;
}

.coming-soon h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin: 12px 0 18px;
    max-width: 12ch;
}

.coming-soon .lead {
    max-width: 42ch;
    color: var(--muted);
    margin-bottom: 28px;
}

.coming-soon .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Content blocks */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-lead {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 48px;
    align-items: center;
}

.about-lead p,
.split p {
    color: var(--muted);
}

.subhead {
    margin: 28px 0 10px;
    font-size: 1.35rem;
}

.years-seal {
    margin: 0;
    text-align: center;
}

.years-seal img {
    width: min(280px, 100%);
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.framed-photo {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 360px;
}

.framed-photo img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease);
}

.framed-photo:hover img {
    transform: scale(1.05);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.value-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.section-cream .value-card {
    background: #fff;
    color: var(--ink-dark);
    border-color: transparent;
}

.section-cream .value-card p {
    color: var(--muted-dark);
}

.table-note {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted-dark);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 18px;
}

.panel {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}

.panel.light {
    background: #fff;
    border-color: transparent;
    color: var(--ink-dark);
}

.panel h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.panel li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--muted);
}

.panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.panel.light li {
    color: var(--muted-dark);
}

.achieve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.achieve-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    color: var(--ink-dark);
}

.achieve-card img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.achieve-card div {
    padding: 22px;
}

.table-card {
    overflow: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line-dark);
    background: #fff;
    color: var(--ink-dark);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

th,
td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-dark);
    font-size: 0.95rem;
}

td {
    color: var(--ink-dark);
}

th {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-dark);
    background: #f7f3ea;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
}

.info-card {
    display: flex;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink-dark);
    margin-bottom: 14px;
}

.info-card a {
    color: var(--accent-deep);
    font-weight: 700;
}

.info-card .ic {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(28, 126, 163, 0.1);
    color: var(--accent-deep);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 20px;
}

.form-card {
    background: #fff;
    color: var(--ink-dark);
    border-radius: var(--radius);
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--line-dark);
    background: #f7f3ea;
    border-radius: 12px;
    padding: 14px 14px;
    color: var(--ink-dark);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent-deep);
    box-shadow: 0 0 0 4px rgba(28, 126, 163, 0.12);
}

.field.is-error input,
.field.is-error textarea {
    border-color: var(--danger);
}

.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 320px;
    border: 1px solid var(--line-dark);
}

.map-wrap iframe {
    width: 100%;
    height: 360px;
    border: 0;
    filter: grayscale(0.4) contrast(1.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.gallery-grid a {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-grid a:hover img {
    transform: scale(1.08);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(5, 8, 12, 0.92);
    display: none;
    place-items: center;
    padding: 24px;
}

.lightbox.is-open {
    display: grid;
}

.lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    border-radius: 16px;
}

.lightbox button {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-bar button {
    border: 1px solid var(--line-dark);
    background: transparent;
    color: var(--ink-dark);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.filter-bar button.is-on {
    background: var(--ink-dark);
    color: var(--ink);
    border-color: var(--ink-dark);
}

.job-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: #fff;
    color: var(--ink-dark);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 16px 40px rgba(16, 24, 32, 0.06);
}

.job-card img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.job-body {
    padding: 28px;
}

.pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f6fb;
    color: var(--accent-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cost {
    margin-top: 16px;
    padding: 12px 14px;
    background: #f7f3ea;
    border-radius: 12px;
    font-size: 0.92rem;
}

/* Reveals */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.reveal-left {
    transform: translateX(-28px);
}

.reveal-left.in {
    transform: none;
}

.stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.stagger.in > * {
    opacity: 1;
    transform: none;
}

.stagger.in > *:nth-child(2) {
    transition-delay: 0.08s;
}

.stagger.in > *:nth-child(3) {
    transition-delay: 0.16s;
}

.stagger.in > *:nth-child(4) {
    transition-delay: 0.24s;
}

.stagger.in > *:nth-child(5) {
    transition-delay: 0.32s;
}

.stagger.in > *:nth-child(6) {
    transition-delay: 0.4s;
}

.form-note {
    display: none;
    margin-top: 12px;
    font-size: 0.92rem;
}

.form-note.ok {
    display: block;
    color: #0f7a43;
}

.form-note.err {
    display: block;
    color: var(--danger);
}

@media (max-width: 1100px) {
    .sector-grid,
    .hero-stats,
    .stats-band,
    .achieve-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid,
    .about-grid,
    .clients,
    .values-grid,
    .split,
    .mission-grid,
    .contact-grid,
    .job-card,
    .footer-grid,
    .about-lead,
    .offer-grid {
        grid-template-columns: 1fr;
    }

    .values-grid .span-2 {
        grid-row: auto;
        min-height: 320px;
    }

    .mosaic,
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mosaic a:first-child,
    .mosaic figure:first-child {
        grid-row: auto;
        min-height: 240px;
    }

    .rail {
        grid-auto-columns: minmax(280px, 70%);
    }

    .photo-stack figure:nth-child(2) {
        margin-top: 0;
    }

    .about-sticky {
        position: static;
    }
}

@media (max-width: 1100px) {
    .header-phone b {
        display: none;
    }

    .header-phone {
        width: 44px;
        padding: 0;
    }

    .logo-text span {
        display: none;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex !important;
        position: relative;
        top: auto;
        right: auto;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        background: var(--bg);
    }

    .nav-open .nav-toggle {
        background: rgba(244, 239, 230, 0.12);
    }

    .nav-open .nav-toggle span,
    .nav-open .nav-toggle span::before,
    .nav-open .nav-toggle span::after {
        background: var(--ink);
    }

    .header-inner {
        width: min(1440px, calc(100% - 32px));
        overflow: visible;
        padding: 8px 8px 8px 12px;
        min-height: 64px;
    }

    .header-phone {
        display: none;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        height: 100%;
        height: 100dvh;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #05080c;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
    }

    .nav-open .site-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 80px 24px 40px;
    }

    .nav-list a {
        font-size: 28px;
        letter-spacing: -0.03em;
        text-transform: none;
        font-family: var(--font-display);
        padding: 10px 18px;
    }

    .nav-list a.is-active {
        background: rgba(244, 239, 230, 0.1);
    }

    .nav-call {
        display: block;
        margin-top: 18px;
    }

    .nav-call a {
        font-size: 15px !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        color: var(--accent) !important;
        font-family: var(--font-body) !important;
    }

    .hero {
        min-height: 100svh;
        padding-top: calc(var(--header-h) + 48px);
        align-items: stretch;
        justify-content: flex-end;
    }

    .hero-content {
        width: calc(100% - 32px);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-top: 32px;
        padding-bottom: 24px;
        box-sizing: border-box;
    }

    .hero h1 {
        font-size: 2.05rem;
        max-width: 100%;
        margin: 8px 0 16px;
        overflow-wrap: anywhere;
    }

    .hero-copy {
        font-size: 0.95rem;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 28px;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px;
    }

    .hero-stats strong {
        font-size: 1.55rem;
    }

    .hero-stats span {
        font-size: 11px;
    }

    .scroll-hint {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 160px 0 56px;
        min-height: 70vh;
    }

    .container {
        width: calc(100% - 32px);
        max-width: 100%;
    }

    .page-hero p {
        overflow-wrap: anywhere;
    }

    .job-card,
    .job-card img {
        min-height: 0;
    }

    .job-card img {
        height: 220px;
    }

    .contact-grid,
    .split,
    .mission-grid,
    .about-lead,
    .offer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 72px 0;
    }

    .sector-grid,
    .stats-band,
    .achieve-grid,
    .gallery-grid,
    .mosaic {
        grid-template-columns: 1fr;
    }

    .mosaic a:first-child,
    .mosaic figure:first-child {
        min-height: 220px;
    }

    .logo img {
        height: 40px;
        width: 40px;
    }

    .site-header {
        padding: 16px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .stagger > * {
        opacity: 1;
        transform: none;
    }
}
