/* ──────────────────────────────────────────────────────────
   SO Studios — design system
   ────────────────────────────────────────────────────────── */
:root {
  --bg: #080808;
  --surface: #101010;
  --surface2: #161616;
  --moon: #F5F0E8;
  --text: #E8E5DE;
  --text-mid: #8A8580;
  --text-dim: #3A3835;
  --accent: #C8A96E;

  --serif: "Cormorant Garamond", "Noto Serif JP", serif;
  --jp:    "Noto Serif JP", "Cormorant Garamond", serif;

  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}
:lang(ja) { font-family: var(--jp); font-weight: 300; }

a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: none; }
img { max-width: 100%; display: block; }

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

/* Body during intro: lock scroll */
body.intro-running { overflow: hidden; }

/* ─── Grain (animated film texture) ─────────────────── */
.grain-layer {
  position: fixed; inset: -10%;
  width: 120vw; height: 120vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  mix-blend-mode: overlay;
  animation: grain-drift 1.2s steps(6) infinite;
}
.grain {
  width: 100%; height: 100%;
}
@keyframes grain-drift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-3%, 1%); }
  40%  { transform: translate(2%, -2%); }
  60%  { transform: translate(-1%, 3%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(0,0); }
}

/* ─── Cinema vignette ───────────────────────────────── */
.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9997;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
}

/* ─── Custom cursor ─────────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  border: 1px solid var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 220ms ease, height 220ms ease, background 220ms, border-color 220ms;
  display: flex; align-items: center; justify-content: center;
  mix-blend-mode: difference;
}
.cursor-label {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: #000;
  opacity: 0;
  transition: opacity 180ms;
  text-transform: uppercase;
}
.cursor.hover {
  width: 56px; height: 56px;
  background: var(--moon);
  border-color: var(--moon);
}
.cursor.hover .cursor-label { opacity: 1; }
@media (hover: none) {
  body, button, a { cursor: auto; }
  .cursor { display: none; }
}

/* ─── Scroll progress (gold 1px) ────────────────────── */
.progress {
  position: fixed; top: 0; left: 0;
  height: 1px;
  background: var(--accent);
  width: 0;
  z-index: 9998;
  transition: width 80ms linear;
  box-shadow: 0 0 6px rgba(200,169,110,0.6);
}

/* ──────────────────────────────────────────────────────
   INTRO — film leader countdown 3 · 2 · 1
   ────────────────────────────────────────────────────── */
.intro {
  position: fixed; inset: 0;
  z-index: 9000;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  opacity: 1;
  pointer-events: auto;
}
.intro.hide {
  animation: intro-iris-out 900ms cubic-bezier(.7,.05,.3,1) forwards;
}
@keyframes intro-iris-out {
  0%   { clip-path: circle(150% at 50% 50%); opacity: 1; }
  60%  { clip-path: circle(70%  at 50% 50%); opacity: 1; }
  100% { clip-path: circle(0%   at 50% 50%); opacity: 1; pointer-events: none; }
}
.intro-leader {
  position: relative;
  width: clamp(280px, 40vw, 480px);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.leader-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.leader-sweep {
  animation: sweep 1s linear infinite;
  transform-origin: 0 0;
}
@keyframes sweep {
  from { stroke-dashoffset: 377; }
  to   { stroke-dashoffset: 0; }
}
#leaderNum {
  font-variant-numeric: tabular-nums;
}
.intro-meta {
  position: absolute;
  left: 50%;
  bottom: 6vh;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-align: center;
}
.intro-skip {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--text-mid);
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--text-dim);
  transition: color 200ms, border-color 200ms;
}
.intro-skip:hover { color: var(--accent); border-color: var(--accent); }

/* ──────────────────────────────────────────────────────
   IRIS — between-route transition (shutter wipe)
   ────────────────────────────────────────────────────── */
.iris {
  position: fixed; inset: 0;
  z-index: 8500;
  pointer-events: none;
}
.iris-blade {
  position: absolute; left: 0; right: 0;
  height: 50vh;
  background: #000;
  transform: scaleY(0);
  transform-origin: top center;
}
.iris-top { top: 0;    transform-origin: top center; }
.iris-bot { bottom: 0; transform-origin: bottom center; }
.iris-mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: clamp(80px, 8vw, 120px); height: auto;
  background: url("logo.png") center/contain no-repeat;
  aspect-ratio: 1;
  opacity: 0;
  filter: drop-shadow(0 0 24px rgba(200,169,110,0.18));
}
.iris.active .iris-blade { transition: transform 360ms cubic-bezier(.7,.05,.3,1); transform: scaleY(1); }
.iris.active .iris-mark   { transition: opacity 240ms ease 120ms, transform 600ms cubic-bezier(.2,.7,.2,1) 120ms; opacity: 1; transform: translate(-50%,-50%) scale(1); }
.iris.opening .iris-blade { transition: transform 480ms cubic-bezier(.7,.05,.3,1); transform: scaleY(0); }
.iris.opening .iris-mark   { transition: opacity 200ms; opacity: 0; }

/* ──────────────────────────────────────────────────────
   Nav
   ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  z-index: 100;
  background: transparent;
  transition: background 280ms, backdrop-filter 280ms, border-color 280ms;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,8,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--text-mid);
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
}
.nav-logo {
  width: 36px; height: 36px;
  display: block;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.nav-brand:hover .nav-logo {
  transform: rotate(-4deg) scale(1.04);
}
.foot-logo {
  width: 52px; height: 52px;
  display: block;
}
.nav-wordmark {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.32em;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text);
}
.nav-links {
  display: flex; gap: clamp(20px, 3vw, 48px);
}
.nav-links a {
  position: relative;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--text-mid);
  padding: 6px 0;
  transition: color 200ms;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
}
.nav-lang {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.24em;
  color: var(--text-mid);
}
.lang-btn { color: var(--text-mid); transition: color 180ms; padding: 4px 2px; }
.lang-btn.active { color: var(--accent); }
.lang-btn:hover { color: var(--text); }
.lang-sep { color: var(--text-mid); }

/* ──────────────────────────────────────────────────────
   Layout helpers
   ────────────────────────────────────────────────────── */
main { padding-top: var(--nav-h); min-height: 100vh; }
.wrap { padding: 0 var(--pad); max-width: 1440px; margin: 0 auto; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 400;
}
.divider {
  height: 1px; background: var(--text-dim);
  width: 100%; margin: 0;
}

/* Reveal */
.rev { opacity: 0; transform: translateY(24px); }
.rev.on {
  animation: rev-in 900ms cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes rev-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rev.d1.on { animation-delay: 80ms; }
.rev.d2.on { animation-delay: 160ms; }
.rev.d3.on { animation-delay: 240ms; }
.rev.d4.on { animation-delay: 320ms; }

/* SO highlight (with subtle pulse) */
.so-hl {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 0 18px rgba(200,169,110,0);
  animation: hl-breathe 5.5s ease-in-out infinite;
}
@keyframes hl-breathe {
  0%, 100% { text-shadow: 0 0 12px rgba(200,169,110,0); color: var(--accent); }
  50%      { text-shadow: 0 0 22px rgba(200,169,110,0.35); color: #DCB97A; }
}

/* ──────────────────────────────────────────────────────
   Hero (home)
   ────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(60px, 10vh, 120px) var(--pad);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-mark {
  display: inline-block;
  margin-bottom: 48px;
  will-change: transform;
  transition: transform 800ms cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 0 40px rgba(200,169,110,0.08));
}
.hero-mark img {
  width: clamp(160px, 22vw, 300px);
  height: auto;
  animation: moon-float 9s ease-in-out infinite;
}
@keyframes moon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(0.4deg); }
}
.hero-tag {
  font-family: var(--jp);
  font-size: clamp(30px, 4.8vw, 64px);
  font-weight: 200;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--moon);
}
:lang(en) .hero-tag, :lang(fr) .hero-tag, :lang(es) .hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.hero-tag .so-hl { display: inline-block; padding: 0 0.06em; }

.hero-sub {
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.hero-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 40px;
  text-align: center;
  font-size: 10px; letter-spacing: 0.34em;
  color: var(--text-mid);
  text-transform: uppercase;
}
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 12px;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--text-dim));
  animation: scroll-pulse 2.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-pulse {
  0%, 100% { transform: translateX(-50%) scaleY(0.4); opacity: 0.4; }
  50%      { transform: translateX(-50%) scaleY(1);   opacity: 1; }
}

/* Hero background — distant moon halo (parallax) */
.hero-halo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 38%, rgba(245,240,232,0.04) 0%, transparent 38%);
  pointer-events: none;
}

/* ──────────────────────────────────────────────────────
   Sections
   ────────────────────────────────────────────────────── */
section.block {
  padding: clamp(80px, 14vh, 160px) var(--pad);
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 64px;
  max-width: 1440px;
  margin-left: auto; margin-right: auto;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--text-mid); }

/* Page hero (films/news/about) */
.page-hero {
  padding: clamp(120px, 18vh, 200px) var(--pad) clamp(40px, 6vh, 80px);
  border-bottom: 1px solid var(--text-dim);
}
.page-hero-inner { max-width: 1440px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-top: 16px;
  color: var(--moon);
  text-wrap: balance;
}
.page-hero .eyebrow { color: var(--accent); }

/* ──────────────────────────────────────────────────────
   Philosophy (kinetic word reveal)
   ────────────────────────────────────────────────────── */
.philo {
  max-width: 920px; margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) var(--pad);
  position: relative;
}
.philo::before {
  content: "";
  position: absolute;
  left: 50%; top: 30px;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  transform: translateX(-50%);
}
.philo-body {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.9;
  color: var(--text);
  letter-spacing: 0.04em;
  text-align: center;
  text-wrap: pretty;
}
.philo-body p + p { margin-top: 1.3em; }
.philo-body .philo-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--moon);
  letter-spacing: 0.06em;
  margin-bottom: 1.6em !important;
}
:lang(ja) .philo-body {
  font-family: var(--jp);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 2.2;
}
:lang(ja) .philo-body .philo-line {
  font-family: var(--jp);
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.18em;
}
.philo-body .philo-rule {
  height: 1px;
  background: var(--text-dim);
  width: 80px;
  margin: 2.4em auto !important;
  padding: 0;
}
.philo-foot {
  margin-top: 56px;
  font-size: 11px; letter-spacing: 0.5em;
  color: var(--text-mid);
  text-align: center;
}
.philo-foot .dot { margin: 0 .6em; color: var(--accent); }

/* Kinetic word reveal */
.philo-body .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
}
.philo-body.on .w {
  animation: w-in 700ms cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes w-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

#phi-en, #phi-fr, #phi-es { display: none; }
html[lang="en"] #phi-ja, html[lang="en"] #phi-fr, html[lang="en"] #phi-es { display: none; }
html[lang="en"] #phi-en { display: block; }
html[lang="fr"] #phi-ja, html[lang="fr"] #phi-en, html[lang="fr"] #phi-es { display: none; }
html[lang="fr"] #phi-fr { display: block; }
html[lang="es"] #phi-ja, html[lang="es"] #phi-en, html[lang="es"] #phi-fr { display: none; }
html[lang="es"] #phi-es { display: block; }

/* ──────────────────────────────────────────────────────
   Mantra — film leader strip
   ────────────────────────────────────────────────────── */
.mantra {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--text-dim);
  border-bottom: 1px solid var(--text-dim);
  padding: 18px 0;
  background: var(--surface);
}
.mantra-track {
  display: flex;
  align-items: center;
  gap: 2.4em;
  white-space: nowrap;
  animation: mantra-scroll 90s linear infinite;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding-right: 2.4em;
}
.mantra-track i {
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: none;
  font-size: 13px;
  font-weight: 300;
  color: var(--accent);
}
.mantra-track .dot {
  color: var(--text-dim);
  font-size: 8px;
  letter-spacing: 0;
  opacity: 0.6;
}
@keyframes mantra-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────────────
   Films grid
   ────────────────────────────────────────────────────── */
.filterbar {
  display: flex; gap: 28px;
  align-items: center;
  padding: 0 var(--pad);
  max-width: 1440px; margin: 0 auto;
  border-bottom: 1px solid var(--text-dim);
  padding-bottom: 24px;
  margin-bottom: 48px;
}
.filter-btn {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 6px 2px;
  position: relative;
  transition: color 180ms;
}
.filter-btn.active { color: var(--text); }
.filter-btn.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -25px;
  height: 1px; background: var(--accent);
}
.filter-count {
  margin-left: auto;
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--text-mid);
}

.films-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 56px) clamp(16px, 2vw, 32px);
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--pad) 120px;
}
@media (max-width: 900px) { .films-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .films-grid { grid-template-columns: 1fr; } }

.film-card {
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
  width: 100%;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.film-card:hover { transform: translateY(-4px); }
.film-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--surface);
  overflow: hidden;
  border: 1px solid var(--text-dim);
  transition: border-color 320ms;
}
.film-poster::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient, linear-gradient(155deg, #1a1816 0%, #0a0908 70%));
  transition: transform 1200ms cubic-bezier(.2,.7,.2,1);
}
.film-card:hover .film-poster::before { transform: scale(1.06); }
.film-poster::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 6px, rgba(245,240,232,0.012) 6px 12px);
  mix-blend-mode: overlay;
}
.film-poster .ptitle {
  position: absolute; left: 16px; right: 16px; bottom: 18px;
  font-family: var(--jp);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.12em;
  line-height: 1.3;
  color: var(--moon);
}
.film-poster .pno {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--text-mid);
}
.film-poster .ptype {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
}
/* sprocket holes — film strip aesthetic */
.film-poster .sprockets {
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 8px;
  display: flex; flex-direction: column; justify-content: space-around;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms;
}
.film-poster .sprockets span {
  width: 4px; height: 6px;
  background: var(--bg);
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px var(--text-dim);
}
.film-poster .sprockets.r { left: auto; right: 6px; }
.film-card:hover .sprockets { opacity: 0.6; }
.film-card:hover .film-poster { border-color: var(--accent); }
.film-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
}
.film-title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
  transition: color 200ms;
}
.film-card:hover .film-title { color: var(--moon); }
.film-title-ja {
  display: block;
  font-family: var(--jp);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-mid);
  font-style: normal;
  margin-top: 6px;
}
.film-year {
  font-size: 12px; letter-spacing: 0.3em;
  color: var(--text-mid);
}

/* ──────────────────────────────────────────────────────
   Film modal
   ────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
}
.modal.open { display: flex; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(8,8,8,0.86);
  backdrop-filter: blur(8px);
  animation: fadein 240ms ease;
}
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.modal-panel {
  position: relative;
  width: min(1100px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--text-dim);
  animation: panel-in 460ms cubic-bezier(.2,.7,.2,1);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.modal-panel::-webkit-scrollbar { width: 4px; }
.modal-panel::-webkit-scrollbar-thumb { background: var(--text-dim); }
.modal-close {
  position: absolute; top: 18px; right: 22px;
  font-size: 28px; font-weight: 200; line-height: 1;
  color: var(--text-mid);
  z-index: 2;
}
.modal-close:hover { color: var(--accent); }
.modal-inner {
  display: flex;
  flex-direction: column;
}
.modal-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 800px) { .modal-top { grid-template-columns: 1fr; } }
.modal-poster {
  aspect-ratio: 2 / 3;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--text-dim);
}
.modal-poster::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gradient, linear-gradient(155deg, #1a1816, #0a0908));
}
.modal-poster .ptitle {
  position: absolute; left: 28px; right: 28px; bottom: 32px;
  font-family: var(--jp);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: var(--moon);
}
.modal-info {
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 28px;
}
.modal-info .mtag {
  font-size: 10px; letter-spacing: 0.4em; color: var(--accent);
  text-transform: uppercase;
}
.modal-info h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  color: var(--moon);
  margin-top: 8px;
}
.modal-info .mja {
  font-family: var(--jp);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--text-mid);
  margin-top: 10px;
}
.modal-info .msyn {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  letter-spacing: 0.02em;
}
.modal-info .mcredits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mid);
}
.modal-info .mcredits dt {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 4px;
}
.modal-info .mcredits dd { color: var(--text); line-height: 1.65; }
.modal-info .mcredits dd br + * { margin-top: 2px; }

/* Hide overlay text on poster when a real image is present */
.film-poster.has-poster .ptitle,
.film-poster.has-poster .pno,
.film-poster.has-poster .ptype,
.modal-poster.has-poster .ptitle { display: none; }

/* Type accent in film-meta year line (e.g. "2024 · Feature") */
.film-year em {
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0.3em;
  font-size: 10px;
  text-transform: uppercase;
  margin-left: 4px;
}
.mfests {
  border-top: 1px solid var(--text-dim);
  padding-top: 24px;
}
.mfests h4 {
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 400;
  margin-bottom: 12px;
}
.mfests ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mfests li {
  font-size: 13px; color: var(--text);
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
}
.mfests li em { color: var(--accent); font-style: normal; letter-spacing: 0.08em; font-size: 11px; }
.mtrailer {
  display: inline-flex; gap: 14px; align-items: center;
  border: 1px solid var(--text-dim);
  padding: 14px 22px;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  align-self: flex-start;
  color: var(--text);
  transition: border-color 200ms, color 200ms, padding-right 240ms;
}
.mtrailer:hover { border-color: var(--accent); color: var(--accent); padding-right: 32px; }
.mtrailer .arrow { font-size: 16px; }

/* ──────────────────────────────────────────────────────
   News
   ────────────────────────────────────────────────────── */
.news-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad) 120px;
}
.news-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--text-dim);
}
.news-item {
  display: grid;
  grid-template-columns: 140px 120px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--text-dim);
  transition: padding 240ms, background 240ms;
}
.news-item:hover { padding-left: 14px; background: linear-gradient(to right, rgba(200,169,110,0.04), transparent); }
.news-date {
  font-size: 12px; letter-spacing: 0.22em;
  color: var(--text-mid);
  font-variant-numeric: tabular-nums;
}
.news-tag {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
}
.news-body { display: flex; flex-direction: column; gap: 6px; }
.news-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}
.news-summary {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.news-link {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-mid);
  transition: color 200ms;
  white-space: nowrap;
}
.news-link:hover { color: var(--accent); }
@media (max-width: 800px) {
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-link { justify-self: start; }
}
.pager {
  display: flex; justify-content: space-between; align-items: center;
  padding: 40px 0;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-mid);
}
.pager button {
  color: var(--text-mid);
  transition: color 200ms;
}
.pager button:disabled { color: var(--text-dim); cursor: not-allowed; }
.pager button:not(:disabled):hover { color: var(--accent); }
.pager .pos { color: var(--text); font-variant-numeric: tabular-nums; }

/* ──────────────────────────────────────────────────────
   About
   ────────────────────────────────────────────────────── */
.about-hero {
  text-align: center;
  padding: clamp(120px, 18vh, 180px) var(--pad) clamp(40px, 6vh, 80px);
}
.about-hero .about-logo {
  width: 160px; height: 160px;
  margin: 0 auto 28px;
  animation: moon-float 9s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(245,240,232,0.06));
}
.about-hero .eyebrow { color: var(--accent); }
.about-hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 1;
  color: var(--moon);
  margin-top: 8px;
  text-wrap: balance;
}

.letter {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--pad);
}
.letter h2 {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 4.4vw, 56px);
  color: var(--moon);
  text-wrap: balance;
  margin-bottom: 48px;
}
.letter-body {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--text);
  text-wrap: pretty;
}
.letter-body p + p { margin-top: 1.2em; }
.letter-sig {
  margin-top: 56px;
  display: flex; flex-direction: column; gap: 6px;
  font-style: normal;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.letter-sig strong { color: var(--text); font-weight: 400; letter-spacing: 0.32em; }
:lang(ja) .letter-body {
  font-family: var(--jp);
  font-style: normal;
  letter-spacing: 0.06em;
  line-height: 2.1;
}
#letter-en, #letter-fr, #letter-es { display: none; }
html[lang="en"] #letter-ja, html[lang="en"] #letter-fr, html[lang="en"] #letter-es { display: none; }
html[lang="en"] #letter-en { display: block; }
html[lang="fr"] #letter-ja, html[lang="fr"] #letter-en, html[lang="fr"] #letter-es { display: none; }
html[lang="fr"] #letter-fr { display: block; }
html[lang="es"] #letter-ja, html[lang="es"] #letter-en, html[lang="es"] #letter-fr { display: none; }
html[lang="es"] #letter-es { display: block; }

.studio-table {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--pad);
  border-top: 1px solid var(--text-dim);
  border-bottom: 1px solid var(--text-dim);
}
.studio-table h3 {
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 40px;
}
.studio-table dl {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
}
.studio-table dt, .studio-table dd {
  padding: 18px 0;
  border-bottom: 1px solid var(--text-dim);
  font-size: 14px;
}
.studio-table dl > div { display: contents; }
.studio-table dt {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-mid);
}
.studio-table dd { color: var(--text); letter-spacing: 0.04em; line-height: 1.6; }
.studio-table dl > *:last-child, .studio-table dl > *:nth-last-child(2) { border-bottom: 0; }
@media (max-width: 600px) {
  .studio-table dl { grid-template-columns: 1fr; }
  .studio-table dt { padding-bottom: 4px; border-bottom: 0; }
  .studio-table dd { padding-top: 4px; }
}

.artist-teaser {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(80px, 14vh, 140px) var(--pad);
  text-align: center;
}
.coming-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  margin-bottom: 28px;
  position: relative;
}
.coming-badge::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: badge-pulse 2.4s ease-out infinite;
}
@keyframes badge-pulse {
  0%   { transform: scale(1);    opacity: 0.4; }
  100% { transform: scale(1.25); opacity: 0; }
}
.artist-teaser p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.6;
  color: var(--text);
  letter-spacing: 0.02em;
}
:lang(ja) .artist-teaser p { font-family: var(--jp); font-style: normal; letter-spacing: 0.08em; }

/* ──────────────────────────────────────────────────────
   Home recent strip
   ────────────────────────────────────────────────────── */
.recent {
  padding: clamp(80px, 14vh, 160px) var(--pad);
  border-top: 1px solid var(--text-dim);
  border-bottom: 1px solid var(--text-dim);
}
.recent-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  max-width: 1440px; margin: 0 auto 56px;
}
.recent-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(40px, 5vw, 72px);
  color: var(--moon);
  line-height: 1;
  text-wrap: balance;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.4vw, 40px);
  max-width: 1440px; margin: 0 auto;
}
@media (max-width: 900px) { .recent-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .recent-grid { grid-template-columns: 1fr; } }
.recent-more {
  text-align: right;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-mid);
  transition: color 200ms, letter-spacing 200ms;
}
.recent-more:hover { color: var(--accent); letter-spacing: 0.42em; }

.home-news {
  padding: clamp(80px, 14vh, 160px) var(--pad);
}

/* ──────────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────────── */
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 40px var(--pad);
  border-top: 1px solid var(--text-dim);
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--text-mid);
}
.foot-left { display: flex; align-items: center; gap: 20px; }
.foot-since { letter-spacing: 0.3em; }
.foot-center { text-align: center; }
.foot-right {
  display: flex; gap: 24px;
  justify-content: flex-end;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}
.foot-right a { color: var(--text-mid); transition: color 200ms; }
.foot-right a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .foot { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .foot-left { justify-content: center; }
  .foot-right { justify-content: center; }
}

/* Empty / loading */
.empty {
  text-align: center; padding: 80px 20px;
  color: var(--text-mid);
  font-style: italic;
}

/* Quote vertical rule helper (for letter) */
.vrule {
  width: 1px; height: 60px; background: var(--accent);
  margin: 0 auto 36px;
}

/* ──────────────────────────────────────────────────────
   Article / News dispatch single view
   ────────────────────────────────────────────────────── */
.article-pageHero {
  padding: clamp(120px, 18vh, 200px) var(--pad) clamp(40px, 6vh, 64px);
}
.article-pageHero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.article-back {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 56px;
  transition: color 200ms, letter-spacing 200ms;
}
.article-back:hover { color: var(--accent); letter-spacing: 0.42em; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}
.article-meta .dot { color: var(--text-mid); }
.article-meta-tag { color: var(--accent); }

.article-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--moon);
  margin-bottom: 36px;
  text-wrap: balance;
}
:lang(ja) .article-title {
  font-family: var(--jp);
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.article-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--text);
  text-wrap: pretty;
  padding-left: 24px;
  border-left: 1px solid var(--accent);
  margin-bottom: 40px;
}
:lang(ja) .article-lead {
  font-family: var(--jp);
  line-height: 1.95;
  letter-spacing: 0.04em;
}

.article-byline {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.article-byline .dot { opacity: 0.7; }

/* Hero image placeholder */
.article-hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto clamp(60px, 8vh, 100px);
  padding: 0 var(--pad);
}
.article-hero-bg {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gradient, linear-gradient(155deg,#1a1816, #0a0908));
  overflow: hidden;
  border: 1px solid var(--text-dim);
}
.article-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(245,240,232,0.015) 12px 24px);
}
.article-hero-meta {
  position: absolute;
  left: var(--pad); right: var(--pad);
  top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-mid);
  pointer-events: none;
}
.article-hero figcaption {
  margin-top: 16px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-mid);
}
.article-hero figcaption code {
  color: var(--accent);
  font-family: inherit;
}

/* Body */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(60px, 10vh, 100px);
}
.article-body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--text);
}
:lang(ja) .article-body {
  font-family: var(--jp);
  font-weight: 300;
  line-height: 2.0;
  letter-spacing: 0.04em;
}
.article-body p { margin-bottom: 1.4em; text-wrap: pretty; }
.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  line-height: 0.9;
  float: left;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--moon);
  font-weight: 300;
}
:lang(ja) .article-body p:first-of-type::first-letter {
  font-size: 1em;
  float: none;
  padding: 0;
}

/* Pull quote */
.article-quote {
  position: relative;
  margin: clamp(48px, 8vh, 72px) -8px;
  padding: 24px 36px 24px 56px;
  border-left: 1px solid var(--accent);
}
.article-quote .qmark {
  position: absolute;
  left: 8px; top: -16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
}
.article-quote p {
  font-family: var(--serif) !important;
  font-style: italic;
  font-weight: 300 !important;
  font-size: clamp(22px, 2.6vw, 30px) !important;
  line-height: 1.4 !important;
  color: var(--moon);
  margin-bottom: 18px !important;
  letter-spacing: 0 !important;
  text-wrap: pretty;
}
:lang(ja) .article-quote p {
  font-family: var(--jp) !important;
  font-style: normal;
  letter-spacing: 0.04em !important;
  line-height: 1.9 !important;
}
.article-quote p::first-letter {
  font-size: 1em !important;
  float: none !important;
  padding: 0 !important;
  font-weight: 300 !important;
}
.article-quote cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* Footer (share + tagline) */
.article-footer {
  margin-top: clamp(60px, 10vh, 100px);
  padding-top: 28px;
  border-top: 1px solid var(--text-dim);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 700px) {
  .article-footer { grid-template-columns: 1fr; }
}
.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.article-share-label { color: var(--text-mid); }
.article-share button {
  color: var(--text-mid);
  transition: color 200ms;
  letter-spacing: 0.32em;
}
.article-share button:hover { color: var(--accent); }
.article-share-toast {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 220ms;
}
.article-share-toast.on { opacity: 1; }
.article-tagline {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-align: right;
}
.article-tagline em {
  font-style: italic;
  color: var(--accent);
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-right: 8px;
}

/* Related */
.article-related {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(80px, 14vh, 140px) var(--pad);
  border-top: 1px solid var(--text-dim);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .grain-layer, .so-hl, .hero-mark img, .scroll-cue, .mantra-track, .coming-badge::before, .about-hero .about-logo {
    animation: none !important;
  }
  .rev { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ──────────────────────────────────────────────────────
   Media: news hero image, film poster fallback, stills, video embed
   ────────────────────────────────────────────────────── */

/* Article hero image (when news entry has hero_image) — show full image, no crop */
.article-hero-img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--text-dim);
  background: #0a0a0a;
}
@media (max-width: 600px) {
  .article-hero-img { max-height: 55vh; }
}

/* Film poster with uploaded image — contain so the full poster is visible */
.film-poster.has-poster::before,
.modal-poster.has-poster::before {
  background: #1a1a1a var(--poster) center/contain no-repeat;
}

/* Film poster fallback: no image AND no gradient → dark grey + centred logo */
.film-poster.no-art {
  background: #1a1a1a;
}
.film-poster.no-art::before {
  background: url("logo.png") center/40% no-repeat;
  opacity: 0.45;
}
.modal-poster.no-art {
  background: #1a1a1a;
}
.modal-poster.no-art::before {
  background: url("logo.png") center/40% no-repeat;
  opacity: 0.45;
}

/* Embedded trailer (YouTube / Vimeo) */
.mtrailer-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-top: 1px solid var(--text-dim);
}
.mtrailer-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Stills gallery */
.mstills {
  padding: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--text-dim);
}
.mstills h4 {
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 400;
  margin-bottom: 14px;
}
.mstills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.mstills-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0a0a0a;
  border: 1px solid var(--text-dim);
  transition: opacity 200ms;
}
.mstills-grid img:hover { opacity: 0.85; }

/* ──────────────────────────────────────────────────────
   Founder portrait (letter section)
   ────────────────────────────────────────────────────── */
.letter-portrait {
  display: block;
  max-width: 220px;
  width: 100%;
  margin: 0 auto 40px;
  position: relative;
}
.letter-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--text-dim);
}
@media (max-width: 600px) {
  .letter-portrait { max-width: 160px; margin-bottom: 28px; }
}

/* ──────────────────────────────────────────────────────
   Media protection — visible copyright watermark + drag/select disable
   ────────────────────────────────────────────────────── */
/* Disable drag, OS context menu, text selection on every media element */
img, video, iframe,
.film-poster, .modal-poster, .article-hero,
.mtrailer-embed, .mstills-grid, .letter-portrait, .media-wrap {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Generic wrapper for protecting a bare <img> (stills, portrait) */
.media-wrap {
  position: relative;
  display: block;
}
.media-wrap > img {
  display: block;
  width: 100%;
  height: auto;
}

/* Copyright watermark overlay (bottom-right corner of each media frame) */
.article-hero::after,
.film-poster::after,
.modal-poster::after,
.letter-portrait::after,
.media-wrap::after {
  content: '© SO STUDIOS';
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 3;
  user-select: none;
  -webkit-user-select: none;
}
/* Slightly larger watermark on hero-scale media */
.article-hero::after {
  font-size: 10px;
  bottom: 14px;
  right: 18px;
}

/* ──────────────────────────────────────────────────────
   Contact page (form + map)
   ────────────────────────────────────────────────────── */
.contact-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 80px) var(--pad) clamp(80px, 12vh, 140px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-label > span {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  background: var(--surface);
  border: 1px solid var(--text-dim);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 0;
  letter-spacing: 0.02em;
  transition: border-color 200ms;
  cursor: text;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.contact-submit {
  align-self: flex-start;
  border: 1px solid var(--text-dim);
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color 200ms, color 200ms, padding-right 240ms;
  margin-top: 8px;
}
.contact-submit:hover {
  border-color: var(--accent);
  color: var(--accent);
  padding-right: 40px;
}
.contact-submit:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.contact-note {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.contact-success {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--moon);
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--accent);
  background: rgba(200,169,110,0.04);
  letter-spacing: 0.04em;
}
:lang(ja) .contact-success { font-family: var(--jp); font-style: normal; }

.contact-map {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 1px solid var(--text-dim);
  filter: grayscale(0.4) contrast(0.95);
}
@media (max-width: 800px) {
  .contact-map iframe { height: 280px; }
}
.contact-address {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  letter-spacing: 0.02em;
}
.contact-address .eyebrow { margin-bottom: 10px; display: block; }
.contact-address p { margin-bottom: 6px; }

/* ──────────────────────────────────────────────────────
   Mobile: cap modal poster height when stacked
   ────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .modal-poster {
    aspect-ratio: auto;
    height: 52vh;
  }
}

/* ──────────────────────────────────────────────────────
   Mobile & tablet refinements
   ────────────────────────────────────────────────────── */

/* Dynamic viewport units (dvh) where supported — accounts for
   iOS Safari's collapsing URL bar so heights don't jump */
.hero             { min-height: calc(100dvh - var(--nav-h)); }
.modal-panel      { max-height: 88dvh; }
.article-hero-img { max-height: 75dvh; }
@media (max-width: 600px) {
  .article-hero-img { max-height: 55dvh; }
}
@media (max-width: 800px) {
  .modal-poster { height: 52dvh; }
}

/* Touch devices: kill the blue tap-flash */
@media (hover: none) {
  body { -webkit-tap-highlight-color: transparent; }
}

/* iOS momentum scrolling inside the modal */
.modal-panel { -webkit-overflow-scrolling: touch; }

/* Tablets in portrait (≤ 900px) — modest paddings */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
}

/* Phones (≤ 720px) — nav compaction, tap targets, layout tweaks */
@media (max-width: 720px) {
  .nav { padding: 0 16px; }
  .nav-brand { gap: 0; }
  .nav-wordmark { display: none; }
  .nav-logo { width: 32px; height: 32px; }
  .nav-links { gap: 14px; }
  .nav-links a {
    font-size: 10px;
    letter-spacing: 0.18em;
    padding: 12px 0;  /* taller tap area */
  }
  .nav-lang { gap: 4px; }
  .lang-btn { padding: 8px 6px; font-size: 10px; }
  .lang-sep { font-size: 10px; }

  /* Modal close — proper 44×44 touch target */
  .modal-close {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    top: 6px; right: 6px;
    font-size: 24px;
  }
  /* Modal info padding tighter on mobile */
  .modal-info { padding: 26px 22px; gap: 22px; }
  .mfests, .mstills { padding: 22px; }

  /* Filter bar — wider tap area */
  .filter-btn { padding: 10px 2px; }
  .filterbar { gap: 18px; padding-bottom: 18px; margin-bottom: 32px; }
  .filter-btn.active::after { bottom: -19px; }

  /* News list — vertical layout already at 800px; just tap area */
  .news-item { padding: 22px 0; gap: 6px; }
  .news-item:hover { padding-left: 0; background: none; }
  .news-title { font-size: 18px; }
  .news-link { font-size: 10px; padding: 6px 0; }

  /* Pager buttons */
  .pager button { padding: 10px 6px; }

  /* Hero — slightly tighter top padding */
  .hero { padding-top: 32px; }
  .hero-sub { font-size: 12px; letter-spacing: 0.28em; }
  .scroll-cue { display: none; }  /* save a bit of vertical space */

  /* Trailer link + article share */
  .mtrailer { padding: 16px 22px; font-size: 10px; }
  .article-share { gap: 14px; }
  .article-share button { padding: 8px 4px; }

  /* Marquee — slightly smaller */
  .mantra-track { font-size: 10px; letter-spacing: 0.32em; }
  .mantra-track i { font-size: 11px; }

  /* Contact form — 16px to suppress iOS auto-zoom on focus */
  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    padding: 14px;
  }
  .contact-submit { padding: 16px 32px; align-self: stretch; text-align: center; }
  .contact-map iframe { height: 240px; }

  /* Footer — center everything; comfortable spacing */
  .foot { gap: 16px; padding: 32px 16px; font-size: 10px; }
  .foot-right { gap: 16px; flex-wrap: wrap; }
  .foot-right a { padding: 6px 0; }

  /* Intro film leader — slightly smaller meta text */
  .intro-meta { font-size: 9px; letter-spacing: 0.32em; }
  .intro-skip { font-size: 10px; padding: 6px 10px; top: 16px; right: 16px; }
}

/* Very narrow phones (≤ 380px) — last-resort squeeze */
@media (max-width: 380px) {
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 9px; letter-spacing: 0.12em; }
  .nav-lang { gap: 3px; }
  .lang-btn { padding: 6px 4px; font-size: 9px; }
  .lang-sep { font-size: 9px; }
}
