/* ==========================================================================
   SALTALIA — editorial / cinematic rebuild v2
   ========================================================================== */
:root {
  --bg: #050508;
  --bg-soft: #0a0a12;
  --panel: #0d0d17;
  --line: rgba(255, 255, 255, 0.1);
  --line-gold: rgba(214, 179, 106, 0.4);
  --text: #efece4;
  --muted: rgba(214, 211, 222, 0.66);
  --faint: rgba(214, 211, 222, 0.38);
  --gold: #d6b36a;
  --gold-bright: #f0d894;
  --serif-jp: "Shippori Mincho", "Noto Serif JP", serif;
  --serif-en: "Cinzel", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --gutter: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: auto; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 2;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

::selection { background: rgba(214, 179, 106, 0.3); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(214, 179, 106, 0.4); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* film grain */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  /* light: static grain is cheaper than animating a full-screen layer */
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ==========================================================================
   loader
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.9s ease 0.15s, visibility 0.9s ease 0.15s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-mark {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.loader-mark .word {
  font-family: var(--serif-en);
  font-size: clamp(1.2rem, 3.4vw, 2rem);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--text);
}
.loader-mark .word span { opacity: 0; animation: letterIn 0.9s var(--ease) forwards; }
@keyframes letterIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.loader-line {
  width: 120px; height: 1px;
  background: rgba(255, 255, 255, 0.12);
  position: relative; overflow: hidden;
}
.loader-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: loadBar 1.1s var(--ease) 0.2s forwards;
}
@keyframes loadBar { to { transform: translateX(0); } }

/* scroll progress */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 110;
  pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform-origin: left;
  transform: scaleX(0);
}

/* ==========================================================================
   sky
   ========================================================================== */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#starCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-glow-1, .sky-glow-2 { position: absolute; inset: 0; filter: blur(48px); }
.sky-glow-1 {
  background: radial-gradient(ellipse 40% 30% at 78% 12%, rgba(90, 82, 160, 0.35), transparent 70%);
  /* light: keep the glow, skip the expensive full-screen blur animation */
}
.sky-glow-2 {
  background: radial-gradient(ellipse 35% 28% at 15% 80%, rgba(214, 179, 106, 0.12), transparent 70%);
  /* light: keep the glow, skip the expensive full-screen blur animation */
}
@keyframes skyDrift { from { transform: translate3d(-1.5%, -1%, 0); } to { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); } }

main, .site-footer { position: relative; z-index: 1; }

.chapter, .visit, .page-hero {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}
.hero { content-visibility: visible; }

/* ==========================================================================
   header / menu
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  transition: padding 0.5s var(--ease);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header.is-scrolled { padding-top: 14px; padding-bottom: 14px; }
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.85), transparent);
  opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }

.brand {
  position: relative;
  font-family: var(--serif-en);
  font-size: 1.05rem;
  letter-spacing: 0.42em;
  display: inline-flex; align-items: center; gap: 12px;
}
.brand i {
  font-style: normal; color: var(--gold);
  text-shadow: 0 0 18px rgba(214, 179, 106, 0.9);
  animation: markPulse 4s ease-in-out infinite;
}
@keyframes markPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.header-meta {
  position: relative;
  display: flex; align-items: center; gap: 28px;
  font-family: var(--serif-en);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--faint);
}
.header-meta .clock { min-width: 88px; text-align: right; }

.menu-btn {
  position: relative;
  width: 56px; height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 5, 8, 0.4);
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.4s ease, transform 0.4s var(--ease);
}
.menu-btn:hover { border-color: var(--line-gold); transform: scale(1.06); }
.menu-btn span {
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.45s var(--ease), background 0.3s;
}
.menu-btn span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.menu-btn span:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }
body.menu-open .menu-btn span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* fullscreen menu */
.menu {
  position: fixed; inset: 0; z-index: 115;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 var(--gutter);
  clip-path: circle(0% at calc(100% - 54px - var(--gutter)) 54px);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0.8s;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 54px - var(--gutter)) 54px); visibility: visible; }
.menu-nav { display: grid; gap: 4px; }
.menu-nav a {
  position: relative;
  display: flex; align-items: baseline; gap: 22px;
  padding: 14px 0;
  font-family: var(--serif-jp);
  font-size: clamp(1.7rem, 4.6vw, 3rem);
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.4s ease, padding-left 0.5s var(--ease);
  opacity: 0; transform: translateY(26px);
}
body.menu-open .menu-nav a { opacity: 1; transform: none; transition: color 0.4s, padding-left 0.5s var(--ease), opacity 0.7s var(--ease), transform 0.7s var(--ease); }
body.menu-open .menu-nav a:nth-child(1) { transition-delay: 0s, 0s, 0.18s, 0.18s; }
body.menu-open .menu-nav a:nth-child(2) { transition-delay: 0s, 0s, 0.24s, 0.24s; }
body.menu-open .menu-nav a:nth-child(3) { transition-delay: 0s, 0s, 0.3s, 0.3s; }
body.menu-open .menu-nav a:nth-child(4) { transition-delay: 0s, 0s, 0.36s, 0.36s; }
body.menu-open .menu-nav a:nth-child(5) { transition-delay: 0s, 0s, 0.42s, 0.42s; }
body.menu-open .menu-nav a:nth-child(6) { transition-delay: 0s, 0s, 0.48s, 0.48s; }
.menu-nav a em {
  font-style: normal;
  font-family: var(--serif-en);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.75;
}
.menu-nav a:hover { color: var(--text); padding-left: 18px; }
.menu-nav a::before {
  content: ""; position: absolute; left: 0; bottom: 6px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(214, 179, 106, 0.4), transparent 65%);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.menu-nav a:hover::before { transform: scaleX(1); }
.menu-aside {
  display: grid; gap: 10px;
  text-align: right;
  font-family: var(--serif-en);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  color: var(--faint);
}
.menu-aside strong { color: var(--gold); font-weight: 500; }

/* ==========================================================================
   hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--gutter) 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero-image {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, var(--bg) 22%, rgba(5, 5, 8, 0.55) 55%, rgba(5, 5, 8, 0.35) 74%, var(--bg) 100%),
    linear-gradient(to top, var(--bg) 4%, transparent 36%),
    linear-gradient(to bottom, rgba(5, 5, 8, 0.8) 0%, transparent 32%),
    url("assets/saltalia-hero-clean.webp") 68% center / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 3.2s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.16); filter: blur(6px); } to { transform: scale(1.06); filter: blur(0); } }
.hero-word {
  position: absolute; left: 0; right: 0; bottom: 4vh; z-index: -1;
  font-family: var(--serif-en);
  font-size: clamp(4.5rem, 15vw, 15rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  user-select: none;
  pointer-events: none;
}
.hero-inner { max-width: 1180px; width: 100%; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--serif-en);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-bottom: 36px;
}
.hero-eyebrow::after { content: ""; width: 70px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.hero h1 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(2.5rem, 7.2vw, 6rem);
  line-height: 1.42;
  letter-spacing: 0.06em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
body.is-ready .hero h1 .line:nth-child(1) > span { transform: none; transition-delay: 0.55s; }
body.is-ready .hero h1 .line:nth-child(2) > span { transform: none; transition-delay: 0.7s; }
.hero-lead {
  margin: 38px 0 52px;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.98rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity 1.1s var(--ease) 1.05s, transform 1.1s var(--ease) 1.05s;
}
body.is-ready .hero-lead { opacity: 1; transform: none; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 18px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 1.1s var(--ease) 1.25s, transform 1.1s var(--ease) 1.25s;
}
body.is-ready .hero-actions { opacity: 1; transform: none; }

.hero-side {
  position: absolute; right: calc(var(--gutter) * 0.5); top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif-jp);
  font-size: 0.82rem;
  letter-spacing: 0.5em;
  color: var(--faint);
  display: flex; align-items: center; gap: 20px;
}
.hero-side::after { content: ""; width: 1px; height: 90px; background: linear-gradient(to bottom, var(--line-gold), transparent); }

.hero-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--serif-en);
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  color: var(--faint);
}
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-cue::after {
  content: ""; width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  30% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* ==========================================================================
   buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 190px;
  padding: 17px 34px;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.4s, color 0.4s;
}
.btn:hover { transform: translateY(-3px); }
.btn .arrow { font-family: var(--serif-en); transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-gold {
  color: #171204;
  font-weight: 600;
  background: linear-gradient(115deg, #b9924c, var(--gold-bright) 50%, #b9924c);
  background-size: 220% 100%;
  box-shadow: 0 8px 30px rgba(214, 179, 106, 0.2);
}
.btn-gold:hover { background-position: 100% 0; box-shadow: 0 16px 44px rgba(214, 179, 106, 0.32); }
.btn-line { border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(6px); }
.btn-line:hover { border-color: var(--line-gold); background: rgba(214, 179, 106, 0.06); }

/* ==========================================================================
   marquee
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 64px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif-jp);
  font-size: 1.05rem;
  letter-spacing: 0.26em;
  white-space: nowrap;
  color: var(--muted);
}
.marquee-track em {
  font-style: normal; font-family: var(--serif-en);
  color: var(--gold); opacity: 0.85;
  text-shadow: 0 0 14px rgba(214, 179, 106, 0.6);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   chapters (common section layout)
   ========================================================================== */
.chapter {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(90px, 13vh, 160px) var(--gutter);
}
.chapter-head {
  display: flex; align-items: baseline; gap: 26px;
  margin-bottom: clamp(44px, 7vh, 80px);
}
.chapter-num {
  font-family: var(--serif-en);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  white-space: nowrap;
}
.chapter-num::after { content: ""; display: inline-block; vertical-align: middle; width: 46px; height: 1px; margin-left: 18px; background: linear-gradient(90deg, var(--gold), transparent); }
.chapter-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  letter-spacing: 0.1em;
  line-height: 1.3;
}
.chapter-title small {
  display: block;
  margin-top: 10px;
  font-family: var(--serif-en);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.44em;
  color: var(--faint);
  text-transform: uppercase;
}
.chapter-ghost {
  position: absolute; right: var(--gutter); top: clamp(60px, 9vh, 120px);
  font-family: var(--serif-en);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none; user-select: none;
}

/* ---------- story ---------- */
.story-layout { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.story-text p { color: var(--muted); margin-bottom: 26px; font-size: 0.98rem; }
.story-text .em {
  font-family: var(--serif-jp);
  color: var(--gold-bright);
  font-size: 1.22rem;
  line-height: 2.1;
  letter-spacing: 0.08em;
  border-left: 1px solid var(--line-gold);
  padding-left: 24px;
  margin-top: 40px;
}
.story-visual { position: sticky; top: 120px; }
.constellation {
  position: relative;
  aspect-ratio: 1 / 0.86;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: radial-gradient(circle at 60% 30%, rgba(90, 82, 160, 0.12), transparent 60%);
  overflow: hidden;
}
.constellation::after {
  content: "STAR MAP — SALTALIA";
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--serif-en);
  font-size: 0.58rem; letter-spacing: 0.3em;
  color: var(--faint);
}
.constellation svg { position: absolute; inset: 8%; width: 84%; height: 84%; }
.constellation polyline {
  fill: none; stroke: rgba(214, 179, 106, 0.5); stroke-width: 1;
  stroke-dasharray: 5 8;
  animation: dash 40s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -800; } }
.constellation i {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9), 0 0 34px rgba(214, 179, 106, 0.5);
  animation: starPulse 2.8s ease-in-out infinite alternate;
}
.constellation i:nth-child(2) { left: 16%; top: 66%; }
.constellation i:nth-child(3) { left: 34%; top: 30%; animation-delay: 0.3s; }
.constellation i:nth-child(4) { left: 52%; top: 48%; animation-delay: 0.6s; }
.constellation i:nth-child(5) { left: 70%; top: 20%; animation-delay: 0.9s; }
.constellation i:nth-child(6) { left: 85%; top: 58%; animation-delay: 1.2s; }
@keyframes starPulse { to { transform: scale(1.6); opacity: 0.6; } }

/* ---------- index rows (lore / guide) ---------- */
.index-rows { border-top: 1px solid var(--line); }
.index-row {
  position: relative;
  display: grid;
  grid-template-columns: 90px 260px 1fr 40px;
  gap: 28px;
  align-items: center;
  padding: 40px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.5s ease, padding-left 0.5s var(--ease);
}
.index-row:hover { background: linear-gradient(90deg, rgba(214, 179, 106, 0.05), transparent 70%); padding-left: 22px; }
.index-row .no {
  font-family: var(--serif-en);
  font-size: 0.72rem; letter-spacing: 0.24em;
  color: var(--faint);
  transition: color 0.4s;
}
.index-row:hover .no { color: var(--gold); }
.index-row .ttl {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
}
.index-row .ttl small {
  display: block;
  font-family: var(--serif-en);
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); opacity: 0.8;
  margin-top: 6px;
}
.index-row .desc { color: var(--muted); font-size: 0.92rem; line-height: 1.95; }
.index-row .mark {
  font-family: var(--serif-en);
  color: var(--gold);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.index-row:hover .mark { opacity: 1; transform: none; }

/* ---------- cast panels ---------- */
.cast-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1.15fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  padding: clamp(40px, 6vh, 70px) 0;
}
.cast-panel + .cast-panel { border-top: 1px solid var(--line); }
.cast-panel.reverse { grid-template-columns: 1.15fr minmax(300px, 0.85fr); }
.cast-panel.reverse .cast-figure { order: 2; }
.cast-panel.reverse .cast-info { order: 1; }
.cast-figure {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 32%, rgba(90, 82, 160, 0.16), rgba(255, 255, 255, 0.02) 70%);
  border: 1px solid var(--line);
  padding: clamp(16px, 2.4vw, 30px);
  transition: border-color 0.5s ease;
}
.cast-panel:hover .cast-figure { border-color: var(--line-gold); }
.cast-figure::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(214, 179, 106, 0.14);
  border-radius: 2px;
  pointer-events: none;
}
.cast-figure img {
  width: 100%; max-height: 460px; object-fit: contain;
  transition: transform 0.9s var(--ease);
}
.cast-panel:hover .cast-figure img { transform: scale(1.035); }
.cast-figure .sign {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--serif-en);
  font-size: 0.6rem; letter-spacing: 0.32em;
  color: var(--gold); opacity: 0.85;
}
.cast-info .role {
  font-family: var(--serif-en);
  font-size: 0.68rem; letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.cast-info .role::after { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.cast-name {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 6px;
}
.cast-name-en {
  font-family: var(--serif-en);
  font-size: 0.68rem; letter-spacing: 0.42em;
  color: var(--faint); text-transform: uppercase;
  margin-bottom: 26px;
}
.cast-catch {
  font-family: var(--serif-jp);
  color: var(--gold-bright);
  font-size: 1.06rem;
  letter-spacing: 0.06em;
  line-height: 2;
  margin-bottom: 20px;
}
.cast-info > p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.cast-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 34px; }
.cast-tags li {
  font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--muted);
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.4s, color 0.4s;
}
.cast-tags li:hover { border-color: var(--line-gold); color: var(--gold-bright); }
.text-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif-en);
  font-size: 0.74rem; letter-spacing: 0.3em;
  color: var(--text);
  padding-bottom: 8px;
}
.text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.text-link:hover::after { transform: scaleX(0.4); }
.text-link .arrow { color: var(--gold); transition: transform 0.4s var(--ease); }
.text-link:hover .arrow { transform: translateX(6px); }

.cast-more { margin-top: clamp(40px, 6vh, 64px); text-align: center; }


/* ---------- constellation cast portrait ---------- */
.constellation-portrait {
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.constellation-portrait::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(214, 179, 106, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(90, 82, 160, 0.2), inset 0 0 50px rgba(214, 179, 106, 0.04);
  z-index: -1;
}
.gemini-symbol {
  font-family: var(--serif-en);
  font-size: clamp(8rem, 18vw, 13rem);
  color: rgba(214, 179, 106, 0.72);
  text-shadow: 0 0 30px rgba(214, 179, 106, 0.28);
  line-height: 1;
}
.portrait-label {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  text-align: center;
  font-family: var(--serif-en);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--faint);
}
.constellation-dots i {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold);
}
.constellation-dots i:nth-child(1) { left: 20%; top: 26%; }
.constellation-dots i:nth-child(2) { left: 32%; top: 17%; }
.constellation-dots i:nth-child(3) { right: 30%; top: 21%; }
.constellation-dots i:nth-child(4) { right: 18%; top: 34%; }
.constellation-dots i:nth-child(5) { left: 24%; bottom: 30%; }
.constellation-dots i:nth-child(6) { left: 39%; bottom: 19%; }
.constellation-dots i:nth-child(7) { right: 35%; bottom: 23%; }
.constellation-dots i:nth-child(8) { right: 21%; bottom: 35%; }
.cast-nickname { font-size: 0.58em; color: var(--muted); letter-spacing: 0.06em; }
.profile .profile-wide { grid-column: 1 / -1; }

/* ---------- event ---------- */
.event-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.event-date {
  font-family: var(--serif-en);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: var(--text);
}
.event-date b { color: var(--gold); font-weight: 600; }
.event-date small {
  display: block;
  font-size: 0.9rem; letter-spacing: 0.3em;
  color: var(--faint);
  margin-top: 14px;
}
.event-desc { margin-top: 30px; color: var(--muted); font-size: 0.95rem; max-width: 420px; }
.event-facts { margin-top: 34px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.event-facts div {
  display: grid; grid-template-columns: 110px 1fr; gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.event-facts dt { color: var(--gold); letter-spacing: 0.12em; font-weight: 500; }
.event-facts dd { color: var(--muted); }

.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-gold), var(--line));
}
.timeline li { position: relative; padding: 16px 0 16px 6px; }
.timeline li::before {
  content: ""; position: absolute; left: -32.5px; top: 26px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
  box-shadow: 0 0 12px rgba(214, 179, 106, 0.5);
  transition: background 0.4s;
}
.timeline li:hover::before { background: var(--gold); }
.timeline time {
  display: block;
  font-family: var(--serif-en);
  font-size: 0.8rem; letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 4px;
}
.timeline p { color: var(--muted); font-size: 0.94rem; line-height: 1.9; }

/* ---------- visit ---------- */
.visit {
  position: relative;
  text-align: center;
  padding: clamp(110px, 16vh, 190px) var(--gutter);
  overflow: hidden;
}
.visit::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: min(88vw, 900px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(214, 179, 106, 0.14);
  border-radius: 50%;
  animation: slowSpin 60s linear infinite;
  pointer-events: none;
}
.visit::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: min(66vw, 640px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  animation: slowSpin 90s linear infinite reverse;
  pointer-events: none;
}
@keyframes slowSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.visit .chapter-num { justify-content: center; display: inline-flex; margin-bottom: 26px; }
.visit h2 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  letter-spacing: 0.12em;
  line-height: 1.6;
  margin-bottom: 26px;
}
.visit p { color: var(--muted); max-width: 520px; margin: 0 auto 44px; font-size: 0.95rem; }
.visit-meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 4vw, 60px);
  margin-bottom: 50px;
  font-size: 0.86rem;
}
.visit-meta span { color: var(--faint); letter-spacing: 0.14em; }
.visit-meta b { color: var(--gold-bright); font-weight: 500; margin-left: 10px; letter-spacing: 0.1em; }

/* ==========================================================================
   footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 9vh, 100px) var(--gutter) 40px;
  overflow: hidden;
}
.footer-word {
  font-family: var(--serif-en);
  font-size: clamp(3.4rem, 13vw, 12rem);
  line-height: 1;
  letter-spacing: 0.1em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  transition: color 1s ease, text-shadow 1s ease;
  user-select: none;
  margin-bottom: clamp(40px, 7vh, 70px);
}
.footer-word:hover {
  color: rgba(214, 179, 106, 0.16);
  text-shadow: 0 0 60px rgba(214, 179, 106, 0.25);
}
.footer-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.12em;
}
.footer-bar nav { display: flex; gap: 26px; }
.footer-bar nav a { color: var(--faint); transition: color 0.3s; }
.footer-bar nav a:hover { color: var(--gold); }
.to-top { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); transition: color 0.3s; }
.to-top:hover { color: var(--gold); }

/* ==========================================================================
   cast page
   ========================================================================== */
.page-hero {
  position: relative;
  padding: clamp(180px, 26vh, 260px) var(--gutter) clamp(60px, 9vh, 100px);
  text-align: center;
  overflow: hidden;
}
.page-hero .hero-word { bottom: auto; top: 12vh; }
.page-hero h1 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  letter-spacing: 0.14em;
  margin: 18px 0 22px;
}
.page-hero .hero-eyebrow { justify-content: center; margin-bottom: 0; }
.page-hero .hero-eyebrow::after { display: none; }
.page-hero p.lead-center { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 0.95rem; }

.profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0;
}
.profile div {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px 18px;
  transition: border-color 0.4s, background 0.4s;
}
.profile div:hover { border-color: var(--line-gold); background: rgba(214, 179, 106, 0.04); }
.profile span {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 5px;
}
.profile strong { font-weight: 500; font-size: 0.9rem; line-height: 1.7; }

.quote {
  position: relative;
  margin: 32px 0;
  padding: 6px 0 6px 26px;
  border-left: 1px solid var(--line-gold);
}
.quote p {
  font-family: var(--serif-jp);
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 2.1;
}
.quote p + p { margin-top: 8px; }

.notice {
  margin: 30px 0;
  padding: 20px 24px;
  border: 1px solid rgba(214, 179, 106, 0.22);
  border-radius: 3px;
  background: rgba(214, 179, 106, 0.045);
}
.notice h3 {
  font-family: var(--serif-jp);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  margin-bottom: 8px;
}
.notice p { color: var(--muted); font-size: 0.88rem; line-height: 1.95; }

.cast-detail { padding-top: 0; }
.cast-detail .cast-figure { position: sticky; top: 110px; align-self: start; }
.back-center { text-align: center; padding-bottom: clamp(80px, 12vh, 140px); }

/* ==========================================================================
   reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-line { overflow: hidden; }
.reveal-line > .inner { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease) var(--d, 0s); }
.reveal-line.is-visible > .inner { transform: none; }

/* mouse sparkle */
.mouse-sparkle {
  position: fixed; left: 0; top: 0; width: 12px; height: 12px;
  pointer-events: none; z-index: 130; opacity: 0;
  transform: translate(-50%, -50%) scale(0.65);
  animation: sparkleFade 850ms ease-out forwards;
  will-change: transform, opacity;
}
.mouse-sparkle::before, .mouse-sparkle::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(240, 216, 148, 0.7) 40%, rgba(214, 179, 106, 0.2) 70%, transparent 75%);
  border-radius: 999px;
}
.mouse-sparkle::before { width: 2px; height: 14px; }
.mouse-sparkle::after { width: 14px; height: 2px; }
.mouse-sparkle.small { width: 8px; height: 8px; }
@keyframes sparkleFade {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(0deg); }
  20% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -12px))) scale(1.4) rotate(40deg); }
}

/* ==========================================================================
   reduced motion / responsive
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal, .hero-lead, .hero-actions { opacity: 1 !important; transform: none !important; }
  .hero h1 .line > span, .reveal-line > .inner { transform: none !important; }
}

@media (max-width: 1024px) {
  .story-layout { grid-template-columns: 1fr; }
  .story-visual { position: static; }
  .cast-panel, .cast-panel.reverse { grid-template-columns: 1fr; }
  .cast-panel.reverse .cast-figure, .cast-panel.reverse .cast-info { order: initial; }
  .cast-detail .cast-figure { position: static; }
  .event-layout { grid-template-columns: 1fr; }
  .chapter-ghost { display: none; }
  .hero-side { display: none; }
}

@media (max-width: 720px) {
  .index-row { grid-template-columns: 1fr; gap: 10px; padding: 30px 4px; }
  .index-row .mark { display: none; }
  .index-row:hover { padding-left: 4px; }
  .chapter-head { flex-direction: column; gap: 14px; }
  .header-meta .clock, .header-meta .label { display: none; }
  .menu { grid-template-columns: 1fr; }
  .menu-aside { display: none; }
  .hero-foot { justify-content: center; }
  .hero-foot .copy { display: none; }
  .profile { grid-template-columns: 1fr; }
  .footer-bar { justify-content: center; text-align: center; }
}

@media (max-width: 520px) {
  .hero { padding-top: 120px; padding-bottom: 100px; }
  .hero-lead { font-size: 0.92rem; }
  .btn { min-width: 160px; padding: 15px 26px; }
  .marquee-track span { font-size: 0.9rem; }
  .visit-meta { flex-direction: column; gap: 12px; }
}


/* ========================================================================
   coming soon
   ======================================================================== */
.coming-soon-section { padding-top: clamp(80px, 10vh, 130px); }
.coming-soon-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) 1.22fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  padding: clamp(38px, 6vw, 74px);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 34%, rgba(90, 82, 160, 0.2), transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.coming-soon-card::before {
  content: "COMING SOON";
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  top: clamp(16px, 4vw, 46px);
  font-family: var(--serif-en);
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  pointer-events: none;
  white-space: nowrap;
}
.soon-orbit {
  position: relative;
  min-height: 320px;
  border: 1px solid rgba(214, 179, 106, 0.16);
  border-radius: 999px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.soon-orbit::before,
.soon-orbit::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: rotate(-16deg);
  animation: soonSpin 34s linear infinite;
}
.soon-orbit::after {
  inset: 27%;
  border-style: dashed;
  opacity: 0.72;
  animation-duration: 48s;
  animation-direction: reverse;
}
.soon-orbit span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold-bright);
  box-shadow: 0 0 18px rgba(240, 216, 148, 0.8), 0 0 44px rgba(90, 82, 160, 0.6);
}
.soon-orbit span:nth-child(1) { left: 28%; top: 18%; }
.soon-orbit span:nth-child(2) { right: 22%; top: 34%; width: 7px; height: 7px; }
.soon-orbit span:nth-child(3) { left: 20%; bottom: 25%; width: 6px; height: 6px; }
.soon-orbit span:nth-child(4) { right: 28%; bottom: 16%; width: 12px; height: 12px; }
.soon-orbit::marker { display: none; }
.soon-copy { position: relative; z-index: 1; }
.soon-copy .role {
  font-family: var(--serif-en);
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.soon-copy .role::after { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.soon-copy > p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
@keyframes soonSpin { to { transform: rotate(344deg); } }

@media (max-width: 1024px) {
  .coming-soon-card { grid-template-columns: 1fr; }
  .soon-orbit { min-height: 260px; }
}

@media (max-width: 520px) {
  .coming-soon-card { padding: 30px 22px; }
  .soon-orbit { min-height: 210px; }
}


/* ========================================================================
   mystic additions — lightweight text sections
   ======================================================================== */
.compact-nav a {
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: clamp(1.35rem, 3.7vw, 2.45rem);
}
.invitation-section { padding-top: clamp(70px, 10vh, 120px); }
.invitation-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid rgba(214, 179, 106, 0.26);
  border-radius: 6px;
  background:
    radial-gradient(circle at 80% 20%, rgba(90, 82, 160, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(214, 179, 106, 0.08), rgba(255, 255, 255, 0.018));
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.invitation-card::before,
.invitation-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 4px;
  pointer-events: none;
}
.invitation-card::after {
  inset: auto 28px 28px auto;
  width: 140px;
  height: 140px;
  border-color: rgba(214, 179, 106, 0.18);
  border-radius: 50%;
}
.invitation-card .seal {
  position: absolute;
  right: clamp(32px, 7vw, 90px);
  top: clamp(28px, 5vw, 62px);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 179, 106, 0.34);
  border-radius: 50%;
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(240, 216, 148, 0.5);
}
.letter-label {
  font-family: var(--serif-en);
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-bottom: 20px;
}
.invitation-card h3 {
  max-width: 690px;
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.8vw, 2.8rem);
  line-height: 1.6;
  letter-spacing: 0.09em;
  margin-bottom: 28px;
}
.invitation-card p:not(.seal):not(.letter-label) {
  max-width: 690px;
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 18px;
}
.letter-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: baseline;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.letter-signature span {
  font-family: var(--serif-en);
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  color: var(--faint);
}
.letter-signature strong {
  font-family: var(--serif-jp);
  font-weight: 500;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.experience-card {
  position: relative;
  min-height: 270px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(circle at 80% 20%, rgba(90, 82, 160, 0.14), transparent 46%),
    rgba(255, 255, 255, 0.024);
  transition: transform 0.45s var(--ease), border-color 0.45s ease, background 0.45s ease;
  overflow: hidden;
}
.experience-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
  background: rgba(214, 179, 106, 0.045);
}
.experience-card::after {
  content: "✦";
  position: absolute;
  right: 24px;
  bottom: 18px;
  font-family: var(--serif-en);
  color: rgba(214, 179, 106, 0.42);
  font-size: 1.2rem;
}
.experience-card .card-no {
  font-family: var(--serif-en);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--gold);
}
.experience-card h3 {
  margin: 26px 0 16px;
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}
.experience-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.95;
}
.note-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.note {
  position: relative;
  min-height: 160px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.026);
  color: var(--muted);
  font-family: var(--serif-jp);
  font-size: 0.94rem;
  line-height: 2;
  letter-spacing: 0.05em;
}
.note::before {
  content: "OBS.";
  display: block;
  margin-bottom: 16px;
  font-family: var(--serif-en);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--gold);
}
.note::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240, 216, 148, 0.72);
  box-shadow: 0 0 18px rgba(240, 216, 148, 0.55);
}
.teaser-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 4px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(0, 0, 0, 0.12);
}
.teaser-list span {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
}
.teaser-list span::before {
  content: "✦";
  color: var(--gold);
  margin-right: 10px;
}
.teaser-hero .lead-center { max-width: 760px; }

@media (max-width: 1024px) {
  .experience-grid, .note-board { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .compact-nav a { font-size: clamp(1.2rem, 7vw, 1.9rem); }
  .experience-grid, .note-board { grid-template-columns: 1fr; }
  .experience-card { min-height: auto; }
  .note { min-height: auto; }
  .invitation-card .seal { position: static; margin-bottom: 18px; }
}

/* ---------- Anastasia cast photo / reusable cast profile base ---------- */
.cast-photo {
  min-height: 520px;
  padding: 0;
  background: rgba(10, 12, 26, 0.72);
}
.cast-photo::before { z-index: 2; }
.cast-photo img {
  width: 100%;
  height: min(70vh, 720px);
  max-height: none;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}
.cast-photo .sign {
  z-index: 3;
  padding: 7px 11px;
  background: rgba(7, 9, 20, 0.68);
  border: 1px solid rgba(214, 179, 106, 0.28);
  backdrop-filter: blur(8px);
}
.cast-photo .portrait-label {
  z-index: 3;
  bottom: 0;
  padding: 28px 20px 22px;
  color: var(--text);
  font-family: var(--serif-jp);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  background: linear-gradient(transparent, rgba(7, 9, 20, 0.92));
}
.profile span {
  font-family: var(--serif-jp);
  letter-spacing: 0.16em;
}
.quote-label {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: var(--serif-jp);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.cast-preview-card {
  grid-template-columns: minmax(240px, .72fr) 1.28fr;
  gap: clamp(30px, 5vw, 70px);
}
.cast-preview-image {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(10, 12, 26, .72);
}
.cast-preview-image::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(214, 179, 106, .18);
  pointer-events: none;
}
.cast-preview-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: 50% 40%;
  transition: transform .9s var(--ease);
}
.cast-preview-image:hover img { transform: scale(1.035); }
.cast-preview-image span {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 7px 11px;
  color: var(--gold-bright);
  font-size: .72rem;
  letter-spacing: .14em;
  background: rgba(7, 9, 20, .7);
  border: 1px solid rgba(214, 179, 106, .28);
  backdrop-filter: blur(8px);
}
@media (max-width: 800px) {
  .cast-preview-card { grid-template-columns: 1fr; }
  .cast-preview-image, .cast-preview-image img { min-height: 360px; }
  .cast-photo img { height: auto; max-height: none; }
}

/* ---------- Cast profile width refinements ---------- */
.cast-detail .cast-panel {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 4vw, 56px);
}
.cast-detail .cast-info { min-width: 0; }
.cast-detail .profile { grid-template-columns: 1fr; }
.cast-detail .profile div { width: 100%; padding: 16px 20px; }
.cast-detail .profile strong { line-height: 1.9; }

/* ---------- Mystical observed-cast presentation ---------- */
.cast-preview-card::before {
  content: "OBSERVED";
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 216, 148, 0.075);
}
.cast-preview-card {
  background:
    radial-gradient(circle at 18% 24%, rgba(90, 82, 160, 0.3), transparent 38%),
    radial-gradient(circle at 78% 30%, rgba(214, 179, 106, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.observed-copy::before,
.observed-copy::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.observed-copy::before {
  width: 190px;
  height: 190px;
  right: -48px;
  top: -48px;
  border: 1px solid rgba(214, 179, 106, 0.12);
  box-shadow: 0 0 60px rgba(90, 82, 160, 0.12), inset 0 0 40px rgba(214, 179, 106, 0.03);
}
.observed-copy::after {
  width: 7px;
  height: 7px;
  right: 70px;
  top: 24px;
  background: var(--gold-bright);
  box-shadow: 0 0 16px rgba(240, 216, 148, 0.85), -122px 82px 0 -2px rgba(240, 216, 148, 0.72), -90px 188px 0 -1px rgba(240, 216, 148, 0.55);
}
.observation-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin: 4px 0 20px;
  color: var(--gold);
  font-family: var(--serif-en);
  letter-spacing: 0.18em;
}
.observation-mark span:nth-child(2) {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(214, 179, 106, 0.36);
  border-radius: 50%;
  font-size: 1.35rem;
  box-shadow: 0 0 28px rgba(90, 82, 160, 0.22), inset 0 0 18px rgba(214, 179, 106, 0.06);
}
.observation-kicker {
  color: var(--faint) !important;
  font-family: var(--serif-jp);
  font-size: 0.78rem !important;
  letter-spacing: 0.2em;
  margin-bottom: 12px !important;
}
.observed-copy .cast-name {
  text-shadow: 0 0 28px rgba(90, 82, 160, 0.28);
}
.observation-text { line-height: 2.05; }
.observation-whisper {
  position: relative;
  margin: 28px 0 32px !important;
  padding: 16px 20px 16px 22px;
  color: var(--gold-bright) !important;
  font-family: var(--serif-jp);
  letter-spacing: 0.06em;
  border-left: 1px solid var(--line-gold);
  background: linear-gradient(90deg, rgba(214, 179, 106, 0.06), transparent);
}

@media (max-width: 800px) {
  .cast-detail .cast-panel { grid-template-columns: 1fr; }
  .observed-copy::before { width: 140px; height: 140px; }
}


/* plain cast photos: no text overlays inside images */
.plain-photo::before { display: none; }

.cast-name-long {
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  overflow-wrap: anywhere;
}


/* v6 adjustments: keep original aspect ratio, ensure similar visual size, and clean plain photos */
.cast-detail .cast-panel {
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.cast-photo.plain-photo {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(10, 12, 26, 0.72);
}
.cast-photo.plain-photo::before {
  inset: 10px;
}
.cast-photo.plain-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}
.cast-name-long {
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
  word-break: break-word;
}
@media (max-width: 1100px) {
  .cast-detail .cast-panel {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  }
}
@media (max-width: 800px) {
  .cast-detail .cast-panel,
  .cast-detail .cast-panel.reverse {
    grid-template-columns: 1fr;
  }
  .cast-photo.plain-photo {
    padding: 10px;
  }
  .cast-photo.plain-photo img {
    max-height: none;
    width: 100%;
    height: auto;
  }
}


/* v7 twins modal */
.twin-trigger {
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}
.twin-trigger:hover,
.twin-trigger:focus-visible {
  border-color: var(--line-gold);
  box-shadow: 0 10px 34px rgba(214, 179, 106, 0.12);
  outline: none;
}
.twin-trigger::after {
  content: "CLICK TO CONNECT";
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  padding: 7px 11px;
  font-family: var(--serif-en);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  background: rgba(7, 9, 20, 0.72);
  border: 1px solid rgba(214, 179, 106, 0.24);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.twin-trigger:hover::after,
.twin-trigger:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.twins-modal {
  width: min(1120px, calc(100vw - 32px));
  border: 1px solid rgba(214, 179, 106, 0.2);
  border-radius: 10px;
  padding: 0;
  background: rgba(7, 9, 20, 0.92);
  color: var(--text);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
}
.twins-modal::backdrop {
  background: rgba(3, 4, 12, 0.74);
  backdrop-filter: blur(8px);
}
.twins-modal-card {
  position: relative;
  padding: clamp(20px, 4vw, 34px);
  background:
    radial-gradient(circle at 18% 20%, rgba(90, 82, 160, 0.18), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(214, 179, 106, 0.10), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
.twins-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}
.twins-close:hover { border-color: var(--line-gold); }
.twins-kicker {
  font-family: var(--serif-en);
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  color: var(--gold);
  margin-bottom: 10px;
}
.twins-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}
.twins-copy {
  color: var(--muted);
  margin-bottom: 24px;
}
.twins-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(214, 179, 106, 0.18);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.twins-visual figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 820px);
  background: rgba(10, 12, 26, 0.82);
}
.twins-visual figure + figure {
  border-left: 1px solid rgba(214, 179, 106, 0.14);
}
.twins-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 820px);
  object-fit: contain;
}
@media (max-width: 800px) {
  .twin-trigger::after { display: none; }
  .twins-modal {
    width: min(96vw, 700px);
  }
  .twins-visual {
    grid-template-columns: 1fr;
  }
  .twins-visual figure + figure {
    border-left: 0;
    border-top: 1px solid rgba(214, 179, 106, 0.14);
  }
}


/* v8 center twins dialog */
.twins-modal[open] {
  position: fixed;
  inset: 50% auto auto 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

@media (max-width: 800px) {
  .twins-modal[open] {
    max-height: calc(100dvh - 20px);
  }
}


/* v10 hidden observation star and record dialog */
.observation-star {
  position: fixed;
  z-index: 4;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  opacity: 0.88;
  filter: drop-shadow(0 0 9px rgba(240, 216, 148, 0.7));
  transition: opacity 0.38s ease, transform 0.38s var(--ease), filter 0.38s ease;
}
.observation-star span,
.observation-star::before,
.observation-star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.observation-star span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fffdf1;
  box-shadow:
    0 0 8px rgba(255, 255, 255, 1),
    0 0 18px rgba(240, 216, 148, 0.95),
    0 0 36px rgba(214, 179, 106, 0.58);
  animation: observationStarCore 2.3s ease-in-out infinite;
}
.observation-star::before {
  width: 2px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(transparent, rgba(255, 253, 241, 0.88), transparent);
  animation: observationStarRay 3.2s ease-in-out infinite;
}
.observation-star::after {
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 241, 0.82), transparent);
  animation: observationStarRay 3.2s ease-in-out infinite reverse;
}
.observation-star:hover,
.observation-star:focus-visible {
  opacity: 1;
  transform: scale(1.22) rotate(8deg);
  filter: drop-shadow(0 0 16px rgba(240, 216, 148, 0.95));
  outline: none;
}
.observation-star.is-hidden {
  opacity: 0;
  transform: scale(0.35);
  pointer-events: none;
}
@keyframes observationStarCore {
  0%, 100% { transform: translate(-50%, -50%) scale(0.82); opacity: 0.72; }
  50% { transform: translate(-50%, -50%) scale(1.22); opacity: 1; }
}
@keyframes observationStarRay {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.65); }
  50% { opacity: 0.92; transform: translate(-50%, -50%) scale(1.12); }
}

.observation-modal[open] {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(1020px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(214, 179, 106, 0.25);
  border-radius: 10px;
  color: var(--text);
  background: rgba(7, 9, 20, 0.96);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.68), 0 0 48px rgba(90, 82, 160, 0.15);
}
.observation-modal::backdrop {
  background: rgba(3, 4, 12, 0.76);
  backdrop-filter: blur(8px);
}
.observation-card {
  position: relative;
  padding: clamp(20px, 4vw, 36px);
  background:
    radial-gradient(circle at 10% 12%, rgba(90, 82, 160, 0.22), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(214, 179, 106, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.observation-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(7, 9, 20, 0.72);
  font-size: 1.2rem;
  cursor: pointer;
}
.observation-close:hover,
.observation-close:focus-visible {
  border-color: var(--line-gold);
  outline: none;
}
.observation-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}
.observation-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 179, 106, 0.18);
  border-radius: 5px;
  background: rgba(10, 12, 26, 0.8);
}
.observation-media.is-pair {
  grid-template-columns: 1fr 1fr;
}
.observation-media figure {
  min-width: 0;
  min-height: min(60vh, 630px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.observation-media.is-pair figure + figure {
  border-left: 1px solid rgba(214, 179, 106, 0.15);
}
.observation-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(60vh, 630px);
  object-fit: contain;
}
.observation-copy {
  min-width: 0;
  padding-right: 8px;
}
.observation-number {
  margin-bottom: 16px;
  font-family: var(--serif-en);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.observation-sign {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--serif-en);
  font-size: 0.66rem;
  letter-spacing: 0.36em;
  color: var(--faint);
}
.observation-sign::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.observation-name {
  margin-bottom: 8px;
  font-family: var(--serif-jp);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.07em;
}
.observation-title {
  margin-bottom: 22px;
  color: var(--gold-bright);
  font-family: var(--serif-jp);
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
}
.observation-body {
  padding: 22px 0 22px 24px;
  border-left: 1px solid var(--line-gold);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 2.15;
}
.observation-footnote {
  margin-top: 24px;
  font-family: var(--serif-en);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--faint);
}
@media (max-width: 800px) {
  .observation-star {
    width: 36px;
    height: 36px;
  }
  .observation-modal[open] {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
  .observation-grid {
    grid-template-columns: 1fr;
  }
  .observation-media figure {
    min-height: 0;
  }
  .observation-media img {
    max-height: 50vh;
  }
  .observation-body {
    padding-left: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .observation-star span,
  .observation-star::before,
  .observation-star::after {
    animation: none;
  }
}
