@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

:root {
  color-scheme: dark;
  --black: #100f0e;
  --panel: #181513;
  --paper: #f4eee6;
  --muted: #c5b9ad;
  --amber: #f39a63;
  --line: #443930;
  --gutter: clamp(24px, 5.4vw, 100px);
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--paper); font: 400 17px/1.55 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  font-kerning: normal;
  letter-spacing: .018em;
  text-wrap: balance;
}
.wrap { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }
.eyebrow, nav, .button, .hero-index, .copyright, .back-link {
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.accent { color: var(--amber); }
.divider { margin-inline: .4em; color: #aa8069; }
.skip { position: absolute; z-index: 3; top: 10px; left: 10px; padding: 10px 16px; background: var(--paper); color: var(--black); transform: translateY(-150%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.header { position: relative; z-index: 2; background: #0f0f0f; border-bottom: 1px solid #392d26; }
.header-inner { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.brand { flex: none; width: 170px; display: block; }
.brand img { width: 100%; height: auto; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 3.15vw, 52px); }
nav a { padding-block: 10px; }
nav a:hover, nav a[aria-current="page"] { color: var(--amber); }
nav a:last-child { border: 1px solid #795341; padding: 10px 14px; }
nav a:last-child:hover, nav a:last-child[aria-current="page"] { border-color: var(--amber); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #120e11; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 34%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#120e11 0%,#120e11e8 8%,#120e1177 32%,transparent 63%), linear-gradient(0deg,#110e11 0%,transparent 45%); }
.hero-inner { display: flex; align-items: center; justify-content: space-between; min-height: clamp(570px, 52vw, 785px); padding-block: 62px; }
.hero-copy { width: min(100%, 640px); }
.hero-status { display: inline-flex; align-items: center; gap: 10px; color: var(--amber); margin-bottom: 22px; }
.hero-status span { height: 7px; width: 7px; background: var(--amber); border-radius: 100%; }
.hero-wordmark { aspect-ratio: 5.95; overflow: hidden; display: grid; align-items: center; }
.hero-wordmark img { width: 100%; height: auto; margin-block: -9%; }
.hero-description { max-width: 350px; margin-block: 28px 24px; color: #e5d8cc; }
.button { display: inline-flex; align-items: center; gap: 22px; justify-content: space-between; padding: 14px 17px; border: 1px solid #9a715b; background: #160f0de6; }
.button:hover { background: var(--amber); border-color: var(--amber); color: #1d120e; }
.button span, .text-link span, .card-arrow { font-size: 1.1rem; line-height: 1; }
.hero-index { display: inline-flex; align-self: end; align-items: center; gap: 14px; white-space: nowrap; padding-block: 9px; }
.hero-index span { color: var(--amber); font-size: 1rem; }

.section { padding-block: clamp(52px, 7vw, 105px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 26px; }
.section-head .eyebrow, .studio-split .eyebrow, .closing .eyebrow { margin-bottom: 10px; }
.section h2, .studio-band h2 { font-size: clamp(45px, 6.1vw, 93px); }
.text-link { display: inline-flex; gap: 9px; align-items: center; color: var(--amber); font-size: .91rem; font-weight: 700; line-height: 1.35; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-head > .text-link { padding-bottom: 4px; white-space: nowrap; }
.film-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px, 2.5vw, 36px); }
.film-grid.releases { grid-template-columns: repeat(2,minmax(0,1fr)); }
.film-card { position: relative; display: block; min-width: 0; border-bottom: 1px solid var(--line); }
.poster { aspect-ratio: 3 / 4; overflow: hidden; background: #261d1a; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.releases .poster { aspect-ratio: 12 / 5; }
.releases .poster img { object-position: center; }
.releases a[href="/films/when-we-get-there/"] .poster img { object-position: 50% 38%; }
.film-card-copy { padding: 17px 33px 20px 0; }
.film-card-copy .eyebrow { color: var(--muted); font-size: .63rem; }
.film-card-copy h3 { font-size: clamp(28px, 3.5vw, 57px); margin-top: 7px; }
.card-arrow { position: absolute; right: 0; bottom: 23px; color: var(--amber); }
.film-card:hover .poster img, .film-card:focus-visible .poster img { transform: scale(1.035); }
.poster-full { background: var(--black); }
.poster-full img { object-fit: contain; }
.film-card:hover .poster-full img, .film-card:focus-visible .poster-full img { transform: none; }
.film-card:hover h3 { color: var(--amber); }

.studio-band { background: var(--panel); border-block: 1px solid #352820; }
.studio-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: end; padding-block: clamp(62px, 9vw, 125px); }
.studio-split p:not(.eyebrow), .closing p:not(.eyebrow) { max-width: 510px; color: var(--muted); }
.studio-split .text-link { margin-top: 17px; }
.panda-family { align-items: start; }
.panda-family h2 { font-size: clamp(38px, 5.2vw, 76px); }
.panda-family-list { list-style: none; margin: 0; padding: 0; }
.panda-family-list li { border-bottom: 1px solid var(--line); }
.panda-family-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
.panda-family-studio { display: flex; align-items: center; gap: clamp(9px, 1.4vw, 14px); }
.panda-family-logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: clamp(54px, 7vw, 90px); height: clamp(38px, 5vw, 51px); }
.panda-family-logo img { width: 100%; height: 100%; object-fit: contain; }
.panda-family-logo svg { width: auto; height: min(100%, 39px); }
.panda-family-row h3 { font-size: clamp(22px, 2.6vw, 36px); }
.panda-family-row p { margin-top: 4px; }
.panda-family-current, a.panda-family-row:hover { color: var(--amber); }
.panda-family-current > span { font-size: .8rem; white-space: nowrap; }
.closing { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.closing p:not(.eyebrow) { margin-top: 12px; }

.masthead { padding-block: clamp(65px, 10vw, 145px) clamp(36px, 5vw, 65px); }
.masthead h1, .film-detail h1 { font-size: clamp(44px, 8vw, 122px); margin-top: 14px; }
.intro { color: var(--muted); max-width: 640px; font-size: clamp(17px, 2.05vw, 26px); line-height: 1.48; margin-top: 23px; }
.slate-section { padding-top: 0; }
.film-detail { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(34px, 6vw, 92px); align-items: center; padding-block: clamp(42px, 7vw, 100px); }
.detail-poster img { width: 100%; max-width: 570px; height: auto; margin-inline: auto; }
.back-link { display: inline-flex; flex-direction: row-reverse; gap: 9px; color: var(--muted); margin-bottom: 32px; }
.back-link:hover { color: var(--amber); }
.credits { margin-block: 28px; }
.credits div { padding-block: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 85px 1fr; gap: 10px; }
.credits dt { color: var(--amber); font-size: .8rem; font-weight: 700; }
.credits dd { margin: 0; color: var(--muted); font-size: .9rem; }
.film-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }

.team-section { padding-top: 12px; padding-bottom: 55px; }
.team-section h2 { font-size: clamp(38px, 4.5vw, 65px); }
.team-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.team-grid article { border-top: 1px solid var(--line); padding: 23px 0 10px; }
.team-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-block: 9px 12px; }
.team-name h3 { font-size: clamp(30px, 3.4vw, 53px); }
.team-profile { margin-top: 12px; }
.team-grid article > p:not(.eyebrow) { max-width: 470px; color: var(--muted); }
.team-grid img { width: 100%; max-height: 540px; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 28%; margin-bottom: 20px; }
.compact .team-name { margin-top: 0; }
.services-list { padding-top: 0; padding-bottom: 15px; }
.services-list article { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 24px; padding-block: 26px; border-top: 1px solid var(--line); }
.services-list h2, .contact-section h2 { font-size: clamp(28px, 3.4vw, 50px); }
.services-list p, address { color: var(--muted); }
.services-list .text-link { margin-top: 7px; }
.contact-section { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 30px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-email { display: inline-block; color: var(--amber); overflow-wrap: anywhere; }
.contact-section h2 { margin-bottom: 14px; }
address { font-style: normal; }

.footer { border-top: 1px solid var(--line); background: #0d0c0b; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 25px; }
.footer .brand { width: 135px; }
.footer-contact { color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .82rem; }
.footer-contact a:hover, .contact-section a:hover { text-decoration: underline; }
.copyright { color: var(--muted); font-size: .6rem; text-align: right; }

@media (max-width: 750px) {
  .header-inner { min-height: 64px; gap: 14px; }
  .brand { width: 124px; }
  nav { gap: 12px; letter-spacing: .055em; font-size: .64rem; }
  nav a:last-child { border: 0; padding-inline: 0; }
  .hero-inner { min-height: 670px; padding-top: 260px; padding-bottom: 32px; align-items: start; justify-content: end; flex-direction: column; gap: 21px; }
  .hero-art { inset: 0; }
  .hero-art img { object-position: 50% 10%; }
  .hero-art::after { background: linear-gradient(0deg,#120e11 0%,#120e11ed 29%,#120e115e 65%,transparent 92%); }
  .hero-index { display: none; }
  .hero-description { margin-block: 20px; }
  .studio-split, .film-detail { grid-template-columns: 1fr; }
  .studio-split { gap: 22px; }
  .film-detail { align-items: start; }
  .detail-poster { width: min(100%, 450px); }
  .film-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { flex-wrap: wrap; }
  .copyright { text-align: left; }
}
@media (max-width: 480px) {
  .header-inner { width: calc(100% - 28px); gap: 10px; }
  .brand { width: 105px; }
  nav { gap: 9px; font-size: .59rem; }
  .film-grid.releases { grid-template-columns: 1fr; gap: 24px; }
  .team-grid, .services-list article, .contact-section { grid-template-columns: 1fr; gap: 16px; }
  .closing { align-items: start; flex-direction: column; }
}
@media (max-width: 360px) {
  .panda-family-current { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 3px 9px; }
  .panda-family-current .panda-family-studio { display: contents; }
  .panda-family-current > span { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
