:root {
  --bg: #F4F4F2;
  --ink: #111111;
  --muted: #555555;
  --soft: #6b6b6b;
  --line: #d4d4d0;
  --line-strong: #b9b9b4;
  --tile: #1b1b1b;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale: one size per role, used everywhere */
  --fs-display: clamp(44px, 6.5vw, 88px); /* SOUND BY BP */
  --fs-title: clamp(34px, 4.4vw, 56px);   /* WORK. ABOUT. CONTACT. CREDITS. */
  --fs-heading: clamp(22px, 2.6vw, 28px); /* credit sections, email, player title */
  --fs-lead: clamp(18px, 1.8vw, 21px);    /* intro / lead sentences */
  --fs-body: 16px;                        /* all reading text */
  --fs-small: 13px;                       /* captions, meta, notes */
  --fs-nav: 13px;                         /* main menu, buttons */
  --fs-label: 12px;                       /* uppercase labels, tabs */
  --lh-body: 1.6;
  --lh-lead: 1.45;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--muted); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }
main.wrap { flex: 1; padding-bottom: 160px; }

/* Shared text roles */
.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.status { font-size: var(--fs-small); color: var(--muted); }

/* Header */
.site-header {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; gap: 12px; flex: 1 1 0; min-width: 0; }
.brand-name {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.9;
}
.brand-name a { color: var(--ink); text-decoration: none; }
.brand-line {
  margin: 0;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
.site-nav {
  flex: 0 0 auto;
  display: flex;
  gap: 28px;
  padding-top: 8px;
  font-size: var(--fs-nav);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.site-nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Page titles */
.page-title {
  margin: 64px 0 20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-title);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Work: tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: -12px 0 36px;
  border-bottom: 1px solid var(--line);
}
.tab {
  font: inherit;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 7px;
  min-height: 44px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  cursor: pointer;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--soft);
}
.tab[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.tab .count { font-weight: 400; color: var(--soft); }

/* Work: grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
}
.grid.is-fetching { opacity: 0.5; }

.tile {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-decoration: none;
}
button.tile { cursor: pointer; }
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--tile);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .play {
  position: relative;
  width: 56px;
  height: 56px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
button.tile:hover .play, button.tile:focus-visible .play { opacity: 1; }
.tile-title { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; color: var(--ink); }
.tile-meta { font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.04em; color: var(--muted); margin-top: -10px; }
.tile-soon { font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: #8f8f8a; }

/* Work: player */
.player {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 24px;
  border: 0;
  background: rgba(12, 12, 12, 0.96);
  color: #ffffff;
}
.player[open] { display: flex; align-items: center; justify-content: center; }
.player::backdrop { background: rgba(12, 12, 12, 0.96); }
.player-inner { width: 100%; max-width: 1100px; display: flex; flex-direction: column; gap: 20px; }
.player-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: #ffffff;
}
.player-frame { aspect-ratio: 16 / 9; background: #000000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-caption { display: flex; flex-direction: column; gap: 6px; }
.player-title { font-family: var(--display); font-size: var(--fs-heading); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.player-meta { font-size: var(--fs-small); letter-spacing: 0.04em; color: #c8c8c8; }
.player-source { font-size: var(--fs-small); color: #ffffff; text-underline-offset: 4px; }
.player-source:hover { color: #c8c8c8; }

/* About */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 40px;
}
.split .left { grid-column: span 5; }
.split .right { grid-column: span 7; display: flex; flex-direction: column; gap: 48px; }
.photo {
  aspect-ratio: 640 / 436;
  background: #DCDCD8;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio { display: flex; flex-direction: column; gap: 18px; font-size: var(--fs-body); line-height: var(--lh-body); color: #222222; max-width: 600px; }
.bio p { margin: 0; }
.bio .lead { font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 500; color: var(--ink); }
.services { max-width: 600px; }
.services h2 { margin: 0 0 12px; }
.services ul { list-style: none; margin: 0; padding: 0; }
.services li { border-top: 1px solid #c9c9c4; padding: 12px 0; font-size: var(--fs-body); font-weight: 600; line-height: 1.4; }
.services li:last-child { border-bottom: 1px solid #c9c9c4; }

.credits-title { margin-top: 128px; margin-bottom: 32px; }
.credits { border-top: 1px solid var(--line-strong); }
.credit-section { border-bottom: 1px solid var(--line-strong); }
.credit-section summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.credit-section summary::-webkit-details-marker { display: none; }
.credit-section .sec-title {
  font-family: var(--display);
  font-size: var(--fs-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}
.credit-section .sec-side { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.credit-section .sec-count { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.credit-section .sign { font-size: 28px; font-weight: 500; width: 24px; text-align: center; line-height: 1; }
.credit-section .sign::before { content: "+"; }
.credit-section[open] .sign::before { content: "\2212"; }
.credit-list { list-style: none; margin: 0; padding: 0 0 24px; }
.credit-list li { padding: 14px 0; border-top: 1px solid #dcdcd8; display: flex; flex-direction: column; gap: 2px; }
.credit-name { font-size: var(--fs-body); font-weight: 600; line-height: 1.4; }
.credit-role { font-size: var(--fs-small); color: var(--muted); }

/* Contact */
.contact { max-width: 720px; display: flex; flex-direction: column; gap: 56px; }
.contact .intro { margin: 0; font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 500; }
.contact .email-block { display: flex; flex-direction: column; gap: 10px; }
.contact .email {
  font-family: var(--display);
  font-size: var(--fs-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.cform { display: flex; flex-direction: column; gap: 28px; }
.cfield { display: flex; flex-direction: column; gap: 6px; }
.cfield input, .cfield textarea {
  font: inherit;
  font-size: var(--fs-body);
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #8f8f8a;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  width: 100%;
}
.cfield textarea { resize: vertical; min-height: 140px; }
.cfield input:focus, .cfield textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.cfield [aria-invalid="true"] { border-bottom-color: #b42318; }
.field-error, .form-error { margin: 0; font-size: var(--fs-small); color: #b42318; }
.btn {
  align-self: flex-start;
  min-height: 52px;
  padding: 0 36px;
  background: var(--ink);
  color: #ffffff;
  border: 0;
  font: inherit;
  font-size: var(--fs-nav);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: #333333; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.thanks { margin: 0; font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 500; }
.contact-meta {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.contact-meta a { color: var(--ink); text-underline-offset: 4px; }

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .left, .split .right { grid-column: auto; }
}
@media (max-width: 700px) {
  .site-header { flex-direction: column; }
  .brand { flex: none; }
  .site-nav { padding-top: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-header { padding-top: 32px; }
  .page-title { margin-top: 48px; }
  .credits-title { margin-top: 96px; }
  .player { padding: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 32px; }
}
@media (max-width: 480px) {
  .tabs { gap: 8px 22px; }
  .tab .count { display: none; }
}@media (max-width: 480px) {
  .site-nav { gap: 20px; }
}

/* Mobile menu */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-top: 2px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
}
.menu-toggle span {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--ink);
}
body.menu-open .menu-toggle span:first-child { transform: translateY(5px) rotate(45deg); }
body.menu-open .menu-toggle span:last-child { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 700px) {
  .site-header { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; position: relative; z-index: 60; gap: 12px; }
  .brand-name { font-size: clamp(32px, 10.4vw, 48px); white-space: nowrap; }
  .page-title { font-size: clamp(23px, 7.42vw, 34px); }
  .credit-section .sec-title { font-size: clamp(15px, 4.8vw, 22px); }
  .brand { flex: 1 1 auto; position: relative; z-index: 2; }
  .menu-toggle { display: flex; }
  .site-nav { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0;
    font-family: var(--display);
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: none;
    line-height: 1.15;
  }
  body.menu-open .site-nav a { padding: 6px 0; }
  body.menu-open .site-nav a[aria-current="page"] { text-underline-offset: 8px; text-decoration-thickness: 2px; }
}
/* Contact intro matches About body text */
.contact .intro, p.intro { font-size: var(--fs-body); font-weight: 400; line-height: var(--lh-body); color: #222; }

/* Lowercase identity (trial) */
.brand-name, .page-title { text-transform: lowercase; }

/* Brand line: wraps between groups, two clean lines on mobile */
.brand-line .bl-role, .brand-line .bl-award { white-space: nowrap; }
@media (max-width: 700px) {
  .brand-line { margin-right: -56px; letter-spacing: 0.08em; line-height: 1.7; }
  .brand-line .bl-sep { display: none; }
  .brand-line .bl-role, .brand-line .bl-award { display: block; }
}
@media (max-width: 1100px) {
  .brand-line .bl-sep { display: none; }
  .brand-line .bl-role, .brand-line .bl-award { display: block; }
}
/* Mobile menu links styled like page titles */
@media (max-width: 700px) {
  body.menu-open .site-nav { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; text-transform: lowercase; line-height: 1; gap: 18px; font-size: 34px; }
  body.menu-open .site-nav a::after { content: "."; }
}
/* Studio photo on Contact */
.studio-photo { margin: 0; }
.studio-photo img { display: block; width: 100%; height: auto; }
/* Contact laid out like About */
.split .right.contact { max-width: none; gap: 48px; }
.photo.studio { aspect-ratio: auto; height: auto; }
.photo.studio img { height: auto; }
/* About fact sheet under the photo */
.split .left { display: flex; flex-direction: column; gap: 32px; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: var(--fs-body); font-weight: 500; color: var(--ink); line-height: 1.4; }
/* Email copy button */
.email-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.copy-email { font: inherit; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.copy-email:hover { border-color: var(--ink); }
/* Contact fact sheet */
.contact-facts dd a { color: var(--ink); text-decoration: none; }
.contact-facts dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Credits: no section counts */
.credit-section .sec-count { display: none; }
/* Contact desktop balance */
.contact-lead { display: flex; flex-direction: column; gap: 6px; }
.contact-lead .email-block { gap: 0; }
@media (min-width: 861px) {
  .contact-split { row-gap: 32px; }
  .contact-split .left { grid-column: 1 / span 5; grid-row: 1; }
  .contact-split .right.contact { grid-column: 6 / span 7; grid-row: 1; align-self: center; }
  .contact-split .facts-wrap { grid-column: 1 / span 5; grid-row: 2; }
}
/* Keep layout from shifting when a page has no scrollbar */
html { scrollbar-gutter: stable; }
/* Contact: social links in the email style */
.contact .email-block { display: flex; flex-direction: column; gap: 4px; }
.contact .email.social { text-transform: lowercase; }
/* Work tabs: no counts */
.tab .count { display: none; }
/* About: lead sits close to the fact table */
.split .right .bio-lead + .facts { margin-top: -28px; }
/* Work: tabs sit a bit closer to the title */
.tabs { margin-top: -20px; }
/* Credits: selected-credits footnote */
.page-title .title-mark { font-size: 0.65em; font-weight: 500; vertical-align: super; line-height: 0; margin-left: 0.04em; }
.credits-note { margin: 28px 0 0; font-size: var(--fs-small); color: var(--muted); }
