/* ──────────────────────────────────────────────────────────────────────────
   T-07
   A twelve-column sheet on paper. Type is set like an old printer's archive:
   titles in capitals cut from historic faces, a book face for reading, a
   typewriter for every label, number and code — the way the studio's own flats,
   dielines and process boards are annotated. Hairlines rule themselves in,
   pictures develop up out of the paper, titles arrive as ransom-note cut-outs
   from old print. Red is the red pen and nothing else.
   ────────────────────────────────────────────────────────────────────────── */

/* ── faces (a browser only downloads the ones the page actually uses) ──── */
/* house: TeX Gyre Heros (GUST Font License), subset and renamed, with arrows drawn
   to its stems and Ɛ ɛ added — see fonts/README-T07-Grot.txt */
@font-face { font-family: "T07 Grot"; src: url("../fonts/T07-Grot.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "T07 Grot"; src: url("../fonts/T07-Grot-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "T07 Grot Cn"; src: url("../fonts/T07-Grot-Cn.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "T07 Grot Cn"; src: url("../fonts/T07-Grot-Cn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* house: the T-07 mark in IM Fell Double Pica — just the letters a mark needs */
@font-face { font-family: "T07 Fell Mark"; src: url("../fonts/T07-Fell-Mark.woff2") format("woff2"); font-display: swap; }
/* arrows and the Ga/Twi letters Ɛ ɛ, from EB Garamond, for faces that lack them */
@font-face { font-family: "T07 Marks"; src: url("../fonts/T07-Marks.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "T07 Marks"; src: url("../fonts/T07-Marks-Italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
/* labels: Courier Prime */
@font-face { font-family: "T07 Courier"; src: url("../fonts/T07-Courier.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "T07 Courier"; src: url("../fonts/T07-Courier-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
/* fell: the 17th-century Fell types of the Oxford University Press (IM Fell) */
@font-face { font-family: "T07 Fell"; src: url("../fonts/T07-Fell.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "T07 Fell English"; src: url("../fonts/T07-Fell-English.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "T07 Fell English"; src: url("../fonts/T07-Fell-English-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
/* gothic: an 18th-century fraktur mark (UnifrakturCook), Bluu Next capitals, EB Garamond */
@font-face { font-family: "T07 Fraktur"; src: url("../fonts/T07-Fraktur.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "T07 Bluu"; src: url("../fonts/T07-Bluu.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "T07 Garamond"; src: url("../fonts/T07-Garamond.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "T07 Garamond"; src: url("../fonts/T07-Garamond-Italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
/* didone: Bodoni Moda, with optical sizes from masthead to footnote */
@font-face { font-family: "T07 Bodoni"; src: url("../fonts/T07-Bodoni.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "T07 Bodoni"; src: url("../fonts/T07-Bodoni-Italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
/* wood: Victorian wood type (Ultra) over Old Standard */
@font-face { font-family: "T07 Wood"; src: url("../fonts/T07-Ultra.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "T07 Old Standard"; src: url("../fonts/T07-OldStandard.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "T07 Old Standard"; src: url("../fonts/T07-OldStandard-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
/* type: a worn typewriter (Special Elite) */
@font-face { font-family: "T07 Typewriter"; src: url("../fonts/T07-Elite.woff2") format("woff2"); font-display: swap; }
/* caslon: Libre Caslon, display and text */
@font-face { font-family: "T07 Caslon Display"; src: url("../fonts/T07-Caslon-Display.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "T07 Caslon"; src: url("../fonts/T07-Caslon.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "T07 Caslon"; src: url("../fonts/T07-Caslon-Italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
/* ransom-note cut-outs: capitals from seven kinds of old print, seen for a split second */
@font-face { font-family: "T07 Cut 1"; src: url("../fonts/T07-Cut-Blackletter.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "T07 Cut 2"; src: url("../fonts/T07-Cut-Wood.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "T07 Cut 3"; src: url("../fonts/T07-Cut-Typewriter.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "T07 Cut 4"; src: url("../fonts/T07-Cut-Fell.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "T07 Cut 5"; src: url("../fonts/T07-Cut-Didone.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "T07 Cut 6"; src: url("../fonts/T07-Cut-Western.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "T07 Cut 7"; src: url("../fonts/T07-Cut-Pixel.woff2") format("woff2"); font-display: block; }

:root {
  /* colour */
  --bg: #f4f2ed;           /* paper                                         */
  --bg-2: #e9e6df;         /* placeholders                                  */
  --fg: #121212;           /* ink                                           */
  --fg-2: #5a5650;         /* secondary text (6.6:1 on paper)               */
  --fg-3: #8b877f;         /* large type only: inactive tabs, hints         */
  --line: rgba(18, 18, 18, 0.16);
  --line-2: rgba(18, 18, 18, 0.34);
  --sheet: #e8e4db;        /* sheets that carry process material            */
  --night: #121212;        /* the foot of every page                        */
  --night-2: #9a958c;
  --night-line: rgba(244, 242, 237, 0.2);
  --red: #cf3a20;          /* the red pen                                   */

  /* type — chosen by the data-type attribute on <html>; see the directions below.
     --mark is the T-07 mark, --display every title (always in capitals),
     --text everything read, --mono every label, number and code.             */
  --mark: "T07 Fell Mark", "T07 Fell", "T07 Marks", Georgia, serif;
  --display: "T07 Grot Cn", "T07 Grot", "Helvetica Neue", Arial, sans-serif;
  --text: "T07 Grot", "T07 Marks", "Helvetica Neue", Arial, sans-serif;
  --mono: "T07 Grot", "T07 Marks", "Helvetica Neue", Arial, sans-serif;
  --arw: "T07 Marks";       /* where arrows come from when the face has none  */
  --mark-weight: 400;
  --d-weight: 700;
  --d-track: 0em;           /* tracking for big capitals                      */
  --d-track-sm: 0em;        /* tracking for small capitals                    */
  --mark-track: -0.01em;
  --d-lead: 0.9;
  --d-scale: 0.86;          /* wide faces set their titles a little smaller   */

  --fs-label: 11px;
  --fs-text: clamp(17px, 1.24vw, 20px);
  --fs-lead: clamp(21px, 1.8vw, 31px);
  --fs-title: calc(clamp(40px, 7.6vw, 150px) * var(--d-scale));
  --fs-studio: calc(clamp(38px, 5.6vw, 104px) * var(--d-scale));

  /* space */
  --margin: clamp(16px, 2.2vw, 40px);
  --gutter: clamp(10px, 1.25vw, 20px);
  --block-gap: clamp(10px, 1.25vw, 20px);
  --maxw: 1880px;
  --head-h: clamp(54px, 5vw, 72px);

  --develop: cubic-bezier(0.2, 0.6, 0.15, 1);
  --draw: cubic-bezier(0.65, 0, 0.25, 1);
  color-scheme: light;
}

/* ── type directions ─────────────────────────────────────────────────────
   house   the IM Fell mark over TeX Gyre Heros: titles, links and buttons in bold
           condensed capitals, everything read set small, in capitals, justified —
           the way a fashion house sets its labels (default)
   gothic  UnifrakturCook fraktur mark + Bluu Next capitals + EB Garamond — the masthead
   fell    IM Fell Double Pica + IM Fell English — 17th-century letterpress, a playbill
   didone  Bodoni Moda throughout — the fashion magazine of the 1930s
   wood    Ultra wood type + Old Standard — the Victorian broadside
   type    Special Elite + Courier Prime — the typed dossier, the zine
   caslon  Libre Caslon — the 18th-century printer's standard
   The old-face directions label in Courier Prime; house labels in its grotesk.  */
[data-type="house"] {
  --mark: "T07 Fell Mark", "T07 Fell", "T07 Marks", Georgia, serif;
  --display: "T07 Grot Cn", "T07 Grot", "Helvetica Neue", Arial, sans-serif;
  --text: "T07 Grot", "T07 Marks", "Helvetica Neue", Arial, sans-serif;
  --mono: "T07 Grot", "T07 Marks", "Helvetica Neue", Arial, sans-serif;
  --d-weight: 700; --d-track: 0em; --d-track-sm: 0em; --mark-track: -0.01em; --d-lead: 0.9; --d-scale: 0.86;
  --fs-text: clamp(13px, 0.92vw, 15px);
  --fs-lead: clamp(13px, 0.98vw, 16px);
}
[data-type]:not([data-type="house"]) {
  --mono: "T07 Courier", "T07 Marks", "Courier New", monospace;
}
[data-type="fell"] {
  --mark: "T07 Fell", "T07 Marks", Georgia, serif;
  --display: "T07 Fell", "T07 Marks", Georgia, serif;
  --text: "T07 Fell English", "T07 Marks", Georgia, serif;
  --d-weight: 400; --d-track: 0.005em; --d-track-sm: 0.06em; --mark-track: -0.01em; --d-lead: 0.92; --d-scale: 1;
  --fs-text: clamp(17px, 1.2vw, 19px);
}
[data-type="gothic"] {
  --mark: "T07 Fraktur", "T07 Marks", serif;
  --display: "T07 Bluu", "T07 Marks", Georgia, serif;
  --text: "T07 Garamond", "T07 Marks", Georgia, serif;
  --d-weight: 700; --d-track: 0em; --d-track-sm: 0.06em; --mark-track: 0em; --d-lead: 0.92; --d-scale: 0.9;
  --fs-text: clamp(17px, 1.24vw, 20px);
}
[data-type="didone"] {
  --mark: "T07 Bodoni", "T07 Marks", Didot, serif;
  --display: "T07 Bodoni", "T07 Marks", Didot, serif;
  --text: "T07 Bodoni", "T07 Marks", Didot, serif;
  --d-weight: 400; --d-track: -0.01em; --d-track-sm: 0.08em; --mark-track: -0.025em; --d-lead: 0.9; --d-scale: 1;
}
[data-type="wood"] {
  --mark: "T07 Wood", "T07 Marks", Georgia, serif;
  --display: "T07 Wood", "T07 Marks", Georgia, serif;
  --text: "T07 Old Standard", "T07 Marks", Georgia, serif;
  --d-weight: 400; --d-track: 0.005em; --d-track-sm: 0.05em; --mark-track: -0.01em; --d-lead: 0.9; --d-scale: 0.74;
}
[data-type="type"] {
  --mark: "T07 Typewriter", "T07 Marks", "Courier New", monospace;
  --display: "T07 Typewriter", "T07 Marks", "Courier New", monospace;
  --text: "T07 Courier", "T07 Marks", "Courier New", monospace;
  --d-weight: 400; --d-track: -0.03em; --d-track-sm: 0.01em; --mark-track: -0.05em; --d-lead: 0.95; --d-scale: 0.8;
  --fs-text: clamp(15px, 1.06vw, 17px); --fs-lead: clamp(17px, 1.45vw, 25px);
}
[data-type="caslon"] {
  --mark: "T07 Caslon Display", "T07 Marks", Georgia, serif;
  --display: "T07 Caslon Display", "T07 Marks", Georgia, serif;
  --text: "T07 Caslon", "T07 Marks", Georgia, serif;
  --d-weight: 400; --d-track: 0.01em; --d-track-sm: 0.08em; --mark-track: -0.015em; --d-lead: 0.92; --d-scale: 1;
  --fs-text: clamp(16px, 1.14vw, 18px);
}

/* every title is set in capitals */
.wordmark, .head__mark, .p-head__title, .s-head__title, .tabs__tab, .client__name, .svc__t, .tile__name, .pager__t,
.foot__big, .menu__a, .roster__name, .facts__h, .brief__submit, .frame__t, .tag__brand {
  text-transform: uppercase; font-variant-ligatures: common-ligatures;
}
.p-head__title, .s-head__title, .pager__t, .foot__big, .client__name, .menu__a { overflow-wrap: break-word; }

/* ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 12px);
  background: var(--bg);
}
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--fg);
  font-family: var(--text); font-size: var(--fs-text); font-weight: 400; line-height: 1.45; letter-spacing: 0;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
sup { font-family: var(--mono); font-size: 11px; font-weight: 400; line-height: 0; vertical-align: top; position: relative; top: 0.35em; margin-left: 0.25em; letter-spacing: 0; font-variant-numeric: tabular-nums; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 1.5px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }

/* a fine paper tooth over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background: url("grain.png") 0 0 / 220px 220px; opacity: 0.22;
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 3%); } 40% { transform: translate(4%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

/* the monospace voice: labels, numbers, codes */
.label {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 400; line-height: 1.3;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-2);
}
.arw { display: inline-block; font-family: var(--arw), var(--text); font-weight: 400; font-style: normal; letter-spacing: 0; text-transform: none; }

.skip { position: fixed; left: var(--margin); top: 10px; z-index: 200; padding: 10px 14px; background: var(--fg); color: var(--bg); font: var(--fs-label)/1 var(--mono); text-transform: uppercase; transform: translateY(-200%); }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── rules: hairlines that draw themselves in ─────────────────────────── */
.rule { display: block; height: 1px; background: var(--line-2); }
.rule--night { background: var(--night-line); }
.draw-ready [data-draw]:not(.is-drawn) { clip-path: inset(0 100% 0 0); }
[data-draw].is-drawn { animation: draw var(--draw-t, 1.1s) var(--draw) var(--draw-d, 0ms) both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ── cut-out letters (how titles arrive) ──────────────────────────────── */
.ransom-ready [data-ransom="intro"]:not(.rn-on, .rn-done) { visibility: hidden; }
.rn-text, .rn-text *, [data-ransom] > .sr { pointer-events: none; }
.rn-word { display: inline-block; white-space: nowrap; }
.rn { display: inline-block; white-space: pre; text-align: left; transform: translateY(var(--dy, 0)) rotate(var(--rot, 0deg)); }
.rn[class*=" r"] { text-align: center; }
.rn-wait { visibility: hidden; }
.rn[class*=" r"] { font-weight: 400; font-style: normal; letter-spacing: 0; font-variant-ligatures: none; }
.rn.r1 { font-family: "T07 Cut 1", serif; }
.rn.r2 { font-family: "T07 Cut 2", serif; }
.rn.r3 { font-family: "T07 Cut 3", monospace; }
.rn.r4 { font-family: "T07 Cut 4", serif; }
.rn.r5 { font-family: "T07 Cut 5", serif; }
.rn.r6 { font-family: "T07 Cut 6", serif; }
.rn.r7 { font-family: "T07 Cut 7", serif; }
.rn.rx { background: var(--fg); color: var(--bg); box-shadow: 0 0 0 0.05em var(--fg); }
.rn.ry { color: var(--red); }
/* big titles are cut from pale newsprint, so nothing flashes black */
.wordmark .rn.rx, .p-head__title .rn.rx, .s-head__title .rn.rx, .menu__a .rn.rx { background: #e1dcd2; color: var(--fg); box-shadow: 0 0 0 0.03em #e1dcd2; }

/* ── header (inverts whatever it passes over) ─────────────────────────── */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(env(safe-area-inset-top, 0px) + clamp(14px, 1.4vw, 22px)) var(--margin) 0;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.head a, .head button { pointer-events: auto; }
.head__mark { font-family: var(--mark); font-weight: var(--mark-weight); font-size: clamp(20px, 1.6vw, 26px); line-height: 1; letter-spacing: var(--mark-track); }
.page-home .head__mark { opacity: var(--mark-on, 0); }
.head .rn.rx { background: #fff; color: #000; box-shadow: 0 0 0 0.05em #fff; }
.head .rn.ry { color: #fff; }
.nav { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 32px); }
.nav__a { font-family: var(--mono); font-size: 12px; line-height: 1; text-transform: uppercase; letter-spacing: 0.03em; padding: 7px 0; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.nav__a:hover, .nav__a[aria-current] { text-decoration-line: underline; }
.nav__a.is-cta { margin-left: clamp(4px, 0.8vw, 14px); padding: 7px 10px 6px; border: 1px solid currentColor; text-decoration: none; }
.nav__a.is-cta:hover, .nav__a.is-cta[aria-current] { background: #fff; color: #000; text-decoration: none; }
.nav__a .arw { margin-left: 2px; }
.head__menu { display: none; background: none; border: 0; padding: 6px 0; cursor: pointer; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.head__menu-close { display: none; }
.menu-open .head__menu-open { display: none; }
.menu-open .head__menu-close { display: inline; }

.menu {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 92px) var(--margin) calc(env(safe-area-inset-bottom, 0px) + 28px);
  background: var(--bg);
}
.menu__nav { display: flex; flex-direction: column; outline: none; }
.menu__a { display: flex; align-items: baseline; gap: 14px; padding: 8px 0 12px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: var(--d-weight); font-size: calc(clamp(30px, 9vw, 72px) * var(--d-scale)); line-height: 0.98; letter-spacing: var(--d-track); }
.menu__n { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--fg-2); }
.menu__a[aria-current] { color: var(--fg-3); }
.menu__foot { font: var(--fs-label)/1.4 var(--mono); text-transform: uppercase; color: var(--fg-2); }

/* ── page frame ───────────────────────────────────────────────────────── */
main { display: block; }
.hero, .work, .project, .studio { max-width: var(--maxw); margin-inline: auto; }

/* ── home: the mark ───────────────────────────────────────────────────── */
.hero {
  --hero-top: calc(var(--head-h) + clamp(8px, 2vh, 28px));
  padding: var(--hero-top) var(--margin) 0;
}
/* sized to the sheet by site.js (and kept inside the first screen); phones stack it */
.wordmark {
  display: block;
  font-family: var(--mark); font-weight: var(--mark-weight);
  font-size: calc((min(100vw, var(--maxw)) - var(--margin) * 2) / 1.75);
  line-height: 0.8; letter-spacing: var(--mark-track);
  position: relative; margin-left: var(--mark-indent, -0.04em); user-select: none; white-space: nowrap;
}
.hero__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end; margin-top: clamp(18px, 2.4vw, 40px); padding-bottom: 4px;
}
.hero__tag { grid-column: 1 / span 6; font-size: var(--fs-lead); line-height: 1.18; letter-spacing: -0.005em; }
.hero__index { grid-column: 7 / span 3; display: flex; flex-direction: column; font: var(--fs-label)/1.5 var(--mono); text-transform: uppercase; color: var(--fg-2); }
.cta-line {
  grid-column: 10 / -1; justify-self: end;
  font: var(--fs-label)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.cta-line:hover { color: var(--red); }

/* ── home: work ───────────────────────────────────────────────────────── */
.work { padding: clamp(84px, 10vw, 170px) var(--margin) 0; }
.tabs { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: clamp(16px, 2vw, 36px); row-gap: 4px; padding-bottom: clamp(12px, 1.2vw, 20px); }
.tabs__tab {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; color: var(--fg-3);
  font-family: var(--display); font-weight: var(--d-weight);
  font-size: calc(clamp(24px, 3vw, 54px) * var(--d-scale)); line-height: 1; letter-spacing: var(--d-track);
  text-transform: uppercase;
}
.tabs__tab[aria-selected="true"], .tabs__tab:hover { color: var(--fg); }
.tabs__rule { margin-bottom: clamp(22px, 2.6vw, 44px); }

.grid { display: grid; column-gap: var(--gutter); }
.grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(34px, 3.8vw, 64px); }
.grid--index { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: clamp(26px, 2.6vw, 44px); }

/* media frames */
.m { position: relative; overflow: hidden; aspect-ratio: var(--r, 1.5); background: var(--c, var(--bg-2)); max-width: 100%; }
.m__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m__img.is-flipped { transform: scaleX(-1); }
[data-zoom] { cursor: zoom-in; }

/* pictures develop like prints the first time they come into view: out of the
   paper's own tone, shadows first, colour last */
.develop-ready .m, .develop-ready .mirror { background: var(--bg); }
.develop-ready .m.m--cut { background: var(--sheet); }
.develop-ready :is(.m__img, .obj__img):not(.is-dev, .is-done) { filter: grayscale(1) contrast(0.2) brightness(3) sepia(0.12) brightness(0.965); }
:is(.m__img, .obj__img).is-dev { animation: develop 2.1s var(--develop) var(--dd, 0ms) both; }
@keyframes develop {
  0%   { filter: grayscale(1) contrast(0.2) brightness(3) sepia(0.12) brightness(0.965) blur(6px); }
  38%  { filter: grayscale(1) contrast(1.35) brightness(1.45) sepia(0.08) brightness(0.98) blur(1.5px); }
  72%  { filter: grayscale(0.35) contrast(1.1) brightness(1.06) sepia(0.03) brightness(0.99) blur(0px); }
  100% { filter: grayscale(0) contrast(1) brightness(1) sepia(0) brightness(1) blur(0px); }
}

/* tiles */
.tile__a { display: block; }
.tile__meta { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-items: baseline; padding-top: 12px; }
.tile__n { font: var(--fs-label)/1 var(--mono); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.tile__t { display: flex; align-items: baseline; gap: 0.5em; min-width: 0; font-family: var(--display); font-size: calc(clamp(15px, 1.12vw, 18px) * (0.4 + 0.6 * var(--d-scale))); font-weight: var(--d-weight); line-height: 1.15; letter-spacing: var(--d-track-sm); }
.tile__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tile__arw { font-family: var(--text); font-weight: 400; letter-spacing: 0; opacity: 0; }
.tile__client { font: var(--fs-label)/1.2 var(--mono); text-transform: uppercase; color: var(--fg-2); text-align: right; }
.tile__tags { grid-column: 2 / -1; font: var(--fs-label)/1.4 var(--mono); text-transform: uppercase; color: var(--fg-2); }
@media (hover: hover) {
  .tile__a:hover .tile__name { text-decoration-line: underline; }
  .tile__a:hover .tile__arw { opacity: 1; }
}
.grid--index .tile__client { display: none; }

/* in progress */
.soon { background: var(--bg-2); --r: 1.1; }
.soon::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line-2) 50%, transparent calc(50% + 0.5px)); }
.soon__tape { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px 8px; background: var(--bg-2); font: var(--fs-label)/1 var(--mono); text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.tile--soon .tile__name { color: var(--fg-2); }

/* clients */
.client { position: relative; display: grid; grid-template-columns: 2.6em minmax(0, 1.2fr) minmax(0, 1.3fr) 3em; align-items: baseline; column-gap: var(--gutter); padding: clamp(14px, 1.3vw, 22px) 0 clamp(12px, 1.1vw, 18px); }
.client > .rule { position: absolute; left: 0; right: 0; bottom: 0; background: var(--line); }
.client__n, .client__count { font: var(--fs-label)/1 var(--mono); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.client__count { text-align: right; }
.client__name { font-family: var(--display); font-weight: var(--d-weight); font-size: calc(clamp(24px, 2.9vw, 54px) * var(--d-scale)); line-height: 0.98; letter-spacing: var(--d-track); }
.client__work { font-size: var(--fs-text); line-height: 1.35; color: var(--fg-2); }
.client__work a { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.client__work a:hover { text-decoration-color: currentColor; }

/* services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 56px; }
.svc__h { padding-bottom: 10px; color: var(--fg); }
.svc > .rule { margin-bottom: 10px; background: var(--line); }
.svc__a { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; align-items: baseline; column-gap: 10px; padding: 0.2em 0; font-family: var(--display); font-weight: var(--d-weight); font-size: calc(clamp(19px, 1.9vw, 34px) * var(--d-scale)); line-height: 1.02; letter-spacing: var(--d-track); }
.svc__n { font: var(--fs-label)/1 var(--mono); letter-spacing: 0; color: var(--fg-2); }
.svc__go { font: var(--fs-label)/1 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg-2); opacity: 0; }
@media (hover: hover) { .svc__a:hover .svc__go { opacity: 1; } .svc__a:hover .svc__t { text-decoration: underline; text-decoration-thickness: 0.04em; text-underline-offset: 0.12em; } }

/* ── project ──────────────────────────────────────────────────────────── */
.project { padding: calc(var(--head-h) + clamp(40px, 5.6vw, 100px)) var(--margin) 0; }
.p-head__meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 2.4em; row-gap: 4px; margin-bottom: clamp(10px, 1.2vw, 20px); font: var(--fs-label)/1 var(--mono); text-transform: uppercase; color: var(--fg-2); }

/* back / next — beside the sheet number at the top, and again at the end of the page */
.p-steps { display: flex; align-items: baseline; gap: clamp(16px, 1.8vw, 30px); margin-left: auto; }
.p-step, .pager__k {
  display: inline-flex; align-items: baseline; gap: 0.45em; padding: 6px 0;
  font: 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; color: var(--fg);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.p-step:hover { text-decoration-line: underline; }
.pager { margin-top: clamp(90px, 12vw, 200px); }
.pager__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: 10px; }
.pager__a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.pager__a--next { align-items: flex-end; text-align: right; }
.pager__n { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.pager__client { margin-top: clamp(8px, 1.4vw, 22px); font: var(--fs-label)/1 var(--mono); text-transform: uppercase; color: var(--fg-2); }
.pager__t {
  display: block; max-width: 100%;
  font-family: var(--display); font-weight: var(--d-weight); font-size: calc(clamp(30px, 4.6vw, 88px) * var(--d-scale));
  line-height: var(--d-lead); letter-spacing: var(--d-track); padding-bottom: 0.06em;
  text-decoration-thickness: 0.03em; text-underline-offset: 0.08em;
}
.pager__a:hover .pager__t, .pager__a:hover .pager__k { text-decoration-line: underline; }
.p-head__title {
  font-family: var(--display); font-weight: var(--d-weight);
  font-size: var(--fs-title); line-height: var(--d-lead); letter-spacing: var(--d-track); margin-left: -0.04em; padding-bottom: 0.06em;
}
.project > .rule, .studio > .rule { margin-top: clamp(14px, 1.6vw, 26px); }
.p-hero { margin-top: clamp(14px, 1.6vw, 24px); }
.p-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; margin: clamp(26px, 3vw, 52px) 0 clamp(70px, 8vw, 150px); align-items: start; }
.p-intro__text { grid-column: 6 / span 7; display: grid; gap: 0.8em; }
.p-intro__text p { font-size: var(--fs-lead); line-height: 1.32; letter-spacing: -0.005em; text-wrap: pretty; }
.p-blocks { display: flex; flex-direction: column; gap: var(--block-gap); }

.b--row { display: flex; gap: var(--block-gap); align-items: flex-start; }
.b--row > .m { flex: var(--r) 1 0; min-width: 0; }

/* process material lives on sheets */
.m--cut { background: var(--sheet); }
.m--cut .m__img { object-fit: contain; padding: 7% 9%; }
.b--board .board { background: var(--sheet); padding: clamp(14px, 2.6vw, 48px); }
.b--board .board .m__img { position: static; width: 100%; height: auto; }
.b--board-wide .board { display: grid; place-items: center; aspect-ratio: 2.25; padding: 0; }
.b--board-wide .board .m__img { width: auto; height: 100%; max-height: 100%; }
.b--objects, .b--notes { display: flex; justify-content: center; align-items: flex-start; gap: clamp(28px, 6vw, 120px); padding: clamp(36px, 6vw, 110px) clamp(16px, 4vw, 80px); background: var(--sheet); }
.b--objects .obj { flex: 0 1 auto; width: clamp(140px, calc(var(--r) * 64vh), 34%); }
.b--notes { justify-content: space-between; }
.b--notes .obj { width: min(42%, 520px); }
.obj__img { width: 100%; height: auto; }

.b--text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; align-items: center; padding: clamp(48px, 7vw, 130px) 0; }
.b--text__copy { grid-column: 1 / span 5; display: grid; gap: 1em; }
.b--text__copy p:not(.label) { font-size: var(--fs-text); line-height: 1.45; max-width: 52ch; }
.b--text__fig { grid-column: 7 / -1; }

/* film */
.film { position: relative; overflow: hidden; background: var(--bg-2); color: #fff; }
.film__m { --r: 1.7778; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; transform: scale(1.16); opacity: 0; transition: opacity 1.4s var(--develop); }
.film.is-playing iframe { opacity: 1; }
.film__k, .film__out { position: absolute; bottom: clamp(12px, 1.6vw, 26px); z-index: 2; color: #fff; font: var(--fs-label)/1 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; }
.film__k { left: clamp(12px, 1.6vw, 26px); display: flex; align-items: center; gap: 0.7em; }
.film__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: rec 1.6s steps(2) infinite; }
@keyframes rec { 50% { opacity: 0; } }
.film__out { right: clamp(12px, 1.6vw, 26px); }
.film__out:hover { text-decoration: underline; text-underline-offset: 3px; }
.vctl { position: absolute; left: clamp(12px, 1.6vw, 26px); bottom: clamp(12px, 1.6vw, 26px); z-index: 2; background: none; border: 0; padding: 6px 0; cursor: pointer; color: #fff; mix-blend-mode: difference; font: var(--fs-label)/1 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; }

/* mirror */
.mirror { display: grid; grid-template-columns: 1fr 1fr; background: var(--c); aspect-ratio: 2.3; overflow: hidden; }
.mirror__half { position: relative; overflow: hidden; }
.mirror__half .m__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* spreads */
.b--spreads { padding-top: clamp(40px, 5vw, 88px); }
.spreads__bar { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; column-gap: 24px; padding-bottom: 14px; }
.spreads__count { font: var(--fs-label)/1 var(--mono); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.spreads__btns { display: flex; gap: 4px; }
.spreads__btn { width: 40px; height: 32px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-family: var(--text); font-size: 16px; line-height: 1; color: var(--fg); }
.spreads__btn:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.spreads__btn:disabled { opacity: 0.3; cursor: default; }
.spreads__track { display: flex; gap: clamp(12px, 1.6vw, 28px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); scroll-padding-inline: var(--margin); padding-bottom: 6px; }
.spreads__track::-webkit-scrollbar { display: none; }
.spreads__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.spread { position: relative; flex: 0 0 auto; scroll-snap-align: start; height: clamp(240px, 40vw, 660px); aspect-ratio: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.spread .m__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spread__n { position: absolute; left: 12px; bottom: 10px; font: var(--fs-label)/1 var(--mono); color: #8a857c; }
.spread--blank { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 14px 12px; background: linear-gradient(90deg, transparent calc(50% - 30px), rgba(0, 0, 0, 0.06) 50%, transparent calc(50% + 30px)), var(--sheet); }
.spread--blank::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(0, 0, 0, 0.1); }
.spread__folio { font: var(--fs-label)/1 var(--mono); color: #8a857c; }

/* ── studio pages ─────────────────────────────────────────────────────── */
.studio { padding: calc(var(--head-h) + clamp(30px, 4.2vw, 78px)) var(--margin) 0; }
.s-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.s-head__eyebrow { grid-column: 1 / -1; margin-bottom: clamp(10px, 1.2vw, 18px); font: var(--fs-label)/1 var(--mono); text-transform: uppercase; color: var(--fg-2); }
.s-head__title { grid-column: 1 / span 9; font-family: var(--display); font-weight: var(--d-weight); font-size: var(--fs-studio); line-height: var(--d-lead); letter-spacing: var(--d-track); margin-left: -0.03em; padding-bottom: 0.06em; }
.s-head__aside { grid-column: 10 / -1; padding-bottom: 0.6em; font-size: 14px; line-height: 1.4; color: var(--fg-2); max-width: 34ch; }

/* about */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: start; margin-top: clamp(22px, 2.6vw, 42px); }
.statement { grid-column: 1 / span 6; max-width: 26ch; font-size: clamp(24px, 2.3vw, 40px); line-height: 1.16; letter-spacing: -0.008em; text-wrap: pretty; }
.facts__col { display: flex; flex-direction: column; gap: 8px; }
.facts__col--disc { grid-column: 7 / span 3; }
.facts__col--more { grid-column: 10 / span 3; }
.facts__group + .facts__group { margin-top: 14px; }
.facts__h { font-family: var(--display); font-weight: var(--d-weight); font-size: calc(15px * (0.4 + 0.6 * var(--d-scale))); letter-spacing: var(--d-track-sm); margin-bottom: 4px; }
.facts__list { font-size: 14px; line-height: 1.45; color: var(--fg-2); }
.facts__list a:hover, .facts__links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.facts__list--clients { color: var(--fg); }
.facts__links { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.facts__label-gap { margin-top: 22px; }

/* people: two columns, read down */
.roster { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 7), auto); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 100px); margin-top: clamp(20px, 2.4vw, 40px); }
.roster__row { position: relative; display: grid; grid-template-columns: 2.6em auto minmax(1.5em, 1fr) auto; align-items: baseline; column-gap: 0.6em; padding: 0.38em 0; }
.roster__row > .rule { position: absolute; left: 0; right: 0; bottom: 0; background: var(--line); }
.roster__n { font: var(--fs-label)/1 var(--mono); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.roster__name { font-family: var(--display); font-weight: var(--d-weight); font-size: calc(clamp(18px, 1.75vw, 30px) * var(--d-scale)); line-height: 1.1; letter-spacing: var(--d-track); white-space: nowrap; }
.roster__dots { align-self: center; height: 1px; background: transparent; }
.roster__role { font: var(--fs-label)/1 var(--mono); text-transform: uppercase; color: var(--fg-2); }

/* ── start a project ──────────────────────────────────────────────────── */
.start__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; margin-top: clamp(30px, 3.6vw, 64px); align-items: start; }
.brief { grid-column: 1 / span 7; display: flex; flex-direction: column; }
.field { display: grid; gap: 10px; padding: 18px 0 22px; border-top: 1px solid var(--line-2); border-left: 0; border-right: 0; border-bottom: 0; margin: 0; min-width: 0; }
.field .field { border: 0; padding: 0; }
.field__l { display: flex; align-items: baseline; gap: 14px; padding: 0; font: var(--fs-label)/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--fg); }
.field--set > legend { float: left; width: 100%; }
.field__body { clear: both; padding-top: 10px; }
.field__n { color: var(--fg-2); min-width: 2em; }
.field__hint { margin-left: auto; color: var(--fg-2); }
.field__in {
  width: 100%; border: 0; border-radius: 0; background: transparent; padding: 4px 0 2px; margin: 0; color: var(--fg);
  font-family: var(--text); font-size: clamp(22px, 2vw, 34px); font-weight: 400; line-height: 1.2; letter-spacing: -0.005em;
  outline: none; resize: none;
}
.field__in--area { min-height: 1.3em; field-sizing: content; }
.field__in::placeholder { color: var(--fg-3); opacity: 1; }
.field:focus-within > .field__l, .field--set:focus-within .field__l { color: var(--red); }
.field.is-missing { border-top-color: var(--red); }
.field.is-missing .field__l { color: var(--red); }

/* choices are words that get circled in red pen */
.chips__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 18px; margin-top: 6px; }
.chips__h { margin-bottom: 6px; font: var(--fs-label)/1 var(--mono); text-transform: uppercase; color: var(--fg-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.chips__group .chips { flex-direction: column; gap: 0; }
.chips--one { margin-top: 6px; }
.chip { position: relative; }
.chip__in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip__l { position: relative; display: inline-flex; align-items: baseline; gap: 0.5em; padding: 0.18em 0.3em; margin-left: -0.3em; cursor: pointer; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.15; letter-spacing: -0.012em; -webkit-tap-highlight-color: transparent; }
.chip__n { font: var(--fs-label)/1 var(--mono); color: var(--fg-2); letter-spacing: 0; }
.chips--one .chip__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line); }
.chip__l:hover .chip__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: currentColor; }
.chip__in:checked + .chip__l .chip__n { color: var(--red); }
.chip__in:focus-visible + .chip__l { outline: 1.5px solid var(--red); outline-offset: 2px; }
.need__ring { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.need__ring path { fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 0.42s cubic-bezier(0.5, 0, 0.2, 1); }
.chip__in:not(:checked) + .chip__l .need__ring { opacity: 0; transition: opacity 0s 0.45s; }

.brief__send { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.brief__submit {
  display: inline-flex; align-items: baseline; gap: 0.3em; cursor: pointer;
  background: var(--fg); color: var(--bg); border: 0; padding: 0.5em 0.8em 0.55em;
  font-family: var(--display); font-weight: var(--d-weight); font-size: calc(clamp(19px, 1.7vw, 28px) * (0.4 + 0.6 * var(--d-scale))); line-height: 1; letter-spacing: var(--d-track-sm);
}
.brief__submit:hover { background: var(--red); }
.brief__error { min-height: 1.4em; font-size: 14px; color: var(--red); }

/* the brief, as a garment tag — it fills in live, and is stamped when sent */
.tag { grid-column: 9 / -1; position: sticky; top: calc(var(--head-h) + 24px); }
.tag__card { position: relative; background: #e8dfcb; color: #121212; padding: clamp(24px, 2.4vw, 34px) clamp(20px, 2.4vw, 32px) clamp(22px, 2.2vw, 30px) clamp(52px, 5vw, 72px); clip-path: polygon(26px 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px), 0 26px); transform: rotate(-1deg); }
.tag__card:focus { outline: none; }
.tag__hole { position: absolute; left: clamp(18px, 2vw, 26px); top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: var(--bg); }
.tag__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; }
.tag__brand { font-family: var(--mark); font-weight: var(--mark-weight); font-size: 26px; line-height: 1; letter-spacing: var(--mark-track); }
.tag__no { font: var(--fs-label)/1 var(--mono); text-transform: uppercase; color: #5d5850; font-variant-numeric: tabular-nums; }
.tag__seam { height: 1px; background: rgba(18, 18, 18, 0.35); margin-bottom: 14px; }
.tag__rows { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); column-gap: 12px; row-gap: 9px; }
.tag__rows dt { font: var(--fs-label)/1.3 var(--mono); text-transform: uppercase; color: #5d5850; padding-top: 0.25em; }
.tag__rows dd { margin: 0; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.tag__rows dd.is-empty { color: rgba(18, 18, 18, 0.35); }
.tag__rows .ring-word { display: inline-block; padding: 0 0.3em; margin: 0.06em 0.1em 0.06em 0; border: 1.4px solid var(--red); border-radius: 50%; }
.tag__stamp {
  position: absolute; right: clamp(16px, 2vw, 28px); top: 40%; padding: 0.25em 0.5em 0.2em; border: 2px solid var(--red); color: var(--red);
  font: 18px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; transform: rotate(-9deg); opacity: 0; pointer-events: none; mix-blend-mode: multiply;
}
.tag.is-issued .tag__stamp { animation: stamp 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 0.15s both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } to { opacity: 0.9; transform: rotate(-9deg) scale(1); } }
.tag__perf { height: 0; border-top: 1px dotted rgba(18, 18, 18, 0.45); margin: 20px -32px 16px -72px; }
.tag__actions { display: grid; gap: 12px; }
.tag__note { font-size: 13px; line-height: 1.4; color: #3e3a34; max-width: 40ch; }
.tag__btns { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.btn { display: inline-flex; align-items: baseline; gap: 0.4em; background: none; border: 0; border-bottom: 1px solid currentColor; padding: 3px 0 4px; cursor: pointer; font: var(--fs-label)/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: #121212; }
.btn:hover { color: var(--red); }
.btn--quiet { color: #5d5850; border-bottom-color: transparent; }
.tag__addr { font: var(--fs-label)/1.4 var(--mono); text-transform: uppercase; color: #5d5850; }
.tag__email { display: block; text-transform: none; color: #121212; user-select: all; }

/* ── the foot: black, with every project as a frame on a contact sheet ── */
.foot {
  position: relative; overflow: hidden;
  margin-top: clamp(110px, 13vw, 230px); padding: clamp(52px, 6vw, 100px) var(--margin) calc(env(safe-area-inset-bottom, 0px) + clamp(26px, 3vw, 44px));
  background: var(--night); color: var(--bg);
  /* at least a screen tall: scrolled to the end of any page, the foot fills the window
     and the header (which inverts whatever it passes over) turns over on every page */
  min-height: 100vh; min-height: 100lvh;
  display: flex; flex-direction: column; justify-content: space-between;
}
.foot > * { width: 100%; max-width: calc(var(--maxw) - var(--margin) * 2); margin-inline: auto; }
.foot .label { color: var(--night-2); }
.foot a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot a:hover { text-decoration-line: underline; }
.foot__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; padding-bottom: clamp(40px, 5vw, 84px); }
/* set exactly like the title of the page it closes — same size, same weight. White on
   black would render thinner than black on paper, so it keeps the system's stem darkening */
.foot__big { font-family: var(--display); font-weight: var(--d-weight); font-size: var(--fs-title); line-height: var(--d-lead); letter-spacing: var(--d-track); margin-left: -0.04em; text-decoration-thickness: 0.03em !important; text-underline-offset: 0.1em !important; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
.page-studio .foot__big { font-size: var(--fs-studio); margin-left: -0.03em; }
.foot__big .arw { margin-left: 0.15em; font-size: 0.6em; vertical-align: 0.25em; font-weight: 400; }
.foot__note { font: var(--fs-label)/1.5 var(--mono); text-transform: uppercase; color: var(--night-2); text-align: right; }
.foot__note a { color: var(--bg); }

.sheet { border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); padding: 12px 0 16px; }
.sheet__edge { display: flex; gap: 2.4em; font: 10px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--night-2); margin-bottom: 14px; }
.sheet__edge span:last-child { margin-left: auto; }
.sheet__strip { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.frame__a { display: flex; flex-direction: column; gap: 7px; }
.frame__edge { font: 10px/1 var(--mono); letter-spacing: 0.04em; color: var(--night-2); }
.frame__m { position: relative; display: block; aspect-ratio: 1.1; min-height: 0; overflow: visible; background: #262522; }
.frame__m img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.92); transition: filter 0.5s var(--develop); }
.frame__t { display: flex; gap: 0.6em; align-items: baseline; font-family: var(--display); font-weight: var(--d-weight); font-size: calc(12px * (0.45 + 0.55 * var(--d-scale))); line-height: 1.25; letter-spacing: var(--d-track-sm); color: var(--bg); }
.frame__n { font: 10px/1 var(--mono); color: var(--night-2); }
.frame__a:hover .frame__m img, .frame.is-current .frame__m img { filter: none; }
.frame__a:hover .frame__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* the select, circled in red grease pencil */
.frame__ring { position: absolute; left: -10px; top: -10px; width: calc(100% + 20px); height: calc(100% + 20px); overflow: visible; pointer-events: none; }
.frame__ring path { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.92; }
.draw-ready .frame__ring path:not(.is-drawn) { stroke-dashoffset: var(--len); }
.frame__ring path.is-drawn { transition: stroke-dashoffset 0.9s cubic-bezier(0.5, 0, 0.2, 1) 0.2s; stroke-dashoffset: 0; }

.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; padding-top: clamp(28px, 3vw, 48px); }
.foot__col { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; }
.foot__col--colophon { grid-column: 7 / span 3; }
.foot__col--meta { grid-column: 11 / span 2; }
.foot__list { display: grid; gap: 3px; font-size: 14px; line-height: 1.35; }
.foot__what { font-size: 14px; line-height: 1.4; max-width: 38ch; color: var(--bg); }
.foot__meta { display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.35; color: var(--night-2); }
.foot__top { color: var(--bg); }
/* the foot reaches the top of the window at the end of a page, so it always clears the header */
.page-start .foot, .page-404 .foot { padding-top: calc(var(--head-h) + 24px); }

/* ── lightbox ─────────────────────────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--bg); }
.lb__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: calc(env(safe-area-inset-top, 0px) + clamp(14px, 1.4vw, 22px)) var(--margin) 12px; }
.lb__count, .lb__close { font: 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.lb__count { color: var(--fg-2); }
.lb__close { background: none; border: 0; cursor: pointer; padding: 4px 0; color: var(--fg); }
.lb__close:hover { text-decoration: underline; text-underline-offset: 4px; }
.lb__stage { position: relative; min-height: 0; }
.lb__img { position: absolute; top: 8px; bottom: 8px; left: var(--margin); right: var(--margin); width: calc(100% - var(--margin) * 2); height: calc(100% - 16px); object-fit: contain; animation: develop 1.1s var(--develop) both; }
.lb__nav { position: absolute; top: 0; bottom: 0; width: 50%; border: 0; background: transparent; padding: 0; }
.lb__nav--prev { left: 0; cursor: w-resize; }
.lb__nav--next { right: 0; cursor: e-resize; }
.lb__cap { padding: 12px var(--margin) calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 1.8vw, 26px)); font-size: 14px; color: var(--fg-2); max-width: 90ch; line-height: 1.45; }
.lb-open { overflow: hidden; }
.lb.is-closing { animation: burn 0.28s cubic-bezier(0.6, 0, 1, 1) both; }

/* ── page changes: the page over-exposes like a burnt print, the next one
      develops out of the paper (Chrome, Edge, Safari 18+) ──────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: burn 0.34s cubic-bezier(0.6, 0, 1, 1) both; }
::view-transition-new(root) { animation: develop-page 0.9s var(--develop) both; }
@keyframes burn { to { filter: contrast(0.5) brightness(2.2) blur(3px); opacity: 0; } }
@keyframes develop-page { from { filter: contrast(0.2) brightness(3) sepia(0.12) brightness(0.965) blur(4px); } }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.hero--404 { padding-bottom: clamp(20px, 4vw, 60px); }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid--index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__index { display: none; }
  .hero__tag { grid-column: 1 / span 8; }
  .cta-line { grid-column: 9 / -1; }
  .statement { grid-column: 1 / -1; max-width: 30ch; }
  .facts__col--disc { grid-column: 1 / span 6; }
  .facts__col--more { grid-column: 7 / span 6; }
  .brief { grid-column: 1 / -1; }
  .tag { grid-column: 1 / -1; position: static; max-width: 560px; }
  .chips__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet__strip { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 18px; }
  .foot__col { grid-column: span 3; }
  .foot__col--colophon { grid-column: span 6; }
  .foot__col--meta { grid-column: span 12; }
  .p-intro__text { grid-column: 6 / -1; }
}
@media (max-width: 760px) {
  :root { --head-h: 54px; --fs-lead: 21px; --fs-title: calc(clamp(30px, 10.5vw, 64px) * var(--d-scale)); --fs-studio: calc(clamp(30px, 9.5vw, 60px) * var(--d-scale)); }
  .nav { display: none; }
  .head__menu { display: block; }
  .hero { padding-top: calc(var(--head-h) + 22px); }
  .hero__tag { grid-column: 1 / -1; }
  .cta-line { grid-column: 1 / -1; justify-self: start; margin-top: 20px; }
  .work { padding-top: 76px; }
  .grid--featured { grid-template-columns: 1fr; row-gap: 36px; }
  .grid--index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile__client { display: none; }
  .client { grid-template-columns: 2em minmax(0, 1fr) auto; row-gap: 6px; }
  .client__work { grid-column: 2 / -1; grid-row: 2; }
  .client__count { grid-column: 3; grid-row: 1; }
  .services { grid-template-columns: 1fr; }
  .svc__go { display: none; }
  .p-head__meta { justify-content: space-between; }
  .p-intro__text { grid-column: 1 / -1; grid-row: 1; }
  .b--row { flex-wrap: wrap; }
  .b--row[data-n="3"] { flex-wrap: nowrap; }
  .b--row[data-n="4"] > .m { flex: 1 1 calc(50% - var(--block-gap)); }
  .b--row[data-n="5"] > .m { flex: 1 1 calc(33.333% - var(--block-gap)); }
  .b--objects { gap: 20px; }
  .b--objects .obj { width: 44%; }
  .b--notes { gap: 16px; }
  .b--notes .obj { width: 48%; }
  .b--text { grid-template-columns: 1fr; padding: 56px 0; }
  .b--text__copy, .b--text__fig { grid-column: 1; }
  .mirror { aspect-ratio: 1.3; }
  .film__out { display: none; }
  .pager__t { font-size: calc(clamp(22px, 7.4vw, 44px) * var(--d-scale)); }
  .s-head__title { grid-column: 1 / -1; }
  .s-head__aside { grid-column: 1 / -1; padding: 14px 0 0; }
  .statement { max-width: none; }
  .facts__col--disc, .facts__col--more { grid-column: 1 / -1; }
  .roster { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); }
  .roster__name { white-space: normal; }
  .chips__groups { grid-template-columns: 1fr; }
  .foot__cta { flex-direction: column; align-items: flex-start; }
  .foot__note { text-align: left; }
  .sheet__strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); scroll-padding-inline: var(--margin); }
  .sheet__strip::-webkit-scrollbar { display: none; }
  .frame { flex: 0 0 38vw; scroll-snap-align: start; }
  .sheet__edge span:nth-child(2) { display: none; }
  .foot__col { grid-column: span 6; }
  .foot__col--colophon, .foot__col--meta { grid-column: 1 / -1; }
}
@media (max-aspect-ratio: 4/5) {
  .wordmark:not(.wordmark--foot) { white-space: normal; }
}
@media (min-width: 761px) { .menu { display: none !important; } }

/* ── reduced motion: everything arrives at rest ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .develop-ready :is(.m__img, .obj__img):not(.is-dev, .is-done) { filter: none; }
  .draw-ready [data-draw]:not(.is-drawn) { clip-path: none; }
  @view-transition { navigation: none; }
}

/* ── house: everything but the mark in a bold condensed grotesk ──────────
   Titles, links and buttons in bold condensed capitals; everything read in
   small capitals, justified, the way a fashion house sets its labels.        */
[data-type="house"] body { text-transform: uppercase; letter-spacing: 0.012em; line-height: 1.34; }
[data-type="house"] .label { letter-spacing: 0.02em; }
/* this grotesk has its own arrows, drawn to its stems: take them from whatever face surrounds them */
[data-type="house"] :is(.arw, .tile__arw) { font-family: inherit; font-weight: inherit; }
[data-type="house"] .foot__big .arw { font-size: 1em; vertical-align: 0; margin-left: 0.18em; }
/* links and buttons */
[data-type="house"] :is(.nav__a, .head__menu, .p-step, .pager__k, .cta-line, .lb__close, .btn, .vctl, .film__out) {
  font-family: var(--display); font-weight: 700; letter-spacing: 0;
}
[data-type="house"] :is(.nav__a, .head__menu, .p-step, .pager__k, .cta-line, .lb__close) { font-size: 15px; }
[data-type="house"] .nav__a.is-cta { padding: 6px 9px 5px; }
[data-type="house"] .cta-line { text-underline-offset: 3px; }
[data-type="house"] .btn { font-size: 13px; }
/* what is read */
[data-type="house"] .p-intro__text { grid-column: 9 / span 4; }
[data-type="house"] :is(.p-intro__text p, .b--text__copy p:not(.label)) {
  font-size: var(--fs-lead); line-height: 1.34; letter-spacing: 0.012em; text-align: justify; hyphens: auto;
}
[data-type="house"] .hero__tag { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 1.8vw, 32px); line-height: 0.94; letter-spacing: 0; }
[data-type="house"] .statement { max-width: 15em; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 58px); line-height: 0.92; letter-spacing: 0; }
[data-type="house"] :is(.facts__list, .facts__links, .foot__list, .foot__what, .foot__meta, .lb__cap, .client__work, .tag__rows dd) { font-size: 13px; }
[data-type="house"] .tag__note { font-size: 12px; }
[data-type="house"] .chip__l { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.4vw, 23px); letter-spacing: 0; }
[data-type="house"] .field__in { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
@media (max-width: 1100px) {
  [data-type="house"] .p-intro__text { grid-column: 7 / -1; }
}
@media (max-width: 760px) {
  [data-type="house"] { --fs-lead: 14px; --fs-text: 13px; }
  [data-type="house"] .p-intro__text { grid-column: 1 / -1; }
  [data-type="house"] :is(.nav__a, .head__menu, .p-step, .pager__k, .cta-line) { font-size: 14px; }
}
[data-type="house"] .head__mark { font-size: clamp(24px, 2.1vw, 34px); }
/* on the landing, About and People pages the closing line (START A PROJECT, CREATE WITH US)
   is set in the regular weight; project pages keep the bold of their titles */
[data-type="house"] :is(.page-home, .page-about, .page-people) .foot__big { font-weight: 400; }
