:root {
  color-scheme: light;
  --paper: #fff8ef;
  --white: #fffdfa;
  --ink: #2d211b;
  --muted: #56453b;
  --accent: #8d3d29;
  --line: #e6d6c7;
  --sand: #f4e5d5;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a64a31; outline-offset: 4px; }
.shell { width: min(100% - 6rem, 88rem); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 1rem; left: 1rem; padding: .8rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 7rem; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; }
.brand img { mix-blend-mode: multiply; width: clamp(11rem, 19vw, 15rem); height: auto; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem clamp(.8rem, 2.3vw, 2.35rem); }
nav a { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; text-decoration: none; padding-block: .65rem; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current] { color: var(--accent); border-color: var(--accent); }
main { flex: 1; padding-top: clamp(2rem, 4.4vw, 4.25rem); padding-bottom: clamp(3.5rem, 7vw, 7rem); }
h1, h2, p, figure { margin: 0; }
h1 { font-family: var(--display); font-size: clamp(3rem, 6.65vw, 7.2rem); line-height: .95; letter-spacing: -.045em; font-weight: 650; }
.page-title { margin-bottom: clamp(1.6rem, 4.1vw, 3.7rem); }
main.shell:not(.home) {
  width: 100%;
  padding-inline: max(var(--page-gutter, 3rem), calc((100% - 88rem) / 2));
  background: var(--page-background);
  color: var(--page-ink, #fff8ec);
}
main.spaces { --page-background: #000; }
main.recordings { --page-background: #d9a752; --page-ink: #2d211b; }
main.gallery { --page-background: #963e2c; }
main.contact { --page-background: #eed4a8; --page-ink: #2d211b; }
main.spaces, main.gallery, main.contact { --page-focus: #fff0d8; }
main.spaces :focus-visible, main.gallery :focus-visible,
.contact-copy :focus-visible { outline-color: var(--page-focus); }

main.shell.home { width: 100%; padding-top: 0; }
.home > .credits { width: min(100% - 6rem, 88rem); margin-inline: auto; }
.hero {
  display: grid;
  align-items: end;
  isolation: isolate;
  position: relative;
  min-height: max(31rem, calc(100svh - 7rem));
  background: #36221a;
  color: #fff7e9;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo { z-index: -2; object-fit: cover; object-position: 57% 54%; }
.hero-overlay { padding-block: clamp(2.25rem, 7vw, 7rem); }
.hero h1 {
  font-size: clamp(1rem, 6.1vw, 5.25rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.12;
  white-space: nowrap;
  text-shadow: 0 2px 5px #201610, 0 3px 20px rgb(24 13 7 / 80%);
}
.hero h1 strong, .contact-copy h2 strong { font-weight: 700; }
.welcome-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5.5vw, 5.5rem) clamp(0rem, 4vw, 5rem);
  background: #000;
  color: #fff8ec;
}
.welcome-copy h2, .studio-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: .65em;
}
.welcome-copy ul {
  padding-inline-start: 1.2em;
  margin: 1em 0 0;
  line-height: 1.65;
  font-size: 1.05rem;
}
.welcome-copy li::marker { color: #ffc584; }
.welcome-copy .action { flex-shrink: 0; }
.studio-copy p + p { margin-top: .65em; }
.studio-copy a { font-weight: 700; }
.welcome-copy p {
  max-width: 66ch;
  font: 500 clamp(1.25rem, 2.2vw, 2rem)/1.4 var(--display);
  letter-spacing: -.025em;
}
.action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 99rem;
  background: var(--accent);
  color: white;
  font: 650 1rem var(--display);
  text-decoration: none;
}
.action:hover { background: #6b2d1e; }
.welcome-copy .action { background: #fff0d8; color: #211910; border-color: #fff0d8; }
.welcome-copy .action:hover { background: #f7d9af; }
.welcome-copy .action:focus-visible { outline-color: #fff0d8; }
.home > .welcome-copy, .home > .studio-copy { width: 100%; padding-inline: max(3rem, calc((100% - 78rem) / 2)); }
.studio-copy { background: #a4452e; color: #fff8ec; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 7%; padding: clamp(2rem, 5.5vw, 5.5rem) clamp(0rem, 4vw, 5rem); }
.studio-copy p { line-height: 1.65; max-width: 55ch; font-size: clamp(1.04rem, 1.4vw, 1.25rem); }
.credits { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; padding: clamp(2rem, 5.5vw, 5.5rem) clamp(0rem, 4vw, 5rem) 0; }
.team { display: grid; gap: .75rem; line-height: 1.65; }
.socials { display: flex; gap: .7rem; }
.grant { border-radius: .65rem; display: flex; align-items: center; align-self: start; gap: 1.15rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); }
.grant h2 { font-size: 1.05rem; line-height: 1.45; max-width: 29ch; }
.grant img { width: 4.6rem; height: auto; }

.space-grid, .media-grid { display: grid; gap: clamp(.55rem, 1.4vw, 1.4rem); }
.space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.space-frame { overflow: hidden; background: var(--sand); aspect-ratio: 3 / 2; border-radius: .65rem; }
.space-frame img, .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.space-frame:hover img, .tile:hover img { transform: scale(1.035); }
.media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { aspect-ratio: 4 / 3; position: relative; display: block; overflow: hidden; border-radius: .5rem; text-decoration: none; background: var(--sand); }
.recordings .media-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.recordings .tile { aspect-ratio: 1; background: #f3e6d7; }
.recordings .tile img { object-fit: contain; }
.image-caption { position: absolute; inset: auto 0 0; padding: .45rem .65rem; color: white; background: rgb(0 0 0 / 75%); overflow-wrap: anywhere; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; background: #3b4d2e; color: #fff8ec; border-radius: .9rem; overflow: hidden; }
.contact-copy { align-self: center; padding: clamp(1.5rem, 5vw, 5rem); font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.65; }
.contact-copy h2 { font-family: var(--display); font-size: clamp(1.45rem, 2.65vw, 3rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; margin-bottom: 1.2rem; }
.contact-copy address { font-style: normal; margin-bottom: 1.15rem; }
.contact-copy a { color: #ffe1ad; overflow-wrap: anywhere; }
.contact-layout > img { width: 100%; height: 100%; max-height: 43rem; object-fit: cover; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-block: 1.2rem; color: var(--accent); }
.site-footer img { width: 7.75rem; height: auto; mix-blend-mode: multiply; }

.lightbox { width: min(95vw, 75rem); max-height: 94svh; border: 0; padding: 1rem; background: #1f251e; color: white; }
.lightbox::backdrop { background: rgb(10 14 10 / 86%); }
.lightbox-toolbar { margin-bottom: .8rem; display: flex; gap: .45rem; }
.lightbox-toolbar form { margin-left: auto; }
.lightbox button { color: white; background: transparent; border: 1px solid #929a90; padding: .55rem .8rem; }
.lightbox button:hover { background: #3d4939; }
.lightbox img { width: 100%; height: min(71svh, 50rem); object-fit: contain; }
.lightbox figcaption { text-align: center; padding-top: .6rem; overflow-wrap: anywhere; }

@media (max-width: 63rem) {
  main.shell:not(.home) { --page-gutter: 1.5rem; }
  .shell { width: calc(100% - 3rem); }
  .home > .credits { width: calc(100% - 3rem); }
  .recordings .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
  :root {
    --phone-inset-left: max(1rem, env(safe-area-inset-left));
    --phone-inset-right: max(1rem, env(safe-area-inset-right));
  }
  main.shell:not(.home) { padding-inline: 0; }
  .page-title {
    padding-left: var(--phone-inset-left);
    padding-right: var(--phone-inset-right);
  }
  .space-frame, .tile, .contact-layout { border-radius: 0; }
  .space-frame { aspect-ratio: auto; }
  .space-frame img, .contact-layout > img { height: auto; }
  .shell.header-inner, .shell.hero-overlay, .home > .credits, .shell.site-footer {
    margin-left: var(--phone-inset-left);
    margin-right: var(--phone-inset-right);
    width: auto;
  }
  .site-footer { padding-bottom: max(1.2rem, env(safe-area-inset-bottom)); }
  .shell { width: calc(100% - 2rem); }
  .header-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: .45rem; padding-block: .8rem .35rem; }
  nav { column-gap: clamp(.55rem, 2.5vw, 1.1rem); }
  nav a { font-size: .95rem; }
  .hero { min-height: 0; }
  .hero-photo { position: static; height: auto; grid-area: 1 / 1; }
  .hero-overlay { grid-area: 1 / 1; padding-block: 1.5rem; min-width: 0; }
  .home > .welcome-copy, .home > .studio-copy, .contact-copy {
    padding-left: var(--phone-inset-left);
    padding-right: var(--phone-inset-right);
  }
  .welcome-copy { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .home > .credits { padding-inline: 0; }
  .hero h1 { font-size: clamp(.9rem, 5.7vw, 2.65rem); }
  .studio-copy, .credits { grid-template-columns: 1fr; gap: 1.25rem; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recordings .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .space-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tile img, .space-frame img { transition: none; }
}
