:root {
    --paper: oklch(0.97 0.005 90);
    --ink: oklch(0.12 0 0);
    --signal: oklch(0.62 0.22 35);
    --paper-soft: oklch(0.93 0.006 90);
    --paper-warm: oklch(0.88 0.01 86);
    --ink-quiet: oklch(0.12 0 0 / 0.68);
    --ink-muted: oklch(0.12 0 0 / 0.48);
    --ink-hairline: oklch(0.12 0 0 / 0.16);
    --paper-hairline: oklch(0.97 0.005 90 / 0.18);
    --overlay-ink-strong: oklch(0.12 0 0 / 0.84);
    --overlay-ink-soft: oklch(0.12 0 0 / 0.38);
    --overlay-ink-clear: oklch(0.12 0 0 / 0);
    --shadow-ink: oklch(0.12 0 0 / 0.18);
    --font-display: "Archivo Black", Impact, sans-serif;
    --font-serif: "Instrument Serif", Georgia, serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    --font-body: "Inter", Arial, sans-serif;
    --line: 2px solid var(--ink);
    --line-inverse: 2px solid var(--paper);
    --site-gutter: clamp(1rem, 3vw, 3rem);
    --grid-gap: clamp(0.75rem, 1.6vw, 1.25rem);
    --section-y: clamp(5rem, 10vw, 9rem);
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    text-rendering: geometricPrecision;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    content: "";
    background-image: url("../images/grain.svg");
    background-size: 180px 180px;
    mix-blend-mode: multiply;
    opacity: 0.22;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3 {
    margin: 0;
}

::selection {
    background: var(--signal);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    transform: translateY(-160%);
    border: var(--line);
    background: var(--signal);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-transform: uppercase;
    transition: transform 180ms var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

.section-shell {
    width: min(100%, 1680px);
    margin-inline: auto;
    padding-inline: var(--site-gutter);
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem var(--site-gutter);
    color: var(--paper);
    mix-blend-mode: difference;
}

.site-nav__brand {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.65rem);
    letter-spacing: -0.03em;
    line-height: 0.9;
}

.site-nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.85rem, 2vw, 1.8rem);
    font-family: var(--font-mono);
    font-size: clamp(0.66rem, 1vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-nav__links a {
    position: relative;
    padding-block: 0.35rem;
}

.site-nav__links a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 280ms var(--ease);
}

.site-nav__links a:hover::after,
.site-nav__links a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-nav__status {
    justify-self: end;
    font-family: var(--font-mono);
    font-size: clamp(0.66rem, 1vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: space-between;
    padding-top: clamp(5.5rem, 10vh, 8rem);
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.hero__meta {
    align-items: start;
    font-family: var(--font-mono);
    font-size: clamp(0.64rem, 1vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__meta-item:nth-child(1) {
    grid-column: 1 / 3;
}

.hero__meta-item:nth-child(2) {
    grid-column: 4 / 6;
}

.hero__meta-item:nth-child(3) {
    grid-column: 7 / 10;
}

.hero__clock {
    grid-column: 10 / 13;
    text-align: right;
}

.hero__masthead {
    align-items: end;
    margin-block: clamp(2.25rem, 6vw, 5rem);
}

.hero__copy {
    grid-column: 1 / 8;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 18vw, 22rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero__title span {
    color: var(--signal);
}

.hero__subtitle {
    max-width: 13ch;
    margin-top: clamp(1rem, 2.2vw, 2rem);
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 6vw, 7rem);
    font-style: italic;
    line-height: 0.95;
}

.hero__figure {
    position: relative;
    grid-column: 8 / 13;
    align-self: stretch;
    min-height: clamp(24rem, 52vw, 44rem);
    margin: 0;
    overflow: hidden;
    border: var(--line);
    background: var(--paper-soft);
    box-shadow: 0.8rem 0.8rem 0 var(--ink);
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__figure figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    border-top: var(--line);
    border-right: var(--line);
    background: var(--signal);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 0.85rem 1rem;
    text-transform: uppercase;
}

.hero__footer {
    align-items: end;
}

.hero__footer p {
    grid-column: 1 / 6;
    max-width: 56ch;
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 1.1vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    border: var(--line);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 0.9rem 1.2rem;
    text-transform: uppercase;
    transition: background 240ms var(--ease), color 240ms var(--ease), transform 240ms var(--ease);
}

.button--ink {
    grid-column: 10 / 13;
    background: var(--ink);
    color: var(--paper);
}

.button--ink:hover,
.button--ink:focus-visible {
    background: var(--signal);
    color: var(--ink);
    transform: translate(-0.2rem, -0.2rem);
}

.marquee {
    overflow: hidden;
    border-block: var(--line);
    background: var(--ink);
    color: var(--paper);
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: clamp(1rem, 2.4vw, 2rem);
    padding: 1.1rem clamp(1rem, 2vw, 2rem);
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 5.5rem);
    line-height: 0.9;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee__mark {
    color: var(--signal);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.work,
.services,
.contact {
    scroll-margin-top: 7rem;
    padding-block: var(--section-y);
}

.section-heading {
    align-items: end;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading__kicker,
.about__kicker {
    grid-column: 1 / 4;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2 {
    grid-column: 5 / 13;
    font-family: var(--font-serif);
    font-size: clamp(4rem, 10vw, 9rem);
    font-style: italic;
    line-height: 0.9;
}

.section-heading--compact h2 {
    max-width: 9ch;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.work-card {
    position: relative;
    min-height: 26rem;
    overflow: hidden;
    border: var(--line);
    background: var(--ink);
    color: var(--paper);
    isolation: isolate;
}

.work-card::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(180deg, var(--overlay-ink-strong) 0%, var(--overlay-ink-clear) 46%, var(--overlay-ink-soft) 100%);
}

.work-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transform: scale(1);
    transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.work-card:hover img,
.work-card:focus-within img {
    transform: scale(1.05);
}

.work-card__meta {
    position: absolute;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-card__meta span:first-child {
    border: var(--line-inverse);
    background: var(--paper);
    color: var(--ink);
    padding: 0.42rem 0.62rem;
}

.work-card h3 {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;
    max-width: 10ch;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 6rem);
    line-height: 0.86;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.work-card--featured {
    grid-column: 1 / span 7;
    aspect-ratio: 4 / 5;
}

.work-card--stacked {
    grid-column: 8 / span 5;
    aspect-ratio: 4 / 3;
}

.work-card--portrait {
    grid-column: 8 / span 5;
    aspect-ratio: 4 / 5;
}

.work-card--panorama {
    grid-column: 1 / span 12;
    aspect-ratio: 16 / 9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: var(--line);
    border-left: var(--line);
}

.service-cell {
    position: relative;
    min-height: clamp(24rem, 34vw, 34rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: var(--line);
    border-bottom: var(--line);
    background: var(--paper);
    color: var(--ink);
    padding: clamp(1rem, 3vw, 2rem);
    transition: background 500ms var(--ease), color 500ms var(--ease);
}

.service-cell:hover,
.service-cell:focus-within {
    background: var(--ink);
    color: var(--paper);
}

.service-cell__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-cell__top span:last-child {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 4.5rem);
    line-height: 0.85;
    transition: color 500ms var(--ease), transform 500ms var(--ease);
}

.service-cell:hover .service-cell__top span:last-child,
.service-cell:focus-within .service-cell__top span:last-child {
    color: var(--signal);
    transform: translate(0.3rem, -0.3rem);
}

.service-cell h3 {
    max-width: 9ch;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 6.5rem);
    line-height: 0.86;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.service-cell p {
    max-width: 42rem;
    color: currentColor;
    font-size: clamp(1rem, 1.45vw, 1.35rem);
    font-weight: 500;
}

.about {
    scroll-margin-top: 7rem;
    background: var(--ink);
    color: var(--paper);
}

.about__inner {
    padding-block: var(--section-y);
}

.about__kicker {
    margin-bottom: clamp(2rem, 5vw, 4rem);
    color: var(--paper);
}

.about__quote {
    max-width: 12ch;
    font-family: var(--font-serif);
    font-size: clamp(4rem, 9.5vw, 11rem);
    font-style: italic;
    font-weight: 400;
    line-height: 0.9;
}

.signal {
    color: var(--signal);
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    margin-top: clamp(3rem, 7vw, 6rem);
    border-top: var(--line-inverse);
}

.about__stat {
    padding-top: clamp(1.25rem, 2vw, 2rem);
}

.about__stat strong {
    display: block;
    color: var(--signal);
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 7rem);
    letter-spacing: -0.035em;
    line-height: 0.85;
}

.about__stat span {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact__header {
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.contact__header h2 {
    max-width: 8ch;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 14rem);
    line-height: 0.84;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.contact__header p {
    margin-top: clamp(0.85rem, 2vw, 1.5rem);
    color: var(--signal);
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 9rem);
    font-style: italic;
    line-height: 0.88;
}

.contact__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.contact-card {
    position: relative;
    min-height: clamp(18rem, 27vw, 28rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: var(--line);
    background: var(--paper);
    color: var(--ink);
    padding: clamp(1rem, 2.5vw, 2rem);
    transition: background 400ms var(--ease), color 400ms var(--ease), transform 400ms var(--ease);
}

.contact-card span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-card strong {
    max-width: 14ch;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 6.5rem);
    line-height: 0.88;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.contact-card em {
    position: absolute;
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(1rem, 2.5vw, 2rem);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 5rem);
    font-style: normal;
    line-height: 0.85;
}

.contact-card:hover,
.contact-card:focus-visible {
    transform: translate(-0.35rem, -0.35rem);
    box-shadow: 0.35rem 0.35rem 0 var(--ink);
}

.contact-card--signal:hover,
.contact-card--signal:focus-visible {
    background: var(--signal);
    color: var(--ink);
}

.contact-card--ink:hover,
.contact-card--ink:focus-visible {
    background: var(--ink);
    color: var(--paper);
}

.site-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    border-top: var(--line);
    padding-block: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer p:nth-child(2) {
    text-align: center;
}

.site-footer a {
    justify-self: end;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--signal);
}

@media (max-width: 1080px) {
    .hero__copy,
    .hero__figure,
    .hero__footer p,
    .button--ink,
    .section-heading__kicker,
    .section-heading h2 {
        grid-column: 1 / -1;
    }

    .hero__copy {
        order: 1;
    }

    .hero__figure {
        order: 2;
    }

    .hero__subtitle {
        max-width: 14ch;
    }

    .hero__footer {
        row-gap: 1rem;
    }

    .button--ink {
        justify-self: start;
    }

    .work-card--featured,
    .work-card--stacked,
    .work-card--portrait,
    .work-card--panorama {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 11;
    }
}

@media (max-width: 760px) {
    .site-nav {
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 0.65rem;
    }

    .site-nav__links {
        grid-column: 1 / -1;
        order: 3;
        justify-content: space-between;
        width: 100%;
        gap: 0.5rem;
    }

    .hero {
        padding-top: 7.8rem;
    }

    .hero__meta {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.7rem 1rem;
    }

    .hero__clock {
        text-align: left;
    }

    .hero__title {
        font-size: clamp(4rem, 23vw, 8rem);
    }

    .hero__figure {
        min-height: 28rem;
        box-shadow: 0.45rem 0.45rem 0 var(--ink);
    }

    .section-heading {
        display: block;
    }

    .section-heading__kicker {
        margin-bottom: 1rem;
    }

    .services-grid,
    .contact__cards,
    .about__stats,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .service-cell {
        min-height: 22rem;
    }

    .work-card {
        min-height: 24rem;
    }

    .contact-card {
        min-height: 17rem;
    }

    .site-footer p:nth-child(2),
    .site-footer a {
        justify-self: start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .site-nav__links {
        font-size: 0.6rem;
    }

    .hero__subtitle,
    .section-heading h2,
    .about__quote,
    .contact__header p {
        font-size: clamp(2.6rem, 17vw, 4.5rem);
    }

    .contact__header h2 {
        font-size: clamp(3.4rem, 20vw, 6rem);
    }

    .marquee__group {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}