:root {
  --bg: #0a0a0a;
  --text: #e8e6e1;
  --bright: #f2f0eb;
  --soft: #d6d4cf;
  --muted: #a8a6a1;
  --faint: #8a8883;
  --panel: #131313;
  --line: #242424;
  --rule: #1f1f1f;
  --accent: #d9a441;
  --mono: 'Courier Prime', 'Courier New', monospace;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 64px; padding-bottom: 24px; }

/* type */
.heading, .logo, .hero-title, .project-title, .card-title {
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
}
.heading { margin: 0; font-size: 22px; letter-spacing: 0.06em; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--faint); letter-spacing: 0.1em; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.soft { color: var(--soft); }

/* header */
.site-header {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  justify-content: space-between; align-items: center;
  padding-top: 28px; padding-bottom: 28px;
}
.logo { font-size: 22px; letter-spacing: 0.04em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.site-header nav a { color: var(--muted); padding: 12px 0; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; }

/* placeholders */
.placeholder {
  background: var(--panel); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.placeholder span { font-family: var(--mono); font-size: 14px; color: var(--faint); letter-spacing: 0.06em; }

/* hero */
.hero { position: relative; aspect-ratio: 16 / 9; min-height: 420px; overflow: hidden; background: var(--panel); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media.placeholder { align-items: flex-start; padding-top: 18%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10,10,10,.75) 0%, rgba(10,10,10,0) 55%);
}
.hero-overlay {
  position: absolute; z-index: 1;
  left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vw, 52px);
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end;
}
.hero-title { margin: 0; font-size: clamp(40px, 6.4vw, 88px); line-height: 1; letter-spacing: 0.01em; }
.hero-sub { margin: 18px 0 0; font-size: clamp(16px, 1.6vw, 20px); color: var(--soft); }

.button {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--text);
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}
.button:hover { background: var(--text); color: var(--bg); }

/* credits */
.credits {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline;
  padding-top: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--rule);
}
.credits-list { font-size: 17px; color: var(--soft); letter-spacing: 0.02em; }

/* work grid */
.section-head {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  justify-content: space-between; align-items: baseline; margin-bottom: 32px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 44px; padding: 0 18px; cursor: pointer;
  font-family: inherit; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid #3a3a3a; background: transparent; color: #c9c7c2;
}
.filters button[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 44px 28px; }
.card { display: flex; flex-direction: column; gap: 4px; }
.card[hidden] { display: none; }
.frame { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.card .frame { margin-bottom: 10px; }
a.card:hover .frame img { transform: scale(1.03); }
.card-title { font-size: 16px; letter-spacing: 0.03em; color: var(--bright); }
.card-meta { font-family: var(--mono); font-size: 13px; color: var(--faint); letter-spacing: 0.06em; }
.card-role { font-size: 15px; color: var(--muted); }

/* about */
.about-teaser { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; padding-bottom: 72px; }
.portrait { flex: 1 1 280px; max-width: 420px; aspect-ratio: 4 / 5; }
.prose { flex: 999 1 420px; min-width: 0; max-width: 720px; font-size: 18px; line-height: 1.6; }
.prose .heading { margin-bottom: 20px; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 24px; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; color: var(--soft); }
.prose .button { margin-top: 10px; }
.text-link { font-size: 15px; letter-spacing: 0.06em; border-bottom: 1px solid var(--text); padding-bottom: 4px; }
.links { display: flex; flex-wrap: wrap; gap: 12px 32px; }

/* project page */
.project-head { padding-bottom: 32px; }
.back { display: inline-block; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; padding: 8px 0; }
.project-title { margin: 0; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; letter-spacing: 0.02em; }
.project-meta { margin: 16px 0 0; font-family: var(--mono); color: var(--faint); letter-spacing: 0.08em; }
.project-role { margin: 4px 0 0; font-size: 18px; color: var(--soft); }
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--panel); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.section > .heading + .gallery { margin-top: 24px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.next { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; border-top: 1px solid var(--rule); margin-top: 48px; padding-bottom: 64px; }

/* contact */
.contact { padding-bottom: 96px; }
.contact .heading { margin-bottom: 32px; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: 48px; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: flex-end;
  padding-top: 64px; padding-bottom: 48px;
}
.footer-pitch { max-width: 720px; }
.footer-pitch .eyebrow { font-size: 14px; margin-bottom: 14px; }
.pitch { margin: 0; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; color: var(--bright); }
.footer-pitch .muted { margin: 14px 0 0; }
.email { font-family: var(--mono); font-size: 20px; border-bottom: 1px solid var(--text); padding-bottom: 4px; overflow-wrap: anywhere; }
.email.big { font-size: clamp(22px, 3.4vw, 40px); }

@media (max-width: 600px) {
  .hero { aspect-ratio: auto; min-height: 0; height: auto; display: flex; flex-direction: column; background: none; }
  .hero::after { display: none; }
  .hero-media { position: relative; aspect-ratio: 16 / 9; }
  .hero-media.placeholder { padding-top: 24px; align-items: center; }
  .hero-overlay { position: static; padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .frame img { transition: none; }
}

.footer-contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.social { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.social a { color: var(--muted); padding: 12px 0; }
.social a:hover { color: #fff; }
