@font-face {
    font-family: "Satoshi";
    src: url("assets/Satoshi-Variable.woff2") format("woff2");
    font-weight: 300 900;
    font-display: swap;
}

body {
    margin: 0;
    background: white;
    color: black;
    font-family: "Satoshi", Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

.hero {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: min(900px, 88vw);
    height: auto;
    display: block;
}

.wordmark {
    opacity: 0;
    animation: fadeIn 0.4s forwards;
    animation-delay: 3s;
}

#led circle {
    animation: blip 3s forwards;
}

.subtitle {
    margin-top: 10px;
    opacity: 0;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 15px;
    text-align: center;
    animation: fadeIn 0.5s forwards;
    animation-delay: 3.45s;
}

nav {
    margin-top: 48px;
    display: flex;
    gap: 56px;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
    animation-delay: 5s;
}

nav a {
    text-decoration: none;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 13px;
}

nav a:hover {
    color: black;
}

.content-section {
    min-height: 100vh;
    padding: 140px min(6vw, 96px);
    display: grid;
    grid-template-columns: minmax(320px, 600px) minmax(520px, 820px);
    gap: min(6vw, 96px);
    align-items: start;
    justify-content: space-between;
    border-top: 1px solid #efefef;
}

.section-text h2 {
    margin: 0 0 42px 0;
    font-size: clamp(42px, 5vw, 82px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 0.95;
}

.section-text > p {
    margin: 0 0 64px 0;
    font-size: clamp(20px, 1.8vw, 30px);
    line-height: 1.35;
    color: #222;
    max-width: 620px;
}

.service-list {
    display: grid;
    gap: 40px;
}

.service-item {
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.service-item h3 {
    margin: 0 0 14px 0;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.service-item p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #444;
    max-width: 580px;
}

/* ===================================================== */
/* MEDIA PLATES */
/* ===================================================== */

.media-panel {
    position: static;
    align-self: start;
    justify-self: start;
    margin: 0;
    width: 100%;
    max-width: 820px;
}

.media-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #111;
    box-sizing: border-box;
}

.media-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1) brightness(1.04);
}

.media-panel figcaption {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e5e5e5;
    color: #555;
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.media-panel[data-label] figcaption::before {
    content: attr(data-label) " / ";
    color: #ff0000;
    font-weight: 700;
}

/* Services: live capture */

.media-panel--performers {
    max-width: 820px;
}

.media-panel--performers .media-frame {
    aspect-ratio: 16 / 10;
}

.media-panel--performers img {
    object-position: 52% 40%;
}

/* Why WREC: XR / CREW research */

.media-panel--xr {
    max-width: 820px;
}

.media-panel--xr .media-frame {
    aspect-ratio: 16 / 10;
}

.media-panel--xr img {
    object-position: 44% 50%;
}

/* We Work With: large area */

.media-panel--largearea {
    max-width: 820px;
}

.media-panel--largearea .media-frame {
    aspect-ratio: 16 / 10;
}

.media-panel--largearea img {
    object-position: 50% 52%;
}

/* Pipeline PNG: unframed, wider, kept in right column */

.media-panel--pipeline {
    grid-column: auto;
    justify-self: start;
    max-width: none;
    width: min(960px, calc(100% + 140px));
    margin: 0;
}

.media-panel--pipeline .media-frame {
    width: 100%;
    aspect-ratio: auto;
    border: none;
    background: transparent;
    padding: 0;
    overflow: visible;
}

.media-panel--pipeline img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: left top;
    filter: none;
    background: transparent;
}

/* Assets: animated motion data */

.media-panel--assets {
    max-width: 760px;
}

.media-panel--assets .media-frame {
    aspect-ratio: 16 / 10;
    background: white;
}

.media-panel--assets img {
    object-fit: cover;
    object-position: 50% 50%;
    filter: none;
}

/* Contact: closing visual */

.media-panel--contact {
    max-width: 820px;
}

.media-panel--contact .media-frame {
    aspect-ratio: 16 / 10;
}

.media-panel--contact img {
    object-position: 50% 50%;
}

/* Fallback, in case an old placeholder remains somewhere */

.image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(to bottom, #f7f7f7, #ececec);
    border: 1px solid #e8e8e8;
}

/* ===================================================== */
/* ANIMATION */
/* ===================================================== */

@keyframes blip {
    0%   { fill: #ffffff; }
    10%  { fill: #ff0000; }
    20%  { fill: #ffffff; }
    30%  { fill: #ff0000; }
    40%  { fill: #ffffff; }
    50%  { fill: #ff0000; }
    60%  { fill: #ffffff; }
    70%  { fill: #ff0000; }
    80%  { fill: #ffffff; }
    90%  { fill: #ff0000; }
    100% { fill: #ff0000; }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===================================================== */
/* MOBILE */
/* ===================================================== */

@media (max-width: 900px) {
    .logo {
        width: 92vw;
    }

    .subtitle {
        font-size: 10px;
        letter-spacing: 0.14em;
        max-width: 80vw;
        line-height: 1.5;
    }

    nav {
        margin-top: 36px;
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
        width: 90vw;
    }

    nav a {
        font-size: 11px;
        letter-spacing: 0.12em;
    }

    .content-section {
        min-height: auto;
        padding: 80px 24px;
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .section-text h2 {
        font-size: 32px;
    }

    .section-text > p {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .service-item p {
        font-size: 16px;
    }

    .media-panel {
        order: -1;
        justify-self: stretch;
        max-width: 100%;
    }

    .media-frame,
    .media-panel--contact .media-frame {
        aspect-ratio: 16 / 10;
    }

    .media-panel--pipeline {
        width: 100%;
    }

    .media-panel--pipeline .media-frame {
        aspect-ratio: auto;
        padding: 0;
        border: none;
        overflow: visible;
    }

    .media-panel--pipeline img {
        width: 100%;
        height: auto;
    }

    .media-panel figcaption {
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .image-placeholder {
        order: -1;
    }
}

/* ===================================================== */
/* CONTACT FORM */
/* ===================================================== */

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
    max-width: 600px;
}

input,
textarea {
    font: inherit;
    border: 1px solid #ddd;
    background: white;
    padding: 16px;
    border-radius: 0;
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #cc0000;
}

button {
    width: fit-content;
    padding: 14px 28px;
    border: 1px solid black;
    background: white;
    color: black;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

button:hover {
    background: black;
    color: white;
}

.media-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.media-panel--clients {
    max-width: 820px;
}

.media-panel--clients .media-frame {
    aspect-ratio: 16 / 10;
    background: white;
}

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

.contact-details {
    display: grid;
    gap: 10px;
    margin: -24px 0 48px 0;
}

.contact-details p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.contact-details span {
    display: inline-block;
    min-width: 72px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
}

.contact-details a {
    color: black;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}