@font-face {
  font-family: "Polin";
  src: url("fonts/Polin-Regular.woff2") format("woff2"),
       url("fonts/Polin-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Polin";
  src: url("fonts/Polin-Bold.woff2") format("woff2"),
       url("fonts/Polin-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --text: #082938;
  --muted: #4b6270;
  --accent: #f0c7de;
  --accent-text: #b4457c;
  --button: #f0c7de;
  --button-hover: #e8b0cf;
  --footer: #e9e2da;
  --border: #e6d9cb;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Polin", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

.container {
  padding: 0 5%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
}

.logo-role {
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
}

/* Menu: a horizontal bar on wide screens, a hamburger on phones */
.site-header .container { position: relative; }

.main-nav {
  display: flex;
  gap: 4px;
}

.main-nav a {
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent-text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(8, 41, 56, 0.08);
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 14px 5%; font-size: 20px; }
}

/* Sections */
section {
  scroll-margin-top: var(--header-h);
}

.hero {
  padding: 96px 0 80px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-text);
  font-weight: 500;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.15;
}

.accent { color: var(--accent-text); }

.lead {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: 20px;
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section-alt {
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 16px;
  font-size: 32px;
}

.section p {
  max-width: 640px;
}

.button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--button);
  color: var(--text);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

.button:hover {
  background: var(--button-hover);
}

/* About */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 56px;
  align-items: start;
}

.portrait {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--footer);
}

.portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  margin-top: 0;
  font-size: 20px;
  max-width: 760px;
}

.about-text p { margin: 0 0 16px; }
.about-text p:last-child { margin-bottom: 0; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 40px;
}

.filter {
  padding: 8px 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--button);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.filter:hover { background: rgba(240, 199, 222, 0.4); }

.filter.is-active { background: var(--button); }

.filter:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.card[hidden] { display: none !important; }

/* Works grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 40px;
}

.card {
  display: flex;
  flex-direction: column;
}

.card-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.card h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

/* Directing gets the spotlight: bigger cards, two per row */
.work-group + .work-group {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.group-title {
  margin: 0 0 28px;
  font-size: 26px;
}

.work-group--main .group-title {
  font-size: 34px;
}

.work-group--main .group-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 10px;
  background: var(--accent);
  border-radius: 2px;
}

.grid--main .card h4 { font-size: 30px; }
.grid--main .meta { font-size: 16px; }
.grid--main .card p:not(.meta) { font-size: 19px; }

.grid--more {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
}

.grid--more .card h4 { font-size: 20px; }
.grid--more .card p:not(.meta) { font-size: 16px; }

.work-group[hidden] { display: none; }

@media (max-width: 960px) {
  .grid--more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.meta {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.card p:not(.meta) {
  margin: 10px 0 0;
}

.video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

/* Lines up the videos at the bottom of each row of cards */
.card > .video {
  order: -1;
  margin-bottom: 18px;
}

.video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-link {
  background: linear-gradient(135deg, #12445a, var(--text));
}

.video-soon {
  background: var(--footer);
  color: var(--muted);
  cursor: default;
}

.video-poster { color: #fff; }

.video-label {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}



.play {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.2s, transform 0.2s;
}

.play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.video:hover .play {
  background: var(--accent);
  transform: scale(1.06);
}

iframe.video { cursor: auto; }

/* Lists */
.production-list {
  max-width: 760px;
  margin: 24px 0 40px;
  font-size: 20px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  display: flex;
  justify-content: space-between;
  gap: 4px 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.list li:first-child { border-top: 0; padding-top: 0; }

.year {
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

/* Accessibility helpers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--text);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Legal pages (accessibility, privacy) */
.legal { max-width: 800px; }

.legal h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 24px;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 28px;
}

.legal h3 {
  margin: 28px 0 8px;
  font-size: 21px;
}

.legal p { margin: 0 0 14px; }

.legal ol,
.legal ul {
  margin: 0 0 16px;
  padding-inline-start: 24px;
}

.legal li { margin-bottom: 6px; }

.legal a { color: var(--accent-text); }

/* Contact sits inside the gray footer area */
#contact {
  background: var(--footer);
  border-top: 0;
  padding-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 20px;
}

.contact-details a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Footer */
.site-footer {
  padding: 24px 0 32px;
  background: var(--footer);
  border-top: 1px solid rgba(8, 41, 56, 0.12);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.site-footer p { margin: 0; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

.footer-links a {
  color: var(--text);
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--more { grid-template-columns: 1fr; }
  .grid--main .card h4 { font-size: 26px; }
  .group-title, .work-group--main .group-title { font-size: 26px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait { grid-column: 1; max-width: 340px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  h2 { font-size: 26px; }
}
