/* ══════════════════════════════════════════════════════════
   TEDDY CHERIM — IDSEB PORTFOLIO
   Shared stylesheet for all pages
══════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

body {
  background: #0a0a0a;
  color: #f0ede8;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Grain overlay — sits BEHIND page content (z-index 2 < content z-index 3) ── */
#grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: overlay;
  image-rendering: pixelated; /* keeps 35mm blocks crisp when upscaled */
}
/* Music: multiply blends grain into the magenta bg; raised above content so it covers tiles too */
body.page-music #grain { mix-blend-mode: multiply; opacity: 0.7; z-index: 4; pointer-events: none; }
/* Fiction: subtle fine grain */
body.page-fiction #grain { opacity: 0.2; }
/* Branded + Docs: no grain */
body.page-branded #grain,
body.page-docs #grain { display: none; }


/* ════════════════════════════════════════════════════════
   NAV — shared
════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 62px;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 40px;
  background: #000000 !important;
  backdrop-filter: none !important;
}

.nav-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; flex-shrink: 0; color: inherit;
}
.brand-block { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 17px; letter-spacing: 0.04em; line-height: 1; color: inherit;
}
.brand-role {
  font-family: 'Space Mono', monospace;
  font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.5; line-height: 1; color: inherit;
}
.logo-img { height: 34px; width: 34px; object-fit: contain; border-radius: 50%; }

.nav-links {
  display: flex; list-style: none; gap: 22px; margin-left: auto; align-items: center;
}
.nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: #fff; opacity: 0.7;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: color 0.18s, opacity 0.18s, border-color 0.18s;
}
.nav-link:hover { opacity: 1; }
.nav-link.active { opacity: 1; border-bottom-color: currentColor; }
/* Hover — each link lights up in its own destination colour */
.nav-link[href="fiction.html"]:hover  { color: #D4001A; }
.nav-link[href="docs.html"]:hover     { color: #4a7ff5; }
.nav-link[href="branded.html"]:hover  { color: #FFE600; }
.nav-link[href="music.html"]:hover    { color: #DC008C; }
.nav-link[href="info.html"]:hover     { color: #ffffff; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: auto; color: inherit;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ── Per-page nav colours ── */
body.page-fiction #nav { color: #fff; }
body.page-docs    #nav { color: #fff; }
body.page-branded #nav { color: #fff; }
body.page-music   #nav { color: #fff; }
body.page-info    #nav { color: #e8e4dc; }
/* Active nav link — page accent colour */
body.page-fiction .nav-link.active { border-bottom-color: #D4001A; color: #D4001A; opacity: 1; }
body.page-docs    .nav-link.active { border-bottom-color: #4a7ff5; color: #4a7ff5; opacity: 1; }
body.page-branded .nav-link.active { border-bottom-color: #FFE600; color: #FFE600; opacity: 1; }
body.page-music   .nav-link.active { border-bottom-color: #DC008C; color: #DC008C; opacity: 1; }


/* ════════════════════════════════════════════════════════
   SHARED CARD THUMB
════════════════════════════════════════════════════════ */
.card-thumb {
  position: relative; overflow: hidden; background: #0e0e0e; display: block;
}
.card-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,#111 25%,#1c1c1c 50%,#111 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite; z-index: 0; transition: opacity 0.4s;
}
.card-thumb.loaded::before { opacity: 0; }
.card-thumb.thumb-no-image::before { animation: none; background: linear-gradient(135deg, #1a1a1a 0%, #0e0e0e 100%); opacity: 1; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.thumb-img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
}


/* ════════════════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════════════════ */
#lightbox {
  position: fixed; inset: 0; z-index: 900;
  display: none; align-items: center; justify-content: center;
  animation: lbFadeIn 0.2s ease;
}
#lightbox.open { display: flex; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

#lightbox-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.92); cursor: pointer;
}
#lightbox-container {
  position: relative; width: 90vw; max-width: 1200px;
  aspect-ratio: 16/9; z-index: 1;
}
#lightbox-iframe {
  width: 100%; height: 100%; border: none; display: block;
}
#lightbox-close {
  position: absolute; top: -48px; right: 0;
  background: none; border: none; color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.2rem;
  cursor: pointer; line-height: 1; padding: 8px;
  transition: opacity 0.15s;
}
#lightbox-close:hover { opacity: 0.6; }


/* ════════════════════════════════════════════════════════
   DETAIL PANEL — shared slide-up
════════════════════════════════════════════════════════ */
.detail-panel {
  position: fixed; inset: 0; z-index: 400;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
.detail-panel.open { transform: translateY(0); }

.detail-back {
  position: fixed; top: 20px; left: 32px; z-index: 10;
  font-family: 'Black Ops One', cursive; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: inherit; opacity: 0.6;
  display: flex; align-items: center; gap: 8px;
  transition: opacity 0.2s; cursor: pointer;
  border: none; background: none; text-decoration: none;
}
.detail-back::before { content: '←'; font-size: 15px; }
.detail-back:hover { opacity: 1; }

.detail-year {
  font-family: 'Space Mono', monospace;
  font-size: 0.35rem; letter-spacing: 0.28em; text-transform: uppercase;
  opacity: 0.35; display: block;
}
.detail-label {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1; display: block;
}
.fiction-detail  .detail-label { color: #D4001A; }
.docs-detail     .detail-label { color: #4a7ff5; }
.branded-detail  .detail-label { color: #111; }
.music-detail    .detail-label { color: #fff; opacity: 0.85; }

.detail-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em; line-height: 0.95;
  margin-bottom: 4px; color: inherit;
}
.detail-synopsis {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300; font-style: italic; font-size: 0.7rem;
  line-height: 1.6; opacity: 0.78;
  max-width: none; margin-bottom: 8px;
}
.detail-note {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300; font-style: italic;
  font-size: 0.65rem; line-height: 1.55;
  opacity: 0.52; max-width: none; margin-bottom: 10px;
}

.detail-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.detail-awards[hidden] { display: none; }
.detail-award {
  font-family: 'Space Mono', monospace;
  font-size: 0.38rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  padding: 2px 6px;
  border: 1px solid currentColor;
}
.detail-agency {
  font-family: 'Space Mono', monospace;
  font-size: 0.38rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
  display: block;
}

.watch-btn {
  display: inline-block;
  font-family: 'Black Ops One', cursive;
  font-size: 0.45rem; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; padding: 8px 22px;
  border: 1.5px solid currentColor;
  cursor: pointer; background: none; color: inherit;
  transition: background 0.2s, color 0.2s;
}

/* "More Information" link — outline button, used when a film has an external info page */
.detail-more-info {
  display: inline-block;
  font-family: 'Black Ops One', cursive;
  font-size: 0.45rem; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; padding: 8px 22px;
  border: 1.5px solid currentColor;
  background: none; color: inherit; cursor: pointer;
  transition: opacity 0.2s;
}
.detail-more-info[hidden] { display: none; }
.detail-more-info:hover { opacity: 0.6; }


/* ════════════════════════════════════════════════════════
   FICTION PAGE
════════════════════════════════════════════════════════ */
body.page-fiction {
  background: #6a0008;
}

.fiction-header {
  padding: 88px 40px 24px;
  overflow: hidden;
  word-break: break-word;
}
.fiction-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 6rem);
  color: #000000;
  text-shadow: 4px 4px 0 #D4001A;
  letter-spacing: 0.01em;
  line-height: 0.82;
  text-transform: uppercase;
}

/* Horizontal poster strip */
.poster-strip {
  display: flex;
  gap: 14px;
  padding: 16px 40px 48px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.poster-strip::-webkit-scrollbar { display: none; }

.poster-card {
  flex-shrink: 0;
  width: clamp(190px, 22vw, 310px);
  position: relative;
  cursor: pointer;
}
.poster-thumb {
  aspect-ratio: 2/3;
  transition: filter 0.35s ease;
}
.poster-card:hover .poster-thumb { filter: brightness(0.45); }

.poster-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 20px 16px;
  opacity: 0; transition: opacity 0.3s ease;
}
.poster-card:hover .poster-overlay { opacity: 1; }

.poster-title {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(15px, 1.8vw, 22px);
  color: #fff; text-transform: uppercase;
  letter-spacing: 0.04em; line-height: 1.1; margin-bottom: 5px;
}
.poster-meta {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 12px;
}
.poster-cta {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #D4001A;
}

/* WIP poster */
.poster-card--wip .card-thumb {
  border: 1px solid rgba(212,0,26,0.25);
}
.wip-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  pointer-events: none;
}
.wip-label {
  font-family: 'Space Mono', monospace;
  font-size: 7px; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(212,0,26,0.7);
  border: 1px solid rgba(212,0,26,0.25);
  padding: 5px 12px;
}
.wip-name {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(13px, 1.6vw, 18px);
  color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.06em;
  text-align: center; padding: 0 16px;
}

.fiction-footer {
  padding: 16px 40px 56px;
  text-align: center;
}
.fiction-credits {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 0.8rem; color: #000; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.fiction-sub-credits {
  font-family: 'Space Mono', monospace;
  font-size: 0.32rem; color: #000; letter-spacing: 0.3em; text-transform: uppercase;
}

/* ── IDSEB placeholder tile ── */
.idseb-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-decoration: none; cursor: pointer;
  transition: opacity 0.2s;
}
.idseb-placeholder:hover { opacity: 0.75; }
.idseb-placeholder img { width: 60px; height: auto; display: block; }
.idseb-placeholder span {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.idseb-placeholder.span-1 { grid-column: span 1; }
.idseb-placeholder.span-2 { grid-column: span 2; }
.idseb-placeholder.span-3 { grid-column: span 3; }
.fiction-idseb { background: #6a0008; flex-shrink: 0; width: 240px; aspect-ratio: 2/3; }
.fiction-idseb span { color: #fff; }
.docs-idseb    { background: #1B3FBF; aspect-ratio: 16/9; }
.docs-idseb span { color: #fff; }
.branded-idseb { background: #FFE600; aspect-ratio: 16/9; }
.branded-idseb span { color: #111; }
.music-idseb   { background: #DC008C; aspect-ratio: 16/9; }
.music-idseb.span-1 { aspect-ratio: 4/5; }
.music-idseb span { color: #fff; }

/* Fiction detail panel */
.fiction-detail {
  background: #4a0005; color: #f0ede8;
  overflow: hidden;
}
.fiction-detail .watch-btn {
  background: #D4001A; border-color: #D4001A; color: #fff;
}
.fiction-detail .watch-btn:hover { background: #fff; color: #D4001A; }

/* WIP fiction film — no video yet: show the portrait poster, hide the player */
.fiction-detail.is-wip .detail-video-wrap {
  aspect-ratio: auto;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fiction-detail.is-wip .detail-thumb-bg {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
}
.fiction-detail.is-wip .detail-play-circle { display: none; }

/* ── Side-by-side layout for all detail panels ── */
.fiction-detail .detail-layout,
.docs-detail .detail-layout,
.branded-detail .detail-layout,
.music-detail .detail-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 3rem;
  height: 100vh;
  align-items: center;
  padding: 0 48px;
  box-sizing: border-box;
}

.detail-info-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  padding: 4px 0;
}
.detail-info-col .detail-synopsis,
.detail-info-col .detail-note {
  max-width: none;
  margin-bottom: 0;
}

/* ── Video/thumbnail area ── */
.detail-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.detail-thumb-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.detail-preview-iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.detail-video-wrap.previewing .detail-thumb-bg { opacity: 0; }
.detail-video-wrap.previewing .detail-preview-iframe { opacity: 1; pointer-events: auto; }
.detail-video-wrap.previewing .detail-play-circle { opacity: 0; }
.detail-video-wrap.previewing .detail-hover-hint { opacity: 0; }

.detail-play-circle {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.detail-hover-hint {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  z-index: 3;
  transition: opacity 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Info grid below video ── */
.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  padding: 2.5rem 48px 4rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.fiction-detail .detail-title,
.docs-detail .detail-title,
.branded-detail .detail-title,
.music-detail .detail-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 0;
}

.detail-col-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.detail-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}
.detail-col-right .detail-synopsis,
.detail-col-right .detail-note {
  max-width: none;
  margin-bottom: 0;
}

.fiction-detail .detail-back,
.docs-detail .detail-back {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
}
.fiction-detail .detail-back { color: rgba(240,237,232,0.6); }
.docs-detail .detail-back { color: rgba(255,255,255,0.6); }

/* legacy inner wrappers (branded/music still use them) */
.branded-detail-inner,
.music-detail-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  padding: 80px 48px;
  height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.detail-left {
  height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.detail-left .detail-thumb-img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  display: block;
}
.detail-right {
  height: calc(100vh - 160px);
  overflow-y: auto;
  padding-right: 16px;
  padding-top: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.detail-poster-img {
  width: 100%;
  object-fit: cover; display: block;
}


/* ════════════════════════════════════════════════════════
   DOCS PAGE
════════════════════════════════════════════════════════ */
body.page-docs {
  background: #1B3FBF;
}

.docs-header {
  padding: 88px 40px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 0;
  overflow: hidden;
  word-break: break-word;
}
.docs-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 6rem);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 0.82;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding-bottom: 80px;
}
.docs-card { cursor: pointer; position: relative; }
.docs-thumb {
  aspect-ratio: 16/9;
}

.docs-card-info {
  padding: 14px 16px 20px;
  background: #1B3FBF;
}
.docs-tag {
  font-family: 'Space Mono', monospace;
  font-size: 8px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 5px; display: block;
}
.docs-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 2vw, 26px);
  color: #fff; text-transform: uppercase;
  letter-spacing: 0.03em; line-height: 1.05; margin-bottom: 6px;
}
.docs-card-synopsis {
  font-family: 'DM Sans', sans-serif;
  font-style: italic; font-size: 12px;
  color: rgba(255,255,255,0.5); line-height: 1.5;
}

/* Docs detail */
.docs-detail {
  background: #0f2890; color: #fff;
  overflow: hidden;
}
.docs-detail .watch-btn {
  background: #fff; border-color: #fff; color: #1B3FBF;
}
.docs-detail .watch-btn:hover { background: transparent; color: #fff; }

.detail-wide-thumb {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
}


/* ════════════════════════════════════════════════════════
   BRANDED PAGE
════════════════════════════════════════════════════════ */
body.page-branded {
  background: #FFE600;
  color: #111;
}

.branded-header {
  padding: 88px 40px 24px;
  overflow: hidden;
  word-break: break-word;
}
.branded-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 6rem);
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 0.82;
}

.branded-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding-bottom: 80px;
}
.branded-card { cursor: pointer; position: relative; overflow: hidden; }
.branded-thumb {
  aspect-ratio: 16/9;
  transition: filter 0.3s ease;
}
.branded-card:hover .branded-thumb { filter: brightness(0.35); }

.branded-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.25s ease;
}
.branded-card:hover .branded-overlay { opacity: 1; }

.branded-card-brand {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(10px, 1.1vw, 14px);
  color: #FFE600; letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1.1; margin-bottom: 2px;
}
.branded-card-campaign {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase; margin-bottom: 8px;
}
.branded-card-cta {
  font-family: 'Space Mono', monospace;
  font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Branded detail */
.branded-detail {
  background: #FFD800; color: #111;
  overflow: hidden;
}
.branded-detail .detail-back { color: #111; }
.branded-detail .detail-meta { color: rgba(0,0,0,0.4); }
.branded-detail .detail-title { color: #111; }
.branded-detail .detail-synopsis { color: rgba(17,17,17,0.65); }
.branded-detail .watch-btn {
  background: #111; border-color: #111; color: #FFE600;
}
.branded-detail .watch-btn:hover { background: transparent; color: #111; }



/* ════════════════════════════════════════════════════════
   MUSIC PAGE
════════════════════════════════════════════════════════ */
body.page-music {
  background: #DC008C;
}

.music-header {
  padding: 52px 40px 16px;
  overflow: hidden;
  word-break: break-word;
}
.music-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 6rem);
  color: transparent;
  -webkit-text-stroke: 2px rgba(0,0,0,0.6);
}

/* Zine grid */
.music-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding-bottom: 80px;
}
.music-card { cursor: pointer; position: relative; }
.music-card.span-3 { grid-column: span 3; }
.music-card.span-2 { grid-column: span 2; }
.music-card.span-1 { grid-column: span 1; }

.music-thumb {
  aspect-ratio: 16/9;
  transition: filter 0.3s ease;
  display: block; width: 100%;
}
.music-card.span-1 .music-thumb { aspect-ratio: 4/5; }

.music-card-footer {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: 10px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  pointer-events: none;
}
.music-artist {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(11px, 1.3vw, 16px);
  color: #fff; text-transform: uppercase;
  letter-spacing: 0.05em; line-height: 1.1; margin-bottom: 2px;
}
.music-song {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.music-year-tag {
  position: absolute; top: 10px; left: 12px; z-index: 3;
  font-family: 'Space Mono', monospace;
  font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
}

.music-hover-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: rgba(0,0,0,0.65);
  opacity: 0; transition: opacity 0.3s ease;
  padding: 20px;
}
.music-card:hover .music-thumb { filter: brightness(0.45); }
.music-card:hover .music-hover-overlay { opacity: 1; }

.hover-artist {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(18px, 2.5vw, 34px);
  color: #fff; text-transform: uppercase;
  letter-spacing: 0.04em; text-align: center; line-height: 1;
}
.hover-song {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); text-align: center; margin-bottom: 6px;
}
.hover-cta {
  font-family: 'Black Ops One', cursive;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
}

/* Music detail */
.music-detail {
  background: #c00078; color: #fff;
  overflow: hidden;
}
.music-detail .detail-title { color: #fff; }
.music-detail .watch-btn {
  background: #fff; border-color: #fff; color: #c00078;
}
.music-detail .watch-btn:hover { background: transparent; color: #fff; }



/* ════════════════════════════════════════════════════════
   INFO PAGE
════════════════════════════════════════════════════════ */
body.page-info {
  background: #0a0a0a;
  color: #e8e4dc;
  overflow-y: auto;
}
#starfield-info {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
body.page-info #nav {
  background: linear-gradient(to bottom, rgba(10,10,10,0.96) 70%, transparent);
  color: #e8e4dc;
}

/* Hero — one big photo left, text right (fills the first screen) */
.info-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 62px);
}
.info-hero-photo { overflow: hidden; }
.info-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: grayscale(15%);
}
.info-hero-text {
  border-left: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.info-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.88;
  color: #fff;
}
.info-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.32rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #E8730A;
  margin-top: 0.9rem;
}
.info-bio-container { margin-top: 1.8rem; max-width: 40ch; }
.info-bio {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.9rem;
}
.info-bio:last-child { margin-bottom: 0; }
.info-bio em { font-style: italic; color: rgba(255,255,255,0.8); }

/* Below the fold — the other two photos, shown large */
.info-more-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.info-more-photos .info-photo-sm { height: 70vh; min-width: 0; overflow: hidden; }
.info-more-photos img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: grayscale(15%);
}

/* Large contact block */
.info-contacts {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 2.5rem 7rem;
}
.info-contact-for {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.4rem;
}
.info-regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}
.info-region-row { display: flex; flex-direction: column; gap: 8px; }
.info-region-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
/* Instagram — social link below the booking emails, intentionally not the booking contact */
.info-instagram {
  display: inline-block;
  margin-top: 3rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); text-decoration: none;
  transition: color 0.2s;
}
.info-instagram:hover { color: #E8730A; }
.info-contact-email {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em;
  color: #E8730A; text-decoration: none; line-height: 1.05;
  transition: color 0.25s;
}
.info-contact-email:hover { color: #fff; }

/* Info page responsive — stack on small screens */
@media (max-width: 760px) {
  .info-hero { grid-template-columns: 1fr; min-height: 0; }
  .info-hero-photo { height: 58vh; }
  .info-hero-text {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 2rem 1.5rem;
  }
  .info-more-photos { grid-template-columns: 1fr; }
  .info-more-photos .info-photo-sm { height: 50vh; }
  .info-contacts { padding: 3rem 1.5rem 5rem; }
  .info-regions { grid-template-columns: 1fr; gap: 2rem; }
}


/* ════════════════════════════════════════════════════════
   HOMEPAGE (index.html)
════════════════════════════════════════════════════════ */
body.home-mode { overflow: hidden; height: 100vh; }

#starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#portal-overlay { position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 1; }

.scanlines {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: repeating-linear-gradient(to bottom,transparent 0px,transparent 3px,rgba(0,0,0,0.12) 3px,rgba(0,0,0,0.12) 4px);
  opacity: 0; transition: opacity 0.4s;
}
body.home-mode .scanlines { opacity: 1; }

#homepage { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; transition: opacity 0.4s ease; }
#homepage.fade-out { opacity: 0; pointer-events: none; }

.home-nav {
  position: relative; z-index: 2; padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.home-hud-left, .home-hud-right { display: flex; align-items: center; gap: 10px; }
.hud-tag { font-family: 'Press Start 2P', monospace; font-size: 9px; color: #E87B2C; text-shadow: 0 0 8px rgba(232,123,44,0.6); }
.hud-divider { font-family: 'Press Start 2P', monospace; font-size: 8px; color: rgba(232,228,220,0.15); }
.hud-code { font-family: 'Press Start 2P', monospace; font-size: 7px; color: rgba(232,228,220,0.28); letter-spacing: 0.05em; }
.hud-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #39FF14; box-shadow: 0 0 6px #39FF14,0 0 12px rgba(57,255,20,0.4); margin-right: 5px; animation: dot-pulse 2s ease-in-out infinite; }
@keyframes dot-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hud-online { font-family: 'Press Start 2P', monospace; font-size: 7px; color: #39FF14; text-shadow: 0 0 8px rgba(57,255,20,0.6); display: flex; align-items: center; }
.home-nav-info { font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: 0.08em; color: rgba(232,228,220,0.35); text-decoration: none; transition: color 0.2s; }
.home-nav-info:hover { color: #F5B800; }
.home-logo { height: 34px; width: 34px; border-radius: 50%; object-fit: contain; opacity: 0.75; }

.home-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(24px,4.5vh,52px); padding: 0 24px clamp(16px,3.5vh,44px); }
.home-hero { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-bureau { font-family: 'VT323', monospace; font-size: clamp(13px,1.3vw,18px); letter-spacing: 0.28em; text-transform: uppercase; color: #39FF14; text-shadow: 0 0 10px rgba(57,255,20,0.55),0 0 30px rgba(57,255,20,0.12); opacity: 0.85; margin-bottom: clamp(8px,1.6vh,16px); user-select: none; }
.hero-name { font-family: 'Black Ops One', sans-serif; font-size: clamp(60px,11vw,148px); letter-spacing: 0.03em; text-transform: uppercase; line-height: 0.9; color: #fff; text-shadow: -3px 0 rgba(232,44,44,0.7),3px 0 rgba(232,123,44,0.5),0 0 40px rgba(232,80,44,0.6),0 0 90px rgba(232,44,44,0.2); user-select: none; margin-bottom: clamp(8px,1.6vh,18px); }
.hero-sub { font-family: 'Press Start 2P', monospace; font-size: clamp(7px,0.72vw,10px); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(232,228,220,0.35); line-height: 2.2; user-select: none; }
.enter-wormhole { font-family: 'Press Start 2P', monospace; font-size: clamp(8px,0.82vw,11px); letter-spacing: 0.12em; text-transform: uppercase; color: #F5B800; text-shadow: 0 0 12px rgba(245,184,0,0.8),0 0 28px rgba(245,184,0,0.22); animation: crt-flicker 7s infinite; user-select: none; }
.ew-bracket { color: rgba(245,184,0,0.32); }
.crt-cursor { display: inline-block; width: 8px; height: 0.9em; background: #F5B800; margin-left: 8px; vertical-align: text-bottom; animation: cursor-blink 1.1s step-start infinite; box-shadow: 0 0 8px rgba(245,184,0,0.9); }
@keyframes cursor-blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes crt-flicker { 0%,100%{opacity:1} 91%{opacity:1} 91.5%{opacity:0.3} 92%{opacity:1} 96.5%{opacity:1} 97%{opacity:0.5} 97.4%{opacity:1} }

.portals-row { display: flex; align-items: center; gap: clamp(18px,3.2vw,50px); }
.portal-wrap:nth-child(1) { transform: translateY(16px); }
.portal-wrap:nth-child(2) { transform: translateY(4px); }
.portal-wrap:nth-child(3) { transform: translateY(4px); }
.portal-wrap:nth-child(4) { transform: translateY(16px); }
.portal-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; position: relative; transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94),filter 0.35s ease; }
.portal-wrap:hover { transform: translateY(-8px) scale(1.1) !important; filter: brightness(1.2); }
.portal-wrap.launching { pointer-events: none; }
.portal-canvas { display: block; border-radius: 50%; }
.portal-num { font-family: 'Press Start 2P', monospace; font-size: 7px; color: rgba(232,228,220,0.2); letter-spacing: 0.08em; margin-bottom: 4px; transition: color 0.25s; user-select: none; }
.portal-wrap:hover .portal-num { color: rgba(232,228,220,0.7); }
.portal-glow { position: absolute; top: 0; left: 50%; width: 160px; height: 160px; transform: translateX(-50%); border-radius: 50%; animation: portal-pulse 3.2s ease-in-out infinite; pointer-events: none; }
.portal-wrap:nth-child(2) .portal-glow { animation-delay: -0.8s; }
.portal-wrap:nth-child(3) .portal-glow { animation-delay: -1.6s; }
.portal-wrap:nth-child(4) .portal-glow { animation-delay: -2.4s; }
@keyframes portal-pulse { 0%,100%{opacity:0.6} 50%{opacity:1} }
.portal-label { font-family: 'Press Start 2P', monospace; font-size: clamp(6px,0.62vw,8px); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(232,228,220,0.4); transition: color 0.25s; user-select: none; line-height: 1.8; }
.portal-wrap:hover .portal-label { color: rgba(232,228,220,0.9); }

/* Portal glow per destination */
.portal-wrap[data-dest="fiction"] .portal-glow { box-shadow: 0 0 22px 5px rgba(212,0,26,0.35),0 0 55px 12px rgba(212,0,26,0.12),0 0 100px 24px rgba(212,0,26,0.06); }
.portal-wrap[data-dest="docs"]    .portal-glow { box-shadow: 0 0 22px 5px rgba(0,120,255,0.35),0 0 55px 12px rgba(0,120,255,0.12),0 0 100px 24px rgba(0,120,255,0.06); }
.portal-wrap[data-dest="branded"] .portal-glow { box-shadow: 0 0 22px 5px rgba(255,230,0,0.35),0 0 55px 12px rgba(255,230,0,0.12),0 0 100px 24px rgba(255,230,0,0.06); }
.portal-wrap[data-dest="music"]   .portal-glow { box-shadow: 0 0 22px 5px rgba(220,0,140,0.35),0 0 55px 12px rgba(220,0,140,0.12),0 0 100px 24px rgba(220,0,140,0.06); }
.portal-wrap[data-dest="fiction"] .portal-canvas { outline: 1px solid rgba(212,0,26,0.2); outline-offset: 5px; }
.portal-wrap[data-dest="docs"]    .portal-canvas { outline: 1px solid rgba(0,120,255,0.2); outline-offset: 5px; }
.portal-wrap[data-dest="branded"] .portal-canvas { outline: 1px solid rgba(255,230,0,0.2); outline-offset: 5px; }
.portal-wrap[data-dest="music"]   .portal-canvas { outline: 1px solid rgba(220,0,140,0.2); outline-offset: 5px; }


/* ════════════════════════════════════════════════════════
   UTILITY
════════════════════════════════════════════════════════ */
.hidden { display: none !important; }
/* z-index 3 keeps all page content (grids, cards, headers) above grain (z-index 2) */
.page-content { padding-top: 62px; position: relative; z-index: 3; }


/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .branded-grid { grid-template-columns: repeat(3, 1fr); }
  .music-grid { grid-template-columns: repeat(2, 1fr); }
  .music-card.span-3 { grid-column: span 2; }
}
@media (max-width: 768px) {
  .docs-grid { grid-template-columns: 1fr; }
  .branded-grid { grid-template-columns: repeat(2, 1fr); }
  .portals-row { gap: 14px; }

  .detail-panel { overflow-y: auto; }
  .fiction-detail .detail-layout,
  .docs-detail .detail-layout,
  .branded-detail .detail-layout,
  .music-detail .detail-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    padding: 80px 24px 40px;
    align-items: start;
    gap: 1.5rem;
  }
  .detail-info-col { max-height: none; overflow-y: visible; }
  .detail-info-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 24px 3rem; }
  .branded-detail-inner,
  .music-detail-inner {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    padding: 80px 24px 60px;
  }
  .detail-left { height: auto; }
  .detail-left .detail-thumb-img { flex: none; aspect-ratio: 16/9; }
  .detail-right { height: auto; overflow-y: visible; padding-right: 0; padding-top: 0; }
}
/* ── Mobile / portrait phones ── */
@media (max-width: 600px) {
  /* Nav → hamburger + full-screen overlay menu */
  #nav { padding: 0 16px; gap: 16px; }
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: #000000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 62px 24px 40px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: auto; }
  .nav-link {
    display: block;
    padding: 14px 24px;
    font-size: 20px;
    letter-spacing: 0.18em;
    opacity: 1;
  }
  /* Each link in its destination colour */
  .nav-links .nav-link[href="fiction.html"] { color: #D4001A; }
  .nav-links .nav-link[href="docs.html"]    { color: #4a7ff5; }
  .nav-links .nav-link[href="branded.html"] { color: #FFE600; }
  .nav-links .nav-link[href="music.html"]   { color: #DC008C; }
  .nav-links .nav-link[href="info.html"]    { color: #ffffff; }

  /* Hamburger morphs into an X while the overlay is open */
  .nav-links.open ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-links.open ~ .hamburger span:nth-child(2) { opacity: 0; }
  .nav-links.open ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Page headers — tighter padding so titles never bleed off screen */
  .fiction-header, .docs-header, .branded-header, .music-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Fiction poster strip — narrower posters */
  .poster-strip { padding: 12px 16px 40px; }
  .poster-card { width: 140px; }
  .fiction-idseb { width: 140px; }

  /* Grids */
  .music-grid { grid-template-columns: 1fr; }
  .music-card.span-2, .music-card.span-3 { grid-column: span 1; }
  .branded-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }

  .detail-info-grid { padding: 1.2rem 16px 3rem; gap: 1.2rem; }
  .branded-detail-inner, .music-detail-inner { padding: 80px 16px 60px; }

  /* Homepage portals */
  .portals-row { flex-wrap: wrap; justify-content: center; max-width: 340px; }
  .portal-wrap:nth-child(1),.portal-wrap:nth-child(2),
  .portal-wrap:nth-child(3),.portal-wrap:nth-child(4) { transform: none; }
  .portal-wrap:hover { transform: scale(1.06) !important; }
  .portal-canvas { width: 110px !important; height: 110px !important; }
  .portal-glow { width: 110px; height: 110px; }
}
