:root {
    --black: #090909;
    --white: #f4f3ef;
    --paper: #e9e7e0;
    --line: rgba(9, 9, 9, 0.18);
    --lime: #c7ff2f;
    --blue: #1647ff;
    --pad: clamp(20px, 4vw, 72px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/static/fonts/InterVariable.woff2") format("woff2");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--black);
    background: var(--white);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

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

*:focus,
*:focus-visible {
    outline: none;
}

button,
input,
textarea {
    color: inherit;
    font: inherit;
}

button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

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

.noise {
    display: none;
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 18px var(--pad);
    color: var(--white);
    mix-blend-mode: difference;
    transition: transform 0.5s var(--ease);
}

.inner-page .site-header {
    color: var(--black);
    mix-blend-mode: normal;
    background: rgba(244, 243, 239, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(9, 9, 9, 0.08);
}

.site-header.is-hidden {
    transform: translateY(-110%);
}

.wordmark,
.footer-brand {
    width: max-content;
    font-size: clamp(24px, 2.1vw, 34px);
    font-weight: 700;
    letter-spacing: -0.08em;
    line-height: 1;
}

.wordmark span,
.footer-brand span {
    margin-left: 4px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0;
    vertical-align: top;
}

.desktop-nav {
    display: flex;
    gap: 32px;
    font-size: 13px;
}

.desktop-nav a {
    position: relative;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.language-toggle {
    color: inherit;
    font-size: 12px;
    text-decoration: none;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 13px 18px;
    color: var(--black);
    background: var(--white);
    border-radius: 999px;
    font-size: 12px;
    mix-blend-mode: normal;
    will-change: transform;
    transition:
        background 0.45s var(--ease),
        box-shadow 0.45s var(--ease),
        color 0.45s var(--ease);
}

.header-contact:hover {
    box-shadow: 0 10px 28px rgba(9, 9, 9, 0.12);
}

.arrow {
    display: inline-block;
    font-size: 16px;
    transition: transform 0.55s var(--ease);
}

.header-contact .arrow {
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-contact:hover .arrow {
    transform: translate3d(3px, -2px, 0) rotate(-45deg);
}

.menu-toggle {
    display: none;
    width: 30px;
    height: 30px;
    color: inherit;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    margin: 7px 0;
    background: currentColor;
    transition: transform 0.4s var(--ease);
}

.mobile-menu {
    position: fixed;
    z-index: 45;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 110px var(--pad) 40px;
    color: var(--white);
    background: var(--black);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu nav a {
    padding: 8px 0;
    font-size: clamp(48px, 14vw, 84px);
    letter-spacing: -0.07em;
    line-height: 0.95;
}

.mobile-menu > a {
    font-size: 14px;
}

.hero {
    position: relative;
    display: flex;
    min-height: 100svh;
    padding: 100px var(--pad) 36px;
    color: var(--white);
    background: var(--black);
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
}

.hero-grid {
    position: absolute;
    z-index: -3;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
    background-size: 8.333vw 8.333vw;
    mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 70%, transparent 100%);
}

.hero-orb {
    position: absolute;
    z-index: -2;
    width: 42vw;
    height: 42vw;
    border-radius: 50%;
    transform: translate3d(calc(var(--mx, 0) * 22px), calc(var(--my, 0) * 22px), 0);
    transition: transform 0.2s ease-out;
}

.hero-orb-one {
    top: 2%;
    right: 2%;
    background: radial-gradient(circle at 35% 35%, #c7ff2f 0, #628000 14%, #171717 52%, transparent 69%);
    opacity: 0.75;
}

.hero-orb-two {
    bottom: -29%;
    left: 8%;
    background: radial-gradient(circle at 50%, #1546ff 0, #071644 23%, transparent 68%);
    opacity: 0.72;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-title {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    max-width: 1500px;
    margin: 0;
    padding: 28px 0;
    font-size: clamp(52px, 8.6vw, 152px);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.92;
}

.hero-line {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(0 -0.12em -0.18em 0);
}

.hero-line > span {
    display: block;
    animation: title-in 0.45s var(--ease) both;
}

.hero-line:nth-child(2) > span {
    animation-delay: 0.05s;
}

 .hero-line:nth-child(3) > span {
    animation-delay: 0.1s;
}

.hero-line-accent {
    color: var(--lime);
    font-style: italic;
}

@keyframes title-in {
    from { transform: translateY(110%); }
    to { transform: translateY(0); }
}

.hero-bottom {
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-bottom > p {
    max-width: 480px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(15px, 1.3vw, 20px);
}

.round-link {
    display: flex;
    width: 126px;
    height: 126px;
    padding: 0 18px;
    color: var(--black);
    background: var(--white);
    border-radius: 50%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    transition: color 0.4s, background 0.4s, transform 0.4s var(--ease);
}

.round-link:hover {
    background: var(--lime);
}

.round-link > span {
    font-size: 20px;
    line-height: 1;
}

.round-link small {
    max-width: 70px;
    font-size: 11px;
    line-height: 1.2;
}

.section {
    padding: clamp(90px, 12vw, 190px) var(--pad);
}

.section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: clamp(60px, 9vw, 140px);
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-head h2 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(40px, 6.4vw, 110px);
    font-weight: 400;
    letter-spacing: -0.075em;
    line-height: 0.97;
}

.work {
    background: var(--paper);
}

.case {
    margin-bottom: clamp(60px, 9vw, 140px);
}

.case-visual {
    position: relative;
    background: #111;
    overflow: hidden;
}

.case-visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 40%, rgba(0, 0, 0, 0.15));
    content: "";
    pointer-events: none;
}

.case-visual picture,
.case-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.case-visual img {
    transform: scale(1.015);
    transition: transform 1.1s var(--ease), filter 0.8s;
}

.case:hover .case-visual img {
    transform: scale(1.06);
}

.case-index,
.case-view {
    position: absolute;
    z-index: 2;
    top: 24px;
    padding: 10px 13px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 10px;
    backdrop-filter: blur(10px);
}

.case-index {
    left: 24px;
}

.case-view {
    right: 24px;
    transform: translateY(-6px);
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s var(--ease);
}

.case:hover .case-view {
    transform: translateY(0);
    opacity: 1;
}

.case-info {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.case-info h3 {
    margin: 0 0 8px;
    font-size: clamp(25px, 3vw, 50px);
    font-weight: 500;
    letter-spacing: -0.055em;
}

.case-info p {
    max-width: 520px;
    margin: 0;
    color: rgba(9, 9, 9, 0.58);
    font-size: 14px;
}

.case-info ul {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-info li {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 9px;
    text-transform: uppercase;
}

.case-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 54px);
}

.case-pair .case-info {
    display: block;
}

.case-pair .case-info ul {
    margin-top: 20px;
}

.text-link {
    display: flex;
    width: 100%;
    padding: 25px 0;
    border-top: 1px solid var(--black);
    border-bottom: 1px solid var(--black);
    justify-content: space-between;
    align-items: center;
    font-size: clamp(25px, 3.6vw, 60px);
    letter-spacing: -0.055em;
}

.text-link > span:last-child {
    display: inline-block;
    transition: transform 0.35s ease;
}

.text-link:hover > span:last-child {
    transform: rotate(-45deg);
}

.section-dark {
    color: var(--white);
    background: var(--black);
}

.studio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
}

.studio-copy h2 {
    max-width: 9.5em;
    margin: 70px 0 48px;
    font-size: clamp(36px, 4.2vw, 68px);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 1.12;
}

.studio-copy h2 .studio-line {
    display: block;
}

.studio-copy h2 .studio-line + .studio-line {
    margin-top: 0.4em;
}

.studio-copy > p {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: clamp(16px, 1.5vw, 23px);
}

.metrics {
    display: flex;
    padding-top: 18vh;
    flex-direction: column;
    justify-content: flex-end;
}

.metric {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.19);
}

.metric strong {
    display: block;
    font-size: clamp(76px, 9vw, 150px);
    font-weight: 300;
    letter-spacing: -0.08em;
    line-height: 0.82;
}

.metric strong span:last-child {
    color: var(--lime);
}

.metric p {
    max-width: 250px;
    margin: 20px 0 0 auto;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
}

.services {
    background: var(--white);
}

.services-list {
    width: calc(100% + 2 * var(--pad));
    margin-inline: calc(var(--pad) * -1);
    border-top: 1px solid var(--line);
}

.service-row {
    display: grid;
    grid-template-columns: 80px 1.5fr 1fr 40px;
    gap: 24px;
    align-items: center;
    width: 100%;
    min-height: 150px;
    padding-inline: var(--pad);
    color: inherit;
    text-align: left;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: color 0.35s, background 0.35s;
}

.service-row:hover,
.service-row:focus-visible {
    color: var(--white);
    background: var(--black);
    outline: none;
}

.service-index {
    font-size: 10px;
}

.service-title {
    font-size: clamp(27px, 4vw, 66px);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 1.05;
}

.service-desc {
    color: #777;
    font-size: 12px;
    transition: color 0.35s;
}

.service-row:hover .service-desc,
.service-row:focus-visible .service-desc {
    color: rgba(255, 255, 255, 0.55);
}

.service-mark {
    display: inline-block;
    justify-self: end;
    font-size: 23px;
    transition: transform 0.35s ease;
}

.service-row:hover .service-mark,
.service-row:focus-visible .service-mark {
    transform: rotate(-45deg);
}

.section-lime {
    background: var(--lime);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(9, 9, 9, 0.35);
    list-style: none;
}

.process-grid li {
    display: flex;
    min-height: 360px;
    padding: 24px;
    border-right: 1px solid rgba(9, 9, 9, 0.35);
    flex-direction: column;
}

.process-grid li:last-child {
    border-right: 0;
}

.process-grid li > span {
    font-size: 10px;
}

.process-grid h3 {
    margin: auto 0 15px;
    font-size: clamp(23px, 2.2vw, 36px);
    font-weight: 500;
    letter-spacing: -0.05em;
}

.process-grid p {
    min-height: 48px;
    margin: 0;
    color: rgba(9, 9, 9, 0.58);
    font-size: 12px;
}

.technology {
    padding-right: 0;
    padding-left: 0;
    background: var(--paper);
    overflow: hidden;
}

.tech-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 var(--pad) 100px;
}

.tech-intro p {
    max-width: 520px;
    margin: 0;
    font-size: clamp(25px, 3vw, 48px);
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    padding: 28px 0;
    align-items: center;
    gap: 38px;
    animation: marquee 30s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.marquee-track span {
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(60px, 9vw, 150px);
    font-weight: 500;
    letter-spacing: -0.07em;
    line-height: 1;
    white-space: nowrap;
}

/* CSS asterisk only — never put ✳/emoji in HTML (iOS swaps font & clips neighbors) */
.marquee-track i {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    color: transparent;
    font-style: normal;
    background:
        linear-gradient(var(--blue), var(--blue)) center / 22px 2.5px no-repeat,
        linear-gradient(var(--blue), var(--blue)) center / 2.5px 22px no-repeat;
}

.marquee-track i::before,
.marquee-track i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 2.5px;
    margin: -1.25px 0 0 -11px;
    background: var(--blue);
    border-radius: 1px;
}

.marquee-track i::before { transform: rotate(45deg); }
.marquee-track i::after { transform: rotate(-45deg); }

@keyframes marquee {
    to { transform: translate3d(-50%, 0, 0); }
}

.clients .section-head h2 {
    max-width: 16ch;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.clients-marquee {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.clients-marquee-track {
    display: flex;
    width: max-content;
    animation: clients-marquee 55s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.clients-marquee:hover .clients-marquee-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .clients-marquee-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
    }

    .clients-marquee-track .client-item:nth-child(n + 18) {
        display: none; /* hide duplicate set */
    }
}

@keyframes clients-marquee {
    to { transform: translate3d(-50%, 0, 0); }
}

.clients-marquee .client-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    width: min(320px, 72vw);
    min-height: 210px;
    padding: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.clients-marquee .client-item strong {
    font-size: clamp(20px, 2.5vw, 36px);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 1.05;
}

.clients-marquee .client-item span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* legacy grid kept for any leftover refs */
.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.client-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px;
    padding: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.client-item strong {
    font-size: clamp(20px, 2.5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 1.05;
}

.client-item span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.insights {
    background: var(--white);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.insight-card {
    position: relative;
    display: flex;
    min-height: 410px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    color: inherit;
    cursor: pointer;
    transition: background 0.4s, color 0.4s;
}

@media (hover: hover) and (pointer: fine) {
    .insight-card:hover {
        color: var(--white);
        background: var(--blue);
    }

    .insight-card:hover .insight-arrow {
        transform: rotate(-45deg);
    }
}

.insight-card > span:first-child {
    font-size: 10px;
    text-transform: uppercase;
}

.insight-card h3 {
    margin: auto 0 24px;
    font-size: clamp(27px, 2.8vw, 48px);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 1.02;
}

.insight-arrow {
    display: grid;
    width: 46px;
    height: 46px;
    border: 1px solid currentColor;
    border-radius: 50%;
    place-items: center;
    transition: transform 0.35s ease;
}

.contact {
    position: relative;
    min-height: 92vh;
    color: var(--white);
    background: var(--black);
    overflow: hidden;
    isolation: isolate;
}

.contact-glow {
    position: absolute;
    z-index: -1;
    right: -8%;
    bottom: -30%;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 71, 255, 0.95), rgba(10, 10, 10, 0) 67%);
}

.contact h2 {
    max-width: 1250px;
    margin: 12vh 0 10vh;
    font-size: clamp(64px, 10.2vw, 174px);
    font-weight: 400;
    letter-spacing: -0.085em;
    line-height: 0.86;
}

.contact-button {
    display: flex;
    width: min(620px, 100%);
    padding: 24px 0;
    color: var(--white);
    border-top: 1px solid var(--white);
    border-bottom: 1px solid var(--white);
    justify-content: space-between;
    font-size: clamp(20px, 2vw, 32px);
}

.contact-button > span:last-child {
    display: inline-block;
    transition: transform 0.35s ease;
}

.contact-button:hover > span:last-child {
    transform: rotate(-45deg);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    padding: 70px var(--pad) 30px;
    color: var(--white);
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-brand {
    font-size: clamp(70px, 12vw, 190px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    padding-top: 12px;
    font-size: 12px;
}

.footer-links a,
.footer-links button {
    color: inherit;
    font: inherit;
    text-align: right;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.footer-links a::after,
.footer-links button::after {
    content: "→";
    display: inline-block;
    margin-left: 0.4em;
    transition: transform 0.35s ease;
}

.footer-links a:hover::after,
.footer-links button:hover::after {
    transform: rotate(-45deg);
}

.footer-meta {
    display: flex;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    grid-column: 1 / -1;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    text-transform: uppercase;
}

.footer-meta button {
    color: inherit;
    text-transform: uppercase;
}

.footer-meta a {
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.project-modal {
    position: fixed;
    z-index: 200;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s var(--ease), visibility 0.45s;
}

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

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
}

.modal-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    width: min(1100px, 92vw);
    height: 100%;
    padding: clamp(60px, 7vw, 110px);
    background: var(--lime);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.7s var(--ease);
}

.project-modal.is-open .modal-panel {
    transform: translateX(0);
}

.modal-close {
    position: absolute;
    top: 26px;
    right: 30px;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
}

.modal-intro h2 {
    margin: 50px 0 24px;
    font-size: clamp(44px, 6vw, 92px);
    font-weight: 400;
    letter-spacing: -0.075em;
    line-height: 0.92;
}

.modal-intro p {
    max-width: 360px;
    color: rgba(9, 9, 9, 0.6);
}

.project-form {
    padding-top: 50px;
}

.project-form > label {
    display: block;
    margin-bottom: 32px;
}

.project-form > label:not(.consent-check) > span:not(.field-error),
.project-form legend {
    display: block;
    margin-bottom: 9px;
    font-size: 10px;
    text-transform: uppercase;
}

.project-form > label.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0 28px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(9, 9, 9, 0.68);
    text-transform: none;
    letter-spacing: 0;
}

.project-form > label.consent-check > span {
    display: inline;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    text-transform: none;
    letter-spacing: normal;
    color: inherit;
}

.consent-check input {
    position: static;
    opacity: 1;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: var(--black);
    cursor: pointer;
}

.consent-check a {
    color: var(--black);
    border-bottom: 1px solid rgba(9, 9, 9, 0.35);
}

.consent-check a:hover {
    border-color: var(--black);
}

.project-form > label > .task-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.project-form > label > .task-field-head > span:first-child {
    margin-bottom: 0;
}

.task-count {
    flex-shrink: 0;
    color: rgba(9, 9, 9, 0.4);
    font-size: 10px;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    transition: color 0.25s ease;
}

.task-count.is-near {
    color: rgba(9, 9, 9, 0.72);
}

.task-count.is-full {
    color: var(--blue);
}

.project-form input[type="text"],
.project-form textarea {
    width: 100%;
    padding: 13px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(9, 9, 9, 0.55);
    border-radius: 0;
    outline: 0;
    font-size: clamp(19px, 2vw, 30px);
    resize: none;
}

.project-form textarea {
    --task-scale: 1;
    max-height: 168px;
    overflow-y: auto;
    font-size: calc(var(--task-scale) * clamp(15px, 1.35vw, 20px));
    line-height: 1.35;
    transition: font-size 0.35s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(9, 9, 9, 0.35) transparent;
}

.project-form textarea::-webkit-scrollbar {
    width: 5px;
}

.project-form textarea::-webkit-scrollbar-track {
    background: transparent;
}

.project-form textarea::-webkit-scrollbar-thumb {
    background: rgba(9, 9, 9, 0.22);
    border-radius: 999px;
}

.project-form textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(9, 9, 9, 0.4);
}

.project-form input:focus,
.project-form textarea:focus {
    border-color: var(--blue);
}

.project-form input.is-invalid,
.project-form textarea.is-invalid {
    border-color: #b42318;
}

.project-form .field-error {
    display: block;
    margin-top: 8px;
    color: #b42318;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-transform: none;
    animation: field-error-in 0.22s ease;
}

.project-form > label.consent-check.is-invalid {
    color: #8a1f16;
}

.project-form > label.consent-check.is-invalid input {
    outline: 1px solid #b42318;
    outline-offset: 2px;
}

.project-form .field-error[data-for="consent"] {
    margin: -18px 0 22px 32px;
}

@keyframes field-error-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-form fieldset {
    margin: 0 0 36px;
    padding: 0;
    border: 0;
}

.budget-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.budget-options input {
    position: absolute;
    opacity: 0;
}

.budget-options span {
    display: block;
    padding: 10px 14px;
    border: 1px solid rgba(9, 9, 9, 0.35);
    border-radius: 999px;
    cursor: pointer;
    font-size: 11px;
}

.budget-options input:checked + span {
    color: var(--white);
    background: var(--black);
}

.cookie-banner {
    position: fixed;
    z-index: 90;
    right: var(--pad);
    bottom: 24px;
    left: var(--pad);
    max-width: 560px;
    margin-inline: auto;
    padding: 22px 24px;
    color: var(--white);
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.16);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner.is-leaving {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.cookie-banner[hidden]:not(.is-leaving) {
    display: none !important;
}

.cookie-banner-inner {
    display: grid;
    gap: 16px;
}

.cookie-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.cookie-banner-actions button,
.cookie-banner-actions a {
    font-size: 12px;
}

.cookie-accept {
    padding: 10px 16px;
    color: var(--black);
    background: var(--white);
}

.cookie-reject {
    padding: 10px 16px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cookie-banner-actions a {
    color: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.form-submit {
    display: flex;
    width: 100%;
    padding: 20px;
    color: var(--white);
    background: var(--black);
    justify-content: space-between;
    font-size: 16px;
}

.form-submit:disabled {
    opacity: 0.5;
}

.form-status {
    min-height: 18px;
    margin: 12px 0 0;
    font-size: 11px;
}

.reveal {
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}

.reveal.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Above-the-fold: don't delay LCP behind IntersectionObserver */
.hero .reveal,
.inner-hero .reveal,
.case-hero .reveal,
.case-media.reveal,
.work > .case.reveal:first-of-type,
.projects-featured .feature-case-wide.reveal,
.feature-case-wide.reveal {
    transform: none;
    opacity: 1;
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .desktop-nav,
    .header-contact {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 830px;
    }

    .hero-meta {
        padding-left: 0;
    }

    .hero-title {
        font-size: clamp(48px, 11.5vw, 92px);
        line-height: 0.92;
        letter-spacing: -0.055em;
    }

    .hero-bottom > p {
        margin-left: 0;
    }

    .studio {
        grid-template-columns: 1fr;
    }

    .metrics {
        padding-top: 60px;
    }

    .service-row {
        grid-template-columns: 44px 1fr 30px;
    }

    .service-desc {
        display: none;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-grid li {
        min-height: 260px;
        border-bottom: 1px solid rgba(9, 9, 9, 0.35);
    }

    .client-grid,
    .insights-grid {
        grid-template-columns: 1fr 1fr;
    }

    .clients-marquee .client-item {
        width: min(280px, 78vw);
        min-height: 170px;
    }

    .modal-panel {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-form {
        padding-top: 0;
    }
}

@media (max-width: 620px) {
    .site-header {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .header-actions {
        gap: 13px;
    }

    .hero {
        min-height: 100svh;
        padding-top: 90px;
        padding-bottom: 24px;
    }

    .hero-grid {
        background-size: 20vw 20vw;
    }

    .hero-meta span:last-child {
        display: none;
    }

    .hero-title {
        padding: 20px 0;
        font-size: clamp(42px, 12.5vw, 68px);
    }

    .hero-line {
        white-space: nowrap;
    }

    .hero-bottom {
        gap: 30px;
        align-items: flex-end;
    }

    .hero-bottom > p {
        max-width: 250px;
        font-size: 13px;
    }

    .round-link {
        width: 92px;
        height: 92px;
        padding: 0 12px;
        flex-shrink: 0;
        gap: 4px;
    }

    .round-link > span {
        font-size: 16px;
    }

    .round-link small {
        max-width: 56px;
        font-size: 9px;
    }

    .section {
        padding-top: 85px;
        padding-bottom: 85px;
    }

    .section-head {
        margin-bottom: 55px;
        gap: 18px;
    }

    .section-head h2 {
        font-size: 44px;
    }

    .case,
    .case-pair .case {
        margin-bottom: 65px;
    }

    .case-pair {
        display: block;
    }

    .case-info {
        display: block;
    }

    .case-info p {
        font-size: 12px;
    }

    .case-info ul {
        margin-top: 16px;
    }

    .case-index {
        top: 12px;
        left: 12px;
    }

    .case-view {
        display: none;
    }

    .studio-copy h2 {
        margin-top: 55px;
        font-size: 40px;
    }

    .studio-copy > p {
        font-size: 15px;
    }

    .metric strong {
        font-size: 88px;
    }

    .service-row {
        min-height: 110px;
        grid-template-columns: 30px 1fr 22px;
        gap: 8px;
    }

    .service-title {
        font-size: 28px;
    }

    .process-grid {
        display: block;
    }

    .process-grid li {
        min-height: 220px;
        border-right: 0;
    }

    .tech-intro {
        display: block;
        padding-bottom: 65px;
    }

    .tech-intro p {
        margin-top: 45px;
        font-size: 34px;
    }

    .client-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }

    .client-item {
        min-height: 130px;
        padding: 22px;
    }

    .client-item strong {
        font-size: 28px;
    }

    .clients-marquee .client-item {
        width: min(260px, 82vw);
        min-height: 140px;
        padding: 22px;
    }

    .clients-marquee .client-item strong {
        font-size: 26px;
    }

    .insight-card {
        min-height: 310px;
    }

    .contact {
        min-height: 78vh;
    }

    .contact h2 {
        margin-top: 13vh;
        font-size: 60px;
    }

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

    .footer-links {
        align-items: flex-start;
        gap: 14px;
    }

    .modal-panel {
        width: 100%;
        padding: 70px 22px 40px;
    }

    .modal-intro h2 {
        margin-top: 38px;
        font-size: 50px;
    }

    .project-form input[type="text"] {
        font-size: 19px;
    }

    .project-form textarea {
        font-size: calc(var(--task-scale) * 15px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

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


/* PageSpeed tap targets */
.site-footer .footer-brand,
.site-footer .footer-links a,
.site-footer .footer-links button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}
.mobile-menu nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
}
.insights-grid {
    gap: 16px;
}
.project-form input[type="text"],
.project-form textarea {
    min-height: 48px;
}
.project-form textarea {
    min-height: 120px;
}
.language-toggle {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
