/* Grytt Picture Shows — design system
   Dark cinematic. Marcellus for display, Inter for body. Gold accent. */

:root {
  --bg: #0b0b0e;
  --surface: #141318;
  --surface-2: #1c1a21;
  --line: #2a2730;
  --text: #ece9e2;
  --muted: #a09a90;
  --accent: #c9a050;
  --accent-dim: #8f7338;
  --danger: #8e2f2f;
  --max: 1200px;
  --radius: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------- Modern scrollbars (slim, rounded, themed) ---------- */
html { scrollbar-width: thin; scrollbar-color: #34303d transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #34303d; border-radius: 999px;
  border: 2px solid rgba(11, 11, 14, 0.6); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
.modal { scrollbar-width: thin; scrollbar-color: #34303d transparent; }
.thumb-rail { scrollbar-width: thin; scrollbar-color: #34303d transparent; }
.thumb-rail::-webkit-scrollbar { height: 6px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Marcellus", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #e0bc6e; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 14, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: "Marcellus", serif;
  font-size: 1.15rem; letter-spacing: 0.28em;
  color: var(--text); text-transform: uppercase;
  white-space: nowrap;
}
.brand b { color: var(--accent); font-weight: 400; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 0.85rem; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--text);
  font-size: 1.6rem; cursor: pointer; padding: 8px; line-height: 1;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(11, 11, 14, 0.98); border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; }
}

/* ---------- Hero (landing) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 78vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px 60px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(201, 160, 80, 0.08), transparent 65%),
    radial-gradient(ellipse 120% 80% at 50% 110%, rgba(20, 19, 24, 0.9), transparent),
    var(--bg);
}
.hero::after {  /* film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.hero-logo { position: relative; z-index: 1; }
.hero-logo video { width: min(560px, 86vw); margin: 0 auto; }
.wordmark {
  font-family: "Marcellus", serif;
  font-size: clamp(3rem, 11vw, 6.5rem);
  letter-spacing: 0.32em; text-indent: 0.32em; /* visually center the tracking */
  color: var(--text); margin: 0;
  animation: trackIn 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.wordmark .gold { color: var(--accent); }
.wordmark-sub {
  font-family: "Marcellus", serif;
  font-size: clamp(0.85rem, 2.4vw, 1.25rem);
  letter-spacing: 0.62em; text-indent: 0.62em;
  color: var(--muted); text-transform: uppercase;
  margin-top: 10px;
  animation: fadeUp 1.6s 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes trackIn {
  from { opacity: 0; letter-spacing: 0.6em; filter: blur(6px); }
  to   { opacity: 1; letter-spacing: 0.32em; filter: blur(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tag {
  position: relative; z-index: 1;
  max-width: 560px; margin: 34px auto 0; color: var(--muted);
  font-size: 1.05rem;
  animation: fadeUp 1.6s 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-cta {
  position: relative; z-index: 1;
  margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 1.6s 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.btn {
  display: inline-block; padding: 13px 30px;
  border: 1px solid var(--accent); border-radius: 3px;
  color: var(--accent); font-size: 0.85rem; letter-spacing: 0.18em;
  text-transform: uppercase; transition: all 0.25s;
}
.btn:hover { background: var(--accent); color: #15120a; }
.btn.solid { background: var(--accent); color: #15120a; }
.btn.solid:hover { background: #e0bc6e; border-color: #e0bc6e; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: none; }

/* ---------- Poster marquee (landing) ---------- */
.marquee-section { padding: 30px 0 70px; overflow: hidden; }
.marquee-label {
  text-align: center; color: var(--muted); font-size: 0.8rem;
  letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 26px;
}
.marquee { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee a { flex: 0 0 auto; width: 170px; }
.marquee img {
  width: 170px; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--line);
  transition: transform 0.3s, border-color 0.3s;
}
.marquee a:hover img { transform: translateY(-6px); border-color: var(--accent-dim); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section blocks ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: 2rem; }
.kicker {
  color: var(--accent); font-size: 0.78rem; letter-spacing: 0.3em;
  text-transform: uppercase; margin-bottom: 14px; font-family: "Inter", sans-serif;
}
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 40px; }
@media (max-width: 820px) { .cols-3 { grid-template-columns: 1fr; } }
.pillar h3 { font-size: 1.2rem; color: var(--text); }
.pillar p { color: var(--muted); font-size: 0.95rem; }
.pillar .num {
  font-family: "Marcellus", serif; color: var(--accent-dim);
  font-size: 2.2rem; display: block; margin-bottom: 8px;
}

/* ---------- Catalog ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-head p { color: var(--muted); max-width: 640px; }

.catalog-controls {
  position: sticky; top: 64px; z-index: 40;
  background: rgba(11, 11, 14, 0.92); backdrop-filter: blur(12px);
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.controls-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.genre-tabs { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.genre-tab {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font-size: 0.8rem;
  letter-spacing: 0.06em; cursor: pointer; transition: all 0.2s;
  font-family: "Inter", sans-serif;
}
.genre-tab:hover { color: var(--text); border-color: var(--accent-dim); }
.genre-tab.active { background: var(--accent); border-color: var(--accent); color: #15120a; }
.genre-tab .count { opacity: 0.65; font-size: 0.72rem; margin-left: 4px; }
.search-box {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 8px 18px; font-size: 0.85rem; width: 200px;
  font-family: "Inter", sans-serif;
}
.search-box:focus { outline: none; border-color: var(--accent-dim); }
@media (max-width: 760px) { .search-box { width: 100%; } }

.poster-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px; padding: 36px 0 90px;
}
@media (max-width: 500px) { .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.poster-card {
  position: relative; cursor: pointer;
  transition: transform 0.28s;
}
.poster-card:hover, .poster-card:focus-visible { transform: translateY(-6px); outline: none; }
.poster-card img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block;
  border-radius: 8px; border: 1px solid var(--line);
  transition: border-color 0.28s, box-shadow 0.28s;
}
.poster-card:hover img, .poster-card:focus-visible img {
  border-color: var(--accent-dim); box-shadow: var(--shadow);
}
.poster-card .meta { padding: 9px 2px 0; }
.poster-card .meta .t {
  font-family: "Marcellus", serif; font-size: 0.92rem; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.poster-card .meta .g {
  color: var(--muted); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.empty-note { color: var(--muted); padding: 60px 0; text-align: center; grid-column: 1 / -1; }

/* ---------- Modal lightbox ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 5, 8, 0.9); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  position: relative; width: min(1060px, 100%); max-height: 92vh;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden auto;
  display: grid; grid-template-columns: 420px 1fr;
}
@media (max-width: 880px) {
  .modal { grid-template-columns: 1fr; max-height: 94vh; }
}
.modal-media { background: #08080a; position: relative; }
.modal-media .main-img-wrap { position: relative; }
.modal-media img.main { width: 100%; object-fit: contain; max-height: 70vh; }
.thumb-rail {
  display: flex; gap: 8px; padding: 12px; overflow-x: auto;
  background: #0d0c10; border-top: 1px solid var(--line);
}
.thumb-rail img {
  height: 62px; width: auto; border-radius: 4px; cursor: pointer;
  border: 2px solid transparent; opacity: 0.7; transition: all 0.2s; flex: 0 0 auto;
}
.thumb-rail img:hover { opacity: 1; }
.thumb-rail img.sel { border-color: var(--accent); opacity: 1; }

.modal-body { padding: 30px 32px 26px; }
.modal-body h2 { font-size: 1.85rem; margin-bottom: 2px; }
.modal-body .tagline { color: var(--accent); font-style: italic; margin: 0 0 14px; font-size: 1rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 12px;
}
.chip.gold { border-color: var(--accent-dim); color: var(--accent); }
.modal-body .synopsis { color: #cfcabf; font-size: 0.95rem; }
.modal-body .facts { margin: 18px 0 4px; padding: 0; list-style: none; color: var(--muted); font-size: 0.85rem; }
.modal-body .facts li { margin-bottom: 5px; }
.modal-body .facts b { color: var(--text); font-weight: 600; }
.char-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.char-card img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.char-card .cn { font-size: 0.82rem; margin-top: 6px; font-family: "Marcellus", serif; letter-spacing: 0.04em; }
.char-card .cd { font-size: 0.72rem; color: var(--muted); line-height: 1.45; }
.modal-section-label {
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.26em;
  text-transform: uppercase; margin: 24px 0 10px;
}

.modal-close {
  position: absolute; top: 10px; right: 12px; z-index: 5;
  background: rgba(8, 8, 10, 0.7); border: 1px solid var(--line); color: var(--text);
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 110;
  background: rgba(8, 8, 10, 0.65); border: 1px solid var(--line); color: var(--text);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.25rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-nav:hover { border-color: var(--accent); color: var(--accent); }
.modal-nav.prev { left: 18px; }
.modal-nav.next { right: 18px; }
@media (max-width: 880px) {
  .modal-nav { top: auto; bottom: 18px; transform: none; }
  .modal-nav.prev { left: calc(50% - 60px); }
  .modal-nav.next { right: calc(50% - 60px); }
}

/* ---------- Full-screen image viewer ---------- */
.viewer-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 3, 5, 0.96);
  display: none; align-items: center; justify-content: center;
}
.viewer-backdrop.open { display: flex; }
.viewer-stage { margin: 0; text-align: center; max-width: 94vw; }
.viewer-stage img {
  max-width: 94vw; max-height: 86vh; object-fit: contain;
  border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  margin: 0 auto;
}
.viewer-stage figcaption {
  color: var(--muted); font-size: 0.85rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-top: 14px;
}
.viewer-close {
  position: fixed; top: 16px; right: 18px; z-index: 210;
  background: rgba(8, 8, 10, 0.7); border: 1px solid var(--line); color: var(--text);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.15rem; cursor: pointer;
}
.viewer-close:hover { border-color: var(--accent); color: var(--accent); }
.viewer-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 210;
  background: rgba(8, 8, 10, 0.7); border: 1px solid var(--line); color: var(--text);
  width: 54px; height: 54px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.viewer-nav:hover { border-color: var(--accent); color: var(--accent); }
.viewer-nav.prev { left: 22px; }
.viewer-nav.next { right: 22px; }
@media (max-width: 700px) {
  .viewer-nav { top: auto; bottom: 22px; transform: none; width: 48px; height: 48px; }
  .viewer-nav.prev { left: calc(50% - 64px); }
  .viewer-nav.next { right: calc(50% - 64px); }
  .viewer-stage img { max-height: 78vh; }
}
.main-img-wrap { cursor: zoom-in; }
.char-card img { cursor: zoom-in; }

/* ---------- Prose pages ---------- */
.prose { max-width: 720px; }
.prose p { color: #cfcabf; }
.prose .lead { font-size: 1.2rem; color: var(--text); }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; max-width: 560px; margin-top: 30px;
}
.contact-card .email { font-family: "Marcellus", serif; font-size: 1.3rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); padding: 12px 14px; font-family: "Inter", sans-serif; font-size: 0.95rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-dim); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 44px 0 60px; margin-top: 40px;
  color: var(--muted); font-size: 0.85rem;
}
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-brand { font-family: "Marcellus", serif; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text); }
