/* Beck Studio
   Palette: near-black wall, warm paper text, ember accent. Dark, so the renders glow.
   Display headings take an italic serif accent (Instrument Serif) on their last words.
   Type: Archivo throughout, its width axis doing the work of a second family.
   Display is set expanded and light, like architectural signage; small text is set
   semi-condensed so metadata reads as a drawing schedule. */

/* Archivo, self-hosted (SIL Open Font License, see fonts/OFL.txt).
   One variable file per script covers every weight and width. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --wall: #0E0D0B;          /* page: near black, slightly warm */
  --paper: #1A1815;         /* raised surfaces, image placeholders */
  --ink: #F2EDE4;           /* text: warm paper */
  --ink-2: #9A958B;         /* secondary text, 6.4:1 on wall */
  --rule: #2E2B27;          /* hairlines */
  --oak: #FF6A3D;           /* accent: focus, hover, active; 6.9:1 on wall */
  --oak-light: #FF8A63;     /* accent on raised surfaces */
  --on-ink: #F2EDE4;        /* text on the contact panel */
  --on-ink-2: #9A958B;
  --panel: #161411;         /* contact and footer */
  --dark: #0E0D0B;          /* text on light buttons */
  --film-text: #F7F6F3;
  --serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 90rem;
  --section: clamp(6rem, 14vw, 12rem);

  /* Type scale: perfect fourth from a 17px base */
  --t-small: 0.8125rem;     /* 13 */
  --t-body: 1.0625rem;      /* 17 */
  --t-lede: clamp(1.1875rem, 1.6vw, 1.4375rem);
  --t-h3: clamp(1.4rem, 2vw, 1.9rem);
  --t-display: clamp(2.5rem, 6.2vw, 5.6rem);
  --t-hero: clamp(3.4rem, 11vw, 10.5rem);

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--oak); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }

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

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--dark); padding: .6rem 1rem; border-radius: 3px;
}
.skip:focus { top: 1rem; }

/* Announced by screen readers, not shown. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section) 0; }

.display {
  font-size: var(--t-display);
  font-weight: 700;
  font-variation-settings: "wdth" 100;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
/* The italic serif accent on a heading's last words. */
.display em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; font-variation-settings: normal;
}
.prose { max-width: 36em; }
.prose p + p { margin-top: 1em; }
.section__head { display: grid; gap: 1.5rem; margin-bottom: clamp(3.5rem, 8vw, 7rem); }
.section__lede { font-size: var(--t-lede); line-height: 1.5; color: var(--ink-2); max-width: 32em; }
@media (min-width: 64em) {
  .section__head { grid-template-columns: 7fr 4fr; align-items: end; gap: 4rem; }
}

/* Buttons and links ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.5rem;
  border-radius: 999px; border: 1px solid transparent;
  font-size: .9375rem; font-weight: 500; font-variation-settings: "wdth" 104;
  text-decoration: none; letter-spacing: .005em;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--light { background: var(--film-text); color: var(--dark); }
.btn--light:hover { background: var(--oak); color: var(--dark); }
.btn--ghost { border-color: color-mix(in srgb, var(--film-text) 55%, transparent); color: var(--film-text); }
.btn--ghost:hover { border-color: var(--film-text); color: var(--film-text); background: rgb(255 255 255 / .08); }
.link {
  background: none; border: 0; padding: .5rem 0; min-height: 44px;
  font-weight: 500; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px;
  text-align: left;
}
.link:hover { color: var(--oak); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: max(.9rem, env(safe-area-inset-top)) var(--gutter) .9rem;
  color: var(--film-text);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.site-header[data-state="solid"] {
  background: color-mix(in srgb, var(--wall) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
}
.brand { display: block; padding: .25rem 0; }
.brand__lockup {
  display: block; width: 7.4rem; aspect-ratio: 760 / 338;
  background: currentColor;
  -webkit-mask: url(../logo/lockup.png) center / contain no-repeat;
  mask: url(../logo/lockup.png) center / contain no-repeat;
}
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); font-size: .9375rem; font-weight: 500; }
.nav__list a { text-decoration: none; padding: .6rem 0; }
.nav__list a:not(.nav__cta):hover { text-decoration: underline; color: inherit; }
.nav__cta {
  border: 1px solid currentColor; border-radius: 999px; padding: .55rem 1.1rem !important;
}
.nav__cta:hover { background: currentColor; }
.nav__cta:hover { color: inherit; }
.site-header[data-state="solid"] .nav__cta:hover { background: var(--ink); color: var(--wall); }
.site-header[data-state="over-hero"] .nav__cta:hover { background: var(--film-text); color: var(--dark); }
.nav__toggle { display: none; }

@media (max-width: 47.99em) {
  .brand__lockup { width: 6.2rem; }
  .nav__toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem;
    background: none; border: 1px solid currentColor; border-radius: 999px; font-weight: 500; font-size: .9375rem;
  }
  .nav__list {
    position: fixed; inset: 0 0 auto; z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 5rem var(--gutter) 1.5rem;
    background: var(--wall); color: var(--ink);
    font-size: 1.5rem; font-weight: 300; font-variation-settings: "wdth" 112;
    box-shadow: 0 1px 0 var(--rule);
    transform: translateY(-102%); visibility: hidden;
    transition: transform .45s var(--ease-out), visibility 0s .45s;
  }
  .nav__list li { border-top: 1px solid var(--rule); }
  .nav__list a { display: block; padding: .9rem 0; }
  .nav__cta { border: 0; border-radius: 0; padding: .9rem 0 !important; color: var(--oak); }
  .nav[data-open] .nav__list { transform: none; visibility: visible; transition: transform .45s var(--ease-out); }
  .nav[data-open] .nav__toggle { color: var(--ink); }
  .site-header:has(.nav[data-open]) .brand { color: var(--ink); }
}

/* Opening: stacked panels -------------------------------------------------- */
/* Full-screen panels, each sticky at the top, so every panel slides up and
   covers the one before. Each panel is a full-bleed render with a one-line caption. */
.stack { position: relative; z-index: 1; }
.stack__panel {
  position: sticky; top: 0;
  display: grid; place-content: center; text-align: center;
  height: 100vh; height: 100svh; padding: 5rem var(--gutter);
  overflow: hidden;
}
.stack__panel > * { position: relative; }
.stack__panel > .stack__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
/* Portrait screens see a narrow slice of each render; aim it at the subject. */
@media (orientation: portrait) {
  .stack__bg[data-focus-x] { object-position: var(--focus-x) 50%; }
}
/* The render is shown as delivered, no dimming; a soft shadow keeps the line legible. */
.stack__panel--image > :not(.stack__bg) { z-index: 1; }
/* Over the render the line reads like a film caption: one line, low left, plain white. */
.stack__panel--image {
  place-content: end start; text-align: left;
  padding: 5rem max(var(--gutter), 10vw) max(5rem, 10vh);
}
.stack__caption {
  font-size: clamp(2.08rem, 4.03vw, 4.225rem);
  font-weight: 500; font-variation-settings: "wdth" 86;
  line-height: 1.15; letter-spacing: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / .35), 0 2px 18px rgb(0 0 0 / .3);
}
.stack__panel--image .stack__hint { text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
/* The closing statement: a large two-line line over the render, its subline beneath. */
.stack__panel--statement { padding-left: max(var(--gutter), 7vw); padding-right: max(var(--gutter), 7vw); }
.stack__headline {
  max-width: 7.5em;
  font-size: clamp(3.5rem, 9.6vw, 11.5rem);
  font-weight: 400; font-variation-settings: "wdth" 92;
  line-height: .9; letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 3px rgb(0 0 0 / .3), 0 4px 40px rgb(0 0 0 / .3);
}
/* A caption set low right, same right margin as the opening panel's line. */
.stack__panel--right { place-content: end end; text-align: right; padding-right: max(var(--gutter), 3.5vw); }
@media (max-width: 47.99em) {
  .stack__panel--right { place-content: end start; text-align: left; }
}
/* Opening panel: studio name low left, the line low right on the same baseline. */
.stack__panel--image:has(.stack__split) {
  place-content: end stretch;
  padding-left: max(var(--gutter), 6vw); padding-right: max(var(--gutter), 3.5vw);
}
.stack__split {
  display: flex; justify-content: space-between; align-items: last baseline;
  gap: 1.5rem 3rem;
}
.stack__headline--intro { max-width: none; font-size: clamp(3.25rem, 6.4vw, 9rem); line-height: .95; }
.stack__split .stack__caption { white-space: nowrap; }
.stack__headline--intro span { display: block; }
.stack__split .stack__caption { text-align: right; }
@media (max-width: 47.99em) {
  .stack__split { flex-direction: column; align-items: flex-start; }
  .stack__split .stack__caption { text-align: left; white-space: normal; }
}
.stack__sub {
  margin-top: clamp(.75rem, 1.6vw, 1.5rem);
  font-size: clamp(1.25rem, 2.3vw, 2.6rem);
  font-weight: 500; font-variation-settings: "wdth" 86;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / .35), 0 2px 18px rgb(0 0 0 / .3);
}
.stack__hint {
  position: absolute !important; left: 50%; bottom: max(1.75rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  font-size: var(--t-small); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.stack__panel--image .stack__hint { color: rgb(247 246 243 / .8); }
html:not(.js) .stack__hint { display: none; }
.stack__panel--dark { background: var(--wall); color: var(--ink); }
/* A panel that slides over another shows rounded top corners. */
.stack__panel--round { border-radius: 1rem 1rem 0 0; }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Premise ---------------------------------------------------------------- */
.premise__grid { display: grid; gap: 2.5rem; }
.premise__body { font-size: var(--t-lede); line-height: 1.55; }
.sectors { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; font-weight: 500; font-variation-settings: "wdth" 92; }
.sectors li { border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .85rem; }
@media (min-width: 64em) {
  .premise__grid { grid-template-columns: 6fr 5fr; column-gap: 5rem; }
  .premise__grid .display { grid-row: span 2; }
  .premise__body { padding-top: .6rem; }
}

/* Work ------------------------------------------------------------------- */
.projects { display: grid; gap: clamp(5rem, 11vw, 10rem); }
.project { display: grid; gap: 1.5rem; }
.project__media {
  position: relative; display: block; padding: 0; border: 0; background: var(--paper);
  overflow: hidden; border-radius: 2px; text-align: left; align-self: start;
}
.project__media img { width: 100%; transition: transform 1.2s var(--ease-out), filter 1.6s var(--ease-out); }
.project__media:hover img { transform: scale(1.025); }
.project__count {
  position: absolute; left: .75rem; bottom: .75rem;
  padding: .3rem .7rem; border-radius: 999px;
  background: rgb(14 13 11 / .72); color: var(--ink);
  font-size: .75rem; font-weight: 500; font-variation-settings: "wdth" 90;
}
.project__text { display: grid; gap: 1.1rem; align-content: start; }
.project__title { font-size: var(--t-h3); font-weight: 400; font-variation-settings: "wdth" 112; line-height: 1.1; letter-spacing: -0.01em; }
.project__desc { max-width: 34em; color: var(--ink-2); }

.meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.5rem;
  font-size: var(--t-small); font-variation-settings: "wdth" 90; line-height: 1.4;
  padding-block: .9rem; border-block: 1px solid var(--rule);
}
.meta dt { color: var(--ink-2); }
.meta dd { font-weight: 500; }

/* "Developing": images arrive as a pale, unfinished state and resolve once, on entry.
   The white card becoming the render, at whisper level. */
.js .project__media img:not(.is-developed), .js .step__fig img:not(.is-developed) {
  filter: grayscale(1) brightness(1.18) contrast(.82);
}

@media (min-width: 64em) {
  .project { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 2rem; }
  /* The wide project breaks out of the content column: edge to edge with a
     slim margin, tall enough to fill the screen below the header with its
     caption still in view. */
  /* --page-w is the viewport without its scrollbar (set in main.js); 100vw
     would include the scrollbar and cause sideways scrolling on Windows. */
  .project--wide {
    --gutter-wide: clamp(1.25rem, 4vw, 5rem);
    width: calc(var(--page-w, 100vw) - 2 * var(--gutter-wide));
    margin-inline: calc(50% - var(--page-w, 100vw) / 2 + var(--gutter-wide));
  }
  .project--wide .project__media { grid-column: 1 / -1; }
  .project--wide .project__media img {
    height: clamp(26rem, calc(100svh - 14rem), 62vw);
    object-fit: cover;
  }
  .project--wide .project__text { grid-column: 1 / -1; grid-template-columns: 4fr 3fr 5fr; column-gap: 2rem; align-items: start; }
  .project--wide .project__text .meta { grid-row: span 2; }
  .project--wide .project__desc { grid-column: 3; grid-row: 1 / span 2; }
  .project--wide .project__text .link { grid-column: 1; }

  .project--left .project__media { grid-column: 1 / span 8; }
  .project--left .project__text { grid-column: 9 / -1; align-self: end; }

  .project--right .project__media { grid-column: 5 / -1; grid-row: 1; }
  .project--right .project__text { grid-column: 1 / span 4; grid-row: 1; align-self: start; padding-top: 3rem; }

  /* A large view and a smaller one set lower, like two prints pinned to a wall. */
  .project--pair .project__media {
    grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 4fr; gap: 2rem; align-items: start;
    background: none; overflow: visible;
  }
  .project--pair .project__media img { border-radius: 2px; }
  .project--pair .pair-b { margin-top: 38%; }
  .project--pair .project__count { left: .75rem; bottom: auto; top: .75rem; }
  .project--pair .project__text { grid-column: 1 / span 7; }
  .project--pair:hover .project__media img { transform: none; }
}
@media (max-width: 63.99em) {
  .project--pair .pair-b { display: none; }
}

/* Phones: a tall image and its title. The image still opens the gallery. */
@media (max-width: 47.99em) {
  .projects { gap: 2.75rem; }
  .project { gap: 1rem; }
  .project__media img { aspect-ratio: 15 / 16; height: auto; object-fit: cover; }
  /* Per-project framing of the tall crop, where the subject is off-centre. */
  #project-cwg-bank-street .project__media img { object-position: 64% 50%; }
  #project-sapiens .project__media img { object-position: 97.6% 50%; }
  #project-lisa .project__media img { object-position: 89.3% 50%; }
  .project__count, .project .meta, .project__desc, .project__text .link { display: none; }
  .project__title { font-size: 1.5rem; }
}

/* Process ---------------------------------------------------------------- */
.steps { display: grid; gap: 3.5rem 2rem; counter-reset: none; }
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5rem 2.5rem; } }
.step { display: grid; gap: .9rem; align-content: start; }
/* The six stages of one space, shown whole: same frame, nothing cropped. */
.step__fig { margin: 0; }
.step__fig img { width: 100%; height: auto; border-radius: 2px; background: var(--paper); transition: filter 1.6s var(--ease-out); }
.step__title {
  display: flex; align-items: baseline; gap: .75rem;
  font-size: var(--t-h3); font-weight: 400; font-variation-settings: "wdth" 112; line-height: 1.15;
  padding-top: .9rem; border-top: 1px solid var(--rule);
}
.step__n { font-size: var(--t-small); font-weight: 500; font-variation-settings: "wdth" 90; color: var(--oak); font-variant-numeric: tabular-nums; min-width: 1ch; }
.step p { color: var(--ink-2); max-width: 30em; }

/* FAQ -------------------------------------------------------------------- */
.faq__grid { display: grid; gap: 3rem; }
@media (min-width: 64em) { .faq__grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.faq__list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  padding: 1.35rem 0; min-height: 44px;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 400; font-variation-settings: "wdth" 106; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .75rem; height: .75rem; margin-top: .3rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--oak); }
.faq details p { padding: 0 0 1.5rem; max-width: 36em; color: var(--ink-2); }

/* Contact ---------------------------------------------------------------- */
.contact {
  margin-top: var(--section);
  padding-block: var(--section);
  background: var(--panel); color: var(--on-ink);
}
.contact a:hover { color: var(--oak-light); }
.contact :focus-visible { outline-color: var(--oak-light); }
.contact__grid { display: grid; gap: 4rem; }
@media (min-width: 64em) { .contact__grid { grid-template-columns: 6fr 5fr; gap: 6rem; } }
.contact .prose { margin-top: 1.75rem; font-size: var(--t-lede); line-height: 1.5; color: var(--on-ink-2); }
.contact__details { display: grid; gap: .9rem; margin-top: 3rem; }
.contact__details div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; align-items: baseline; }
.contact__details dt { font-size: var(--t-small); font-variation-settings: "wdth" 90; color: var(--on-ink-2); }
.contact__details dd { font-size: 1.125rem; }

.form { display: grid; gap: 1.6rem; align-content: start; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 500; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--on-ink);
  background: rgb(255 255 255 / .04);
  border: 1px solid rgb(236 234 229 / .28); border-radius: 3px;
  padding: .85rem 1rem; min-height: 3rem;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field textarea:hover { border-color: rgb(236 234 229 / .5); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--oak-light); background: rgb(255 255 255 / .07); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--oak-light); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #E8A08A; }
.field__help { font-size: var(--t-small); color: var(--on-ink-2); }
.field__error { font-size: var(--t-small); color: #F0B4A2; font-weight: 500; }
.form .btn { justify-self: start; min-width: 11rem; }
.form .btn:hover { color: var(--dark); }
.form__status { min-height: 1.6em; color: var(--on-ink); }
.form__status:empty { display: none; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--panel); color: var(--on-ink-2); padding: 0 0 max(3rem, env(safe-area-inset-bottom)); font-size: .9375rem; }
.footer__grid { display: grid; gap: 1rem; padding-top: 3rem; border-top: 1px solid rgb(236 234 229 / .14); }
.brand__lockup--footer { color: var(--on-ink); width: 8.5rem; margin-bottom: 1rem; }
.footer__small { font-size: var(--t-small); margin-top: 1rem; }
@media (min-width: 64em) {
  .footer__grid { grid-template-columns: 3fr 4fr 4fr 2fr; align-items: start; }
  .brand__lockup--footer { margin: 0; }
  .footer__small { margin: 0; text-align: right; }
}

/* Gallery ---------------------------------------------------------------- */
.gallery {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--wall); color: var(--ink);
}
.gallery::backdrop { background: rgb(0 0 0 / .7); }
.gallery[open] { animation: gallery-in .45s var(--ease-out); }
@keyframes gallery-in { from { opacity: 0; transform: translateY(1.5rem); } }
.gallery__bar {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) var(--gutter) 1rem;
  background: color-mix(in srgb, var(--wall) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule);
}
.gallery__title { font-size: var(--t-h3); font-weight: 400; font-variation-settings: "wdth" 112; line-height: 1.1; }
.gallery__meta { font-size: var(--t-small); font-variation-settings: "wdth" 90; color: var(--ink-2); margin-top: .25rem; }
.gallery__close {
  min-height: 44px; padding: .5rem 1.25rem; border-radius: 999px;
  background: var(--ink); color: var(--wall); border: 0; font-weight: 500;
}
.gallery__close:hover { background: var(--oak); color: var(--dark); }
/* One column: every image whole, the same width, centred, evenly spaced. */
.gallery__body {
  display: grid; gap: clamp(1rem, 3.3vw, 2.75rem);
  width: min(100% - 2 * var(--gutter), 84vw, 150rem);
  margin: clamp(1.5rem, 3.3vw, 2.75rem) auto clamp(3rem, 8vw, 6rem);
}
.gallery__body figure { margin: 0; }
.gallery__body img { width: 100%; border-radius: 2px; background: var(--paper); }
html:has(.gallery[open]) { overflow: hidden; }
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* Full-screen viewer --------------------------------------------------------- */
.viewer {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: #fff; overflow: hidden;
}
.viewer::backdrop { background: #000; }
.viewer[open] { animation: viewer-in .3s var(--ease-out); }
@keyframes viewer-in { from { opacity: 0; } }
.viewer__stage {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: max(4.5rem, env(safe-area-inset-top)) clamp(0rem, 5vw, 5.5rem) max(3.5rem, env(safe-area-inset-bottom));
}
.viewer__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; background: var(--paper);
  touch-action: pinch-zoom; user-select: none; -webkit-user-drag: none;
}
.viewer__close {
  position: absolute; top: max(1rem, env(safe-area-inset-top)); right: var(--gutter);
  min-height: 44px; padding: .5rem 1.25rem; border-radius: 999px; border: 0;
  background: var(--film-text); color: var(--dark); font-weight: 500;
}
.viewer__close:hover { background: var(--oak); }
.viewer__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .35); background: rgb(0 0 0 / .35); color: #fff;
  font-size: 1.25rem; line-height: 1;
  transition: background-color .2s, border-color .2s;
}
.viewer__nav:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.viewer__nav--prev { left: max(.75rem, calc(var(--gutter) / 2)); }
.viewer__nav--next { right: max(.75rem, calc(var(--gutter) / 2)); }
.viewer[data-single] .viewer__nav, .viewer[data-single] .viewer__count { display: none; }
.viewer__count {
  position: absolute; left: 0; right: 0; bottom: max(1rem, env(safe-area-inset-bottom));
  text-align: center; font-size: var(--t-small); font-variant-numeric: tabular-nums; color: rgb(255 255 255 / .7);
}
.viewer :focus-visible { outline-color: #fff; }
/* Phones: the image runs edge to edge; arrows sit over it, low. */
@media (max-width: 47.99em) {
  .viewer__stage { padding-inline: 0; }
  .viewer__nav { top: auto; bottom: max(.5rem, env(safe-area-inset-bottom)); transform: none; }
}

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .project__media img:not(.is-developed), .js .step__fig img:not(.is-developed) { filter: none; }
  .project__media:hover img { transform: none; }
}
