/* =========================================================
   Base
   ========================================================= */
:root {
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --bg: #06060a;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.font-display {
  font-family: 'Bebas Neue', 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* =========================================================
   Top navigation
   ========================================================= */
.nav-link {
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(229, 229, 229, 0.85);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #d4d4d4;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.nav-icon:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: translateY(-1px); }
header#nav.shrunk #nav-inner {
  background: rgba(6, 6, 10, 0.65);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   HERO — cinematic split layout with parallax backdrop
   ========================================================= */
.hero { background: #050509; }
.hero-bg { transform: scale(1.08); }
.hero-bg__img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 35%;
  filter: blur(28px) saturate(120%) brightness(0.55);
}
@media (max-width: 1024px) {
  .hero-bg__img { filter: blur(22px) saturate(120%) brightness(0.5); }
}

/* Portrait card */
.hero-portrait {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: #0a0a0c;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(244, 63, 94, 0.18);
  transform: translateZ(0);
}
.hero-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(244, 63, 94, 0.55), rgba(255, 255, 255, 0.18) 35%, rgba(255, 255, 255, 0) 60%, rgba(244, 63, 94, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-portrait picture, .hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-portrait img {
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(112%) contrast(106%);
}
.hero-portrait__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hero-portrait__tag,
.hero-portrait__loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-portrait__tag iconify-icon { color: var(--rose-400); }
@media (max-width: 1024px) {
  .hero-portrait { max-width: 420px; aspect-ratio: 3 / 4; }
}
/* Vignette */
.vignette {
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
}
/* Film grain — inline SVG noise */
.grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}
.scroll-cue {
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}

/* =========================================================
   CTAs
   ========================================================= */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.cta--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  box-shadow: 0 14px 40px rgba(244, 63, 94, 0.4);
}
.cta--primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #fb586f, #ec1f4f);
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.55);
}
.cta--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cta--ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee { overflow: hidden; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__group {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 14px 16px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.18em;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__group > span:nth-child(odd):not(:nth-child(2n))::before {
  content: '';
}
.marquee__group > span:nth-child(odd) {
  color: rgba(255, 255, 255, 0.92);
}
.marquee__group > span:nth-child(2n) { /* dot separators */
  color: var(--rose-500);
  font-size: 18px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* =========================================================
   Section labels (kicker)
   ========================================================= */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11px;
  color: var(--rose-400);
}
.kicker::before {
  content: '';
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--rose-400), transparent);
}

/* =========================================================
   Stats
   ========================================================= */
.stat {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.stat dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
}
.stat dd {
  margin-top: 4px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  font-size: 28px;
  color: #fff;
  line-height: 1;
}

/* =========================================================
   Link buttons (Komi-style refined)
   ========================================================= */
.link-btn {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  column-gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}
.link-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(244, 63, 94, 0.0), rgba(244, 63, 94, 0.35), rgba(244, 63, 94, 0.0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.link-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }
.link-btn:hover::after { opacity: 1; }
.link-btn__label { font-size: 15px; line-height: 1.1; }
.link-btn__sub { grid-column: 2 / 3; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.55); margin-top: 3px; }
.link-btn__chev { grid-row: 1 / span 2; grid-column: 3 / 4; color: rgba(255, 255, 255, 0.55); transition: transform 0.18s ease, color 0.2s ease; }
.link-btn:hover .link-btn__chev { color: #fff; transform: translate(2px, -2px); }
.link-btn iconify-icon:first-of-type { grid-row: 1 / span 2; grid-column: 1 / 2; }
.link-btn--primary {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.95), rgba(225, 29, 72, 0.95));
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 14px 40px rgba(244, 63, 94, 0.35);
}
.link-btn--primary .link-btn__sub,
.link-btn--primary .link-btn__chev { color: rgba(255, 255, 255, 0.85); }
.link-btn--primary:hover {
  background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
  box-shadow: 0 22px 56px rgba(244, 63, 94, 0.55);
}

/* =========================================================
   Video cards
   ========================================================= */
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  outline: none;
}
.card:hover, .card:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(244, 63, 94, 0.18);
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0c;
  overflow: hidden;
}
.thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.card:hover .thumb img { transform: scale(1.05); }
.thumb .play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover .thumb .play { opacity: 1; }
.play .icon {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 14px 36px rgba(244, 63, 94, 0.55);
}
.play .icon svg { width: 22px; height: 22px; transform: translateX(2px); }
.meta { padding: 12px 14px 14px; }
.meta .title {
  font-size: 14px; font-weight: 600; line-height: 1.3; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta .info { margin-top: 5px; font-size: 11px; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.02em; }

/* Selection accent */
::selection { background: var(--rose-500); color: #fff; }
