/* ============================================================
   May Chai Films — maychaifilms.com
   Cinematic · dark · editorial · premium
   ============================================================ */

:root {
  --mc-black: #0A0A0B;
  --mc-ink: #141416;
  --mc-ink-2: #101012;
  --mc-line: #26262A;
  --mc-line-soft: #1C1C20;
  --mc-fog: #7C7C84;
  --mc-mist: #A8A8B0;
  --mc-paper: #ECECEE;
  --mc-accent: #C8A15A;
  --mc-accent-dim: #8A6E3C;

  --font-display: "Playfair Display", "Canela", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease-cine: cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1400px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

/* scale the whole type system up on very large screens */
@media (min-width: 1800px) {
  :root { --wrap: 1600px; }
  html { font-size: 18px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background-color: var(--mc-black);
  scroll-behavior: smooth;
  scroll-padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;   /* hard-stop any sideways pan on mobile */
}

body {
  font-family: var(--font-body);
  background: var(--mc-black);
  color: var(--mc-paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--mc-accent); color: #14100A; }

/* ============================================================
   CINEMATIC INTRO (title card)
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  transition: opacity 0.5s var(--ease-cine), visibility 0.5s;
}
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-bar {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: #000; z-index: 1;
}
.intro-bar.top { top: 0; transform-origin: top; animation: barShut 0.9s var(--ease-cine) 1.5s forwards; }
.intro-bar.bottom { bottom: 0; transform-origin: bottom; animation: barShut 0.9s var(--ease-cine) 1.5s forwards; }
.intro-card {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: clamp(0.7rem, 1.6vh, 1.1rem);
  text-align: center;
  animation: cardFade 0.45s ease 1.3s forwards;
}
.intro-kicker {
  font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--mc-fog);
  opacity: 0; animation: introRise 0.7s var(--ease-cine) 0.1s forwards;
}
.intro-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--mc-paper);
  opacity: 0; animation: introRise 0.8s var(--ease-cine) 0.25s forwards;
}
.intro-logo em { font-style: italic; color: var(--mc-accent); }
.intro-line {
  width: 0; height: 1px; background: var(--mc-accent);
  animation: lineGrow 0.8s var(--ease-cine) 0.5s forwards;
}
.intro-tag {
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--mc-mist);
  opacity: 0; animation: introRise 0.7s var(--ease-cine) 0.6s forwards;
}
@keyframes introRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lineGrow { to { width: min(140px, 40vw); } }
@keyframes cardFade { to { opacity: 0; } }
@keyframes barShut { to { transform: scaleY(0); } }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--mc-accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-cine), height 0.35s var(--ease-cine), background 0.3s ease, opacity 0.3s ease;
  display: grid; place-items: center;
  mix-blend-mode: normal;
  opacity: 0;
}
.cursor span {
  font-size: 0; letter-spacing: 0.14em; text-transform: uppercase;
  color: #14100A; font-weight: 600;
  transition: font-size 0.25s ease;
  user-select: none;
}
body.has-cursor .cursor { opacity: 0.9; }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button, body.has-cursor [role="button"] { cursor: none; }
.cursor.is-play {
  width: 76px; height: 76px;
  background: var(--mc-accent);
}
.cursor.is-play span { font-size: 0.66rem; }
.cursor.is-link { width: 40px; height: 40px; background: rgba(200,161,90,0.25); }
.cursor.is-hidden { opacity: 0 !important; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ============================================================
   SHARED TYPE
   ============================================================ */
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mc-fog);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--mc-accent);
  display: inline-block;
}
.eyebrow-num { color: var(--mc-accent); margin-right: 0.15rem; }

.serif { font-family: var(--font-display); font-weight: 500; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-cine), transform 0.9s var(--ease-cine);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem var(--gutter);
  padding-top: calc(1.35rem + env(safe-area-inset-top, 0px));
  transition: background 0.4s var(--ease-cine), padding 0.4s var(--ease-cine), border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--mc-line-soft);
}
.nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: env(safe-area-inset-top, 0px);
  background: #0A0A0B;
  pointer-events: none;
}
.nav-progress {
  position: absolute; left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: var(--mc-accent);
  transition: width 0.1s linear;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand .dot { color: var(--mc-accent); }
.brand small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mc-fog);
  align-self: center;
  margin-left: 0.35rem;
}

.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--mc-mist);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--mc-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-cine);
}
.nav-links a:hover { color: var(--mc-paper); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid var(--mc-line);
  color: var(--mc-paper) !important;
  padding: 0.6rem 1.3rem !important;
  border-radius: 100px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { border-color: var(--mc-accent); color: var(--mc-accent) !important; }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--mc-paper);
  padding: 10px; margin: -10px;      /* 46px tap target, same visual size */
  line-height: 0;
}

/* ============================================================
   HERO — full-bleed still, letterboxed
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: clamp(5rem, 12vh, 9rem);   /* clear the nav */
  padding-bottom: 0;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-still {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) brightness(0.58);
  transform-origin: 60% 40%;
  animation: kenburns 26s var(--ease-cine) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.18) translate(-1.5%, 1.5%); }
}
.hero-grade {
  position: absolute; inset: 0;
  background:
    radial-gradient(110% 90% at 78% 20%, rgba(200,161,90,0.10), transparent 55%),
    linear-gradient(100deg, rgba(10,10,11,0.92) 18%, rgba(10,10,11,0.5) 52%, rgba(10,10,11,0.28) 100%),
    linear-gradient(0deg, rgba(10,10,11,0.95) 5%, transparent 40%);
  box-shadow: inset 0 0 160px rgba(0,0,0,0.7);
}
.letterbox {
  position: absolute; left: 0; right: 0; z-index: 3;
  height: clamp(28px, 4.5vh, 44px);
  background: #000;
}
.lb-top { top: 0; }
.lb-bottom { bottom: 0; }

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  margin-block: auto;               /* center vertically in the free space */
  padding-bottom: clamp(1.5rem, 3vh, 2.5rem);
}
.hero-tag {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-cine) 0.2s forwards;
  animation-play-state: paused;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  line-height: 0.96;
  letter-spacing: -0.028em;
  max-width: 12ch;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.hero h1 .line > span {
  display: block;
  transform: translateY(125%);
  animation: lineUp 1.1s var(--ease-cine) forwards;
  animation-play-state: paused;
}
.hero h1 .line:nth-child(1) > span { animation-delay: 0.30s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.42s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.54s; }
.hero h1 em { font-style: italic; color: var(--mc-accent); }

.hero-foot {
  margin-top: clamp(1.75rem, 4vh, 3rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-sub {
  max-width: 44ch;
  color: var(--mc-mist);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-cine) 0.7s forwards;
  animation-play-state: paused;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-cine) 0.85s forwards;
  animation-play-state: paused;
}


/* hero sequence starts when the intro finishes (or is skipped) */
body.ready .hero-tag,
body.ready .hero h1 .line > span,
body.ready .hero-sub,
body.ready .hero-actions { animation-play-state: running; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px);} to {opacity:1; transform:none;} }
@keyframes lineUp { to { transform: translateY(0); } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: 100px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: transform 0.3s var(--ease-cine), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary {
  background: var(--mc-accent); color: #14100A;
  box-shadow: 0 0 0 0 rgba(200,161,90,0.0);
}
.btn-primary:hover {
  background: #d8b775;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px -8px rgba(200,161,90,0.45);
}
.btn-ghost { color: var(--mc-paper); }
.btn-ghost .arrow { transition: transform 0.35s var(--ease-cine); }
.btn-ghost:hover .arrow { transform: translateX(6px); }
.btn-ghost .u { position: relative; }
.btn-ghost .u::after {
  content:""; position:absolute; left:0; bottom:-3px; width:100%; height:1px;
  background: var(--mc-accent); transform: scaleX(0); transform-origin:left;
  transition: transform 0.4s var(--ease-cine);
}
.btn-ghost:hover .u::after { transform: scaleX(1); }

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.strip {
  border-block: 1px solid var(--mc-line-soft);
  padding-block: clamp(1.4rem, 3vh, 2.2rem);
  overflow: hidden;
  background: var(--mc-ink-2);
}
.marquee {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  color: var(--mc-paper);
  display: inline-flex; align-items: center; gap: 4rem;
  white-space: nowrap;
  line-height: 1.2;
}
.marquee span.ghost {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--mc-fog);
}
.marquee span::after { content: "✦"; color: var(--mc-accent); font-size: 0.55em; -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-pad { padding-block: clamp(5rem, 13vh, 11rem); }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
  flex-wrap: wrap;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 17ch;
}
.sec-head h2 em { font-style: italic; color: var(--mc-accent); }
.sec-head .lead {
  max-width: 40ch;
  color: var(--mc-mist);
  font-size: 1rem;
  padding-bottom: 0.4rem;
}
.sec-head .eyebrow { margin-bottom: 1.4rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { border-top: 1px solid var(--mc-line-soft); }
.svc-list { border-top: 1px solid var(--mc-line); }
.svc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.25rem, 4.5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  border-bottom: 1px solid var(--mc-line);
  position: relative;
  transition: padding-left 0.5s var(--ease-cine);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  background: linear-gradient(90deg, transparent, rgba(200,161,90,0.05), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.svc:hover::before { opacity: 1; }
.svc:hover { padding-left: clamp(0.5rem, 2vw, 1.75rem); }
.svc-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--mc-line);
  transition: -webkit-text-stroke-color 0.4s ease, color 0.4s ease;
  min-width: 1.6em;
}
.svc:hover .svc-num { -webkit-text-stroke-color: var(--mc-accent-dim); }
.svc-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin-bottom: 0.9rem;
  transition: color 0.3s ease, transform 0.5s var(--ease-cine);
}
.svc:hover .svc-body h3 { color: var(--mc-accent); }
.svc-body p { color: var(--mc-mist); max-width: 58ch; font-size: 0.98rem; }
.svc-arrow {
  align-self: center;
  color: var(--mc-fog);
  width: 58px; height: 58px;
  border: 1px solid var(--mc-line);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 0.45s var(--ease-cine), color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.svc:hover .svc-arrow {
  transform: rotate(45deg);
  color: #14100A;
  background: var(--mc-accent);
  border-color: var(--mc-accent);
}

/* floating hover preview */
.svc-preview {
  position: fixed;
  z-index: 90;
  width: 300px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--mc-line);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9) rotate(-2deg);
  transition: opacity 0.35s var(--ease-cine), transform 0.5s var(--ease-cine);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}
.svc-preview.on { opacity: 1; transform: scale(1) rotate(-2deg); }
.svc-preview img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
}

/* ============================================================
   FEATURED SHOWREEL — anamorphic band
   ============================================================ */
.feature {
  padding-block: 0 clamp(2rem, 4vh, 3rem);
  background: var(--mc-ink-2);
  border-top: 1px solid var(--mc-line-soft);
}
.feature-frame {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  cursor: pointer;
}
.feature-frame .thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05) brightness(0.6);
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-cine), filter 0.7s ease;
}
.feature-frame:hover .thumb { transform: scale(1.06); filter: saturate(1) contrast(1.05) brightness(0.75); }
.feature-frame .veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,11,0.5) 0%, transparent 35%, transparent 60%, rgba(10,10,11,0.85) 100%);
}
.feature-caption {
  position: absolute; z-index: 2;
  left: var(--gutter); bottom: clamp(1.5rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: 0.9rem;
}
.feature-title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.feature-runtime {
  position: absolute; z-index: 2;
  right: var(--gutter); bottom: clamp(1.5rem, 4vw, 3rem);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mc-mist);
  border: 1px solid rgba(236,236,238,0.25);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  background: rgba(10,10,11,0.4);
  backdrop-filter: blur(6px);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.feature-frame:hover .feature-runtime { color: var(--mc-accent); border-color: var(--mc-accent-dim); }
.feature-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5;
}

/* ============================================================
   WORK
   ============================================================ */
.work { background: var(--mc-ink-2); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.work-card {
  position: relative;
  border: 1px solid var(--mc-line);
  background: var(--mc-black);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
}
.work-card::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(200,161,90,0);
  z-index: 3;
  pointer-events: none;
  transition: border-color 0.5s ease, inset 0.5s var(--ease-cine);
}
.work-card:hover::after { border-color: rgba(200,161,90,0.45); inset: 14px; }
.work-card.span-7 { grid-column: span 7; }
.work-card.span-5 { grid-column: span 5; }
.work-card.span-8 { grid-column: span 8; }
.work-card.span-4 { grid-column: span 4; }

.work-card .thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02) brightness(0.72);
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-cine), filter 0.6s ease;
}
.work-card:hover .thumb { transform: scale(1.08); filter: saturate(1) contrast(1.05) brightness(0.85); }
.work-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.15) 0%, rgba(10,10,11,0.35) 45%, rgba(10,10,11,0.92) 100%);
  z-index: 1;
}
.work-meta {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex; flex-direction: column; gap: 0.4rem;
  transform: translateY(6px);
  transition: transform 0.5s var(--ease-cine);
}
.work-card:hover .work-meta { transform: none; }
.work-cat {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mc-accent);
}
.work-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.work-note {
  color: var(--mc-mist); font-size: 0.85rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease 0.05s, transform 0.5s var(--ease-cine) 0.05s;
}
.work-card:hover .work-note { opacity: 1; transform: none; }
.work-card.span-4 .work-title { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.work-card.span-4 .work-note { font-size: 0.78rem; }
.play {
  position: absolute; top: clamp(1rem,2.5vw,1.75rem); right: clamp(1rem,2.5vw,1.75rem);
  z-index: 3;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(236,236,238,0.35);
  background: rgba(10,10,11,0.3);
  backdrop-filter: blur(4px);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.5s var(--ease-cine);
}
.play svg { margin-left: 3px; }
.work-card:hover .play {
  background: var(--mc-accent); border-color: var(--mc-accent); transform: scale(1.08);
}
.work-card:hover .play svg path { fill: #14100A; }
.work-badge {
  position:absolute; z-index:3; top: clamp(1rem,2.5vw,1.75rem); left: clamp(1rem,2.5vw,1.75rem);
  font-size:0.68rem; letter-spacing:0.12em; text-transform:uppercase;
  color: var(--mc-mist);
  border:1px solid var(--mc-line); border-radius: 100px;
  padding: 0.3rem 0.7rem;
  background: rgba(10,10,11,0.5);
  backdrop-filter: blur(4px);
}

.work-card iframe {
  position:absolute; inset:0; width:100%; height:100%; border:0; z-index:5;
}

/* ---------- client series strip ---------- */
.series { margin-top: clamp(4.5rem, 9vh, 7rem); }
.series-head { max-width: 680px; margin-bottom: 2.5rem; }
.series-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-top: 1.1rem;
}
.series-title em { font-style: italic; color: var(--mc-accent); }
.series-note { color: var(--mc-mist); margin-top: 0.8rem; font-size: 0.95rem; max-width: 54ch; }
.series-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.series-card {
  position: relative;
  border: 1px solid var(--mc-line);
  background: var(--mc-black);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.series-card .thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02) brightness(0.72);
  transition: transform 0.8s var(--ease-cine), filter 0.5s ease;
}
.series-card:hover .thumb,
.series-card:focus-visible .thumb { transform: scale(1.06); filter: saturate(1) contrast(1.04) brightness(0.9); }
.series-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.85) 0%, rgba(10,10,11,0.1) 45%, transparent 70%);
}
.series-card .play {
  width: 40px; height: 40px;
  top: 0.9rem; right: 0.9rem; left: auto; bottom: auto;
  transform: none;
}
.series-card:hover .play { background: var(--mc-accent); border-color: var(--mc-accent); }
.series-card:hover .play svg path { fill: #14100A; }
.series-card-title {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.85rem;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mc-paper);
}
.series-card iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5;
}
.series-card:focus-visible { outline: 1px solid var(--mc-accent); outline-offset: 2px; }
@media (max-width: 980px) {
  .series-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .series-grid { grid-template-columns: 1fr; }
  .series-card { aspect-ratio: 16 / 9; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { border-top: 1px solid var(--mc-line-soft); overflow: hidden; }
.founders {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 10vh, 7rem);
}
.founder {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.founder.alt { grid-template-columns: 1fr minmax(280px, 460px); }
.founder.alt .founder-photo { order: 2; }
.founder.alt .founder-text { order: 1; text-align: right; }
.founder.alt .founder-text .founder-bio { margin-left: auto; }

.founder-photo {
  position: relative;
  aspect-ratio: 4 / 5;
}
.founder-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  border: 1px solid var(--mc-accent-dim);
  transition: transform 0.6s var(--ease-cine);
  pointer-events: none;
}
.founder:hover .founder-photo::before { transform: translate(10px, 10px); }
.founder-photo img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 1px solid var(--mc-line);
  filter: grayscale(0.2) contrast(1.02);
  transition: filter 0.7s ease;
}
.founder:hover .founder-photo img { filter: grayscale(0) contrast(1.05); }
.founder-photo .frame-cap {
  position: absolute; z-index: 2; left: 1.1rem; bottom: 1.1rem;
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mc-paper);
  background: rgba(10,10,11,0.6);
  backdrop-filter: blur(4px);
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(236,236,238,0.15);
}
.founder-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin-bottom: 0.6rem;
}
.founder-name em { font-style: italic; color: var(--mc-accent); }
.founder-role {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mc-fog); margin-bottom: 1.4rem;
}
.founder-bio { color: var(--mc-mist); font-size: 1rem; max-width: 56ch; }

.about-statement {
  margin-top: clamp(4rem, 9vh, 7rem);
  padding-top: clamp(2.5rem, 5vh, 4rem);
  border-top: 1px solid var(--mc-line);
  position: relative;
  max-width: 52ch;
  margin-inline: auto;
  text-align: center;
}
.quote-mark {
  display: block;
  font-size: 5rem;
  line-height: 0.4;
  color: var(--mc-accent);
  margin-bottom: 1.2rem;
}
.about-statement p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.about-statement em { font-style: italic; color: var(--mc-accent); }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact {
  border-top: 1px solid var(--mc-line-soft);
  position: relative;
  overflow: hidden;
}
.contact-glow {
  position:absolute; inset:0; z-index:0;
  background: radial-gradient(70% 60% at 50% 120%, rgba(200,161,90,0.16), transparent 60%);
}
.contact-inner { position: relative; z-index: 1; text-align: center; }
.contact .eyebrow { justify-content: center; margin-bottom: 1.75rem; }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.028em;
  margin-bottom: 2.75rem;
}
.contact h2 em { font-style: italic; color: var(--mc-accent); }
.mail-link {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 2.1rem);
  position: relative;
}
.mail-link .u { position: relative; }
.mail-link .u::after {
  content:""; position:absolute; left:0; bottom:2px; width:100%; height:1px;
  background: var(--mc-accent); transform: scaleX(0); transform-origin:left;
  transition: transform 0.5s var(--ease-cine);
}
.mail-link:hover .u::after { transform: scaleX(1); }
.contact-socials {
  margin-top: 2.25rem;
  display: flex; justify-content: center; align-items: center; gap: 1rem;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mc-fog);
}
.contact-socials a { color: var(--mc-mist); transition: color 0.3s ease; }
.contact-socials a:hover { color: var(--mc-accent); }

.footer {
  border-top: 1px solid var(--mc-line-soft);
  padding-block: 0 clamp(2.5rem, 5vh, 4rem);
}
.film-perf {
  height: 26px;
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 14px,
    var(--mc-line-soft) 14px 26px,
    transparent 26px 40px
  );
  background-size: 40px 12px;
  background-position: center;
  background-repeat: repeat-x;
  border-bottom: 1px solid var(--mc-line-soft);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer .brand { font-size: 1.5rem; }
.socials { display: flex; gap: 1.75rem; align-items: center; }
.socials a {
  font-size: 0.82rem; letter-spacing: 0.06em; color: var(--mc-mist);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color 0.3s ease;
}
.socials a svg { transition: transform 0.4s var(--ease-cine); }
.socials a:hover { color: var(--mc-accent); }
.socials a:hover svg { transform: translateY(-2px); }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid var(--mc-line-soft);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--mc-fog); font-size: 0.78rem; letter-spacing: 0.04em;
}

/* ============================================================
   FOCUS / A11Y
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--mc-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .work-card.span-7, .work-card.span-5,
  .work-card.span-8, .work-card.span-4 { grid-column: span 12; }
  .founder, .founder.alt { grid-template-columns: 1fr; }
  .founder.alt .founder-photo { order: 1; }
  .founder.alt .founder-text { order: 2; text-align: left; }
  .founder.alt .founder-text .founder-bio { margin-left: 0; }
  .founder-photo { max-width: 460px; }
  .svc-preview { display: none; }
  .feature-frame { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  /* full-screen cinematic menu */
  .nav-links {
    position: fixed;
    inset: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.25rem;
    padding: calc(5rem + env(safe-area-inset-top, 0px)) var(--gutter) 5.5rem;
    background: #0A0A0B;
    counter-reset: menu;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease-cine), visibility 0.45s;
    z-index: 99;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 8.5vw, 2.9rem);
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--mc-paper);
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s var(--ease-cine), transform 0.6s var(--ease-cine), color 0.3s ease;
  }
  .nav-links a::after { display: none; }
  .nav-links a:not(.nav-cta)::before {
    counter-increment: menu;
    content: "0" counter(menu);
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: var(--mc-fog);
  }
  .nav-links a:active { color: var(--mc-accent); }
  .nav-links.open a { opacity: 1; transform: none; }
  .nav-links.open a:nth-child(1) { transition-delay: 0.10s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.17s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.24s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.31s; }
  .nav-links .nav-cta {
    margin-top: 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem !important;
    letter-spacing: 0.08em;
    padding: 0.95rem 1.9rem !important;
    border-color: var(--mc-accent);
    color: var(--mc-accent) !important;
  }
  /* menu footer tagline */
  .nav-links::after {
    content: "From concept to the screen";
    position: absolute;
    left: var(--gutter);
    bottom: calc(2.2rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.66rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--mc-fog);
  }
  /* brand + toggle stay above the overlay */
  .brand { position: relative; z-index: 101; }
  .nav-toggle { display: block; z-index: 101; position: relative; }
  /* hamburger morphs to a close mark */
  .nav-toggle path { transition: transform 0.4s var(--ease-cine), opacity 0.3s ease; transform-origin: 12px 12px; }
  .nav:has(.nav-links.open) .nav-toggle path:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav:has(.nav-links.open) .nav-toggle path:nth-child(2) { opacity: 0; }
  .nav:has(.nav-links.open) .nav-toggle path:nth-child(3) { transform: translateY(-5px) rotate(-45deg) scaleX(1.5); }
  body.menu-open { overflow: hidden; }
  /* iOS 26 Safari samples the fixed header for its status-bar backdrop,
     but only an opaque background qualifies — keep the glass blur on desktop only */
  .nav,
  .nav.scrolled {
    background: #0A0A0B;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .svc { grid-template-columns: 1fr; gap: 0.75rem; }
  .svc-num { font-size: 2rem; min-width: 0; }
  .svc-arrow { display: none; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .letterbox { height: 20px; }
  .intro-line { animation-name: lineGrowSm; }
  .feature-caption { left: 1.25rem; bottom: 1.25rem; }
  .feature-runtime { display: none; }
}
@keyframes lineGrowSm { to { width: 90px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .intro { display: none; }
  .hero-tag, .hero-sub, .hero-actions { opacity: 1; }
}
