/* ─────────────────────────────────────────────
   UJU PICTURES — base aesthetic
   Brand: cobalt #003ECF · red #CD2A0F · ink · paper
   ───────────────────────────────────────────── */

:root {
  --cobalt: #003ECF;
  --red:    #CD2A0F;
  --black:  #0B0B0B;
  --paper:  #F3F1EC;

  --bg:   var(--paper);
  --ink:  var(--black);
  --hot:  var(--red);
  --cool: var(--cobalt);
  --band: var(--red);
  --band-ink: var(--paper);

  --pad: clamp(16px, 2.2vw, 32px);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
[data-palette="ink"]    { --bg: var(--black);  --ink: var(--paper); --band: var(--red); --band-ink: var(--paper); }
[data-palette="cobalt"] { --bg: var(--cobalt); --ink: var(--paper); --hot: var(--red);  --cool: var(--black); --band: var(--red);   --band-ink: var(--paper); }
[data-palette="red"]    { --bg: var(--red);    --ink: var(--black); --hot: var(--paper); --cool: var(--cobalt); --band: var(--black); --band-ink: var(--red); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.defs { position: absolute; width: 0; height: 0; }

.mono { font-family: var(--mono); font-size: 11px; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; }
.dim  { opacity: .5; }
.display {
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .85;
}

/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  opacity: .22;
  mix-blend-mode: multiply;
  animation: grain .9s steps(4) infinite;
}
[data-palette="ink"] body::after, [data-palette="cobalt"] body::after { mix-blend-mode: screen; opacity: .12; filter: invert(1); }
@keyframes grain {
  0% { transform: translate(0,0) } 25% { transform: translate(-3%,2%) }
  50% { transform: translate(2%,-4%) } 75% { transform: translate(-1%,3%) } 100% { transform: translate(0,0) }
}

/* ── cursor ── */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
}
.cursor__label { font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #000; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-big { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.cursor.is-big .cursor__label { opacity: 1; }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } }
@media (hover: none) { .cursor { display: none; } }

/* ── header ── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--pad);
  color: var(--ink);
  transition: color .6s var(--ease);
}
.top__logo { width: 64px; display: block; }
.top__logo svg { width: 100%; height: auto; display: block; }
.top__nav { display: flex; gap: clamp(14px, 2.4vw, 36px); align-items: center; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.top__nav a { position: relative; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.top__nav a:hover::after { right: 0; }
.swatch { display: grid; grid-template-columns: 1fr 1fr; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; transition: transform .6s var(--ease); }
.swatch:hover { transform: rotate(180deg); }
.swatch { box-shadow: 0 0 0 1px currentColor; }
.swatch i:nth-child(1) { background: var(--paper); }
.swatch i:nth-child(2) { background: var(--cobalt); }
.swatch i:nth-child(3) { background: var(--red); }
.swatch i:nth-child(4) { background: var(--black); }

/* ── hero ── */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: grid; place-items: center;
  padding: var(--pad);
}
.hero__mark { width: min(80vw, 1400px); filter: url(#liquid); color: var(--ink); }
.hero__mark svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero__mark .stripe { transition: fill .6s; }
.hero__mark .stripe.is-hot { fill: var(--hot); }
.hero__mark .stripe.is-cool { fill: var(--cool); }
.hero__mark .letters { transform-box: fill-box; }

.hero__corner { position: absolute; max-width: 44ch; }
.hero__corner--tl { top: calc(var(--pad) + 52px); left: var(--pad); }
.hero__corner--bl { bottom: var(--pad); left: var(--pad); }
.hero__corner--br { bottom: var(--pad); right: var(--pad); text-align: right; }
.clock { font-variant-numeric: tabular-nums; }

.hero__badge {
  position: absolute; right: 9vw; top: 18vh;
  width: clamp(96px, 11vw, 150px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--hot); color: var(--bg); border-radius: 50%;
  transform: rotate(-12deg);
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.hero__badge text { font: 500 23px var(--mono); fill: currentColor; }
.hero__badge span { font-size: clamp(18px, 2vw, 28px); transform: translateX(2px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── marquee ── */
.marquee { background: var(--band); height: clamp(36px, 5vw, 72px); border-block: 1px solid var(--ink); }
.marquee__track {
  display: flex; gap: .45em; width: max-content; align-items: center;
  font-weight: 800; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(36px, 7vw, 104px); line-height: 1; letter-spacing: -.02em;
  animation: marquee 30s linear infinite;
}
.marquee__track b { font-weight: 400; font-size: .6em; }
.marquee__track span:nth-of-type(even) { font-stretch: 62%; font-style: italic; font-weight: 300; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── sections ── */
section { padding: clamp(80px, 12vw, 180px) var(--pad); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 90px); }
.section-head h2 { font-size: clamp(64px, 16vw, 260px); }
.section-head sup { font: 500 .12em var(--mono); vertical-align: top; margin-left: .3em; letter-spacing: 0; }

/* ── work grid: deliberately uneven, poster-wall ── */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--pad); row-gap: clamp(48px, 8vw, 120px); align-items: start; }
.t1 { grid-column: 1 / span 7; }
.t2 { grid-column: 9 / span 4; margin-top: 18vw; }
.t3 { grid-column: 2 / span 4; }
.t4 { grid-column: 7 / span 6; margin-top: 6vw; }
.t5 { grid-column: 1 / span 5; margin-top: 4vw; }
.t1 .tile__media, .t4 .tile__media { aspect-ratio: 16 / 9; }
.t2 .tile__media, .t3 .tile__media { aspect-ratio: 4 / 5; }
.t5 .tile__media { aspect-ratio: 1; }

.tile { display: block; }
.tile__media { position: relative; overflow: hidden; background: var(--ink); container-type: inline-size; }
.tile__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.tile:hover .tile__media > * { transform: scale(1.06); filter: url(#liquid); }
.tile__meta { display: grid; grid-template-columns: 3ch 1fr auto auto; gap: 2ch; padding-top: 10px; border-top: 1px solid currentColor; margin-top: 10px; }
.tile__meta span:nth-child(2) { font-weight: 500; }

/* placeholder art — swap for real stills */
.art-stripes { background: repeating-linear-gradient(180deg, var(--cobalt) 0 14px, var(--paper) 14px 22px); }
.art-blob { background:
  radial-gradient(40% 35% at 30% 35%, var(--red), transparent 70%),
  radial-gradient(45% 40% at 70% 70%, var(--cobalt), transparent 70%),
  radial-gradient(30% 30% at 75% 20%, #f4c13a, transparent 70%),
  var(--black); filter: blur(0); }
.art-type { background: var(--red); color: var(--black); display: grid; place-items: center; }
.art-type span { font-weight: 900; font-stretch: 62%; font-size: 52cqw; line-height: .8; letter-spacing: -.04em; }
.art-scan { background:
  linear-gradient(90deg, transparent 0 48%, var(--red) 48% 52%, transparent 52%),
  repeating-linear-gradient(0deg, #1a1a1a 0 2px, #0b0b0b 2px 5px); }
.art-mark { background: var(--cobalt); color: var(--red); display: grid !important; place-items: center; padding: 18%; }
.art-mark svg { width: 100%; height: auto; }

/* ── about ── */
.about { border-top: 1px solid var(--ink); }
.statement {
  font-weight: 500; font-stretch: 112%;
  font-size: clamp(32px, 5.6vw, 92px); line-height: 1.02; letter-spacing: -.025em;
  max-width: 18ch;
}
.statement em { font-style: italic; font-stretch: 62%; font-weight: 300; }
.statement .hot  { color: var(--hot); }
.statement .cool { color: var(--cool); }
.inline-mark { display: inline-block; width: 2.2em; vertical-align: -.05em; color: var(--hot); }
.inline-mark svg { width: 100%; height: auto; display: block; }
/* the meaning of UJU */
.about__body .cool { color: var(--cool); }
[data-palette="cobalt"] .about__body .cool { color: var(--paper); text-decoration: underline; text-underline-offset: .15em; }

.about__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); margin-top: clamp(60px, 9vw, 140px); max-width: 900px; margin-left: auto; }
.about__cols h3 { font: inherit; opacity: .5; margin-bottom: 1em; }

/* ── contact ── */
.contact { background: var(--black); color: var(--paper); min-height: 80vh; display: flex; flex-direction: column; justify-content: space-between; }
.contact__mail { font-size: clamp(30px, 8.2vw, 200px); display: inline-block; font-stretch: 100%; overflow-wrap: anywhere; transition: color .3s, font-stretch .5s var(--ease); }
.contact__mail:hover { color: var(--red); font-stretch: 62%; }
[data-palette="ink"] .contact { border-top: 1px solid var(--paper); }
.contact > .mono { color: var(--red); opacity: 1; }

/* about: centred title card */
.about { padding-block: clamp(110px, 16vw, 240px); }
.about__intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(18px, 2.2vw, 30px); }
.about__mark { width: clamp(90px, 9vw, 150px); color: var(--hot); }
.about__mark svg { width: 100%; height: auto; display: block; }
.about__label { color: var(--hot); letter-spacing: .3em; }
.about__body {
  width: min(100%, 980px);
  font-weight: 400; line-height: 1.02; letter-spacing: -.015em;
}
.credits .line { display: block; width: max-content; margin-inline: auto; white-space: nowrap; }
.credits .line + .line { margin-top: .08em; }
.credits em { font-size: 1em; font-style: italic; font-stretch: inherit; font-weight: inherit; }


/* ── footer ── */
.foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: var(--pad); padding-top: 60px; flex-wrap: wrap; }
.foot__logo { width: clamp(80px, 11vw, 160px); }
.foot__logo svg { width: 100%; height: auto; display: block; }
.foot__links { display: flex; gap: 24px; }
.foot__links a, .foot__links span { color: var(--hot); }
.foot__links .dim, .hero__corner .dim { opacity: 1; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── header category bar (Shorts / Features / TV / Press) ── */
.icons { display: flex; gap: clamp(14px, 2.4vw, 36px); }
.icon { color: var(--hot); transition: color .3s; }
.icon.is-on::after { right: 0 !important; }

/* ── work filters ── */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1px solid currentColor; border-radius: 999px; padding: 7px 14px; font: inherit; letter-spacing: inherit; text-transform: inherit; transition: background .25s, color .25s; }
.filters button:hover { background: var(--ink); color: var(--bg); }
.filters button.is-on { background: var(--hot); border-color: var(--hot); color: var(--bg); }
.tile.is-hidden { display: none; }
.tile.is-in { animation: tileIn .7s var(--ease) both; }
@keyframes tileIn { from { opacity: 0; transform: translateY(30px); } }

/* ── coming soon (replaces the work grid until there are projects) ── */
.soon__title { font-size: clamp(64px, 17vw, 300px); display: flex; flex-direction: column; }
.soon__line { display: flex; align-items: center; gap: .12em; align-self: flex-end; }
.soon__mark { display: inline-block; width: 1.5em; color: var(--hot); }
.soon__mark svg { width: 100%; height: auto; display: block; }
.soon__note { max-width: 32ch; margin-top: clamp(28px, 4vw, 64px); font-size: clamp(18px, 1.9vw, 28px); line-height: 1.25; font-stretch: 100%; }
.soon__list { list-style: none; margin-top: clamp(48px, 7vw, 110px); border-top: 1px solid var(--ink); }
.soon__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--pad);
  padding: clamp(14px, 2vw, 26px) 0; border-bottom: 1px solid var(--ink);
  transition: color .3s, padding .4s var(--ease);
}
.soon__cat { font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: clamp(28px, 5vw, 80px); line-height: 1; letter-spacing: -.02em; }
.soon__list li:hover, .soon__list li.is-on { color: var(--hot); padding-left: var(--pad); }
.soon__list li:hover .soon__cat, .soon__list li.is-on .soon__cat { font-stretch: 62%; font-style: italic; font-weight: 300; }

/* ── press ── */
.press__empty { font-size: clamp(18px, 1.9vw, 28px); line-height: 1.25; padding-top: clamp(18px, 2.4vw, 32px); border-top: 1px solid var(--ink); }
.press { border-top: 1px solid var(--ink); }
.press__list { list-style: none; border-top: 1px solid var(--ink); }
.press__list li { border-bottom: 1px solid var(--ink); }
.press__list a {
  display: grid; grid-template-columns: 8ch 16ch 1fr auto; gap: var(--pad); align-items: baseline;
  padding: clamp(18px, 2.4vw, 32px) 0;
  transition: background .3s, color .3s, padding .4s var(--ease);
}
.press__pub { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.press__head { font-weight: 500; font-stretch: 112%; font-size: clamp(20px, 2.6vw, 40px); letter-spacing: -.02em; line-height: 1.05; }
.press__arrow { font-size: clamp(20px, 2.6vw, 40px); transition: transform .4s var(--ease); }
.press__list a:hover { background: var(--ink); color: var(--bg); padding-inline: var(--pad); }
.press__list a:hover .press__arrow { transform: rotate(45deg); }
.press__list a:hover .press__head { font-stretch: 62%; font-style: italic; }

/* ── responsive ── */
@media (max-width: 900px) {
  .icons { gap: 14px; }
  .top__nav .txt { display: none; }
  .icons { border-right: 0; padding-right: 0; margin-right: 0; }
}
@media (max-width: 760px) {
  .press__list a { grid-template-columns: 1fr auto; row-gap: 6px; }
  .press__list a .mono { display: none; }
  .press__pub { grid-column: 1; }
  .press__head { grid-column: 1; }
  .press__arrow { grid-row: 1 / span 2; grid-column: 2; }
  .grid { grid-template-columns: 1fr; }
  .grid .tile { grid-column: 1 !important; margin-top: 0 !important; }
  .tile__meta { grid-template-columns: 3ch 1fr auto; }
  .tile__meta span:last-child { display: none; }
  .about__cols { grid-template-columns: 1fr 1fr; }
  .hero__badge { top: auto; bottom: 18vh; right: var(--pad); }
  .hero__corner--tl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* all small type on the opening screen in red (paper in the red palette) */
.hero__corner, .top__nav { color: var(--hot); }
.swatch { box-shadow: 0 0 0 1px var(--hot); }
.icons { border-right-color: var(--hot); }


/* top bar over the black contact section → paper so the logo + links stay visible (category links keep red) */
.top.on-red .top__logo { color: var(--paper); }   /* only the logo flips; red links stay red on black */

/* rolling credits (About) */
.roll {
  --rollgap: clamp(60px, 8vw, 140px);
  width: min(100%, 980px); height: clamp(240px, 28vw, 420px); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent);
          mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent);
}
.roll .about__body { width: 100%; }
.roll__track { display: flex; flex-direction: column; gap: var(--rollgap); animation: roll 20s linear infinite; }
.roll:hover .roll__track { animation-play-state: paused; }
@keyframes roll { to { transform: translateY(calc(-50% - var(--rollgap) / 2)); } }

/* About is black & white with red as the only accent */
.about .about__body { color: var(--ink); }
.about .about__body .cool { color: var(--hot); }
