/* On The Grid Creative */
:root {
  --bg: #ffffff;
  --ink: #5f5d5d;
  --ink-strong: #2b2a2a;
  --line: #e4e2e0;
  --accent: #e8a33c;
  --max: 1080px;
  --narrow: 860px;
  --font: 'Barlow', 'DIN Next', 'Helvetica Neue', Arial, sans-serif;
}
.theme-dark { --bg: #000; --ink: #c9c7c4; --ink-strong: #fff; --line: #2a2a2a; }
.theme-paper { --bg: #efe8da; --ink: #4a4540; --ink-strong: #1f1c19; --line: #d8cfbd; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 300; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--bg); padding: .5rem 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: 18px 24px; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
}
.wordmark { display: none; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-strong); font-weight: 400; }
.site-header nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.site-header nav a {
  text-decoration: none; text-transform: uppercase; letter-spacing: .06em;
  font-size: 15px; color: var(--ink); padding: 4px 0; border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink-strong); border-color: currentColor; }
.menu-toggle { display: none; }

.home .site-header { position: fixed; inset: 0 0 auto 0; background: transparent; backdrop-filter: none; }

/* Layout */
main { min-height: 70vh; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 32px 24px 80px; }
.wrap.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.page-title, .project-title {
  font-weight: 300; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(26px, 4vw, 40px); color: var(--ink-strong); margin: 8px 0 28px; line-height: 1.2;
}
.project-logo { margin: 8px auto 32px; max-width: 420px; }
.project-logo img { margin: 0 auto; max-height: 180px; width: auto; }
h2.section {
  font-weight: 400; text-transform: uppercase; letter-spacing: .12em; font-size: 18px;
  color: var(--ink-strong); margin: 56px 0 16px;
}
.prose p { margin: 0 0 1.1em; }
.prose.intro { font-size: 18px; margin-bottom: 32px; }
.back {
  display: inline-block; text-decoration: none; text-transform: uppercase; letter-spacing: .1em;
  font-size: 14px; margin-bottom: 16px; opacity: .8;
}
.back:hover { opacity: 1; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #fff; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.home .site-footer { display: none; }

/* Media */
.media { margin: 0 0 32px; }
.frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.frame.tall { aspect-ratio: 9 / 16; }
.frame video, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.media figcaption { font-size: 15px; margin-top: 8px; color: var(--ink-strong); letter-spacing: .02em; }
.media.single img { width: 100%; height: auto; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.grid .media { margin: 0; }
.grid.vertical { grid-template-columns: repeat(3, 1fr); }
.grid.small { grid-template-columns: repeat(4, 1fr); gap: 12px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 32px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.03); }

.dates { list-style: none; padding: 0; margin: 0 0 32px; columns: 2; column-gap: 32px; font-size: 15px; }
.dates li { break-inside: avoid; padding: 4px 0; border-bottom: 1px solid var(--line); }
.credits { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 32px; font-size: 15px; }
.credits dt { color: var(--ink-strong); font-weight: 400; }
.credits dd { margin: 0; }

.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; margin-bottom: 32px; }
.entry img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.entry h3 { font-weight: 400; font-size: 16px; color: var(--ink-strong); margin: 10px 0 2px; line-height: 1.35; }
.entry h3 span { opacity: .6; margin-right: 4px; }
.entry .meta { margin: 0; font-size: 13px; opacity: .7; }

/* Record label */
.label-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 900px; margin: 24px auto 0; }
.label-card { text-decoration: none; display: block; }
.label-card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.label-card:hover img { opacity: .85; }
.label-card span { display: block; text-align: center; margin-top: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-strong); }

/* Video page */
.clients { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 28px 32px; align-items: center; }
.clients img { max-height: 46px; width: auto; margin: 0 auto; filter: grayscale(1); opacity: .75; transition: .2s; mix-blend-mode: multiply; }
.clients img:hover { filter: none; opacity: 1; }

/* Photo */
.masonry { columns: 4 240px; column-gap: 10px; }
.masonry a { display: block; margin-bottom: 10px; break-inside: avoid; }
.masonry img { width: 100%; height: auto; }

/* Projects list */
.project-list { list-style: none; padding: 0; margin: 16px 0 0; text-align: center; }
.project-list li { margin: 0; }
.project-list a {
  display: inline-block; padding: 7px 0; text-decoration: none; text-transform: uppercase;
  letter-spacing: .1em; font-size: 17px; border-bottom: 1px solid transparent; transition: .15s;
}
.project-list a:hover { color: var(--ink-strong); border-color: currentColor; }

/* Fabrication */
.fab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.fab { margin: 0; }
.fab img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.fab figcaption { text-align: center; font-size: 14px; line-height: 1.45; margin-top: 10px; }
.fab strong { display: block; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-strong); margin-bottom: 4px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 900px; }
.contact-logo { max-width: 320px; width: 100%; margin: 0 auto; }
.contact h1 { font-weight: 300; font-size: 22px; margin: 0 0 12px; color: var(--ink-strong); }
.contact label { display: block; font-size: 14px; margin-bottom: 12px; }
.contact input, .contact textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; font-size: 16px;
  border: 1px solid #cfcccb; background: #fff; color: var(--ink-strong); border-radius: 0;
}
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.contact button {
  font: inherit; text-transform: uppercase; letter-spacing: .1em; font-size: 14px;
  padding: 10px 28px; border: 0; background: var(--ink-strong); color: var(--bg); cursor: pointer; float: right;
}
.contact button:hover { background: var(--accent); color: #000; }
.contact .alt { clear: both; padding-top: 16px; font-size: 14px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { text-align: center; font-size: 13px; padding: 24px; border-top: 1px solid var(--line); opacity: .8; }
.site-footer p { margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: none; place-items: center; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; font: 300 34px/1 var(--font);
  cursor: pointer; padding: 16px; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Mobile */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { padding: 12px 12px; }
  .site-header nav { gap: 6px 16px; }
  .site-header nav a { font-size: 13px; letter-spacing: .05em; padding: 2px 0; }
  .wrap { padding: 20px 18px 60px; }
  .grid, .grid.vertical { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid.small { grid-template-columns: repeat(2, 1fr); }
  .fab-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .label-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 24px; }
  .contact-logo { max-width: 180px; }
  .dates { columns: 1; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}
@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
  .fab-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
