﻿:root {
  --paper: #e9f1f7;
  --ink: #000500;
  --muted: #566246;
  --rule: #b7c2bd;
  --image: #c8d5d0;
  --image-dark: #566246;
  --inverse: #2274a5;
  --inverse-ink: #e9f1f7;
  --accent: #2274a5;
  --highlight: #f7ff58;
  --olive: #566246;
  --gutter: clamp(16px, 2.4vw, 34px);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Libre Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  background: var(--paper);
}

.site-header,
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gutter);
  padding: 20px var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
}

.project-butu {
  --paper: #f1e7bd;
  --ink: #153f8f;
  --muted: #9d4f48;
  --rule: #d36a54;
  --image: #d9b489;
  --image-dark: #2f4f99;
  --inverse: #153f8f;
  --inverse-ink: #f5d8d1;
  --accent: #9d4f48;
  --highlight: #f5d8d1;
}

.project-technicolour {
  --paper: #202a96;
  --ink: #f2d348;
  --muted: #ff7c41;
  --rule: #ef4f3d;
  --image: #3141b6;
  --image-dark: #111744;
  --inverse: #f2d348;
  --inverse-ink: #202a96;
  --accent: #ff7c41;
  --highlight: #f2d348;
}

.project-butu-issue-2 {
  --paper: #d9f1df;
  --ink: #122f26;
  --muted: #c84230;
  --rule: #ef7e60;
  --image: #a8d6bf;
  --image-dark: #122f26;
  --inverse: #122f26;
  --inverse-ink: #d9f1df;
  --accent: #c84230;
  --highlight: #ef7e60;
}

.project-butu .site-header,
.project-butu-issue-2 .site-header,
.project-technicolour .site-header {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.brand,
.footer-identity div {
  display: flex;
  gap: 0.65ch;
  flex-wrap: wrap;
}

.nav-links,
.footer-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 46px);
}

.nav-links a,
.footer-links a,
.contact-links a,
.project-row a {
  transition: opacity 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover,
.contact-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.nav-links a.is-active,
.footer-links a.is-active,
.nav-links a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(0, 2fr);
  min-height: calc(100svh - 58px);
  border-bottom: 1px solid var(--rule);
}

.hero-kicker,
.hero-copy,
.hero-actions {
  padding: var(--gutter);
}

.hero-kicker {
  color: var(--muted);
}

h1,
h2,
.statement p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.075em;
  text-transform: none;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "calt" 1;
}

h1 {
  align-self: end;
  padding: var(--gutter);
  font-size: clamp(60px, 13.2vw, 206px);
  line-height: 0.82;
  max-width: 1220px;
  min-width: 0;
}

.hero-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  grid-column: 2;
  border-top: 1px solid var(--rule);
}

.hero-copy p,
.about-copy p {
  margin: 0;
  max-width: 48ch;
  color: var(--ink);
  text-transform: none;
}

.hero-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  grid-column: 2;
  padding-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.button:hover {
  border-color: var(--ink);
  background: var(--highlight);
  color: var(--ink);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.statement {
  padding: clamp(56px, 8vw, 116px) var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.statement p {
  max-width: 1100px;
  font-size: clamp(33px, 5.8vw, 94px);
  line-height: 0.98;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: var(--gutter);
  padding: 14px var(--gutter);
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

.project-row a {
  display: grid;
  grid-template-columns: 64px 104px minmax(170px, 0.95fr) minmax(220px, 1.4fr) 80px 140px;
  gap: 18px;
  align-items: center;
  min-height: 118px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--rule);
  animation: row-rise 420ms ease both;
  animation-delay: var(--delay, 0ms);
}

.project-row a:hover {
  background: var(--project-hover-bg, var(--inverse));
  color: var(--project-hover-ink, var(--inverse-ink));
}

.project-row-butu {
  --project-hover-bg: #153f8f;
  --project-hover-ink: #f1e7bd;
}

.project-row-technicolour {
  --project-hover-bg: #f2d348;
  --project-hover-ink: #202a96;
}

.project-row-butu-issue-2 {
  --project-hover-bg: #122f26;
  --project-hover-ink: #d9f1df;
}

.project-thumb {
  display: block;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    var(--image);
}

.project-thumb {
  width: 100%;
  height: 82px;
  object-fit: cover;
}

.project-row:nth-child(odd) .project-thumb {
  background:
    linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.22) 40% 48%, transparent 48%),
    var(--image-dark);
}

.project-title {
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 34px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-transform: none;
  font-variant-ligatures: common-ligatures contextual;
}

.project-desc {
  max-width: 58ch;
  color: currentColor;
  text-transform: none;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  border-bottom: 1px solid var(--rule);
}

.about-section > div:first-child {
  border-right: 1px solid var(--rule);
}

.about-section h2 {
  padding: clamp(34px, 5vw, 82px) var(--gutter);
  font-size: clamp(42px, 7.2vw, 118px);
  line-height: 0.9;
}

.about-copy {
  display: flex;
  min-height: 640px;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding: var(--gutter);
}

.contact-links {
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.site-footer {
  min-height: 180px;
  align-items: end;
}

.footer-identity {
  display: grid;
  gap: 8px;
}

.footer-credit {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  text-transform: none;
}

.footer-credit a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.project-footer {
  min-height: auto;
  border-top: 1px solid var(--rule);
}

.footer-links {
  justify-content: end;
}

.case-study {
  border-bottom: 1px solid var(--rule);
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1.6fr);
  min-height: calc(82svh - 58px);
  border-bottom: 1px solid var(--rule);
}

.case-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: var(--gutter);
  color: var(--muted);
}

.case-meta a:hover {
  color: var(--ink);
}

.case-hero h1 {
  align-self: end;
  max-width: 1180px;
  font-size: clamp(67px, 13.3vw, 187px);
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-hero p {
  grid-column: 2;
  max-width: 780px;
  margin: 0;
  padding: var(--gutter);
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 62px);
  line-height: 1;
  letter-spacing: -0.065em;
  text-transform: none;
}

.case-hero.image-led {
  grid-template-areas:
    "meta title title"
    "meta intro image";
  grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr) minmax(260px, 0.72fr);
  grid-template-rows: auto minmax(360px, 1fr);
  align-items: stretch;
}

.case-hero.image-led .case-meta {
  grid-area: meta;
}

.case-hero.image-led h1 {
  grid-area: title;
  max-width: none;
  padding-right: calc(var(--gutter) * 1.5);
  font-size: clamp(48px, 8.4vw, 132px);
}

.case-hero.image-led p {
  grid-area: intro;
}

.case-hero-image {
  grid-area: image;
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 32vw, 520px);
  object-fit: cover;
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}

.project-technicolour .case-hero-image {
  object-fit: contain;
  background: var(--image-dark);
}

.case-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: var(--gutter);
  background: var(--rule);
}

.case-image-grid .case-label {
  grid-column: 1 / -1;
  padding: 0 0 8px;
}

.case-image {
  display: block;
  width: 100%;
  min-height: clamp(220px, 30vw, 460px);
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 42%),
    var(--image);
}

.case-image.large {
  grid-column: span 2;
}

.case-image.wide {
  grid-column: span 1;
  min-height: clamp(260px, 28vw, 420px);
}

.cinematic .case-image {
  background:
    repeating-linear-gradient(0deg, rgba(21,21,21,0.15), rgba(21,21,21,0.15) 1px, transparent 1px, transparent 18px),
    var(--image-dark);
}

.case-section {
  border-top: 1px solid var(--rule);
  padding: clamp(40px, 6vw, 86px) var(--gutter);
}

.image-section {
  padding: 0;
}

.image-section > .case-label {
  margin: 0;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.asset-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 1px;
  overflow-x: auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--rule);
}

.asset-strip img {
  width: 100%;
  height: clamp(260px, 34vw, 520px);
  object-fit: cover;
  background: var(--paper);
}

.reference-strip img {
  object-fit: contain;
  padding: 16px;
}

.technicolour-refs img {
  object-fit: cover;
  padding: 0;
}

.spread-grid,
.product-grid,
.poster-grid,
.event-grid,
.phone-grid,
.portrait-grid,
.album-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
}

.spread-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid,
.event-grid,
.portrait-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.poster-grid,
.phone-grid,
.album-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.album-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spread-grid img,
.product-grid img,
.poster-grid img,
.event-grid img,
.phone-grid img,
.portrait-grid img,
.album-grid img,
.cover-facts img,
.asset-strip img,
.case-hero-image {
  display: block;
  width: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.spread-grid img {
  height: clamp(300px, 32vw, 520px);
}

.product-grid img,
.event-grid img {
  height: clamp(220px, 24vw, 380px);
}

.poster-grid img,
.phone-grid img,
.portrait-grid img {
  height: clamp(360px, 44vw, 680px);
}

.album-grid img {
  height: clamp(320px, 38vw, 620px);
}

.cover-facts img {
  height: clamp(220px, 20vw, 340px);
  margin-bottom: 22px;
}

.case-section.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(32px, 7vw, 120px);
}

.case-label {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
}

.case-section h2 {
  max-width: 780px;
  font-size: clamp(38px, 6.5vw, 104px);
  line-height: 0.9;
}

.case-copy {
  display: grid;
  align-content: start;
  gap: 20px;
}

.case-copy p,
.cover-facts p {
  margin: 0;
  max-width: 64ch;
  text-transform: none;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--rule);
}

.case-facts > div {
  min-height: 260px;
  padding: var(--gutter);
  background: var(--paper);
}

.case-facts ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cover-facts h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: none;
}

.conclusion {
  background: var(--inverse);
  color: var(--inverse-ink);
}

.conclusion .case-label,
.conclusion .case-copy p {
  color: var(--inverse-ink);
}

.case-home-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gutter);
  align-items: end;
  min-height: clamp(220px, 30vw, 420px);
  padding: var(--gutter);
  border-top: 1px solid var(--rule);
}

.case-home-cta span {
  color: var(--muted);
}

.case-home-cta a {
  font-family: var(--serif);
  font-size: clamp(42px, 8vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.075em;
  text-transform: none;
}

.case-home-cta a:hover {
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 42px);
  background: rgba(10, 10, 10, 0.86);
  color: #f7f1e8;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1480px);
  height: min(100%, 900px);
  overflow: auto;
}

.lightbox__image {
  max-width: 92vw;
  max-height: 82vh;
  transform: scale(var(--zoom, 1));
  transform-origin: center;
  transition: transform 160ms ease;
}

.lightbox__button,
.lightbox__zoom {
  border: 1px solid currentColor;
  background: rgba(15, 15, 15, 0.62);
  color: inherit;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox__button {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
}

.lightbox__button:hover,
.lightbox__zoom:hover {
  background: #f7f1e8;
  color: #111;
}

.lightbox__close {
  top: 18px;
  right: 18px;
}

.lightbox__prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__toolbar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.lightbox__zoom {
  min-width: 44px;
  min-height: 36px;
  padding: 8px 12px;
}

.lightbox__count {
  min-width: 86px;
  text-align: center;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes row-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  body {
    font-size: 14px;
  }

  .site-shell {
    background: var(--paper);
  }

  .site-header,
  .site-footer,
  .case-home-cta,
  .hero,
  .hero-copy,
  .about-section,
  .case-hero,
  .case-section.two-column,
  .case-facts,
  .case-image-grid,
  .spread-grid,
  .product-grid,
  .poster-grid,
  .event-grid,
  .phone-grid,
  .portrait-grid,
  .album-grid {
    grid-template-columns: 1fr;
  }

  .case-hero.image-led {
    grid-template-areas:
      "meta"
      "title"
      "image"
      "intro";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .site-header {
    gap: 16px;
  }

  .nav-links,
  .footer-links {
    justify-content: space-between;
  }

  .nav-links {
    justify-content: flex-start;
    gap: clamp(46px, 17vw, 88px);
  }

  .hero {
    min-height: auto;
  }

  h1 {
    min-height: 58svh;
    align-content: end;
    font-size: clamp(38px, 10.5vw, 48px);
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .statement p,
  .case-section h2,
  .case-home-cta a {
    overflow-wrap: break-word;
  }

  .statement p {
    font-size: clamp(24px, 6.5vw, 28px);
    max-width: 15ch;
  }

  .case-section h2 {
    font-size: clamp(23px, 6.2vw, 28px);
    max-width: 12ch;
  }

  .hero-copy,
  .hero-actions,
  .case-hero p,
  .case-hero.image-led p,
  .case-hero-image {
    grid-column: 1;
    max-width: 100%;
  }

  .case-hero h1 {
    min-height: auto;
  }

  .case-hero.image-led h1 {
    font-size: clamp(36px, 9vw, 54px);
    padding-right: var(--gutter);
  }

  .project-butu-issue-2 .case-hero.image-led h1 {
    font-size: clamp(25px, 6.4vw, 32px);
  }

  .case-hero p {
    font-size: clamp(16px, 4.4vw, 18px);
    max-width: 24ch;
    overflow-wrap: break-word;
  }

  .case-hero.image-led p {
    max-width: 22ch;
  }

  .case-hero-image {
    min-height: 420px;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .lightbox__button {
    width: 44px;
    height: 44px;
  }

  .lightbox__toolbar {
    bottom: 12px;
  }

  .case-image.large,
  .case-image.wide {
    grid-column: auto;
  }

  .hero-actions {
    padding-top: var(--gutter);
  }

  .project-row a {
    grid-template-columns: 46px 1fr 84px;
    min-height: 156px;
    align-items: start;
  }

  .project-thumb {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 116px;
  }

  .project-title {
    font-size: 27px;
  }

  .project-desc {
    grid-column: 2 / -1;
  }

  .project-year {
    grid-column: 1;
  }

  .project-status {
    grid-column: 2 / -1;
  }

  .about-section > div:first-child {
    border-right: 0;
  }

  .about-copy {
    min-height: auto;
  }

  .site-footer {
    min-height: 140px;
  }
}
