@font-face {
    font-family: 'Schibsted Grotesk';
    src: url('fonts/schibsted-grotesk.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* pulled from the onyx logo: paper, two stones, copper */
    --paper: #ecebe8;
    --stone: #b9b6ae;
    --stone-dark: #9b988f;
    --ink: #1e2224;
    --ink-soft: #565b5e;
    --copper: #c8743c;
    --copper-dark: #a85c2a;

    --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --max-width: 1320px;
    --gutter: clamp(20px, 4vw, 48px);
    --inset: clamp(8px, 1.1vw, 16px);
    --header-h: 76px;
    --section-y: clamp(96px, 13vw, 180px);
}

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

html {
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
}

html.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

h2 {
    font-size: clamp(2.4rem, 5.4vw, 4.6rem);
}

h3 {
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

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

.container {
    width: min(100% - var(--gutter) * 2, var(--max-width));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
}

.skip-link:focus {
    top: 12px;
}

/* buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-copper {
    background: var(--copper);
    color: #fff;
}

.btn-copper:hover {
    background: var(--copper-dark);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-glass:hover {
    background: #fff;
    color: var(--ink);
}

/* header */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    padding: var(--inset) var(--inset) 0;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.site-header.is-scrolled,
.site-header.nav-open {
    background: var(--paper);
    padding-bottom: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
    padding: 0 clamp(16px, 2.4vw, 32px);
    color: #fff;
    border-radius: 6px;
    pointer-events: auto;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled .header-inner,
.site-header.nav-open .header-inner {
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(30, 34, 36, 0.1);
    border-radius: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 34px);
}

.site-nav a {
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    opacity: 1;
}

.site-nav a.is-active:not(.nav-cta) {
    color: var(--copper);
}

.site-nav .nav-cta {
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--copper);
    color: #fff;
    opacity: 1;
}

.site-nav .nav-cta:hover {
    background: var(--copper-dark);
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s ease;
}

.nav-toggle span:first-child {
    top: 17px;
}

.nav-toggle span:last-child {
    top: 25px;
}

.nav-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* hero: inset photo frame */

.hero {
    padding: var(--inset);
    height: 100vh;
    height: 100svh;
    min-height: 600px;
}

.hero-frame {
    position: relative;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: var(--ink);
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(18, 21, 22, 0.88) 0%, rgba(18, 21, 22, 0.35) 45%, rgba(18, 21, 22, 0.1) 70%, rgba(18, 21, 22, 0.45) 100%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 clamp(20px, 4vw, 64px) clamp(28px, 5vw, 64px);
    color: #fff;
}

.hero-kicker {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.hero-title {
    margin-top: 14px;
    font-size: clamp(3.6rem, 11.5vw, 11rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.88;
    color: #fff;
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.04em;
}

.hero-title .line > span {
    display: block;
}

.hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 48px;
    margin-top: clamp(24px, 3vw, 40px);
}

.hero-lede {
    max-width: 46ch;
    font-size: clamp(1.02rem, 1.3vw, 1.18rem);
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* intro */

.intro {
    padding-block: var(--section-y);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr);
    gap: clamp(40px, 7vw, 120px);
    align-items: end;
}

.intro-text {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.intro-fig {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.intro-fig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* work: list on the left, sticky photo frame on the right */

.work {
    padding-bottom: var(--section-y);
}

.work-title {
    padding-top: 32px;
    border-top: 1px solid rgba(30, 34, 36, 0.18);
}

.work-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 6vw, 96px);
    margin-top: clamp(32px, 5vw, 64px);
}

.work-item {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    opacity: 0.35;
    transition: opacity 0.4s ease;
}

.work-item.is-active {
    opacity: 1;
}

.work-item h3 {
    font-size: clamp(2rem, 3.4vw, 3rem);
    letter-spacing: -0.035em;
}

.work-item p {
    margin-top: 18px;
    max-width: 46ch;
    color: var(--ink-soft);
}

.work-item .work-scope {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 2px solid var(--copper);
    max-width: 46ch;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
}

.work-inline {
    display: none;
}

.work-stage {
    position: relative;
}

.work-frame {
    position: sticky;
    top: calc(var(--header-h) + var(--inset) + 24px);
    height: calc(100vh - var(--header-h) - var(--inset) - 48px);
    border-radius: 6px;
    overflow: hidden;
    background: var(--ink);
}

.work-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.9s cubic-bezier(0.7, 0, 0.2, 1);
}

.work-shot.is-active {
    clip-path: inset(0 0 0 0);
    z-index: 1;
}

.work-shot.is-leaving {
    clip-path: inset(0 0 0 0);
    z-index: 0;
    transition: none;
}

.work-count {
    position: absolute;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(18, 21, 22, 0.6);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* approach: full bleed water photo */

.approach {
    position: relative;
    margin: 0 var(--inset);
    padding-block: var(--section-y);
    border-radius: 6px;
    overflow: hidden;
    color: #fff;
}

.approach-bg {
    position: absolute;
    inset: -10% 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.approach-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(16, 26, 30, 0.72), rgba(16, 26, 30, 0.86));
}

.approach-inner {
    position: relative;
}

.approach h2 {
    max-width: 10ch;
    color: #fff;
    font-size: clamp(3rem, 7.4vw, 6.6rem);
    letter-spacing: -0.045em;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 48px);
    margin-top: clamp(56px, 8vw, 110px);
}

.approach-grid > div {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.approach-grid h3 {
    color: #fff;
    font-size: 1.3rem;
}

.approach-grid p {
    margin-top: 12px;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.78);
}

/* field photos */

.field {
    padding-block: var(--section-y);
}

.field-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.field-head p {
    max-width: 36ch;
    color: var(--ink-soft);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 16px);
}

.field-grid figure {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.field-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.field-grid figure:hover img {
    transform: scale(1.04);
}

.field-grid figcaption {
    position: absolute;
    left: 14px;
    bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(236, 235, 232, 0.92);
    font-size: 0.85rem;
    font-weight: 600;
}

.f-a {
    grid-column: 1 / span 7;
    aspect-ratio: 3 / 2;
}

.f-b {
    grid-column: 8 / span 5;
    aspect-ratio: auto;
}

.f-c {
    grid-column: 3 / span 8;
    aspect-ratio: 16 / 8;
}

/* faq */

.faq {
    padding-bottom: var(--section-y);
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 96px);
    padding-top: 32px;
    border-top: 1px solid rgba(30, 34, 36, 0.18);
}

.faq h2 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    max-width: 12ch;
}

.faq-item {
    border-bottom: 1px solid rgba(30, 34, 36, 0.18);
}

.faq-item:first-child {
    border-top: 1px solid rgba(30, 34, 36, 0.18);
}

.faq-item summary {
    position: relative;
    display: block;
    padding: 24px 56px 24px 0;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before,
.faq-item summary::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 16px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease;
}

.faq-item summary::after {
    transform: rotate(90deg);
}

.faq-item summary:hover,
.faq-item.is-open summary {
    color: var(--copper-dark);
}

.faq-item.is-open summary::after {
    transform: rotate(0deg);
}

.faq-answer {
    overflow: hidden;
    max-width: 62ch;
    padding-bottom: 26px;
    color: var(--ink-soft);
}

/* footer */

.site-footer {
    position: relative;
    margin: 0 var(--inset) var(--inset);
    border-radius: 6px;
    overflow: hidden;
    color: #fff;
    background: var(--ink);
}

.footer-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18, 21, 22, 0.78), rgba(18, 21, 22, 0.92));
}

.footer-inner,
.footer-bottom {
    position: relative;
}

.footer-inner {
    padding-block: clamp(96px, 13vw, 170px) clamp(64px, 8vw, 100px);
}

.site-footer h2 {
    max-width: 12ch;
    color: #fff;
}

.footer-lede {
    margin-top: 20px;
    max-width: 46ch;
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.78);
}

.footer-phone {
    display: inline-block;
    margin-top: clamp(40px, 6vw, 72px);
    font-size: clamp(3rem, 10vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: #fff;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease;
}

.footer-phone:hover {
    color: var(--copper);
}

.footer-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 40px;
    margin: 26px 0 36px;
    font-style: normal;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    overflow-wrap: anywhere;
}

.footer-rows a {
    text-underline-offset: 5px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 22px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a {
    color: #fff;
}

/* responsive */

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

@media (max-width: 900px) {
    :root {
        --header-h: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(var(--header-h) + var(--inset) + 6px);
        left: var(--inset);
        right: var(--inset);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 20px;
        border-radius: 6px;
        background: var(--paper);
        color: var(--ink);
        box-shadow: 0 0 0 1px rgba(30, 34, 36, 0.08);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    }

    .nav-open .site-nav {
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .site-nav a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(30, 34, 36, 0.1);
        font-size: 1.05rem;
    }

    .site-nav .nav-cta {
        margin-top: 14px;
        padding: 14px;
        text-align: center;
        border-bottom: 0;
    }

    .intro-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .intro-fig {
        max-width: 420px;
        aspect-ratio: 4 / 3;
    }

    /* no sticky frame on small screens, each item carries its own photo */
    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-stage {
        display: none;
    }

    .work-item {
        min-height: 0;
        opacity: 1;
        padding: 0 0 56px;
    }

    .work-inline {
        display: block;
        margin-bottom: 24px;
        border-radius: 6px;
        overflow: hidden;
        aspect-ratio: 3 / 2;
    }

    .work-inline img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .f-a,
    .f-b,
    .f-c {
        grid-column: auto;
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 560px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
}
