/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  /* The header is position:sticky, so in-page anchors need its current measured
     height. main.js publishes the live value before a scroll starts; without
     scripting this falls back to the compact-height behaviour. */
  scroll-padding-top: calc(var(--head-h-live, var(--head-h-stuck)) + var(--sp-4));
}
body {
  margin: 0; background: var(--s-page); color: var(--t-primary);
  font: 400 var(--t-body)/var(--lh-body) var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  margin: 0; font-family: var(--f-display); font-weight: 600;
  line-height: var(--lh-head); letter-spacing: var(--ls-tight);
}
p { margin: 0; }
/* No underlines anywhere (Ed, 2026-09-16). Links are told apart by weight,
   colour, a leading arrow or "+" mark, or their position, and fade on hover;
   keyboard focus keeps the :focus-visible outline below. */
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 1px; }
.u-dark { --c-focus: var(--c-taupe); }
.hero,
.pin,
.skip,
.site-head[data-overlay="true"]:not([data-stuck="true"]) { --c-focus: #fff; }
.hero :focus-visible,
.pin :focus-visible,
.skip:focus-visible,
.site-head[data-overlay="true"]:not([data-stuck="true"]) :focus-visible {
  box-shadow: 0 0 0 3px rgba(16,17,20,.9);
}
.hero .hero__preview:focus-visible { --c-focus: var(--c-accent); box-shadow: 0 0 0 3px #fff; }
.site-head .nav[data-open="true"] :focus-visible { --c-focus: var(--c-accent); box-shadow: none; }

.skip {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  background: var(--c-accent); color: #fff; padding: var(--sp-3) var(--sp-5);
  font: 600 var(--t-small) var(--f-body); text-decoration: none;
  transition: top var(--dur-q) var(--ease);
}
.skip:focus { top: var(--sp-4); }

/* ============ layout ============ */
.wrap { width: 100%; max-width: var(--w-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 1.8rem + 4vw, 5.5rem); }

/* ============ typographic utilities ============ */
.meta {
  font: 500 var(--t-meta)/1.4 var(--f-label);
  letter-spacing: var(--ls-meta); text-transform: uppercase; color: var(--t-muted);
}
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--t-secondary); max-width: var(--measure); }
.prose { max-width: var(--w-text); }
.prose p + p { margin-top: var(--sp-4); }

/* Section heading: hairline rule with a mono index above the title */
.sec-head { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-8); }
.sec-head__top {
  display: flex; align-items: baseline; gap: var(--sp-4);
  padding-bottom: var(--sp-3); border-bottom: 1px solid var(--rule);
}
.sec-head__top .meta { flex: 1 1 auto; }
.sec-head h2 { font-size: var(--t-h2); max-width: 22ch; font-weight: 500; }

/* Placeholder marker for content awaiting confirmation from Patrick.
   Invisible by default; ?review (or .review-mode) reveals every one. */
.tbc { font-style: normal; }
.review-mode .tbc {
  background: #FFF3C4; box-shadow: 0 0 0 2px #FFF3C4; color: #6B5200;
  border-bottom: 1px dashed #B08900;
}
/* Notes written for the reviewer, not the visitor. */
.review-only { display: none; }
.review-mode .review-only { display: block; }

.review-mode [data-tbc]::after {
  content: attr(data-tbc); display: inline-block; margin-left: .5em; vertical-align: middle;
  font: 500 10px/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase;
  background: #B08900; color: #fff; padding: 3px 5px; border-radius: 2px;
}

/* ============ buttons + links ============ */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font: 600 var(--t-small)/1 var(--f-body); text-decoration: none;
  padding: 1.05rem var(--sp-6); border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur-q) var(--ease), color var(--dur-q) var(--ease),
              border-color var(--dur-q) var(--ease);
}
.btn__arrow { transition: transform var(--dur-q) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-black-ui); }
.btn--ghost { border-color: var(--rule-strong); color: var(--t-primary); }
.btn--ghost:hover { border-color: var(--c-accent); background: rgba(26, 28, 32, .04); }
.u-dark .btn--ghost { border-color: var(--rule-on-dark); color: var(--t-on-dark); }
.u-dark .btn--ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .07); }

.link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font: 600 var(--t-small)/1 var(--f-body); color: var(--c-accent);
  text-decoration: none;
  transition: opacity var(--dur) var(--ease);
}
.link:hover { opacity: .5; }
.u-dark .link { color: var(--c-taupe); }

/* ============ header ============ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease), opacity .55s var(--ease);
}
.site-head[data-stuck="true"] { border-bottom-color: var(--rule); }
.site-head__inner {
  display: flex; align-items: center; gap: var(--sp-6);
  min-height: var(--head-h);
  transition: min-height var(--dur) var(--ease);
}
.site-head[data-stuck="true"] .site-head__inner { min-height: var(--head-h-stuck); }

/* Brand: both marks are stacked and cross-faded, so the header can sit over
   photography at rest and over paper once scrolled. */
.brand { position: relative; display: block; flex: 0 0 auto; }
.brand img {
  height: 64px; width: auto;
  transition: height var(--dur) var(--ease), opacity var(--dur-q) var(--ease);
}
.site-head[data-stuck="true"] .brand img { height: 48px; }
.brand__light { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

/* Overlay mode: transparent over the hero until the page scrolls. */
.site-head[data-overlay="true"]:not([data-stuck="true"]) {
  background: transparent; backdrop-filter: none; border-bottom-color: transparent;
}
.site-head[data-overlay="true"]:not([data-stuck="true"]) .brand__dark { opacity: 0; }
.site-head[data-overlay="true"]:not([data-stuck="true"]) .brand__light { opacity: 1; }
.site-head[data-overlay="true"]:not([data-stuck="true"]) .nav a { color: #fff; }
.site-head[data-overlay="true"]:not([data-stuck="true"]) .nav a::after { background: #fff; }
.site-head[data-overlay="true"]:not([data-stuck="true"]) .nav-toggle span { background: #fff; }
.site-head[data-overlay="true"]:not([data-stuck="true"]) .btn--primary {
  background: rgba(255, 255, 255, .12); color: #fff;
  border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px);
}
.site-head[data-overlay="true"]:not([data-stuck="true"]) .btn--primary:hover {
  background: #fff; color: var(--c-accent); border-color: #fff;
}

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(1.25rem, .5rem + 1.6vw, 2.5rem); }
.nav a {
  position: relative; display: inline-block; padding: var(--sp-2) 0;
  font: 500 var(--t-small)/1 var(--f-body); text-decoration: none; color: var(--t-primary);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-q) var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-cta { flex: 0 0 auto; }
.nav-toggle { display: none; }
@media (min-width: 900px) and (max-width: 1039px) {
  .head-cta { display: none; }
}

/* ============ hero ============
   Loads as a small panel that expands to full bleed, then runs as a slider.
   The expanding panel starts from the preview card's own rect, measured at
   runtime, so the growth lands exactly where the card sits at any viewport. */
.hero {
  position: relative; isolation: isolate;
  margin-top: calc(-1 * var(--head-h));
  min-height: min(96vh, 940px);
  display: flex; flex-direction: column;
  background: var(--s-page);   /* only the foot shows; the card straddles onto it */
  overflow: visible;
}

/* Stage holds the imagery; it stops short of the bottom so the preview card
   can straddle the edge the way the reference does. */
.hero__stage { position: absolute; inset: 0 0 var(--hero-foot) 0; z-index: 0; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0; margin: 0;
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
}
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 58%;
  transform: scale(1.06); transition: transform 7s linear;
}
.hero__slide[data-state="active"] img { transform: scale(1); }

/* Inactive slides sit beneath and are clipped away entirely. */
.hero__slide[data-state="idle"] { clip-path: inset(0 0 0 100%); }
.hero__slide[data-state="active"] { z-index: 2; }
.hero__slide[data-state="leaving"] { z-index: 1; }

/* The page-load growth: first slide begins at the preview card's rect. */
.hero[data-intro="pending"] .hero__slide[data-state="active"] { clip-path: var(--hero-seed, inset(42% 12% 6% 58%)); }
.hero[data-intro="running"] .hero__slide[data-state="active"] {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.15s cubic-bezier(.66,0,.2,1);
}
.hero[data-intro="done"] .hero__slide { transition: clip-path .95s cubic-bezier(.66,0,.2,1); }

.hero__scrim {
  position: absolute; inset: 0 0 var(--hero-foot) 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(16,17,20,.5) 0%, rgba(16,17,20,.08) 24%, rgba(16,17,20,0) 42%),
    linear-gradient(to top,    rgba(16,17,20,.62) 0%, rgba(16,17,20,.2) 30%, rgba(16,17,20,0) 58%),
    linear-gradient(to right,  rgba(16,17,20,.62) 0%, rgba(16,17,20,.42) 36%, rgba(16,17,20,.06) 70%, rgba(16,17,20,0) 88%);
}

/* Copy sits bottom-left, above the stage */
.hero__inner {
  position: relative; z-index: 5; width: 100%; color: #fff;
  margin-top: auto; padding-bottom: calc(var(--hero-foot) + clamp(1.5rem, 1rem + 2vw, 3rem));
  padding-top: calc(var(--head-h) + var(--sp-6));
}
.hero .meta { color: rgba(255,255,255,.78); }
.hero h1 {
  font-size: var(--t-hero); line-height: var(--lh-tight);
  max-width: 17ch; font-weight: 500; margin-top: var(--sp-5); text-wrap: balance;
}
.hero__lead {
  max-width: 46ch; margin-top: var(--sp-5);
  color: rgba(255,255,255,.86); font-size: var(--t-lead); line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; margin-top: var(--sp-7); }
.hero__actions .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero__actions .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* Preview card — shows the next project and advances the slider */
.hero__preview {
  position: absolute; z-index: 6; right: var(--gutter); bottom: 0;
  width: clamp(220px, 26vw, 420px);
  padding: 0; border: 0; background: none; cursor: pointer;
  text-align: left; color: var(--t-primary);
  display: none;
}
.hero__preview-mask {
  display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--s-media); box-shadow: 0 18px 44px rgba(0,0,0,.20);
}
.hero__preview-mask img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); transition: transform .9s var(--ease);
}
.hero__preview:hover .hero__preview-mask img,
.hero__preview:focus-visible .hero__preview-mask img { transform: scale(1); }
.hero__preview-bar {
  display: flex; align-items: center; gap: var(--sp-3);
  padding-top: var(--sp-3);
}
.hero__preview-bar .meta { color: var(--t-muted); }
.hero__preview-track { flex: 1 1 auto; height: 1px; background: var(--rule-strong); position: relative; }
.hero__preview-track span {
  position: absolute; inset: 0 auto 0 0; background: var(--c-accent); width: 0;
  transition: width .3s linear;
}

/* Slide counter / caption for the current project, under the copy */
.hero__caption {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-8); padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero__caption .meta { color: rgba(255,255,255,.7); }
.hero__pause {
  margin-left: auto; min-height: 24px; padding: .15rem 0;
  border: 0; background: none; color: rgba(255,255,255,.78); cursor: pointer;
}
.hero__pause:hover { color: #fff; }
.hero[data-paused] .hero__slide img { transition: none; }

:root { --hero-foot: 0px; }
@media (min-width: 900px) {
  :root { --hero-foot: 11vh; }
  .hero__preview { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero[data-intro="running"] .hero__slide[data-state="active"],
  .hero[data-intro="done"] .hero__slide { transition: none; }
  .hero[data-intro="pending"] .hero__slide[data-state="active"] { clip-path: inset(0 0 0 0); }
  .hero__slide img { transform: none; transition: none; }
}

/* ============ proof ============ */
/* Open on the page — no band, no rules, no dividers. After a full-bleed hero the
   quieter treatment lets these read as a pause rather than a second banner. */
.proof {
  padding-block: clamp(4rem, 2.5rem + 6vw, 8rem);
}
.proof__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, .8rem + 2.5vw, 3.5rem);
}
.proof__item { display: grid; justify-items: start; }
.proof__icon { color: var(--c-accent); margin-bottom: var(--sp-5); }
.proof__icon svg { width: 44px; height: 44px; display: block; }
.proof__fig {
  font-family: var(--f-display); font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.4rem);
  font-weight: 500; letter-spacing: var(--ls-tight); line-height: 1.05; color: var(--t-primary);
}
.proof__label { margin-top: var(--sp-3); font-size: var(--t-small); color: var(--t-secondary); max-width: 28ch; }

/* ============ work grid ============ */
.work-grid { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(12, 1fr); }
.card { position: relative; display: flex; flex-direction: column; grid-column: span 12; }
.card__media { position: relative; overflow: hidden; background: var(--s-quiet); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3;
  transition: transform 1.1s var(--ease);
}
.card--wide .card__media img { aspect-ratio: 21 / 9; }
.card:hover .card__media img { transform: scale(1.035); }
.card__body {
  display: flex; align-items: baseline; gap: var(--sp-4); flex-wrap: wrap;
  padding-top: var(--sp-4); margin-top: var(--sp-4); border-top: 1px solid var(--rule);
}
.card__title { font-size: var(--t-h3); font-weight: 500; flex: 1 1 auto; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__meta { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* ============ dark bands ============ */
.u-dark .sec-head__top { border-bottom-color: var(--rule-on-dark); }
.u-dark .meta, .u-dark .lead { color: var(--t-on-dark-dim); }

/* ============ studio ============ */
.studio__grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.studio__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--s-quiet); }
.svc-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.svc-list li {
  font: 500 var(--t-meta)/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase;
  color: var(--t-secondary); border: 1px solid var(--rule-strong);
  padding: .55rem .7rem; border-radius: var(--radius);
}

/* ============ closing CTA ============ */
.cta { position: relative; overflow: hidden; background: var(--c-accent); color: #fff; }
.cta__inner { position: relative; z-index: 1; display: grid; gap: var(--sp-6); justify-items: start; }
.cta h2 { font-size: var(--t-h1); max-width: 18ch; font-weight: 500; }
.cta p { color: rgba(255, 255, 255, .8); max-width: 48ch; margin-top: var(--sp-4); }
.cta .btn--primary { background: #fff; color: var(--c-accent); }
.cta .btn--primary:hover { background: var(--c-paper); }

/* ============ footer ============
   Tall, taupe, and closed by a wordmark that spans the full measure — the
   move both reference footers share. Links fade rather than underline. */
.site-foot {
  background: var(--c-taupe); color: var(--c-black-ui);
  padding-top: clamp(4.5rem, 2.5rem + 9vw, 12rem);
  padding-bottom: var(--sp-6);
}

.foot__top { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
@media (min-width: 900px) {
  .foot__top { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); }
}

/* Large primary nav, fading on hover */
.foot__nav { display: flex; flex-direction: column; align-items: flex-start; }
.foot__nav a {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
  letter-spacing: var(--ls-tight); line-height: 1.24;
  text-decoration: none; padding-block: .1em;
  transition: opacity var(--dur) var(--ease);
}
.foot__nav a:hover { opacity: .5; }

/* Detail columns */
.foot__cols { display: grid; gap: var(--sp-7) var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot__col h3 {
  font: 500 var(--t-meta)/1.4 var(--f-label); letter-spacing: var(--ls-meta);
  text-transform: uppercase; color: var(--t-label); margin-bottom: var(--sp-4);
}
.foot__col li + li { margin-top: var(--sp-2); }
.foot__col a, .foot__col address { text-decoration: none; font-style: normal; }

/* Links carry a small cross, and shift on hover instead of underlining */
.foot__link { display: inline-flex; align-items: baseline; gap: .6rem; transition: opacity var(--dur) var(--ease); }
.foot__link:hover { opacity: .5; }
.foot__link::before {
  content: "+"; flex: none; font-family: var(--f-label);
  font-size: .7em; line-height: 1; opacity: .55;
}

/* The closing wordmark — scales to the full container width */
.foot__mark {
  margin-top: clamp(3.5rem, 2rem + 6vw, 8rem);
  border-top: 1px solid rgba(17,17,17,.22);
  padding-top: clamp(2rem, 1rem + 3vw, 4rem);
}
.foot__mark img { width: 100%; height: auto; display: block; }

.foot__bottom {
  margin-top: clamp(1.5rem, 1rem + 2vw, 3rem);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6);
  justify-content: space-between; align-items: baseline;
}
.foot__bottom p { font: 500 var(--t-meta)/1.4 var(--f-label); letter-spacing: var(--ls-meta);
  text-transform: uppercase; color: var(--t-label); }

/* ============ reveal on scroll ============ */
.reveal { transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal[data-anim="pending"] { opacity: 0; transform: translateY(26px); }
.reveal[data-anim="in"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Masked rise — the child slides up out of its own container (footer wordmark).
   The transform lives on the child, never the observed element, per the
   reveal-animation invariant in docs/OPERATIONS.md. */
.reveal-rise { overflow: hidden; }
.reveal-rise > * { transition: transform 1.25s var(--ease); }
.reveal-rise[data-anim="pending"] > * { transform: translateY(103%); }
.reveal-rise[data-anim="in"] > * { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-rise > * { transform: none; transition: none; }
}

/* ============ responsive ============ */
@media (max-width: 899px) {
  :root { --head-h: 76px; --head-h-stuck: 62px; }
  .brand img { height: 46px; }
  .site-head[data-stuck="true"] .brand img { height: 40px; }
  .hero { min-height: min(88vh, 720px); }

  /* Text spans the full width here, so the horizontal scrim cannot do the work —
     darken the whole frame instead. */
  .hero__scrim {
    background:
      linear-gradient(to bottom, rgba(16,17,20,.55) 0%, rgba(16,17,20,.2) 22%, rgba(16,17,20,.28) 45%),
      linear-gradient(to top,    rgba(16,17,20,.72) 0%, rgba(16,17,20,.45) 38%, rgba(16,17,20,.3) 70%);
  }
  .hero__actions { gap: var(--sp-3); }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .nav {
    position: fixed; inset: var(--head-h-live, var(--head-h)) 0 auto; background: var(--s-page);
    border-bottom: 1px solid var(--rule); padding: 0 var(--gutter) var(--sp-7);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur-q) var(--ease), transform var(--dur-q) var(--ease), visibility var(--dur-q);
  }
  /* The open panel is opaque, so nav links revert to ink even in overlay mode. */
  .site-head[data-overlay="true"] .nav[data-open="true"] a { color: var(--t-primary); }
  .site-head[data-overlay="true"] .nav[data-open="true"] a::after { background: var(--c-accent); }
  .nav[data-open="true"] { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: var(--sp-5); }
  .nav a { font-size: 1.25rem; font-family: var(--f-display); }
  .head-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; padding: 0 10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span {
    display: block; height: 1.5px; background: var(--t-primary);
    transition: transform var(--dur-q) var(--ease), opacity var(--dur-q) var(--ease);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .proof__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 519px) {
  .proof__grid { grid-template-columns: 1fr; }
}
@media (min-width: 700px) {
  .card--half { grid-column: span 6; }
  .step { grid-template-columns: 4.5rem minmax(0, 15rem) minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; }
  .studio__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .foot__grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .cta__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
@media (min-width: 1100px) {
  .card--wide { grid-column: span 8; }
  .card--third { grid-column: span 4; }
}

/* ============================================================
   Interior pages
   ============================================================ */

/* ---- honeypot — off-screen, not display:none, so bots still see a field ---- */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- project gallery ---- */
.gallery { display: grid; gap: var(--grid-gap); }
.gallery__item { margin: 0; background: var(--s-quiet); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; display: block; }
/* Side-by-side pairs wipe in with a slight offset */
.gallery .reveal-img:nth-child(even) img { transition-delay: .14s; }
@media (prefers-reduced-motion: reduce) { .gallery .reveal-img img { transition-delay: 0s; } }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  /* An odd count lets the first image span the full row rather than leaving a hole. */
  .gallery__item:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .gallery__item:first-child:nth-last-child(odd) img { aspect-ratio: 21 / 9; }
}

/* ---- page masthead ---- */
.page-head { padding-block: clamp(3rem, 1.6rem + 5vw, 6rem) clamp(2rem, 1rem + 3vw, 3.5rem); }
.page-head__inner { display: grid; gap: var(--sp-6); }
.page-head h1 { font-size: var(--t-h1); max-width: 18ch; font-weight: 500; }
.page-head .lead { max-width: 56ch; }
@media (min-width: 900px) {
  .page-head__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: end; column-gap: var(--sp-8); }
}

/* ---- editor-authored generic pages ---- */
.page-content { padding-bottom: var(--section-y); }
.page-content__body > * + * { margin-top: var(--sp-5); }
.page-content__body h2,
.page-content__body h3,
.page-content__body h4 { font-weight: 500; }
.page-content__body h2 { font-size: var(--t-h2); margin-top: var(--sp-8); }
.page-content__body h3 { font-size: var(--t-h3); margin-top: var(--sp-7); }
.page-content__body h4 { font-size: var(--t-lead); margin-top: var(--sp-6); }
.page-content__body ul,
.page-content__body ol { padding-left: 1.4em; }
.page-content__body ul { list-style: disc; }
.page-content__body ol { list-style: decimal; }
.page-content__body li + li { margin-top: var(--sp-2); }
.page-content__body a {
  color: var(--c-accent); font-weight: 600;
  transition: opacity var(--dur-q) var(--ease);
}
.page-content__body a:hover { opacity: .58; }
.page-content__body blockquote {
  margin-inline: 0; padding-left: var(--sp-5); border-left: 2px solid var(--c-accent);
  color: var(--t-secondary); font-size: var(--t-lead);
}
.page-content__body figure { margin-inline: 0; }
.page-content__body figcaption { margin-top: var(--sp-2); color: var(--t-muted); font-size: var(--t-small); }
.page-content__body table { width: 100%; border-collapse: collapse; }
.page-content__body th,
.page-content__body td { padding: var(--sp-3); border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.page-content__body th { font-weight: 600; }

/* ---- filters ---- */
.filters {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  padding-block: var(--sp-5); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin-bottom: var(--sp-8);
}
.filter {
  font: 500 var(--t-meta)/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase;
  color: var(--t-secondary); background: none; border: 1px solid var(--rule-strong);
  padding: .65rem .8rem; border-radius: var(--radius); cursor: pointer;
  transition: color var(--dur-q) var(--ease), border-color var(--dur-q) var(--ease),
              background var(--dur-q) var(--ease);
}
.filter:hover { border-color: var(--c-accent); color: var(--t-primary); }
.filter[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.filter__n { margin-left: .35em; color: var(--t-muted); }
.filter[aria-pressed="true"] .filter__n { color: rgba(255,255,255,.8); }
.filter-status { margin-top: var(--sp-4); }
.card[hidden] { display: none; }

/* ---- editorial detail list (approach) ---- */
.detail { display: grid; gap: var(--sp-5) var(--sp-8); padding-block: var(--sp-8);
  border-top: 1px solid var(--rule); align-items: start; }
.detail:last-of-type { border-bottom: 1px solid var(--rule); }
.detail__n { font: 500 var(--t-meta)/1.4 var(--f-label); letter-spacing: var(--ls-meta); color: var(--c-accent); }
.detail h2 { font-size: var(--t-h3); font-weight: 500; }
.detail__body { display: grid; gap: var(--sp-4); }
.detail__body p { color: var(--t-secondary); max-width: 60ch; }
.deliverables { display: grid; gap: var(--sp-2); margin-top: var(--sp-2); }
.deliverables li {
  position: relative; padding-left: var(--sp-5); font-size: var(--t-small); color: var(--t-secondary);
}
.deliverables li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--rule-strong);
}
@media (min-width: 800px) { .detail { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); column-gap: clamp(2rem, 1rem + 3vw, 5rem); } }

/* ---- about ---- */
.bio__grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.bio__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--s-quiet); }
.bio__figure figcaption { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--rule); }

/* Portrait. The only photograph of Patrick we hold is 200x240, so the frame is
   capped near its native size rather than scaled up into softness. */
.portrait { max-width: 260px; }
.portrait img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; background: var(--s-quiet); }
@media (min-width: 900px) { .bio__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); } }

.facts { display: grid; gap: 0; margin-top: var(--sp-7); }
.facts__row {
  display: grid; gap: var(--sp-2) var(--sp-6); padding-block: var(--sp-4);
  border-top: 1px solid var(--rule);
}
.facts__row:last-child { border-bottom: 1px solid var(--rule); }
.facts__row dd { margin: 0; }
@media (min-width: 600px) { .facts__row { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); } }

/* ---- contact ----
   Stacked rather than form-beside-sidebar: an invitation, then the form, then the
   studio details. Keeps the page calm and puts the ask before the admin. */
.contact-intro {
  max-width: 900px; margin-inline: auto; text-align: center;
  padding-block: clamp(3rem, 1.6rem + 5vw, 6rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.contact-intro h1 { font-size: var(--t-h1); font-weight: 500; margin-top: var(--sp-5); text-wrap: balance; }
.contact-intro .lead { max-width: 52ch; margin-top: var(--sp-5); margin-inline: auto; }

/* Split hero: image bleeding to one edge, the invitation on the other.
   Full-width rather than inside .wrap, so the photograph runs to the viewport edge. */
.hero-split { display: grid; background: var(--s-page); }
.hero-split__media { background: var(--s-quiet); min-height: 260px; }
.hero-split__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-split__body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) var(--gutter);
}
.hero-split h1 {
  font-size: clamp(2rem, 1.15rem + 2.6vw, 3.4rem); font-weight: 500;
  margin-top: var(--sp-5); max-width: 16ch; text-wrap: balance;
}
.hero-split .lead { max-width: 46ch; margin-top: var(--sp-5); }

.contact-enquiry { background: var(--s-quiet); }

@media (min-width: 900px) {
  .hero-split { grid-template-columns: 1fr 1fr; min-height: clamp(500px, 64vh, 740px); }
  .hero-split__body { padding-inline: clamp(2.5rem, 1rem + 4vw, 5rem) var(--gutter); }
}

/* Two columns: the ask on the left, the studio on the right. */
.contact__grid { display: grid; gap: clamp(2.5rem, 1.2rem + 5vw, 5rem); align-items: start; }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); }
}
.contact-side { display: grid; gap: var(--sp-7); }
.contact-side h2 {
  font: 500 var(--t-meta)/1.4 var(--f-label); letter-spacing: var(--ls-meta);
  text-transform: uppercase; color: var(--t-muted);
  margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--rule);
}
.contact-side a { text-decoration: none; transition: opacity var(--dur) var(--ease); }
.contact-side a:hover { opacity: .5; }
.contact-side li + li { margin-top: var(--sp-2); }
.contact-side .big { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 500; }

/* Closing block: tagline, studio, and where to find the practice. */
.closing { border-top: 1px solid var(--rule); padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.closing__tagline {
  font-family: var(--f-display); font-size: var(--t-h2); font-weight: 500;
  letter-spacing: var(--ls-tight); line-height: var(--lh-head);
  max-width: 20ch; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.closing__grid { display: grid; gap: var(--sp-7) var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.closing h3 {
  font: 500 var(--t-meta)/1.4 var(--f-label); letter-spacing: var(--ls-meta);
  text-transform: uppercase; color: var(--t-muted); margin-bottom: var(--sp-4);
}
.closing a { text-decoration: none; transition: opacity var(--dur) var(--ease); }
.closing a:hover { opacity: .5; }
.closing li + li { margin-top: var(--sp-2); }



/* Consent checkbox */
.field--check {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3);
  align-items: start; margin-top: var(--sp-2);
}
.field.field--check input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; padding: 0;
  accent-color: var(--c-accent);
}
.field--check label { font-size: var(--t-small); color: var(--t-secondary); line-height: 1.5; }
.field--check .field__privacy {
  grid-column: 2; justify-self: start;
  color: var(--c-accent); font-size: var(--t-small); font-weight: 600;
  transition: opacity var(--dur-q) var(--ease);
}
.field--check .field__privacy:hover { opacity: .58; }

.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field > label { font: 500 var(--t-small)/1.3 var(--f-body); color: var(--t-primary); }
.field .hint { font-size: var(--t-small); color: var(--t-muted); }
.req { color: var(--c-accent); }
.field input, .field select, .field textarea {
  font: 400 var(--t-body)/1.5 var(--f-body); color: var(--t-primary);
  background: var(--c-white); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: .85rem 1rem; width: 100%;
  transition: border-color var(--dur-q) var(--ease), box-shadow var(--dur-q) var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-accent);
}
.field input:user-invalid, .field textarea:user-invalid,
.field [aria-invalid="true"] { border-color: #9B2C2C; }
.field__error { color: #9B2C2C; font-size: var(--t-small); line-height: 1.45; }
.field--check .field__error { grid-column: 2; }
.field--check.field--invalid label { color: #9B2C2C; }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: var(--t-small); color: var(--t-muted); max-width: 52ch; }
.form__status {
  padding: var(--sp-4) var(--sp-5); border-left: 2px solid var(--c-accent);
  background: var(--s-quiet); font-size: var(--t-small);
  /* The no-JS path arrives here from the handler's 303 and focus is moved to
     this paragraph. The header offset comes from html's scroll-padding-top
     above (a token, not a pixel height); this is only the breathing gap on top
     of it, and it also covers browsers that skip scroll-padding when the scroll
     is driven by focus() rather than by a fragment. */
  scroll-margin-top: var(--sp-4);
}
.form__status[hidden] { display: none; }

/* ============================================================
   Rhythm components — added so Approach / Sectors / How we work
   stop reading as the same numbered stack three times over.
   ============================================================ */

/* ---- CTA over photography (replaces the ruled indigo panel) ---- */
.cta { position: relative; overflow: hidden; background: var(--c-accent); isolation: isolate; }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.cta__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,8,13,.92) 0%, rgba(11,8,13,.82) 45%, rgba(11,8,13,.55) 100%),
    linear-gradient(0deg,  rgba(26,28,32,.35) 0%, rgba(26,28,32,0) 60%);
}


/* ---- Tiles: unnumbered, for sets that are a range rather than a sequence ---- */
.tiles { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.tile { padding: var(--sp-6); background: var(--s-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.tile h3 { font-size: 1.0625rem; font-weight: 600; font-family: var(--f-body); letter-spacing: 0; text-wrap: balance; }
.tile p { margin-top: var(--sp-3); font-size: var(--t-small); color: var(--t-secondary); }
.u-dark .tile { background: rgba(255,255,255,.04); border-color: var(--rule-on-dark); }
.u-dark .tile p { color: var(--t-on-dark-dim); }

/* ---- Full-bleed image band, to break long reading passages ---- */
.band { height: clamp(220px, 16vw + 130px, 420px); overflow: hidden; background: var(--s-quiet); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }

/* ---- Reveal: staggered children, and a slow settle on images ---- */
.reveal-group > * { transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal-group[data-anim="pending"] > * { opacity: 0; transform: translateY(24px); }
.reveal-group[data-anim="in"] > * { opacity: 1; transform: none; }
.reveal-group[data-anim="in"] > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group[data-anim="in"] > *:nth-child(2) { transition-delay: 70ms; }
.reveal-group[data-anim="in"] > *:nth-child(3) { transition-delay: 140ms; }
.reveal-group[data-anim="in"] > *:nth-child(4) { transition-delay: 210ms; }
.reveal-group[data-anim="in"] > *:nth-child(5) { transition-delay: 280ms; }
.reveal-group[data-anim="in"] > *:nth-child(6) { transition-delay: 350ms; }
.reveal-group[data-anim="in"] > *:nth-child(7) { transition-delay: 420ms; }
.reveal-group[data-anim="in"] > *:nth-child(n+8) { transition-delay: 490ms; }

/* Images settle out of a slight scale as they arrive */
/* The clip lives on the <img>, never on .reveal-img itself: clip-path zeroes
   an element's intersectionRatio, so a clipped wrapper can never satisfy the
   observer that is supposed to un-clip it. */
.reveal-img { overflow: hidden; background: var(--s-quiet); }
.reveal-img img {
  clip-path: inset(0 0 0 0);
  transition: transform 1.5s var(--ease), clip-path 1.1s var(--ease);
}
.reveal-img[data-anim="pending"] img { transform: scale(1.08); clip-path: inset(0 0 100% 0); }
.reveal-img[data-anim="in"] img { transform: none; clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal-group > * { opacity: 1; transform: none; transition: none; }
  .reveal-img, .reveal-img img { clip-path: none; transform: none; transition: none; }
}

/* ============================================================
   Circular mark icons — thin abstract glyphs inside an outline
   ring, rather than literal objects. Reads as a considered
   symbol set at 40px instead of clip art.
   ============================================================ */
.mark { display: block; width: 44px; height: 44px; color: var(--c-accent); }
.mark circle, .mark path, .mark rect, .mark line { vector-effect: non-scaling-stroke; }
.mark__ring { opacity: .45; }
.u-dark .mark { color: var(--c-taupe); }

/* ---- Statement block: large display type carrying the idea,
        supporting copy and one action beside it ---- */
.statement { background: var(--s-dark); color: var(--t-on-dark); overflow: hidden; }
.statement__grid { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); align-items: start; }
.statement__type {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.4rem, 1.2rem + 4.2vw, 5rem);
  line-height: 1.02; letter-spacing: -.03em;
}
.statement__type > span { display: block; }
.statement__type .dash { display: inline; }
.statement__type .dash { color: var(--c-taupe); margin-right: .12em; }
.statement__aside { display: grid; gap: var(--sp-6); justify-items: start; }
.statement__aside p { color: var(--t-on-dark-dim); max-width: 46ch; }
.statement__media { margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); overflow: hidden; }
.statement__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 60%; }
@media (min-width: 900px) {
  .statement__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
}

/* ============================================================
   Featured project + index list — replaces the card grid on the
   home page. Rows fill from the bottom on hover, as the reference does.
   ============================================================ */
.feature { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: end; margin-bottom: clamp(3.5rem, 2rem + 5vw, 7rem); }
.feature__media { overflow: hidden; order: 1; }
.feature__media img { width: 100%; aspect-ratio: 772 / 630; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__body { order: 2; display: grid; gap: var(--sp-4); align-content: end; }
.feature__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); font-weight: 500; line-height: 1; }
.feature__desc { color: var(--t-secondary); max-width: 34ch; }
.feature__tags { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-2); }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); }
  .feature__media { order: 2; }
  .feature__body { order: 1; padding-bottom: var(--sp-6); }
}

.index { border-top: 1px solid var(--c-black); }
.index__row {
  position: relative; display: block; overflow: hidden;
  padding: clamp(1.1rem, .7rem + 1vw, 1.7rem) 0;
  text-decoration: none; color: var(--t-primary);
  border-bottom: 1px solid var(--c-black);
  transition: color .3s var(--ease);
}
.index__row::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--c-black); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .5s var(--ease);
}
.index__row:hover, .index__row:focus-visible { color: var(--c-white); }
.index__row:hover::before, .index__row:focus-visible::before { transform: scaleY(1); transition-duration: .4s; }
.index__inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-3) var(--sp-6);
  padding-inline: clamp(.6rem, .4rem + .6vw, 1.2rem);
}
.index__title { flex: 1 1 14rem; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.15rem, .95rem + .9vw, 1.6rem); letter-spacing: var(--ls-tight); }
.index__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); align-items: baseline; }
.index__tag { font: 500 var(--t-meta)/1.4 var(--f-label); letter-spacing: var(--ls-meta); text-transform: uppercase; opacity: .78; }
.index__arrow { flex: none; transition: transform .5s var(--ease); }
.index__row:hover .index__arrow { transform: translateX(.5rem); }

/* ============================================================
   Scroll-driven page furniture, after archidomo.fr/en/place/.
   A pinned hero the page scrolls over, an oversized centred
   statement, and alternating text/image blocks.
   ============================================================ */

/* ---- Pinned hero: the image holds while the page moves past it ---- */
.pin { position: relative; height: 260vh; margin-top: calc(-1 * var(--head-h)); }
.pin__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: var(--s-page); isolation: isolate;
  display: flex; align-items: center; justify-content: center;
}
.pin__media {
  position: absolute; inset: 0; z-index: -2; will-change: transform;
  transform-origin: 50% 50%; overflow: hidden;
}
.pin__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.pin__veil { position: absolute; inset: 0; background: rgba(11,8,13,.42); pointer-events: none; }

.pin__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--head-h) var(--gutter) 0;
  color: var(--c-white); will-change: transform, opacity;
}
.pin__eyebrow { color: rgba(255,255,255,.72); }
.pin h1 {
  font-size: clamp(2.4rem, 1.2rem + 5.4vw, 6.4rem); font-weight: 400;
  line-height: 1.04; letter-spacing: var(--ls-tight); max-width: 16ch; margin-top: var(--sp-5);
}
.pin__cross {
  display: block; width: 1.6rem; height: 1.6rem; margin-top: clamp(2.5rem, 1.5rem + 4vw, 6rem);
  position: relative; opacity: .8;
}
.pin__cross::before, .pin__cross::after {
  content: ""; position: absolute; background: var(--c-white);
}
.pin__cross::before { inset: 50% 0 50% 0; height: 1px; transform: translateY(-.5px); }
.pin__cross::after  { inset: 0 50% 0 50%; width: 1px; transform: translateX(-.5px); }

/* ---- Oversized centred statement ---- */
.bigtext { padding-block: clamp(4rem, 2.5rem + 8vw, 11rem); }
.bigtext p {
  margin: 0 auto; max-width: 24ch; text-align: center;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.7rem, 1rem + 3.2vw, 4rem);
  line-height: 1.14; letter-spacing: var(--ls-tight);
}

/* ---- Alternating text/image stage blocks ---- */
.stack-block { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 1.5rem + 4vw, 6rem); }
.stack-block__media { overflow: hidden; }
.stack-block__media img { width: 100%; aspect-ratio: 614 / 400; object-fit: cover; }
.stack-block__body { display: grid; gap: var(--sp-4); }
.stack-block h2 { font-size: var(--t-h3); font-weight: 500; }
.stack-block__body p { color: var(--t-secondary); max-width: 52ch; }
@media (min-width: 900px) {
  .stack-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 2rem + 4vw, 8rem); }
  .stack-block--flip .stack-block__media { order: 2; }
  .stack-block--flip .stack-block__body { order: 1; }
  /* the reference indents its running text rather than aligning it flush */
  .stack-block__body { padding-left: clamp(0rem, -2rem + 5vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .pin { height: auto; }
  .pin__stage { position: static; height: min(80vh, 640px); }
  .pin__media { inset: 0; transform: none !important; }
  .pin__inner { transform: none !important; opacity: 1 !important; }
}

/* ============================================================
   About / Contact furniture, after archidomo.fr/en/agency and
   /en/contact: oversized titles, staggered image clusters,
   deeply indented running text, and large sliding contact links.
   ============================================================ */

/* ---- Agency-style opening: a short large title, a flex row of images at
        differing sizes with the last pushed right on a deep top offset, and a
        pull-quote set into the bottom-right. Geometry follows the reference's
        image1 297/385, image2 613/800, image3 1:1 with a 9rem top margin. ---- */
.typehero { position: relative; padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(2rem, 1rem + 3vw, 4rem); }
.typehero h1 {
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 8rem); font-weight: 400;
  line-height: 1; letter-spacing: -.03em; margin-top: var(--sp-4);
}

.ah-images { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(.75rem, .4rem + 1.4vw, 2rem); margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.ah-images figure { margin: 0; overflow: hidden; flex: none; }
.ah-images img { width: 100%; height: 100%; object-fit: cover; }

/* The collage wipes in left to right, then drifts very slowly — the drift is on
   the figure and the wipe on the img, so the two transforms never fight. */
.ah-images .reveal-img:nth-child(2) img { transition-delay: .14s; }
.ah-images .reveal-img:nth-child(3) img { transition-delay: .28s; }
@keyframes ah-drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-9px); }
}
.ah-images figure { animation: ah-drift 22s ease-in-out infinite alternate; }
.ah-images .ah-2 { animation-duration: 28s; animation-delay: -9s; }
.ah-images .ah-3 { animation-duration: 25s; animation-delay: -17s; }
@media (prefers-reduced-motion: reduce) {
  .ah-images figure { animation: none; }
  .ah-images .reveal-img img { transition-delay: 0s; }
}
.ah-1 { width: clamp(5.5rem, 2rem + 12vw, 18.6rem); aspect-ratio: 297 / 385; }
.ah-2 { width: clamp(9rem, 4rem + 26vw, 38.3rem); aspect-ratio: 613 / 800; }
.ah-images .ah-3 {
  width: clamp(5.5rem, 2rem + 12vw, 18.6rem); aspect-ratio: 1;
  margin-left: auto; margin-right: 0; margin-top: clamp(1.5rem, .5rem + 5vw, 9rem);
}

.ah-quote { margin-top: clamp(2rem, 1.2rem + 3vw, 4rem); max-width: 44ch; }
.ah-quote p {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.15rem, .95rem + 1.1vw, 1.9rem); line-height: 1.3;
  letter-spacing: var(--ls-tight);
}
.ah-quote footer { margin-top: var(--sp-4); }

/* Only float the quote once the row is wide enough that it clears the tall
   image; below that it simply follows the images in flow. */
@media (min-width: 1400px) {
  .ah-quote {
    position: absolute; right: clamp(1rem, -2rem + 5vw, 6rem); bottom: 0;
    margin-top: 0; max-width: 30rem;
  }
}

/* ---- Deeply indented running text, as the reference sets it ---- */
.indented { font-size: clamp(1.15rem, .95rem + 1.1vw, 1.9rem); line-height: 1.4; max-width: 62ch; }
@media (min-width: 900px) { .indented { text-indent: clamp(6rem, 2rem + 12vw, 20rem); } }

/* ---- Large contact links that slide on hover ---- */
.biglinks { display: grid; justify-items: start; gap: var(--sp-3); margin-top: clamp(2rem, 1.2rem + 3vw, 4rem); }
.biglink {
  position: relative; display: inline-flex; align-items: center; gap: 0;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.4rem); letter-spacing: var(--ls-tight);
  text-decoration: none; color: var(--t-primary); white-space: nowrap;
}
.biglink__icon {
  position: relative; flex: none; width: 0; height: 1em; overflow: hidden;
  transition: width .4s var(--ease);
}
.biglink__icon svg { position: absolute; left: 0; top: 50%; width: 1.6rem; height: 1.6rem;
  transform: translate(-100%, -50%) scale(.4); opacity: 0;
  transition: transform .4s var(--ease), opacity .3s var(--ease); }
.biglink__label { display: inline-block; transition: transform .5s var(--ease); }
.biglink:hover .biglink__label, .biglink:focus-visible .biglink__label { transform: translateX(2.2rem); }
.biglink:hover .biglink__icon, .biglink:focus-visible .biglink__icon { width: 2.2rem; }
.biglink:hover .biglink__icon svg, .biglink:focus-visible .biglink__icon svg {
  transform: translate(0, -50%) scale(1); opacity: 1;
}

/* ---- Two-column contact opening, image beside the copy ---- */
.contact-open { display: grid; gap: clamp(2.5rem, 1.5rem + 5vw, 6rem); align-items: start; }
.contact-open__media { overflow: hidden; }
.contact-open__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 900px) {
  .contact-open { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .biglink__label, .biglink__icon, .biglink__icon svg { transition: none; }
}

/* ============================================================
   Project rows, after archidomo.fr/en/projects: title and
   bracketed tags top-left, a square thumbnail beside the
   description and action at the foot, and the large image
   holding the right column. Hairline separator per row.
   ============================================================ */
.prows { display: block; }
.prow {
  position: relative;
  display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 6rem);
}
.prow::after {
  content: ""; position: absolute; bottom: 0;
  left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
  height: 1px; background: var(--c-taupe);
}
.prow[hidden] { display: none; }

.prow__content { display: flex; flex-direction: column; gap: clamp(2rem, 1.2rem + 4vw, 6rem); justify-content: space-between; }
.prow__head { display: flex; flex-direction: column; gap: clamp(1rem, .6rem + 1.6vw, 2.5rem); }
.prow__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.4rem);
  line-height: 1.05; letter-spacing: var(--ls-tight);
}
.prow__title a { text-decoration: none; }
.prow__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.prow__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.prow__tag {
  font: 500 var(--t-meta)/1.4 var(--f-label); letter-spacing: var(--ls-meta);
  text-transform: uppercase; color: var(--t-muted);
}
/* the reference brackets each tag */
.prow__tag::before { content: "[ "; opacity: .55; }
.prow__tag::after  { content: " ]"; opacity: .55; }

.prow__bottom { display: flex; align-items: flex-end; gap: clamp(1.25rem, .8rem + 2.4vw, 4rem); }
.prow__thumb { flex: none; width: clamp(4rem, 2rem + 9vw, 14rem); aspect-ratio: 1; overflow: hidden; background: var(--s-quiet); }
.prow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.prow__desc { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.25rem, .8rem + 2vw, 3rem); max-width: 30ch; }
.prow__desc p { font-size: var(--t-small); color: var(--t-secondary); }

.prow__image { overflow: hidden; background: var(--s-quiet); }
.prow__image img {
  width: 100%; height: 100%; aspect-ratio: 830 / 660; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.prow:hover .prow__image img { transform: scale(1.035); }

@media (min-width: 900px) {
  .prow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; }
  .prow__head { padding-left: clamp(0rem, -4rem + 7vw, 7rem); }
  .prow__image img { aspect-ratio: auto; height: 100%; }
}
@media (max-width: 599px) {
  .prow__thumb { display: none; }
}

/* ============================================================
   Pinned hero additions — load expansion, floating parallax
   images over the stage, and big-text blocks with images placed
   alongside. Follows place/ : parallaxSection z-index 3,
   mainText 96px with an absolutely positioned mainImage.
   ============================================================ */

/* The stage opens from a smaller rect on load, then holds full bleed. */
.pin[data-open="pending"] .pin__media { clip-path: inset(14% 20% 14% 20%); }
.pin[data-open="running"] .pin__media,
.pin[data-open="done"] .pin__media { clip-path: inset(0 0 0 0); }
.pin[data-open="running"] .pin__media { transition: clip-path 1.25s cubic-bezier(.66,0,.2,1); }

.pin[data-open="pending"] .pin__inner { opacity: 0; }
.pin[data-open="running"] .pin__inner,
.pin[data-open="done"] .pin__inner { opacity: 1; }
.pin[data-open="running"] .pin__inner { transition: opacity .9s var(--ease) .35s; }

/* Images that float over the pinned stage and drift as it scrolls */
.pin__floats { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pin__float { position: absolute; overflow: hidden; will-change: transform; box-shadow: 0 24px 60px rgba(0,0,0,.32); }
.pin__float img { width: 100%; height: 100%; object-fit: cover; }
.pin__float--a { width: clamp(4.5rem, 2rem + 5.5vw, 12rem); aspect-ratio: 3 / 4;  left: 1.5%; top: 11%; }
.pin__float--b { width: clamp(5rem, 2rem + 6.5vw, 14rem); aspect-ratio: 4 / 3; right: 1.5%; top: 15%; }
.pin__float--c { width: clamp(4rem, 2rem + 5vw, 10rem); aspect-ratio: 1;  right: 12%; bottom: 8%; }
@media (max-width: 699px) { .pin__float--c { display: none; } }

/* Big text with an image set alongside it */
.bigblock { position: relative; padding-block: clamp(3rem, 2rem + 6vw, 9rem); }
.bigblock__text {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.6rem, 1rem + 3vw, 3.6rem);
  line-height: 1.14; letter-spacing: var(--ls-tight); max-width: 24ch;
}
.bigblock__text p + p { margin-top: var(--sp-5); }
.bigblock__media { overflow: hidden; margin-top: clamp(2rem, 1rem + 4vw, 4rem); }
.bigblock__media img { width: 100%; aspect-ratio: 453 / 302; object-fit: cover; }
@media (min-width: 1000px) {
  .bigblock { padding-left: clamp(0rem, -8rem + 12vw, 12rem); }
  .bigblock__media {
    position: absolute; right: 0; top: 55%; width: clamp(16rem, 8rem + 20vw, 28rem);
    margin-top: 0;
  }
  .bigblock__text { max-width: 20ch; }
}

/* A staggered row of supporting images */
.imgrow { display: grid; gap: clamp(.75rem, .4rem + 1.4vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: start; }
.imgrow figure { margin: 0; overflow: hidden; }
.imgrow img { width: 100%; object-fit: cover; }
.imgrow figure:nth-child(odd) img { aspect-ratio: 3 / 4; }
.imgrow figure:nth-child(even) img { aspect-ratio: 1; }
.imgrow figure:nth-child(even) { margin-top: clamp(1rem, .5rem + 3vw, 4rem); }

@media (prefers-reduced-motion: reduce) {
  .pin[data-open] .pin__media { clip-path: inset(0 0 0 0) !important; transition: none; }
  .pin[data-open] .pin__inner { opacity: 1 !important; transition: none; }
  .pin__float { transform: none !important; }
}

/* Two hero lines that cross-fade as the stage contracts, following the
   reference's stacked `text:not(:first-child)` treatment. */
.pin__lines { position: relative; width: 100%; max-width: 52ch; margin-inline: auto; }
.pin__line { transition: opacity .5s var(--ease); }
.pin__line + .pin__line { position: absolute; inset: 0; opacity: 0; }
.pin__line p { color: rgba(255,255,255,.9); font-size: var(--t-lead); line-height: 1.5; }

@media (max-width: 899px) {
  .pin__lines { max-width: 60vw; }
  .pin__line p { font-size: clamp(.9rem, .55rem + 1.2vw, 1.0625rem); line-height: 1.4; }
  .pin h1 { font-size: clamp(1.9rem, 1rem + 3.6vw, 3rem); }
}

/* ============================================================
   Home hero intro, matching the reference's load sequence:
   a small centred panel flashes through project images on the
   page colour, then expands to full bleed.
   ============================================================ */
.hero[data-intro="pending"] .hero__stage,
.hero[data-intro="running"] .hero__stage { background: var(--s-page); }

/* the panel sits centred rather than growing out of the preview card */
.hero[data-intro="pending"] .hero__slide[data-state="active"],
.hero[data-intro="cycling"] .hero__slide[data-state="active"] {
  clip-path: var(--hero-seed, inset(37% 35% 37% 35%));
  transition: none;
}
.hero[data-intro="cycling"] .hero__slide img { transform: none; transition: none; }

/* content and preview stay out until the panel has opened */
.hero[data-intro="pending"] .hero__inner,
.hero[data-intro="cycling"] .hero__inner,
.hero[data-intro="running"] .hero__inner { opacity: 0; }
.hero[data-intro="done"] .hero__inner { opacity: 1; transition: opacity .8s var(--ease); }

.hero[data-intro="pending"] .hero__preview,
.hero[data-intro="cycling"] .hero__preview,
.hero[data-intro="running"] .hero__preview { opacity: 0; }
.hero[data-intro="done"] .hero__preview { opacity: 1; transition: opacity .7s var(--ease) .2s; }

/* the scrim only makes sense once the image is full bleed */
.hero[data-intro="pending"] .hero__scrim,
.hero[data-intro="cycling"] .hero__scrim,
.hero[data-intro="running"] .hero__scrim { opacity: 0; }
.hero__scrim { transition: opacity .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .hero[data-intro] .hero__slide[data-state="active"] { clip-path: inset(0 0 0 0) !important; }
  .hero[data-intro] .hero__inner,
  .hero[data-intro] .hero__preview,
  .hero[data-intro] .hero__scrim { opacity: 1 !important; }
}

/* The header stays out while the hero panel is cycling and opening — there is
   no photography behind it yet, so the nav would float on bare page colour.
   Set by JS only, so a page without scripting keeps its header. */
.site-head[data-hidden="true"] {
  opacity: 0; pointer-events: none;
}

/* ============================================================
   Nav items, after archidomo's AppHeader-navItem: a tile wipes
   into the icon box from the lower left, the resting mark exits
   the same way while a second mark arrives, and the label slides.
   ============================================================ */
.nav a.nav__item { display: flex; align-items: center; gap: .55rem; }
.nav__label { display: block; transition: transform .5s var(--ease); }

.nav__icon {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center;
  width: .95rem; height: .95rem; overflow: hidden;
  transition: transform .3s var(--ease);
}
/* the tile that fills the box */
.nav__icon::before {
  content: ""; position: absolute; inset: 0; display: block;
  background: currentColor;
  transform: translate(-100%) translateY(100%);
  transition: transform .3s var(--ease);
}
.nav__mark {
  position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: .8rem; height: .8rem;
}
.nav__mark svg { width: 100%; height: 100%; fill: currentColor; }
.nav__mark--1 { transform: translate(0) translateY(0); transition: transform .3s var(--ease) .1s; }
.nav__mark--2 { transform: translate(-150%) translateY(150%) scale(0); transition: transform .3s var(--ease); }
/* the arriving mark reads against the filled tile */
.nav__mark--2 svg { fill: var(--s-page); }
.site-head[data-overlay="true"]:not([data-stuck="true"]) .nav__mark--2 svg { fill: var(--c-black); }

.nav a:hover .nav__label,
.nav a:focus-visible .nav__label { transform: translateX(.5rem); }
.nav a:hover .nav__icon::before,
.nav a:focus-visible .nav__icon::before { transform: translate(0) translateY(0); }
.nav a:hover .nav__mark--1,
.nav a:focus-visible .nav__mark--1 { transition: transform .5s var(--ease); transform: translate(-100%) translateY(100%) scale(0); }
.nav a:hover .nav__mark--2,
.nav a:focus-visible .nav__mark--2 { transition: transform .3s var(--ease) .1s; transform: translate(0) translateY(0) scale(1); }

/* the underline is redundant now the icon carries the state */
.nav a::after { display: none; }
.nav a[aria-current="page"] .nav__icon::before { transform: translate(0) translateY(0); }
.nav a[aria-current="page"] .nav__mark--1 { transform: translate(-100%) translateY(100%) scale(0); }
.nav a[aria-current="page"] .nav__mark--2 { transform: translate(0) translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .nav__label, .nav__icon, .nav__icon::before, .nav__mark { transition: none !important; }
}

/* Headings uncover from behind a mask rather than fading, following the
   reference's line reveals. The inner span is what actually travels. */
.reveal-wipe { display: block; overflow: hidden; }
.reveal-wipe > span {
  display: block;
  transition: transform 1s var(--ease);
}
.reveal-wipe[data-anim="pending"] > span { transform: translateY(105%); }
.reveal-wipe[data-anim="in"] > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal-wipe > span { transform: none; transition: none; }
  .reveal-img, .reveal-img img { clip-path: none; transform: none; transition: none; }
}
