/* ── tokens ─────────────────────────────────────────────────────────── */

:root {
  --bg:         #12131c;
  --bg-soft:    #171923;
  --panel:      rgba(30, 33, 48, 0.72);
  --panel-hi:   rgba(40, 44, 64, 0.85);
  --border:     rgba(255, 255, 255, 0.09);
  --border-hi:  rgba(255, 255, 255, 0.18);
  --text:       #f4efe6;
  --muted:      #a9a4b8;

  --orange: #ff9a00;
  --green:  #b6f000;
  --blue:   #3aa0ff;
  --purple: #e972fb;
  --red:    #ff6f63;

  --accent: var(--orange);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --maxw: 68rem;

  --ease: cubic-bezier(.22, .68, .3, 1);
}

/* The design is dark by nature; light mode lifts the ground without
   inverting the accent identity. */
@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f5f2ec;
    --bg-soft:   #ffffff;
    --panel:     rgba(255, 255, 255, 0.82);
    --panel-hi:  #ffffff;
    --border:    rgba(23, 25, 35, 0.10);
    --border-hi: rgba(23, 25, 35, 0.20);
    --text:      #171923;
    --muted:     #5c5a68;
    --orange:    #c2650a;
    --green:     #5d8000;
    --blue:      #0a6ec4;
    --purple:    #a234b5;
    --red:       #cf3f33;
    --shadow:    0 20px 46px rgba(23, 25, 35, 0.12);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: inherit; }

/* ── ambient background ─────────────────────────────────────────────── */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 154, 0, .10), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 40%);
}

/* Faint grid so the dark ground has texture instead of reading as flat black. */
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .5;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: drift 22s var(--ease) infinite alternate;
}

.blob-a { width: 40vw; height: 40vw; top: -12vw; left: -6vw;  background: rgba(255,154,0,.30); }
.blob-b { width: 34vw; height: 34vw; top: 18vw;  right: -8vw; background: rgba(233,114,251,.22); animation-delay: -7s; }
.blob-c { width: 30vw; height: 30vw; top: 62vw;  left: 18vw;  background: rgba(58,160,255,.20); animation-delay: -13s; }

@media (prefers-color-scheme: light) {
  .blob { opacity: .28; }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 3vw, 0) scale(1.15); }
}

/* ── top bar ────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;          /* must not force the document wider than the viewport */
  gap: .5rem 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  transition: padding .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.topbar.is-stuck {
  padding-block: .55rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
}

.topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem clamp(.65rem, 2vw, 1.5rem);
  font-size: .925rem;
  min-width: 0;
}

.topnav a {
  text-decoration: none;
  color: var(--muted);
  padding: .35rem 0;
  position: relative;
  transition: color .2s var(--ease);
}

.topnav a:hover { color: var(--text); }

.topnav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--orange);
  transition: right .28s var(--ease);
}

.topnav a:not(.nav-cta):hover::after { right: 0; }

.nav-cta {
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  padding: .4rem .9rem !important;
  color: var(--text) !important;
}

.nav-cta:hover {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 14%, transparent);
}

/* Narrow screens: the brand mark carries identity, the nav stays usable. */
@media (max-width: 33rem) {
  .brand-name { display: none; }
  .topnav { font-size: .875rem; }
}

/* ── layout ─────────────────────────────────────────────────────────── */

main { display: block; }

.hero,
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 5vw, 2.5rem);
}

.hero { padding-top: clamp(3rem, 10vw, 6rem); }

/* ── hero ───────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.5rem;
  padding: .4rem .9rem .4rem .6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .01em;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 70%, transparent);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  margin: 0 0 1.4rem;
  font-size: clamp(2.4rem, 7.5vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 700;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--orange), var(--purple) 55%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 44rem;
  margin: 0 0 2rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), border-color .2s var(--ease);
}

.btn-primary {
  background: linear-gradient(100deg, var(--orange), #ff7a3d);
  color: #1a1206;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--orange) 30%, transparent);
}

.btn-ghost {
  border-color: var(--border-hi);
  background: var(--panel);
  color: var(--text);
}

.btn:hover { transform: translateY(-2px); }
.btn-ghost:hover { border-color: var(--orange); }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 5vw, 3rem);
  margin: 3rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.stat dt {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.stat dd {
  margin: .3rem 0 0;
  font-weight: 620;
  font-size: 1.02rem;
}

/* ── section headings ───────────────────────────────────────────────── */

.section-head { max-width: 46rem; margin-bottom: 2.6rem; }

.kicker {
  margin: 0 0 .8rem;
  font-size: .76rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--orange);
}

.section-head h2 {
  margin: 0 0 .9rem;
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 680;
}

.lede { margin: 0; color: var(--muted); }

/* ── cards ──────────────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
}

.card,
.panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(10px);
  padding: 1.6rem;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}

/* Accent hairline that fills in on hover. */
.card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: .55;
  transition: opacity .3s var(--ease);
}

.card:hover,
.panel:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow);
}

.card:hover::before,
.panel:hover::before { opacity: 1; }

.card-kicker {
  margin: 0 0 .5rem;
  font-size: .74rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
}

.card h3,
.panel h3 {
  margin: 0 0 .7rem;
  font-size: 1.16rem;
  letter-spacing: -.015em;
}

.card p:last-child,
.panel p { margin: 0; color: var(--muted); font-size: .96rem; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.panel-head { margin-bottom: .2rem; }

/* ── chips ──────────────────────────────────────────────────────────── */

.chips,
.stack-grid {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .75rem .38rem .45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-hi);
  font-size: .84rem;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ── timeline ───────────────────────────────────────────────────────── */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.6rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6rem;
  bottom: .6rem;
  width: 2px;
  background: linear-gradient(180deg, var(--border-hi), var(--border), transparent);
}

.tl-item {
  position: relative;
  padding: 0 0 2.2rem;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-marker {
  position: absolute;
  left: calc(-1.6rem - 5px);
  top: .45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.tl-body h3 {
  margin: 0 0 .4rem;
  font-size: 1.2rem;
  letter-spacing: -.015em;
}

.tl-summary {
  margin: 0 0 .8rem;
  color: var(--muted);
}

.tl-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .95rem;
}

.tl-list li { margin-bottom: .35rem; }
.tl-list li::marker { color: var(--accent); }

/* ── stack grid ─────────────────────────────────────────────────────── */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: .7rem;
}

.stack-grid li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  font-size: .88rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease);
}

.stack-grid li:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  background: var(--panel-hi);
}

.stack-grid img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ── off the clock (movies/tv picks) ────────────────────────────────── */

.pick-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.pick {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}

.pick:hover,
.pick:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  outline: none;
}

.pick-strip {
  display: flex;
  gap: 4px;
  padding: .8rem;
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 70%),
              color-mix(in oklab, var(--accent) 18%, var(--panel));
  min-height: 128px;
  overflow: hidden;
  align-items: stretch;
}

.pick-strip img {
  height: 108px;
  width: auto;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  transform: rotate(-1.5deg);
  transition: transform .3s var(--ease);
}

.pick-strip img:nth-child(even) { transform: rotate(1.5deg) translateY(-2px); }

.pick:hover .pick-strip img { transform: rotate(0) translateY(-4px); }

.pick-body { padding: 1.2rem 1.4rem 1.4rem; }

.pick-body h3 {
  margin: .2rem 0 .35rem;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}

.pick-body p {
  margin: 0 0 .8rem;
  color: var(--muted);
}

.pick-cta {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  font-size: .9rem;
}

/* ── contact ────────────────────────────────────────────────────────── */

.contact {
  text-align: center;
  max-width: 44rem;
}

.contact h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -.025em;
}

.contact .lede { margin-bottom: 1.8rem; }
.contact .hero-actions { justify-content: center; }

/* ── footer ─────────────────────────────────────────────────────────── */

.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 5vw, 2.5rem) 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: .875rem;
}

.site-footer p { margin: 0; }

/* ── reveal (progressive enhancement) ───────────────────────────────── */

/* Without JS, or with reduced motion, .reveal never gets hidden. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger siblings inside a grid so they cascade rather than pop together. */
.js-reveal .card-grid .reveal:nth-child(2),
.js-reveal .split .reveal:nth-child(2) { transition-delay: .08s; }
.js-reveal .card-grid .reveal:nth-child(3) { transition-delay: .16s; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── poster pages (movies / tv) ─────────────────────────────────────── */

.poster-hero {
  padding-top: 6rem;
  padding-bottom: 1.4rem;
}

.poster-title {
  margin: .3rem 0 .8rem;
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  letter-spacing: -.03em;
  line-height: 1;
}

.poster-count {
  display: inline-block;
  margin-left: .35rem;
  padding: .1rem .55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--muted);
  vertical-align: middle;
}

.poster-section { padding-top: 1rem; }

.poster-empty {
  color: var(--muted);
  text-align: center;
  padding: 3rem 1rem;
}

/* Movie wall — dense justified grid of xsmall thumbs (~75px wide). */
.poster-wall {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
}

.poster-tile {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
  aspect-ratio: 2 / 3;
}

.poster-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-tile:hover,
.poster-tile:focus-visible {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--border-hi);
  box-shadow: 0 12px 26px rgba(0,0,0,.42);
  outline: none;
  z-index: 2;
  position: relative;
}

/* TV shelf — one row per show. */
.tv-shelf {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tv-show {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.tv-show-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  margin: 0 0 .8rem;
  padding: 0 .2rem;
}

.tv-show-title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

.tv-show-meta {
  color: var(--muted);
  font-size: .82rem;
}

.tv-row {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: .3rem .2rem .5rem;
  scrollbar-width: thin;
}

.tv-row::-webkit-scrollbar { height: 6px; }
.tv-row::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }

.tv-season {
  flex: 0 0 auto;
  width: 96px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  scroll-snap-align: start;
  position: relative;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
  aspect-ratio: 2 / 3;
}

.tv-season img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-season:hover,
.tv-season:focus-visible {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--border-hi);
  outline: none;
  z-index: 2;
}

.tv-season-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .25rem .4rem;
  font-size: .68rem;
  font-weight: 600;
  color: #fff;
  text-align: right;
  letter-spacing: .04em;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

/* Lightbox. */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 14, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  padding: 2rem;
}

.lightbox.is-open { display: flex; }

.lightbox-figure {
  margin: 0;
  max-width: min(92vw, 900px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}

.lightbox-img {
  /* Source is only 150px wide; upscale so it's actually viewable.
     Keep the aspect ratio and cap by both width and viewport height. */
  width: min(88vw, 420px);
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

.lightbox-caption {
  color: var(--text);
  font-size: 1rem;
  text-align: center;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s var(--ease);
}

.lightbox-btn:hover { background: rgba(255,255,255,.18); }

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { display: none; }
}
