/* AI VFX page. See DESIGN.md: VFX result first, visual language and adaptations. */
body[data-page="ai-vfx"] .hybrid-vfx {
  width: min(90%, 1360px);
  padding: 72px 0 100px;
  border-top: 0;
}

.vfx-showcase-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 56px;
}
.vfx-eyebrow {
  color: var(--color-primary-light);
  font-size: 11px;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.vfx-showcase-hero h1 {
  margin-top: 22px;
  font-size: clamp(44px, 5.5vw, 78px);
  font-weight: 350;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.vfx-showcase-hero h1 span { color: #a9a7a2; }
.vfx-showcase-lead { max-width: 390px; padding-bottom: 4px; }
.vfx-showcase-lead p {
  color: #c3c0bb;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 350;
}
.vfx-showcase-lead a {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  font-size: 13px;
}
.vfx-showcase-lead a span { color: var(--color-primary-light); font-size: 22px; }
.vfx-hero-actions { display: flex; align-items: center; flex-wrap: wrap; column-gap: 24px; }
.vfx-showcase-lead .vfx-contact-link { gap: 12px; color: var(--color-primary-light); }
.vfx-projects { scroll-margin-top: 125px; }
.vfx-projects-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid #393936;
}
.vfx-projects-heading h2 { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.vfx-projects-heading > span { font-size: 11px; color: #a9a7a2; }
.vfx-project-index { display: flex; flex-wrap: wrap; column-gap: 30px; margin: 16px 0 30px; }
.vfx-project-index a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; color: #c3c0bb; }
.vfx-project-index a span { color: var(--color-primary-light); font-size: 10px; }
.vfx-project-index a:hover, .vfx-process-link:hover, .vfx-showcase-lead a:hover { color: var(--color-primary-light); }
.vfx-project { scroll-margin-top: 124px; margin-bottom: 80px; }
.vfx-project + .vfx-project { padding-top: 28px; border-top: 1px solid #30302e; }
.vfx-project-header { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 24px; }
.vfx-project-name { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.vfx-project-number { align-self: start; padding-top: 12px; color: var(--color-primary-light); font-size: 12px; font-variant-numeric: tabular-nums; }
.vfx-project-header h3 { margin: 0; font-size: clamp(26px, 2.7vw, 36px); font-weight: 400; line-height: 1.2; letter-spacing: -.035em; }
.vfx-project-header > p { max-width: 390px; color: #aaa8a3; font-size: 14px; line-height: 1.65; }
.vfx-project-grid { display: grid; grid-template-columns: minmax(0, 2.12fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.vfx-project-grid--single { grid-template-columns: minmax(0, 960px); }
.vfx-project-support { display: grid; gap: 22px; min-width: 0; }
.vfx-shot { min-width: 0; margin: 0; }
.vfx-shot figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 11px; }
.vfx-shot figcaption > span { font-weight: 450; letter-spacing: .035em; }
.vfx-shot figcaption i { font-style: normal; color: #96938d; margin-right: 8px; font-size: 10px; }
.vfx-shot figcaption small { white-space: nowrap; color: #a9a7a2; font-size: 10px; }
.vfx-shot--final figcaption > span { color: var(--color-primary-light); }
.vfx-shot-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #080808; }
.vfx-shot-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.vfx-shot-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; cursor: pointer; color: #fff; }
.vfx-shot-play > span { display: grid; place-items: center; padding-left: 3px; width: 48px; height: 48px; font-size: 15px; border: 1px solid #ffffff80; border-radius: 50%; background: #11111166; backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.vfx-shot--final .vfx-shot-play > span { width: 66px; height: 66px; font-size: 18px; }
.vfx-shot-play:hover > span { background: #111111b3; border-color: var(--color-primary-light); }
.vfx-shot-play:focus-visible { outline-offset: -4px; }
.vfx-shot-status { position: absolute; inset: auto 12px 12px; width: fit-content; max-width: calc(100% - 24px); padding: 7px 12px; background: #101010e8; color: #eee; border-radius: 3px; font-size: 12px; pointer-events: none; }
.vfx-shot-versions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; font-size: 11px; }
.vfx-shot-versions > span { margin-right: 12px; color: #aaa8a3; }
.vfx-shot-versions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; color: #c3c0bb; border: 1px solid #393936; border-radius: 3px; }
.vfx-shot-versions a[aria-current="true"] { color: var(--color-primary-light); border-color: #a98847; background: #b6833210; }
.vfx-process-link { display: flex; align-items: center; justify-content: space-between; min-height: 62px; font-size: 14px; border-bottom: 1px solid #393936; }
.vfx-process-link span { font-size: 24px; color: var(--color-primary-light); }
body[data-page="ai-vfx"] .vfx-method-header { margin-top: 72px; scroll-margin-top: 135px; }
body[data-page="ai-vfx"] .vfx-method-header h2 { max-width: 780px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; }
body[data-page="ai-vfx"] .vfx-method-header .hybrid-vfx-intro { max-width: 760px; font-size: 16px; margin-top: 20px; }
body[data-page="ai-vfx"] .hybrid-vfx-breakdown { margin-top: 56px; }
.vfx-showcase-hero a:focus-visible, .vfx-projects a:focus-visible, .vfx-projects button:focus-visible { outline: 2px solid var(--color-primary-light); outline-offset: 4px; }
.vfx-projects .vfx-shot-play:focus-visible { outline-offset: -4px; }
[data-vfx-shot] [hidden] { display: none !important; }

/* Revised placement guide: keep the complete evidence sequence, with quieter copy. */
body[data-page="ai-vfx"] .hybrid-vfx-breakdown-header { grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr); gap: 32px; }
body[data-page="ai-vfx"] .hybrid-vfx-breakdown-header h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; }
body[data-page="ai-vfx"] .hybrid-vfx-breakdown-header div > p { margin-top: 16px; max-width: 64ch; }
body[data-page="ai-vfx"] .hybrid-vfx-video-case { margin-top: 28px; }
body[data-page="ai-vfx"] .hybrid-vfx-pass-intro { margin-top: 28px; }
body[data-page="ai-vfx"] .hybrid-vfx-pass-intro h4 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
body[data-page="ai-vfx"] .hybrid-vfx-pass-intro p { margin-top: 12px; }
body[data-page="ai-vfx"] .hybrid-vfx-passes { margin-top: 24px; }
body[data-page="ai-vfx"] .hybrid-vfx-passes figcaption { grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr); gap: 32px; margin-bottom: 20px; }
body[data-page="ai-vfx"] .hybrid-vfx-passes-open { width: 100%; min-width: 0; border-color: #393936; background: #080808; }
body[data-page="ai-vfx"] .vfx-pass-grid {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #e3e1dc;
  background: #30302e;
  backdrop-filter: none;
  text-align: left;
}
.vfx-pass-tile { display: block; min-width: 0; background: #0b0b0b; }
.vfx-pass-label { display: block; padding: 10px 12px; font-size: 12px; font-weight: 400; letter-spacing: .02em; }
.vfx-pass-picture { position: relative; display: block; overflow: hidden; aspect-ratio: 1006 / 562; }
body[data-page="ai-vfx"] .vfx-pass-picture img {
  position: absolute;
  display: block;
  left: calc(var(--pass-x) * -100% / 1006);
  top: calc(var(--pass-y) * -100% / 562);
  width: 407.157058%;
  height: auto;
  max-width: none;
  max-height: none;
  border: 0;
}
body[data-page="ai-vfx"] .hybrid-vfx-passes-open > span:last-child { position: static; display: block; float: none; margin: 0; padding: 10px 12px; border: 0; border-top: 1px solid #393936; background: #080808; font-size: 10px; letter-spacing: .08em; text-align: right; }
body[data-page="ai-vfx"] .hybrid-vfx-passes-open:focus-visible { outline: 2px solid var(--color-primary-light); outline-offset: 4px; }
body[data-page="ai-vfx"] .hybrid-vfx-passes-dialog { overflow-y: auto; align-items: start; padding-top: 64px; }
body[data-page="ai-vfx"] .hybrid-vfx-passes-dialog > .vfx-pass-grid { width: min(100%, 1800px); margin-block: auto; border: 1px solid #393936; }
body[data-page="ai-vfx"] .hybrid-vfx-passes-dialog button { position: fixed; min-width: 80px; min-height: 44px; background: #080808; }
body[data-page="ai-vfx"] .hybrid-vfx-pillars { margin-top: 64px; gap: 32px; }
body[data-page="ai-vfx"] .hybrid-vfx-pillar { min-height: 0; padding-top: 20px; }
body[data-page="ai-vfx"] .hybrid-vfx-pillar h3 { margin-top: 18px; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
body[data-page="ai-vfx"] .hybrid-vfx-pillar p { margin: 16px 0 0; padding-top: 0; }
body[data-page="ai-vfx"] .hybrid-vfx-pipeline { margin-top: 64px; }
.vfx-pipeline-summary { margin-bottom: 24px; max-width: 820px; }
.vfx-pipeline-summary h3 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); font-weight: 400; line-height: 1.15; letter-spacing: -.025em; }
.vfx-pipeline-summary p { margin-top: 16px; color: #aaa8a3; font-size: 15px; line-height: 1.7; }
body[data-page="ai-vfx"] .vfx-pipeline-footer { margin-top: 20px; }
body[data-page="ai-vfx"] .vfx-pipeline-principle strong { font-size: 14px; line-height: 1.6; font-weight: 450; }
body[data-page="ai-vfx"] .vfx-pipeline-footer > p { font-size: 13px; line-height: 1.65; }
body[data-page="ai-vfx"] .hybrid-vfx-work,
body[data-page="ai-vfx"] .hybrid-vfx-delivery,
body[data-page="ai-vfx"] .hybrid-vfx-note { grid-template-columns: 110px minmax(0, 1fr); gap: 32px; padding: 32px 0; }
body[data-page="ai-vfx"] .hybrid-vfx-work { margin-top: 56px; }
body[data-page="ai-vfx"] .hybrid-vfx-work h3,
body[data-page="ai-vfx"] .hybrid-vfx-delivery h3 { font-size: clamp(24px, 2.4vw, 32px); }
body[data-page="ai-vfx"] .hybrid-vfx-work ul { margin-top: 20px; }
body[data-page="ai-vfx"] .hybrid-vfx-delivery p,
body[data-page="ai-vfx"] .hybrid-vfx-note div > p { margin-top: 16px; font-size: 15px; }
body[data-page="ai-vfx"] .hybrid-vfx-note { margin-top: 0; border: 0; border-bottom: 1px solid #30302e; background: transparent; }
body[data-page="ai-vfx"] .hybrid-vfx-note h3 { font-size: 20px; line-height: 1.2; }
@media (max-width: 899px) {
  .vfx-showcase-hero { grid-template-columns: 1.2fr 1fr; gap: 28px; }
  .vfx-showcase-lead p { font-size: 16px; }
  .vfx-project-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .vfx-project-support { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .vfx-project-header { align-items: start; }
  .vfx-project-header > p { max-width: 310px; font-size: 13px; }
  .vfx-project-name { gap: 14px; }
  .vfx-project-number { padding-top: 7px; }
  .vfx-projects-heading > span { display: none; }
}
@media (max-width: 900px) {
  body[data-page="ai-vfx"] .vfx-pipeline-native { padding: 16px; }
  body[data-page="ai-vfx"] .vfx-pipeline-inputs,
  body[data-page="ai-vfx"] .vfx-pipeline-stage { padding: 16px; }
  body[data-page="ai-vfx"] .vfx-pipeline-stage header { display: flex; align-items: baseline; gap: 12px; padding-bottom: 0; }
  body[data-page="ai-vfx"] .vfx-pipeline-stage h4 { margin-top: 0; line-height: 1.2; }
  body[data-page="ai-vfx"] .vfx-pipeline-inputs h4 { margin-top: 10px; }
  body[data-page="ai-vfx"] .vfx-pipeline-inputs ul,
  body[data-page="ai-vfx"] .vfx-pipeline-stage > ul { margin-top: 16px; gap: 8px; }
  body[data-page="ai-vfx"] .vfx-pipeline-inputs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="ai-vfx"] .vfx-pipeline-output { margin-top: 16px; padding: 10px; }
}
@media (max-width: 599px) {
  body[data-page="ai-vfx"] .hybrid-vfx { width: calc(100% - 36px); padding-top: 40px; padding-bottom: 64px; }
  .vfx-showcase-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 34px; }
  .vfx-showcase-hero h1 { margin-top: 16px; font-size: clamp(42px, 11.5vw, 66px); }
  .vfx-showcase-lead { max-width: 360px; }
  .vfx-showcase-lead a { margin-top: 10px; }
  .vfx-project-index { column-gap: 20px; margin-bottom: 30px; }
  .vfx-project-index a { font-size: 11px; gap: 7px; }
  .vfx-project { margin-bottom: 54px; scroll-margin-top: 104px; }
  .vfx-project-header { display: block; margin-bottom: 22px; }
  .vfx-project-header > p { max-width: none; margin-top: 14px; font-size: 14px; }
  .vfx-project-grid, .vfx-project-support { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .vfx-shot--final .vfx-shot-play > span { width: 54px; height: 54px; }
  .vfx-shot figcaption { font-size: 12px; }
  .vfx-shot-versions { gap: 8px; }
  .vfx-shot-versions > span { margin-right: 4px; }
  .vfx-shot-versions a { padding-inline: 12px; }
  body[data-page="ai-vfx"] .vfx-method-header { margin-top: 66px; }
  body[data-page="ai-vfx"] .hybrid-vfx-breakdown-header,
  body[data-page="ai-vfx"] .hybrid-vfx-passes figcaption { grid-template-columns: 1fr; gap: 16px; }
  body[data-page="ai-vfx"] .vfx-pass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vfx-pass-label { padding: 8px 10px; }
  body[data-page="ai-vfx"] .hybrid-vfx-pillars { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  body[data-page="ai-vfx"] .hybrid-vfx-pillar h3 { max-width: none; margin-top: 12px; }
  body[data-page="ai-vfx"] .hybrid-vfx-pillar p { margin-top: 12px; }
  body[data-page="ai-vfx"] .hybrid-vfx-work,
  body[data-page="ai-vfx"] .hybrid-vfx-delivery,
  body[data-page="ai-vfx"] .hybrid-vfx-note { grid-template-columns: 1fr; gap: 16px; padding-block: 28px; }
  body[data-page="ai-vfx"] .hybrid-vfx-work ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body[data-page="ai-vfx"]) { scroll-behavior: auto; }
  .vfx-shot-play > span { transition: none; }
}
