:root {
    --red: #d91320;
    --ink: #171514;
    --paper: #faf9f6;
    --muted: #56514e;
    --line: #dedbd6;
    --gutter: clamp(1.25rem, 5vw, 5.5rem);
    --container: 84rem;
    --header-height: 5.25rem;
    --section-gap: clamp(4rem, 8vw, 8rem);
    color: var(--ink);
    background: var(--paper);
    font: 100%/1.6 "Plus Jakarta Sans", "Avenir Next", Avenir, "Segoe UI", sans-serif;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { color: white; background: var(--red); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[tabindex="-1"]:focus { outline: none; }

.container {
    width: min(var(--container), 100% - 2 * var(--gutter));
    margin-inline: auto;
}
.section { padding-block: var(--section-gap); }
.skip-link {
    position: fixed;
    inset: .75rem auto auto .75rem;
    z-index: 5;
    padding: .75rem 1.25rem;
    background: white;
    transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 4;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.header-layout, .wordmark, .site-header nav {
    display: flex;
    align-items: center;
}
.header-layout {
    min-height: var(--header-height);
    justify-content: space-between;
    gap: 1rem;
}
.wordmark {
    gap: 1rem;
    text-decoration: none;
}
.wordmark img { height: auto; }
.wordmark span {
    border-inline-start: 1px solid var(--line);
    padding-inline-start: 1rem;
    font-size: .875rem;
    font-weight: 650;
    line-height: 1.2;
}
.site-header nav {
    gap: clamp(1rem, 2.5vw, 2.5rem);
    font-size: .9375rem;
    font-weight: 650;
}
.site-header nav a { text-decoration: none; }
.site-header nav a:not(.button):hover { color: var(--red); }
.button, .menu-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3rem;
    padding: .65rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}
.button-dark { color: white; background: var(--ink); }
.button-dark:hover, .menu-toggle[aria-expanded="true"] { color: white; background: var(--red); }
.button-white { color: var(--ink); background: white; }
.button-white:hover { color: white; background: var(--ink); border-color: white; }
.button-dark:focus-visible { outline-color: var(--ink); }
.button-white:focus-visible { outline-color: white; }
.menu-toggle { display: none; }
.menu-toggle:hover { border-color: currentColor; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
    min-height: clamp(35rem, 44vw, 48rem);
    color: white;
    background: var(--red);
}
.hero-copy {
    align-self: center;
    padding-block: clamp(3.75rem, 7vw, 7.5rem);
    padding-inline: max(var(--gutter), (100vw - var(--container)) / 2) clamp(1.75rem, 4vw, 4.5rem);
}
h1, h2, h3 { font-weight: 800; letter-spacing: -.04em; }
.hero h1 {
    width: min-content;
    font-size: clamp(4rem, 6.8vw, 6rem);
    line-height: 1.06;
}
.hero-tagline {
    margin-top: 1.125rem;
    font-size: clamp(1.125rem, 2vw, 1.625rem);
    font-weight: 700;
    letter-spacing: -.025em;
}
.hero-description {
    max-width: 35ch;
    margin-block: 1.2rem 1.75rem;
}
.hero-photo {
    position: relative;
    overflow: hidden;
    background: #2c2928;
}
.hero-photo img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% center;
}
.hero-photo figcaption {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    padding: .45rem .7rem;
    color: white;
    background: var(--ink);
    font-size: .8125rem;
}
.overview { border-bottom: 1px solid var(--line); }
.overview-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-layout > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .9rem;
    padding: 1.3rem 1rem 1.3rem 0;
}
.overview-layout > div + div {
    padding-inline-start: clamp(1rem, 3vw, 2.5rem);
    border-inline-start: 1px solid var(--line);
}
.overview dt { color: var(--muted); font-size: .875rem; }
.overview dd { font-size: clamp(1rem, 1.65vw, 1.375rem); font-weight: 750; line-height: 1.3; }

h2 { font-size: clamp(2.25rem, 4.75vw, 4.375rem); line-height: 1.025; text-wrap: balance; }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.2; letter-spacing: -.025em; }
.about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 7rem);
}
.about-copy p { margin-top: 1.125rem; color: var(--muted); max-width: 55ch; }
.about-photo { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.director {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.65rem;
}
.director img { object-fit: cover; object-position: center 18%; }
.director span { display: block; font-size: .875rem; color: var(--muted); }

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: end;
    gap: 1rem clamp(2rem, 5vw, 5rem);
    margin-bottom: clamp(1.75rem, 4vw, 3.25rem);
}
.section-heading h2 { text-wrap: initial; }
.section-heading p { max-width: 54ch; color: var(--muted); }

.production { color: white; background: var(--ink); }
.production .section-heading p, .production article p { color: #e0d9d8; }
.production-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.65rem clamp(1rem, 2vw, 2rem);
}
.production article img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.production article h3 { margin-top: 1.1rem; }
.production article p { margin-top: .5rem; max-width: 38ch; }

.portfolio-grid a {
    display: block;
    text-decoration: none;
    font-weight: 700;
}
.portfolio-grid a:hover span { color: var(--red); text-decoration: underline; }
.portfolio-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e7e4df;
}
.portfolio-grid span { display: block; margin-top: .6rem; }
.portfolio-more { margin-top: 2rem; border-block: 1px solid var(--line); }
.portfolio-more summary {
    width: fit-content;
    padding: .85rem .5rem .85rem 0;
    font-weight: 750;
    cursor: pointer;
}
.portfolio-more summary:hover { color: var(--red); }
.portfolio-more[open] { padding-bottom: 1.5rem; }
.portfolio-more[open] summary { margin-bottom: .75rem; }

.clients { background: #eeece8; }
.client-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: var(--line);
}
.client-grid li {
    display: grid;
    min-height: clamp(5.5rem, 10vw, 9rem);
    place-items: center;
    padding: clamp(.65rem, 2vw, 1.5rem);
    background: white;
}
.client-grid img { object-fit: contain; }

.contact { background: var(--red); color: white; }
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .65fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: end;
    padding-block: clamp(3.25rem, 7.5vw, 7rem);
}
.contact h2 { max-width: 17ch; text-wrap: initial; }
.contact-layout .button { margin-top: 1.375rem; }
.contact address {
    display: grid;
    justify-items: start;
    gap: .45rem;
    font-style: normal;
    overflow-wrap: anywhere;
}
.contact address strong { font-size: 1.15rem; }
.contact a:hover { text-decoration-thickness: 2px; }
.contact-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    padding-block: 1.25rem;
    border-top: 1px solid #ffffff75;
    font-size: .875rem;
}
.contact-bottom img { height: auto; filter: brightness(0) invert(1); }
.contact-bottom a { margin-inline-start: auto; padding-block: .35rem; }

@media (max-width: 799px) {
    :root { --header-height: 4.5rem; }
    .wordmark img { width: 70px; }
    .wordmark { gap: .65rem; }
    .wordmark span { padding-inline-start: .65rem; font-size: .8125rem; }
    .menu-toggle { display: inline-flex; cursor: pointer; background: transparent; border-color: var(--line); }
    .site-header nav {
        position: absolute;
        inset: 100% 0 auto;
        flex-wrap: wrap;
        gap: .65rem 1.25rem;
        padding: 1rem var(--gutter);
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }
    .header-layout:has(.menu-toggle[hidden]) { flex-wrap: wrap; padding-block: .75rem; }
    .menu-toggle[hidden] + nav { position: static; padding: 0; border: 0; }
    .menu-toggle[aria-expanded="false"]:not([hidden]) + nav { display: none; }
    .site-header nav a { padding-block: .7rem; }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-copy { padding: clamp(2.75rem, 10vw, 5rem) var(--gutter); }
    .hero h1 { font-size: clamp(3.25rem, 13vw, 5rem); }
    .hero-photo { aspect-ratio: 16 / 10; }
    .hero-photo figcaption { bottom: .75rem; right: .75rem; }
    .overview-layout > div { display: block; padding-block: .9rem; }
    .overview-layout > div + div { padding-inline-start: .65rem; }
    .overview dd { margin-top: .15rem; }
    .about, .section-heading, .contact-layout { grid-template-columns: 1fr; }
    .about-photo { aspect-ratio: 6 / 5; }
    .client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
    .overview-layout > div { padding-inline-end: .4rem; }
    .overview dd { font-size: .9375rem; }
    .production-grid { grid-template-columns: 1fr; gap: 2rem; }
    .production article img { aspect-ratio: 16 / 9; }
    .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact-bottom a { margin-inline-start: 0; }
    .contact-bottom img { width: 66px; }
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        --motion-out: cubic-bezier(.16, 1, .3, 1);
        scroll-behavior: smooth;
    }

    .hero-copy > * { animation: glm-heading-in 520ms var(--motion-out) backwards; }
    .hero-copy > p { animation-delay: 65ms; }
    .hero-copy > .button { animation-delay: 130ms; }
    .hero-photo img { animation: glm-photo-in 680ms var(--motion-out) backwards; }

    .button, .menu-toggle {
        transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
    }
    .portfolio-grid img { transition: filter 240ms ease; }
    .portfolio-grid a:focus-visible img { filter: brightness(.9) saturate(1.12); }
    .portfolio-more[open] > .portfolio-grid > li:nth-child(-n+3) img {
        animation: glm-detail-in 320ms var(--motion-out) backwards;
    }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .portfolio-grid a:hover img { filter: brightness(.9) saturate(1.12); }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 799px) {
    .menu-toggle[aria-expanded="true"] + nav { animation: glm-menu-in 230ms var(--motion-out); }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 540px) {
    .portfolio-more[open] > .portfolio-grid > li:nth-child(3) img { animation: none; }
}

@keyframes glm-heading-in {
    from { transform: translateY(10px); }
}

@keyframes glm-photo-in {
    from { clip-path: inset(0 5% 0 0); }
    to { clip-path: inset(0); }
}

@keyframes glm-menu-in {
    from { clip-path: inset(0 0 8px); }
    to { clip-path: inset(0); }
}

@keyframes glm-detail-in {
    from { opacity: .78; transform: translateY(6px); }
}
