/* Poppins, self-hosted (no requests to Google). */
@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/poppins-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/poppins-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #111;
  --muted: #595959; /* 7:1 on white */
  --paper: #fff;
  --line: #e6e6e6;
  --tile: #f2f2f2;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1120px;
  --gap: 10px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2 { font-weight: 700; line-height: 1.3; margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(28px, 4vw, 52px);
}

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  text-decoration: none;
}
.brand-name { font-weight: 700; font-size: 16px; }
.brand-tagline { font-weight: 400; font-size: 15px; }

.nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  padding-block: 6px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
}

/* Works grid: 3 columns of 2:3 portrait images, centred with white space either side */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-tile { display: block; text-decoration: none; }

.work-tile-media {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--tile);
}
.work-tile-media picture,
.work-tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-tile-hover { opacity: 0; transition: opacity 0.35s ease; }
.work-tile:hover .work-tile-hover,
.work-tile:focus-visible .work-tile-hover { opacity: 1; }

.work-tile-title {
  display: block;
  font-size: 13px;
  padding-top: 6px;
  min-height: 2.6em;
}
/* Titles are only for screen readers on devices with a mouse; on touch screens they show, since there is no hover. */
@media (hover: hover) {
  .work-tile-title {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Project page: images left, text right */
.project {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.project-images { display: grid; gap: var(--gap); }

.project-text {
  position: sticky;
  top: 32px;
}
.project-header h1 { font-size: 20px; }
.project-client { display: block; }
.project-meta {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
}
.project-body { margin-top: 28px; }
.project-body p { margin: 0 0 1em; }

.project-exhibited { margin-top: 40px; }
.project-exhibited h2,
.about-row h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.logo-row,
.logo-grid {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}
.logo-row img,
.logo-grid img {
  max-height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.logo-text {
  display: inline-block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 10px;
  max-width: 160px;
}

.project-back { margin-top: 48px; font-size: 14px; }

/* About */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about-bio { font-size: 17px; line-height: 1.7; }
.about-bio p { margin: 0 0 1em; }

.about-lists { margin-top: clamp(48px, 7vw, 96px); }

.about-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  column-gap: clamp(28px, 5vw, 72px);
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.about-row h2 { grid-column: 1; margin-bottom: 10px; }
.about-row > ul:not(.logo-grid),
.about-row address { grid-column: 1; }
.about-row ul { list-style: none; margin: 0; padding: 0; }
.about-row address { font-style: normal; }
.about-row .logo-grid {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  align-content: start;
}

.not-found { padding: 10vh 0; }

/* Footer */
.site-footer {
  margin-top: clamp(64px, 10vw, 128px);
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
}

/* Tablet */
@media (max-width: 900px) {
  .project,
  .about-intro { grid-template-columns: 1fr; }
  .project-text { position: static; order: -1; }
  .about-row { grid-template-columns: 1fr; }
  .about-row .logo-grid { grid-column: 1; grid-row: auto; margin-top: 20px; }
}

/* Phone: two columns */
@media (max-width: 600px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
