:root {
    --bg: #080b14;
    --surface: #0d1220;
    --surface2: #111827;
    --ink: #e8e2f4;
    --muted: #8f8798;
    --line: rgba(8, 11, 20, 0.25);

    --violet: #9b7de8;
    --violet-bright: #b99ef0;
    --lav: #2a2050;
    --deep: #0a0610;
    --soft: #1e1330;
    --logo: #b99ef0;
    --accent: #7c5cbf;

    --radius: 28px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: "Inter", Arial, sans-serif;

    background: var(--bg);
    color: var(--ink);

    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
}

main,
.site-footer,
footer {
    position: relative;
    z-index: 1;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--lav);
    border-radius: 3px;
}

#starfield {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    z-index: 0;
    pointer-events: none;
}

.nebula {
    position: absolute;

    border-radius: 50%;
    pointer-events: none;

    filter: blur(80px);
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;

    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    padding: 18px 5vw;

    background: var(--lav);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--line);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);

    will-change: transform;
}

.brand {
    display: flex;
    align-items: center;
    gap: 6px;

    height: 100%;

    color: var(--logo);

    font-size: 1.2rem;
    font-weight: 800;

    text-decoration: none;
}

.brand img {
    display: block;

    max-height: 50px;
    width: auto;
}

.nav {
    display: flex;

    gap: 22px;
}

.nav a {
    color: var(--muted);

    font-size: 0.95rem;

    text-decoration: none;

    transition: color 0.25s ease;
}

.nav a:hover {
    color: var(--violet-bright);
}

.menu-toggle {
    display: none;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    width: 44px;
    height: 44px;
    padding: 0;

    gap: 5px;

    background: none;
    border: none;

    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 3px;

    background: var(--logo);

    border-radius: 2px;

    transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* GENERAL */

.section-pad {
    padding: 86px 5vw;
}

.intro {
    min-height: 76vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    margin: 0;

    color: var(--violet);

    font-size: 0.78rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.intro h1,
.section-head h2,
.split h2,
.contact h2 {
    max-width: 1120px;

    margin: 18px 0;

    font-size: clamp(2.5rem, 7vw, 7.8rem);
    line-height: 0.94;

    letter-spacing: -0.07em;
}

.lead {
    max-width: 760px;

    color: var(--muted);

    font-size: clamp(1.1rem, 2vw, 1.55rem);
    line-height: 1.45;
}

.lead.small {
    max-width: 620px;
}

.btn {
    display: inline-flex;

    padding: 14px 22px;
    margin-top: 12px;
    margin-right: 8px;

    border: 1px solid var(--line);
    border-radius: 999px;

    background: var(--lav);
    color: var(--ink);

    text-decoration: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.btn:hover {
    background: var(--soft);
    border-color: var(--violet);
}


/* STATS */

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    margin: 0 5vw;
    padding: 20px;

    border: 1px solid var(--line);
    border-radius: var(--radius);

    background: rgb(from var(--lav) r g b / 0.4);
}

.stats-strip div {
    padding: 20px;
}

.stats-strip strong {
    display: block;

    font-size: 2rem;
}

.stats-strip span {
    color: var(--muted);
}


/* PROJECT GRID */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
}

.project-card {
    padding: 18px;

    background: rgb(from var(--violet) r g b / 0.2);

    border: 1px solid var(--line);
    border-radius: var(--radius);

    text-decoration: none;

    transition: 0.35s ease;

    box-shadow: 0 20px 50px rgba(68, 48, 89, 0.06);
}

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

    background: rgb(from var(--violet) r g b / 0.4);

    border-color: var(--violet);
}

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

.project-card h3 {
    margin: 6px 0;

    font-size: 1.7rem;
}

.card-link {
    color: var(--violet);

    font-weight: 800;
}


/* PROJECT VISUALS */

.project-visual {
    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: flex-start;

    height: 300px;
    padding: 24px;

    overflow: hidden;

    border-radius: 22px;

    background: linear-gradient(
        135deg,
        #ded0f2,
        #b79fe8
    );

    isolation: isolate;
}

.project-visual::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(185, 158, 240, 0.25),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            rgba(155, 125, 232, 0.12),
            transparent 55%
        );

    z-index: -2;
}

.project-visual::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent 0 48%,
            rgba(255, 255, 255, 0.035) 49%,
            transparent 50%
        ),
        linear-gradient(
            315deg,
            transparent 0 48%,
            rgba(255, 255, 255, 0.025) 49%,
            transparent 50%
        );

    background-size: 90px 90px;

    opacity: 0.5;

    z-index: -1;
}

.project-visual strong {
    position: absolute;

    top: 22px;
    left: 24px;

    color: rgba(232, 226, 244, 0.9);

    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 0.8;

    letter-spacing: -0.08em;

    z-index: 4;
}


/* EVENT */

.event-visual {
    background:
        radial-gradient(
            circle at 20% 80%,
            rgba(124, 92, 191, 0.5),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(185, 158, 240, 0.25),
            transparent 35%
        ),
        var(--deep);
}

.visual-event-lights {
    position: absolute;

    width: 170px;
    height: 170px;

    top: -40px;
    right: 30px;

    border-radius: 50%;

    background: rgba(185, 158, 240, 0.2);

    filter: blur(35px);
}

.visual-camera {
    position: absolute;

    width: 125px;
    height: 85px;

    left: 50%;
    top: 52%;

    transform: translate(-50%, -50%) rotate(-6deg);

    border: 3px solid rgba(232, 226, 244, 0.8);
    border-radius: 18px;

    background: rgba(13, 18, 32, 0.8);

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.visual-camera::before {
    content: "";

    position: absolute;

    width: 45px;
    height: 18px;

    left: 16px;
    top: -18px;

    border: 3px solid rgba(232, 226, 244, 0.8);
    border-bottom: 0;

    border-radius: 8px 8px 0 0;
}

.visual-camera span {
    position: absolute;

    width: 42px;
    height: 42px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border: 5px solid var(--violet-bright);
    border-radius: 50%;
}

.visual-event-frame {
    position: absolute;

    width: 100px;
    height: 130px;

    border: 1px solid rgba(232, 226, 244, 0.3);

    transform: rotate(12deg);
}

.frame-one {
    right: 15%;
    bottom: 20%;
}

.frame-two {
    left: 8%;
    top: 28%;

    transform: rotate(-12deg);
}


/* HOUSING */

.housing-visual {
    background:
        linear-gradient(
            145deg,
            rgba(155, 125, 232, 0.18),
            transparent 50%
        ),
        var(--soft);
}

.visual-building {
    position: absolute;

    bottom: 0;

    background: rgba(185, 158, 240, 0.12);

    border: 1px solid rgba(185, 158, 240, 0.3);
}

.building-one {
    left: 8%;

    width: 23%;
    height: 52%;
}

.building-two {
    left: 31%;

    width: 25%;
    height: 72%;

    background: rgba(185, 158, 240, 0.18);
}

.building-three {
    right: 8%;

    width: 27%;
    height: 43%;
}

.visual-building::after {
    content: "";

    position: absolute;
    inset: 15px;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(232, 226, 244, 0.3) 0 4px,
            transparent 4px 20px
        );

    opacity: 0.45;
}

.visual-house {
    position: absolute;

    left: 50%;
    bottom: 23%;

    width: 105px;
    height: 80px;

    transform: translateX(-50%);

    border: 3px solid var(--violet-bright);

    background: rgba(8, 11, 20, 0.75);
}

.visual-house::before {
    content: "";

    position: absolute;

    width: 75px;
    height: 75px;

    left: 11px;
    top: -42px;

    border-left: 3px solid var(--violet-bright);
    border-top: 3px solid var(--violet-bright);

    transform: rotate(45deg);

    background: var(--deep);
}

.visual-house::after {
    content: "";

    position: absolute;

    width: 24px;
    height: 38px;

    bottom: 0;
    left: 40px;

    border: 2px solid rgba(232, 226, 244, 0.6);
}


/* PRODUCT */

.product-visual {
    background:
        radial-gradient(
            circle at 50% 55%,
            rgba(185, 158, 240, 0.25),
            transparent 35%
        ),
        var(--deep);
}

.visual-spotlight {
    position: absolute;

    left: 50%;
    top: -40px;

    width: 260px;
    height: 360px;

    transform: translateX(-50%);

    background: linear-gradient(
        90deg,
        transparent,
        rgba(185, 158, 240, 0.12),
        transparent
    );

    clip-path: polygon(
        35% 0,
        65% 0,
        100% 100%,
        0 100%
    );
}

.visual-product {
    position: absolute;

    left: 50%;
    bottom: 28%;

    width: 100px;
    height: 125px;

    transform: translateX(-50%);

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        rgba(185, 158, 240, 0.45),
        rgba(42, 32, 80, 0.9)
    );

    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.visual-product::before {
    content: "";

    position: absolute;

    left: 18px;
    right: 18px;
    top: 24px;

    height: 3px;

    background: var(--violet-bright);
}

.visual-product span {
    position: absolute;

    width: 45px;
    height: 45px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border: 2px solid rgba(232, 226, 244, 0.5);
    border-radius: 50%;
}

.visual-ring {
    position: absolute;

    left: 50%;
    bottom: 19%;

    width: 220px;
    height: 45px;

    transform: translateX(-50%);

    border: 1px solid rgba(185, 158, 240, 0.4);
    border-radius: 50%;
}


/* RESTAURANT */

.restaurant-visual {
    background:
        radial-gradient(
            circle at 50% 55%,
            rgba(185, 158, 240, 0.2),
            transparent 35%
        ),
        var(--surface);
}

.visual-plate {
    position: absolute;

    left: 50%;
    top: 52%;

    width: 180px;
    height: 180px;

    transform: translate(-50%, -50%);

    border: 3px solid rgba(232, 226, 244, 0.65);
    border-radius: 50%;

    background: rgba(13, 18, 32, 0.6);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.45),
        inset 0 0 0 12px rgba(185, 158, 240, 0.08);
}

.visual-plate span {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 75px;
    height: 75px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: rgba(155, 125, 232, 0.35);

    box-shadow: 0 0 35px rgba(155, 125, 232, 0.2);
}

.visual-food {
    position: absolute;

    border-radius: 50%;

    background: var(--violet-bright);

    opacity: 0.75;
}

.food-one {
    width: 18px;
    height: 18px;

    left: 43%;
    top: 47%;
}

.food-two {
    width: 12px;
    height: 12px;

    left: 54%;
    top: 52%;
}

.food-three {
    width: 15px;
    height: 15px;

    left: 49%;
    top: 59%;
}


/* TRAVEL */

.travel-visual {
    background:
        linear-gradient(
            180deg,
            rgba(185, 158, 240, 0.15),
            transparent 60%
        ),
        var(--deep);
}

.visual-sun {
    position: absolute;

    width: 110px;
    height: 110px;

    right: 15%;
    top: 20%;

    border-radius: 50%;

    background: rgba(185, 158, 240, 0.35);

    box-shadow: 0 0 70px rgba(185, 158, 240, 0.25);
}

.visual-mountain {
    position: absolute;

    bottom: 0;

    width: 0;
    height: 0;

    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 190px solid rgba(155, 125, 232, 0.2);
}

.mountain-one {
    left: -50px;
}

.mountain-two {
    right: -70px;

    border-bottom-color: rgba(185, 158, 240, 0.13);

    border-left-width: 180px;
    border-right-width: 180px;
    border-bottom-width: 150px;
}

.visual-route {
    position: absolute;

    width: 260px;
    height: 110px;

    left: 25%;
    bottom: 22%;

    border-top: 2px dashed rgba(232, 226, 244, 0.5);
    border-radius: 50%;

    transform: rotate(-12deg);
}

.visual-plane {
    position: absolute;

    left: 65%;
    bottom: 38%;

    color: var(--violet-bright);

    font-size: 2rem;

    transform: rotate(-20deg);
}


/* WELLNESS */

.wellness-visual {
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(185, 158, 240, 0.22),
            transparent 38%
        ),
        var(--soft);
}

.visual-mirror {
    position: absolute;

    left: 50%;
    top: 51%;

    width: 150px;
    height: 190px;

    transform: translate(-50%, -50%);

    border: 2px solid rgba(232, 226, 244, 0.5);

    border-radius: 75px 75px 45px 45px;

    background: rgba(13, 18, 32, 0.55);

    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.visual-mirror::before {
    content: "";

    position: absolute;

    width: 50px;
    height: 80px;

    left: 48px;
    top: 45px;

    border-radius: 50%;

    background: rgba(185, 158, 240, 0.16);
}

.visual-mirror::after {
    content: "";

    position: absolute;

    width: 2px;
    height: 35px;

    left: 50%;
    bottom: -35px;

    background: rgba(232, 226, 244, 0.45);
}

.visual-wellness-circle {
    position: absolute;

    width: 260px;
    height: 260px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(185, 158, 240, 0.18);

    border-radius: 50%;
}

.visual-flower {
    position: absolute;

    width: 35px;
    height: 35px;

    border: 1px solid rgba(185, 158, 240, 0.55);

    border-radius: 50%;
}

.visual-flower::before,
.visual-flower::after {
    content: "";

    position: absolute;

    width: 35px;
    height: 35px;

    border: 1px solid rgba(185, 158, 240, 0.55);

    border-radius: 50%;
}

.visual-flower::before {
    transform: translateX(-18px);
}

.visual-flower::after {
    transform: translateY(-18px);
}

.flower-one {
    left: 15%;
    bottom: 25%;
}

.flower-two {
    right: 15%;
    top: 40%;
}


/* SERVICES */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.service-card {
    padding: 26px;

    background: rgb(from var(--lav) r g b / 0.4);

    border: 1px solid var(--line);
    border-radius: 24px;
}

.service-card span {
    color: var(--violet);

    font-weight: 900;
}

.service-card h3 {
    font-size: 1.4rem;
}

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

    line-height: 1.55;
}


/* GROWTH */

.growth-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;

    gap: 30px;

    align-items: center;
}

.chart-card {
    padding: 26px;

    background: rgb(from var(--violet) r g b / 0.4);

    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.chart-row {
    display: grid;
    grid-template-columns: 80px 1fr 55px;

    gap: 12px;

    align-items: center;

    margin: 18px 0;
}

.chart-row span {
    color: var(--muted);
}

.chart-row div {
    height: 12px;

    background: var(--soft);

    border-radius: 99px;

    overflow: hidden;
}

.chart-row i {
    display: block;

    height: 100%;

    border-radius: 99px;

    background: linear-gradient(
        90deg,
        var(--lav),
        var(--violet)
    );
}


/* PROCESS */

.process {
    margin: 0 5vw;
    padding: 20px;

    background: rgb(from var(--lav) r g b / 0.4);

    border: 1px solid var(--line);
    border-radius: var(--radius);

    color: var(--ink);
}

.process-line {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 12px;
}

.process-line div {
    padding: 22px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
}

.process-line p {
    color: var(--ink);
}


/* ABOUT */

.split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;

    gap: 40px;
}

.about-visual {
    padding: 20px;

    background: rgb(from var(--lav) r g b / 0.2);

    border: 1px solid var(--line);
    border-radius: var(--radius);

    color: var(--ink);
}


/* CONTACT */

.contact {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    background: rgb(from var(--lav) r g b / 0.4);
}

.contact-intro {
    max-width: 650px;

    margin: 0 auto 30px;

    color: var(--muted);

    line-height: 1.6;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    width: 100%;
    max-width: 1000px;

    gap: 12px;

    margin-top: 25px;
}

.contact-item {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 110px;
    padding: 18px 12px;

    color: var(--ink);

    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;

    background: var(--line);

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.contact-item:hover {
    background: rgba(8, 11, 20, 0.4);

    border-color: var(--violet);
}

.contact-icon {
    margin-bottom: 9px;

    color: var(--violet-bright);

    font-size: 1.4rem;
}

.contact-item small {
    display: block;

    margin-bottom: 3px;

    color: var(--muted);

    font-size: 0.7rem;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-item strong {
    font-size: 0.85rem;
    font-weight: 600;

    text-align: center;
}


/* FOOTER */

.site-footer {
    margin-top: 0;

    background: rgb(from var(--soft) r g b / 0.4);

    color: var(--ink);

    border-top: 1px solid var(--line);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;

    width: 90%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 70px 0 55px;

    gap: 50px;
}

.footer-brand {
    max-width: 380px;
}

.footer-logo {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--logo);

    font-size: 1.35rem;
    font-weight: 800;

    text-decoration: none;
}

.footer-logo img {
    width: 45px;
    height: 45px;

    object-fit: contain;
}

.footer-brand p {
    margin: 20px 0 24px;

    color: var(--muted);

    font-size: 0.95rem;
    line-height: 1.65;
}

.footer-socials {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;
}

.footer-socials a {
    color: var(--muted);

    font-size: 0.9rem;

    text-decoration: none;

    transition: color 0.25s ease;
}

.footer-socials a:hover {
    color: var(--violet-bright);
}

.footer-column {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 11px;
}

.footer-column h3 {
    margin: 0 0 10px;

    color: var(--ink);

    font-size: 0.8rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-column a {
    color: var(--muted);

    font-size: 0.9rem;

    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-column a:hover {
    color: var(--violet-bright);

    transform: translateX(3px);
}

.footer-contact p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 0.9rem;
}

.footer-bottom {
    width: 100%;

    background: var(--deep);

    border-top: 1px solid var(--line);

    color: var(--muted);

    font-size: 0.75rem;
}

.footer-bottom-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 90%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 20px 0;

    gap: 16px;
}


/* REVEAL */

.reveal {
    opacity: 1;

    transform: none;

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal:not(.visible) {
    opacity: 0;

    transform: translateY(22px);
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* PROJECT PAGE */

.project-page {
    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 45px 0 100px;
}

.project-page .back {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 70px;

    color: var(--muted);

    font-size: 0.95rem;

    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.project-page .back:hover {
    color: var(--violet-bright);

    transform: translateX(-3px);
}

.case-hero {
    max-width: 900px;

    margin-bottom: 70px;
}

.case-hero h1 {
    margin: 16px 0 22px;

    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.92;

    letter-spacing: -0.07em;
}

.case-hero .lead {
    max-width: 780px;
}

.case-layout {
    display: grid;

    grid-template-columns: 0.85fr 1.4fr;

    gap: 24px;

    align-items: start;
}

.info-card,
.gallery-card {
    min-width: 0;

    padding: 30px;

    background: rgb(from var(--lav) r g b / 0.4);

    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.info-card {
    position: sticky;

    top: 110px;
}

.info-card h2,
.gallery-card h2 {
    margin: 8px 0 22px;

    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1;

    letter-spacing: -0.04em;
}

.info-card p:not(.eyebrow) {
    color: var(--muted);

    font-size: 0.95rem;
    line-height: 1.7;
}

.info-card b {
    color: var(--ink);
}

.gallery-card {
    min-width: 0;
    width: 100%;
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin-top: 28px;
}

.gallery-item {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 240px;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--line);
    border-radius: 20px;

    color: var(--muted);

    cursor: pointer;

    outline: none;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    transform: translateY(-4px);

    border-color: var(--violet);
}

.gallery-item img,
.gallery-item video {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 240px;

    object-fit: cover;

    background: #0d1117;
}

.gallery-item video {
    background: #000;
}

.gallery-item.is-video::after {
    content: "▶";

    position: absolute;

    left: 50%;
    top: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    padding-left: 2px;

    transform: translate(-50%, -50%);

    background: rgba(8, 11, 20, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    color: var(--ink);

    font-size: 0.9rem;

    pointer-events: none;
}


/* MEDIA MODAL */

body.media-modal-open {
    overflow: hidden;
}

.media-modal {
    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100dvh;

    padding: 30px;

    background: rgba(3, 7, 16, 0.86);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.media-modal.open {
    opacity: 1;
    visibility: visible;
}

.media-modal-panel {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: min(1200px, 94vw);
    max-width: 1200px;

    max-height: 94dvh;

    padding: 18px;

    background: rgba(9, 13, 24, 0.97);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(155, 125, 232, 0.04);

    overflow: visible;
}

.media-modal-media {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 100%;

    height: auto;
    max-height: calc(94dvh - 36px);

    min-height: 200px;

    overflow: hidden;

    background: #000;

    border-radius: 16px;
}

.media-modal-media > img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: calc(94dvh - 70px);

    object-fit: contain;

    border-radius: 12px;
}

.media-video-wrapper {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: auto;

    max-width: 100%;
    max-height: calc(94dvh - 70px);

    overflow: hidden;

    background: #000;
}

.media-video-wrapper video {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: calc(94dvh - 70px);

    object-fit: contain;

    background: #000;

    border-radius: 12px;
}

.media-play-button {
    position: absolute;

    left: 50%;
    top: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 76px;
    height: 76px;
    padding: 0;

    transform: translate(-50%, -50%);

    background: rgba(8, 11, 20, 0.78);

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    color: var(--ink);

    cursor: pointer;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(155, 125, 232, 0.15);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.media-play-button:hover {
    transform: translate(-50%, -50%) scale(1.08);

    background: rgba(42, 32, 80, 0.9);

    border-color: var(--violet-bright);
}

.media-play-button.hidden {
    opacity: 0;

    pointer-events: none;
}

.media-play-icon {
    display: block;

    margin-left: 4px;

    color: var(--ink);

    font-size: 1.55rem;
    line-height: 1;
}

.media-modal-close,
.media-nav {
    position: absolute;

    z-index: 5;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;

    color: var(--ink);

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.media-modal-close {
    top: -18px;
    right: -18px;

    width: 42px;
    height: 42px;

    font-size: 1.5rem;
    line-height: 1;
}

.media-modal-close:hover {
    background: var(--lav);

    border-color: var(--violet);

    transform: scale(1.05);
}

.media-nav {
    top: 50%;

    width: 46px;
    height: 46px;

    transform: translateY(-50%);

    background: rgba(8, 11, 20, 0.82);

    font-size: 2rem;
    line-height: 1;
}

.media-nav:hover {
    background: var(--lav);

    border-color: var(--violet);
}

.media-nav.prev {
    left: -23px;
}

.media-nav.next {
    right: -23px;
}


/* TABLET */

@media (max-width: 820px) {

    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;

        top: 66px;
        left: 5vw;
        right: 5vw;

        z-index: 100;

        display: none;

        flex-direction: column;

        padding: 18px;

        background: rgb(from var(--lav) r g b / 0.4);

        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        border: 1px solid var(--line);
        border-radius: 22px;

        gap: 0;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 12px 8px;
    }

    .section-pad {
        padding: 64px 5vw;
    }

    .intro {
        min-height: 70vh;

        padding-top: 20px;
    }

    .intro h1,
    .section-head h2,
    .split h2,
    .contact h2 {
        letter-spacing: -0.05em;
    }

    .project-grid,
    .growth-section,
    .services-grid,
    .process-line,
    .split,
    .stats-strip {
        grid-template-columns: 1fr;
    }

    .project-visual {
        height: 230px;
    }

    .chart-row {
        grid-template-columns: 68px 1fr 48px;

        font-size: 0.9rem;
    }

    .process {
        margin: 0 5vw;
    }


    /* CASE STUDY */

    .project-page {
        width: 90%;

        padding: 35px 0 75px;
    }

    .project-page .back {
        margin-bottom: 50px;
    }

    .case-hero {
        margin-bottom: 50px;
    }

    .case-hero h1 {
        font-size: clamp(3rem, 14vw, 5.5rem);
    }

    .case-layout {
        grid-template-columns: 1fr;

        gap: 18px;

        width: 100%;
    }

    .info-card,
    .gallery-card {
        width: 100%;
        min-width: 0;

        padding: 24px;
    }

    .info-card {
        position: static;

        order: 1;
    }

    .gallery-card {
        order: 2;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .gallery-item,
    .gallery-item img,
    .gallery-item video {
        min-height: 190px;
    }


    /* CONTACT */

    .contact-links {
        grid-template-columns: repeat(2, 1fr);
    }


    /* FOOTER */

    .footer-main {
        width: 90%;

        grid-template-columns: 1fr 1fr;

        gap: 45px 30px;

        padding: 55px 0 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;

        max-width: 100%;
    }


    /* MEDIA MODAL */

    .media-modal {
        padding: 18px;
    }

    .media-modal-panel {
        width: 96vw;
        max-width: 96vw;

        max-height: 94dvh;

        padding: 12px;

        border-radius: 20px;
    }

    .media-modal-media {
        max-height: calc(94dvh - 50px);

        border-radius: 12px;
    }

    .media-modal-media > img {
        max-width: 100%;
        max-height: calc(94dvh - 70px);
    }

    .media-video-wrapper {
        max-height: calc(94dvh - 70px);
    }

    .media-video-wrapper video {
        max-width: 100%;
        max-height: calc(94dvh - 70px);
    }

    .media-play-button {
        width: 66px;
        height: 66px;
    }

    .media-play-icon {
        font-size: 1.35rem;
    }

    .media-modal-close {
        top: -12px;
        right: -12px;

        width: 38px;
        height: 38px;
    }

    .media-nav {
        width: 40px;
        height: 40px;

        font-size: 1.7rem;
    }

    .media-nav.prev {
        left: -14px;
    }

    .media-nav.next {
        right: -14px;
    }
}


/* SMALL MOBILE */

@media (max-width: 500px) {

    .brand {
        font-size: 1rem;
    }

    .brand img {
        max-height: 42px;
    }


    /* CASE STUDY */

    .project-page {
        width: 90%;

        padding-top: 25px;
    }

    .project-page .back {
        margin-bottom: 40px;
    }

    .case-layout {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .info-card {
        position: static;

        order: 1;
    }

    .gallery-card {
        order: 2;
    }

    .case-hero h1 {
        font-size: clamp(2.8rem, 15vw, 4.5rem);
    }

    .case-hero .lead {
        font-size: 1rem;
    }

    .info-card,
    .gallery-card {
        padding: 20px;

        border-radius: 22px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .gallery-item,
    .gallery-item img,
    .gallery-item video {
        min-height: 230px;
    }


    /* CONTACT */

    .contact-links {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: row;

        justify-content: flex-start;

        gap: 15px;

        text-align: left;
    }

    .contact-icon {
        margin-bottom: 0;
    }

    .contact-item strong {
        text-align: left;
    }


    /* FOOTER */

    .footer-main {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 45px 0 35px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom-inner {
        padding: 18px 0;
    }


    /* MEDIA MODAL */

    .media-modal {
        padding: 10px;
    }

    .media-modal-panel {
        width: 98vw;
        max-width: 98vw;

        padding: 8px;

        border-radius: 16px;
    }

    .media-modal-media {
        max-height: calc(94dvh - 40px);
    }

    .media-modal-media > img {
        max-height: calc(94dvh - 60px);
    }

    .media-video-wrapper {
        max-height: calc(94dvh - 60px);
    }

    .media-video-wrapper video {
        max-height: calc(94dvh - 60px);
    }

    .media-play-button {
        width: 58px;
        height: 58px;
    }

    .media-play-icon {
        font-size: 1.2rem;
    }

    .media-modal-close {
        top: -10px;
        right: -10px;

        width: 34px;
        height: 34px;

        font-size: 1.25rem;
    }

    .media-nav {
        width: 36px;
        height: 36px;

        font-size: 1.5rem;
    }

    .media-nav.prev {
        left: -10px;
    }

    .media-nav.next {
        right: -10px;
    }
}