/* Video hero and progressive text entrances */
#hero .hero-parallax-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none !important;
  background-color: #161312;
  background-image: url('../images/hero-video-poster.jpg');
  background-image: image-set(url('../images/hero-video-poster.webp') type('image/webp'), url('../images/hero-video-poster.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center 66%;
  background-repeat: no-repeat;
}

#hero .hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 66%;
  display: block;
  opacity: 1;
  animation: none !important;
  transform: none !important;
}

@media (max-width: 768px) {
  #hero .hero-parallax-layer {
    background-position: center 55%;
  }
  #hero .hero-bg-video {
    object-position: center 55%;
  }
}

#hero .hero-overlay {
  background:
    linear-gradient(0deg, rgba(14, 9, 7, 0.65) 0%, transparent 32%),
    linear-gradient(90deg, rgba(14, 9, 7, 0.80) 0%, rgba(14, 9, 7, 0.52) 45%, rgba(14, 9, 7, 0.16) 100%);
}

.text-motion-ready {
  transition: opacity 0.65s ease, translate 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--text-delay, 0ms);
}

.text-motion-ready:not(.text-motion-visible) {
  opacity: 0;
  translate: 0 18px;
}

.hero-content.active .hero-anim-item {
  animation: crownTextEntrance 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-content.active .hero-anim-1 { animation-delay: 0.04s; }
.hero-content.active .hero-anim-2 { animation-delay: 0.10s; }
.hero-content.active .hero-anim-3 { animation-delay: 0.18s; }
.hero-content.active .hero-anim-4 { animation-delay: 0.26s; }
.hero-content.active .hero-anim-5 { animation-delay: 0.34s; }

@keyframes crownTextEntrance {
  from { opacity: 0; translate: 0 20px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .text-motion-ready { opacity: 1 !important; translate: none !important; transition: none !important; }
  .hero-content.active .hero-anim-item { animation: none !important; opacity: 1; }
}

/* Reference: split introduction, large image, thumbnail rail */
#services.portfolio-editorial { padding: 56px 0 72px; background: var(--ivory); color: #302a24; }
#services .services-grain-overlay,
#services > .services-container { display: none; }
.work-showcase { width: 88%; max-width: 1300px; margin: auto; display: grid; grid-template-columns: 0.58fr 1fr; gap: 6%; align-items: center; }
.work-eyebrow { font: 600 10px var(--font-inter); letter-spacing: 0.24em; color: #C98A3D; }
.work-intro h2 { color: #2B0A0E; font-family: var(--font-cormorant); font-size: clamp(36px, 4vw, 62px); font-weight: 500; line-height: 1.08; margin: 26px 0; }
.work-intro h2 em { color: #C98A3D; font-weight: 500; }
.work-intro p { max-width: 380px; font: 14px/1.85 var(--font-inter); color: var(--taupe); margin-bottom: 28px; }
.work-all { display: inline-flex; align-items: center; text-decoration: none; background: var(--maroon); color: var(--ivory); border: 0; padding: 16px 24px; font: 600 12px var(--font-inter); letter-spacing: 0.08em; cursor: pointer; transition: background 0.25s, transform 0.25s; }
.work-all:hover { background: var(--burgundy-hover); transform: translateY(-2px); }
.work-all span { margin-left: 22px; }
.work-controls { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.work-controls button { height: 46px; width: 46px; background: transparent; border: 1px solid #cdbda8; color: var(--maroon); font-size: 24px; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.work-controls button:hover { border-color: var(--gold); background: rgba(201, 138, 61, 0.08); }
.work-count { font: 600 10px var(--font-inter); letter-spacing: 0.17em; color: var(--taupe); }
.work-intro small { display: block; margin-top: 14px; font: 11px var(--font-inter); color: var(--taupe); }
.work-main { display: block; position: relative; width: 100%; aspect-ratio: 1.42; padding: 0; border: 0; background: #e5ded1; cursor: zoom-in; overflow: hidden; touch-action: pan-y; }
.work-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-expand { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--ivory); color: var(--maroon); font-size: 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.work-caption { position: absolute; bottom: 0; left: 22px; background: var(--ivory); color: #292923; padding: 12px 16px; font: 500 11px var(--font-inter); letter-spacing: 0.08em; max-width: calc(100% - 44px); box-sizing: border-box; }
.work-thumbnails { display: flex; overflow-x: auto; gap: 12px; margin-top: 22px; scroll-behavior: smooth; scrollbar-width: thin; padding-bottom: 8px; }
.work-thumbnails button { flex: 0 0 calc((100% - 84px) / 8); min-width: 54px; padding: 0 0 7px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; opacity: 0.65; }
.work-thumbnails button.selected { border-color: var(--gold); opacity: 1; }
.work-thumbnails img { display: block; width: 100%; aspect-ratio: 1.2; object-fit: cover; }

.work-motion > :is(.work-eyebrow, h2, p, .work-all, .work-controls, small) { opacity: 0; translate: 0 18px; transition: opacity 0.7s, translate 0.7s; }
.work-motion.work-motion-visible > :is(.work-eyebrow, h2, p, .work-all, .work-controls, small) { opacity: 1; translate: 0 0; }
.work-motion h2 { transition-delay: 0.08s; }
.work-motion p { transition-delay: 0.16s; }
.work-motion .work-all { transition-delay: 0.24s; }
.work-motion .work-controls { transition-delay: 0.32s; }
.work-motion small { transition-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  .work-motion > * { opacity: 1 !important; translate: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .work-showcase { width: 90%; grid-template-columns: 1fr; gap: 32px; }
  .work-intro h2 { margin: 18px 0; }
  .work-intro p { max-width: 100%; }
  .work-controls { margin-top: 24px; }
  .work-thumbnails { gap: 8px; margin-top: 16px; }
  .work-main { aspect-ratio: 1.25; }
}

@media (max-width: 600px) {
  .work-main { aspect-ratio: 1.1; }
  .work-caption { left: 12px; padding: 10px 14px; font-size: 10px; max-width: calc(100% - 24px); }
  .work-thumbnails button { flex-basis: 58px; }
}

/* Cinematic video consultation section */
.cinema-contact {
  position: relative;
  isolation: isolate;
  padding: 76px 0;
  background: #302923 url('../images/contact-bg.jpg') center/cover;
  background-image: image-set(url('../images/contact-bg.webp') type('image/webp'), url('../images/contact-bg.jpg') type('image/jpeg'));
  color: var(--ivory);
  overflow: hidden;
}
.contact-film,
.contact-film-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.contact-film-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(20, 15, 12, 0.74), rgba(20, 15, 12, 0.38));
}
.cinema-contact-layout {
  width: 88%;
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 7%;
  align-items: center;
}
.cinema-eyebrow {
  font: 600 10px var(--font-sans);
  letter-spacing: 0.25em;
  color: #e4cda6;
}
.cinema-contact-story h2 {
  font: 500 clamp(34px, 4vw, 62px)/1.08 var(--font-serif);
  color: var(--ivory);
  margin: 24px 0;
}
.cinema-contact-story h2 em {
  color: #e4cda6;
}
.cinema-contact-story > p {
  font: 14px/1.85 var(--font-sans);
  color: var(--ivory);
  margin-bottom: 32px;
}
.cinema-contact-links {
  max-width: 380px;
}
.cinema-contact-links a {
  display: block;
  color: var(--ivory);
  border-top: 1px solid #ffffff45;
  padding: 16px 0 20px;
  font: 14px var(--font-sans);
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 0.2s;
}
.cinema-contact-links a:hover {
  color: #e4cda6;
}
.cinema-contact-links a span {
  display: block;
  color: #e4cda6;
  font: 600 10px var(--font-sans);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}
#contactFilmToggle {
  margin-top: 12px;
  background: rgba(20, 15, 12, 0.45);
  border: 1px solid #ffffff65;
  padding: 10px 16px;
  color: var(--ivory);
  font: 500 11px var(--font-sans);
  letter-spacing: 0.08em;
  cursor: pointer;
}
.vision-card {
  background: rgba(250, 247, 242, 0.98);
  padding: 38px;
  color: var(--charcoal);
  border: 1px solid #dfd2bd;
  border-radius: 4px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}
.vision-eyebrow {
  font: 600 9.5px var(--font-sans);
  letter-spacing: 0.2em;
  color: var(--gold-dark);
}
.vision-card h3 {
  font: 500 clamp(28px, 3vw, 36px)/1.15 var(--font-serif);
  color: var(--charcoal);
  margin: 14px 0 26px;
}
.vision-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}
.vision-fields label {
  display: block;
  font: 600 10px var(--font-sans);
  letter-spacing: 0.04em;
  color: #6c5841;
  min-width: 0;
}
.vision-fields input,
.vision-fields select,
.vision-fields textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #ccbaa1;
  color: var(--charcoal);
  background: transparent;
  padding: 12px 0 10px;
  margin-top: 4px;
  font: 14px/1.5 var(--font-sans);
  outline-offset: 4px;
}
.vision-fields input::placeholder,
.vision-fields textarea::placeholder {
  color: #958979;
}
.vision-fields textarea {
  resize: vertical;
}
.vision-full {
  grid-column: 1 / -1;
}
.vision-primary,
.vision-email {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  font: 600 12px var(--font-sans);
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 2px;
}
.vision-primary {
  background: var(--maroon);
  color: var(--ivory);
  border: 1px solid var(--maroon);
  margin-top: 24px;
}
.vision-email {
  border: 1px solid #ccbaa1;
  background: transparent;
  color: var(--maroon);
  margin-top: 10px;
}
.vision-note {
  font: 11px/1.6 var(--font-sans);
  color: var(--taupe);
  margin-top: 14px;
}

@media (max-width: 900px) {
  .cinema-contact { padding: 56px 0; }
  .cinema-contact-layout { width: 90%; grid-template-columns: 1fr; gap: 36px; }
  .vision-card { padding: 28px 22px; }
}

@media (max-width: 540px) {
  .vision-fields { grid-template-columns: 1fr; gap: 18px; }
  .vision-full { grid-column: auto; }
}

/* Full studio name and visible WhatsApp toggle */
.site-header .brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  white-space: nowrap;
}
.site-header .brand-title small {
  font: 500 10px var(--font-sans);
  letter-spacing: 0.32em;
  display: block;
  margin-top: 7px;
  color: inherit;
}

.crown-wa-widget {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 1100;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.crown-wa-toggle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #ffffff75;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 5px 22px #0004;
  cursor: pointer;
  margin-left: auto;
  transition: transform 0.2s;
}
.crown-wa-toggle:hover {
  transform: translateY(-3px);
  background: #20bd5a;
}
.crown-wa-card {
  width: min(310px, calc(100vw - 40px));
  margin-bottom: 14px;
  background: var(--ivory);
  border: 1px solid #d8c7ad;
  box-shadow: 0 12px 45px #0003;
  color: var(--charcoal);
  border-radius: 12px;
  overflow: hidden;
}
.crown-wa-card[hidden] {
  display: none;
}
.crown-wa-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: var(--maroon);
  color: var(--ivory);
  font: 14px var(--font-sans);
}
.crown-wa-heading button {
  border: 0;
  background: none;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
}
.crown-wa-card p {
  font: 13px/1.7 var(--font-sans);
  padding: 20px;
  margin: 0;
}
.crown-wa-card > a {
  display: block;
  margin: 0 18px 18px;
  padding: 14px;
  background: #15833e;
  color: white;
  text-align: center;
  border-radius: 5px;
  font: 600 12px var(--font-sans);
  text-decoration: none;
}

body.door-locked .crown-wa-widget,
body.door-locked .crown-ig-widget,
body.nav-open .crown-wa-widget,
body.nav-open .crown-ig-widget,
body.lightbox-open .crown-wa-widget,
body.lightbox-open .crown-ig-widget,
body.contact-in-view .crown-wa-widget,
body.contact-in-view .crown-ig-widget {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .crown-wa-widget { right: 12px; bottom: 14px; }
  .crown-wa-toggle { width: 44px; height: 44px; }
  .site-header .brand-title small { font-size: 9px; margin-top: 4px; }
}
@media (max-width: 420px) {
  .site-header .brand-title small { font-size: 7.5px; letter-spacing: 0.2em; margin-top: 3px; }
}

.footer-brand-title {
  font-size: clamp(16px, 2vw, 23px);
  letter-spacing: 0.13em;
  line-height: 1.25;
}
@media (max-width: 480px) {
  .footer-brand-title { font-size: 15px; letter-spacing: 0.09em; }
  .footer-brand-link { gap: 12px; }
}

/* Service positioning below the hero headline */
.hero-service-line {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--light-gold);
  margin: 18px 0 12px;
}
@media (max-width: 768px) {
  .hero-service-line {
    font-size: clamp(13px, 3.6vw, 15px);
    line-height: 1.45;
    max-width: 100%;
    margin: 10px 0 6px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero-service-line {
    font-size: 12.5px;
    margin: 6px 0 4px;
  }
}
