@import url("https://fonts.googleapis.com/css2?family=Rye&family=Zilla+Slab:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@500;700&display=swap");

:root {
  --midnight: #171e2c;
  --night: #171e2c;
  --shop-blue: #171e2c;
  --wood: #1f1a15;
  --oxblood: #971326;
  --vermilion: #c5162e;
  --brass: #f0c45a;
  --green: #262019;
  --paper: #fff8df;
  --paper-bright: #fff8df;
  --paper-dim: #fff2c8;
  --ink: #0f0d0b;
  --line: rgba(240, 196, 90, 0.46);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  --display: "Rye", Georgia, serif;
  --serif: "Zilla Slab", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

/* The UA default figure margin (1em 40px) collapses tiles inside narrow
   grid columns, so every figure here is positioned by its grid cell. */
figure {
  margin: 0;
}

/* No list here is prose: they are grids and label rows, so the UA bullet
   and its indent are never wanted. */
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

html.is-locked,
html.is-locked body {
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--paper-bright);
  background:
    radial-gradient(circle at 20% 0%, rgba(223, 43, 45, 0.16), transparent 28rem),
    linear-gradient(115deg, rgba(75, 39, 28, 0.48), transparent 26rem),
    var(--night);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--paper-bright);
}

p {
  margin: 0;
  color: var(--paper-dim);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--paper-bright);
  font-weight: 400;
}

h1,
.display {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.02em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 10vw, 5.9rem);
}

h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.skip-extra {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mono {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--brass);
  background: transparent;
  color: var(--paper-bright);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-primary {
  border-color: var(--vermilion);
  background: var(--oxblood);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.btn:hover,
.btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  color: var(--paper-bright);
}

.topline {
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 25, 0.88);
}

.topline .wrap {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  color: var(--paper-dim);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 25, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  min-height: 72px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  flex-shrink: 0;
  color: var(--paper-bright);
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.nav-links a {
  color: var(--paper-dim);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brass);
}

.threshold {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line);
}

.threshold::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 25, 0.22), rgba(13, 17, 25, 0.72)),
    radial-gradient(circle at 50% 0%, rgba(240, 196, 90, 0.16), transparent 34rem);
  pointer-events: none;
  z-index: 1;
}

/* Hero: the mural fills its column top to bottom so both columns end
   flush with each other. Cropping is the trade for that alignment. */
.hero-flush {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 53% minmax(0, 1fr);
  column-gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  min-height: calc(100vh - 115px);
  padding: clamp(38px, 7vw, 82px) 0;
}

.hero-figure {
  position: relative;
  margin: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--brass);
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: saturate(1.06) contrast(1.02);
}

.hero-flush .threshold-copy {
  padding: 0;
  align-content: center;
}

.threshold-copy {
  display: grid;
  gap: 24px;
  padding: 24px 0;
}

.threshold-copy p {
  max-width: 56ch;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.threshold-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.proof-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.proof-rail span {
  min-height: 82px;
  padding: 14px;
  background: rgba(17, 24, 39, 0.78);
  color: var(--paper-dim);
}

.proof-rail strong {
  display: block;
  color: var(--brass);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  margin-bottom: 34px;
}

.section-intro p {
  max-width: 64ch;
  font-size: 1.08rem;
}

/* The whole crew is visible at once; no horizontal scrolling to meet them. */
.artist-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.artist-card {
  min-height: 440px;
  display: grid;
  grid-template-rows: 260px auto 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(24, 35, 56, 0.96), rgba(75, 39, 28, 0.52)),
    var(--shop-blue);
  color: var(--paper-bright);
  text-decoration: none;
}

.artist-card:hover,
.artist-card:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.artist-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-headshot {
  border: 1px solid var(--brass);
  background: var(--night);
  overflow: hidden;
}

.artist-info {
  display: grid;
  gap: 8px;
}

/* Stamped style labels. Each box hugs its own text; consistency comes
   from shared height, border and type rather than from equal widths. */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.artist-link {
  align-self: end;
  color: var(--brass);
}

/* One woven wall: the crew portrait spans the full three columns and the
   working shots fill the rows beneath, so the crew and the room read as
   a single surface rather than two stacked groups. */
.room-weave {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.room-weave .crew-lead {
  grid-column: span 3;
  margin: 0;
  aspect-ratio: 899 / 554;
  overflow: hidden;
  border: 1px solid var(--brass);
}

.room-weave .crew-lead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-weave .crew-shot img {
  aspect-ratio: 4 / 5;
}

/* A tighter course than the page default; the wall carries this section
   so the surrounding room is deliberately smaller. */
.section-crew {
  padding-block: 66px;
}

.section-crew .section-intro {
  margin-bottom: 20px;
}

/* The crew photo is only 899x554, so it keeps its own ratio rather than
   stretching to the mosaic column, which upscaled it ~94%. */
.crew-lead {
  position: relative;
  align-self: start;
  aspect-ratio: 899 / 554;
  overflow: hidden;
  border: 1px solid var(--brass);
}

.crew-lead img,
.crew-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No fixed floor: a 288px minimum sized for the wide layout forced these
   into tall slivers once the column narrowed. The image ratio governs. */
.crew-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--shop-blue);
}

.creed {
  background:
    linear-gradient(90deg, rgba(151, 19, 38, 0.2), transparent),
    var(--shop-blue);
}

/* The standard reads as one ledger: the framing statement is simply its
   opening row, so nothing sits in a separate panel beside the beliefs. */
.creed-ledger .ledger {
  display: grid;
}

.ledger-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 22px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.ledger-open {
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--brass);
}

.ledger-open p {
  max-width: 66ch;
  margin-top: 10px;
}

.ledger-row > div {
  display: grid;
  gap: 8px;
}

.ledger-row h3 {
  margin: 0;
  color: var(--paper-bright);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.25;
  text-wrap: balance;
}

.ledger-row p {
  margin: 0;
  max-width: 68ch;
  color: var(--paper-dim);
}

/* Its own column now, not a run-in, so it takes display scale and drops
   the trailing spaces the inline version needed. */
.creed-tag {
  color: var(--brass);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1;
  white-space: nowrap;
}

.visit {
  position: relative;
  overflow: clip;
  background: var(--wood);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.visit-copy {
  display: grid;
  gap: 22px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list strong {
  display: block;
  color: var(--paper-bright);
}

.map-frame {
  min-height: 470px;
  border: 1px solid var(--brass);
  background: var(--night);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 470px;
  border: 0;
  filter: saturate(0.8) contrast(1.05);
}

.site-footer {
  padding: 26px 0;
  background: var(--night);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--paper-dim);
}

.portfolio-hero {
  padding: clamp(48px, 8vw, 86px) 0;
  border-bottom: 1px solid var(--line);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.portrait-panel {
  border: 1px solid var(--brass);
  background: var(--shop-blue);
  padding: 14px;
  transform: rotate(1deg);
}

.portrait-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.portfolio-copy {
  display: grid;
  gap: 20px;
}

.portfolio-copy h1 {
  max-width: 12ch;
}

/* The heading is a single short word, so the width it no longer needs
   carries a hairline out to the measure instead of sitting empty. */
.portfolio-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(16px, 2vw, 28px);
  align-items: center;
  padding-bottom: 16px;
}

.portfolio-head h2 {
  margin: 0;
  white-space: nowrap;
}

.portfolio-head::after {
  content: "";
  border-top: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--shop-blue);
  cursor: zoom-in;
}

.gallery-button img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* A 4/5 crop of a landscape frame shows about half its width, so a
   subject off the horizontal centre gets cut. Name the focal side. */
.gallery-button img[data-focal="left"] {
  object-position: 0% center;
}

.gallery-button img[data-focal="right"] {
  object-position: 100% center;
}

.gallery-button img[data-focal="top"] {
  object-position: center 0%;
}

.portfolio-close {
  background: var(--green);
}

.back-link {
  display: inline-flex;
  width: fit-content;
  color: var(--paper-dim);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  place-items: center;
  padding: 22px;
  background: rgba(13, 17, 25, 0.96);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(94vw, 1280px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--brass);
  background: var(--night);
}

.lightbox p {
  max-width: min(94vw, 900px);
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--brass);
  background: var(--night);
  color: var(--paper-bright);
  font-family: var(--mono);
  cursor: pointer;
}

[data-reveal] {
  opacity: 1;
  filter: none;
  transform: none;
  transition: transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .hero-flush,
  .section-intro,
  .visit-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Stacked, the figure has no column height to fill, so it falls back
     to the mural's own ratio. */
  .hero-flush {
    min-height: auto;
    row-gap: clamp(28px, 5vw, 48px);
  }

  .hero-figure {
    height: auto;
    aspect-ratio: 1024 / 684;
  }

}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(100% - 28px, var(--max));
  }

  /* Stacked, the label sits above its statement; side by side it squeezes
     the reading measure to about 275px. */
  .ledger-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }

  .topline .wrap,
  .nav,
  .site-footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .proof-rail,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Two up, so the six working shots stay supporting evidence instead of
     six full-width images that outweigh the crew portrait above them. */
  .room-weave {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-weave .crew-lead {
    grid-column: span 2;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 340px;
  }
}
