/* =========================================================
   VIGNETTE — the page beneath the mask (Figma red build)
   Vivid crimson, slab-serif headings, monospace body.
   ========================================================= */

:root {
  --v-red-bright: #c21414;  /* hero — vivid */
  --v-red: #8e0f0f;
  --v-red-deep: #2a0606;
  --v-ink: #f1e7e3;     /* main text */
  --v-muted: #dcc3be;   /* body copy on red */
  --v-dim: #c3a8a3;     /* dimmed heading words */
  --v-faint: #8a4742;
  --v-orange: #df5a2a;  /* tagline accent */
  --v-rule: rgba(255,255,255,0.22);
  --slab: "Zilla Slab", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

body.vignette {
  /* one continuous background image for the whole page; hero & synopsis sit
     on top, the lower sections (Experience / Trailer / footer) are transparent
     so this same image runs straight down with no section splits */
  background: #190404 url("../assets/img/bg_red.png") center top / 100% 100% no-repeat;
  color: var(--v-ink);
  font-family: var(--mono);
  overflow-x: hidden;
}

/* fade in from black — smooth handoff from the dissolve */
#fade {
  position: fixed; inset: 0; z-index: 100; background: #000;
  pointer-events: none; opacity: 1; transition: opacity 1.6s ease-out;
}
body.ready #fade { opacity: 0; }

::selection { background: #000; color: var(--v-orange); }

/* discreet EN / JA toggle */
.lang-floating {
  position: fixed; top: 1.2rem; right: 1.4rem; z-index: 80;
  display: inline-flex; align-items: center; gap: 0.4rem;
  mix-blend-mode: difference;
}
.lang-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: #e6c4bf; font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.06em; transition: color 0.2s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lang-sep { color: rgba(255,255,255,0.4); }

.v-label {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.18em; color: var(--v-ink); margin-bottom: 1.4rem;
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero (single composite image + overlaid copy) ---------- */
.v-hero {
  position: relative; background: #6d0000;
  display: block; line-height: 0;
}
.hero-pic, .hero-img { display: block; width: 100%; }
.hero-img { height: auto; }
.hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 11%;
  z-index: 3; text-align: center; line-height: 1.2;
  padding: 0 1.5rem;
}
.v-hero .tagline {
  margin: 0 0 1.4rem;
  font-family: var(--slab); font-weight: 500;
  font-size: clamp(1.3rem, 2.9vw, 2.1rem); color: var(--v-orange);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(25,0,0,0.7), 0 0 4px rgba(25,0,0,0.55);
}
.v-cta {
  display: inline-block; box-sizing: border-box;
  width: clamp(220px, 21vw, 430px); text-align: center;  /* ~400px at 1920, scales with width */
  border: none; color: #fff; background: #0b0303;
  font-family: var(--mono); font-weight: 500; font-size: 0.84rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1.15em 2em; border-radius: 2px;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}
.v-cta:hover { background: #000; box-shadow: 0 0 34px -8px rgba(0,0,0,0.8); transform: translateY(-1px); }
.scroll-hint {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 3; line-height: 1;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Generic section ---------- */
.v-section { position: relative; padding: 7rem 0; }
.v-section .container { position: relative; z-index: 2; }
.v-section h2 {
  font-family: var(--slab); font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; color: var(--v-ink);
}
.v-section h2 .dim,
.lede .dim { color: var(--v-dim); }

/* Synopsis — natural hallway as a masked layer that fades into the red field
   (top & bottom fade to transparent so the continuous body field shows through;
   no hard section seam) */
.v-scenario { background: transparent; }
.v-scenario::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,3,3,0.5) 0%, rgba(8,3,3,0.1) 26%,
      rgba(8,3,3,0) 55%, rgba(8,3,3,0.2) 90%),
    url("../assets/img/hallway.png") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 64%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 64%, transparent 100%);
}
.v-scenario .lede {
  font-family: var(--slab); font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.18;
  margin-bottom: 2.8rem; color: var(--v-ink);
}
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  max-width: 1000px; color: var(--v-muted); font-size: 0.92rem; line-height: 1.9;
}
.two-col > p { margin: 0; padding-right: 3rem; }
.two-col > p + p {
  padding-right: 0; padding-left: 3rem;
  border-left: 1px solid var(--v-rule);
}

/* Experience — transparent: the body background image shows through */
.v-exp { background: transparent; }
/* staircase: each item begins below where the previous ended, sides alternate */
.exp-grid { margin-top: 3.5rem; }
.exp-item {
  border-left: 1px solid var(--v-rule); padding-left: 1.6rem;
  width: min(30rem, 48%);
}
.exp-item + .exp-item { margin-top: 3.5rem; }
.exp-item:nth-child(even) { margin-left: auto; }   /* 02 → right */
.exp-item .num {
  font-family: var(--slab); font-weight: 700; font-size: 3rem;
  line-height: 1; color: rgba(241,231,227,0.6);
}
.exp-item h3 {
  font-family: var(--slab); font-weight: 600; font-size: 1.7rem;
  margin: 0.4rem 0 0.9rem; color: var(--v-ink);
}
.exp-item p { color: var(--v-muted); font-size: 0.9rem; line-height: 1.85; }

/* Trailer — heading left, transparent (shares the continuous body field) */
.v-trailer {
  background: transparent;
  text-align: left;
}
.video-frame {
  position: relative; margin: 3rem auto 0; max-width: 880px; aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 3px; overflow: hidden;
  background: #160202; box-shadow: 0 30px 80px -40px rgba(0,0,0,0.85);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.play {
  position: absolute; inset: 0; margin: auto;
  width: 80px; height: 80px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7); background: rgba(20,2,2,0.4);
  display: grid; place-items: center; transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.play:hover { transform: scale(1.08); background: rgba(40,4,4,0.65); box-shadow: 0 0 40px -6px rgba(0,0,0,0.8); }
.play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.video-frame.playing .play { display: none; }

/* Footer */
.v-foot {
  background: transparent; color: var(--v-faint);
  padding: 3.5rem 0; text-align: center; font-size: 0.82rem;
}
.v-foot a { color: var(--v-muted); }
.v-foot a:hover { color: var(--v-orange); }
.v-foot .small { font-size: 0.72rem; color: #8a514c; margin-top: 0.8rem; line-height: 1.7; }

/* ---------- Japanese typography ---------- */
body.lang-ja .v-section h2,
body.lang-ja .v-scenario .lede,
body.lang-ja .exp-item h3,
body.lang-ja .v-hero .tagline { font-family: "Noto Serif JP", serif; }
body.lang-ja .two-col,
body.lang-ja .exp-item p,
body.lang-ja .v-foot { font-family: "Noto Serif JP", serif; }

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 2.4rem; }
  .two-col > p { padding-right: 0; }
  .two-col > p + p { padding-left: 0; border-left: none; }
  .exp-item { width: auto; margin-left: 0; }
  .exp-item + .exp-item { margin-top: 2.4rem; }
  .v-scenario { background-attachment: scroll; }
  .v-section { padding: 5rem 0; }
}
