* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Basteleur";
    src: url("assets/Basteleur-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bastardo Rounded";
    src: url("assets/BastardoRounded-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #0d0d0d;
    --lime: #d4ff2a;
    --cyan: #4fd1e8;
    --white: #fff;
    --gutter: 24px;  
    --scrim: rgba(0, 0, 0, 0.45);
    --display-font: "Basteleur", "Georgia", serif;
    --body-font: "Bastardo Rounded", "Arial", sans-serif;
}

body {
    background-color: var(--black);
    font-family: var(--body-font);
    font-weight: 400;
    color: var(--white);
}

.site-header {
    display: flex;
    align-items: center;
    gap: 48px;
    height: 84px;
    padding: 0 var(--gutter);
    background: var(--black);
    border-bottom: 1px solid var(--lime);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo, h1 {
    font-family: var(--display-font);
    font-weight: 700;
    color: var(--lime);
    font-size: 2.4rem;
    line-height: 1;
}

.logo {
    font-size: 1.8rem;
}

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

.site-header nav {
    flex: 1;
}

.site-header ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.site-header a:not(.button):not(.logo) {
    font-size: 1.4rem;
}

.site-header a:not(.button):not(.logo)::before {
    content: "// ";
}

.site-header li:last-child {
    margin-left: auto;
}

.button {
    display: inline-block;
    padding: 10px 14px;
    background: var(--lime);
    color: var(--black);
    border-radius: 4px;
    font-size: 1.6rem;
}

.mood-reel {
    position: relative;
}

.mood-reel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mood-reel::after {
    content: "";
    position: absolute;
    inset: 0;
}

@media (max-width: 700px) {
    .site-header {
        flex-wrap: wrap;
        height: auto;
        gap: 12px;
        padding: 12px var(--gutter);;
    }
    .logo {
        font-size: 1.8rem;
    }
    .site-header nav {
        flex: 1 1 100%;
    }
    .site-header ul {
        gap: 16px;
        flex-wrap: wrap;
    }
}

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

[aria-current="page"] {
    color: var(--lime);
}

.project {
    display: grid;
    grid-template-columns: 360px 1fr;
    column-gap: 20px;
    padding: 0 var(--gutter);
    margin-top: 16px;
    margin-bottom: 32px;
}

.project h2 {
    grid-column: 1 / -1;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--cyan);
    border-bottom: 1px solid var(--lime);
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.summary {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.2;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    list-style: none;
}

.tags li {
    background: var(--cyan);
    color: var(--black);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.tiles {
    display: flex;
    gap: 16px;
    height: 246px;
}

.tiles > * {
    flex: 1 1 0;
    min-width: 0;
}

.tiles > :first-child {
    flex: 2 1 0;
}

.tiles img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tiles > a:not(.tile-cta) {
    display: block;
    position: relative;
}

.is-video::after {
    content: "\25B6";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--lime);
    color: var(--black);
    border-radius: 10px;
}

.tile-cta {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--lime);
    color: var(--black);
    font-size: 1.6rem;
    line-height: 1.15;
}

.site-footer {
    padding: var(--gutter);
    color: #fff;
}

@media (max-width: 800px) {
    .project {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }
    .tiles {
        height: 220px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .tiles > * {
        flex: 0 0 60%;
        scroll-snap-align: start;
    }
    .tiles > :first-child {
        flex: 0 0 80%;
    }
}

.video-dialog {
    margin: auto;
    width: min(92vw, 1100px);
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.video-dialog::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.video-close {
    display: block;
    margin: 0 0 8px auto;
    width: 44px;
    height: 44px;
    background: var(--lime);
    color: var(--black);
    border: 0;
    border-radius: 4px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.video-frame {
    margin: 0 auto;
    background: #000;
}

.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================
   CONTACT PAGE
   ========================================================== */

/* Browsers don't pass the page font to form controls and buttons on their own */
input, select, textarea, button {
    font: inherit;
}

/* The centered column that holds everything on the page */
.contact {
    max-width: 680px;
    margin: 0 auto;
    padding: 64px var(--gutter) 96px;
}

/* Space between every direct child of .contact. Your * reset removed all
   default spacing, so this puts a consistent gap back. */
.contact > * + * {
    margin-top: 24px;
}

.contact h2 {
    font-size: clamp(2.4rem, 7vw, 4rem);
    color: var(--lime);
}

.contact-intro {
    margin-top: 16px;
    font-face: var(--body-font);
    font-size: 1.4rem;
    line-height: 1.3;
}

/* The paragraph holding the big button (the one right after the intro) */
.contact-intro + p {
    margin-top: 40px;
}

.button-large {
    padding: 18px 28px;
    font-size: 1.8rem;
}

/* Address line: text, link, and copy button */
.contact-address {
    margin-top: 40px;
    font-size: 1.15rem;
    line-height: 2;
}

.contact-address a {
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.copy-button {
    margin-left: 12px;
    padding: 6px 12px;
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.copy-button:hover {
    background: var(--cyan);
    color: var(--black);
}

/* "Address copied" message: sits close under the address line */
.contact .form-status {
    margin-top: 8px;
    min-height: 1.5em;
    font-size: 1rem;
}

.form-status.is-success {
    color: var(--lime);
}

.form-status.is-error {
    color: #ff8a8a;
}

/* Instagram line, set apart by a thin rule like the lines on the Work page */
.contact-more {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 1.15rem;
}

.contact-more a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 700px) {
    .contact {
        padding: 40px var(--gutter) 64px;
    }
    /* Full-width button is easier to tap on a phone */
    .contact-intro + p .button-large {
        display: block;
        text-align: center;
    }
}