/* ============================================================
   BUDNIKOV FILMS — pages & components
   ============================================================ */

/* ============================================================
   HERO — 3 switchable directions via body[data-hero]
   ============================================================ */
.hero {
  position: relative;
  padding-top: var(--header-h);
}
.hero__media {
  position: relative;
  overflow: hidden;
  background: #050505;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(0.98) brightness(0.82);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.35) 0%, transparent 30%, transparent 50%, rgba(10, 9, 8, 0.8) 100%);
}

/* overlay on the reel — buttons (V1), full text (V3) */
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 60px);
  z-index: 2;
}
.hero__overlay .eyebrow,
.hero__overlay .hero__title,
.hero__overlay .hero__sub { display: none; }

/* caption band BELOW the reel — eyebrow + title (V1) */
.hero__caption {
  display: none;
  padding-block: clamp(30px, 4vw, 56px) clamp(6px, 1.5vw, 16px);
}

.hero__title {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(2.6rem, 6.5vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
  max-width: 16ch;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub {
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 42ch;
  margin: 22px 0 0;
}
.hero__row {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0;
}
.hero__playline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text);
}
.hero__playdot {
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 9, 8, 0.35);
  backdrop-filter: blur(4px);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.hero__playline:hover .hero__playdot { border-color: var(--accent); background: rgba(232, 200, 154, 0.15); }
.hero__playdot::after {
  content: "";
  width: 0; height: 0;
  border-left: 9px solid var(--text);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}

/* —— Variation 01: LETTERBOX REEL (default) —— */
body[data-hero="1"] .hero__media {
  height: clamp(440px, 64vh, 720px);
  margin-inline: var(--gutter);
  border-radius: 2px;
}
body[data-hero="1"] .hero__caption { display: block; }
body[data-hero="1"] .hero__split-grid { display: none; }

/* —— Variation 02: EDITORIAL SPLIT —— */
body[data-hero="2"] .hero { padding-bottom: clamp(40px, 6vw, 80px); }
body[data-hero="2"] .hero__media,
body[data-hero="2"] .hero__caption { display: none; }
.hero__split-grid { display: none; }
body[data-hero="2"] .hero__split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 3.5vw, 52px);
  align-items: start;
  align-content: start;
  padding: 0;
  min-height: calc(100vh - var(--header-h));
}
body[data-hero="2"] .hero__split-grid > div:nth-child(2) { order: 1; }
body[data-hero="2"] .hero__split-text { order: 2; width: var(--shell); margin-inline: auto; padding-inline: 0; }
.hero-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  padding-top: clamp(28px, 3.4vw, 56px);
}
.hero-intro__lead { display: flex; flex-direction: column; }
.hero-intro__approach {
  padding-top: 10px;
  padding-left: clamp(28px, 4vw, 72px);
  border-left: 1px solid var(--line);
}
.hero-intro__text {
  font-family: var(--narrative);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-dim);
  margin: 16px 0 0;
  max-width: 42ch;
}
.hero-intro__text em { font-style: italic; color: var(--accent); }
body[data-hero="2"] #manifesto { display: none; }
.hero__split-text { padding-bottom: 18px; }
body[data-hero="2"] .hero__split-text .hero__title { font-size: clamp(2rem, 3.8vw, 4rem); max-width: 16ch; }
body[data-hero="2"] .hero__split-media { aspect-ratio: 12 / 5; border-radius: 0; }
body[data-hero="2"] .hero__split-cap { padding: 0 var(--gutter); }
.hero__row--onreel {
  position: absolute;
  right: clamp(20px, 2.6vw, 44px);
  bottom: clamp(60px, 8vw, 128px);
  z-index: 3;
  margin: 0;
  align-items: center;
}
.hero__row--onreel .arrow-link { color: var(--text); }
.hero__split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(10,9,8,0.72) 0%, transparent 38%);
}
.hero__split-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  background: #050505;
}
.hero__split-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.04) contrast(0.98) brightness(0.84); }
.hero__split-cap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.66rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-faint);
}

/* —— Variation 03: FULLSCREEN IMMERSIVE —— */
body[data-hero="3"] .hero { padding-top: 0; }
body[data-hero="3"] .hero__media {
  height: 100vh;
  min-height: 600px;
  margin: 0;
  border-radius: 0;
}
body[data-hero="3"] .hero__overlay {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
  gap: 8px;
}
body[data-hero="3"] .hero__overlay .eyebrow { display: inline-flex; }
body[data-hero="3"] .hero__overlay .hero__title { display: block; font-size: clamp(3rem, 8vw, 8rem); max-width: 18ch; }
body[data-hero="3"] .hero__overlay .hero__sub { display: block; margin-inline: auto; }
body[data-hero="3"] .hero__overlay .hero__row { justify-content: center; margin-top: 18px; }
body[data-hero="3"] .hero__caption,
body[data-hero="3"] .hero__split-grid { display: none; }
body[data-hero="3"] .hero__scrim {
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.62) 0%, rgba(10, 9, 8, 0.25) 40%, rgba(10, 9, 8, 0.78) 100%);
}

/* ============================================================
   HERO VARIATION SWITCHER (deployable control, bottom-right)
   ============================================================ */
.hero-switch {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(14, 12, 11, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.hero-switch__label {
  font-size: 0.58rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 8px 0 6px;
}
.hero-switch button {
  width: 30px; height: 30px;
  border-radius: 50%;
  font-family: var(--font);
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.hero-switch button:hover { color: var(--text); border-color: var(--line-2); }
.hero-switch button.is-active {
  background: var(--accent);
  color: #14110c;
  border-color: var(--accent);
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(44px, 5vw, 80px); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: clamp(32px, 3.5vw, 52px);
  flex-wrap: wrap;
}
.section-head__title {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: var(--track-display);
  margin: 14px 0 0;
  max-width: 18ch;
}
.section-head__title em { font-style: normal; color: var(--accent); }

/* ============================================================
   MANIFESTO BAND — compact, centered, white
   ============================================================ */
.manifesto { padding-block: clamp(32px, 4vw, 56px); text-align: center; }
.manifesto .eyebrow { justify-content: center; }
.manifesto__text {
  font-family: var(--narrative);
  font-weight: var(--w-reg);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: 0;
  max-width: none;
  margin: 16px auto 0;
  color: var(--text);
}
.manifesto__text .dim { color: var(--text); }
.manifesto__text em { font-style: italic; color: var(--accent); }

/* ============================================================
   SELECTED WORK GRID
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 28px);
}
.work-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.work-card--wide { grid-column: 1 / -1; }
.work-card__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0c0a09;
  border-radius: 2px;
}
.work-card--wide .work-card__frame { aspect-ratio: 16 / 7; }
.work-card__bg {
  position: absolute;
  inset: 0;
  /* now an <img> (lazy-loadable); an absolutely positioned replaced element
     needs explicit sizing or it renders at its intrinsic 640x360 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(0.35) brightness(0.82) contrast(1.02);
}
.work-card:hover .work-card__bg { transform: scale(1.08); filter: grayscale(0) brightness(0.92); }
.work-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}
.work-card__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.work-card:hover .work-card__play { opacity: 1; }
.work-card__play span {
  width: 78px; height: 78px;
  border: 1px solid rgba(244, 240, 234, 0.6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  background: rgba(10, 9, 8, 0.25);
  transform: scale(0.85);
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-card__play span { transform: scale(1); }
.work-card__play span::after {
  content: "";
  border-left: 14px solid var(--text);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.work-card__index {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  font-family: var(--font);
  font-size: 0.66rem;
  letter-spacing: var(--track-label);
  color: var(--text);
  opacity: 0.85;
}
.work-card__cat {
  position: absolute;
  top: 16px; right: 18px;
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text);
  padding: 6px 12px;
  border: 1px solid rgba(244, 240, 234, 0.28);
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.3);
  backdrop-filter: blur(6px);
}
.work-card__caption {
  position: absolute;
  left: 22px; right: 22px; bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.work-card__title {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  line-height: 1.1;
  letter-spacing: var(--track-display);
  margin: 0;
  text-transform: capitalize;
}
.work-card__meta {
  font-size: 0.58rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 6px 0 0;
}
.work-card__view {
  font-size: 0.64rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.work-card:hover .work-card__view { opacity: 1; transform: none; }

/* ============================================================
   APPROACH / CAPABILITIES
   ============================================================ */
.approach__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.approach__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding: clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 40px);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}
.approach__grid .approach__row:nth-child(odd) { border-right: 1px solid var(--line); }
.approach__row:hover { background: var(--bg-2); }
.approach__num {
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: var(--track-label);
  color: var(--accent);
  padding-top: 6px;
}
.approach__h {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.04;
  margin: 0 0 12px;
}
.approach__p {
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
  max-width: 42ch;
}

/* ============================================================
   CLIENTS — warm-white band, dark logos, no dividers
   ============================================================ */
.clients {
  background: var(--text);
  color: #14110c;
  padding-bottom: clamp(44px, 6vw, 80px);
}
.clients__head {
  text-align: center;
  padding: clamp(44px, 5vw, 72px) 0 clamp(28px, 3vw, 40px);
}
.clients .eyebrow { color: #9c7434; justify-content: center; }
.clients .eyebrow::before { background: #9c7434; }
.clients__head h2 {
  font-family: var(--font);
  font-weight: var(--w-reg);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  margin: 14px 0 0;
  color: #14110c;
}
.marquee {
  overflow: hidden;
  position: relative;
  padding: 26px 0 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 38px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(1) brightness(1.7);
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
}
.marquee__track img:hover { opacity: 1; filter: grayscale(0) brightness(1); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* client wall — circular monochrome badges */
.client-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.8vw, 28px);
}
.client-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  transition: transform 0.5s var(--ease);
}
.client-cell:hover { transform: translateY(-3px); }
.client-cell img {
  width: 68%;
  height: auto;
  max-height: 60%;
  object-fit: contain;
  opacity: 0.82;
  transform: translateY(4px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.client-cell.in img { opacity: 0.92; transform: none; }
.client-cell:hover img { opacity: 1; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(90px, 14vw, 200px) var(--gutter);
}
.cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.6) brightness(0.32);
  transform: scale(1.05);
}
/* behind-the-scenes collage background */
.cta__collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-image: url("../assets/cta-collage.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(0.4) brightness(0.5) contrast(1.02);
  transform: scale(1.02);
  transition: transform 1.6s var(--ease), filter 1.6s var(--ease);
}
.cta:hover .cta__collage { transform: scale(1.06); filter: grayscale(0.2) brightness(0.58); }
.cta__scrim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(78% 78% at 50% 50%, rgba(10,9,8,0.55), rgba(10,9,8,0.9)); }
.cta__inner { position: relative; z-index: 2; }
.cta__title {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: var(--track-display);
  margin: 22px 0 0;
  max-width: 18ch;
  margin-inline: auto;
}
.cta__title em { font-style: normal; color: var(--accent); }
.cta__actions { margin-top: 44px; display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   PAGE INTRO (interior pages)
   ============================================================ */
.page-intro {
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(20px, 4vw, 48px);
}
.page-intro__title {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(2.8rem, 8.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 20px 0 0;
}
.page-intro__title em { font-style: normal; color: var(--accent); }
.page-intro__lead {
  font-family: var(--font);
  font-weight: var(--w-reg);
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  line-height: 1.16;
  color: var(--text);
  max-width: 24ch;
  margin: clamp(28px, 4vw, 52px) 0 0;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 4vw, 56px);
}
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  padding: 10px 18px;
  font-size: 0.68rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.35s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--line-2); }
.filter-btn.is-active { background: var(--text); color: #14110c; border-color: var(--text); }
.portfolio-count {
  font-size: 0.72rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-faint);
}
.portfolio-count b { color: var(--accent); font-weight: var(--w-med); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 38px);
}
.portfolio-grid .work-card { grid-column: span 1; }
.portfolio-grid .work-card--wide { grid-column: span 1; }
.portfolio-grid .work-card--tall .work-card__frame { aspect-ratio: 4 / 3; }
.portfolio-grid .work-card__frame { aspect-ratio: 4 / 3; }
.portfolio-grid .work-card--wide .work-card__frame { aspect-ratio: 4 / 3; }

/* ============================================================
   PORTFOLIO INTRO — narrative left, autoplay reel right
   ============================================================ */
.pf-hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(36px, 5vw, 80px));
  padding-bottom: clamp(44px, 6vw, 88px);
}
.pf-hero__title {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 16px 0 0;
}
.pf-hero__title em { font-style: normal; color: var(--accent); }
.pf-hero__narrative {
  font-family: var(--narrative);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.45;
  color: var(--text);
  margin: clamp(24px, 3vw, 36px) 0 0;
  max-width: 40ch;
}
.pf-hero__narrative .dim { color: var(--text-dim); }
.pf-hero__video {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 3px;
  overflow: hidden;
  background: #050505;
}
.pf-hero__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pf-hero__video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(10,9,8,0.55);
}
.pf-reel { cursor: pointer; }
.pf-reel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
  filter: grayscale(0.15) brightness(0.82);
}
.pf-reel:hover .pf-reel__bg { transform: scale(1.06); filter: grayscale(0) brightness(0.9); }
.pf-reel__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,9,8,0.72) 0%, rgba(10,9,8,0.05) 55%);
}
.pf-reel .work-card__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
}
.pf-reel__label {
  position: absolute;
  left: clamp(18px, 2vw, 28px);
  bottom: clamp(16px, 1.8vw, 24px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf-reel__label span {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--text);
}
.pf-reel__label em {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-lead-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.about-narrative { margin: 0; }
.about-narrative p {
  font-family: var(--narrative);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 clamp(20px, 2.4vw, 32px);
}
.about-narrative p:last-child { margin-bottom: 0; }
.about-narrative em { font-style: italic; color: var(--accent); }
/* uneven stills collage on the right */
.about-frames {
  position: relative;
  display: block;
}
.about-reel {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: #0c0a09;
}
.about-reel iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 102%;
  height: 102%;
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.about-reel.is-playing iframe { opacity: 1; }
.about-reel__poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.82);
}
.about-reel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 70px rgba(10,9,8,0.5);
}
.about-reel__tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-dim);
}
.about-frames--legacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: clamp(90px, 11vw, 150px);
  gap: clamp(10px, 1.4vw, 18px);
}
.about-frames .frame {
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.9) contrast(1.03);
  border-radius: 2px;
  transition: filter 0.6s var(--ease);
}
.about-frames .frame:hover { filter: grayscale(0) brightness(1); }
.about-frames .frame--a { grid-row: span 2; }
.about-frames .frame--b { grid-row: span 1; margin-top: clamp(18px, 3vw, 44px); }
.about-frames .frame--c { grid-column: 2; grid-row: span 1; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-stat__num {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
  line-height: 1;
  letter-spacing: var(--track-display);
  color: var(--text-dim);
}
.about-stat__num em { font-style: normal; color: var(--accent); }
.about-stat__label {
  font-size: 0.7rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 12px 0 0;
  max-width: 18ch;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}
.person {
  position: relative;
}
.person__img {
  aspect-ratio: 0.82;
  background-size: cover;
  background-position: center top;
  filter: grayscale(1) contrast(1.04) brightness(0.92);
  transition: filter 0.6s var(--ease);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.person:hover .person__img { filter: grayscale(0) brightness(1); }
.person__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.5) 100%);
}
.person__role {
  font-family: var(--font);
  font-size: 0.64rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
  margin: 20px 0 0;
}
.person__name {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin: 8px 0 0;
}
.person__bio { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; margin: 12px 0 0; max-width: 34ch; }

.crew-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
}
.crew-card__img {
  aspect-ratio: 0.92;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.85);
  border-radius: 2px;
}
.crew-card__name { font-family: var(--font); font-weight: var(--w-med); font-size: 1.2rem; margin: 16px 0 0; }
.crew-card__role { font-size: 0.78rem; letter-spacing: var(--track-label); color: var(--text-dim); margin: 6px 0 0; }

/* ============================================================
   TEAM — compact portraits + key contacts (two blocks)
   ============================================================ */
.team-layout {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}
.team-member__img {
  aspect-ratio: 0.84;
  background-size: cover;
  background-position: center top;
  filter: grayscale(1) contrast(1.04) brightness(0.9);
  border-radius: 2px;
  transition: filter 0.6s var(--ease);
}
.team-member:hover .team-member__img { filter: grayscale(0) brightness(1); }
.team-member__name {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  margin: 14px 0 0;
}
.team-member__role {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin: 5px 0 0;
}
.team-contacts {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(24px, 2.6vw, 38px);
  background: var(--bg-1);
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  align-content: start;
}
.team-contacts__eyebrow {
  font-family: var(--font);
  font-size: 0.64rem;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.team-contacts__block span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 7px;
}
.team-contacts__block a, .team-contacts__block p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.35s var(--ease);
}
.team-contacts__block a:hover { color: var(--accent); }

/* ============================================================
   CONTACTS — details right of intro, brief below
   ============================================================ */
.contact-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 90px);
  align-items: start;
  padding-top: calc(var(--header-h) + clamp(36px, 5vw, 80px));
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.contact-hero__title {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 16px 0 0;
}
.contact-hero__title em { font-style: normal; color: var(--accent); }
.contact-hero__lead {
  font-family: var(--narrative);
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  line-height: 1.45;
  color: var(--text);
  max-width: 30ch;
  margin: clamp(24px, 3vw, 38px) 0 0;
}
.contact-hero__info {
  display: grid;
  gap: clamp(22px, 2.6vw, 34px);
  padding-top: clamp(8px, 1vw, 18px);
}
.contact-block span {
  font-family: var(--font);
  font-size: 0.64rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 12px;
}
.contact-block a, .contact-block p {
  font-family: var(--font);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  transition: color 0.35s var(--ease);
}
.contact-block a:hover { color: var(--accent); }

.contact-form { display: grid; gap: 22px; }
.contact-brief {
  padding-block: clamp(44px, 6vw, 80px) clamp(60px, 9vw, 120px);
}
.contact-brief__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.contact-brief__head h2 {
  font-family: var(--font);
  font-weight: var(--w-med);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 0.98;
  letter-spacing: var(--track-display);
  margin: 14px 0 0;
}
.contact-brief__head h2 em { font-style: normal; color: var(--accent); }
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: grid; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field span {
  font-size: 0.66rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-faint);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  padding: 12px 2px;
  outline: none;
  transition: border-color 0.4s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23e8c89a' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-form__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.contact-form__note { color: var(--text-faint); font-size: 0.8rem; max-width: 30ch; margin: 0; }

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(20px, 6vw, 80px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s var(--ease), visibility 0s;
}
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 4, 0.86); backdrop-filter: blur(16px); }
.video-modal__dialog {
  position: relative;
  /* room reserved above the dialog for the close control: 44px target + offset + padding */
  width: min(1120px, 100%, calc((100vh - 130px) * 16 / 9));
  z-index: 1;
  transform: scale(0.97);
  transition: transform 0.5s var(--ease);
}
.video-modal.is-open .video-modal__dialog { transform: none; }
.video-modal__close {
  position: absolute;
  right: 0; bottom: calc(100% + 16px);
  font-size: 0.72rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 10px;
}
.video-modal__close:hover { color: var(--accent); }
.video-frame {
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.video-frame iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-hero="2"] .hero__split-grid { grid-template-columns: 1fr; }
  body[data-hero="2"] .hero__split-media { aspect-ratio: 12 / 5; max-height: none; }
  .hero-intro { grid-template-columns: 1fr; gap: clamp(20px, 4vw, 36px); align-items: start; }
  .hero-intro__approach { padding-left: 0; border-left: 0; padding-top: 0; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-lead-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .crew-grid { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .pf-hero { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
  .team-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .contact-hero { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
}
@media (max-width: 720px) {
  .approach__grid { grid-template-columns: 1fr; }
  .approach__grid .approach__row:nth-child(odd) { border-right: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .portfolio-grid .work-card,
  .portfolio-grid .work-card--wide { grid-column: 1 / -1; }
  .portfolio-grid .work-card__frame,
  .portfolio-grid .work-card--wide .work-card__frame { aspect-ratio: 4 / 3; }
  .people-grid { grid-template-columns: 1fr; }
  .crew-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .client-wall { grid-template-columns: repeat(3, 1fr); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-form__grid { grid-template-columns: 1fr; }
  .hero-switch { right: 12px; bottom: 12px; }
  body[data-hero="1"] .hero__media { margin-inline: 0; border-radius: 0; height: 64vh; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 4.4rem) !important; }
}

/* ============================================================
   ADAPTATION FIXES
   ============================================================ */

/* ---------- tablet band (721–1024px) ----------
   .client-wall held 5 columns all the way down to 721px, where a cell is
   124px wide; below 720px it jumps to 3 columns and 218px. 4 fills the gap. */
@media (min-width: 721px) and (max-width: 1024px) {
  .client-wall { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- touch devices ----------
   play badge, "Смотреть →" and the colour reveal were hover-only, so on every
   phone and tablet the work cards looked like flat stills with no affordance. */
@media (hover: none) {
  .work-card__play { opacity: 1; }
  .work-card__play span { transform: scale(0.82); }
  .work-card__view { opacity: 1; transform: none; }
  .work-card__bg { filter: grayscale(0) brightness(0.86) contrast(1.02); }
  .marquee__track { animation-play-state: running; }
}
@media (pointer: coarse) {
  .filter-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-socials a, .video-modal__close { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- short viewports (phone in landscape) ----------
   The dialog's width formula reserves 130px of height, so the slack above it always
   holds the 44px close control plus its offset — the control stays anchored to the
   dialog at every size instead of being pinned to a viewport corner it does not touch. */
@media (max-height: 560px) {
  .video-modal { padding: 12px; }
  .video-modal__close { bottom: calc(100% + 8px); }
}

/* ---------- keep the headline on the first screen ----------
   A full-bleed 12/5 reel is 800px tall at 1920 and pushes the H1 under the fold.
   Height is set directly (aspect-ratio: auto) because max-height on an
   aspect-ratio box shrinks the box's width instead of just clipping its height. */
@media (min-width: 721px) {
  body[data-hero="2"] .hero__split-media {
    aspect-ratio: auto;
    height: min(62vh, 41.667vw);
  }
}

/* ---------- phones ---------- */
@media (max-width: 720px) {
  /* the grid reserved a full viewport but the stacked content only fills ~530px,
     leaving ~240px of empty page under the hero on a 390x844 phone */
  body[data-hero="2"] .hero__split-grid { min-height: 0; }
  /* 12/5 of 390px is a 162px letterbox sliver cropped out of a 16:9 master */
  body[data-hero="2"] .hero__split-media { aspect-ratio: 16 / 9; height: auto; }
}

/* work-card copy is phrasing content now: <button> may not contain <h3>/<p>/<div>.
   The frame only had position:relative, and aspect-ratio does not apply to an
   inline box — without display:block the card collapses to zero height. */
.work-card__frame { display: block; }
.work-card__title, .work-card__meta { display: block; }
.work-card__caption > span:first-child { display: block; }
