/* ==========================================================================
   Cella Cinema — base styles
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-raised: #f4f4f2;
  --text: #111111;
  --text-muted: #6b6b66;
  --border: #e2e2de;
  --max-width: 1200px;
  --nav-height: 88px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Chivo', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

main {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.logo-image {
  width: 120px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }

  .nav-links[data-open="true"] {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 20px;
  }
}

/* --------------------------------------------------------------------------
   Hero / page intro
   -------------------------------------------------------------------------- */

.hero {
  padding: 96px 0 56px;
  text-align: center;
}

.hero h1 {
  margin: 0;
}

.hero-logo-image {
  width: clamp(240px, 32vw, 420px);
  height: auto;
  margin: 0 auto;
}

.hero p {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: clamp(14px, 2vw, 17px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-title {
  padding: 64px 0 40px;
  text-align: center;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Video embed (responsive 16:9)
   -------------------------------------------------------------------------- */

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-raised);
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel {
  width: 100%;
}

.reel .video-frame {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Video list (Commercial / Documentary)
   -------------------------------------------------------------------------- */

.video-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px 96px;
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.video-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.video-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.video-item .video-info {
  margin-top: 20px;
  text-align: center;
}

.video-item .video-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.video-item .video-client {
  color: var(--text-muted);
  font-weight: 400;
}

.video-item .video-role {
  margin: 6px 0 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Logo carousel (marquee)
   -------------------------------------------------------------------------- */

.marquee-section {
  padding: 64px 0 96px;
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

.marquee-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 40px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 64px,
    #000 calc(100% - 64px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 64px,
    #000 calc(100% - 64px),
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee[data-paused="true"] .marquee-track {
  animation-play-state: paused;
}

.marquee-track .brand-logo {
  flex: 0 0 auto;
  height: 36px;
  width: auto;
  margin: 0 36px;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}

.marquee-track .brand-logo:hover {
  opacity: 1;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Home — contact
   -------------------------------------------------------------------------- */

.contact-block {
  text-align: center;
  padding: 80px 32px 40px;
}

.contact-block h2 {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-block .contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: clamp(18px, 3vw, 24px);
}

.contact-block a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.contact-block a:hover {
  border-color: var(--text);
}

/* --------------------------------------------------------------------------
   Bio page
   -------------------------------------------------------------------------- */

.bio-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px 96px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

.bio-portrait {
  background: var(--bg-raised);
}

.bio-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.portrait-placeholder {
  width: 30%;
  height: 30%;
  fill: var(--text-muted);
  opacity: 0.35;
}

.bio-text p {
  margin: 0 0 22px;
  font-size: 17px;
  color: var(--text-muted);
}

.bio-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .bio-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bio-portrait {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

.footer-social a:hover {
  color: var(--text);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-meta a:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 64px 0 40px;
  }

  .video-list {
    gap: 64px;
    padding-bottom: 64px;
  }
}
