:root {
    --ink: #080808;
    --paper: #f4f3ef;
    --signal: #ff3b2f;
    --electric: #4e7dff;
    --line: rgba(244, 243, 239, 0.22);
    --gutter: clamp(18px, 3.2vw, 52px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --display: 'ariana-pro', 'Ariana', Arial, Helvetica, sans-serif;
    --brush: 'brush-up', 'Brush Up', 'Brush Up Regular', 'BrushUp', 'BrushUpW01-Regular', 'ariana-pro', 'Ariana', Arial, Helvetica, sans-serif;
    --oblique-display: 'ariana-pro', 'Ariana', Arial, Helvetica, sans-serif;
    --ui: 'ariana-pro', 'Ariana', Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    margin: 0;
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(8, 8, 8, 0.34), rgba(8, 8, 8, 0.34)),
        url('../media/zig-zag-wool.png');
    background-position: center, top left;
    background-repeat: repeat;
    background-size: auto, 400px 400px;
    color: var(--paper);
    font-family: var(--ui);
    font-style: oblique 10deg;
    letter-spacing: 0;
    overflow-x: hidden;
}

body::selection {
    background: var(--signal);
    color: var(--paper);
}

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

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

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--paper);
    color: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 74px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid transparent;
    opacity: 0;
    transform: translateY(-16px);
    transition: background 300ms ease, border-color 300ms ease;
    animation: header-arrive 700ms 1180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.site-header.is-scrolled {
    background: rgba(8, 8, 8, 0.9);
    border-color: var(--line);
    backdrop-filter: blur(14px);
}

.wordmark {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-size: 18px;
    font-weight: 900;
}

.wordmark-accent {
    color: var(--signal);
}

.site-nav {
    display: flex;
    gap: clamp(18px, 2.6vw, 40px);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.site-nav a {
    position: relative;
    padding: 10px 0;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: '';
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 300ms var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero {
    position: relative;
    height: min(calc(100svh - 72px), 56.25vw);
    min-height: 620px;
    overflow: hidden;
    background: #000;
}

.hero-media,
.hero-media video,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media {
    background: #000 url('../media/hero-poster-v5.webp') center / cover no-repeat;
}

.hero-media video {
    object-fit: cover;
    object-position: 50% 50%;
    transform-origin: center;
    animation: hero-focus 1900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-shade {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 38%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 44%);
}

.hero-copy {
    position: absolute;
    z-index: 2;
    top: 77%;
    right: var(--gutter);
    bottom: auto;
    left: var(--gutter);
    text-align: center;
    translate: 0 -50%;
    transition: opacity 120ms linear, transform 120ms linear;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero .eyebrow {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(14px);
    animation: hero-kicker-arrive 800ms 440ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
    max-width: 1400px;
    margin: 0 auto;
    font-size: clamp(54px, 8vw, 132px);
    font-family: var(--oblique-display);
    font-weight: 650;
    font-style: oblique 10deg;
    line-height: 0.9;
    text-transform: uppercase;
    transform: skewX(-9deg);
}

.hero-name {
    display: inline-flex;
    gap: 0.5em;
    align-items: baseline;
    white-space: nowrap;
}

.hero-name-word {
    display: inline-block;
    opacity: 0;
    filter: blur(18px);
    clip-path: inset(0 0 100% 0);
}

.hero-name-word-first {
    transform: translate3d(-0.42em, 28px, 0) scale(1.03);
    animation: hero-name-left-arrive 1050ms 550ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-name-word-last {
    transform: translate3d(0.42em, -24px, 0) scale(1.03);
    animation: hero-name-right-arrive 1100ms 660ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-role {
    display: inline-flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 26px);
    margin: 22px 0 0;
    color: var(--paper);
    font-family: var(--oblique-display);
    font-size: clamp(22px, 2.4vw, 40px);
    font-weight: 600;
    font-style: oblique 10deg;
    text-transform: uppercase;
    transform: skewX(-9deg);
}

.hero-role span {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    letter-spacing: 0.64em;
    transform: translateY(14px);
    animation: hero-role-title-arrive 820ms 1120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-scroll {
    position: absolute;
    right: var(--gutter);
    bottom: 34px;
    z-index: 3;
    width: 22px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 11px;
    opacity: 0;
    animation: scroll-cue-arrive 600ms 1320ms ease forwards;
}

.hero-scroll span {
    position: absolute;
    top: 8px;
    left: 9px;
    width: 2px;
    height: 8px;
    background: var(--paper);
    animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
    0%, 100% { transform: translateY(0); opacity: 0.35; }
    50% { transform: translateY(17px); opacity: 1; }
}

@keyframes hero-focus {
    0% {
        filter: blur(18px) saturate(0.78) brightness(0.74);
        transform: scale(1.075);
    }
    55% {
        filter: blur(3px) saturate(0.93) brightness(0.91);
    }
    100% {
        filter: blur(0) saturate(1) brightness(1);
        transform: scale(1);
    }
}

@keyframes header-arrive {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-kicker-arrive {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes hero-name-left-arrive {
    to {
        opacity: 1;
        filter: blur(0);
        clip-path: inset(0 0 0 0);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes hero-name-right-arrive {
    to {
        opacity: 1;
        filter: blur(0);
        clip-path: inset(0 0 0 0);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes hero-role-title-arrive {
    to {
        opacity: 1;
        filter: blur(0);
        letter-spacing: 0.28em;
        transform: translateY(0);
    }
}

@keyframes scroll-cue-arrive {
    to {
        opacity: 1;
    }
}

.discipline-band {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 8, 8, 0.84);
    color: var(--paper);
    backdrop-filter: blur(8px);
}

.discipline-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: clamp(18px, 2.2vw, 34px);
    padding: 21px 0;
    font-family: var(--oblique-display);
    font-size: clamp(16px, 1.75vw, 27px);
    font-weight: 700;
    font-style: oblique 10deg;
    text-transform: uppercase;
    animation: marquee 36s linear infinite;
}

.discipline-track i {
    position: relative;
    flex: 0 0 auto;
    width: clamp(15px, 1.7vw, 22px);
    height: clamp(15px, 1.7vw, 22px);
    background: none;
    color: transparent;
    font-size: 0;
    animation: none;
}

.discipline-track i::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent url('../media/signal-tally-separator.svg?v=0.8.59') center / contain no-repeat;
    filter: brightness(1.1) drop-shadow(0 0 4px rgba(255, 20, 8, 0.8)) drop-shadow(0 0 10px rgba(255, 0, 0, 0.48));
}

.discipline-track i::after {
    content: "";
    position: absolute;
    inset: -13px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 18, 4, 0.88) 0%, rgba(255, 0, 0, 0.4) 23%, rgba(255, 0, 0, 0) 66%);
    opacity: 0.45;
    will-change: opacity;
    animation: signal-tally-breathe 3.6s ease-in-out infinite;
}

@keyframes signal-tally-breathe {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .discipline-track i::after { animation: none !important; }
}

.discipline-track span {
    display: inline-block;
    transform: skewX(-9deg);
}

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

.seo-intro {
    padding: 54px var(--gutter) 112px;
    text-align: center;
}

.seo-intro p {
    max-width: 1080px;
    margin: 0 auto;
    color: rgba(244, 243, 239, 0.9);
    font-family: var(--oblique-display);
    font-size: 38px;
    font-weight: 500;
    font-style: oblique 10deg;
    line-height: 1.12;
    transform: skewX(-9deg);
}

.work-section {
    overflow: clip;
    padding: 68px var(--gutter) 52px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 0.55fr);
    align-items: end;
    margin-bottom: clamp(56px, 8vw, 110px);
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
}

.section-heading h2,
.contact-copy h2 {
    margin: 0;
    font-size: clamp(52px, 8vw, 126px);
    font-family: var(--oblique-display);
    font-weight: 700;
    font-style: oblique 10deg;
    line-height: 0.92;
    text-transform: none;
    transform: skewX(-9deg);
    transform-origin: left center;
}

.section-intro {
    max-width: 460px;
    margin: 0 0 4px;
    font-size: clamp(16px, 1.35vw, 21px);
    line-height: 1.45;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 40px) 18px;
    perspective: 1800px;
}

.project-card {
    grid-column: span 6;
}

.project-card:nth-child(4n + 2),
.project-card:nth-child(4n + 3) {
    grid-column: span 4;
}

.project-card:nth-child(4n + 4) {
    grid-column: span 8;
}

.project-card:nth-child(4n + 1),
.project-card:nth-child(4n + 3) {
    --flight-x: -64vw;
    --flight-y: 140px;
    --flight-z: -620px;
    --flight-rotate: -28deg;
    --flight-roll: -9deg;
}

.project-card:nth-child(4n + 2),
.project-card:nth-child(4n + 4) {
    --flight-x: 64vw;
    --flight-y: 140px;
    --flight-z: -620px;
    --flight-rotate: 28deg;
    --flight-roll: 9deg;
}

.project-card:nth-child(4n + 1) { --tile-delay: 0ms; }
.project-card:nth-child(4n + 2) { --tile-delay: 80ms; }
.project-card:nth-child(4n + 3) { --tile-delay: 140ms; }
.project-card:nth-child(4n + 4) { --tile-delay: 200ms; }

.project-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #161616;
}

.project-media::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    content: '';
    pointer-events: none;
}

.project-media::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(126deg, rgba(255, 255, 255, 0.15), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.3));
    content: '';
    mix-blend-mode: screen;
    pointer-events: none;
}

.project-media video,
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: filter 500ms var(--ease), transform 800ms var(--ease);
}

.project-card:hover .project-media video,
.project-card:hover .project-media img {
    filter: saturate(1.15) contrast(1.04);
    transform: scale(1.02);
}

.contact-section {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
    align-items: center;
    gap: clamp(36px, 6vw, 104px);
    min-height: 92svh;
    overflow: hidden;
    padding: clamp(90px, 12vw, 180px) var(--gutter);
    background: var(--ink);
}

.contact-section::before {
    position: absolute;
    z-index: -1;
    inset: -3%;
    content: '';
    background:
        linear-gradient(120deg, rgba(8, 8, 8, 0.72), rgba(8, 8, 8, 0.2)),
        url('../media/contact-director.webp') center / cover no-repeat;
    animation: contact-background-drift 22s ease-in-out infinite alternate;
}

.contact-section::after {
    position: absolute;
    z-index: 1;
    inset: -12% -28%;
    content: '';
    pointer-events: none;
    opacity: 0.38;
    background:
        linear-gradient(108deg, transparent 34%, rgba(164, 216, 255, 0.04) 38%, rgba(190, 231, 255, 0.42) 42%, rgba(164, 216, 255, 0.04) 46%, transparent 50%),
        linear-gradient(68deg, transparent 55%, rgba(255, 179, 92, 0.03) 58%, rgba(255, 194, 119, 0.28) 61%, rgba(255, 179, 92, 0.03) 64%, transparent 67%);
    filter: blur(5px);
    mix-blend-mode: screen;
    transform-origin: 72% 100%;
    animation: contact-light-sweep 13s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.contact-noise {
    position: absolute;
    z-index: 2;
    inset: 0;
    opacity: 0.22;
    background-image: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.035) 2px 3px);
    pointer-events: none;
}

.contact-copy {
    position: relative;
    z-index: 3;
    max-width: 560px;
}

.contact-live {
    color: #ff4038;
    text-shadow: 0 0 4px rgba(255, 64, 56, 0.92), 0 0 14px rgba(255, 42, 34, 0.78), 0 0 34px rgba(255, 30, 25, 0.38);
    animation: tally-glow 2.8s ease-in-out infinite alternate;
}

@keyframes tally-glow {
    from {
        color: #e52e28;
        text-shadow: 0 0 3px rgba(255, 64, 56, 0.68), 0 0 10px rgba(255, 42, 34, 0.54), 0 0 22px rgba(255, 30, 25, 0.22);
    }

    to {
        color: #ff5047;
        text-shadow: 0 0 5px rgba(255, 80, 71, 1), 0 0 18px rgba(255, 42, 34, 0.92), 0 0 42px rgba(255, 30, 25, 0.5);
    }
}

.contact-direct-link {
    display: inline-block;
    margin-top: clamp(32px, 5vw, 70px);
    padding-bottom: 6px;
    border-bottom: 1px solid currentColor;
    font-family: var(--oblique-display);
    font-size: clamp(15px, 1.5vw, 21px);
    font-weight: 700;
    font-style: oblique 10deg;
    transform: skewX(-9deg);
    transform-origin: left center;
}

.contact-laptop {
    position: relative;
    z-index: 3;
    width: min(66vw, 910px);
    justify-self: end;
    transform: perspective(1500px) rotateY(-4deg) rotateX(1deg);
    transform-origin: right center;
}

.contact-laptop > img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.56));
}

@keyframes contact-background-drift {
    from {
        transform: scale(1.035) translate3d(-0.7%, 0.5%, 0);
    }

    to {
        transform: scale(1.075) translate3d(0.8%, -0.5%, 0);
    }
}

@keyframes contact-light-sweep {
    from {
        transform: rotate(-5deg) translate3d(-5%, 2%, 0) scale(1.02);
    }

    to {
        transform: rotate(5deg) translate3d(6%, -2%, 0) scale(1.08);
    }
}

.contact-form {
    position: absolute;
    top: 28%;
    right: 14.1%;
    bottom: 25.1%;
    left: 14.1%;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    gap: clamp(5px, 0.7vw, 10px);
    color: #202020;
    font-family: var(--oblique-display);
    font-size: clamp(7px, 0.72vw, 11px);
    font-style: oblique 10deg;
    line-height: 1.15;
}

.contact-form label {
    display: grid;
    gap: 3px;
    color: #6a6a6a;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid #d8d8d8;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #202020;
    font: inherit;
    font-size: 1.1em;
    resize: none;
}

.contact-form textarea {
    height: 100%;
    min-height: 42px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: #111;
}

.contact-form button {
    justify-self: end;
    padding: 7px 10px;
    border: 0;
    border-radius: 0;
    background: #1b1b1b;
    color: #fff;
    font: inherit;
    font-size: 1.08em;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
}

.contact-form button:hover {
    background: #3d3d3d;
}

.contact-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.contact-form-actions a {
    color: #555;
    font-style: normal;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.contact-status {
    margin: 0;
    color: #22711a;
    font-size: 0.9em;
}

.contact-trap {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    padding: 28px var(--gutter);
    border-top: 1px solid var(--line);
    font-size: 10px;
    font-family: var(--oblique-display);
    font-weight: 700;
    font-style: oblique 10deg;
    text-transform: uppercase;
}

.site-footer > a,
.site-footer > span,
.footer-legal {
    transform: skewX(-9deg);
    transform-origin: left center;
}

.site-footer a:last-child {
    justify-self: end;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    justify-self: end;
    align-items: center;
    gap: 10px 18px;
}

.footer-consent-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.consent-banner {
    position: fixed;
    z-index: 50;
    top: max(16px, 1.6vw);
    right: max(16px, 1.6vw);
    display: grid;
    width: min(360px, calc(100vw - 32px));
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(244, 243, 239, 0.3);
    border-radius: 8px;
    background: rgba(8, 8, 8, 0.82);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.consent-banner[hidden] {
    display: none;
}

.consent-banner p {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.consent-banner a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

.consent-actions button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(244, 243, 239, 0.42);
    border-radius: 2px;
    background: transparent;
    color: var(--paper);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

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

.project-card.reveal {
    --drift-x: 0px;
    --drift-y: 0px;
    --drift-z: 0px;
    --drift-rotate: 0deg;
    --drift-roll: 0deg;
    --drift-scale: 1;
    opacity: 0;
    filter: blur(5px);
    transform: translate3d(calc(var(--flight-x) + var(--drift-x)), var(--flight-y), var(--flight-z)) rotateY(var(--flight-rotate)) rotateZ(var(--flight-roll)) scale(0.9);
    transform-style: preserve-3d;
    transition: opacity 680ms var(--ease) var(--tile-delay), filter 850ms var(--ease) var(--tile-delay), transform 1250ms var(--ease) var(--tile-delay);
    will-change: opacity, filter, transform;
}

.project-card.reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(var(--drift-x), var(--drift-y), var(--drift-z)) rotateY(var(--drift-rotate)) rotateZ(var(--drift-roll)) scale(var(--drift-scale));
}

/* Four continuous picture lanes, independent from the visitor's scroll. */
.project-grid {
    --lane-gap: 2px;
    --lane-card-width: clamp(250px, 25vw, 400px);
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.4vw, 24px);
    overflow: hidden;
}

.project-lane {
    width: 100%;
    overflow: hidden;
}

.project-lane-track {
    display: flex;
    width: max-content;
    gap: var(--lane-gap);
    animation: project-lane-right 44s linear infinite;
    will-change: transform;
}

.project-lane:nth-child(even) .project-lane-track {
    animation-name: project-lane-left;
    animation-duration: 51s;
}

.project-card,
.project-card:nth-child(4n + 2),
.project-card:nth-child(4n + 3),
.project-card:nth-child(4n + 4),
.project-card.reveal,
.project-card.reveal.is-visible {
    position: relative;
    display: block;
    flex: 0 0 var(--lane-card-width);
    width: var(--lane-card-width);
    margin: 0;
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
    animation: none;
}

.project-card:nth-child(8n + 1) { top: 4%; left: -46vw; --tile-width: min(38vw, 560px); --tile-distance: 194vw; --tile-rise: 18px; --tile-yaw: -12deg; --tile-roll: -5deg; --tile-end-yaw: 9deg; --tile-end-roll: 4deg; --tile-scale: .9; --tile-duration: 44s; --tile-delay: -27s; }
.project-card:nth-child(8n + 2) { top: 16%; left: 128vw; --tile-width: min(30vw, 440px); --tile-distance: -181vw; --tile-rise: -22px; --tile-yaw: 11deg; --tile-roll: 4deg; --tile-end-yaw: -8deg; --tile-end-roll: -3deg; --tile-scale: 1; --tile-duration: 51s; --tile-delay: -12s; }
.project-card:nth-child(8n + 3) { top: 30%; left: -44vw; --tile-width: min(26vw, 390px); --tile-distance: 187vw; --tile-rise: -12px; --tile-yaw: -7deg; --tile-roll: 3deg; --tile-end-yaw: 6deg; --tile-end-roll: -2deg; --tile-scale: .86; --tile-duration: 47s; --tile-delay: -35s; }
.project-card:nth-child(8n + 4) { top: 42%; left: 130vw; --tile-width: min(42vw, 620px); --tile-distance: -196vw; --tile-rise: 14px; --tile-yaw: 13deg; --tile-roll: -4deg; --tile-end-yaw: -10deg; --tile-end-roll: 4deg; --tile-scale: 1; --tile-duration: 58s; --tile-delay: -42s; }
.project-card:nth-child(8n + 5) { top: 56%; left: -43vw; --tile-width: min(32vw, 470px); --tile-distance: 187vw; --tile-rise: 20px; --tile-yaw: -10deg; --tile-roll: -3deg; --tile-end-yaw: 7deg; --tile-end-roll: 3deg; --tile-scale: .92; --tile-duration: 49s; --tile-delay: -9s; }
.project-card:nth-child(8n + 6) { top: 68%; left: 130vw; --tile-width: min(25vw, 370px); --tile-distance: -181vw; --tile-rise: -18px; --tile-yaw: 9deg; --tile-roll: 4deg; --tile-end-yaw: -6deg; --tile-end-roll: -4deg; --tile-scale: .88; --tile-duration: 45s; --tile-delay: -26s; }
.project-card:nth-child(8n + 7) { top: 80%; left: -45vw; --tile-width: min(40vw, 590px); --tile-distance: 195vw; --tile-rise: -14px; --tile-yaw: -13deg; --tile-roll: 5deg; --tile-end-yaw: 10deg; --tile-end-roll: -4deg; --tile-scale: .96; --tile-duration: 56s; --tile-delay: -45s; }
.project-card:nth-child(8n) { top: 90%; left: 127vw; --tile-width: min(28vw, 420px); --tile-distance: -181vw; --tile-rise: 18px; --tile-yaw: 8deg; --tile-roll: -3deg; --tile-end-yaw: -7deg; --tile-end-roll: 3deg; --tile-scale: .9; --tile-duration: 52s; --tile-delay: -18s; }

/* Cancel the former free-flight offsets inside the continuous rows. */
.project-lane-track .project-card {
    top: 0;
    left: 0;
}

@keyframes project-lane-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - (var(--lane-gap) / 2)));
    }
}

@keyframes project-lane-right {
    from {
        transform: translateX(calc(-50% - (var(--lane-gap) / 2)));
    }

    to {
        transform: translateX(0);
    }
}

.basic-page {
    min-height: 80svh;
    padding: 150px var(--gutter) 100px;
}

html:has(.imprint-page) {
    scroll-behavior: auto;
}

.imprint-page {
    min-height: 80svh;
    padding: clamp(112px, 13vw, 170px) var(--gutter) clamp(72px, 9vw, 120px);
}

.imprint-content {
    width: min(100%, 760px);
    margin: 0 auto;
}

.imprint-kicker {
    margin: 0 0 14px;
    color: var(--signal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.imprint-content h1 {
    margin: 0;
    font-family: var(--oblique-display);
    font-size: clamp(54px, 9vw, 96px);
    font-weight: 500;
    font-style: oblique 10deg;
    line-height: 0.9;
    text-transform: uppercase;
    transform: skewX(-9deg);
    transform-origin: left center;
}

.imprint-copy {
    display: grid;
    gap: clamp(64px, 9vw, 100px);
    margin-top: clamp(42px, 7vw, 72px);
}

.imprint-language-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 28px;
    font-size: 14px;
}

.imprint-language-nav a {
    text-decoration: underline;
    text-decoration-color: var(--signal);
    text-underline-offset: 0.3em;
}

.imprint-language {
    display: grid;
    gap: 32px;
    min-width: 0;
}

.imprint-language,
.imprint-copy section {
    scroll-margin-top: 96px;
}

.imprint-copy section {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.imprint-copy .imprint-language-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
    text-transform: none;
}

.imprint-copy h3 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
}

.imprint-copy h4 {
    margin: 24px 0 10px;
    font-size: 15px;
    font-weight: 700;
}

.imprint-copy p {
    max-width: 68ch;
    margin: 0 0 14px;
    font-size: 15px;
    font-style: normal;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.imprint-copy p:last-child {
    margin-bottom: 0;
}

.imprint-copy a,
.imprint-copy .footer-consent-button {
    text-decoration: underline;
    text-decoration-color: rgba(255, 59, 47, 0.78);
    text-underline-offset: 0.18em;
}

/* The contact section opens like a controlled live-production cue. */
.contact-stage {
    position: absolute;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms var(--ease) 120ms;
}

.contact-stage::before {
    position: absolute;
    right: -10%;
    bottom: -28%;
    left: -16%;
    height: 46%;
    border-top: 1px solid rgba(222, 240, 255, 0.42);
    background-image:
        repeating-linear-gradient(90deg, rgba(202, 230, 255, 0.18) 0 1px, transparent 1px 9.2%),
        repeating-linear-gradient(0deg, rgba(202, 230, 255, 0.14) 0 1px, transparent 1px 22%);
    content: '';
    opacity: 0;
    transform: perspective(620px) rotateX(65deg) translate3d(0, 24%, 0) scaleX(1.25);
    transform-origin: center bottom;
    transition: opacity 900ms var(--ease) 260ms, transform 1500ms var(--ease) 160ms;
}

.contact-stage::after {
    position: absolute;
    top: 12%;
    right: 4%;
    width: min(52vw, 760px);
    height: 72%;
    border: 1px solid rgba(244, 243, 239, 0.16);
    border-left: 0;
    content: '';
    opacity: 0;
    transform: translate3d(16%, 0, 0) skewY(-4deg);
    transition: opacity 700ms var(--ease) 480ms, transform 1100ms var(--ease) 380ms;
}

.contact-stage-beam {
    position: absolute;
    display: block;
    width: 1px;
    height: 132%;
    opacity: 0;
    transform: translateY(26%) rotate(28deg) scaleY(0.2);
    transform-origin: bottom center;
    transition: opacity 420ms ease, transform 1400ms var(--ease);
}

.contact-stage-beam-left {
    bottom: -28%;
    left: 34%;
    background: #b8e0ff;
    box-shadow: 0 0 10px rgba(184, 224, 255, 0.88), 0 0 36px rgba(112, 178, 255, 0.54);
}

.contact-stage-beam-right {
    right: 17%;
    bottom: -28%;
    background: #ffc06d;
    box-shadow: 0 0 10px rgba(255, 192, 109, 0.84), 0 0 36px rgba(255, 130, 54, 0.48);
    transition-delay: 190ms;
}

.contact-stage-tally {
    position: absolute;
    top: clamp(34px, 5vw, 88px);
    right: clamp(30px, 5vw, 84px);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 0 rgba(255, 59, 47, 0.76);
    opacity: 0;
    transform: scale(0);
    transition: opacity 260ms ease 780ms, transform 420ms var(--ease) 780ms;
}

.contact-copy.reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
}

.contact-copy.reveal.is-visible {
    opacity: 1;
    transform: none;
    clip-path: none;
    animation: contact-copy-arrive 980ms var(--ease) both;
}

.contact-copy.reveal .contact-direct-link {
    opacity: 1;
    transform: skewX(-9deg);
    transition: none;
}

.contact-copy.reveal.is-visible .contact-direct-link {
    opacity: 1;
    transform: skewX(-9deg);
    animation: contact-link-arrive 700ms var(--ease) 520ms both;
}

.contact-laptop.reveal {
    opacity: 0;
    filter: blur(9px);
    transform: perspective(1500px) translate3d(9vw, 54px, -180px) rotateY(-17deg) rotateX(5deg) scale(0.93);
    transition: opacity 700ms var(--ease) 260ms, filter 1000ms var(--ease) 180ms, transform 1350ms var(--ease) 180ms;
    will-change: opacity, filter, transform;
}

.contact-laptop.reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: perspective(1500px) translate3d(0, 0, 0) rotateY(-4deg) rotateX(1deg) scale(1);
}

.contact-laptop.reveal.is-visible > img {
    animation: contact-laptop-settle 8s ease-in-out 1.5s infinite alternate;
}

.contact-copy.is-visible ~ .contact-stage,
.contact-laptop.is-visible ~ .contact-stage {
    opacity: 1;
}

.contact-copy.is-visible ~ .contact-stage::before,
.contact-laptop.is-visible ~ .contact-stage::before {
    opacity: 1;
    transform: perspective(620px) rotateX(65deg) translate3d(0, 0, 0) scaleX(1.25);
}

.contact-copy.is-visible ~ .contact-stage::after,
.contact-laptop.is-visible ~ .contact-stage::after {
    opacity: 1;
    transform: translate3d(0, 0, 0) skewY(-4deg);
}

.contact-copy.is-visible ~ .contact-stage .contact-stage-beam,
.contact-laptop.is-visible ~ .contact-stage .contact-stage-beam {
    opacity: 0.82;
    transform: translateY(0) rotate(28deg) scaleY(1);
}

.contact-copy.is-visible ~ .contact-stage .contact-stage-tally,
.contact-laptop.is-visible ~ .contact-stage .contact-stage-tally {
    opacity: 1;
    transform: scale(1);
    animation: contact-tally-pulse 2.6s ease-in-out 1.2s infinite;
}

@keyframes contact-laptop-settle {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-0.5%, -0.8%, 0);
    }
}

@keyframes contact-copy-arrive {
    from {
        opacity: 0;
        transform: translate3d(-6vw, 32px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes contact-link-arrive {
    from {
        opacity: 0;
        transform: translate3d(-22px, 0, 0) skewX(-9deg);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) skewX(-9deg);
    }
}

@keyframes contact-tally-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 47, 0.68), 0 0 11px rgba(255, 59, 47, 0.92);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 59, 47, 0), 0 0 20px rgba(255, 59, 47, 1);
    }
}

@media (max-width: 820px) {
    .site-header {
        height: 60px;
    }

    .site-nav {
        gap: 16px;
        font-size: 10px;
    }

    .site-nav a:nth-child(2) {
        display: none;
    }

    .hero {
        height: 78svh;
        min-height: 560px;
    }

    .hero-media video {
        object-position: 50% 50%;
    }

    .hero-copy {
        top: 74%;
        bottom: auto;
    }

    .hero h1 {
        font-size: clamp(36px, 10vw, 48px);
        line-height: 0.9;
    }

    .hero-role {
        margin-top: 13px;
        font-size: 20px;
    }

    .hero-scroll {
        display: none;
    }

    .discipline-track {
        gap: 20px;
        padding: 18px 0;
    }

    .seo-intro {
        padding-top: 32px;
        padding-bottom: 82px;
    }

    .seo-intro p {
        max-width: 680px;
        font-size: 28px;
        line-height: 1.18;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2,
    .contact-copy h2 {
        font-size: clamp(48px, 15.5vw, 76px);
    }

    .section-intro {
        margin-top: 26px;
    }

    .project-grid {
        gap: 32px 10px;
    }

    .project-card,
    .project-card:nth-child(4n + 2),
    .project-card:nth-child(4n + 3),
    .project-card:nth-child(4n + 4) {
        grid-column: span 6;
    }

    .project-card:nth-child(4n + 1),
    .project-card:nth-child(4n + 3) {
        --flight-x: -52vw;
        --flight-y: 60px;
        --flight-z: -280px;
        --flight-rotate: -18deg;
        --flight-roll: -5deg;
    }

    .project-card:nth-child(4n + 2),
    .project-card:nth-child(4n + 4) {
        --flight-x: 52vw;
        --flight-y: 60px;
        --flight-z: -280px;
        --flight-rotate: 18deg;
        --flight-roll: 5deg;
    }

    .project-card,
    .project-card:nth-child(4n + 2),
    .project-card:nth-child(4n + 3),
    .project-card:nth-child(4n + 4),
    .project-card.reveal,
    .project-card.reveal.is-visible {
        --tile-width: min(68vw, 390px);
    }

    .consent-banner {
        top: 12px;
        right: 12px;
        width: min(340px, calc(100vw - 24px));
    }

    .consent-actions {
        justify-content: flex-start;
    }

    .contact-section {
        display: block;
        min-height: 0;
        padding-top: clamp(90px, 16vw, 130px);
        padding-bottom: clamp(70px, 13vw, 110px);
        background-position: 58% center;
    }

    .contact-laptop {
        width: min(124vw, 760px);
        margin: 52px -12vw 0;
        transform: none;
    }

    .contact-laptop.reveal {
        transform: translate3d(0, 46px, 0) scale(0.96);
    }

    .contact-laptop.reveal.is-visible {
        transform: translate3d(0, 0, 0) scale(1);
    }

    .contact-stage::after {
        top: 32%;
        right: -15%;
        width: 94vw;
        height: 54%;
    }

    .contact-stage-beam-left {
        left: 15%;
    }

    .contact-stage-beam-right {
        right: 6%;
    }

    .contact-form {
        font-size: clamp(7px, 1.8vw, 11px);
    }

    .contact-form button {
        padding: 6px 9px;
    }

    .site-footer {
        grid-template-columns: 1fr auto;
    }

    .site-footer span {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 76svh;
        min-height: 540px;
    }

    .hero h1 {
        font-size: clamp(28px, 8vw, 38px);
        transform: skewX(-7deg);
    }

    .seo-intro {
        padding-right: 32px;
        padding-left: 32px;
        overflow: hidden;
    }

    .seo-intro p {
        max-width: 100%;
        font-size: clamp(22px, 6.4vw, 25px);
        line-height: 1.22;
        transform: none;
    }

    .contact-copy h2 {
        font-size: clamp(46px, 14vw, 66px);
    }

    .project-card,
    .project-card:nth-child(4n + 2),
    .project-card:nth-child(4n + 3),
    .project-card:nth-child(4n + 4) {
        grid-column: 1 / -1;
    }

}

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

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

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

    .project-card.reveal,
    .project-card.reveal.is-visible {
        filter: none;
        transform: none;
    }

    .site-header,
    .hero-media video,
    .hero .eyebrow,
    .hero-name-word,
    .hero-role,
    .hero-role span,
    .hero-scroll {
        animation-delay: 0ms !important;
        opacity: 1;
        filter: none;
        transform: none;
    }

    .hero-name-word {
        clip-path: none;
    }

}
