/* ============================================================
   NIK — cinematic zine portfolio
   palette: cream / ink / crimson / cobalt / pale yellow
   ============================================================ */
:root {
  --cream: #f1efe6;
  --ink: #16150f;
  --red: #c1121f;
  --red-deep: #8f0d16;
  --blue: #2727e6;
  --yellow: #f4f7a1;
  --mono: "Space Mono", monospace;
  --display: "Anton", sans-serif;
  --body: "Space Grotesk", sans-serif;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
  cursor: none;
}
@media (pointer: coarse) { body { cursor: auto; } }

::selection { background: var(--red); color: var(--cream); }

.mono { font-family: var(--mono); }
.italic { font-family: var(--body); font-style: italic; font-weight: 500; letter-spacing: -0.02em; }
.dot { color: var(--red); }
.accent-dot { color: var(--red); }
.stroke-blue {
  color: transparent;
  -webkit-text-stroke: 2px var(--blue);
}

/* ============ FILM GRAIN ============ */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 500;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
  animation: grainShift 0.6s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ============ CUSTOM CURSOR ============ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 700;
  width: 14px;
  height: 14px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
}
.cursor span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--cream);
  opacity: 0;
  transition: opacity 0.2s;
  text-transform: uppercase;
}
.cursor.big { width: 74px; height: 74px; background: var(--blue); }
.cursor.big span { opacity: 1; }
.cursor.hide, .cursor.idle { opacity: 0; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4vw;
}
.nav-logo img {
  height: 46px;
  display: block;
  background: #fff;
  border: 2px solid var(--ink);
  padding: 6px 12px;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 var(--red);
}
.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: lowercase;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--cream);
  background: var(--ink);
  padding: 12px 22px;
  border: 2px solid var(--ink);
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--red); border-color: var(--red); }

/* ============ SHAPES ============ */
.spike { position: absolute; pointer-events: none; overflow: visible; }
svg.spike { overflow: visible; }

.spike-1 { width: 130px; top: 14%; right: 16%; animation: spinSlow 22s linear infinite; }
.spike-2 { width: 74px; top: 60%; left: 6%; animation: spinSlow 30s linear infinite reverse; }
.spike-3 { width: 54px; top: 22%; left: 12%; animation: spinSlow 26s linear infinite; }
.spike-4 { width: 100px; top: -30px; right: 8%; opacity: 0.9; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 4vw 40px;
  overflow: hidden;
}
#hero3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-kicker, .hero-title, .hero-bottom { position: relative; z-index: 2; }
.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: lowercase;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  display: inline-flex;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-1.5deg);
  margin-bottom: 30px;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(3.4rem, 12.5vw, 12rem);
  line-height: 0.94;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  font-weight: 400;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; will-change: transform; }
.hero-title .italic {
  font-family: var(--body);
  font-style: italic;
  font-weight: 500;
  font-size: 0.92em;
  color: var(--red);
}
.hero-bottom {
  margin-top: auto;
  padding-top: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.hero-note {
  font-size: 0.72rem;
  line-height: 1.9;
  letter-spacing: 1px;
  color: var(--ink);
  opacity: 0.75;
  text-transform: lowercase;
}

/* rotating showreel badge */
.reel-badge {
  position: relative;
  width: 128px;
  height: 128px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.badge-text {
  position: absolute;
  inset: 0;
  animation: spinSlow 12s linear infinite;
}
.badge-text text {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.5px;
  fill: var(--ink);
  text-transform: uppercase;
}
.badge-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform 0.3s, background 0.3s;
}
.reel-badge:hover .badge-play { transform: scale(1.18) rotate(8deg); background: var(--blue); }

/* collage props */
.lens {
  position: absolute;
  top: 16%;
  right: 7%;
  width: clamp(140px, 17vw, 240px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
}
.lens-ring {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: conic-gradient(#d9d6cc, #8f8d85, #e6e3d8, #7c7a72, #d9d6cc);
  padding: 9%;
  box-shadow: 0 30px 60px rgba(22, 21, 15, 0.35);
  transform: rotate(-10deg);
}
.lens-glass {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a5a8a 0%, #141b33 45%, #05060d 100%);
  position: relative;
  overflow: hidden;
  border: 4px solid #1a1a1a;
}
.lens-flare {
  position: absolute;
  top: 14%; left: 16%;
  width: 34%; height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 247, 161, 0.9), rgba(244, 247, 161, 0) 70%);
  filter: blur(2px);
}
.lens::after {
  content: "HELIOS 44-2 ✦ 58MM";
  position: absolute;
  bottom: -1.4em;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--ink);
  white-space: nowrap;
}
.mic {
  position: absolute;
  bottom: 12%;
  right: 26%;
  width: clamp(60px, 6vw, 96px);
  z-index: 0;
  pointer-events: none;
  transform: rotate(14deg);
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--red);
  color: var(--cream);
  overflow: hidden;
  padding: 16px 0;
  transform: rotate(-1.2deg) scale(1.02);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: lowercase;
  letter-spacing: 1px;
  animation: marquee 22s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: 130px 4vw; }
#work { padding-top: 110px; }
.section-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  text-transform: lowercase;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 70px;
}
.section-title .tag {
  font-size: 0.9rem;
  vertical-align: super;
  background: var(--ink);
  color: var(--cream);
  padding: 4px 10px;
  margin-right: 14px;
  display: inline-block;
  transform: rotate(-3deg);
}
.section-title .italic { font-size: 0.9em; color: var(--red); }

/* ============ FEATURED VIDEO CARDS ============ */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start; /* each card keeps its video's natural height */
}
.feat-wide { grid-column: 1 / -1; }
.feat-card {
  display: block;
  position: relative;
  z-index: 501; /* above the grain overlay: video stays clean */
  text-decoration: none;
  color: var(--ink);
  border: 3px solid var(--ink);
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--yellow);
  transition: box-shadow 0.3s;
}
.feat-card:hover {
  box-shadow: 18px 18px 0 var(--blue);
}
.feat-card video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}
.feat-fallback {
  display: none;
  aspect-ratio: 16 / 9;
}
.feat-card.broken .feat-fallback { display: flex; }
.feat-fallback { display: none; }
.feat-card.broken video { display: none; }
.feat-card.broken .feat-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 2px;
  aspect-ratio: 16 / 9;
}
.feat-fallback.g1 { background: linear-gradient(135deg, #2727e6, #c1121f); }
.feat-fallback.g2 { background: linear-gradient(135deg, #f4f7a1, #2727e6); }
.feat-fallback.g3 { background: linear-gradient(135deg, #16150f, #8f0d16); }
.feat-fallback.g4 { background: linear-gradient(135deg, #2727e6, #f4f7a1); }
.feat-meta {
  background: var(--cream);
  border-top: 3px solid var(--ink);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.feat-meta h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  text-transform: lowercase;
}
.feat-card:hover .feat-meta h3 { color: var(--red); }
.feat-meta p { font-size: 0.72rem; letter-spacing: 1px; opacity: 0.7; white-space: nowrap; }

/* ============ SHOWREEL (red band) ============ */
.reel {
  background: var(--red-deep);
  color: var(--cream);
  padding: 130px 4vw;
  position: relative;
  overflow: hidden;
}
.reel .tag { background: var(--cream); color: var(--red-deep); }
.reel .dot { color: var(--yellow); }
.reel .italic { color: var(--yellow); }
.spike-reel-1 { width: 90px; top: 40px; right: 10%; animation: spinSlow 24s linear infinite; }
.reel-player {
  position: relative;
  z-index: 501;
  display: block;
  border: 3px solid rgba(241, 239, 230, 0.6);
  overflow: hidden;
  text-decoration: none;
  color: var(--cream);
  transition: border-color 0.3s;
}
.reel-player:hover { border-color: var(--yellow); }
.reel-player video {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
  background: #000;
}
.reel-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--red-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.3s;
  box-shadow: 0 0 0 14px rgba(241, 239, 230, 0.18);
}
.reel-player:hover .reel-btn { transform: translate(-50%, -50%) scale(1.12); background: var(--yellow); }
.reel-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 2px;
  background: rgba(22, 21, 15, 0.75);
  padding: 10px 20px;
  white-space: nowrap;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about-photo-wrap { position: relative; }
.about-photo {
  aspect-ratio: 4 / 5;
  border: 3px solid var(--ink);
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--yellow);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sticker {
  position: absolute;
  font-family: var(--display);
  text-transform: lowercase;
  line-height: 1;
  padding: 12px 16px;
  border: 2px solid var(--ink);
}
.sticker-1 {
  top: -22px; right: -20px;
  background: var(--red);
  color: var(--cream);
  font-size: 1.3rem;
  transform: rotate(8deg);
  text-align: center;
}
.sticker-2 {
  bottom: -16px; left: -24px;
  background: var(--cream);
  font-size: 0.75rem;
  transform: rotate(-6deg);
}
.about-lead {
  font-family: var(--body);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  margin-bottom: 34px;
}
.hl-red {
  background: var(--red);
  color: var(--cream);
  padding: 0 10px;
  font-style: normal;
}
.about-body {
  color: #3c3a30;
  line-height: 1.85;
  margin-bottom: 20px;
  max-width: 58ch;
  font-size: 1.02rem;
}
.about-stats {
  list-style: none;
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 44px;
  flex-wrap: wrap;
}
.about-stats li {
  border-left: 3px solid var(--ink);
  padding-left: 16px;
}
.about-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--blue);
  font-weight: 400;
}
.about-stats span { font-size: 0.72rem; letter-spacing: 1px; text-transform: lowercase; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 140px 4vw 40px;
  position: relative;
  overflow: hidden;
}
.footer .dot { color: var(--yellow); }
.footer .italic { color: var(--red); }
.footer-kicker { font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 24px; opacity: 0.7; }
.footer-logo {
  height: 64px;
  background: var(--cream);
  padding: 12px 20px;
  display: inline-block;
  margin-bottom: 50px;
  transform: rotate(-2deg);
}
.footer-title {
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: 0.95;
  text-transform: lowercase;
  color: var(--cream);
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s;
}
.footer-title:hover { color: var(--yellow); }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid rgba(241, 239, 230, 0.2);
}
.footer-mail { color: var(--cream); text-decoration: none; font-size: 0.9rem; letter-spacing: 1px; }
.footer-mail:hover { color: var(--yellow); }
.socials { display: flex; gap: 26px; flex-wrap: wrap; }
.socials a {
  color: rgba(241, 239, 230, 0.7);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: lowercase;
  transition: color 0.2s;
}
.socials a:hover { color: var(--red); }
.copyright { margin-top: 40px; font-size: 0.68rem; letter-spacing: 1px; opacity: 0.45; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 650;
  background: rgba(22, 21, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-frame {
  width: min(1100px, 90vw);
  aspect-ratio: 16 / 9;
  position: relative;
}
.lightbox-frame iframe {
  width: 100%; height: 100%;
  border: 3px solid var(--cream);
  background: #000;
  display: none;
}
.lightbox-frame iframe.has-src { display: block; }
.lightbox-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  padding: 20px;
  border: 3px dashed rgba(241, 239, 230, 0.4);
}
.lightbox-frame iframe.has-src + .lightbox-hint { display: none; }
#lightboxLocal {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: none;
}
#lightboxLocal.has-src { display: block; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--red);
  border: 0;
  color: var(--cream);
  width: 48px; height: 48px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.lightbox-close:hover { transform: rotate(90deg); background: var(--blue); }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { padding-top: 110px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 36px; }
  .lens, .mic, .spike-1 { display: none; }
  .spike-2, .spike-3 { width: 44px; }
  .feat-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-logo { height: 48px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 380px; }
  .section { padding: 90px 6vw; }
  .reel { padding: 90px 6vw; }
}
