/* ============================================================
   REALCUT FILMS — v4
   Cinematic dark-blue studio site
   ============================================================ */

:root {
  --bg: #08101a;
  --bg-deep: #05090f;
  --surface: #0c1725;
  --surface-2: #101e2f;
  --text: #edf5ff;
  --text-soft: #d6e3f2;
  --muted: #8fa3ba;
  --line: rgba(192, 219, 255, .14);
  --accent: #bfd4ef;
  --accent-2: #6e8bb0;
  --accent-electric: #3d7bff;
  --max: 1320px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .7, .18, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  cursor: default;
}
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- global fx layers ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 61; background: rgba(191,212,239,.08); }
.progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width .08s linear;
}

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 70; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .25s ease;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid rgba(191,212,239,.55);
  transition: opacity .25s ease, width .25s var(--ease), height .25s var(--ease), background .25s ease, border-color .25s ease;
}
.cursor-ring.hover { width: 70px; height: 70px; background: rgba(191,212,239,.08); border-color: rgba(191,212,239,.8); }
.cursor-dot.show, .cursor-ring.show { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; padding: 0 clamp(20px, 4vw, 60px);
  background: linear-gradient(to bottom, rgba(5,9,15,.85), rgba(5,9,15,.2), transparent);
  transition: background .4s ease, height .3s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 68px;
  background: rgba(6, 11, 19, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; font-size: 15px; color: var(--text); }
.brand-mark { width: 22px; height: 22px; color: var(--accent); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word em { font-style: normal; color: var(--muted); font-weight: 500; }

.nav { display: flex; gap: clamp(20px, 3vw, 40px); font-size: 13.5px; }
.nav a { display: flex; align-items: center; gap: 8px; color: var(--text-soft); transition: color .2s ease; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 16px; }

.header-cta {
  border: 1px solid var(--line); padding: 9px 18px; font-size: 13px; color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.header-cta:hover { border-color: rgba(191,212,239,.5); background: rgba(191,212,239,.06); }

.lang-switch {
  display: flex; align-items: center; border: 1px solid var(--line); padding: 3px; gap: 2px;
}
.lang-btn {
  padding: 5px 10px; font-size: 11px; letter-spacing: .06em; color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.lang-btn:hover { color: var(--text-soft); }
.lang-btn.active { background: rgba(191,212,239,.12); color: var(--text); }
.lang-switch-mobile { margin-top: 24px; }

.menu-toggle { display: none; width: 34px; height: 22px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 1px; background: var(--text); transition: transform .3s var(--ease), opacity .3s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(10.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-10.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 39; background: rgba(6,11,19,.98); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
  padding: 0 32px; transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a { font-family: var(--serif); font-size: 42px; color: var(--text); }
.mobile-mail { margin-top: 20px; font-family: var(--sans); font-size: 16px; color: var(--muted); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden;
  padding: 140px clamp(20px, 5vw, 78px) clamp(48px, 7vw, 96px);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: -3%; background-size: cover; background-position: center;
  opacity: 0; filter: saturate(.7) brightness(.62);
  animation: heroCycle 21s var(--ease) infinite, heroZoom 21s linear infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s, 0s; }
.hero-slide:nth-child(2) { animation-delay: 7s, 7s; }
.hero-slide:nth-child(3) { animation-delay: 14s, 14s; }
@keyframes heroCycle {
  0% { opacity: 0; } 4% { opacity: 1; } 30% { opacity: 1; } 36% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,9,15,.55) 0%, rgba(6,11,19,.45) 40%, rgba(5,9,15,.92) 100%),
    linear-gradient(100deg, rgba(6,12,21,.55) 0%, rgba(9,17,29,.15) 45%, rgba(6,12,21,.5) 100%),
    linear-gradient(160deg, #08101a99, #0a132099);
}
.hero-vignette { position: absolute; inset: 0; box-shadow: inset 0 0 240px 60px rgba(4,7,12,.85); }

.hero-content { position: relative; z-index: 2; width: min(1000px, 100%); }
.eyebrow {
  margin: 0 0 24px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent-2); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 30px; font-family: var(--serif); font-size: clamp(56px, 9.5vw, 148px);
  line-height: .92; letter-spacing: -.02em; font-weight: 340; color: var(--text);
}
h1 .line { display: block; overflow: hidden; }
h1 .line span { display: inline-block; transform: translateY(105%); transition: transform .95s var(--ease); }
h1.in .line span, .in h1 .line span { transform: none; }
h1 .line:nth-child(1) span { transition-delay: .05s; }
h1 .line:nth-child(2) span { transition-delay: .16s; }
h1 .line:nth-child(3) span { transition-delay: .27s; }
h1 i { font-style: italic; color: var(--accent); }

.hero-copy { max-width: 620px; color: var(--text-soft); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.button {
  position: relative; display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px;
  border: 1px solid var(--line); font-size: 14px; color: var(--text); overflow: hidden;
  transition: border-color .3s ease, background .3s ease;
}
.button span { position: relative; z-index: 1; }
.button-primary { background: rgba(191, 212, 239, .1); border-color: rgba(191, 212, 239, .3); font-weight: 600; }
.button-primary:hover { background: rgba(191, 212, 239, .18); border-color: rgba(191,212,239,.55); }
.button-ghost { background: rgba(255,255,255,.02); }
.button-ghost:hover { border-color: rgba(191,212,239,.4); background: rgba(191,212,239,.06); }

.scroll-cue {
  position: absolute; right: clamp(20px, 5vw, 78px); bottom: clamp(48px, 7vw, 96px); z-index: 2;
  display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; letter-spacing: .2em;
}
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--accent-2), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--accent);
  animation: scrollDrip 1.9s ease-in-out infinite;
}
@keyframes scrollDrip { 50% { top: 100%; } 100% { top: 100%; } }

/* ---------- ticker ---------- */
.ticker {
  position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; background: var(--bg-deep);
}
.ticker-track { display: flex; width: max-content; gap: 28px; animation: tickerScroll 34s linear infinite; }
.ticker-track span { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.4vw, 26px); color: var(--muted); white-space: nowrap; }
.ticker-track span:nth-child(2n) { color: var(--accent-2); font-style: normal; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; align-self: center; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 130px clamp(20px, 5vw, 78px); }

.section-heading {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px; align-items: end; margin-bottom: 70px; padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.section-heading .eyebrow { margin: 0; }
.section-heading h2 {
  margin: 0; font-family: var(--serif); font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -.01em;
  line-height: .96; font-weight: 340; color: var(--accent-electric);
  text-shadow: 0 0 46px rgba(61,123,255,.32);
}
.section-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 260px; justify-self: end; text-align: right; }
.section-heading h2.oneline { white-space: nowrap; font-size: clamp(28px, 4.6vw, 62px); }

/* ---------- film cards ---------- */
.film-card { border-top: 1px solid var(--line); padding-top: 32px; margin-bottom: 32px; }
.film-card:last-child { margin-bottom: 0; }

.film-visual { position: relative; }
.film-stage {
  position: relative; min-height: 560px; overflow: hidden; background: #05090f;
  border: 1px solid rgba(191, 212, 239, .08);
}
.stage-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: saturate(.86) brightness(.8); transform: scale(1.02);
  transition: opacity 1s var(--ease), transform 6s linear, filter .4s ease;
}
.stage-img.active { opacity: 1; transform: scale(1.07); }
.film-card:hover .stage-img.active { filter: saturate(.95) brightness(.86); }
.stage-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(5,9,15,.92) 0%, rgba(5,9,15,.4) 34%, rgba(5,9,15,.08) 62%, rgba(5,9,15,.12) 100%);
}

.filmstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.frame {
  height: 62px; background-size: cover; background-position: center; opacity: .42;
  filter: saturate(.6) brightness(.7); transition: opacity .25s ease, filter .25s ease, transform .25s var(--ease);
  border: 1px solid transparent;
}
.frame:hover { opacity: .85; transform: translateY(-2px); }
.frame.active { opacity: 1; filter: saturate(.9) brightness(.95); border-color: rgba(191,212,239,.5); }

.film-title-wrap {
  position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px); z-index: 3;
  text-shadow: 0 4px 24px rgba(0,0,0,.6); pointer-events: none;
}
.film-title-wrap h3 {
  margin-bottom: 8px; font-family: var(--serif); font-size: clamp(38px, 5.4vw, 74px); line-height: .96;
  letter-spacing: -.01em; font-weight: 340; color: var(--text);
}
.film-title-wrap p { margin: 0; color: var(--text-soft); font-size: 13px; letter-spacing: .04em; }

.film-info {
  display: flex; flex-direction: column; gap: 14px; padding: 26px 2px 6px; color: var(--muted);
}
.film-info-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.film-info-head h3 { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); font-weight: 500; color: var(--accent-electric); }
.duration { font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--muted); margin-left: 10px; vertical-align: middle; }
.tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); white-space: nowrap; }
.film-info p { max-width: 640px; font-size: 15px; line-height: 1.65; color: var(--text-soft); }
.film-info-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.film-format { font-size: 12.5px; letter-spacing: .03em; color: var(--muted); }
.film-cta {
  display: inline-flex; align-items: center; gap: 12px; max-width: min(320px, 100%);
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-electric);
  border: 1px solid rgba(61,123,255,.4); padding: 8px 20px 8px 8px; border-radius: 999px; white-space: normal; line-height: 1.35;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.film-cta:hover { background: var(--accent-electric); color: #05090f; border-color: var(--accent-electric); }
.film-cta-poster {
  width: 40px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0;
  border: 1px solid rgba(191,212,239,.25);
}

.film-poster {
  position: absolute; right: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); z-index: 4;
  width: clamp(140px, 15vw, 210px); border-radius: 6px; box-shadow: 0 22px 50px rgba(0,0,0,.6);
  border: 1px solid rgba(191,212,239,.2); transition: transform .3s var(--ease);
}
.film-card:hover .film-poster { transform: translateY(-4px); }

.filmstrip-dense { grid-template-columns: repeat(6, 1fr); }
.filmstrip-dense .frame { height: 52px; }
.filmstrip-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- credits band ---------- */
.credits-band {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 90px clamp(20px, 5vw, 78px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}
.credits-band-text {
  margin: 0; max-width: 1180px; width: 100%; text-align: center;
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center;
  row-gap: 14px; column-gap: 28px;
  font-family: var(--serif); font-size: clamp(14px, 1.5vw, 16px); line-height: 1.3; color: var(--text-soft);
  opacity: .68;
  -webkit-mask-image: radial-gradient(ellipse 72% 88% at center, black 28%, transparent 78%);
          mask-image: radial-gradient(ellipse 72% 88% at center, black 28%, transparent 78%);
}
.credits-band-text span { white-space: nowrap; }
.credits-band-text span.hi { color: var(--text); font-weight: 500; }

@media (max-width: 780px) {
  .credits-band { padding: 60px clamp(20px, 5vw, 78px); }
  .credits-band-text { font-size: 13px; row-gap: 10px; column-gap: 16px; }
}

/* ---------- about ---------- */
.studio { border-top: 1px solid var(--line); }
.about { border-top: 1px solid var(--line); }
.studio + .about { padding-top: 70px; }
.about-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(40px, 8vw, 120px); }
.about-lead { font-family: var(--serif); font-size: clamp(30px, 4vw, 54px); line-height: 1.08; letter-spacing: -.01em; color: var(--text); font-weight: 340; }
.about-copy { color: var(--text-soft); font-size: 17px; line-height: 1.7; }
.about-copy p + p { margin-top: 20px; }
.about-cert { margin-top: 26px !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); letter-spacing: .01em; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 90px; padding-top: 44px; border-top: 1px solid var(--line); }
.stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 0; }
.stat-num { font-family: var(--serif); font-size: clamp(48px, 6vw, 84px); line-height: 1; color: var(--accent-electric); font-weight: 340; }
.stat-plus { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); color: var(--accent); margin-left: 2px; }
.stat p { width: 100%; margin: 10px 0 0; color: var(--muted); font-size: 13.5px; max-width: 200px; }

/* ---------- contact ---------- */
.contact { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); position: relative; }
.contact h2 {
  margin-bottom: 52px; font-family: var(--serif); font-size: clamp(48px, 8.6vw, 122px); line-height: .96;
  letter-spacing: -.01em; color: var(--text); font-weight: 340;
}
.contact-mail {
  width: fit-content; position: relative; padding-bottom: 10px; font-size: clamp(20px, 2.8vw, 34px); color: var(--text);
}
.contact-mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(237,245,255,.9);
  transform-origin: left; transition: transform .4s var(--ease);
}
.contact-mail:hover::after { transform: scaleX(.34); }

/* ---------- footer ---------- */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 30px clamp(20px, 5vw, 78px) 46px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
}
.footer-top { color: var(--muted); transition: color .2s ease; }
.footer-top:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav, .header-right { display: none; }
  .menu-toggle { display: flex; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .section-note { justify-self: start; text-align: left; max-width: none; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 780px) {
  .site-header { height: 68px; }
  .hero { min-height: 94svh; padding-top: 120px; }
  .scroll-cue { display: none; }
  .section { padding-top: 90px; padding-bottom: 90px; }
  .film-stage { min-height: 380px; }
  .film-poster { width: clamp(110px, 32vw, 150px); }
  .filmstrip { grid-template-columns: repeat(3, 1fr); }
  .footer { flex-direction: column; text-align: center; }
  .filmstrip-dense { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
