/* =====================================================================
   Portfolio — shared styles
   ===================================================================== */

/* ---------- FONTS ----------------------------------------------------
   Loaded from Adobe Fonts (https://use.typekit.net/jai4lwl.css) in each
   page <head>. Only two weights exist on this site:
     Alga           300  — titles, wordmark, project titles
     Avenir LT Pro  200  — body, labels, navigation, captions, numbers
   ------------------------------------------------------------------- */
:root {
  --font-display: alga, serif;
  --font-text: avenir-lt-pro, sans-serif;
  --w-display: 300;
  --w-text: 200;

  /* ---------- COLOUR ---------- */
  --paper: #FFFFFF;
  --paper-2: #F3F3F2;
  --ink: #111111;
  --grey: #8A8782;
  --grey-2: #C9C6C0;
  --on-photo: #F3F1ED;

  /* ---------- SPACE ---------- */
  --gutter: clamp(16px, 2.6vw, 40px);
  --label: 10.5px;
  --track: 0.18em;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: var(--w-text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* No bold anywhere, ever. */
/* No browser-default bold anywhere: everything falls back to the light weights. */
b, strong, h1, h2, h3, h4, h5, h6, th, dt, button, input, select, textarea, optgroup, legend, summary { font-weight: var(--w-text); }
.display, h1.display, h2.display, .display b, .display strong { font-weight: var(--w-display); }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video, picture { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- TYPE ROLES ---------- */
.display {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  letter-spacing: 0.005em;
  line-height: 1.05;
}
.label {
  font-family: var(--font-text);
  font-weight: var(--w-text);
  font-size: var(--label);
  line-height: 1.6;
  letter-spacing: var(--track);
  text-transform: uppercase;
}
.muted { color: var(--grey); }

/* Placeholder highlight while the site is unfinished. Remove this rule when done. */
.is-placeholder { opacity: .55; }

/* ---------- PAPER + GRAIN ---------- */
.paper {
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 90% at 50% 45%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%),
    url("../img/paper.svg");
  background-size: auto, 600px 600px;
}
.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  z-index: 50;
  background-image: url("../img/grain.svg");
  background-size: 220px 220px;
  opacity: .085;
  mix-blend-mode: multiply;
  animation: grain 1.2s steps(4) infinite;
}
.grain--light { mix-blend-mode: overlay; opacity: .16; }
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- FIXED CORNER METADATA + NAV ---------- */
.corner { position: fixed; z-index: 40; padding: var(--gutter); }
.corner--tl { top: 0; left: 0; }
.corner--tr { top: 0; right: 0; text-align: right; }
.corner--bl { bottom: 0; left: 0; }
.corner--br { bottom: 0; right: 0; text-align: right; }
.corner p { margin: 0; }

.nav { display: flex; gap: 1.6em; }
.nav a { position: relative; transition: opacity .5s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px;
  background: currentColor; transition: right .6s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: calc(var(--track) * 1); }

.link-quiet { position: relative; display: inline-block; padding-bottom: 3px; }
.link-quiet::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; opacity: .45; transform-origin: left;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.link-quiet:hover::after { opacity: 1; transform: scaleX(.6); }

/* ---------- PAGE TRANSITIONS ---------- */
body { opacity: 0; transition: opacity .9s var(--ease); }
body.is-ready { opacity: 1; }
body.is-leaving { opacity: 0; transition-duration: .5s; }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   HOMEPAGE
   ===================================================================== */
.home { background: #1a1918; color: var(--on-photo); overflow: hidden; }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.hero__img, .hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img img {
  object-fit: cover; object-position: 50% 45%;
  transform: scale(1.04);
  animation: hero-settle 6s var(--ease) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }
.hero::after { /* legibility veil */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,10,.38) 0%, rgba(10,10,10,.12) 30%, rgba(10,10,10,.12) 70%, rgba(10,10,10,.42) 100%),
    rgba(10,10,10,.2);
}
.hero__layer { position: absolute; inset: 0; z-index: 2; }
.hero .corner { position: absolute; }

.hero__statement { max-width: 22em; text-transform: none; letter-spacing: 0.02em; font-size: 12.5px; line-height: 1.55; }
.hero__name { margin-top: 1.1em; }
.hero__ig { position: absolute; top: var(--gutter); left: 50%; transform: translateX(-50%); }

.hero__mid {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 50%;
  display: flex; justify-content: space-between; align-items: baseline; gap: 2rem;
  transform: translateY(-50%);
}
.hero__name-big { font-style: italic; font-size: clamp(56px, 9vw, 168px); line-height: .92; letter-spacing: -0.012em; margin-left: -0.04em; }
.hero__tagline { max-width: 20em; text-align: left; font-size: 13px; letter-spacing: .02em; line-height: 1.55; margin-right: 8vw; }

.hero__enter {
  position: absolute; left: 50%; bottom: var(--gutter); transform: translateX(-50%);
  white-space: nowrap;
}
.hero__enter .arrow { display: inline-block; margin-left: .6em; transition: transform .8s var(--ease); }
.hero__enter:hover .arrow { transform: translateX(6px); }

/* scattered keywords */
.kw {
  position: absolute; white-space: nowrap; opacity: 0;
  font-size: 9.5px;
  animation: kw-in 2.4s var(--ease) forwards, kw-drift var(--dur, 22s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s), var(--delay, 0s);
}
@keyframes kw-in { to { opacity: .82; } }
@keyframes kw-drift {
  from { translate: 0 0; }
  to   { translate: var(--dx, 6px) var(--dy, -4px); }
}

/* fade-in order for the fixed text on the homepage */
.home .fade { opacity: 0; animation: kw-in-full 1.8s var(--ease) forwards; animation-delay: var(--delay, .3s); }
@keyframes kw-in-full { to { opacity: 1; } }

/* =====================================================================
   PROJECT INDEX — ring-bound prints
   ===================================================================== */
.index { min-height: 100vh; min-height: 100svh; }
.index__stage {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px var(--gutter) 130px;
}
.book { display: flex; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.book__item {
  --w: clamp(170px, 21.5vw, 360px);
  position: relative; width: var(--w); flex: 0 0 auto;
}
.book__item + .book__item { margin-left: calc(var(--w) * -0.045); }
.book__item:nth-child(1) { --tilt: -1.6deg; --y: 6px;  z-index: 1; }
.book__item:nth-child(2) { --tilt: 1.1deg;  --y: -4px; z-index: 2; }
.book__item:nth-child(3) { --tilt: -0.7deg; --y: 8px;  z-index: 3; }
.book__item:nth-child(4) { --tilt: 1.8deg;  --y: -2px; z-index: 4; }

.print { display: block; outline-offset: 6px; }
.print__frame {
  position: relative;
  background: #FBFAF8;
  padding: calc(var(--w) * .045) calc(var(--w) * .045) calc(var(--w) * .06);
  transform: translateY(var(--y)) rotate(var(--tilt));
  box-shadow:
    0 1px 1px rgba(30,25,20,.06),
    0 6px 14px -6px rgba(30,25,20,.22),
    0 18px 30px -18px rgba(30,25,20,.25);
  transition: transform 1s var(--ease), box-shadow 1s var(--ease);
}
.print__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.print__img img { width: 100%; height: 100%; object-fit: cover; }

/* punched holes on the left edge of prints 2–4 */
.hole { position: absolute; left: calc(var(--w) * .018); width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #d8d5cf, #a9a59e); box-shadow: inset 0 1px 1px rgba(0,0,0,.25); }
.hole--a { top: 30%; } .hole--b { top: 66%; }

/* metal binder rings */
.ring {
  position: absolute; z-index: 10; pointer-events: none;
  left: calc(var(--w) * -0.1); width: calc(var(--w) * .19); min-width: 30px; height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 1.5px 1.2px rgba(0,0,0,.28));
}
.ring--a { top: 30%; } .ring--b { top: 66%; }

.print__caption {
  position: absolute; left: 0; right: 0; top: 100%;
  padding-top: 26px; text-align: center;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.print__caption .label { display: block; margin-bottom: .5em; color: var(--grey); }
.print__title { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.15; }

@media (hover: hover) {
  .print:hover .print__frame, .print:focus-visible .print__frame {
    transform: translateY(calc(var(--y) - 10px)) rotate(0deg);
    box-shadow:
      0 2px 2px rgba(30,25,20,.06),
      0 14px 24px -10px rgba(30,25,20,.25),
      0 34px 50px -24px rgba(30,25,20,.28);
  }
  .print:hover .print__caption, .print:focus-visible .print__caption { opacity: 1; transform: none; }
}
.book__item:hover { z-index: 6; }

.index__counter { display: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .hero__tagline { margin-right: 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }

  /* homepage */
  .hero__ig { top: auto; left: var(--gutter); transform: none; bottom: calc(var(--gutter) + 84px); }
  .hero__statement { max-width: 54vw; font-size: 12px; }
  .hero .nav { flex-direction: column; gap: .5em; align-items: flex-end; }
  .hero__mid { flex-direction: column; align-items: flex-start; gap: 1.1rem; top: 54%; }
  .hero__name-big { font-size: 21vw; line-height: .9; }
  .hero__tagline { max-width: 17em; }
  .hero__enter { left: auto; right: var(--gutter); bottom: calc(var(--gutter) + 80px); transform: none; }
  .kw:nth-of-type(n+5) { display: none; }

  /* index — horizontal swipe, rings kept */
  .index__stage { display: block; padding: 0; min-height: 0; }
  .index__scroller {
    margin-top: 26vh; overflow-x: auto; overflow-y: visible;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 18px 0 110px;
  }
  .index__scroller::-webkit-scrollbar { display: none; }
  .book { --w: 64vw; padding: 0 18vw; width: max-content; }
  .book__item { --w: 64vw; scroll-snap-align: center; }
  .print__caption { opacity: 1; transform: none; }
  .index__counter { display: block; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--gutter) + 44px); z-index: 41; color: var(--grey); }
  .index .corner--tl { max-width: 60vw; }
}

.muted-on-photo { opacity: .6; }
.hero__ig { z-index: 3; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { animation: none; }
  .kw { animation: none; opacity: .82; }
  .home .fade { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  body { opacity: 1; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* =====================================================================
   PROJECT PAGES
   ===================================================================== */
.project .corner { color: #fff; mix-blend-mode: difference; }
.project .corner .muted { color: #fff; opacity: .55; }

/* opening */
.p-open {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  align-content: end;
  padding: 140px var(--gutter) clamp(56px, 9vh, 110px);
}
.p-open__num { grid-column: 1 / -1; margin-bottom: 2.2rem; color: var(--grey); }
.p-open__title { grid-column: 1 / -1; font-size: clamp(54px, 9.5vw, 168px); line-height: .92; letter-spacing: -0.012em; margin-left: -0.04em; }
.p-open__meta {
  grid-column: 1 / 7; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(40px, 7vh, 80px); align-self: start;
}
.p-open__meta dt { color: var(--grey); margin-bottom: .35em; }
.p-open__meta dd { margin: 0; }
.p-open__text { grid-column: 8 / 13; margin-top: clamp(40px, 7vh, 80px); }
.p-open__summary { font-size: 15px; line-height: 1.6; margin-bottom: 1.4em; }
.p-open__concept { font-size: 13px; line-height: 1.75; color: #4a4845; max-width: 36em; }

.p-label { display: flex; align-items: center; gap: 1.2em; padding: 0 var(--gutter); margin: 0 0 clamp(40px, 7vh, 80px); color: var(--grey); }
.p-label::after { content: ""; flex: 1; height: 1px; background: var(--grey-2); }

/* gallery */
.gallery { display: flex; flex-direction: column; gap: clamp(64px, 14vh, 180px); }
.ph { position: relative; overflow: hidden; background: var(--paper-2); }
.ph img { width: 100%; height: auto; }

.p-after { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding: clamp(56px, 10vh, 120px) var(--gutter) 0; }
.p-credits { grid-column: 1 / 6; color: var(--grey); white-space: pre-line; }
.p-outcome { grid-column: 8 / 13; font-size: 13px; line-height: 1.75; color: #4a4845; }

/* film */
.film-sec { padding-top: clamp(100px, 18vh, 220px); }
.film {
  position: relative; margin: 0 var(--gutter); background: #0d0d0d; overflow: hidden; cursor: pointer;
  aspect-ratio: var(--ratio, 16 / 9); max-height: 88vh; margin-inline: auto; width: calc(100% - 2 * var(--gutter));
}
.film video, .film picture, .film picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film picture { transition: opacity 1s var(--ease); }
.film.is-started picture { opacity: 0; pointer-events: none; }
.film::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(10,10,10,.18); transition: opacity 1s var(--ease); }
.film.is-playing::after { opacity: 0; }
.film__play {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%; border: 1px solid rgba(243,241,237,.75);
  color: var(--on-photo); display: grid; place-items: center;
  transition: opacity .8s var(--ease), transform .8s var(--ease), background-color .8s var(--ease);
}
.film:hover .film__play { background-color: rgba(243,241,237,.08); transform: translate(-50%, -50%) scale(1.04); }
.film.is-playing .film__play { opacity: 0; }
.film.is-playing:hover .film__play { opacity: .9; }
.film__sound { position: absolute; left: 18px; top: 16px; z-index: 3; color: var(--on-photo); display: flex; align-items: center; gap: .7em; opacity: .85; }
.film__sound i { display: inline-flex; gap: 2px; align-items: flex-end; height: 9px; }
.film__sound i b { width: 1px; background: currentColor; height: 3px; }
.film.is-playing .film__sound i b { animation: eq 1.1s ease-in-out infinite alternate; }
.film.is-playing .film__sound i b:nth-child(2) { animation-delay: .3s; }
.film.is-playing .film__sound i b:nth-child(3) { animation-delay: .6s; }
@keyframes eq { from { height: 2px; } to { height: 9px; } }
.film__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 3; background: rgba(243,241,237,.18); }
.film__bar span { display: block; height: 100%; width: 0; background: var(--on-photo); }
.film-sec .p-label { margin-bottom: clamp(28px, 5vh, 48px); }

/* process divider */
.divider { display: flex; align-items: center; gap: 2em; padding: clamp(120px, 22vh, 260px) var(--gutter) clamp(60px, 10vh, 120px); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--grey-2); }

/* process */
.process { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding: 0 var(--gutter); align-items: start; }

/* next project */
.next { display: block; margin-top: clamp(140px, 26vh, 300px); padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(90px, 14vh, 160px); border-top: 1px solid var(--grey-2); position: relative; }
.next__label { color: var(--grey); margin-bottom: 1.6rem; }
.next__title { font-size: clamp(44px, 7vw, 120px); line-height: .95; letter-spacing: -0.01em; transition: transform 1.1s var(--ease); display: inline-block; }
.next:hover .next__title { transform: translateX(14px); }
.next__img { position: absolute; right: var(--gutter); bottom: clamp(90px, 14vh, 160px); width: clamp(120px, 14vw, 220px); transform: rotate(1.4deg); background: #FBFAF8; padding: 8px 8px 12px; box-shadow: 0 14px 24px -12px rgba(30,25,20,.3); transition: transform 1.1s var(--ease); }
.next__img .ph { aspect-ratio: 4 / 5; }
.next__img .ph img { height: 100%; object-fit: cover; }
.next:hover .next__img { transform: rotate(0) translateY(-6px); }

@media (max-width: 760px) {
  .p-open { padding-top: 120px; }
  .p-open__meta { grid-column: 1 / -1; grid-template-columns: repeat(3, auto); column-gap: 22px; }
  .p-open__text { grid-column: 1 / -1; margin-top: 2.4rem; }
  .gallery { gap: 56px; }
  .p-credits, .p-outcome { grid-column: 1 / -1; }
  .p-outcome { margin-top: 2rem; }
  .film { width: 100%; margin: 0; }
  .film__play { width: 72px; height: 72px; }
  .process { display: block; }
  .next__img { position: static; margin-top: 2.4rem; width: 46vw; }
}

@media (max-width: 760px) {
  .nav { flex-direction: column; gap: .5em; align-items: flex-end; }
  .project .corner--bl, .project .corner--br { display: none; }
}

/* ---------- PAPER GRAIN SITS BEHIND PHOTOS (photos stay untouched) ---------- */
.paper .grain { z-index: 0; }
.paper main, .paper .index__stage { position: relative; z-index: 1; }

/* ---------- JUSTIFIED IMAGE ROWS (finished work + process) ---------- */
.gallery { padding: 0 var(--gutter); display: block; }
.jset { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 20px); }
.jrow { display: flex; gap: clamp(12px, 1.4vw, 20px); width: 100%; margin: 0 auto; align-items: flex-start; }
.jitem { margin: 0; min-width: 0; }
.jitem figcaption { margin-top: .8em; color: var(--grey); display: flex; gap: 1.2em; }
.jset--narrow { display: none; }

/* ---------- PROCESS: open, typeset text ---------- */
.process { display: block; padding: 0 var(--gutter); }
.ptext {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  column-gap: clamp(28px, 3.4vw, 56px); row-gap: 48px;
  border-top: 1px solid var(--grey-2); padding-top: 28px;
}
.ptext__item h3 { display: flex; gap: 1.2em; margin-bottom: 1.1em; }
.ptext__item h3 span { color: var(--grey); }
.ptext__item p { font-size: 13.5px; line-height: 1.8; color: #3d3b38; max-width: 34em; }
.ptext__item p + p { margin-top: .9em; }
.process__closing { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; max-width: 22em; margin-top: clamp(56px, 9vh, 96px); }
.pimgs { margin-top: clamp(72px, 12vh, 140px); }

@media (max-width: 760px) {
  .jset--wide { display: none; }
  .jset--narrow { display: flex; }
  .gallery .jset, .pimgs .jset { gap: 10px; }
  .jrow { gap: 10px; }
  .ptext { grid-template-columns: 1fr; row-gap: 36px; }
}

/* =====================================================================
   PROJECTS INDEX — realistic prints + binder rings
   ===================================================================== */
.book__item + .book__item { margin-left: calc(var(--w) * 0.012); }
.print { position: relative; }
.print__frame {
  background-color: #FAF9F6;
  background-image:
    linear-gradient(160deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,0) 70%, rgba(60,50,40,.035) 100%),
    url("../img/paper.svg");
  background-size: auto, 300px 300px;
  box-shadow:
    0 0 0 .5px rgba(40,35,30,.12),
    0 1px 1px rgba(30,25,20,.14),
    0 3px 6px -2px rgba(30,25,20,.14),
    0 14px 22px -12px rgba(30,25,20,.30),
    0 30px 46px -28px rgba(30,25,20,.24);
}
.print__img { box-shadow: 0 0 0 1px rgba(30,25,20,.05); }
/* lifted-corner shadows under each print */
.print::before, .print::after {
  content: ""; position: absolute; z-index: -1; bottom: 14px; width: 44%; height: 22%;
  box-shadow: 0 16px 14px rgba(30,25,20,.20);
  transition: box-shadow 1s var(--ease), transform 1s var(--ease);
}
.print::before { left: 5%; transform: rotate(calc(var(--tilt) - 3deg)); }
.print::after { right: 5%; transform: rotate(calc(var(--tilt) + 3deg)); }
@media (hover: hover) {
  .print:hover .print__frame, .print:focus-visible .print__frame {
    transform: translateY(calc(var(--y) - 6px)) rotate(0deg);
    box-shadow:
      0 0 0 .5px rgba(40,35,30,.12),
      0 2px 2px rgba(30,25,20,.12),
      0 8px 14px -4px rgba(30,25,20,.16),
      0 26px 36px -16px rgba(30,25,20,.30),
      0 46px 64px -34px rgba(30,25,20,.26);
  }
  .print:hover::before, .print:hover::after { box-shadow: 0 24px 20px rgba(30,25,20,.16); }
}

/* rings: holes sit on the border of the previous print and of this print */
.ring {
  position: absolute; z-index: 10; pointer-events: none;
  left: calc(var(--w) * -0.0915); width: calc(var(--w) * 0.171); min-width: 0; height: auto;
  transform: translateY(-70%); filter: none;
}

/* =====================================================================
   PROJECT PAGES — varied gallery, capped to the screen so nothing
   needs scrolling to be seen whole; tighter spacing between rows
   ===================================================================== */
.gallery { display: flex; flex-direction: column; gap: clamp(36px, 7vh, 88px); padding: 0; }
.row { padding: 0 var(--gutter); display: flex; }
.row .ph { flex: 0 0 auto; }
.row--full { justify-content: center; }
.row--full .ph { width: min(100%, calc(90vh * var(--r))); }
.row--large { justify-content: center; }
.row--large .ph { width: min(72vw, calc(82vh * var(--r))); }
.row--small { justify-content: center; }
.row--small .ph { width: min(26vw, calc(58vh * var(--r))); }
.row--small .ph.is-landscape { width: min(40vw, calc(58vh * var(--r))); }
.row--left { justify-content: flex-start; padding-left: calc(var(--gutter) + 8vw); }
.row--right { justify-content: flex-end; padding-right: calc(var(--gutter) + 8vw); }
.row--left .ph, .row--right .ph { width: min(36vw, calc(72vh * var(--r))); }
.row--pair { justify-content: center; align-items: flex-end; gap: clamp(20px, 4vw, 72px); }
.row--pair .ph:first-child { width: min(40%, calc(78vh * var(--r))); }
.row--pair .ph:last-child { width: min(46%, calc(78vh * var(--r))); margin-bottom: 6vh; }
.row--pair .ph.is-landscape:last-child { margin-bottom: 0; }
.p-after { padding-top: clamp(40px, 7vh, 80px); }
.p-outcome { grid-column: 1 / 7; }

/* process: words on the side, photos scrolling past */
.process { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding: 0 var(--gutter); align-items: start; }
.pcol { grid-column: 1 / 6; position: sticky; top: 110px; }
.pt__btn { width: 100%; display: flex; align-items: baseline; gap: 1.6em; padding: .9em 0; text-align: left; }
.pt__btn .n { color: var(--grey); min-width: 2em; }
.pt__btn .arr { display: inline-block; font-size: 13px; letter-spacing: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); opacity: .55; }
.pt__btn:hover .arr { opacity: 1; transform: translateX(4px); }
.pt.is-open .arr { transform: rotate(90deg); opacity: 1; }
.pt.is-open .pt__btn:hover .arr { transform: rotate(90deg); }
.pt__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.pt__panel > div { overflow: hidden; }
.pt.is-open .pt__panel { grid-template-rows: 1fr; }
.pt__panel p { font-size: 14px; line-height: 1.8; color: #3d3b38; padding: .2em 0 1.4em 3.6em; max-width: 34em; }
.pt__panel p + p { margin-top: -0.6em; }
.pimgs-col { grid-column: 7 / 13; display: flex; flex-direction: column; gap: clamp(48px, 9vh, 110px); }
.pimgs-col figure { margin: 0; }
.pimgs-col figure:nth-child(3n+2) { width: 72%; margin-left: auto; }
.pimgs-col figure:nth-child(3n) { width: 84%; }
.pimgs-col .ph { width: fit-content; max-width: 100%; background: none; }
.pimgs-col .ph img { max-height: 82vh; width: auto; max-width: 100%; }
.pimgs-col figcaption { margin-top: .9em; color: var(--grey); display: flex; gap: 1.4em; }

/* ---------- NO LINES ANYWHERE ---------- */
.p-label::after, .divider::before, .divider::after,
.nav a::after, .link-quiet::after { display: none !important; }
.divider { justify-content: center; }
.next { border-top: 0; }
.print__img { box-shadow: none; }
.print__frame { box-shadow:
    0 1px 1px rgba(30,25,20,.14),
    0 3px 6px -2px rgba(30,25,20,.14),
    0 14px 22px -12px rgba(30,25,20,.30),
    0 30px 46px -28px rgba(30,25,20,.24); }
.nav a { opacity: .6; } .nav a:hover, .nav a[aria-current="page"] { opacity: 1; }

@media (max-width: 760px) {
  .gallery { gap: 40px; }
  .row--large .ph { width: 100%; }
  .row--small .ph { width: 62vw; }
  .row--small .ph.is-landscape { width: 82vw; }
  .row--left { padding-left: var(--gutter); } .row--right { padding-right: var(--gutter); }
  .row--left .ph, .row--right .ph { width: 78vw; }
  .row--pair { flex-direction: column; align-items: stretch; gap: 40px; }
  .row--pair .ph:first-child, .row--pair .ph:last-child { width: 82%; margin: 0; }
  .row--pair .ph:last-child { margin-left: auto; }
  .p-outcome { grid-column: 1 / -1; }
  .process { display: block; }
  .pcol { position: static; }
  .pt__panel p { padding-left: 0; }
  .pimgs-col { margin-top: 56px; gap: 44px; }
  .pimgs-col figure, .pimgs-col figure:nth-child(n) { width: 100%; }
}

/* =====================================================================
   WHITE PAGES, FULL-BLEED ROWS, SCROLL FADE-INS
   ===================================================================== */
.paper { background-image: none; background-color: #fff; }
.grain { opacity: .05; }

/* full rows run edge to edge again */
.row--full { padding: 0; }
.row--full .ph { width: 100%; max-width: none !important; }

/* gentle fade + rise as things scroll into view */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.6s var(--ease), transform 1.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.row--pair .ph:last-child.reveal { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }


[hidden] { display: none !important; }

/* Projects page: prints sit in black and white, colour returns on hover */
@media (hover: hover) {
  .print__img img { filter: grayscale(1); transition: filter 1.1s cubic-bezier(.2,.6,.2,1); }
  .print:hover .print__img img, .print:focus-visible .print__img img { filter: grayscale(0); }
}


/* =====================================================================
   EDITORIAL / MINIMAL — from workspagereference, layoutreference,
   scrollreference, titlepage: flat off-white, small type, space.
   ===================================================================== */
:root {
  --paper: #F6F6F2;      /* sampled from workspagereference */
  --paper-2: #ECECE7;
  --ink: #161616;
  --grey: #8E8E89;
}
body { color: var(--ink); }
.paper { background-color: var(--paper); background-image: none; }
.paper .grain { display: none; }
.corner--tc { top: 0; left: 50%; transform: translateX(-50%); }
.corner--tc:hover { opacity: .55; }
.corner--tc { transition: opacity .6s var(--ease); }

/* (01) numbering on section labels */
.p-label, .divider { color: var(--ink); }
.p-label span, .divider span { color: var(--grey); margin-right: 1.4em; }

/* ---------- PROJECTS PAGE: one row of black-and-white frames ---------- */
.works { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); }
.works::-webkit-scrollbar { display: none; }
.strip { list-style: none; margin: 0 auto; padding: 22vh 0; display: flex; align-items: flex-end; gap: clamp(10px, 1.1vw, 18px); }
.strip__item { position: relative; flex: 0 0 auto; width: clamp(96px, 8.6vw, 150px); transition: opacity .8s var(--ease); }
.strip__item.is-first:not(:first-child) { margin-left: clamp(16px, 1.8vw, 32px); }
.strip__item a { display: block; outline-offset: 6px; }
.strip__num { display: block; margin-bottom: .9em; color: var(--grey); font-size: 9.5px; }
.strip__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); transition: transform 1s var(--ease); }
.strip__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.strip__title { display: none; }
.strip__info {
  position: fixed; z-index: 41; left: 50%; bottom: var(--gutter); transform: translate(-50%, 6px);
  text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.strip__info.is-shown { opacity: 1; transform: translate(-50%, 0); }
.strip__info span { display: block; color: var(--grey); }
.strip__info .display { color: var(--ink); font-size: clamp(20px, 1.7vw, 28px); line-height: 1.15; letter-spacing: 0; text-transform: none; margin-top: .35em; }
@media (hover: hover) {
  .strip__item:hover { z-index: 5; }
  .strip__item:hover .strip__img, .strip__item:focus-within .strip__img { transform: scale(1.9); }
  .strip[data-active] .strip__item:not(.is-on) { opacity: .28; }
}

/* ---------- PROJECT OPENING: words left, photo to the top edge ---------- */
.p-open {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  min-height: 100vh; min-height: 100svh; align-items: end;
  padding: 0 var(--gutter) clamp(56px, 9vh, 110px);
}
.p-open__words { grid-column: 1 / 7; padding-top: 150px; }
.p-open__num { margin-bottom: 1.8rem; }
.p-open__title { font-size: clamp(50px, 7.4vw, 140px); }
.p-open__text { margin-top: clamp(32px, 6vh, 64px); max-width: 32em; }
.p-open__pic { grid-column: 8 / 13; justify-self: end; align-self: start; position: relative; }
.p-open.is-landscape .p-open__pic { grid-column: 7 / 13; margin-top: 22vh; }
.p-open__img img { height: min(86vh, 86svh); width: auto; max-width: 100%; object-fit: cover; }
.p-open.is-landscape .p-open__img img { height: auto; width: 100%; }
.p-open__meta {
  position: absolute; left: -1.5em; bottom: 0; margin: 0;
  display: flex; gap: 2.6em; white-space: nowrap;
  transform-origin: left bottom; transform: rotate(-90deg);
}
.p-open__meta div { display: flex; gap: .8em; }
.p-open__meta dt { color: var(--grey); margin: 0; }

/* ---------- PROCESS: words on the left, one column of photos scrolling past ---------- */
.pcol { grid-column: 1 / 5; }
.pimgs-col { grid-column: 6 / 11; gap: clamp(12px, 1.4vw, 20px); }
.pimgs-col figure:nth-child(n) { width: 100%; margin-left: 0; }
.pimgs-col .ph { margin: 0 auto; }
.pimgs-col figcaption { margin-bottom: clamp(8px, 1.4vh, 16px); }
.vellum .process__closing, .process__closing { font-size: clamp(20px, 1.8vw, 27px); }

/* ---------- NEXT PROJECT: split screen ---------- */
.next { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; padding: 0; margin-top: clamp(140px, 26vh, 300px); }
.next__img {
  position: relative; right: auto; bottom: auto; width: auto; transform: none;
  padding: 0; box-shadow: none; background: var(--paper-2); overflow: hidden;
}
.next__img picture, .next__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.next__img img { transition: transform 2.4s var(--ease); }
.next:hover .next__img { transform: none; }
.next:hover .next__img img { transform: scale(1.03); }
.next__words { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 clamp(32px, 6vw, 110px); }
.next__label { display: block; color: var(--grey); margin-bottom: 1.6rem; }
.next__go { display: inline-block; margin-top: 2.6rem; }
.next__go span { display: inline-block; margin-left: .5em; transition: transform .8s var(--ease); }
.next:hover .next__go span { transform: translateX(6px); }

/* =====================================================================
   ABOUT — photo left, words right
   ===================================================================== */
.ab { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; padding: 0; }
.ab__photo { position: relative; overflow: hidden; background: var(--paper-2); }
.ab__photo picture, .ab__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab__card { align-self: center; padding: 140px clamp(32px, 6vw, 110px) 110px; }
.ab__title { font-size: clamp(46px, 5.6vw, 96px); line-height: .92; letter-spacing: -0.012em; margin: 0 0 clamp(26px, 4vh, 44px) -0.04em; }
.ab__bio p { font-size: 15px; line-height: 1.8; max-width: 32em; }
.ab__facts { margin: clamp(30px, 5vh, 52px) 0 0; display: grid; row-gap: 18px; }
.ab__facts > div { display: grid; grid-template-columns: 11em 1fr; column-gap: 1.6em; align-items: baseline; }
.ab__facts dt { color: var(--grey); margin: 0; }
.ab__facts dd { margin: 0; font-size: 14px; line-height: 1.65; }
.ab__list { list-style: none; margin: 0; padding: 0; text-transform: lowercase; }
.ab__more { display: inline-block; margin-top: clamp(30px, 5vh, 52px); }
.ab__more span { display: inline-block; margin-left: .5em; transition: transform .8s var(--ease); }
.ab__more:hover span { transform: translateX(5px); }

/* =====================================================================
   CONTACT — full-bleed photograph, details in small columns
   ===================================================================== */
.contact { background: #1a1918; color: var(--on-photo); }
.ct { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.ct__img, .ct__img picture, .ct__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct__img img { object-fit: cover; }
.ct::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.18) 55%, rgba(10,10,10,.08) 100%), rgba(10,10,10,.12); }
.ct__layer { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%); }
.ct__title { font-size: clamp(54px, 8.5vw, 156px); line-height: .92; letter-spacing: -0.012em; margin: 0 0 clamp(36px, 7vh, 72px) -0.04em; }
.ct__list { margin: 0; display: flex; flex-wrap: wrap; column-gap: clamp(40px, 6vw, 96px); row-gap: 26px; }
.ct__list dt { opacity: .62; margin-bottom: .6em; }
.ct__list dd { margin: 0; white-space: nowrap; }
.ct__list a { transition: opacity .6s var(--ease); }
.ct__list a:hover { opacity: .6; }
.contact .corner { color: var(--on-photo); }
.contact .corner .muted { color: var(--on-photo); opacity: .6; }

/* ---------- MOBILE ---------- */
@media (max-width: 760px) {
  .works { display: block; padding: 0; }
  .strip { width: max-content; margin: 0; padding: 30vh var(--gutter) 120px; align-items: flex-start; scroll-snap-type: x mandatory; }
  .works { scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .strip__item { width: 40vw; scroll-snap-align: start; }
  .strip__title { display: block; font-size: 16px; line-height: 1.2; margin-top: .7em; }
  .strip__info { display: none; }
  .corner--tc { display: none; }

  .p-open { display: block; padding-bottom: 64px; }
  .p-open__words { padding-top: 120px; }
  .p-open__pic, .p-open.is-landscape .p-open__pic { margin-top: 48px; }
  .p-open__img img { height: auto; width: 100%; }
  .p-open__meta { position: static; transform: none; flex-wrap: wrap; gap: 1em 2em; margin-bottom: 18px; }
  .pimgs-col { margin-top: 48px; gap: 12px; }

  .next { display: block; min-height: 0; }
  .next__img { position: relative; display: block; height: 72vw; margin: 0; width: 100%; }
  .next__words { padding: 48px var(--gutter) 90px; }

  .ab { display: block; }
  .ab__photo { height: 78vh; }
  .ab__card { padding: 48px var(--gutter) 90px; }
  .ab__facts > div { grid-template-columns: 1fr; row-gap: .4em; }
  .ct__list { flex-direction: column; row-gap: 22px; }
}

/* =====================================================================
   PROJECT PAGES — titlepage / worksandlayout / layoutreferencelearnmore
   ===================================================================== */
/* cover: one huge line of title, the photo laid over its centre */
.p-cover { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.p-cover__title {
  position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); top: 50%;
  transform: translateY(-50%); margin: 0; white-space: nowrap; text-align: center;
  line-height: .9; letter-spacing: -0.02em;
  opacity: 0; animation: cover-in 2s var(--ease) .2s forwards;
}
.p-cover__title span { display: inline-block; }
.p-cover__img {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 24px));
  opacity: 0; animation: cover-rise 1.8s var(--ease) .7s forwards;
}
.p-cover__img img { height: 64vh; height: 64svh; width: auto; max-width: 60vw; object-fit: cover; }
.p-cover.is-landscape .p-cover__img img { height: auto; width: min(50vw, calc(64vh * 1.5)); }
@keyframes cover-in { to { opacity: 1; } }
@keyframes cover-rise { to { opacity: 1; transform: translate(-50%, -50%); } }
.p-cover__meta {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + 34px);
  margin: 0; display: flex; justify-content: space-between; gap: 2em;
}
.p-cover__meta div { display: flex; gap: .8em; white-space: nowrap; }
.p-cover__meta dt { color: var(--grey); margin: 0; }
.p-cover__meta dd { margin: 0; }

/* intro: summary in Alga, concept small beside it */
.p-intro {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start;
  padding: clamp(100px, 18vh, 200px) var(--gutter) clamp(100px, 16vh, 180px);
}
.p-intro__summary { grid-column: 1 / 7; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.22; letter-spacing: 0; }
.p-intro__concept { grid-column: 8 / 12; font-size: 13.5px; line-height: 1.8; color: #4a4a47; padding-top: .5em; }

/* split row: first photo fills the left half, the second sits small on the right */
.row--split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; min-height: 100vh; min-height: 100svh; align-items: center; }
.split__bleed { position: relative; align-self: stretch; overflow: hidden; }
.split__bleed .ph { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none !important; }
.split__bleed .ph img { width: 100%; height: 100%; object-fit: cover; }
.split__small { justify-self: center; margin: 0; }
.split__small .ph { width: min(24vw, calc(60vh * var(--r))); background: none; }
.cell__code { display: block; color: var(--grey); margin-top: 1em; }

/* strip row: a quiet line of small numbered photos */
.row--strip { justify-content: center; align-items: flex-end; gap: clamp(12px, 1.4vw, 22px); padding-top: 4vh; padding-bottom: 4vh; }
.row--strip .cell { position: relative; margin: 0; width: clamp(130px, 15vw, 250px); transition: opacity .8s var(--ease); }
.row--strip .cell__code { margin: 0 0 .9em; }
.row--strip .ph { width: 100%; max-width: none !important; aspect-ratio: 3 / 4; transition: transform 1s var(--ease); }
.row--strip .ph img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  .row--strip .cell:hover { z-index: 5; }
  .row--strip .cell:hover .ph { transform: scale(1.4); }
  .row--strip:hover .cell:not(:hover) { opacity: .3; }
}

/* film runs edge to edge */
.film-sec .film { width: 100%; margin: 0; max-height: none; }

/* next: big photo left, small photo + title right */
.next__small { display: block; width: clamp(120px, 12vw, 200px); aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: clamp(32px, 6vh, 64px); background: var(--paper-2); }
.next__small picture, .next__small img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .p-cover__img img { height: auto; max-width: none; width: 66vw; max-height: 58svh; }
  .p-cover.is-landscape .p-cover__img img { width: 84vw; }
  .p-cover__meta { flex-wrap: wrap; justify-content: flex-start; gap: .4em 1.6em; bottom: var(--gutter); }
  .p-cover__meta div:first-child { display: none; }
  .p-intro { display: block; padding: 80px var(--gutter); }
  .p-intro__concept { margin-top: 28px; }
  .row--split { display: block; min-height: 0; }
  .split__bleed { height: 120vw; }
  .split__small { display: block; width: 64vw; margin: 44px auto 0; }
  .split__small .ph { width: 100%; }
  .row--strip { flex-wrap: wrap; gap: 14px; }
  .row--strip .cell { width: calc(50% - 7px); }
}
@media (max-width: 760px) {
  /* phones: title wraps large above the photo, the photo just overlaps its last line */
  .p-cover { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 110px var(--gutter) 90px; height: auto; min-height: 100svh; }
  .p-cover__title { position: relative; left: auto; right: auto; top: auto; transform: none; white-space: normal; font-size: 16vw !important; line-height: .9; }
  .p-cover__img { position: relative; left: auto; top: auto; transform: translateY(24px); margin-top: -.6em; animation-name: cover-rise-m; }
  @keyframes cover-rise-m { to { opacity: 1; transform: none; } }
  .p-cover__meta { position: absolute; }
}

/* cover: the letters behind the photo stay readable, blended softly into it */
.p-cover__img { overflow: hidden; }
.p-cover__img picture, .p-cover__img img { display: block; }
.p-cover__ghost {
  position: absolute; margin: 0; white-space: nowrap; text-align: center; pointer-events: none;
  color: rgba(246, 246, 242, .45);   /* paper-coloured and see-through: the photo shows through the letters */
}
.p-cover__ghost span { display: inline-block; }
@media (max-width: 760px) { .p-cover__ghost { white-space: normal; } }

/* ABOUT — her portrait fills the left half; name, bio and links on the right */
.ab__photo img { object-position: 40% 30%; }
.ab__card { max-width: 52em; }
.ab__kicker { color: var(--grey); margin: 0 0 clamp(18px, 3vh, 30px); }
.ab__title { font-size: clamp(44px, 5vw, 88px); }
.ab__bio p { font-family: alga, serif; font-weight: 300; font-size: clamp(18px, 1.45vw, 23px); line-height: 1.5; letter-spacing: 0; max-width: 27em; }
.ab__links { margin: clamp(40px, 7vh, 72px) 0 0; display: flex; flex-wrap: wrap; column-gap: clamp(22px, 2.1vw, 40px); row-gap: 22px; }
.ab__links dt { color: var(--grey); margin: 0 0 .6em; }
.ab__links dd { margin: 0; white-space: nowrap; }
.ab__links a { transition: opacity .6s var(--ease); }
.ab__links a:hover { opacity: .6; }
@media (max-width: 760px) {
  .ab__photo { height: auto; aspect-ratio: 1821 / 2150; }
  .ab__bio p { font-size: 18px; }
  .ab__links { flex-direction: column; }
}

/* CINEMA — the page fades to black while a film plays */
.cinema {
  position: fixed; inset: 0; z-index: 60; background: #000;
  opacity: 0; pointer-events: none; transition: opacity 1.4s var(--ease);
}
.is-cinema .cinema { opacity: 1; pointer-events: auto; cursor: pointer; }
.is-cinema main { z-index: 45; }            /* lift the page above the corner text so it goes dark too */
.film.is-lit { z-index: 61; }
@media (prefers-reduced-motion: reduce) { .cinema { transition-duration: .3s; } }
