:root {
  --bg: #08090c;
  --bg-elev: #11141a;
  --bg-glass: rgba(17, 20, 26, 0.74);
  --ink: #f2ede7;
  --ink-dim: #bfb3a6;
  --blood: #8f131f;
  --blood-hot: #bf1f2e;
  --gold: #d3b37a;
  --line: rgba(242, 237, 231, 0.14);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(191, 31, 46, 0.22), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(211, 179, 122, 0.12), transparent 28%),
    linear-gradient(160deg, #090a0e 0%, #11151d 40%, #08090c 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.4px, transparent 0.4px);
  background-size: 3px 3px;
}

.hero,
main,
footer {
  position: relative;
  z-index: 2;
}

.hero {
  padding: 1.2rem clamp(1rem, 3vw, 2.5rem) 2rem;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.hero-content {
  margin-top: clamp(1.8rem, 8vw, 5.5rem);
  max-width: 880px;
  animation: rise-in 680ms ease both;
}

.hero-tight .hero-content {
  margin-top: clamp(1.2rem, 5vw, 2.6rem);
}

h1,
h2,
h3 {
  font-family: "Cinzel", Georgia, serif;
  margin: 0;
}

h1 {
  margin-top: 0.45rem;
  font-size: clamp(2.2rem, 7vw, 4.7rem);
  line-height: 1.05;
  text-wrap: balance;
}

.lead {
  margin: 1rem 0 0;
  color: var(--ink-dim);
  max-width: 58ch;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.hero-focus {
  font-size: clamp(3rem, 15vw, 9rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: justify;
  text-align-last: center;
  text-wrap: balance;
}

.hero-author {
  margin: 0.6rem 0 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-align: center;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--muted);
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 180ms, color 180ms;
}

.lang-toggle:hover,
.lang-toggle[data-active="true"] {
  background: var(--gold);
  color: #0a0a0f;
}

.contact-nav-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.38rem 1rem;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}

.contact-nav-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

main {
  padding: 0 clamp(1rem, 3vw, 2.5rem) 2.4rem;
  display: grid;
  gap: 1rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.module-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
}

.filter-btn:hover,
.filter-btn[aria-pressed="true"] {
  border-color: var(--blood-hot);
  background: rgba(191, 31, 46, 0.16);
}

.module-container {
  display: grid;
  gap: 1rem;
}

.titles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.title-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 9, 12, 0.72);
  position: relative;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s;
}

.title-card h3 {
  color: var(--ink);
  text-decoration: none;
}

.title-card p {
  color: var(--ink-dim);
  text-decoration: none;
}

.title-card:hover {
  border-color: var(--gold);
}

.title-cover {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.title-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem;
  display: grid;
  gap: 0.35rem;
  background: linear-gradient(to top, rgba(6, 7, 10, 0.95) 55%, transparent);
}

.title-body p {
  margin: 0;
  color: var(--ink-dim);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.title-link {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.title-link:hover {
  border-color: var(--gold);
}

.module-cover-large {
  max-height: 520px;
  margin-bottom: 0;
}

.load-fail {
  color: var(--ink-dim);
  margin: 0;
}

.module-block {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 3px);
  padding: 0.95rem;
  background: linear-gradient(155deg, rgba(17, 20, 26, 0.9), rgba(8, 9, 12, 0.94));
  animation: rise-in 540ms ease both;
}

.module-cover {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 0.8rem;
  display: block;
  background: rgba(8, 9, 12, 0.6);
}

.module-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 0.8rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.72rem;
}

.module-head p {
  margin: 0;
  color: var(--ink-dim);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.entries-grid {
  margin-top: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.entry-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 9, 12, 0.72);
  cursor: pointer;
  transition: border-color 0.18s;
}

.entry-card:hover {
  border-color: var(--gold);
}

/* stub: synopsis and video hidden, image shows small */
.entry-card .entry-body > p,
.entry-card .video-wrap {
  display: none;
}

.entry-card.is-open .entry-body > p,
.entry-card.is-open .video-wrap {
  display: block;
}

.entry-media {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  background:
    radial-gradient(circle at 20% 20%, rgba(191, 31, 46, 0.4), transparent 60%),
    linear-gradient(160deg, #1b1d24, #0a0b0f);
}

.entry-body {
  padding: 0.78rem;
  display: grid;
  gap: 0.45rem;
}

.entry-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.45rem;
}

.entry-title h3 {
  font-size: 1rem;
}

.entry-title span {
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.entry-body p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.92rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.video-wrap {
  margin-top: 0.25rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-wrap iframe,
.video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

footer {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-dim);
  padding: 0.9rem 1rem 1.3rem;
}

.footer-author {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-dim);
  opacity: 0.7;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.contact-overlay.is-open {
  pointer-events: all;
  opacity: 1;
}

.contact-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.7);
  backdrop-filter: blur(4px);
}

.contact-panel {
  position: relative;
  width: min(480px, 100vw);
  height: 100%;
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  padding: 2rem 1.8rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-overlay.is-open .contact-panel {
  transform: translateX(0);
}

.contact-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-panel-head h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.contact-close {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s;
}

.contact-close:hover {
  border-color: var(--gold);
}

.contact-intro {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.contact-section {
  max-width: 700px;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.contact-field {
  display: grid;
  gap: 0.35rem;
}

.contact-field label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

.contact-field input,
.contact-field textarea {
  background: rgba(8, 9, 12, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  width: 100%;
  transition: border-color 0.18s;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-field textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-submit {
  justify-self: start;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.6rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.contact-submit:hover {
  background: var(--gold);
  color: var(--bg);
}

@media (max-width: 600px) {
  .contact-row {
    grid-template-columns: 1fr;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-bottom: 1.2rem;
  }

  .brand-copy strong {
    font-size: 0.8rem;
  }
}
