:root {
  --bg: #030303;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --accent: #6ee02a;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 2.2vw, 30px);
  --header-h: 72px;
  --side-w: 300px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Display type: heavy, extended, uppercase */
.display, .wordmark, .card-title, .eyebrow, .pager-title, .c-title, .side-head, .btn {
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.display {
  font-size: clamp(38px, 5.2vw, 74px);
  line-height: 1.12;
  margin: 0 0 28px;
  max-width: 14ch;
  text-wrap: balance;
}
.eyebrow { font-size: 15px; line-height: 1.3; margin: 0 0 18px; }
.eyebrow a { text-decoration: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--bg);
}
.wordmark { font-size: clamp(18px, 2vw, 26px); text-decoration: none; white-space: nowrap; }
.wordmark .ast { color: var(--accent); margin-right: 0.12em; }
.wordmark:hover { color: var(--fg); }
.nav { display: flex; gap: 26px; align-items: center; font-size: 17px; }
.nav > a, .nav-folder > a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--fg); }
.nav-folder { position: relative; }
.nav-drop {
  position: absolute; top: 100%; left: -16px;
  list-style: none; margin: 0; padding: 12px 16px;
  background: var(--bg); min-width: 300px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-drop a { display: block; padding: 4px 0; text-decoration: none; }
.nav-folder:hover .nav-drop, .nav-folder:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }
.burger { display: none; }

.home-page .site-header { background: transparent; transition: background .25s; }
.home-page .site-header.scrolled { background: var(--bg); }
.home-page:not(.menu-open) .site-header:not(.scrolled) .wordmark { text-shadow: 0 1px 12px rgba(0,0,0,.4); }

/* Layout */
.layout { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: clamp(24px, 6vw, 110px); padding: 8px var(--gutter) 0; }
.content { min-width: 0; padding-bottom: 40px; }
.content.solo { padding: 8px var(--gutter) 40px; max-width: 1180px; margin-left: calc(var(--side-w) + clamp(24px, 6vw, 110px)); }

/* Sidebar */
.sidebar { font-size: 15px; line-height: 1.5; }
.side-details { position: sticky; top: calc(var(--header-h) + 8px); max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 24px; }
.side-details > summary { display: none; }
.side-head { margin: 0 0 18px; font-size: 15px; }
.side-head a { text-decoration: none; }
.side-group { margin-bottom: 10px; }
.side-group.is-open { margin: 14px 0 20px; }
.side-group.is-open ul { margin-top: 4px; }
.side-sub { margin: 12px 0 2px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.side-sub:first-child { margin-top: 6px; }
@media (min-width: 961px) { .side-inner a { white-space: nowrap; } }
.side-cat { font-weight: 600; text-decoration: none; display: block; margin-bottom: 2px; }
.side-group ul { list-style: none; margin: 0; padding: 0; }
.side-group li a { text-decoration: underline; }
.sidebar a[aria-current="page"] { color: var(--accent); }

/* Text */
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 46em; margin: 28px 0 0; }
.more { white-space: nowrap; font-weight: 600; }
.hero-copy .more { font-weight: inherit; }
.prose p { margin: 0 0 1.1em; max-width: 40em; }
.crumb { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.crumb a { text-decoration: none; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.video-facade:hover img { opacity: .85; }
.video-facade:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; background: rgba(0,0,0,.25); transition: transform .2s, background .2s; }
.play svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.video-facade:hover .play { transform: scale(1.06); background: rgba(0,0,0,.45); }
.videos { display: grid; gap: 14px; }
.vid-label { margin: 0 0 30px; font-size: 15px; }

/* Project meta */
.meta { display: flex; flex-wrap: wrap; gap: 10px 48px; margin: 0 0 32px; font-size: 16px; }
.meta div { min-width: 0; }
.meta dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.meta dd { margin: 2px 0 0; max-width: 34em; }

/* Pager */
.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 90px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: grid; align-items: center; gap: 2px 14px; text-decoration: none; max-width: 48%; }
.pager-prev { grid-template-columns: auto 1fr; }
.pager-next { grid-template-columns: 1fr auto; text-align: right; margin-left: auto; }
.pager-prev svg { grid-column: 1; grid-row: 1 / span 2; }
.pager-prev span { grid-column: 2; }
.pager-next svg { grid-column: 2; grid-row: 1 / span 2; }
.pager-next span { grid-column: 1; }
.pager svg { width: 12px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; grid-row: span 2; }
.pager-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pager-title { font-size: 15px; line-height: 1.3; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 40px 22px; }
.card { display: block; text-decoration: none; }
.card-img { display: block; aspect-ratio: 16 / 9; background: #141414; overflow: hidden; margin-bottom: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.card:hover .card-img img { transform: scale(1.03); opacity: .9; }
.card-blank { display: grid; place-items: center; height: 100%; font-family: var(--display); font-weight: 800; font-size: 72px; color: var(--accent); }
.card-title { display: block; font-size: 14px; line-height: 1.35; }
.card-net { display: block; font-size: 15px; color: var(--fg); margin-top: 4px; }
.card-meta { display: block; font-size: 15px; color: var(--muted); margin-top: 3px; }
.card:hover .card-title { color: var(--accent); }
.cat-block { margin-bottom: 72px; }
.home-work .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.home-work .card-title { font-size: 13px; }
.home-work .card-img { aspect-ratio: 2.6 / 1; }
.home-work .card-img img { object-position: 50% 30%; }
@media (max-width: 760px) { .home-work .card-img { aspect-ratio: 4 / 3; } }
.home-work .card-meta { font-size: 14px; }
@media (max-width: 1100px) { .home-work .grid { gap: 16px 12px; } .home-work .card-title { font-size: 11.5px; } }

@media (max-width: 760px) { .home-work .grid { gap: 12px 8px; } .home-work .card-img { margin-bottom: 6px; } .home-work .card-title { font-size: 10.5px; } .home-work .card-meta { display: none; } }
.home-work { flex: none; margin-top: clamp(10px, 2vh, 28px); padding-bottom: clamp(16px, 3vh, 36px); }
.home-work .eyebrow { margin-bottom: clamp(10px, 1.6vh, 18px); }
.content > .grid { margin-top: 36px; }

/* Work index */
.work-index { padding: 8px var(--gutter) 40px; }
.work-index .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.work-index .card-title { font-size: clamp(15px, 1.4vw, 22px); margin-top: 4px; }
.work-index .card-meta { font-size: 16px; }
@media (max-width: 960px) { .work-index .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
@media (max-width: 560px) { .work-index .grid { grid-template-columns: minmax(0, 1fr); } }

/* Home */
.hero .display { max-width: none; }
.hero .pipe { color: var(--accent); font-weight: 400; }

/* Category sections */
.cat-section { margin-top: 36px; }
.cat-section + .cat-section { margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--line); }
.cat-section > summary { display: flex; align-items: center; justify-content: flex-start; gap: 18px; cursor: pointer; list-style: none; margin-bottom: 10px; }
.cat-section > summary::-webkit-details-marker { display: none; }
.cat-section > summary .section-title { margin: 0; }
.cat-section > summary:hover .section-title { color: var(--accent); }
.sec-toggle { flex: none; position: relative; width: 32px; height: 32px; background: var(--accent); transition: background .2s; }
.sec-toggle::before, .sec-toggle::after { content: ""; position: absolute; left: 8px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--bg); transition: transform .2s; }
.sec-toggle::after { transform: rotate(90deg); }
.cat-section[open] .sec-toggle::after { transform: rotate(0deg); }
.cat-section > summary:hover .sec-toggle { background: var(--fg); }
.cat-section:not([open]) { padding-bottom: 8px; }
.cat-section + .cat-section:not([open]), .cat-section:not([open]) + .cat-section { margin-top: 40px; }
.section-title { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; margin: 0 0 10px; }
.section-intro { margin: 0 0 28px; font-size: clamp(17px, 1.4vw, 20px); color: var(--fg); max-width: 46em; }
.cat-section .press { margin-top: 72px; }

/* Press */
.press { margin-top: 90px; }
.press-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; align-items: start; }
blockquote { margin: 0 0 32px; }
blockquote p { margin: 0 0 8px; font-size: 19px; line-height: 1.55; }
cite { font-style: normal; color: var(--muted); font-size: 15px; }
.press-link { color: var(--accent); font-weight: 600; }
.press-link:hover { color: var(--fg); }
.press-img { display: block; }
.press-img img { transition: opacity .2s; }
.press-img:hover img { opacity: .85; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: start; }
.credits-page.content.solo { max-width: none; }
.credits-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.credits-body .display { margin-top: 0; }
@media (min-width: 1500px) { .credits-page .credits li { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.9fr) 84px; gap: 4px 18px; } }
@media (min-width: 961px) and (max-width: 1499px) {
  .credits-page .credits li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; }
  .credits-page .c-title { grid-column: 1 / -1; }
  .credits-page .c-fmt { grid-column: 1; }
  .credits-page .c-role { grid-column: 1; }
  .credits-page .c-year { grid-column: 2; grid-row: 2; }
}
.credits-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 16px); }
.credits-photo img { width: 100%; height: auto; }
@media (min-width: 961px) {
  .credits-photo img { width: auto; max-width: 28vw; height: calc(100vh - var(--header-h) - 40px); height: calc(100svh - var(--header-h) - 40px); min-height: 420px; object-fit: cover; object-position: 42% 50%; }
}

/* Credits */
.content section + section { margin-top: 64px; }
.credits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credits li { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 2fr) 110px; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.c-title { font-size: 14px; line-height: 1.4; padding-top: 2px; }
.c-fmt, .c-year { color: var(--muted); }
.c-year { text-align: right; font-variant-numeric: tabular-nums; }

.home {
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 0 var(--gutter);
}
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1 0 auto;
  display: grid; align-items: end;
  margin: calc(var(--header-h) * -1) calc(var(--gutter) * -1) 0;
  padding: calc(var(--header-h) + clamp(20px, 4vh, 64px)) var(--gutter) clamp(4px, 1vh, 14px);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; container-type: size; background: #000; }
.hero-media iframe {
  position: absolute; left: 50%; top: 50%; border: 0;
  width: max(100cqw, 177.78cqh); height: max(56.25cqw, 100cqh);
  transform: translate(-50%, -50%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,3,3,.55) 0%, rgba(3,3,3,0) 20%, rgba(3,3,3,0) 45%, rgba(3,3,3,.55) 70%, rgba(3,3,3,.88) 88%, var(--bg) 100%);
}
.hero-inner { display: grid; grid-template-columns: auto minmax(18em, 32em); justify-content: start; align-items: center; column-gap: clamp(22px, 2.6vw, 48px); }
.hero-inner .display { text-align: left; }
.hero-inner .hero-copy { border-left: clamp(3px, .35vw, 6px) solid var(--accent); padding-left: clamp(22px, 2.6vw, 48px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero .display { font-size: clamp(36px, min(5.8vw, 9vh), 92px); line-height: 1.04; margin: 0; max-width: none; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-copy { margin: 0; max-width: 34em; font-size: clamp(15px, min(1.7vw, 2.7vh), 24px); line-height: 1.5; text-wrap: pretty; text-shadow: 0 1px 14px rgba(0,0,0,.5); }

/* Pop-up player */
.player { padding: 0; border: 0; background: transparent; color: var(--fg); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: auto; }
.player::backdrop { background: rgba(3,3,3,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.player[open] { display: grid; place-items: center; animation: p-in .2s ease; }
@keyframes p-in { from { opacity: 0; } to { opacity: 1; } }
.player-in { position: relative; padding-top: 52px; width: min(1280px, calc(100vw - 2 * var(--gutter)), calc((100vh - 300px) * 16 / 9)); }
.stage { aspect-ratio: 16 / 9; background: #000; }
.stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.p-close { position: absolute; right: -10px; top: 0; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--fg); cursor: pointer; }
.p-close svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.p-close:hover { color: var(--accent); }
.p-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.p-tabs[hidden] { display: none; }
.p-tabs button { font: inherit; font-size: 14px; color: var(--fg); background: transparent; border: 1px solid #444; padding: 6px 12px; cursor: pointer; }
.p-tabs button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.player-cap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 16px; }
.p-cat { margin: 0 0 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.p-title { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; font-size: clamp(18px, 2vw, 28px); line-height: 1.15; }
.p-meta { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.p-nav { display: flex; gap: 6px; flex: none; }
.p-nav button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid #444; color: var(--fg); cursor: pointer; }
.p-nav button:hover { border-color: var(--accent); color: var(--accent); }
.p-nav svg { width: 10px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
body.player-open { overflow: hidden; }

/* Form */
.form { display: grid; gap: 20px; max-width: 720px; }
.form label { display: grid; gap: 6px; font-size: 15px; }
.form input, .form textarea { font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid #555; padding: 10px 0; border-radius: 0; }
.form textarea { border: 1px solid #555; padding: 12px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--fg); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp { position: absolute; left: -9999px; }
.btn { justify-self: start; font-size: 14px; background: var(--fg); color: var(--bg); border: 0; padding: 16px 30px; cursor: pointer; }
.btn:hover { background: var(--accent); }

/* Footer */
.site-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 40px var(--gutter); font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 60px; }
.site-footer p { margin: 0; }
.to-top { text-decoration: none; }
.foot-right { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-right span a { color: var(--fg); }
.foot-right span a:hover { color: var(--accent); }

/* Tablet and phone */
@media (max-width: 760px) {
  .hero { align-items: end; }
  .hero::before { background: linear-gradient(180deg, rgba(3,3,3,.5) 0%, rgba(3,3,3,0) 16%, rgba(3,3,3,0) 34%, rgba(3,3,3,.8) 66%, var(--bg) 100%); }
  .hero .display { margin-bottom: 12px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-inner .hero-copy { border-left: 0; padding-left: 0; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .content.solo { margin-left: 0; }
  .sidebar { order: 2; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 8px; }
  .side-details { position: static; max-height: none; overflow: visible; }
  .side-details > summary { display: block; cursor: pointer; padding: 14px 0; font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; font-size: 15px; list-style: none; }
  .side-details > summary::-webkit-details-marker { display: none; }
  .side-details > summary::after { content: "+"; float: right; }
  .side-details[open] > summary::after { content: "–"; }
  .side-head { display: none; }
  .about-grid, .press-grid { grid-template-columns: 1fr; }
  .about-grid img { max-width: 420px; }
  .credits-grid { grid-template-columns: 1fr; }
  .credits-photo { position: static; max-width: 520px; }
  .credits-body { display: contents; }
  .credits-body .display { margin-top: 0; order: -2; }
  .credits-photo { order: -1; margin-bottom: 24px; }
  .credits-grid { gap: 0; }
  .press-grid img { max-width: 300px; }
  .credits li { grid-template-columns: minmax(0, 1fr) auto; }
  .c-title { grid-column: 1 / -1; }
  .c-fmt { grid-column: 1; }
  .c-role { grid-column: 1; }
  .c-year { grid-column: 2; grid-row: 2; }

  .burger { display: grid; gap: 6px; background: none; border: 0; padding: 10px 0 10px 10px; cursor: pointer; z-index: 60; }
  .burger span { display: block; width: 26px; height: 2px; background: var(--fg); transition: transform .2s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg);
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 20px var(--gutter); font-size: 28px; overflow-y: auto;
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a, .nav-folder > a { font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 800; text-transform: uppercase; }
  .nav-drop { position: static; opacity: 1; visibility: visible; transform: none; padding: 4px 0 14px; min-width: 0; font-size: 18px; }
  body.menu-open { overflow: hidden; }
  .home-page.menu-open .site-header { background: var(--bg); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .row2 { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
  .pager a { max-width: none; }
  .pager-next { margin-left: 0; }
  .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .play svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
