:root {
  --bg: #0b0b0a;
  --ink: #ebe9e5;
  --dim: rgba(235, 233, 229, 0.66);
  --line: rgba(236, 232, 225, 0.18);
  --accent: #c9a46a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
}
/* Fashion pages switch to a white room, as the deck does */
body.light {
  --bg: #f3f2ef;
  --ink: #161513;
  --dim: rgba(22, 21, 19, 0.62);
  --line: rgba(22, 21, 19, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  transition: background 0.6s ease, color 0.6s ease;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------- stage (background stills) ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s; }
body.is-index .stage { opacity: 1; }
.stage-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.1s ease, transform 8s linear;
  transform: scale(1.04);
}
.stage-img.on { opacity: 1; transform: scale(1); }
.stage-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,7,0.82) 0%, rgba(8,8,7,0.45) 55%, rgba(8,8,7,0.25) 100%);
}

/* ---------- frame + title block ---------- */
.sheet-frame { position: fixed; inset: 12px; z-index: 5; pointer-events: none; }
.tick { position: absolute; width: 14px; height: 14px; border-color: var(--dim); border-style: solid; border-width: 0; }
.tick.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.tick.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.tick.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.tick.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.title-block {
  position: fixed; right: 28px; bottom: 28px; z-index: 6;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
}
.title-block { transition: opacity 0.4s; }
body.tb-hide .title-block { opacity: 0; pointer-events: none; }
.title-block div { display: grid; grid-template-columns: 78px 150px; border-bottom: 1px solid var(--line); }
.title-block div:last-child { border-bottom: 0; }
.tb-k, .tb-v { padding: 5px 8px; }
.tb-k { color: var(--dim); border-right: 1px solid var(--line); }
.tb-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 26px var(--gutter);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
  color: var(--ink);
}
/* On project pages the header slides away while reading down, back on scroll up */
.top.tucked { transform: translateY(-100%); }
.top nav { display: flex; gap: 22px; align-items: baseline; }
.top nav a, .lang { color: var(--dim); transition: color 0.2s; }
.top nav a:hover, .top nav a.active, .lang:hover { color: var(--ink); }
.lang { font-size: 13px; letter-spacing: 0.1em; border: 1px solid var(--line); padding: 3px 7px; }
/* Over a project's opening photo the header is always light; once past it, it sits on the page colour */
.top.on-photo, .top.on-photo nav a, .top.on-photo .lang { color: #f2f1ee; border-color: rgba(242,241,238,0.4); }
.top.on-photo nav a { opacity: 0.75; }
.top.solid { background: var(--bg); }

main { position: relative; z-index: 2; }

/* ---------- index ---------- */
.index { padding: 120px var(--gutter) 160px; min-height: 100vh; }
.filters {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 42px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.filters button { color: var(--dim); padding: 2px 0; border-bottom: 1px solid transparent; }
.filters button.on { color: var(--ink); border-color: var(--ink); }
.filters sup { font-size: 13px; margin-left: 3px; }

.credits { list-style: none; }
.credit a {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 0 18px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid transparent;
  transition: opacity 0.35s, border-color 0.35s;
}
.credits.hovering .credit a { opacity: 0.4; }
.credits.hovering .credit.active a { opacity: 1; border-color: var(--line); }
.c-no { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.c-title {
  font-size: clamp(26px, 3.6vw, 50px); line-height: 1.05; font-weight: 300;
  letter-spacing: 0.01em;
}
.credit.active .c-title { font-style: italic; }
.c-meta {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--dim); text-align: right; line-height: 1.6;
}
.credit.active .c-meta { color: var(--ink); }
.c-sec { display: block; color: var(--accent); }

.section-head {
  margin: 34px 0 10px 62px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.section-head:first-child { margin-top: 0; }

.intro { max-width: 980px; margin-bottom: 72px; }
.intro h1 { font-size: clamp(56px, 9vw, 150px); font-weight: 300; line-height: 0.9; letter-spacing: -0.02em; }
.intro p { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; max-width: 30em; margin-top: 28px; }
.intro .cta {
  display: inline-block; margin-top: 32px; padding: 14px 26px;
  background: var(--ink); color: var(--bg); font-size: 18px; transition: background 0.2s, color 0.2s;
}
.intro .cta:hover, .intro .cta:focus-visible { background: var(--accent); color: #0b0b0a; }

/* ---------- wall (homepage) ---------- */
/* A plaster-grey studio wall; stills sit on it flat, like prints pinned to a reference board */
/* About and Contact hang on the same wall, so the three pages read as one room */
body.is-wall, body.is-plaster {
  --bg: #d6d3cc; --ink: #151412; --dim: rgba(21, 20, 18, 0.66); --line: rgba(21, 20, 18, 0.2);
}
body.is-wall { overflow: hidden; }
.wall { position: fixed; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.wall.dragging { cursor: grabbing; }
.wall-plane { position: absolute; inset: 0; }
.tile { position: absolute; left: 0; top: 0; display: block; will-change: transform; transition: opacity 0.45s ease; }
.tile img {
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  opacity: 0; transform: scale(0.86);
  transition: opacity 0.9s ease var(--d, 0ms), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}
.wall.ready .tile img { opacity: 1; transform: none; }
/* Coming back from a project the wall is simply there again, no second entrance */
.wall.back .tile img { transition-delay: 0ms; transition-duration: 0.35s; }
.wall.ready .tile:hover img { transform: scale(1.04); transition-delay: 0ms; transition-duration: 0.5s; }
.wall.focusing .tile { opacity: 0.16; }
.wall.focusing .tile.on { opacity: 1; }
.tile.big { z-index: 2; }
.wall.focusing .tile.on { z-index: 3; }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* The gallery label: who she is by default, the project's details on hover */
/* On the wall the header sits on two paper chips, so it reads over any photo */
body.is-wall .top, body.is-plaster .top { padding: 18px var(--gutter); }
body.is-wall .top .name, body.is-wall .top nav, body.is-plaster .top .name, body.is-plaster .top nav { background: #f4f3ef; padding: 10px 14px; }
body.is-wall .top nav, body.is-plaster .top nav { gap: 18px; }
.label {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 6; width: min(440px, calc(100vw - 32px));
  background: #f4f3ef; color: #151412; padding: 22px 24px 20px; pointer-events: auto; cursor: auto;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both;
}
.label h1 { font-size: clamp(40px, 4vw, 58px); font-weight: 300; line-height: 0.95; letter-spacing: -0.01em; }
.label h2 { font-size: clamp(30px, 3vw, 44px); font-weight: 300; line-height: 1; margin: 8px 0 10px; }
.label p { font-size: 19px; line-height: 1.4; margin-top: 12px; }
.label h2 + p { margin-top: 0; }
.label-row { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.label .cta { display: inline-block; padding: 11px 20px; background: #151412; color: #f4f3ef; font-size: 17px; transition: background 0.2s; }
.label .cta:hover, .label .cta:focus-visible { background: #6b5a3e; }
.label .hint, .label-no, .label-meta { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(21, 20, 18, 0.6); }
.label-meta { display: block; margin-top: 14px; }
a.label-meta:hover, a.label-meta:focus-visible { color: #151412; }

/* ---------- project ---------- */
.project { padding-bottom: 120px; }
.p-hero { position: relative; }
/* Full-screen opening still, title sitting on it */
.p-hero.cover { height: 100vh; height: 100svh; overflow: hidden; }
.p-hero.cover img { width: 100%; height: 100%; object-fit: cover; }
.p-hero.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55)); }
.p-hero.cover .p-head { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; z-index: 1; color: #f2f1ee; }
/* Opening still shown whole: beside the title when it is upright, above it when it is wide */
.p-hero.whole { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px clamp(24px, 4vw, 64px); padding: 112px var(--gutter) 0; }
.p-hero.whole img { flex: 0 1 auto; min-width: 0; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); }
.p-hero.whole .p-head { flex: 1 1 300px; }
.p-head h1 { font-size: clamp(40px, 7vw, 110px); font-weight: 300; line-height: 0.95; max-width: 14ch; }
/* What the project is, in plain words, on the first screen */
.p-sub { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.3; margin-top: clamp(10px, 1.2vw, 18px); }

/* Full credits and where to watch it: label over value, no box */
.p-facts { display: flex; flex-wrap: wrap; gap: 28px clamp(40px, 7vw, 110px); margin: clamp(30px, 4vw, 56px) var(--gutter) 0; }
.p-facts dt { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.p-facts dd { font-size: clamp(19px, 1.5vw, 22px); font-weight: 400; line-height: 1.5; }
.p-facts a { border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.p-facts a:hover, .p-facts a:focus-visible { border-color: var(--ink); }
/* The page ends with a way to hire her and a way back to everything else */
.p-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin: clamp(48px, 6vw, 84px) var(--gutter) 0; }
.p-end .cta { display: inline-block; padding: 14px 26px; font-size: 19px; font-weight: 400; line-height: 1.2; background: var(--ink); color: var(--bg); transition: background 0.2s; }
.p-end .cta:hover, .p-end .cta:focus-visible { background: var(--accent); color: #0b0b0a; }
.p-all { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding: 12px 0; border-bottom: 1px solid transparent; transition: color 0.2s; }
.p-all:hover, .p-all:focus-visible { color: var(--ink); }
.p-note { margin: 28px var(--gutter) 0; max-width: 60ch; font-size: 19px; font-style: italic; }

.gallery { display: flex; flex-direction: column; gap: clamp(16px, 3vw, 40px); margin: clamp(48px, 8vw, 110px) var(--gutter) 0; }
.g-row { display: flex; gap: clamp(16px, 3vw, 40px); align-items: flex-start; }
.g-row.single { justify-content: center; }
.g-row.single figure { max-width: 1240px; }
.g-row.single.tall figure { max-width: 620px; }
.g-row.offset { padding-left: 14%; }
.g-row figure { flex: 1 1 0; min-width: 0; }
.g-row img { width: 100%; height: auto; opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.g-row img.seen { opacity: 1; transform: none; }
figcaption { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--dim); margin-top: 8px; text-transform: uppercase; }

.p-nav {
  display: flex; justify-content: space-between; gap: 20px;
  margin: clamp(80px, 12vw, 160px) var(--gutter) 0; padding-top: 18px; border-top: 1px solid var(--line);
}
.p-nav a { max-width: 45%; }
.p-nav .k { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.p-nav .t { font-size: clamp(22px, 3vw, 38px); line-height: 1.05; }
.p-nav a:hover .t { font-style: italic; }
.p-nav .next { text-align: right; }

/* ---------- about ---------- */
/* Reading order: who she is, what working with her is like, who has hired her, how to reach her */
.about { max-width: 1360px; margin: 0 auto; padding: clamp(130px, 17vh, 190px) var(--gutter) 140px; }
.a-head { margin-bottom: clamp(44px, 6vw, 92px); }
.a-head h1 { font-size: clamp(56px, 10.5vw, 156px); font-weight: 300; line-height: 0.88; letter-spacing: -0.025em; }
.a-title { font-size: clamp(22px, 2.3vw, 32px); font-style: italic; line-height: 1.25; margin-top: clamp(16px, 2vw, 26px); color: var(--dim); }

.a-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
/* The portrait is shown whole, like a print on the wall, and scrolls with the page */
.a-portrait img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 150px); }
.a-bio { max-width: 36em; }
.a-bio p { font-size: clamp(19px, 1.5vw, 22px); font-weight: 400; line-height: 1.55; margin-bottom: 0.95em; }
.a-bio .lead { font-size: clamp(25px, 2.7vw, 38px); font-weight: 300; line-height: 1.22; letter-spacing: -0.005em; margin-bottom: 1.1em; }
.a-bio p:last-child { font-style: italic; font-size: clamp(22px, 2vw, 28px); font-weight: 300; margin: 1.4em 0 0; }

/* Label on the left, content on the right; shared with the Contact page.
   No rules between the rows: space and the jump in type size do the separating */
.a-rows { margin-top: clamp(80px, 11vw, 160px); }
.a-row { display: grid; grid-template-columns: minmax(120px, 2.4fr) minmax(0, 9.6fr); gap: 8px 24px; align-items: baseline; }
.a-row + .a-row { margin-top: clamp(36px, 4.6vw, 68px); }
.a-row dt { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.a-row dd { font-size: clamp(19px, 1.5vw, 22px); font-weight: 400; line-height: 1.5; }
.a-row dd p { max-width: 36em; }
.a-list { list-style: none; }
.a-list li { display: inline; }
.a-list li:not(:last-child)::after { content: ','; }
/* Clients: the work itself, as a row of prints with the client's name under each, then the other names */
.a-wide { grid-template-columns: 1fr; gap: clamp(18px, 2vw, 28px); }
.a-prints { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(22px, 2.8vw, 40px) clamp(12px, 1.6vw, 22px); --h: clamp(150px, 16vw, 230px); }
.a-prints::after { content: ''; flex-grow: 1000; } /* keeps a short last row from stretching */
.a-prints li { flex: var(--ar) 1 calc(var(--ar) * var(--h)); min-width: 0; }
.a-prints a { display: block; }
.a-prints img { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; transition: opacity 0.3s ease; }
.a-prints:hover img { opacity: 0.55; }
.a-prints a:hover img, .a-prints a:focus-visible img { opacity: 1; }
.a-prints span { display: block; margin-top: 10px; font-size: clamp(20px, 1.8vw, 27px); font-weight: 300; line-height: 1.15; }
.a-clients { margin-top: clamp(30px, 3.6vw, 52px); font-size: clamp(27px, 3.5vw, 50px); font-weight: 300; line-height: 1.18; letter-spacing: -0.01em; }
.a-row a { border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.a-row a:hover, .a-row a:focus-visible { border-color: var(--ink); }
.a-row .a-prints a { border-bottom: 0; }

/* The page ends on the one thing to do next, as the last row of the same list */
.a-row + .a-reach { margin-top: clamp(64px, 8.5vw, 124px); }
.a-row .a-mail { border-bottom: 0; }
.a-mail, .c-mail { display: inline-block; font-weight: 300; line-height: 1; letter-spacing: -0.02em; text-decoration: underline transparent 1px; text-underline-offset: 0.14em; transition: text-decoration-color 0.25s; }
.a-mail:hover, .a-mail:focus-visible, .c-mail:hover, .c-mail:focus-visible { text-decoration-color: currentColor; }
.a-mail { font-size: clamp(27px, 4.6vw, 66px); }
.a-close-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: clamp(22px, 3vw, 38px); }
.a-social { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.a-social a { color: var(--ink); border-bottom: 1px solid var(--line); }
.a-social a:hover, .a-social a:focus-visible { border-color: var(--ink); }

.about .cta, .contact-page .cta {
  display: inline-block; padding: 14px 26px; font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.2;
  background: #151412; color: #f4f3ef; border: 1px solid #151412; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.about .cta:hover, .about .cta:focus-visible, .contact-page .cta:hover, .contact-page .cta:focus-visible { background: #6b5a3e; border-color: #6b5a3e; color: #f4f3ef; }
.contact-page .cta.ghost { background: transparent; color: #151412; min-width: 10.5em; text-align: center; }
.contact-page .cta.ghost:hover, .contact-page .cta.ghost:focus-visible, .contact-page .cta.ghost.done { background: #f4f3ef; border-color: #151412; color: #151412; }

/* ---------- contact ---------- */
/* One job: the address. It is the biggest thing on the page and the first thing you can press */
.contact-page { max-width: 1360px; margin: 0 auto; min-height: 100vh; min-height: 100svh; padding: clamp(150px, 24vh, 250px) var(--gutter) 110px; }
.c-k { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.c-mail { font-size: clamp(30px, 7vw, 112px); margin: clamp(26px, 3.4vw, 48px) 0 clamp(28px, 3.4vw, 46px); }
.c-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.c-rows { margin-top: clamp(56px, 8vw, 104px); max-width: 880px; }
.c-rows .a-row + .a-row { margin-top: clamp(18px, 2vw, 28px); }
.c-rows .a-row dd { font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; }
.c-sign { margin-top: clamp(14px, 1.6vw, 22px); font-size: clamp(24px, 2.8vw, 38px); font-style: italic; line-height: 1.3; color: var(--dim); }

a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Pages cross-fade into each other */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.32s; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .title-block { display: none; }
  .label { padding: 16px 18px 16px; }
  .label p { font-size: 17px; }
  .label h1 { font-size: 38px; }
  .sheet-frame { inset: 8px; }
  .top { padding: 20px 16px; }
  .top nav { gap: 14px; }
  .top nav [data-nav="work"] { display: none; } /* the name already links home */
  .index { padding: 128px 16px 120px; }
  .credit a { grid-template-columns: 30px 1fr; padding: 10px 0; }
  .c-meta { grid-column: 2; text-align: left; margin-top: 4px; }
  .section-head { margin-left: 48px; }
  .gallery { margin: 40px 16px 0; }
  .g-row { flex-direction: column; }
  .g-row.offset { padding-left: 0; }
  .p-nav { margin: 80px 16px 0; }
  .about { padding: 132px 16px 96px; }
  .a-body { grid-template-columns: 1fr; }
  .a-portrait img { max-height: 72vh; }
  .a-row { grid-template-columns: 1fr; }
  .a-prints { --h: 90px; }
  /* The name and the menu no longer fit on one line of a phone, so the menu drops below the name */
  .top { flex-wrap: wrap; gap: 6px; }
  .top .name, .top nav a { white-space: nowrap; }
  body.is-wall .top, body.is-plaster .top { padding: 16px; }
  .p-hero.cover .p-head { bottom: 22px; }
  .p-hero.whole { padding-top: 124px; }
  .contact-page { padding: 150px 16px 96px; }
}

/* Entrance: each part of a screen rises in turn, set per element with --d */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .stage-img, .g-row img { transition: opacity 0.3s; transform: none !important; }
}

/* Fade under the header so list text doesn't collide with it while scrolling */
body::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 96px; z-index: 9; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 35%, transparent);
}
body:not(.is-index)::before { opacity: 0; }
