/* Cats & Honey Productions */
/* fonts, self-hosted (latin subset from Google Fonts, SIL Open Font License, see assets/fonts/OFL-*.txt) */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/bebas-neue.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 400; font-display: swap; src: url(../assets/fonts/archivo-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibm-plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/ibm-plex-mono-500.woff2) format("woff2"); }
:root {
  --ink: #0c0a07;
  --ink-2: #14110c;
  --ink-3: #1d1912;
  --cream: #f2ece0;
  --mute: rgba(242, 236, 224, .66);
  --faint: rgba(242, 236, 224, .14);
  --honey: #fdc63f;
  --amber: #e8960c;
  --accent: var(--honey);
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 4vw, 64px);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--cream); -webkit-font-smoothing: antialiased; }
body { margin: 0; font: 400 17px/1.55 var(--body); background: var(--ink); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--honey); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  mix-blend-mode: difference; color: #fff;
}
.nav a { text-decoration: none; }
.nav .mark { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; letter-spacing: .04em; }
.nav .mark i {
  width: 14px; height: 19px; background: #fff; display: block;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  clip-path: path("M7 0 C 9 5, 14 9.5, 14 13 A 7 6.5 0 0 1 0 13 C 0 9.5, 5 5, 7 0 Z");
}
.nav ul { display: flex; gap: clamp(16px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav ul a { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.nav ul a:hover { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; height: 230vh; }
.hero .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#honey { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .fallback { display: none; }
.no-webgl .hero { height: 100vh; }
.no-webgl #honey { display: none; }
.no-webgl .hero .fallback { display: grid; place-items: center; position: absolute; inset: 0; padding: 0 8vw; }
.no-webgl .hero .fallback img { width: min(78vw, 1200px); }
.hero .tagline {
  position: absolute; left: 0; right: 0; top: var(--below, 72vh);
  text-align: center; color: var(--mute);
  opacity: 0; transform: translateY(8px); transition: opacity 1.2s ease, transform 1.2s ease;
}
.hero .tagline b { color: var(--honey); font-weight: 500; }
.hero .cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--mute);
  opacity: 0; transition: opacity 1.2s ease .6s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero .cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--honey), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero.landed .tagline, .no-webgl .hero .tagline { opacity: 1; transform: none; }
.hero.landed .cue, .no-webgl .hero .cue { opacity: 1; }

/* ---------- sections ---------- */
section { position: relative; z-index: 2; background: var(--ink); }
.sec { padding-top: clamp(72px, 9vw, 140px); padding-bottom: clamp(72px, 9vw, 140px); }
section[id] { scroll-margin-top: 64px; }
.label { display: flex; gap: 14px; align-items: baseline; color: var(--mute); margin-bottom: clamp(36px, 5vw, 72px); }
.label span:first-child { color: var(--honey); }
.big { font-family: var(--display); font-weight: 400; line-height: .9; letter-spacing: .005em; margin: 0; }

/* marquee band */
.band {
  background: var(--honey); color: var(--ink); overflow: hidden; white-space: nowrap;
  transform: rotate(var(--tilt, -2.2deg)); margin: -3vw -2vw 0; padding: 14px 0 10px; position: relative; z-index: 3;
  box-shadow: 0 30px 80px rgba(253, 198, 63, .12);
}
.band .track { display: inline-flex; animation: marquee 38s linear infinite; }
.band span { font-family: var(--display); font-size: clamp(30px, 4.4vw, 64px); line-height: 1; padding-right: .5em; }
.band span em { font-style: normal; display: inline-block; transform: translateY(-.08em); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* what we do */
.about .grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.about .statement { grid-column: 1 / span 12; font-size: clamp(54px, 8.6vw, 150px); }
.about .statement .hon { color: var(--honey); }
.about .statement small { display: block; font-family: var(--body); font-style: italic; font-weight: 400; font-size: .2em; line-height: 1.2; color: var(--honey); margin-top: .5em; letter-spacing: 0; }
.about .copy { grid-column: 6 / span 6; margin-top: clamp(48px, 6vw, 96px); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; }
.about .copy p { margin: 0 0 1em; }
.about .copy strong { font-weight: 600; }
.beliefs { grid-column: 6 / span 6; list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--faint); }
.beliefs li { display: grid; grid-template-columns: 56px 1fr; padding: 18px 0; border-bottom: 1px solid var(--faint); font-family: var(--mono); font-size: 15px; line-height: 1.5; color: var(--cream); }
.beliefs li span { color: var(--honey); }
.beliefs li.cats { color: var(--honey); }
.services { grid-column: 1 / span 4; grid-row: 2 / span 2; align-self: start; margin-top: clamp(48px, 6vw, 96px); position: sticky; top: 110px; }
.services h3 { margin: 0 0 16px; color: var(--mute); font-weight: 400; }
.services ul { list-style: none; margin: 0; padding: 0; font-family: var(--display); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; }
.services li::before { content: "◖ "; color: var(--honey); font-size: .55em; vertical-align: .25em; }

/* work */
.work { background: var(--ink-2); }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 72px); align-items: end; }
.poster { position: relative; perspective: 1200px; }
.poster a { display: block; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.poster img { width: 100%; box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.04); }
.poster:hover a { transform: rotateY(-6deg) rotateX(3deg) translateZ(10px); }
.poster .drip-tag { position: absolute; top: -14px; right: -14px; background: var(--honey); color: var(--ink); padding: 8px 12px 6px; transform: rotate(4deg); }
.feature .kicker { color: var(--honey); margin-bottom: 18px; }
.feature h2 { font-size: clamp(64px, 9vw, 168px); }
.feature .logline { font-size: clamp(18px, 1.5vw, 23px); max-width: 34em; margin: 28px 0; color: var(--cream); }
.feature .credit { color: var(--mute); margin-bottom: 34px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px 14px; text-decoration: none;
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--faint); transition: background .25s, color .25s, border-color .25s;
}
.btn.solid { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn:hover { border-color: var(--accent); }
.btn.solid:hover { background: var(--cream); border-color: var(--cream); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

.stills { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-top: clamp(40px, 5vw, 80px); }
.stills figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.stills img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s; filter: saturate(.9); }
.stills figure:hover img { transform: scale(1.05); filter: saturate(1.15); }

.next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.slot {
  position: relative; min-height: 220px; padding: 28px; border: 1px dashed rgba(253, 198, 63, .38);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.slot h3 { font-family: var(--display); font-size: clamp(34px, 3.4vw, 54px); font-weight: 400; margin: 0; line-height: .95; }
.slot p { margin: 0; color: var(--mute); }
.slot img { position: absolute; right: -30px; bottom: -40px; width: 170px; opacity: .07; filter: invert(1); transition: opacity .5s, transform .8s; }
.slot:hover img { opacity: .16; transform: rotate(-8deg) translateY(-8px); }

/* team */
.team .people { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--faint); }
.person { padding: 34px 28px 40px 0; border-bottom: 1px solid var(--faint); }
.person + .person { padding-left: 28px; border-left: 1px solid var(--faint); }
.person .role { color: var(--mute); margin-bottom: 26px; }
.person h3 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.2vw, 72px); line-height: .92; margin: 0 0 14px; }
.person p { margin: 0; color: var(--mute); max-width: 26em; }
.person.open h3 { color: transparent; -webkit-text-stroke: 1px var(--cream); }
.person .apply { display: inline-block; margin-top: 22px; color: var(--honey); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.person .apply:hover { color: var(--cream); }

/* contact */
.contact { padding: clamp(110px, 15vw, 240px) 0 40px; overflow: hidden; }
.contact .big { font-size: clamp(64px, 12.5vw, 240px); }
.contact .big .hon { color: var(--honey); }
.contact .mail {
  display: inline-block; margin-top: clamp(30px, 4vw, 60px); font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 84px); color: var(--honey); text-decoration: none; line-height: 1; position: relative;
}
.contact .mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 3px; background: currentColor; transform-origin: left; transform: scaleX(.18); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.contact .mail:hover::after { transform: scaleX(1); }
.contact .meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 46px; color: var(--mute); }
.contact .meta a { text-decoration: none; color: var(--cream); }
.contact .meta a:hover { color: var(--honey); }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: clamp(90px, 12vw, 180px); padding-top: 22px; border-top: 1px solid var(--faint); color: var(--mute); }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .band .track { animation: none; }
}

/* ---------- project page ---------- */
.p-bta { --accent: #ff2d87; }
.p-hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.p-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,7,.2) 0%, rgba(12,10,7,0) 35%, rgba(12,10,7,.85) 82%, var(--ink) 100%); }
.p-hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 6vw, 90px); }
.p-hero h1 { font-size: clamp(76px, 15vw, 290px); }
.p-hero .kicker { color: var(--accent); margin-bottom: 14px; }
.p-intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 72px); }
.p-intro .syn { font-size: clamp(20px, 1.9vw, 30px); line-height: 1.38; }
.p-intro .syn p { margin: 0 0 .8em; }
.p-intro dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; align-content: start; }
.p-intro dt { color: var(--mute); }
.p-intro dd { margin: 0; }
.trailer { position: relative; aspect-ratio: 16 / 9; background: #000; margin-top: clamp(60px, 8vw, 120px); box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 50px 160px rgba(255, 45, 135, .12); }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-stills { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 12px; }
.p-stills figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 9; }
.p-stills figure:nth-child(1) { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.p-stills figure:nth-child(2), .p-stills figure:nth-child(3) { grid-column: span 2; }
.p-stills figure:nth-child(n+4) { grid-column: span 2; }
.p-stills img { width: 100%; height: 100%; object-fit: cover; }
.credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.credits div { border-top: 1px solid var(--faint); padding-top: 18px; }
.credits h4 { margin: 0 0 8px; font-weight: 400; color: var(--mute); }
.credits p { margin: 0; font-size: 19px; }
.memory { margin-top: 60px; color: var(--mute); }
.back { display: inline-flex; gap: 10px; margin-top: 60px; color: var(--accent); text-decoration: none; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { height: 210vh; }
  .about .copy, .beliefs { grid-column: 1 / -1; }
  .services { grid-column: 1 / -1; grid-row: auto; position: static; }
  .feature, .p-intro { grid-template-columns: 1fr; }
  .stills { grid-template-columns: 1fr 1fr; }
  .stills figure:first-child { grid-column: 1 / -1; }
  .next { grid-template-columns: 1fr; }
  .team .people { grid-template-columns: 1fr; }
  .person + .person { padding-left: 0; border-left: 0; }
  .credits { grid-template-columns: 1fr; }
  .p-stills { grid-template-columns: 1fr 1fr; }
  .p-stills figure { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 16 / 9 !important; }
  .p-stills figure:nth-child(1) { grid-column: 1 / -1 !important; }
  .nav ul { gap: 14px; }
}

/* ---------- round 2 fixes ---------- */
.hero-ui { position: absolute; inset: 0; pointer-events: none; opacity: var(--fade, 1); }
.nav { mix-blend-mode: normal; color: var(--cream); transition: color .4s ease, background .4s ease; }
.nav .mark i { background: currentColor; }
.nav.on-hero { color: var(--ink); }
.nav.solid { background: rgba(12,10,7,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--faint); }
.stills figure, .p-stills figure { aspect-ratio: 2.39 / 1; }
@media (max-width: 520px) {
  .nav { padding: 14px 16px; }
  .nav ul { gap: 12px; }
  .nav ul a { font-size: 10.5px; letter-spacing: .08em; }
  .hero .tagline { font-size: 10.5px; padding: 0 16px; }
}

/* phase 2 needs the long pinned scroll; reduced motion skips it */
@media (prefers-reduced-motion: reduce) { .hero { height: 100vh; } }
/* the flood drains into the band in the shader (uDrain), so the band needs no extra fill */

/* showreel slot (Jean 12-04: no reel yet, just "coming soon") */
.reel { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); margin: 0 0 clamp(48px, 6vw, 88px);
  padding: clamp(22px, 3.2vw, 44px) clamp(22px, 3.2vw, 44px); border: 1px solid var(--faint); background: var(--ink-2); }
.reel .play { flex: none; width: clamp(48px, 6vw, 76px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--honey); position: relative; }
.reel .play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-left: 14px solid var(--honey); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.reel h3 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 72px); line-height: .95; letter-spacing: .01em; margin: 0; }
.reel p { margin: 6px 0 0; color: var(--honey); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }
