/* ============================================================
   IKOI DESIGN — cinematic stylesheet
   Warm shiny noir + bronze. Quffer display type.
   Built for: small / medium / large / extra-large screens.
   ============================================================ */

/* ---------- Quffer brand font (drop files into assets/fonts) ---------- */
@font-face {
  font-family: 'Quffer';
  src: url('../assets/fonts/Quffer.woff2') format('woff2'),
       url('../assets/fonts/Quffer.woff')  format('woff'),
       url('../assets/fonts/Quffer.ttf')   format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* warm shiny noir — a beautiful shade of black, not flat */
  --noir-950: #080706;
  --noir-900: #0e0c0a;
  --noir-850: #14110e;
  --noir-800: #1a1612;
  --noir-700: #241e18;
  --noir-600: #322a20;
  --espresso: #2c2217;

  /* warm metals + cream, sampled from the IKOI logo */
  --brass:      #c9a86b;
  --brass-soft: #ab8a54;
  --bronze:     #8a7048;
  --cream-100:  #f3e9d8;
  --cream-200:  #e4d4bd;
  --stone-300:  #c8b69b;
  --stone-400:  #a4917a;
  --stone-500:  #7d6f5d;

  /* gloss / sheen tints */
  --sheen:      rgba(243,233,216,0.10);
  --sheen-soft: rgba(243,233,216,0.04);
  --glass:      rgba(14,12,10,0.55);

  /* type */
  --display: 'Quffer', 'Italiana', 'Cormorant Garamond', Georgia, serif;
  --serif:   'Cormorant Garamond', 'Italiana', Georgia, serif;
  --sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* cinematic motion */
  --ease:      cubic-bezier(.2,.7,.15,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --ease-film: cubic-bezier(.16,1,.3,1);   /* long, weighted */
  --ease-mask: cubic-bezier(.77,0,.18,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--noir-850);
  color: var(--cream-100);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* shiny, living background — bronze glows over warm noir */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% -5%, rgba(201,168,107,0.10), transparent 60%),
    radial-gradient(900px 600px at 8% 105%, rgba(138,112,72,0.10), transparent 60%),
    linear-gradient(180deg, var(--noir-900), var(--noir-850) 40%, var(--noir-900));
}
/* faint film grain over everything for cinema texture */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 260px 260px;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--cream-200); font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: clamp(10px, 1.1vw, 11px);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-block;
  padding-bottom: 1.25rem;
}
.display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  color: var(--cream-100);
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.62;
  color: var(--cream-200);
  max-width: 58ch;
}
.rule { display:inline-block; width: 38px; height: 1px; background: var(--brass); vertical-align: middle; margin-right: 14px; }

/* shiny brass-foil text for accents */
.foil {
  background: linear-gradient(92deg, var(--bronze) 0%, var(--brass) 30%, #f6ead0 50%, var(--brass) 70%, var(--bronze) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: foil-sweep 7s linear infinite;
}
@keyframes foil-sweep { to { background-position: 200% center; } }

.brand-mark {
  font-family: var(--display);
  letter-spacing: 0.34em;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cream-100);
}
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--stone-400);
  margin-top: 4px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem clamp(1.2rem, 4vw, 3.4rem);
  padding-left:  max(clamp(1.2rem, 4vw, 3.4rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.2rem, 4vw, 3.4rem), env(safe-area-inset-right));
  z-index: 50;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), padding .4s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(201,168,107,0.14);
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.nav__logo {
  width: 38px; height: 38px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 14px rgba(0,0,0,.5), inset 0 0 0 1px rgba(201,168,107,.25);
}
.nav__links {
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 2.6vw, 2.6rem);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-200);
}
.nav__links a { position: relative; padding: 4px 0; transition: color .3s var(--ease); }
.nav__links a::after {
  content: '';
  position: absolute; left: 0; right: 100%;
  bottom: -2px; height: 1px;
  background: var(--brass);
  transition: right .4s var(--ease);
}
.nav__links a:hover { color: var(--cream-100); }
.nav__links a:hover::after { right: 0; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(201,168,107,0.4);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-100);
  position: relative;
  overflow: hidden;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.nav__cta::before { /* gloss sweep */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, var(--sheen) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.nav__cta:hover::before { transform: translateX(120%); }
.nav__cta:hover { border-color: var(--brass); color: #fff; }
.nav__cta svg { width: 18px; height: 11px; }

.nav__burger { display: none; width: 40px; height: 40px; position: relative; z-index: 60; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--cream-100); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; justify-self: end; }
}
/* Safety: menu drawer must never show on desktop regardless of JS state */
@media (min-width: 921px) {
  .menu { display: none !important; }
}

/* ============================================================
   MOBILE MENU — top-sheet (not full-screen)
   ============================================================ */
.menu {
  position: fixed;
  top: 0; left: 0; right: 0;   /* anchored to top only */
  bottom: auto;                  /* does NOT extend to bottom */
  background: var(--noir-900);
  border-bottom: 1px solid rgba(201,168,107,0.18);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .4s var(--ease), visibility .4s var(--ease), transform .4s var(--ease);
  overflow: hidden;
}
.menu::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 300px at 100% 100%, rgba(201,168,107,0.1), transparent 65%);
}
.menu.is-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}

/* ---- close button ---- */
.menu__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,107,0.5);
  background: rgba(201,168,107,0.12);
  color: var(--cream-100);
  z-index: 2;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  cursor: pointer;
  flex-shrink: 0;
}
.menu__close:hover { background: var(--brass); border-color: var(--brass); color: var(--noir-900); transform: rotate(90deg); }
.menu__close svg { width: 16px; height: 16px; }

/* ---- inner layout ---- */
.menu__inner {
  display: flex;
  flex-direction: column;
  padding: clamp(4.5rem, 10vw, 5rem) clamp(1.6rem, 6vw, 2.4rem) clamp(1.4rem, 4vw, 2rem);
  gap: 0;
}

/* ---- nav links ---- */
.menu__list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.menu__list li { border-bottom: 1px solid rgba(201,168,107,0.08); }
.menu__list li:first-child { border-top: 1px solid rgba(201,168,107,0.08); }
.menu__list a {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  line-height: 1;
  color: var(--cream-100);
  padding: .85rem 0;
  letter-spacing: 0.02em;
  transform: translateX(-12px); opacity: 0;
  transition: color .3s var(--ease), transform .5s var(--ease-film), opacity .5s var(--ease);
}
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu.is-open li:nth-child(1) a { transition-delay: .07s; }
.menu.is-open li:nth-child(2) a { transition-delay: .12s; }
.menu.is-open li:nth-child(3) a { transition-delay: .17s; }
.menu.is-open li:nth-child(4) a { transition-delay: .22s; }
.menu.is-open li:nth-child(5) a { transition-delay: .27s; }
.menu__list a:hover { color: var(--brass); padding-left: .4rem; }

/* ---- footer row ---- */
.menu__foot {
  margin-top: clamp(1rem, 3vw, 1.4rem);
  padding-top: clamp(.8rem, 2vw, 1rem);
  border-top: 1px solid rgba(201,168,107,0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem .8rem;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone-400);
}
.menu__foot a { color: var(--stone-300); transition: color .3s var(--ease); }
.menu__foot a:hover { color: var(--brass); }
.menu__social { display: inline-flex; gap: 1rem; }

body.menu-open { overflow: hidden; }

/* ============================================================
   SOUND TOGGLE (background audio control)
   ============================================================ */
.sound {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-bottom));
  z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,107,0.3);
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--cream-100);
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.sound:hover { border-color: var(--brass); transform: translateY(-2px); }
.sound__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__eq i {
  width: 2px; height: 100%;
  background: var(--brass);
  transform-origin: bottom;
  animation: eq 1s ease-in-out infinite;
}
.sound__eq i:nth-child(2) { animation-delay: .2s; }
.sound__eq i:nth-child(3) { animation-delay: .4s; }
.sound__eq i:nth-child(4) { animation-delay: .15s; }
@keyframes eq { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.sound.is-muted .sound__eq i { animation-play-state: paused; transform: scaleY(.25); opacity: .5; }
.sound__label::after { content: 'Sound on'; }
.sound.is-muted .sound__label::after { content: 'Sound off'; }
/* gentle attention pulse before first interaction */
.sound.is-idle { animation: sound-pulse 2.4s var(--ease) infinite; }
@keyframes sound-pulse {
  0%,100% { box-shadow: 0 8px 30px rgba(0,0,0,.4), 0 0 0 0 rgba(201,168,107,.0); }
  50%     { box-shadow: 0 8px 30px rgba(0,0,0,.4), 0 0 0 8px rgba(201,168,107,.12); }
}

/* ============================================================
   HERO — CINEMATIC SLIDESHOW (video + photo)
   ============================================================ */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--noir-950);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
@supports (height: 100dvh) { .hero { height: 100dvh; } }
.hero.is-dragging { cursor: grabbing; }

.hero__rail {
  position: absolute; inset: 0;
  display: flex;
  width: 100%; height: 100%;
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%; height: 100%;
  overflow: hidden;
  isolation: isolate;
}
.slide__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.18);
  filter: brightness(0.66) contrast(1.06) saturate(0.92);
}
/* ken-burns drift on the active slide's media */
.slide.is-active .slide__media { animation: kenburns 16s var(--ease-soft) forwards; }
@keyframes kenburns {
  0%   { transform: scale(1.18) translate(0,0); }
  100% { transform: scale(1.28) translate(-2.5%, -2%); }
}

.slide__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 115%, rgba(8,7,6,0.88) 0%, rgba(8,7,6,0.32) 46%, transparent 72%),
    linear-gradient(180deg, rgba(8,7,6,0.55) 0%, transparent 32%, transparent 58%, rgba(8,7,6,0.72) 100%),
    linear-gradient(90deg, rgba(8,7,6,0.5) 0%, transparent 28%, transparent 78%, rgba(8,7,6,0.32) 100%);
}

.slide__content {
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(2rem, 6vw, 6rem);
  padding-left:  max(clamp(1.4rem, 6vw, 6rem), env(safe-area-inset-left));
  padding-bottom: clamp(6rem, 11vw, 9rem);
  max-width: 60ch;
}
.slide__index {
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--brass); padding-bottom: 1.2rem;
}
.slide__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}
.slide__title em { font-family: var(--serif); font-style: italic; color: var(--cream-200); }
.slide__sub {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  letter-spacing: 0.04em; color: var(--stone-300);
  max-width: 46ch;
}
/* staged entrance of text on the active slide */
.slide__content > * { opacity: 0; transform: translateY(26px); }
.slide.is-active .slide__index   { animation: rise .9s var(--ease-film) .25s forwards; }
.slide.is-active .slide__title   { animation: rise 1.1s var(--ease-film) .38s forwards; }
.slide.is-active .slide__sub     { animation: rise 1s var(--ease-film) .55s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* HERO CHROME */
.hero__chrome {
  position: absolute; z-index: 5;
  left: clamp(1.4rem, 6vw, 6rem);
  right: clamp(1.4rem, 6vw, 6rem);
  bottom: max(clamp(1.4rem, 3vw, 2.2rem), env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.6rem;
  color: var(--cream-200); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
}
.hero__progress { position: relative; height: 1.5px; width: 100%; background: rgba(243,233,216,0.16); overflow: hidden; }
.hero__progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: linear-gradient(90deg, var(--bronze), var(--brass), #f6ead0); transition: width .6s var(--ease); }
.hero__counter .dim { color: var(--stone-400); margin-left: 4px; }
.hero__dots { display: inline-flex; gap: 9px; }
.hero__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(243,233,216,0.4); background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.hero__dots button.is-active { background: var(--brass); border-color: var(--brass); transform: scale(1.15); }

.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; display: grid; place-items: center;
  border: 1px solid rgba(243,233,216,0.16); border-radius: 50%;
  color: var(--cream-100); z-index: 4;
  background: rgba(8,7,6,0.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.hero__arrow svg { width: 18px; height: 18px; }
.hero__arrow:hover { background: rgba(243,233,216,0.95); color: var(--noir-850); border-color: var(--cream-100); }
.hero__arrow--prev { left: clamp(1rem, 3vw, 2rem); }
.hero__arrow--next { right: clamp(1rem, 3vw, 2rem); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 5; display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 9px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--stone-400);
}
.hero__scroll span.line { width: 1px; height: 40px; background: linear-gradient(var(--brass), transparent); animation: scrolldrop 2s var(--ease) infinite; }
@keyframes scrolldrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 720px) {
  .hero__arrow { display: none; }
  .hero__chrome { grid-template-columns: 1fr auto; }
  .hero__scroll { display: none; }
}

/* ============================================================
   SECTION SHELL + CINEMATIC REVEALS
   ============================================================ */
.section { position: relative; padding: clamp(5rem, 13vw, 11rem) clamp(1.2rem, 6vw, 6rem); }
.wrap { max-width: 1400px; margin: 0 auto; }
.section-head { max-width: 1400px; margin: 0 auto clamp(2.6rem, 6vw, 5rem); }
.section-head--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }

/* reveal primitives (toggled by JS) — gated behind .js so the site
   stays fully visible if JS is disabled, slow, or fails to load. */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-film), transform 1.1s var(--ease-film); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-mask); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="scale"] { opacity: 0; transform: scale(.96); }
.js [data-reveal="scale"].is-in { opacity: 1; transform: none; }

/* ============================================================
   STUDIO
   ============================================================ */
.studio {
  border-top: 1px solid rgba(201,168,107,0.1);
  border-bottom: 1px solid rgba(201,168,107,0.1);
}
.studio__grid { display: grid; grid-template-columns: 210px 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; max-width: 1400px; margin: 0 auto; }
.studio__label { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone-400); padding-top: 14px; }
.studio__body .display em { font-style: italic; color: var(--brass); font-family: var(--serif); }
.studio__body .lede { margin-top: 2rem; }
.studio__stats {
  grid-column: 1 / -1; margin-top: clamp(2.6rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(201,168,107,0.12);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.studio__stats div { display: flex; flex-direction: column; gap: 8px; }
.studio__stats strong { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--cream-100); line-height: 1; }
.studio__stats span { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--stone-400); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: linear-gradient(180deg, var(--noir-900), var(--noir-850)); }
.services__cards {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(201,168,107,0.12);
  border: 1px solid rgba(201,168,107,0.12);
  border-radius: 4px; overflow: hidden;
}
.card {
  position: relative; background: var(--noir-850);
  padding: clamp(1.6rem, 2.4vw, 2.4rem); display: flex; flex-direction: column; min-height: 360px;
  transition: background .5s var(--ease); overflow: hidden;
}
.card::before { /* shiny diagonal sheen on hover */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, var(--sheen-soft) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.card:hover { background: var(--noir-700); }
.card:hover::before { transform: translateX(120%); }
.card__num { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.26em; color: var(--brass); padding-bottom: 2.4rem; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; color: var(--cream-100); margin-bottom: 1rem; }
.card p { font-family: var(--serif); font-size: 1.05rem; color: var(--cream-200); flex: 1; margin-bottom: 1.6rem; }
.card__meta { list-style: none; border-top: 1px solid rgba(201,168,107,0.14); padding-top: 1rem; display: grid; gap: 8px; }
.card__meta li { display: flex; justify-content: space-between; gap: 1rem; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.card__meta span { color: var(--stone-400); }
.card__meta b { color: var(--cream-100); font-weight: 400; letter-spacing: 0.1em; text-align: right; }
.card--accent { background: var(--noir-700); }

/* ============================================================
   WORKS TEASER (home) — links to dedicated Works page
   ============================================================ */
.teaser { position: relative; overflow: hidden; padding: 0; }
.teaser__media { position: absolute; inset: 0; z-index: -1; }
.teaser__media video, .teaser__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(.9); transform: scale(1.08); }
.teaser__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,7,6,.7), rgba(8,7,6,.4) 40%, rgba(8,7,6,.85)); }
.teaser__inner { max-width: 1400px; margin: 0 auto; padding: clamp(6rem, 16vw, 12rem) clamp(1.2rem, 6vw, 6rem); display: grid; gap: 1.6rem; justify-items: start; }
.teaser h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: 1; color: var(--cream-100); }
.teaser p { font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.4rem); color: var(--cream-200); max-width: 52ch; }

/* film/portfolio grid (used on works page + teaser preview) */
.films { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 25vw; gap: clamp(.8rem, 1.6vw, 1.4rem); }
.film { position: relative; grid-column: span 2; overflow: hidden; border-radius: 4px; background: var(--noir-700); isolation: isolate; }
.film--tall { grid-row: span 2; }
.film--wide { grid-column: span 4; }
.film__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.74) saturate(.92); transform: scale(1.05); transition: transform 1.4s var(--ease-film), filter 1.4s var(--ease-film); }
.film::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 38%, rgba(8,7,6,.9)); opacity: .55; transition: opacity .6s var(--ease); }
.film__meta { position: absolute; z-index: 2; inset: auto 0 0 0; padding: clamp(1.1rem, 2vw, 1.8rem); color: var(--cream-100); transform: translateY(18%); opacity: .85; transition: transform .7s var(--ease-film), opacity .7s var(--ease); }
.film__loc { display: inline-block; font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); padding-bottom: .5rem; }
.film__meta h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.08; margin-bottom: .3rem; }
.film__meta p { font-family: var(--serif); font-size: 1rem; color: var(--cream-200); max-width: 38ch; }
.film__play { position: absolute; z-index: 2; top: clamp(1rem,2vw,1.4rem); right: clamp(1rem,2vw,1.4rem); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(243,233,216,.4); background: rgba(8,7,6,.3); backdrop-filter: blur(6px); }
.film__play svg { width: 12px; height: 12px; }
.film:hover .film__media { transform: scale(1.1); filter: brightness(.5); }
.film:hover::before { opacity: .85; }
.film:hover .film__meta { transform: none; opacity: 1; }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  background:
    radial-gradient(800px 420px at 18% 50%, rgba(201,168,107,0.08), transparent 60%),
    var(--noir-900);
  border-top: 1px solid rgba(201,168,107,0.1);
  border-bottom: 1px solid rgba(201,168,107,0.1);
}
.philosophy__inner { max-width: 1100px; margin: 0 auto; }
.quote { margin-top: 1rem; position: relative; }
.quote p { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 4vw, 3.3rem); line-height: 1.16; color: var(--cream-100); letter-spacing: 0.005em; }
.quote em { font-family: var(--serif); font-style: italic; color: var(--brass); }
.mark { font-family: var(--serif); font-size: 1.4em; color: var(--stone-400); line-height: 0; vertical-align: -0.15em; }
.quote footer { margin-top: 2.2rem; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone-400); }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta { position: relative; overflow: hidden; background: var(--noir-850); }
.cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 500px at 90% 110%, rgba(201,168,107,0.12), transparent 60%), radial-gradient(500px 300px at 8% -10%, rgba(138,112,72,0.1), transparent 60%); }
.cta__inner { position: relative; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.cta__copy .display em { font-family: var(--serif); font-style: italic; color: var(--brass); }
.cta__copy .lede { margin-top: 1.6rem; }
.cta__channels { list-style: none; display: grid; gap: 1.1rem; }
.cta__channels li { display: grid; grid-template-columns: 84px 1fr; gap: 1.2rem; align-items: baseline; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(201,168,107,0.14); }
.cta__channels li > span { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--stone-400); }
.cta__channels li a { font-family: var(--display); font-size: clamp(1.1rem, 1.4vw, 1.4rem); color: var(--cream-100); transition: color .3s var(--ease); margin-right: .8rem; }
.cta__channels li a:hover { color: var(--brass); }
.cta__button {
  grid-column: 1 / -1; justify-self: start; margin-top: clamp(2rem, 4vw, 3rem);
  display: inline-flex; align-items: center; gap: 18px;
  padding: 22px 36px; border-radius: 999px; position: relative; overflow: hidden;
  border: 1px solid var(--brass); color: var(--cream-100);
  font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
  transition: color .35s var(--ease);
}
.cta__button::before { content: ''; position: absolute; inset: 0; background: linear-gradient(92deg, var(--bronze), var(--brass), #f6ead0); transform: translateX(-101%); transition: transform .5s var(--ease); z-index: -1; }
.cta__button:hover { color: var(--noir-900); }
.cta__button:hover::before { transform: translateX(0); }
.cta__button svg { width: 22px; height: 12px; transition: transform .35s var(--ease); }
.cta__button:hover svg { transform: translateX(6px); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { padding: 2.2rem clamp(1.2rem, 6vw, 6rem); background: var(--noir-950); border-top: 1px solid rgba(201,168,107,0.12); }
.foot__row { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--stone-400); flex-wrap: wrap; }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; }
.foot__brand img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.foot__social { display: inline-flex; gap: 1.2rem; }
.foot__social a { color: var(--cream-200); }
.foot__social a:hover { color: var(--brass); }

/* ============================================================
   WORKS PAGE — page header
   ============================================================ */
.pagehead { position: relative; min-height: 64vh; min-height: 64svh; display: grid; align-items: end; overflow: hidden; }
.pagehead__media { position: absolute; inset: 0; z-index: -1; }
.pagehead__media video, .pagehead__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(.9); transform: scale(1.1); animation: kenburns 24s var(--ease-soft) infinite alternate; }
.pagehead__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,7,6,.75) 0%, rgba(8,7,6,.35) 40%, rgba(8,7,6,.9) 100%); }
.pagehead__inner { max-width: 1400px; margin: 0 auto; width: 100%; padding: clamp(7rem, 16vw, 11rem) clamp(1.2rem, 6vw, 6rem) clamp(3rem, 8vw, 5rem); }
.pagehead h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.8rem, 9vw, 7rem); line-height: .98; color: var(--cream-100); }
.pagehead p { margin-top: 1.4rem; font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.4rem); color: var(--cream-200); max-width: 54ch; }
.backlink { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone-300); margin-bottom: 1.6rem; }
.backlink svg { width: 20px; height: 11px; transform: scaleX(-1); }
.backlink:hover { color: var(--brass); }

/* ============================================================
   RESPONSIVE — small / medium / large / extra-large
   ============================================================ */

/* extra-large: cap so content doesn't drift */
@media (min-width: 1800px) {
  .wrap, .section-head, .studio__grid, .services__cards, .films,
  .cta__inner, .foot__row, .philosophy__inner, .teaser__inner, .pagehead__inner { max-width: 1560px; }
  body { font-size: 17px; }
}

/* large desktop down to laptop */
@media (max-width: 1280px) {
  .services__cards { grid-template-columns: repeat(2, 1fr); }
  .cta__inner { grid-template-columns: 1fr; gap: clamp(2.4rem, 6vw, 4rem); }
}

/* tablet landscape */
@media (max-width: 1024px) {
  .films { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 34vw; }
  .film--wide { grid-column: span 4; }
  .studio__grid { grid-template-columns: 160px 1fr; }
}

/* tablet portrait */
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; }
  .studio__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .studio__label { padding-top: 0; }
  .card { min-height: 300px; }
}

/* large phones */
@media (max-width: 720px) {
  .slide__title { font-size: clamp(2.4rem, 11vw, 4.4rem); }
  .slide__sub { font-size: 1.05rem; }
  .hero__chrome { gap: 1rem; }
  .studio__stats { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .quote p { font-size: clamp(1.5rem, 6vw, 2.3rem); }
  .films { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 52vw; }
  .film--wide, .film--tall { grid-column: span 2; grid-row: auto; }
  .foot__row { justify-content: center; text-align: center; }
}

/* phones */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .display { font-size: clamp(2rem, 9vw, 3rem); }
  .lede { font-size: 1rem; }
  .nav { gap: .8rem; }
  .nav__logo { width: 34px; height: 34px; }
  .brand-mark { font-size: 1rem; letter-spacing: 0.3em; }
  .services__cards { grid-template-columns: 1fr; }
  .card { min-height: 260px; padding: 1.4rem; }
  .films { grid-template-columns: 1fr; grid-auto-rows: 68vw; }
  .film__meta { transform: none; opacity: 1; }
  .film::before { opacity: .8; }
  .cta__channels li { grid-template-columns: 1fr; gap: .3rem; }
  .cta__button { width: 100%; justify-content: center; }
  .cta__button:hover svg { transform: none; }
  .sound { font-size: 0; gap: 0; padding: 12px; }   /* icon-only on small screens */
  .sound__label { display: none; }
}

/* small phones */
@media (max-width: 400px) {
  .nav { padding-inline: 1rem; }
  .brand-sub { display: none; }
  .slide__title { font-size: 2.1rem; }
  .display { font-size: 1.9rem; }
  .studio__stats { grid-template-columns: 1fr; }
  .quote p { font-size: 1.4rem; line-height: 1.22; }
}

/* short landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 520px; }
  .slide__content { padding-bottom: 4rem; }
  .slide__title { font-size: clamp(1.8rem, 6vw, 3rem); }
  .hero__arrow { width: 44px; height: 44px; }
}

/* touch devices — reveal film meta, bigger targets */
@media (hover: none) and (pointer: coarse) {
  .film__meta { transform: none; opacity: 1; }
  .film::before { opacity: .8; }
  .nav__links a { padding: 8px 0; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .slide__content > * { opacity: 1 !important; transform: none !important; }
  .slide__media { transform: scale(1.08) !important; }
}
