/* ============================================================
   UCH PRODUCTIONS — grimy/cinematic theme
   ============================================================ */

:root {
  --bg:        #0a0a0a;
  --bg-2:      #121110;
  --ink:       #f2f0e9;
  --ink-dim:   #8a8a82;
  --red:       #ff1e1e;   /* primary brand red */
  --red-dim:   #b51414;   /* darker red for hovers */
  --ember:     #7a0000;   /* near-black red for depth */
  --line:      #2a201f;
  --display:   'Anton', 'Archivo', sans-serif;
  --body:      'Archivo', system-ui, sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--red); }
.accent { color: var(--red); }

/* ---------- texture overlays ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.06; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-4%, 3%); }
}
.scanlines {
  position: fixed; inset: 0; z-index: 8999; pointer-events: none;
  opacity: 0.35;
  background: repeating-linear-gradient(
    to bottom, transparent 0 2px, rgba(0,0,0,0.25) 2px 3px);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
  mix-blend-mode: difference;
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  mix-blend-mode: normal;
}
.nav__logo { display: flex; align-items: baseline; gap: 2px; font-family: var(--display); letter-spacing: 1px; }
.nav__mark { font-size: 1.5rem; color: var(--ink); }
.nav__sub { font-family: var(--mono); font-size: 0.7rem; color: var(--red); letter-spacing: 2px; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.nav__links a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink); position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
  background: var(--red); transition: width 0.25s;
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--red); color: #000 !important; padding: 9px 16px;
  font-weight: 700; transition: transform 0.15s, box-shadow 0.2s;
}
.nav__cta:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 #000; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__burger span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; font-size: 0.82rem;
  padding: 14px 26px; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: 2px solid var(--red);
}
.btn--solid { background: var(--red); color: #000; }
.btn--solid:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 #000; }
.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red); color: #000; transform: translate(-3px,-3px); box-shadow: 6px 6px 0 #000; }
.btn--big { padding: 20px 40px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 120px clamp(20px, 5vw, 64px) 80px;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(255,30,30,0.14), transparent 55%),
    radial-gradient(80% 60% at -10% 110%, rgba(122,0,0,0.22), transparent 50%),
    var(--bg);
  overflow: hidden;
}
.hero__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04; pointer-events: none;
}
.hero__inner { position: relative; max-width: 1100px; }
.hero__kicker {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 3px;
  color: var(--ink-dim); text-transform: uppercase; margin-bottom: 28px;
}
.blink { color: var(--red); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 12vw, 11rem); line-height: 0.86;
  letter-spacing: -0.5px; text-transform: uppercase; margin-bottom: 32px;
}
.hero__title .line { display: block; }
.hero__title .line--accent { color: var(--red); }

.hero__lede {
  max-width: 540px; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--ink-dim);
  margin-bottom: 40px;
}
.hero__lede strong, .hero__lede b { color: var(--ink); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 3px; color: var(--ink-dim);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- glitch ---------- */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; clip-path: inset(0);
}
.glitch::before { color: var(--red); animation: glitch-a 2.6s infinite steps(2); }
.glitch::after  { color: #00e5ff;  animation: glitch-b 3.1s infinite steps(2); }
@keyframes glitch-a {
  0%,92%,100% { transform: translate(0,0); clip-path: inset(0 0 0 0); }
  93% { transform: translate(-3px,1px); clip-path: inset(20% 0 50% 0); }
  96% { transform: translate(3px,-1px); clip-path: inset(60% 0 10% 0); }
}
@keyframes glitch-b {
  0%,90%,100% { transform: translate(0,0); clip-path: inset(0 0 0 0); }
  91% { transform: translate(3px,-1px); clip-path: inset(10% 0 70% 0); }
  95% { transform: translate(-3px,2px); clip-path: inset(70% 0 5% 0); }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--red); color: #000; overflow: hidden; padding: 14px 0;
}
.marquee__track {
  display: flex; white-space: nowrap; width: max-content;
  animation: scroll 26s linear infinite;
}
.marquee__track span {
  font-family: var(--display); font-size: 1.6rem; letter-spacing: 1px; padding-right: 1ch;
  text-transform: uppercase;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.section-head { padding: clamp(60px,9vw,120px) clamp(20px,5vw,64px) 30px; }
.section-head__no {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 3px;
  color: var(--red); text-transform: uppercase; display: block; margin-bottom: 14px;
}
.section-head__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.4rem, 8vw, 6rem); line-height: 0.9; letter-spacing: -0.5px;
}

/* ---------- work grid ---------- */
.work__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding: 0 clamp(20px,5vw,64px);
}
.tile {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-2); aspect-ratio: 4/3; display: block;
}
.tile--lg { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.tile--wide { grid-column: span 2; }
.tile__media {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,30,30,0.05) 0 12px, transparent 12px 24px),
    radial-gradient(80% 80% at 50% 30%, #1b1b18, #0c0c0b);
  display: flex; align-items: flex-start; justify-content: flex-start;
  transition: transform 0.5s ease, filter 0.4s;
  filter: grayscale(1) contrast(1.1);
}
.tile__media::before {
  content: attr(data-cat); font-family: var(--display); font-size: clamp(1.4rem,3vw,2.8rem);
  color: rgba(242,240,233,0.07); padding: 20px; line-height: 0.9; text-transform: uppercase;
}
.tile:hover .tile__media { transform: scale(1.06); filter: grayscale(0) contrast(1); }
.tile__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; font-family: var(--mono); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 1px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  transform: translateY(4px); transition: transform 0.3s;
}
.tile:hover .tile__meta { transform: translateY(0); }
.tile__tag { color: var(--red); }
.work__note {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim);
  padding: 24px clamp(20px,5vw,64px) 0;
}

/* ---------- services ---------- */
.services__list { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 24px;
  padding: clamp(24px,4vw,44px) clamp(20px,5vw,64px);
  border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background 0.3s, padding-left 0.3s; position: relative;
}
.svc::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--red); transition: width 0.3s;
}
.svc:hover, .svc:focus-visible {
  background: var(--bg-2); padding-left: calc(clamp(20px,5vw,64px) + 16px); outline: none;
}
.svc:hover::before, .svc:focus-visible::before { width: 6px; }
.svc__no { font-family: var(--mono); color: var(--red); font-size: 0.9rem; }
.svc__name {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.5px;
}
.svc__desc { grid-column: 2; max-width: 620px; color: var(--ink-dim); margin-top: 10px; }
.svc__arrow { font-size: 1.8rem; color: var(--ink-dim); transition: transform 0.3s, color 0.3s; }
.svc:hover .svc__arrow { transform: translate(6px,-6px); color: var(--red); }

/* ---------- about ---------- */
.about { padding: clamp(60px,9vw,130px) clamp(20px,5vw,64px); }
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px,6vw,90px); }
.about__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.4rem,7vw,5.5rem); line-height: 0.9; margin: 14px 0 30px;
}
.about__portrait {
  aspect-ratio: 3/4; border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(255,30,30,0.06) 0 14px, transparent 14px 28px),
    radial-gradient(70% 70% at 50% 30%, #1c1c19, #0b0b0a);
  display: flex; align-items: flex-end; padding: 22px;
  filter: grayscale(1) contrast(1.1);
}
.about__portrait span {
  font-family: var(--display); font-size: clamp(2rem,5vw,4rem);
  color: rgba(242,240,233,0.08); text-transform: uppercase;
}
.about__right { align-self: center; }
.about__lead { font-size: clamp(1.2rem,2.4vw,1.7rem); margin-bottom: 22px; line-height: 1.35; }
.about__right p { color: var(--ink-dim); margin-bottom: 18px; max-width: 560px; }
.about__stats { display: flex; gap: clamp(24px,5vw,60px); margin-top: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--display); font-size: clamp(2.2rem,5vw,3.4rem); color: var(--red); line-height: 1; }
.stat__label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 1px; color: var(--ink-dim); text-transform: uppercase; margin-top: 6px; }

/* ---------- contact ---------- */
.contact {
  position: relative; padding: clamp(80px,12vw,160px) clamp(20px,5vw,64px);
  text-align: center; overflow: hidden;
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(255,30,30,0.16), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact__inner { position: relative; max-width: 900px; margin: 0 auto; }
.contact__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem, 11vw, 9rem); line-height: 0.9; margin: 14px 0 24px;
}
.contact__lede { color: var(--ink-dim); font-size: clamp(1rem,2vw,1.25rem); max-width: 560px; margin: 0 auto 40px; }
.contact__actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.contact__socials {
  display: flex; gap: 30px; justify-content: center; margin-top: 46px;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase;
}
.contact__socials a { color: var(--ink-dim); transition: color 0.2s; }
.contact__socials a:hover { color: var(--red); }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 30px clamp(20px,5vw,64px); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 1px;
}
.footer__mark { font-family: var(--display); color: var(--ink); font-size: 1.1rem; letter-spacing: 1px; }
.footer__top { transition: color 0.2s; }
.footer__top:hover { color: var(--red); }

/* ---------- reveal anim ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
    background: #0c0c0b; padding: 40px; transform: translateX(100%);
    transition: transform 0.35s ease; border-left: 1px solid var(--line);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; }
  .nav__burger { display: flex; z-index: 1001; }
  .nav.open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { mix-blend-mode: normal; }

  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .tile--lg, .tile--wide { grid-column: span 2; }
  .tile--lg { aspect-ratio: 16/10; }

  .svc { grid-template-columns: 50px 1fr; gap: 14px; }
  .svc__arrow { display: none; }
  .svc__desc { grid-column: 1 / -1; }

  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
