:root {
  --bg: #f7f4ee;
  --bg-deep: #efe7dc;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-soft: rgba(255, 252, 247, 0.6);
  --surface-strong: #fffdfa;
  --text: #171715;
  --muted: #605c57;
  --muted-soft: rgba(23, 23, 21, 0.62);
  --line: rgba(23, 23, 21, 0.11);
  --line-strong: rgba(23, 23, 21, 0.18);
  --shadow: 0 28px 70px rgba(24, 24, 22, 0.1);
  --shadow-soft: 0 16px 34px rgba(24, 24, 22, 0.08);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1280px, calc(100vw - 64px));
  --section-space: clamp(4.75rem, 8vw, 8rem);
  --header-h: 3.6rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(211, 197, 175, 0.22), transparent 31%),
    radial-gradient(circle at bottom right, rgba(192, 200, 208, 0.16), transparent 27%),
    linear-gradient(180deg, #fcfaf5 0%, var(--bg) 52%, #f6f2ec 100%);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
}

.page-shell {
  overflow: clip;
}

/* ── Sticky header ────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 244, 238, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(-100%);
  opacity: 0;
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease;
  pointer-events: none;
}

.site-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__brand {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  gap: 2rem;
}

.site-header__nav a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: width 220ms ease;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
  color: var(--text);
}

.site-header__nav a:hover::after,
.site-header__nav a:focus-visible::after {
  width: 100%;
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(94vh, 960px);
  display: flex;
  align-items: flex-end;
  padding: 1.6rem 0 2.15rem;
}

.hero__media,
.hero__overlay,
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
}

.hero__media {
  overflow: hidden;
}

.hero__poster {
  background:
    linear-gradient(145deg, rgba(12, 12, 12, 0.16), rgba(12, 12, 12, 0.04)),
    radial-gradient(circle at 18% 18%, rgba(241, 225, 196, 0.42), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(103, 112, 129, 0.38), transparent 24%),
    radial-gradient(circle at 58% 78%, rgba(138, 120, 102, 0.25), transparent 34%),
    linear-gradient(140deg, #d7cec2 0%, #b8b6af 35%, #8a918b 68%, #666d77 100%);
  transform: scale(1.02);
}

.hero__poster::after {
  content: attr(data-label);
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 240ms ease;
}

.has-hero-video .hero__video {
  opacity: 1;
}

.has-hero-video .hero__poster::after {
  display: none;
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.18) 0%, rgba(16, 16, 16, 0.24) 35%, rgba(16, 16, 16, 0.56) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  display: grid;
  gap: 5.5rem;
}

.hero__masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero__brand,
.hero__availability,
.section-heading__eyebrow,
.modal__kicker,
.contact-card__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__availability {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.hero__availability:hover {
  color: #fff;
  text-decoration: underline;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 2.5rem;
  align-items: end;
}

.hero__text {
  max-width: 46rem;
}

.hero__title,
.section-heading h2,
.text-block h2,
.category-block h3,
.modal__body h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.hero__title {
  max-width: 11ch;
  font-size: clamp(4rem, 8vw, 7.2rem);
}

.hero__subtitle {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero__panel {
  padding: 1.4rem 1.45rem 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.hero__panel-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__panel-text {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Scroll hint ──────────────────────────────────── */

.hero__scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7));
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Button ───────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button::after {
  content: "↓";
  font-size: 0.94rem;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.12);
}

/* ── Intro strip ──────────────────────────────────── */

.intro-strip {
  position: relative;
  padding: 1.45rem 0;
  background: rgba(255, 255, 255, 0.56);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.intro-strip__inner p {
  margin: 0;
  max-width: 58rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
}

/* ── Section headings ─────────────────────────────── */

.section-heading,
.text-block {
  display: grid;
  gap: 1rem;
}

.section-heading {
  margin-bottom: 2.8rem;
}

.section-heading__row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 2rem;
  align-items: end;
}

.section-heading h2,
.text-block h2,
.modal__body h3 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
}

.section-heading__eyebrow,
.contact-card__label {
  color: rgba(23, 23, 21, 0.54);
}

.section-heading__support {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1rem;
}

.text-block--narrow {
  max-width: 50rem;
}

.text-block p {
  margin: 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ── Scroll-reveal ────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered children inside work section */
.reveal .category-block {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible .category-block {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible .category-block:nth-child(1) { transition-delay: 0ms; }
.reveal.is-visible .category-block:nth-child(2) { transition-delay: 100ms; }
.reveal.is-visible .category-block:nth-child(3) { transition-delay: 200ms; }
.reveal.is-visible .category-block:nth-child(4) { transition-delay: 300ms; }

/* ── Work section ─────────────────────────────────── */

.work-section {
  position: relative;
}

.work-section__categories {
  display: grid;
  gap: 2.25rem;
}

.category-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  padding: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5)),
    var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.category-block__header {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-height: 100%;
  padding-right: 1rem;
}

.category-block__header::after {
  content: "";
  width: 72px;
  height: 1px;
  background: var(--line-strong);
}

.category-block h3 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
}

.category-block__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

/* ── Film cards ───────────────────────────────────── */

.film-card {
  position: relative;
  display: grid;
  gap: 1rem;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-align: left;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    background-color 280ms ease;
}

.film-card:hover,
.film-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(23, 23, 21, 0.16);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.film-card:active {
  transform: translateY(-2px);
  transition-duration: 80ms;
}

.film-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d3d1cc;
}

.film-card__media img,
.film-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-card__media img {
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.film-card:hover .film-card__media img {
  transform: scale(1.04);
}

.film-card__placeholder {
  display: grid;
  place-items: end start;
  padding: 1.2rem;
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(
      135deg,
      hsl(calc(16 * var(--card-accent)), 29%, 79%),
      hsl(calc(22 * var(--card-accent)), 18%, 62%)
    );
  color: rgba(255, 255, 255, 0.96);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  line-height: 1.03;
}

.film-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.02) 20%, rgba(15, 15, 15, 0.22) 100%);
  pointer-events: none;
}

.film-card__play {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.film-card:hover .film-card__play {
  transform: scale(1.08);
}

.film-card__play-icon {
  width: 0;
  height: 0;
  margin-left: 0.18rem;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.72rem solid var(--text);
}

.film-card__content {
  display: grid;
  grid-template-rows:
    auto
    auto
    auto;
  align-content: start;
  gap: 0.35rem;
  padding: 0.15rem 1.25rem 1.3rem;
}

.film-card__client {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.3;
}

.film-card__subtitle {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--muted);
}

.film-card__description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  min-height: calc(0.92rem * 1.45 * 4);
  margin-top: 0.2rem;
}

/* ── About section ────────────────────────────────── */

.about-section {
  position: relative;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(211, 197, 175, 0.12), transparent 60%);
  pointer-events: none;
}

.about-section .text-block,
.contact-card {
  padding: 1.9rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.56)),
    var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

/* ── Contact section ──────────────────────────────── */

.contact-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.contact-card {
  display: grid;
  gap: 1.2rem;
}

.contact-card__item {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.2rem 0.75rem;
  align-items: center;
}

.contact-card__item + .contact-card__item {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-card__icon {
  grid-row: 1 / 3;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(23, 23, 21, 0.06);
  color: var(--muted);
}

.contact-card__icon svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card__label {
  grid-column: 2;
}

.contact-card__item a {
  grid-column: 2;
  width: fit-content;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color 180ms ease;
}

.contact-card__item a:hover {
  color: var(--muted);
}

/* ── Clients section ──────────────────────────────── */

.clients-section {
  padding-top: 1rem;
}

.section-heading--compact {
  margin-bottom: 1.5rem;
}

.section-heading--compact h2 {
  font-size: clamp(1.95rem, 3vw, 2.7rem);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.logo-tile {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.35;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.logo-tile:hover,
.logo-tile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(24, 24, 22, 0.06);
}

/* ── Footer ───────────────────────────────────────── */

.site-footer {
  padding: 2rem 0 2.4rem;
  margin-top: 1rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__inner p {
  margin: 0;
}

.site-footer__left {
  display: grid;
  gap: 0.15rem;
}

.site-footer__brand {
  margin: 0;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
}

.site-footer__links a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__copy {
  font-size: 0.84rem;
  color: rgba(23, 23, 21, 0.44);
}

/* ── Modal ────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.62);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  border-radius: 28px;
  background: #111;
  color: #f5f3ee;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  transform: translateY(12px) scale(0.985);
  transition: transform 220ms ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 180ms ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal__close span {
  display: inline-block;
  transform: translateY(-1px);
  font-size: 1.8rem;
  line-height: 1;
}

.modal__body {
  padding: 1.9rem;
}

.modal__kicker {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
}

.modal__description {
  max-width: 40rem;
  margin: 0.9rem 0 1.35rem;
  color: rgba(255, 255, 255, 0.8);
}

.modal__subtitle {
  max-width: 40rem;
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  font-weight: 500;
}

.modal__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent),
    #1a1a1a;
}

.modal__media iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.modal__placeholder p {
  margin: 0;
}

.modal__placeholder-note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.95rem;
}

.noscript-note {
  padding: 0.85rem 1rem;
  background: #181818;
  color: #fff;
  text-align: center;
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 1180px) {
  :root {
    --container: min(100vw - 48px, 1280px);
  }

  .hero {
    min-height: 88vh;
  }

  .hero__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.8rem;
  }

  .section-heading__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }

  .section-heading__support {
    max-width: 42rem;
  }

  .category-block {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .category-block__header {
    position: static;
    padding-right: 0;
  }

  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --section-space: clamp(4rem, 7vw, 5.5rem);
  }

  .hero {
    min-height: 78vh;
  }

  .hero__content {
    gap: 4rem;
  }

  .hero__layout,
  .contact-section__grid,
  .category-block__grid {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    max-width: 30rem;
  }

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

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-footer__links {
    gap: 1.2rem;
  }

  .contact-card__item {
    grid-template-columns: 2.4rem 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --container: min(100vw - 32px, 1280px);
    --section-space: 3.9rem;
  }

  .hero {
    min-height: 72svh;
    padding-bottom: 1.3rem;
  }

  .hero__video {
    display: none;
  }

  .hero__content {
    gap: 3.2rem;
  }

  .hero__masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__poster::after {
    left: 1rem;
    right: 1rem;
    width: fit-content;
    max-width: calc(100% - 2rem);
    font-size: 0.74rem;
  }

  .hero__title {
    font-size: clamp(3.2rem, 14vw, 4.5rem);
  }

  .hero__subtitle {
    font-size: 1.04rem;
    max-width: 26rem;
  }

  .hero__panel {
    display: none;
  }

  .hero__scroll-hint {
    display: none;
  }

  .site-header__nav {
    gap: 1.25rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .category-block {
    padding: 1.15rem;
    border-radius: 24px;
  }

  .film-card__content {
    padding: 0 1rem 1.05rem;
  }

  .film-card__play {
    width: 2.9rem;
    height: 2.9rem;
  }

  .about-section .text-block,
  .contact-card {
    padding: 1.35rem;
  }

  .clients-grid {
    gap: 0.8rem;
  }

  .logo-tile {
    min-height: 78px;
    font-size: 0.92rem;
  }

  .modal {
    padding: 0.8rem;
  }

  .modal__dialog {
    width: 100%;
    max-height: calc(100vh - 1.6rem);
    border-radius: 22px;
  }

  .modal__body {
    padding: 1.15rem;
  }
}

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    max-width: 9ch;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .intro-strip__inner p,
  .section-heading__support,
  .text-block p,
  .contact-card__item a {
    font-size: 0.97rem;
  }

  .site-header__nav a {
    font-size: 0.82rem;
  }
}
