:root {
  --paper: #fffefd;
  --ink: #171513;
  --muted: #6f6962;
  --line: rgba(23, 21, 19, 0.14);
  --sage: #687a68;
  --clay: #a06952;
  --blue: #43576c;
  --cream: #fffaf6;
  --soft-paper: #fbf8f4;
  --shadow: 0 18px 44px rgba(22, 18, 14, 0.08);
  --brand-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-font: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  border: 1px solid var(--ink);
  background: var(--cream);
  padding: 8px 12px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  align-items: center;
  justify-content: center;
  min-height: 184px;
  padding: clamp(30px, 4.4vw, 52px) clamp(18px, 4vw, 56px) 42px;
  border-bottom: 1px solid transparent;
  background: var(--paper);
  transition: border-color 160ms ease, background 160ms ease;
  text-align: center;
}

.site-header.is-scrolled {
  background: var(--paper);
}

.wordmark {
  display: inline-block;
  margin: 0 auto 56px;
  font-family: var(--brand-serif);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0.018em;
  line-height: 1;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: min(760px, calc(100vw - 36px));
  justify-self: center;
  gap: clamp(22px, 4vw, 46px);
  font-family: var(--nav-font);
  font-size: clamp(15px, 1.6vw, 19px);
  font-style: normal;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: lowercase;
}

.site-nav a,
.site-nav summary {
  position: relative;
  width: fit-content;
  padding: 4px 0;
  cursor: pointer;
  list-style: none;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.site-nav a::after,
.site-nav summary::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.site-nav a.is-active::after,
.site-nav summary:hover::after,
.nav-menu[open] summary::after,
.nav-menu.is-active summary::after {
  transform: scaleX(1);
}

.nav-menu {
  position: relative;
}

.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 25;
  display: none;
  min-width: 180px;
  padding: 16px 26px 18px;
  background: rgba(255, 254, 253, 0.88);
  box-shadow: 0 18px 40px rgba(18, 15, 12, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.nav-menu[open] .nav-panel {
  display: grid;
  gap: 7px;
}

.nav-panel a {
  justify-self: start;
  font-family: var(--nav-font);
  font-size: clamp(13px, 1.2vw, 16px);
  font-style: normal;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 8px 8px;
  background: currentColor;
}

main {
  min-height: calc(100vh - 160px);
}

.section {
  padding: clamp(70px, 9vw, 132px) clamp(18px, 4vw, 56px);
}

.section.tight {
  padding-top: clamp(38px, 6vw, 80px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero {
  display: block;
  min-height: auto;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px) clamp(78px, 10vw, 136px);
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  justify-items: center;
  align-content: end;
  padding: clamp(22px, 4vw, 56px) clamp(22px, 4vw, 56px) 78px;
  color: var(--cream);
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
}

h1,
.page-title {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 92px);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 66px);
}

h3 {
  font-family: var(--serif);
  font-size: clamp(25px, 3.2vw, 42px);
}

.lede {
  max-width: 710px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
}

.body-copy {
  max-width: 690px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.text-button,
.ghost-button,
.submit-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 10px 20px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ghost-button {
  background: transparent;
  color: var(--ink);
}

.text-button:hover,
.ghost-button:hover,
.submit-button:hover {
  transform: translateY(-1px);
}

.ghost-button:hover {
  background: var(--ink);
  color: var(--cream);
}

.hero-image {
  position: relative;
  width: min(1180px, 100%);
  min-height: clamp(440px, 42vw, 600px);
  margin: 0 auto;
  overflow: hidden;
  background: #ddd3c7;
}

.hero-image img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.74) saturate(0.9);
}

.hero-image::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(29, 21, 14, 0.1);
  content: "";
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms ease, visibility 900ms;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-controls {
  position: absolute;
  right: 12px;
  bottom: 14px;
  left: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--cream);
}

.hero-control,
.hero-dot {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.hero-control {
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
}

.hero-dot {
  width: 28px;
  background: transparent;
}

.hero-dot::before {
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.hero-dot[aria-current="true"]::before {
  background: currentColor;
}

.hero-control:focus-visible,
.hero-dot:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

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

.hero-caption {
  display: none;
}

.hero-title {
  font-family: var(--brand-serif);
  font-size: clamp(42px, 5.4vw, 72px);
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.hero-subtitle {
  margin-top: 8px;
  font-family: var(--nav-font);
  font-size: clamp(20px, 2vw, 28px);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.hero-copy .eyebrow {
  font-family: var(--brand-serif);
  font-size: clamp(16px, 1.9vw, 24px);
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: none;
  color: rgba(255, 250, 246, 0.9);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.hero-copy .lede {
  font-family: var(--brand-serif);
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255, 250, 246, 0.92);
  font-size: clamp(18px, 2vw, 25px);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.3);
}

.hero-copy .text-button {
  border-color: var(--cream);
  background: transparent;
  color: var(--cream);
  box-shadow: 0 0 0 1px rgba(255, 250, 246, 0.3) inset;
}

.hero-copy .text-button:hover {
  background: var(--cream);
  color: var(--ink);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.section-heading.centered {
  display: grid;
  justify-items: center;
  justify-content: center;
  width: min(720px, 100%);
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.section-heading.centered p {
  margin: 12px auto 0;
  text-align: center;
}

.soft-band {
  background: var(--soft-paper);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

.category-grid-work {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.category-grid-work .category-card {
  grid-column: span 2;
}

.category-grid-work .category-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.category-grid-work .category-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.category-card {
  position: relative;
  display: grid;
  min-height: clamp(330px, 38vw, 490px);
  overflow: hidden;
  align-items: end;
  isolation: isolate;
}

.category-card::after,
.film-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42));
  content: "";
}

.category-card img,
.film-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.category-card:hover img,
.film-card:hover img {
  transform: scale(1.035);
}

.category-label,
.film-label {
  position: relative;
  z-index: 2;
  padding: 22px;
  color: var(--cream);
}

.category-label span,
.film-label span,
.meta {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-label strong,
.film-label strong {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
}

.project-card {
  display: grid;
  gap: 16px;
}

.project-image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ded7ce;
}

.project-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 460ms ease, filter 460ms ease;
}

.project-card:hover .project-image img {
  filter: brightness(0.94);
  transform: scale(1.025);
}

.project-meta {
  display: grid;
  gap: 5px;
}

.project-meta span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-meta strong {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.05;
}

.project-meta em {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.06em;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.portrait-frame.round {
  width: min(250px, 60vw);
  aspect-ratio: 1;
  border-radius: 999px;
  justify-self: center;
}

.portrait-frame img {
  height: 100%;
  object-fit: cover;
}

.about-preview {
  width: min(900px, 100%);
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 92px);
  text-align: left;
}

.about-preview h2 {
  font-size: clamp(28px, 4vw, 52px);
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.home-films-inner {
  width: min(1280px, 100%);
}

.category-grid.category-grid-home,
.film-grid.film-grid-home {
  gap: clamp(28px, 3.5vw, 48px);
}

.film-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #ddd3c7;
}

.film-grid-home .film-card {
  display: grid;
  align-items: end;
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: auto;
}

.play-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 250, 242, 0.8);
  border-radius: 999px;
  place-items: center;
}

.play-mark::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--cream);
  content: "";
}

.page-hero {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px) clamp(34px, 5vw, 70px);
}

.page-hero-inner {
  width: min(1000px, 100%);
  margin: 0 auto;
  text-align: center;
}

.page-hero-inner .lede {
  margin-right: auto;
  margin-left: auto;
}

.page-hero-inner .inline-actions {
  justify-content: center;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 34px;
  font-size: clamp(17px, 2.4vw, 25px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.subcategory-block {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 30px auto clamp(28px, 4vw, 48px);
  color: var(--ink);
  text-align: center;
}

.subcategory-block span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 31px);
}

.subcategory-block div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 16px;
  font-family: var(--nav-font);
  font-size: clamp(14px, 1.8vw, 20px);
  letter-spacing: 0.08em;
}

.subcategory-block a {
  border-bottom: 1px solid currentColor;
}

.subcategory-block b {
  color: var(--muted);
  font-weight: 400;
}

.category-links a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
}

.dot {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.5vw, 18px);
}

.gallery-item {
  grid-column: span 4;
  overflow: hidden;
  background: #ded7ce;
}

.gallery-item:nth-child(6n + 1),
.gallery-item:nth-child(6n + 4) {
  grid-column: span 7;
}

.gallery-item:nth-child(6n + 2),
.gallery-item:nth-child(6n + 5) {
  grid-column: span 5;
}

.gallery-item img {
  height: clamp(260px, 34vw, 560px);
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.contact-panel {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.home-contact {
  padding-top: clamp(54px, 7vw, 92px);
  padding-bottom: clamp(54px, 7vw, 92px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.home-contact-inner {
  display: grid;
  justify-items: center;
}

.home-contact .body-copy {
  margin: 22px auto 0;
}

.home-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 28px;
  font-family: var(--nav-font);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-contact-links a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.contact-panel > * {
  padding: clamp(28px, 4vw, 54px);
}

.contact-details {
  display: grid;
  gap: 18px;
  border-right: 1px solid var(--line);
  align-content: start;
}

.contact-details a {
  border-bottom: 1px solid currentColor;
  width: fit-content;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 13px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-note {
  border: 1px solid var(--line);
  padding: clamp(22px, 4vw, 40px);
  background: rgba(255, 250, 242, 0.42);
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 32px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.site-footer a {
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  border-bottom-color: currentColor;
}

@media (max-width: 980px) {
  .hero,
  .split-band,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .category-grid,
  .film-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid-work .category-card,
  .category-grid-work .category-card:nth-child(4),
  .category-grid-work .category-card:nth-child(5) {
    grid-column: auto;
  }

  .category-card {
    min-height: 420px;
  }

  .about-preview {
    width: min(620px, 100%);
    text-align: center;
  }

  .about-preview .inline-actions {
    justify-content: center;
  }

  .contact-details {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 132px;
    padding-top: 34px;
    padding-bottom: 24px;
  }

  .wordmark {
    margin-bottom: 30px;
    font-size: 36px;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 24px;
    right: 18px;
  }

  .site-nav {
    position: fixed;
    inset: 132px 0 auto;
    display: grid;
    gap: 16px;
    width: 100%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    padding: 16px 18px 22px;
    font-size: 18px;
    text-align: left;
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a,
  .site-nav summary {
    padding: 2px 0;
  }

  .nav-panel {
    position: static;
    min-width: 0;
    margin-top: 6px;
    padding: 8px 0 4px 18px;
    background: transparent;
    box-shadow: none;
    transform: none;
    backdrop-filter: none;
  }

  .nav-menu[open] .nav-panel {
    display: grid;
    gap: 6px;
  }

  .nav-panel a {
    font-size: 14px;
  }

  .hero {
    padding-top: 16px;
    padding-bottom: 70px;
  }

  .hero-image {
    min-height: 540px;
  }

  .hero-copy {
    padding: 24px 20px 78px;
  }

  .section-heading {
    display: grid;
  }

  .category-grid,
  .film-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .film-card {
    min-height: 360px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item:nth-child(6n + 1),
  .gallery-item:nth-child(6n + 2),
  .gallery-item:nth-child(6n + 4),
  .gallery-item:nth-child(6n + 5) {
    grid-column: auto;
  }

  .gallery-item img {
    height: 390px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer div {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .hero-image,
  .category-card,
  .film-card,
  .gallery-item img {
    min-height: 0;
    height: 320px;
  }

  .hero-image {
    height: 540px;
  }

  .hero-controls {
    gap: 4px;
  }

  .hero-dot {
    width: 24px;
  }

  .category-links {
    font-size: 15px;
    letter-spacing: 0.11em;
  }
}
