/* Shared cinematic hero system. Existing portfolio and service sections are retained. */
:root { --cinema-gutter: clamp(22px, 5vw, 88px); --cinema-ink: #eeeee5; --cinema-accent: #d7ef7a; }
.cinema-page { background: #111614; }
[data-hero-language-pending] .hero-cinema :is(.hero-copy,h1,.cinema-footer), [data-hero-language-pending] body > header { visibility: hidden; }
.cinema-page > header { position: absolute; inset: 0 0 auto; z-index: 10; height: 100px; max-width: none; padding-inline: var(--cinema-gutter); background: transparent; border-bottom: 1px solid #eeeee51a; }
.cinema-page > header .brand { margin-right: auto; }
.cinema-page > header nav { margin-left: 0; }
.cinema-page > header .header-cta { margin-left: 0; order: 2; }
.cinema-page > header .language-switch { order: 3; border-color: #eeeee52a; }
.cinema-page > header .menu-toggle { order: 4; }
.cinema-page > header .mark { font-size: 14px; letter-spacing: -.02em; }
.cinema-page > header .mark img { width: 22px; height: 45px; }
.cinema-page > header .lang button { min-height: 44px; min-width: 36px; }
.cinema-page > header .bar-login { font-size: 13px; }
.hero-cinema { position: relative; isolation: isolate; overflow: hidden; height: 100svh; min-height: 760px; max-height: 1250px; background: #0b0f0d; color: var(--cinema-ink); }
.hero-cinema .cinema-media, .hero-cinema .cinema-media picture, .hero-cinema .cinema-media img, .hero-cinema .cinema-video, .hero-cinema .cinema-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-cinema .cinema-media { z-index: -3; pointer-events: none; }
.hero-cinema .cinema-media img, .hero-cinema .cinema-video { object-fit: cover; object-position: 66% 50%; }
.hero-cinema .cinema-video { opacity: 0; transition: opacity .45s ease; }
.hero-cinema.is-changing-source .cinema-video { opacity: 0 !important; transition: none; }
.hero-cinema .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cinema-page .hero-cinema h1, .cinema-page .hero-cinema .hero-copy { opacity: 1; transform: none; animation: none; }
.hero-cinema.has-video-frame .cinema-video { opacity: 1; }
.hero-cinema .cinema-shade { z-index: -2; pointer-events: none; background: linear-gradient(90deg, #0b0f0d80 0%, #0b0f0d40 28%, #0b0f0d00 65%, #0b0f0d00 85%), linear-gradient(0deg, #111614 0%, #111614a8 13%, #11161400 42%, #11161400 80%, #11161480 100%); }
.cinema-register { position: absolute; top: 141px; right: var(--cinema-gutter); display: flex; gap: 13px; align-items: center; color: #e3e6db; font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.cinema-register::before { content: ''; width: 18px; height: 18px; border-top: 1px solid #d7ef7a9c; border-right: 1px solid #d7ef7a9c; }
.hero-cinema .hero-copy { position: relative; width: 100%; max-width: none; height: 100%; margin: 0; padding: 186px var(--cinema-gutter) 160px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-cinema .eyebrow { display: flex; align-items: center; gap: 11px; max-width: 560px; margin: 0 0 28px; font: 500 10px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.hero-cinema .dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; margin: 0; border-radius: 50%; background: var(--cinema-accent); box-shadow: 0 0 14px #d7ef7a55; }
.hero-cinema h1 { position: relative; max-width: 1030px; margin: 0 0 32px -.055em; font-size: clamp(66px, 7.15vw, 132px); font-weight: 450; line-height: .99; letter-spacing: -.07em; }
.hero-cinema .hero-title-line { display: block; white-space: nowrap; }
.hero-cinema h1 em { margin-left: .065em; color: var(--cinema-accent); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.065em; }
.hero-cinema .hero-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-cinema .hero-bottom p { max-width: 430px; font-size: 14px; line-height: 1.75; color: #c6cdc3; }
.hero-cinema .hero-actions { display: flex; gap: 24px; align-items: center; margin: 0; }
.hero-cinema .hero-primary, .hero-cinema .btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; border: 1px solid var(--cinema-accent); border-radius: 3px; min-height: 54px; padding: 0 20px; background: var(--cinema-accent); color: #111614; font-size: 13px; font-weight: 600; }
.hero-cinema .hero-primary span, .hero-cinema .btn .action-arrow { font-size: 23px; font-weight: 400; }
.hero-cinema .hero-secondary, .hero-cinema .text-link { display: inline-flex; align-items: center; gap: 25px; min-height: 48px; padding: 0; border: 0; border-bottom: 1px solid #eeeee55a; border-radius: 0; color: var(--cinema-ink); font-size: 13px; text-decoration: none; }
.hero-cinema .hero-secondary:hover, .hero-cinema .text-link:hover { background: transparent; color: var(--cinema-accent); border-color: var(--cinema-accent); }
.cinema-footer { position: absolute; z-index: 3; bottom: 0; left: var(--cinema-gutter); right: var(--cinema-gutter); min-height: 108px; display: flex; align-items: center; gap: 28px; border-top: 1px solid #eeeee52a; }
.cinema-footer > .cinema-index { display: flex; align-items: center; gap: 18px; font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; }
.cinema-index .index-number { color: var(--cinema-accent); font-size: 27px; letter-spacing: -.06em; }
.cinema-film { display: flex; gap: 13px; align-items: center; text-align: left; margin-left: auto; padding: 0; background: none; color: inherit; }
.cinema-film img { width: 95px; height: 54px; border-radius: 2px; filter: brightness(.82); }
.cinema-film-label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.5; }
.cinema-film-label small { color: #b7bbb3; font: 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .1em; }
.cinema-film .film-play { display: grid; place-items: center; width: 38px; height: 38px; margin-left: 6px; border: 1px solid #eeeee55c; border-radius: 50%; font-size: 10px; }
.cinema-transport { position: relative; display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 124px; min-height: 44px; padding: 10px 0 10px 20px; border-left: 1px solid #eeeee52a; background: none; color: #d8ddd2; font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.hero-cinema .cinema-transport[hidden] { display: inline-flex !important; visibility: hidden; pointer-events: none; }
.cinema-transport svg { width: 12px; height: 12px; fill: currentColor; }
.cinema-transport [data-cinema-label] { display: inline-block; width: 74px; text-align: left; }
.cinema-transport .pause-icon { display: none; }
.is-playing .cinema-transport .pause-icon { display: block; }
.is-playing .cinema-transport .play-icon { display: none; }
.cinema-scroll { display: inline-flex; align-items: center; gap: 20px; margin-left: auto; min-height: 44px; font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.cinema-scroll span:last-child { color: var(--cinema-accent); font-size: 20px; }
/* The editing page treats the title as the film's closing credit. */
.hero-cinema--edit { min-height: 820px; }
.hero-cinema--edit::before, .hero-cinema--edit::after { content: none; }
.hero-cinema--edit .cinema-shade { background: linear-gradient(90deg, #0b0f0d90 0%, #0b0f0d60 28%, #0b0f0d00 66%, #0b0f0d00 88%), linear-gradient(0deg, #111614 0%, #111614e6 19%, #11161400 55%, #11161400 80%, #11161499 100%); }
.hero-cinema--edit .hero-text { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; height: 100%; inset: auto; margin: 0; padding: 160px var(--cinema-gutter) 300px; }
.hero-cinema--edit .hero-copy { position: static; height: auto; padding: 0; gap: 0; }
.hero-cinema--edit .eyebrow { margin-bottom: 27px; color: #ced4c7; }
.hero-cinema--edit .hero-service { max-width: 760px; margin: 0 0 18px; font-size: clamp(52px, 5.2vw, 92px); line-height: 1.04; letter-spacing: -.065em; font-weight: 450; }
.hero-cinema--edit .hero-service em { color: var(--cinema-accent); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.hero-cinema--edit .hero-line { max-width: 350px; margin: 0 0 23px; color: #c6cdc3; font-size: 15px; line-height: 1.7; }
.hero-cinema--edit .hero-turnaround { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 28px; color: var(--cinema-accent); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-turnaround::before { content: ''; width: 7px; height: 7px; border: 1px solid var(--cinema-accent); border-radius: 50%; }
.hero-cinema--edit .hero-actions { gap: 24px; }
.hero-cinema--edit .cinema-wordmark { position: absolute; z-index: 2; left: var(--cinema-gutter); right: var(--cinema-gutter); bottom: 97px; width: auto; max-width: none; margin: 0 0 0 -.055em; font-size: clamp(96px, 13.65vw, 250px); line-height: .9; letter-spacing: -.075em; white-space: nowrap; font-weight: 500; }
.hero-cinema--edit .cinema-wordmark span { display: inline; }
.hero-cinema--edit .cinema-wordmark .wordmark-edit { color: var(--cinema-accent); }
.hero-cinema--edit .cinema-footer { min-height: 80px; }
.hero-cinema--edit .cinema-index { color: #b7bbb3; font-size: 9px; }
.cinema-page :is(a,button):focus-visible { outline: 3px solid var(--cinema-accent); outline-offset: 5px; }
html[lang='zh-Hans'] .hero-cinema--production h1 { font-size: clamp(60px, 6.8vw, 120px); line-height: 1.1; letter-spacing: -.045em; }
html[lang='zh-Hans'] .hero-cinema h1 em { font-family: inherit; font-style: normal; letter-spacing: -.045em; }
html[lang='zh-Hans'] .hero-cinema .eyebrow { letter-spacing: .07em; }
html[lang='zh-Hans'] .hero-cinema--edit .hero-service { line-height: 1.16; letter-spacing: -.025em; }
html[lang='zh-Hans'] .hero-cinema--edit .hero-service em { font-family: inherit; font-style: normal; letter-spacing: -.025em; }
@media (min-width: 1800px) { .hero-cinema--production .hero-copy { padding-top: 200px; } }
@media (max-width: 1100px) {
  .cinema-page > header { gap: 22px; }
  .cinema-page > header nav { gap: 22px; }
  .cinema-register { display: none; }
  .hero-cinema h1 { font-size: clamp(64px, 8.5vw, 94px); }
  .cinema-index { max-width: 200px; }
  .cinema-film img { width: 72px; height: 44px; }
}
@media (max-width: 800px) {
  .cinema-page > header { height: 80px; gap: 15px; }
  .cinema-page > header .brand { margin-right: auto; }
  .cinema-page > header nav { top: 80px; padding-inline: var(--cinema-gutter); background: #111614; }
  .cinema-page > header .menu-toggle { margin-left: 0; min-height: 44px; }
  .cinema-page > header .language-switch { order: 3; }
  .cinema-page > header .mark span { display: none; }
  .cinema-page > header .bar-login { margin-left: 0; font-size: 12px; }
  .cinema-page > header .mark { margin-right: auto; }
  .hero-cinema { min-height: 810px; max-height: none; }
  .hero-cinema .cinema-media { top: 58px; height: 68%; }
  .hero-cinema .cinema-media img, .hero-cinema .cinema-video { object-fit: contain; object-position: 50% 0; }
  /* The production loop is landscape; crop its subject into the portrait media box. */
  .hero-cinema--production .cinema-video { object-fit: cover; object-position: 90% 50%; background: #0b0f0d; }
  .hero-cinema .cinema-shade { background: linear-gradient(0deg, #111614 0%, #111614e6 11%, #111614c9 38%, #11161426 78%, #11161499 100%); }
  .hero-cinema .hero-copy { justify-content: flex-end; padding: 135px var(--cinema-gutter) 147px; }
  .hero-cinema .eyebrow { font-size: 9px; max-width: 310px; line-height: 1.8; margin-bottom: 23px; }
  .hero-cinema h1 { font-size: clamp(48px, 8.8vw, 70px); margin-bottom: 25px; }
  .hero-cinema .hero-title-line { white-space: normal; }
  .hero-cinema .hero-title-line:last-child { max-width: 640px; }
  .hero-cinema .hero-bottom { gap: 25px; }
  .hero-cinema .hero-bottom p { font-size: 13px; }
  .hero-cinema .hero-actions { gap: 18px; flex-wrap: wrap; }
  .hero-cinema .hero-primary, .hero-cinema .btn { padding-inline: 16px; gap: 18px; font-size: 12px; min-height: 52px; }
  .hero-cinema .hero-secondary, .hero-cinema .text-link { font-size: 12px; gap: 12px; }
  .cinema-footer { gap: 18px; min-height: 110px; }
  .cinema-footer > .cinema-index { display: none; }
  .cinema-film { margin-left: 0; gap: 10px; }
  .cinema-film img { width: 68px; height: 44px; }
  .cinema-film-label { font-size: 10px; }
  .cinema-film-label small { font-size: 8px; }
  .cinema-film .film-play { display: none; }
  .cinema-transport { margin-left: auto; min-width: 94px; padding-left: 15px; font-size: 9px; gap: 7px; }
  .hero-cinema .cinema-transport[hidden] { display: none !important; }
  .hero-cinema--edit { min-height: 850px; }
  .hero-cinema--edit .cinema-media { top: 150px; left: 25%; width: 100%; height: 62%; }
  .hero-cinema--edit .cinema-shade { background: linear-gradient(90deg, #0b0f0df2 0%, #0b0f0dcc 46%, #0b0f0d40 90%, #0b0f0d00 100%), linear-gradient(0deg, #111614 0%, #111614bb 18%, #11161400 65%); }
  .hero-cinema--edit .hero-text { justify-content: flex-start; padding: 148px var(--cinema-gutter) 290px; }
  .hero-cinema--edit .hero-copy { padding: 0; }
  .hero-cinema--edit .hero-service { font-size: clamp(47px, 8vw, 64px); }
  .hero-cinema--edit .hero-line { max-width: 300px; color: #eeeee5; font-size: 13px; }
  .hero-cinema--edit .hero-turnaround { font-size: 10px; }
  .hero-cinema--edit .cinema-wordmark { bottom: 108px; font-size: clamp(76px, 17vw, 136px); line-height: .82; }
  .hero-cinema--edit .cinema-wordmark span { display: block; }
  .hero-cinema--edit .cinema-wordmark .wordmark-edit { margin-top: 8px; }
  .hero-cinema--edit .cinema-footer { min-height: 75px; }
  .hero-cinema--edit .cinema-index { display: block; max-width: 150px; font-size: 8px; }
  .hero-cinema--edit .cinema-scroll { margin-left: auto; font-size: 9px; gap: 12px; }
  html[lang='zh-Hans'] .hero-cinema--production h1 { font-size: clamp(48px, 9vw, 72px); }
  html[lang='zh-Hans'] .hero-cinema--edit .hero-service { font-size: clamp(34px, 8vw, 56px); }
}
@media (max-width: 480px) {
  .hero-cinema--production h1 { max-width: 100%; font-size: clamp(48px, 12vw, 59px); line-height: 1.01; }
  .hero-cinema--production .hero-title-line:first-child { white-space: nowrap; }
  .hero-cinema--production .hero-title-line:last-child em { display: block; }
  .hero-cinema--production .hero-copy { padding-bottom: 140px; }
  .hero-cinema--production .hero-bottom p { max-width: 290px; }
  .hero-cinema .hero-actions { gap: 16px; }
  .hero-cinema .hero-primary, .hero-cinema .btn { gap: 15px; }
  .hero-cinema--edit .hero-service { max-width: 310px; font-size: 48px; }
  .hero-cinema--edit .hero-text { padding-top: 148px; }
  .hero-cinema--edit .cinema-wordmark { font-size: 19vw; }
  html[lang='zh-Hans'] .hero-cinema--production .hero-title-line:last-child em { display: inline; }
}
@media (max-width: 360px) {
  .cinema-page > header { gap: 10px; }
  .hero-cinema .hero-actions { gap: 14px; }
  .hero-cinema .hero-primary, .hero-cinema .btn { padding-inline: 12px; gap: 10px; font-size: 11px; }
  .hero-cinema .hero-secondary, .hero-cinema .text-link { gap: 10px; font-size: 11px; }
  .cinema-film-label { max-width: 115px; }
  .cinema-film img { width: 53px; }
}
@media (max-height: 650px) and (min-width: 801px) {
  .hero-cinema { min-height: 720px; }
  .hero-cinema--edit { min-height: 780px; }
}
@media (max-width: 800px) and (max-height: 700px) {
  .hero-cinema--production { min-height: 720px; }
  .hero-cinema--production .hero-copy { padding-top: 100px; padding-bottom: 158px; }
  .hero-cinema--production .cinema-media { top: 70px; height: 48%; }
  .hero-cinema--production h1 { font-size: 44px; }
  html[lang='zh-Hans'] .hero-cinema--production h1 { font-size: 42px; }
  .hero-cinema--production .eyebrow { margin-bottom: 18px; }
  .hero-cinema--production .hero-bottom { gap: 18px; }
  .hero-cinema--production .hero-bottom p { font-size: 12px; }
  .hero-cinema--edit { min-height: 800px; }
  .hero-cinema--edit .hero-text { padding-top: 118px; }
  .hero-cinema--edit .hero-service { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cinema *, .hero-cinema *::before, .hero-cinema *::after { animation: none !important; transition: none !important; }
  .cinema-page { scroll-behavior: auto; }
}
