/*
 * 壹帧映迹 — Cinematic scene treatments and responsive direction
 * Companion to cinema.css; loaded last in the cascade.
 */

/* Filfil.TV — post-production suite */
.platform {
  background:
    linear-gradient(90deg, transparent 0 49.95%, rgba(119, 209, 205, 0.035) 50%, transparent 50.05%),
    #07090c;
}

.platform-glow {
  top: 2%;
  left: 54%;
  width: 46vw;
  height: 68vw;
  opacity: 0.075;
  background: linear-gradient(180deg, var(--cyan), transparent 76%);
  filter: blur(44px);
  transform: skewX(-12deg);
}

.product-logo {
  border: 1px solid rgba(119, 209, 205, 0.3);
  border-radius: 3px;
  box-shadow: 0 22px 60px -36px rgba(119, 209, 205, 0.72);
}

.workflow-board {
  border-color: rgba(119, 209, 205, 0.3);
  border-radius: 2px;
  background: #0a0d11;
  box-shadow: 0 44px 100px -48px rgba(0, 0, 0, 0.95), inset 0 1px rgba(255, 255, 255, 0.03);
}

.workflow-board__chrome {
  background: #07090c;
}

.workflow-canvas {
  background-color: #0b0f14;
  background-size: 28px 28px;
}

.workflow-node {
  border-radius: 2px;
  background: rgba(14, 18, 24, 0.96);
}

.platform-pillars article,
.feature-panel article {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.018), transparent 46%);
}

.platform-pillars article:hover,
.feature-panel article:hover {
  background: rgba(119, 209, 205, 0.045);
}

.feature-tabs {
  border-radius: 2px;
  background: #06080a;
}

.feature-tabs button {
  border-radius: 1px;
}

.feature-tabs button[aria-selected="true"] {
  box-shadow: 0 0 24px rgba(119, 209, 205, 0.14);
}

/* Technology — the production pipeline */
.technology {
  background:
    radial-gradient(circle at 10% 70%, rgba(119, 209, 205, 0.045), transparent 30rem),
    #090b0e;
}

.architecture {
  border-top: 2px solid rgba(119, 209, 205, 0.48);
  background: rgba(0, 0, 0, 0.2);
}

.architecture-side {
  background: #06080a;
}

.architecture-layer {
  min-height: 144px;
}

.architecture-layer span {
  position: relative;
  min-height: 60px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.015);
}

.architecture-layer span::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  opacity: 0.38;
}

.tech-notes article {
  min-height: 300px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.016), transparent);
}

.tech-notes article:hover {
  background: rgba(119, 209, 205, 0.035);
}

/* Services — paired production treatments */
.service-lanes {
  gap: 14px;
}

.service-lane {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 22, 0.22);
}

.service-lane::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid currentColor;
  opacity: 0.08;
  pointer-events: none;
}

.service-lane--dark {
  background:
    radial-gradient(circle at 88% 10%, rgba(205, 163, 90, 0.13), transparent 18rem),
    #0a0c0f;
}

.service-lane--gold {
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(17, 19, 22, 0.032) 31px 32px),
    var(--gold-soft);
}

.service-lane h3 {
  margin-top: 34px;
  font-size: clamp(40px, 4.3vw, 56px);
}

.service-lane .cinema-icon {
  width: 54px;
  height: 54px;
  margin-top: 54px;
  font-size: 20px;
}

.service-lane--dark .cinema-icon {
  color: var(--gold-bright);
  border-color: rgba(230, 195, 123, 0.42);
}

.service-lane--gold .cinema-icon {
  color: #806327;
  border-color: rgba(17, 19, 22, 0.24);
}

/* Global distribution — release map control room */
.global {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(119, 209, 205, 0.055), transparent 42rem),
    #030405;
}

.global-grid-bg {
  opacity: 0.28;
  background-size: 96px 96px;
}

.world-board {
  border-top: 2px solid rgba(230, 195, 123, 0.5);
  background: rgba(5, 7, 9, 0.88);
  box-shadow: 0 42px 100px -64px #000;
}

.world-board__advantages article {
  position: relative;
  overflow: hidden;
}

.world-board__advantages article::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(119, 209, 205, 0.12);
  border-radius: 50%;
}

.global-route {
  border-radius: 1px;
  background: rgba(5, 7, 9, 0.88);
}

/* Contact — closing frame */
.contact {
  min-height: 980px;
  background: #020303;
}

.contact::before {
  content: "FINAL FRAME / LET'S MAKE THE NEXT STORY";
  position: absolute;
  top: 38px;
  left: var(--frame-inset);
  z-index: 3;
  color: rgba(255, 255, 255, 0.32);
  font: 500 8px/1 var(--font-mono);
  letter-spacing: 0.16em;
}

.contact-media img {
  object-position: 64% center;
  filter: saturate(0.38) contrast(1.18) brightness(0.68) sepia(0.08);
  transform: scale(1.025);
}

.contact-shade {
  background:
    linear-gradient(90deg, rgba(2, 3, 3, 0.99) 0%, rgba(2, 3, 3, 0.9) 48%, rgba(2, 3, 3, 0.42) 100%),
    radial-gradient(ellipse at 78% 42%, rgba(205, 163, 90, 0.1), transparent 36rem),
    linear-gradient(180deg, rgba(2, 3, 3, 0.22), rgba(2, 3, 3, 0.96));
}

.contact-copy h2 {
  font-size: clamp(58px, 7vw, 98px);
}

.contact-topics span {
  border-radius: 1px;
  background: rgba(3, 4, 5, 0.26);
}

.inquiry-form {
  position: relative;
  border-color: rgba(230, 195, 123, 0.32);
  background:
    linear-gradient(145deg, rgba(205, 163, 90, 0.045), transparent 35%),
    rgba(8, 10, 13, 0.9);
  box-shadow: 0 46px 100px -56px #000;
}

.inquiry-form::before,
.inquiry-form::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.inquiry-form::before {
  top: 9px;
  left: 9px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.inquiry-form::after {
  right: 9px;
  bottom: 9px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.field input,
.field textarea,
.field select {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.24);
}

.site-footer {
  background: #020303;
}

/* Reveal and living-image motion */
.js [data-reveal] {
  filter: blur(4px);
  transform: translateY(30px);
  transition: opacity 900ms var(--ease-cinema), transform 900ms var(--ease-cinema), filter 900ms var(--ease-cinema);
}

.js [data-reveal].is-visible {
  filter: blur(0);
}

@keyframes cinema-drift {
  0% { transform: scale(1.035) translate3d(-0.35%, 0, 0); }
  100% { transform: scale(1.075) translate3d(0.35%, -0.25%, 0); }
}

@keyframes rec-pulse {
  0%, 42%, 100% { opacity: 1; }
  58%, 84% { opacity: 0.32; }
}

@media (max-width: 1120px) {
  .main-nav > a {
    font-size: 10px;
  }

  .showreel {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 72px;
  }

  .main-nav {
    background:
      linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
      rgba(3, 4, 5, 0.985);
    background-size: 100% 54px;
  }

  .main-nav > a {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 0.02em;
  }

  .hero {
    min-height: 860px;
    height: max(860px, 100svh);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--header-height) + 116px);
  }

  .hero-meta {
    max-width: 360px;
  }

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

  .showreel-copy {
    min-height: 390px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    border-left: 0;
  }

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

  .work-card:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 700px) {
  :root {
    --frame-inset: 10px;
    --section-space: 94px;
  }

  body::after {
    display: none;
  }

  .site-header {
    height: var(--header-height);
  }

  .brand-frame {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .hero,
  .hero-inner {
    min-height: 820px;
  }

  .hero::before {
    inset: calc(var(--header-height) + 10px) var(--frame-inset) 10px;
  }

  .hero-video {
    object-position: 63% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(2, 3, 3, 0.54) 0%, rgba(2, 3, 3, 0.68) 42%, rgba(2, 3, 3, 0.97) 100%),
      linear-gradient(90deg, rgba(2, 3, 3, 0.88), rgba(2, 3, 3, 0.24));
  }

  .hero-inner {
    padding-top: calc(var(--header-height) + 106px);
    padding-bottom: 112px;
  }

  .hero-copy h1 {
    font-size: clamp(56px, 16vw, 76px);
    line-height: 0.94;
  }

  .hero-copy::after {
    max-width: 280px;
    line-height: 1.7;
  }

  .hero-hud {
    top: calc(var(--header-height) + 22px);
    right: calc(var(--frame-inset) + 12px);
  }

  .hero-hud span:not(:first-child) {
    display: none;
  }

  .video-toggle {
    right: calc(var(--frame-inset) + 10px);
    bottom: 20px;
  }

  .scroll-cue {
    bottom: 20px;
  }

  .film-strip__track {
    min-height: 70px;
  }

  .section::after {
    inset-inline: var(--frame-inset);
  }

  .section-heading h2,
  .intro .section-heading h2 {
    font-size: clamp(42px, 12.5vw, 62px);
  }

  .intro-statement {
    padding: 24px 0 24px 20px;
  }

  .capability-item {
    min-height: 280px;
  }

  .matrix-cell {
    min-height: 210px;
  }

  .track-card {
    min-height: 370px;
  }

  .metric {
    min-height: 190px;
  }

  .showreel {
    padding: 7px;
  }

  .showreel-media::before {
    padding-top: 56.25%;
  }

  .showreel-copy {
    min-height: 0;
    padding: 34px 24px;
  }

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

  .work-card,
  .work-card:first-child {
    grid-column: auto;
    aspect-ratio: 3 / 4;
  }

  .workflow-board {
    border-radius: 1px;
  }

  .service-lane {
    min-height: 640px;
  }

  .contact {
    min-height: auto;
  }

  .contact-copy h2 {
    font-size: clamp(48px, 14vw, 70px);
  }

  .inquiry-form {
    padding: 28px 20px;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: clamp(52px, 15.5vw, 66px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .button {
    min-height: 50px;
  }

  .showreel-copy h3 {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .hero-hud__rec i {
    animation: none !important;
  }

  .js [data-reveal] {
    filter: none;
    transform: none;
  }
}

@media print {
  body::before,
  body::after,
  .hero-hud {
    display: none !important;
  }
}
