:root {
  --ink: #f3eee6;
  --void: #050505;
  --fog: #0b1210;
  --blood: #c4122f;
  --blood-wet: #ff2a2a;
  --blood-dry: #4a0508;
  --bone: #cfc6b4;
  --drip: "Nosifer", "Impact", cursive;
  --line: rgba(243, 238, 230, 0.22);
  --card-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 800;
  font-size: 1em;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-x: hidden;
}

@media (min-width: 1400px) {
  body { font-size: 1.12vw; }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; cursor: pointer; }

.or {
  font-family: "Noto Serif Oriya", serif;
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0;
}

/* Small bordered label — the boxed-badge language borrowed from the
   reference (thelordsofwater.com): a thin hairline frame reads as a
   deliberate, designed system rather than loose type floating on black */
.kicker {
  display: inline-block;
  padding: 0.3em 0.85em;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Content sections sit as inset, hairline-bordered panels on the void —
   same "everything lives in a frame" structure as the reference, instead
   of bleeding edge-to-edge. Marquee/scream/CTA beats stay full-bleed on
   purpose, as rhythm breaks between panels (matches the reference's own
   contrast between boxed product cards and full-width ticker bars). */
.panel {
  margin: 0 3vw 4vh;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: #000;
}
.panel:last-child { margin-bottom: 0; }

/* Calm, static section headings — a single red rule instead of the
   constant bleed color-cycle on every heading, so the animation reads as
   an accent (flood/yell/CTAs) rather than the default state of all type.
   No horizontal margin: it inherits whatever inset the heading itself
   already sits at, so it lines up under left- and center-aligned
   headings alike without a section-by-section override. */
.rule-head::after {
  content: "";
  display: block;
  width: 3.2em;
  height: 3px;
  margin: 0.3em 0 0;
  background: var(--blood);
}
.countdown .rule-head::after { margin-left: auto; margin-right: auto; }

/* Nosifer drips hang below the baseline — give them a private lane */
.drip {
  font-family: var(--drip);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.65;
  padding: 0.12em 0 0.38em;
  animation: bleed 4.5s ease-in-out infinite;
}

@keyframes bleed {
  0%, 100% {
    color: var(--blood-dry);
    text-shadow: 0 10px 0 #1a0000, 0 18px 22px rgba(120, 0, 0, 0.55);
  }
  40% {
    color: var(--blood);
    text-shadow: 0 6px 0 #3a0000, 0 14px 18px rgba(196, 18, 47, 0.45);
  }
  70% {
    color: var(--blood-wet);
    text-shadow: 0 2px 0 #7a0000, 0 0 28px rgba(255, 50, 50, 0.7);
  }
}

.grain-svg { position: absolute; width: 0; height: 0; }
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 400;
  opacity: 0.14;
  filter: url(#grain);
  animation: grain 1.1s steps(4) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -4%); }
  75% { transform: translate(-3%, 2%); }
  100% { transform: translate(1%, -1%); }
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 500;
  background: var(--blood);
  padding: 8px 12px;
}
.skip:focus { top: 8px; }

/* Solid bar ABOVE the poster — never painted on the face */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  background: var(--void);
  border-bottom: 1px solid rgba(243, 238, 230, 0.14);
}
.top a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.top .mark {
  letter-spacing: 0.18em;
  font-size: 1.05em;
}
.top .tix {
  color: var(--blood);
  letter-spacing: 0.12em;
}

/* Full poster. No crop. QR stays in frame. */
.hero,
.trailer,
.story,
.ouija,
.relic,
.buy,
.bill,
.house,
.can {
  scroll-margin-top: 72px;
}

.hero {
  background: #000;
  line-height: 0;
}
.hero img {
  width: 100%;
  height: auto;
}

@media (min-width: 721px) {
  .hero img {
    height: calc(100svh - 52px);
    object-fit: contain;
    object-position: center;
  }
}

/* Trailer — the loudest CTA on the page, right after the hero */
.trailer {
  background: #060606;
  padding: 5vh 0 0;
}
.trailer-copy {
  margin: 0 5vw 1.4em;
  max-width: 24em;
  font-size: clamp(1.1rem, 3.4vw, 1.6rem);
  line-height: 1.15;
}
.trailer-copy.or {
  color: var(--blood);
  line-height: 1.4;
  margin-bottom: 0.4em;
}
.trailer-frame {
  position: relative;
  margin-top: 1vh;
  padding-top: 56.25%;
  background: #000;
}
.trailer-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Marquee tape */
.tape {
  overflow: hidden;
  background: var(--void);
  border-top: 1px solid rgba(243, 238, 230, 0.18);
  border-bottom: 1px solid rgba(243, 238, 230, 0.18);
}
.tape-run {
  display: flex;
  gap: 1.2em;
  width: max-content;
  padding: 0.55em 0 0.85em;
  font-size: clamp(1.6rem, 6vw, 3.6rem);
  line-height: 1.45;
  animation: scroll 32s linear infinite;
  white-space: nowrap;
  align-items: center;
}
.tape-run.reverse { animation-direction: reverse; animation-duration: 38s; }
.tape-run .or { color: var(--ink); font-size: 0.82em; }
.tape-run .drip { font-size: 0.72em; padding: 0.08em 0 0.22em; }
.bone {
  color: var(--bone);
  opacity: 0.7;
  font-size: 0.55em;
  text-transform: none;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Story is the reimage. Portrait first. Type under it — never on the face. */
.story {
  background: #000;
  overflow: hidden;
}
.story > img {
  width: 100%;
  height: auto;
}
.story-type {
  padding: 3.5vh 5vw 6vh;
  background: #000;
}
.story-type .or {
  margin: 0 0 0.25em;
  font-size: clamp(1.15rem, 4vw, 1.9rem);
  line-height: 1.4;
  color: var(--blood);
}
.story-type p:last-child {
  margin: 0;
  max-width: 14em;
  font-size: clamp(1.35rem, 5vw, 2.4rem);
  line-height: 1.02;
}

/* Ouija — real historic boards, stacked, no overlay */
.ouija {
  background: var(--fog);
  padding: 6vh 0 8vh;
  overflow: hidden;
  isolation: isolate;
}
.ouija .kicker,
.house .kicker,
.trailer .kicker {
  margin: 0 5vw 0.2em;
  font-size: clamp(1.1rem, 3.2vw, 1.6rem);
  line-height: 1.4;
}
.ouija h2,
.house h2,
.trailer h2 {
  display: block;
  overflow: hidden;
  margin: 0 5vw 0.9em;
  padding-bottom: 0.15em;
  font-size: clamp(2.4rem, 10vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.ouija-copy {
  margin: 0 5vw 0.7em;
  max-width: 22em;
  font-size: clamp(1.2rem, 3.6vw, 1.85rem);
  line-height: 1.15;
}
.ouija-copy.or {
  color: var(--blood);
  line-height: 1.4;
}
.ouija-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 1.2em 5vw 0;
}
.ouija-row figure { margin: 0; }
.ouija-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.08);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ouija-row figure:last-child img {
  object-position: center;
  filter: grayscale(0.2) contrast(1.05);
}
.tools-hero {
  margin: 1.2em 5vw 2em;
  background: #000;
}
.tools-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.85);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tools-hero figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 0.7em 0 0;
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
}
.tools-hero figcaption .or { color: var(--blood); line-height: 1.35; }
.tools-sub {
  margin: 0.4em 5vw 0.15em !important;
}
.tools-sub-en {
  margin: 0 5vw 0.4em;
  font-size: clamp(0.95rem, 2.6vw, 1.2rem);
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.ouija-row-4 {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ouija-row-4 img {
  aspect-ratio: 3 / 4;
}
.ouija-row figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 0.7em 0 0;
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
  line-height: 1.15;
}
.ouija-row figcaption .or {
  color: var(--blood);
  font-size: 1.05em;
  line-height: 1.35;
}

/* Ancestral estate — cover portrait with top-hung title, then an
   asymmetric relic + copy row (deliberately not a mirror of .ouija's
   symmetric two-photo row, so the scroll doesn't feel repetitive) */
.relic {
  position: relative;
  background: #030402;
  padding: 0 0 8vh;
  overflow: hidden;
  isolation: isolate;
}
.relic-cover {
  position: relative;
  background: #000;
}
.relic-cover img {
  width: 100%;
  height: 78svh;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(0.25) sepia(0.16) contrast(1.1) saturate(0.9);
}
.relic-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.9));
}
.relic-cover-type {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 6vh 5vw 0;
}
.relic-cover-type .kicker {
  margin: 0 0 0.2em;
  font-size: clamp(1.1rem, 3.2vw, 1.6rem);
  line-height: 1.4;
}
.relic-cover-type h2 {
  margin: 0;
  padding-bottom: 0.15em;
  font-size: clamp(2.4rem, 10vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.relic-copy {
  margin: 1.4em 5vw 0.7em;
  max-width: 22em;
  font-size: clamp(1.2rem, 3.6vw, 1.85rem);
  line-height: 1.15;
}
.relic-copy.or {
  color: var(--blood);
  line-height: 1.4;
}
.relic-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
  align-items: center;
  padding: 1.2em 5vw 0;
}
.relic-row figure { margin: 0; }
.relic-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.1);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.relic-row figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 0.6em 0 0;
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
  line-height: 1.15;
}
.relic-row figcaption .or {
  color: var(--blood);
  font-size: 1.05em;
  line-height: 1.35;
}
.relic-note { display: grid; gap: 0.5em; }
.relic-note .or {
  color: var(--blood);
  font-size: clamp(1.05rem, 3.2vw, 1.5rem);
  line-height: 1.4;
}
.relic-note p:last-child {
  margin: 0;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  line-height: 1.15;
}

/* Two giant lines — not six colliding drips */
.yell {
  background: var(--void);
  padding: 7vh 4vw 3vh;
  overflow: hidden;
}
.yell p {
  margin: 0;
  font-size: clamp(2.2rem, 11vw, 6.4rem);
  line-height: 1.55;
}
.yell .or {
  color: var(--ink);
  font-size: clamp(1.9rem, 9vw, 5rem);
  line-height: 1.45;
  margin-bottom: 0.15em;
}

.flood {
  margin: 0;
  font-size: clamp(2.6rem, 14vw, 8rem);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  color: var(--blood);
  background: var(--void);
  padding: 2vh 0 5vh;
  animation: bleed 4.5s ease-in-out infinite;
}

/* Countdown to release — blood drips off each digit on a loop */
.countdown {
  background: var(--void);
  padding: 8vh 5vw 6vh;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.countdown .kicker {
  margin: 0 0 0.2em;
  font-size: clamp(1.1rem, 3.2vw, 1.6rem);
  line-height: 1.4;
}
.countdown h2 {
  display: block;
  margin: 0 auto 0.5em;
  padding-bottom: 0.1em;
  font-size: clamp(2.2rem, 9vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.countdown-date {
  margin: 0 0 2em;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  color: var(--bone);
  letter-spacing: 0.06em;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 34em;
  margin: 0 auto;
}
.countdown-unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6em 0 1.3em;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.countdown-num {
  font-family: var(--drip);
  font-weight: 400;
  font-size: clamp(2.1rem, 8.6vw, 3.8rem);
  line-height: 1;
  color: var(--blood-wet);
  text-shadow: 0 6px 0 #3a0000, 0 14px 18px rgba(196, 18, 47, 0.5);
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  margin-top: 0.4em;
  font-size: clamp(0.68rem, 2.1vw, 0.9rem);
  letter-spacing: 0.1em;
  color: var(--ink);
}
.countdown-label .or {
  color: var(--blood);
  font-size: 1.05em;
  letter-spacing: 0;
}
.countdown-unit::after {
  content: "";
  position: absolute;
  bottom: 0.65em;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50% 50% 50% 0;
  background: var(--blood);
  transform: translateX(-50%) translateY(0) rotate(45deg) scale(0.4);
  opacity: 0;
  animation: drip-fall 3.4s ease-in infinite;
}
.countdown-unit:nth-child(2)::after { animation-delay: 0.8s; }
.countdown-unit:nth-child(3)::after { animation-delay: 1.7s; }
.countdown-unit:nth-child(4)::after { animation-delay: 2.5s; }

@keyframes drip-fall {
  0% { opacity: 0; transform: translateX(-50%) translateY(0) rotate(45deg) scale(0.4); }
  12% { opacity: 1; transform: translateX(-50%) translateY(0) rotate(45deg) scale(1); }
  78% { opacity: 1; transform: translateX(-50%) translateY(1.5em) rotate(45deg) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(1.8em) rotate(45deg) scale(0.75); }
}

.buy {
  background: var(--void);
  padding: 1vh 5vw 8vh;
  display: grid;
  gap: 0.35em;
  overflow: hidden;
}
.buy a {
  font-size: clamp(1.7rem, 7vw, 3.6rem);
  line-height: 1.05;
  min-height: 64px;
  display: flex;
  align-items: center;
  color: var(--blood);
  animation: bleed 4.5s ease-in-out infinite;
}

/* Director as billboard */
.bill {
  position: relative;
  background: #000;
  isolation: isolate;
  overflow: hidden;
}
.bill img {
  width: 100%;
  height: 88svh;
  object-fit: cover;
  object-position: 50% 18%;
  filter: contrast(1.06) saturate(0.95);
}
.bill-type {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22vh 5vw 6vh;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72) 42%, #000);
}
.bill-type .or { margin: 0; font-size: 1.2em; line-height: 1.4; }
.bill-type h2 {
  margin: 0.08em 0 0.25em;
  font-size: clamp(2.6rem, 11vw, 5.6rem);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.bill-type p:last-child {
  margin: 0;
  max-width: 16em;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  line-height: 1.05;
}

/* Past films — real key art, 2×2, no overlap */
.house {
  background: var(--void);
  padding: 8vh 0 6vh;
  overflow: hidden;
}
.films {
  list-style: none;
  margin: 0;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
}
.films li { margin: 0; }
.films img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.films li:first-child img {
  object-fit: contain;
  background: #000;
}
.films span {
  display: block;
  margin-top: 0.45em;
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  letter-spacing: 0.08em;
}
.house-note {
  margin: 1.6em 5vw 0;
  max-width: 22em;
  font-size: clamp(1.2rem, 3.6vw, 1.9rem);
  line-height: 1.08;
}

/* QR as the can */
.can {
  background: #0a0a0a;
  padding: 9vh 5vw 10vh;
  text-align: center;
  overflow: hidden;
}
.can-kicker {
  margin: 0 0 0.25em;
  font-size: clamp(1.45rem, 5.6vw, 3.1rem);
}
.can-odia {
  margin: 0 0 1.2em;
  font-size: clamp(1.2rem, 3.8vw, 2rem);
  line-height: 1.4;
}
.can figure {
  margin: 0 auto 1.2em;
  width: min(70vw, 320px);
  padding: 1em;
  background: #f4f0e6;
}
.can img { width: 100%; image-rendering: pixelated; }
.can-sub {
  margin: 0 0 1.3em;
  font-size: clamp(1.2rem, 3.4vw, 1.85rem);
  line-height: 1.05;
}
.can-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-size: clamp(1.3rem, 4.4vw, 2.1rem);
  color: var(--blood);
  animation: bleed 4.5s ease-in-out infinite;
}

.reel { background: #000; overflow: hidden; }
.reel-frame {
  position: relative;
  padding-top: 56.25%;
}
.reel-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.end {
  padding: 6vh 5vw max(32px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.15em;
  background: var(--void);
  border-top: 1px solid rgba(243, 238, 230, 0.14);
}
.end a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-left: 1em;
}
.end .credit {
  width: 100%;
  margin: 0;
  font-size: 0.6em;
  letter-spacing: 0.04em;
  opacity: 0.55;
}
.end .credit a {
  min-height: auto;
  margin-left: 0.3em;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 720px) {
  .story {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: calc(100svh - 52px);
    align-items: stretch;
  }
  .story > img {
    height: calc(100svh - 52px);
    object-fit: cover;
    object-position: 50% 10%;
  }
  .story-type {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8vw;
  }
  .bill-type { padding-left: 8vw; padding-right: 8vw; }
  .buy { padding-left: 8vw; }
  .ouija .kicker,
  .ouija h2,
  .ouija-copy,
  .house .kicker,
  .house h2 { margin-left: 8vw; margin-right: 8vw; }
  .house-note { margin-left: 8vw; margin-right: 8vw; }
  .ouija-row,
  .films { padding-left: 8vw; padding-right: 8vw; }
  .films { grid-template-columns: repeat(4, 1fr); }
  .ouija-copy { max-width: 28em; }
  .ouija-row-4 { grid-template-columns: repeat(4, 1fr); }
  .tools-hero { margin-left: 8vw; margin-right: 8vw; }
  .tools-sub,
  .tools-sub-en { margin-left: 8vw; margin-right: 8vw; }
  .relic-cover-type { padding-left: 8vw; padding-right: 8vw; }
  .relic-copy { margin-left: 8vw; margin-right: 8vw; max-width: 28em; }
  .relic-row { padding-left: 8vw; padding-right: 8vw; }
  .panel { margin-left: 6vw; margin-right: 6vw; }
  .trailer .kicker,
  .trailer h2,
  .trailer-copy { margin-left: 8vw; margin-right: 8vw; }
  .trailer-copy { max-width: 32em; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .tape-run, .drip, .flood, .buy a, .can-go { animation: none; }
  .drip, .flood, .buy a, .can-go { color: var(--blood); }
  .countdown-unit::after { display: none; }
  html { scroll-behavior: auto; }
}
