@font-face {
    font-family: "Londrina Solid";
    src: url("fonts/LondrinaSolid/LondrinaSolid-Regular.woff2?v=4b3b8358ab") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter/Inter-latin.woff2?v=3100e775e8") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #fbf5ea;
    --white: #ffffff;
    --ink: #1b1a1f;
    --soft: #6d655c;
    --orange: #d9532b;
    --orange-deep: #b8401d;
    --yellow: #f7b329;
    --max: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    background: var(--paper);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    font-size: clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
    line-height: 1.65;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

::selection {
    color: var(--white);
    background: var(--orange);
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

h1,
h2,
h3,
dt {
    font-family: "Londrina Solid", Impact, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

h1,
h2 {
    margin: 0;
    line-height: 0.94;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

section[id] {
    scroll-margin-top: 96px;
}

/* Skip link */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: none;
}

/* Splash */
.splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    margin: 0 0 -1rem;
    padding: clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 4vw, 2.5rem)
        clamp(0.75rem, 2vw, 1.25rem);
    background: var(--yellow);
}

.splash img {
    display: block;
    height: auto;
}

.splash-art {
    width: 100%;
    max-width: 1500px;
}

.splash-name {
    position: relative;
    z-index: 51;
    width: min(100%, 760px);
    transition: opacity 0.2s ease;
}

body.is-stuck .splash-name {
    visibility: hidden;
    opacity: 0;
}

/* Header */
.header-sentinel {
    height: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 0.9rem clamp(1.1rem, 4vw, 2.5rem);
    background: var(--yellow);
}

.brand {
    flex: 0 1 auto;
    display: block;
    line-height: 0;
}

.site-header.is-ready:not(.is-stuck) .brand {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.site-header.is-stuck .brand {
    visibility: visible;
    opacity: 1;
}

.brand img {
    width: clamp(180px, 21vw, 288px);
    height: auto;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.9rem, 2.6vw, 2rem);
}

.site-nav a {
    position: relative;
    color: var(--white);
    font-family: "Londrina Solid", Impact, sans-serif;
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

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

/* Shared bits */
.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;
}

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 7rem) clamp(1.1rem, 4vw, 2.5rem);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-head h2 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
}

/* Work */
.work {
    padding: clamp(1rem, 2vw, 1.6rem);
    background: var(--white);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 1.6vw, 1.5rem);
    scroll-margin-top: 96px;
}

.work-item {
    min-width: 0;
    margin: 0;
}

.work-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.work-button img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* About */
.about {
    border-top: 1px solid rgb(27 26 31 / 10%);
    color: var(--ink);
}

.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 7rem) clamp(1.1rem, 4vw, 2.5rem);
}

.about h2 {
    color: var(--orange);
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-photo {
    position: relative;
    margin: 0 auto;
    max-width: 320px;
}

.about-photo img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 28px rgb(0 0 0 / 18%));
}

.about-text p {
    max-width: 42rem;
    color: var(--soft);
}

.about-text p strong {
    color: var(--ink);
    font-weight: 600;
}

.about-text h2 {
    margin-bottom: 0.5rem;
}

.about-contact {
    display: grid;
    gap: 0.65rem;
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
}

.about-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    width: fit-content;
    color: var(--orange);
    font-family: "Londrina Solid", Impact, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.about-contact a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.contact-icon {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

/* Clients */
.clients .section-head {
    max-width: none;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
}

.clients h2 {
    color: var(--orange);
    font-size: clamp(2rem, 3.4vw, 3rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.clients-panel {
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 2px solid var(--orange);
    background: var(--white);
}

.client-grid {
    --client-gap: clamp(0.75rem, 2vw, 1.75rem);
    --client-columns: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--client-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.client-grid li {
    display: grid;
    place-items: center;
    flex: 0 1
        calc(
            (100% - (var(--client-columns) - 1) * var(--client-gap)) /
                var(--client-columns)
        );
    min-height: 130px;
    padding: 0.25rem;
}

.client-grid img {
    width: auto;
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
}

/* Footer */
.footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(1.1rem, 4vw, 2.5rem) 3rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(27 26 31 / 10%);
}

.footer p {
    margin: 0;
    color: var(--soft);
    font-size: 0.85rem;
}

.analytics-badge {
    display: inline-flex;
    margin-left: auto;
}

.analytics-badge img {
    width: 150px;
    height: auto;
}

/* Lightbox */
.lightbox {
    max-width: min(96vw, 1360px);
    max-height: 94vh;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
}

.lightbox::backdrop {
    background: rgb(12 12 16 / 92%);
    backdrop-filter: blur(5px);
}

.lightbox-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.6rem;
}

.lightbox-button,
.lightbox-nav {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 15%);
    color: var(--white);
    cursor: pointer;
    transition: background 0.18s ease;
}

.lightbox-button {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 2;
    width: 3rem;
    height: 3rem;
    font-size: 1.3rem;
    transform: translateY(-50%);
}

.lightbox-button:hover,
.lightbox-nav:hover {
    background: rgb(255 255 255 / 28%);
}

.lightbox-nav--prev {
    left: clamp(0.6rem, 3vw, 3rem);
}

.lightbox-nav--next {
    right: clamp(0.6rem, 3vw, 3rem);
}

.lightbox-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 78vh;
    margin: 0 auto;
    background: #111;
}

.lightbox-caption {
    margin: 0.9rem 0 0;
    font-family: "Londrina Solid", Impact, sans-serif;
    font-size: 1.4rem;
    text-align: center;
}

.lightbox-description {
    margin: 0.3rem 0 0;
    color: rgb(255 255 255 / 72%);
    font-size: 0.95rem;
    text-align: center;
}

/* Responsive */
@media (min-width: 900px) {
    .splash {
        margin-bottom: -1.5rem;
    }

    .splash-name {
        width: min(100%, 680px);
    }
}

@media (min-width: 1200px) {
    .splash {
        margin-bottom: -5rem;
    }

    .splash-name {
        width: min(40vw, 680px);
        transform: translateX(-3vw);
    }
}

@media (max-width: 1100px) {
    .work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .about-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-photo {
        max-width: 240px;
    }

    .client-grid {
        --client-columns: 3;
    }
}

@media (max-width: 720px) {
    .site-header {
        gap: 0.75rem;
    }

    .brand {
        display: none;
    }

    .site-nav {
        gap: 0.8rem;
        margin-left: auto;
    }

    .site-nav a {
        font-size: 0.85rem;
        letter-spacing: 0.06em;
    }

    .client-grid {
        --client-columns: 2;
    }

    .lightbox-nav {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .footer-inner {
        display: block;
    }

    .analytics-badge {
        display: block;
        margin: 0.9rem 0 0;
    }
}

@media (max-width: 540px) {
    .site-header {
        flex-wrap: wrap;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
    }

    .work-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
