/* Shared by every generated work page. Same palette, rhythm and motion as the
   homepage, so a project page never looks like a different site. */

:root {
    --page:      #F3E9DC;
    --page-2:    #EFE3D2;
    --page-3:    #FFFFFF;
    --ink:       #000000;
    --ink-2:     #35322E;
    --muted:     #7C766D;
    --hair:      rgba(0, 0, 0, 0.14);

    --ease-ref:   cubic-bezier(.25, .46, .45, .94);
    --dur-slow:   800ms;
    --dur-colour: 1s;
    --radius:     clamp(10px, 1vw, 18px);
    --bleed:      clamp(1.25rem, 5vw, 5rem);
    --rhythm:     clamp(4rem, 8vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }

body {
    background: var(--page); color: var(--ink);
    font-family: var(--font-body); font-size: var(--text-base); line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--page); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.shell { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--bleed); }
.band { padding-block: var(--rhythm); background: var(--page); color: var(--ink); }
.band--dark {
    --page: #000000; --page-2: #0D0D0D; --page-3: #151515;
    --ink: #F3E9DC; --ink-2: rgba(243,233,220,0.74);
    --muted: rgba(243,233,220,0.52); --hair: rgba(243,233,220,0.16);
    background: var(--page); color: var(--ink);
}

.statement { font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase; font-size: clamp(1.9rem, 3.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.032em; }
.statement--sm { font-size: clamp(1.35rem, 2.1vw, 2.1rem); line-height: 1.14; letter-spacing: -0.024em; text-transform: none; }
.label { font-family: var(--font-outlier); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.prose { color: var(--ink-2); max-width: 58ch; }
.prose--lg { font-size: var(--text-md); max-width: 62ch; }
.lede { color: var(--ink-2); font-size: var(--text-md); max-width: 54ch; margin-top: var(--space-md); }

.wordmark { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-xl); letter-spacing: -0.015em; text-transform: uppercase; white-space: nowrap; line-height: 1; }

.btn {
    display: inline-flex; align-items: center; gap: var(--space-2xs);
    min-height: 50px; padding: var(--space-xs) var(--space-lg);
    font-family: var(--font-outlier); font-weight: 700; font-size: var(--text-xs);
    letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; line-height: 1;
    cursor: pointer; background: transparent; color: var(--ink);
    border: 1px solid var(--ink); border-radius: 999px;
    transition: background-color var(--dur-colour) var(--ease-ref), color var(--dur-colour) var(--ease-ref);
}
.btn:hover { background: var(--ink); color: var(--page); }
.btn--solid { background: var(--ink); color: var(--page); }
.btn--solid:hover { background: transparent; color: var(--ink); }

.split { display: flex; flex-direction: column; gap: var(--space-md); }
@media (min-width: 900px) {
    .split { flex-direction: row; gap: var(--space-2xl); }
    .split__label { width: 30%; flex: none; }
    .split__body { width: 70%; }
}

/* Nav: solid, since there is no dark hero on these pages */
.nav {
    position: sticky; top: 0; z-index: var(--z-nav); height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
    padding-inline: var(--bleed);
    background: rgba(243, 233, 220, 0.92);
    backdrop-filter: saturate(1.2) blur(12px);
    -webkit-backdrop-filter: saturate(1.2) blur(12px);
    border-bottom: 1px solid var(--hair);
}
.nav__links { display: none; }
@media (min-width: 960px) { .nav__links { display: flex; gap: var(--space-xl); align-items: center; } }
.nav__links a { font-family: var(--font-outlier); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; opacity: 0.72; transition: opacity var(--dur-short) var(--ease-ref); }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav .btn { min-height: 42px; }

/* Case head */
.backlink { display: inline-block; margin-bottom: var(--space-xl); transition: color var(--dur-short) var(--ease-ref); }
.backlink:hover { color: var(--ink); }
.case-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
@media (min-width: 980px) { .case-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-2xl); align-items: start; } }
.status { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-outlier); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-sm); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--ink); }
.case-head .btn { margin-top: var(--space-lg); }

.facts { display: grid; gap: var(--space-lg); }
.facts dt { font-family: var(--font-outlier); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: var(--text-sm); margin-top: 0.25rem; }

/* Hero figure, and the typographic fallback for projects with no real asset */
.hero__fig { margin-top: var(--space-2xl); aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--page-2); }
.hero__fig img { width: 100%; height: 100%; object-fit: cover; }
.hero__fig--type, .case__fig--type {
    display: grid; place-items: center;
    background: #000; color: var(--page);
}
.hero__fig--type span, .case__fig--type span {
    font-family: var(--font-display); font-weight: var(--weight-display);
    letter-spacing: -0.04em; opacity: 0.28;
    font-size: clamp(4rem, 12vw, 11rem); line-height: 1;
}
.case__fig--type span { font-size: clamp(2.5rem, 7vw, 5rem); }

/* Steps */
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-block: var(--space-lg); border-top: 1px solid var(--hair); display: grid; gap: var(--space-2xs); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--muted); }
.steps h3 { font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase; font-size: var(--text-lg); letter-spacing: -0.02em; line-height: 1.1; }
.steps p { color: var(--ink-2); max-width: 60ch; }

/* CTA and pager */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.cta .statement { max-width: 16ch; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); margin-top: var(--rhythm); padding-top: var(--space-lg); border-top: 1px solid var(--hair); }
.pager__link { display: grid; gap: var(--space-3xs); font-family: var(--font-display); font-weight: var(--weight-display); text-transform: uppercase; font-size: var(--text-lg); letter-spacing: -0.02em; line-height: 1.1; max-width: 22ch; transition: opacity var(--dur-short) var(--ease-ref); }
.pager__link:hover { opacity: 0.6; }
.pager__link--next { text-align: right; justify-items: end; }

/* Footer */
.foot {
    --page: #000000; --page-2: #0D0D0D;
    --ink: #F3E9DC; --ink-2: rgba(243,233,220,0.74);
    --muted: rgba(243,233,220,0.52); --hair: rgba(243,233,220,0.16);
    background: var(--page); color: var(--ink);
    padding-block: var(--rhythm) var(--space-lg);
}
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
@media (min-width: 820px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); align-items: end; } }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
.foot__links a { font-family: var(--font-outlier); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; opacity: 0.7; transition: opacity var(--dur-short) var(--ease-ref); }
.foot__links a:hover { opacity: 1; }
.foot__wordmark { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(3.5rem, 15vw, 12rem); line-height: 0.78; text-transform: uppercase; color: var(--ink); opacity: 0.14; margin-top: var(--space-2xl); }
.foot__tail { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); border-top: 1px solid var(--hair); padding-top: var(--space-md); margin-top: var(--space-lg); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
