/* ============================================================
   EDIT THESE to restyle the whole site
   ============================================================ */
:root {
  --frame: #121212;          /* the dark border around the page */
  --paper: #ffffff;          /* the white sheet */
  --ink:   #111111;
  --muted: #6e6e6e;
  --line:  #8a8a8a;          /* hairlines */
  --ph:    #e4e4e4;          /* image placeholder grey */

  /* One typeface and one weight/tracking for the whole site (the style of the project list) */
  --body:    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(12px, 1.4vw, 18px);
  --frame-pad: clamp(10px, 4.4vw, 54px);

  --list-size: 15px;         /* the project list on the opening page */
  --img-h: min(76vh, 800px); /* height of a large portrait image */

  /* the Info section follows one structure: same left and right edge for every block */
  --col-a: 300px;            /* portrait */
  --col-b: 400px;            /* The Practice text */
  --col-gap: clamp(28px, 5vw, 64px);
  --info-w: calc(var(--col-a) + var(--col-b) + var(--col-gap));
}

/* Images are shown as uploaded (colour stays colour, black and white stays black and white).
   All portrait images share one cut (4:5) and all landscape images share one cut (3:2). */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--frame);
  padding: var(--frame-pad);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
ul, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.sheet {
  background: var(--paper);
  min-height: calc(100vh - 2 * var(--frame-pad));
  display: flex; flex-direction: column;
}

/* ---------- type ---------- */
.small { font-size: 12.5px; line-height: 1.5; max-width: 34em; margin: 0 0 14px; }
.display {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: -0.025em; line-height: 1.02; margin: 0;
}

/* placeholder block */
.ph {
  background: var(--ph); color: #8a8a8a; display: grid; place-items: center;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 8px;
}
.ph.tall { aspect-ratio: 4 / 5; }

/* ================= OPENING ================= */
.top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--gutter); font-size: 12.5px; line-height: 1.22;
}
.top nav { display: flex; gap: 22px; }

.index {
  display: grid;
  grid-template-columns: minmax(104px, 1fr) minmax(0, 3.7fr) minmax(0, 4.3fr);
  column-gap: var(--gutter);
  padding: var(--gutter);
  padding-top: clamp(20px, 3vw, 44px);
  min-height: 74vh;
  align-items: start;
}

.filters, .list { font-size: var(--list-size); line-height: 1.25; }
.filters button { display: block; width: 100%; padding: 1px 0; }
.filters button:hover { text-decoration: underline; text-underline-offset: 2px; }
.filters button[aria-pressed="true"] { font-style: italic; }
.filters button[aria-pressed="true"]::before { content: "→ "; font-style: normal; }

.list li { transition: opacity .2s; padding: 1px 0; }
.list li[hidden] { display: none; }
.list li.gap-before { margin-top: 1.15em; }     /* small break between Cover Story / Editorial / Advertorial */
.list em { font-weight: 600; }
.list:hover li:not(:hover) a { opacity: .38; }   /* focus on the hovered row */
.list a { transition: opacity .15s; }
.list .empty { color: var(--muted); }

/* large image on the right, with the selected project's title */
.preview { position: sticky; top: var(--gutter); width: 100%; }
.preview .pv { margin-left: auto; width: min(100%, calc(var(--img-h) * 0.8)); }
.preview[data-orient="landscape"] .pv { width: 100%; }
.preview .frame { width: 100%; aspect-ratio: 4 / 5; background: var(--ph); overflow: hidden; }
.preview[data-orient="landscape"] .frame { aspect-ratio: 3 / 2; }
.preview img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.preview[data-orient="landscape"] img { object-position: 50% 50%; }
.preview .ph { height: 100%; }
.preview figcaption { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.preview .ptitle { font-size: 13px; line-height: 1.3; }
.preview .pline { font-size: 12px; line-height: 1.3; color: var(--muted); min-height: 1.3em; }


/* ================= PROJECT VIEW ================= */
.project { padding: var(--gutter); }
.project-head {
  display: grid;
  grid-template-columns: minmax(0,3.2fr) minmax(0,4fr) minmax(0,2.55fr);
  column-gap: var(--gutter);
  font-size: 12px; line-height: 1.22;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.project-head h2 { font-size: inherit; font-weight: inherit; margin: 0; grid-column: 2 / -1; }
.project-head em { font-weight: 600; }
.back::before { content: "← "; }

.project-body {
  display: grid;
  grid-template-columns: minmax(0,3.2fr) minmax(0,4fr) minmax(0,2.55fr);
  column-gap: var(--gutter);
  align-items: start;
}
.credits { font-size: 12px; line-height: 1.22; }
.credits div { display: flex; gap: .35em; flex-wrap: wrap; margin-bottom: 2px; }
.credits dt { color: var(--muted); }
.credits dt::after { content: ":"; }

.gallery { grid-column: 2 / -1; margin: 0; }
.stage { width: 100%; aspect-ratio: 4 / 5; background: var(--ph); overflow: hidden; cursor: pointer; }
.gallery[data-orient="portrait"] .stage { width: min(100%, calc(var(--img-h) * 0.8)); }
.gallery[data-orient="landscape"] .stage { aspect-ratio: 3 / 2; }
.stage > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.gallery[data-orient="landscape"] .stage > img { object-position: 50% 50%; }
.stage > .ph { height: 100%; }
.stage > .ph[data-missing] { text-transform: none; letter-spacing: 0; }
.controls {
  display: flex; align-items: center; gap: 14px; margin-top: 8px;
  font-size: 12px; color: var(--muted);
}
.controls button { color: var(--ink); padding: 2px 0; }
.controls button:hover { text-decoration: underline; text-underline-offset: 2px; }
.count { font-variant-numeric: tabular-nums; min-width: 2.5em; text-align: center; }
.under { margin-top: 10px; font-size: 12px; line-height: 1.35; display: flex; flex-direction: column; gap: 2px; }

/* ================= INFO ================= */
.inner {
  width: 100%; max-width: 1060px; margin: 0 auto;
  padding: clamp(60px, 9vw, 130px) clamp(18px, 5vw, 56px) 0;
}
.bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
  font-size: 13px; margin-bottom: clamp(22px, 2.6vw, 32px);
}
.bar nav { display: flex; gap: 22px; }

/* Info: the intro text, the portrait + The Practice, and Based in / Practice / Languages
   all share the same left edge (the portrait) and the same right edge (the end of the text) */
.who, .split, .meta { width: min(100%, var(--info-w)); margin-left: auto; margin-right: auto; }

.who { margin-bottom: clamp(48px, 6vw, 80px); }
.who .small { max-width: none; margin: 0; text-align: center; }

/* portrait + The Practice; the last line of text sits on the bottom edge of the image */
.split {
  display: grid; grid-template-columns: minmax(0, var(--col-a)) minmax(0, 1fr);
  gap: var(--col-gap); align-items: end;
  margin-bottom: clamp(56px, 7vw, 90px);
}
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; display: block; }
.split .text { margin-bottom: -4px; }
.split h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 24px; }
.split .text .small { max-width: none; margin: 0 0 12px; }
.split .text .small:last-child { margin-bottom: 0; }

/* Based in / Practice / Languages: first item on the left edge, last item ends on the right edge */
.meta {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
  gap: 28px 32px; text-align: left;
  margin-bottom: clamp(80px, 11vw, 150px);
}
.meta dt { font-size: 11px; margin-bottom: 6px; color: var(--muted); }
.meta dd { font-family: var(--display); letter-spacing: 0; text-transform: uppercase; font-size: 12.5px; line-height: 1.4; }

.quote { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px, 4vw, 40px); margin-bottom: clamp(70px, 9vw, 120px); align-items: start; }
.quote blockquote { margin: 0; position: relative; padding-left: 40px; max-width: 360px; margin-left: clamp(0px, 5vw, 60px); }
.qmark { position: absolute; left: 0; top: -6px; font-family: var(--display); font-size: 3rem; line-height: 1; }
.quote footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.name { font-size: 1.3rem; text-align: right; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* ----- Contact ----- */
.contact { padding-bottom: clamp(60px, 8vw, 110px); text-align: center; }
.contact hr { margin-bottom: 26px; }
.contact h3 { font-size: clamp(1.8rem, 4.4vw, 3rem); margin-bottom: 10px; }
.contact .small { font-size: 15px; margin: 26px auto 0; max-width: none; }

/* ================= FOOTER ================= */
.foot { margin-top: auto; padding: 120px var(--gutter) var(--gutter); }
.foot p {
  margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* ================= SMALL SCREENS ================= */
@media (max-width: 860px) {
  :root { --list-size: 14px; --img-h: 72vh; }
  .index { grid-template-columns: 1fr; row-gap: 22px; min-height: 0; padding-top: 18px; }
  .filters { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .filters button { width: auto; padding: 8px 0; }
  .list a { display: block; padding: 5px 0; }
  .preview { display: none; }        /* hover previews don't work on touch */

  .project-head, .project-body { grid-template-columns: 1fr; row-gap: 20px; }
  .project-head h2 { grid-column: auto; }
  .project-body .credits { order: 2; }
  .gallery { grid-column: auto; }
  .back { display: inline-block; padding: 8px 0; }
  .controls { gap: 6px; margin-top: 4px; }
  .controls button { padding: 12px 16px 12px 0; font-size: 16px; }
  .controls .count { min-width: 3em; }

  .top nav a { padding: 8px 0 8px 8px; }
  .bar nav { gap: 6px; }
  .bar nav a { padding: 10px 8px; }
  .bar { padding-bottom: 12px; }
  .bar .mark { padding: 10px 0; }

  .split { grid-template-columns: 1fr; row-gap: 28px; }
  .portrait { width: min(100%, 320px); }
  .meta { justify-content: flex-start; gap: 24px 40px; }
  .split .text { margin-bottom: 0; }
  .quote { grid-template-columns: 1fr; }
  .quote blockquote { margin-left: 0; }
}

/* ================= PRINT ================= */
@media print {
  :root { --frame: #fff; }
  body { padding: 0; }
  .sheet { min-height: 0; }
  .preview, .filters, .project, .bar nav, .top nav, .foot, .quote { display: none !important; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
