/* MAPPA 15th-inspired — stark black, modular blocks, full KV hero */
:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --text: #ffffff;
  --text-muted: #7a7a7a;
  --text-dim: #444444;
  --brand: #d42020;
  --border: rgba(255, 255, 255, 0.12);
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --header-h: 64px;
  --page-x: clamp(20px, 5vw, 56px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body { overflow-x: hidden; line-height: 1.6; background: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  padding: 8px 16px; background: var(--brand); color: #fff;
}
.skip-link:focus { top: 16px; }

.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 9000; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 1px; z-index: 8000;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%; background: #fff;
}

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 7000;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-x);
  mix-blend-mode: difference;
}
.site-header.is-scrolled {
  mix-blend-mode: normal;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo { display: flex; flex-direction: column; gap: 2px; }
.logo-en {
  font-size: 0.58rem; letter-spacing: 0.42em; font-weight: 500;
}
.logo-cn {
  font-family: var(--font-serif);
  font-size: 0.72rem; letter-spacing: 0.28em; font-weight: 600;
}

.site-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.site-nav a {
  font-size: 0.62rem; letter-spacing: 0.28em; font-weight: 500;
  opacity: 0.75; transition: opacity 0.3s;
}
.site-nav a:hover { opacity: 1; }

.menu-toggle {
  display: none; flex-direction: column; gap: 7px; padding: 8px; margin-left: auto;
}
.menu-toggle span {
  display: block; width: 22px; height: 1px; background: #fff;
  transition: transform 0.3s;
}
.menu-toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 6500;
  background: rgba(0, 0, 0, 0.98);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-drawer.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.mobile-drawer a {
  font-size: 0.85rem; letter-spacing: 0.35em; font-weight: 500;
}

/* ── Block headings (MAPPA 15th) ── */
.block-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.5rem;
  padding: 0 var(--page-x);
  max-width: 1400px; margin-left: auto; margin-right: auto;
}
.block-head--stack { flex-direction: column; align-items: flex-start; gap: 0.35rem; }

.block-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.block-sub {
  font-size: 0.65rem; letter-spacing: 0.35em; color: var(--text-muted);
  text-transform: uppercase;
}
.block-more {
  font-size: 0.62rem; letter-spacing: 0.3em; font-weight: 500;
  color: var(--text-muted); transition: color 0.3s; flex-shrink: 0;
}
.block-more:hover { color: #fff; }

/* ── Hero full KV ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

.hero-kv {
  position: absolute; inset: 0;
}
.hero-kv-wide {
  width: 100%; height: 100%; object-fit: cover; object-position: center 15%;
}
.hero-kv-tall { display: none; }
.hero-kv-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.35) 38%, rgba(0,0,0,0.15) 100%),
    linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 45%);
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: calc(var(--header-h) + 48px) var(--page-x) 100px;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.62rem; letter-spacing: 0.32em; color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem; text-transform: uppercase;
}
.hero-studio-mark { height: 16px; width: auto; filter: brightness(1.2); }

.hero-heading {
  display: flex; flex-direction: column; gap: 0.15rem;
  margin-bottom: 1rem;
}
.hero-heading-en {
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  letter-spacing: 0.55em; font-weight: 500;
  color: rgba(255,255,255,0.55);
}
.hero-heading-jp {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 900; letter-spacing: 0.1em; line-height: 1.05;
}
.hero-heading-season {
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: 0.22em;
  margin-top: 0.15rem;
}

.hero-lead {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  letter-spacing: 0.2em; color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 12px; }

.btn-play {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 36px;
  font-size: 0.65rem; letter-spacing: 0.35em; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent; color: #fff;
  transition: background 0.35s, border-color 0.35s;
}
.btn-play:hover {
  background: #fff; color: #000; border-color: #fff;
}

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 0.58rem; letter-spacing: 0.55em; color: rgba(255,255,255,0.4);
  animation: pulse-scroll 2.4s ease-in-out infinite;
}
@keyframes pulse-scroll {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

.reveal-item { opacity: 0; transform: translateY(20px); }
.reveal-up { opacity: 0; transform: translateY(32px); }

/* ── NEWS top ── */
.news-top {
  padding: 56px var(--page-x);
  border-bottom: 1px solid var(--border);
  max-width: 1400px; margin: 0 auto;
}
.news-top .block-head { padding: 0; margin-bottom: 1.75rem; }

.news-top-list { display: flex; flex-direction: column; }
.news-top-list li {
  display: grid; grid-template-columns: 100px 1fr; gap: 1.5rem;
  padding: 1rem 0; border-top: 1px solid var(--border);
  align-items: baseline;
}
.news-top-list li:last-child { border-bottom: 1px solid var(--border); }
.news-top-list time {
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.news-top-list a {
  font-size: 0.88rem; line-height: 1.55;
  transition: opacity 0.3s;
}
.news-top-list a:hover { opacity: 0.65; }

/* ── INTRODUCTION ── */
.introduction {
  padding: 80px var(--page-x) 100px;
  border-bottom: 1px solid var(--border);
}
.introduction .block-head { margin-bottom: 3rem; }

.intro-body {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 420px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 1400px; margin: 0 auto;
}

.intro-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  letter-spacing: 0.08em; line-height: 1.6;
  margin-bottom: 1.75rem;
}

.intro-copy p {
  font-size: 0.92rem; line-height: 2; color: rgba(255,255,255,0.72);
  margin-bottom: 1.25rem;
}
.intro-copy strong { color: #fff; font-weight: 500; }
.intro-note {
  font-size: 0.78rem !important; letter-spacing: 0.12em;
  color: var(--text-muted) !important; margin-top: 2rem !important;
}

.intro-visual img {
  width: 100%; filter: drop-shadow(0 24px 60px rgba(0,0,0,0.8));
}

/* ── PV block ── */
.pv-block {
  padding: 100px var(--page-x);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.pv-block-inner {
  max-width: 1400px; margin: 0 auto;
  text-align: center;
}
.pv-block-label {
  font-size: 0.62rem; letter-spacing: 0.45em; color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.pv-block-title {
  display: flex; flex-direction: column; gap: 0.2rem;
  margin-bottom: 2.5rem;
}
.pv-block-title span:first-child {
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: 0.5em; color: rgba(255,255,255,0.45);
}
.pv-block-title span:last-child {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700; letter-spacing: 0.06em; line-height: 1.05;
}

.pv-block-play {
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 28px 48px;
  border: 1px solid var(--border);
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
}
.pv-block-play:hover {
  background: #fff; color: #000; border-color: #fff;
  transform: scale(1.02);
}
.pv-block-play-icon {
  font-size: 1.25rem; line-height: 1;
}
.pv-block-play span:last-child {
  font-size: 0.62rem; letter-spacing: 0.4em; font-weight: 600;
}

/* ── LINEUP / works carousel ── */
.lineup {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}
.lineup .block-head { margin-bottom: 3rem; }

.works-track-wrap {
  overflow: hidden;
  padding: 0 var(--page-x);
}
.works-track {
  display: flex; gap: 1px;
  transition: transform 0.6s var(--ease-out);
  background: var(--border);
}

.work-card {
  flex: 0 0 min(320px, 78vw);
  position: relative; aspect-ratio: 2/3;
  overflow: hidden; background: #000;
  transition: opacity 0.35s;
}
.work-card--featured { flex: 0 0 min(380px, 82vw); }
.work-card:hover { opacity: 0.92; }

.work-card-bg { position: absolute; inset: 0; }
.work-card-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 0.6s var(--ease-out);
}
.work-card:hover .work-card-bg img { transform: scale(1.04); }

.work-card-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 55%);
}

.work-card-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.75rem;
}
.work-badge {
  position: absolute; top: 1.25rem; left: 1.25rem;
  font-size: 0.58rem; letter-spacing: 0.3em; font-weight: 600;
  padding: 5px 10px; border: 1px solid rgba(255,255,255,0.4);
}
.work-card h3 {
  font-size: 1.1rem; letter-spacing: 0.2em; font-weight: 600;
  margin-bottom: 0.35rem;
}
.work-card p {
  font-size: 0.65rem; letter-spacing: 0.25em; color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.work-cta {
  font-size: 0.58rem; letter-spacing: 0.35em; font-weight: 600;
}

.works-nav {
  display: flex; gap: 1px; justify-content: flex-end;
  padding: 1.5rem var(--page-x) 0;
}
.works-prev, .works-next {
  font-size: 0.58rem; letter-spacing: 0.3em; font-weight: 500;
  padding: 12px 24px; border: 1px solid var(--border);
  transition: background 0.3s;
}
.works-prev:hover, .works-next:hover { background: rgba(255,255,255,0.06); }

/* ── Studio works grid ── */
.studio-works {
  padding: 100px var(--page-x);
  border-bottom: 1px solid var(--border);
}
.studio-works .block-head { max-width: 1400px; margin: 0 auto 3rem; padding: 0; }

.studio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1400px; margin: 0 auto;
  background: var(--border);
  border: 1px solid var(--border);
}

.studio-card {
  background: #000; overflow: hidden;
  transition: background 0.35s;
}
.studio-card:hover { background: var(--bg-soft); }

.studio-card-img {
  aspect-ratio: 3/4; overflow: hidden; background: #050505;
}
.studio-card-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
  opacity: 0.88;
}
.studio-card:hover .studio-card-img img {
  transform: scale(1.04); opacity: 1;
}

.studio-card-info { padding: 1rem 1.1rem 1.2rem; }
.studio-card-info h3 {
  font-size: 0.82rem; letter-spacing: 0.08em; font-weight: 500;
  margin-bottom: 0.3rem;
}
.studio-card-info p {
  font-size: 0.62rem; letter-spacing: 0.2em; color: var(--text-muted);
  text-transform: uppercase;
}

/* ── NEWS archive ── */
.news {
  padding: 100px var(--page-x);
  max-width: 1400px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.news .block-head { padding: 0; margin-bottom: 2rem; }

.news-list { margin-top: 0; }
.news-item {
  display: grid; grid-template-columns: 88px 52px 1fr;
  gap: 1.25rem; align-items: baseline;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s;
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-item:hover { padding-left: 6px; }
.news-item time {
  font-size: 0.72rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.news-cat {
  font-size: 0.58rem; letter-spacing: 0.25em; font-weight: 600;
  color: var(--text-dim);
}
.news-item a { font-size: 0.88rem; line-height: 1.55; transition: opacity 0.3s; }
.news-item a:hover { opacity: 0.6; }

/* ── FOLLOW ── */
.links {
  padding: 100px var(--page-x) 120px;
}
.links .block-head { max-width: 1400px; margin: 0 auto 3rem; padding: 0; }

.link-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; max-width: 1400px; margin: 0 auto;
  background: var(--border); border: 1px solid var(--border);
}
.link-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 2.25rem; background: #000; position: relative;
  transition: background 0.35s;
}
.link-card:hover { background: var(--bg-soft); }
.link-platform {
  font-size: 0.58rem; letter-spacing: 0.35em; color: var(--text-muted);
}
.link-name {
  font-size: 1.05rem; letter-spacing: 0.06em; font-weight: 500;
}
.link-arrow {
  position: absolute; top: 2.25rem; right: 2.25rem;
  font-size: 1.1rem; opacity: 0.4; transition: opacity 0.3s, transform 0.3s;
}
.link-card:hover .link-arrow { opacity: 1; transform: translate(3px, -3px); }

/* ── Footer ── */
.site-footer {
  padding: 48px var(--page-x) 56px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
}
.footer-logo-img { height: 48px; width: auto; opacity: 0.85; }
.footer-copy {
  font-size: 0.68rem; letter-spacing: 0.1em; color: var(--text-muted);
}
.footer-icp {
  font-size: 0.62rem; letter-spacing: 0.06em;
}
.footer-icp a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-icp a:hover {
  color: var(--text);
  border-bottom-color: currentColor;
}
.footer-note {
  font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.06em;
}

/* ── Video modal (MAPPA CLOSE style) ── */
.video-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 32px);
}
.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.94);
}

.video-modal-panel {
  position: relative; z-index: 1;
  width: min(960px, 100%);
  background: #000; border: 1px solid var(--border);
  animation: modal-in 0.3s var(--ease-out);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: none; }
}

.video-modal-close {
  position: absolute; top: -44px; right: 0;
  font-size: 0.62rem; letter-spacing: 0.4em; font-weight: 600;
  padding: 8px 0; opacity: 0.7; transition: opacity 0.3s;
}
.video-modal-close:hover { opacity: 1; }

.video-modal-body {
  position: relative; aspect-ratio: 16/9; background: #000;
}
.video-modal-body iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.video-modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0 0;
}
.video-modal-title {
  font-size: 0.62rem; letter-spacing: 0.25em; color: var(--text-muted);
}
.video-modal-link {
  font-size: 0.58rem; letter-spacing: 0.3em; font-weight: 600;
  color: var(--text-muted); transition: color 0.3s;
}
.video-modal-link:hover { color: #fff; }

body.is-modal-open { overflow: hidden; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-item, .reveal-up { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .studio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-toggle { display: flex; }

  .hero-kv-wide { display: none; }
  .hero-kv-tall {
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
  }
  .hero-kv-shade {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
  }

  .intro-body { grid-template-columns: 1fr; }
  .intro-visual { max-width: 280px; margin: 0 auto; order: -1; }

  .news-top-list li { grid-template-columns: 1fr; gap: 0.35rem; }
  .news-item { grid-template-columns: 1fr; gap: 0.35rem; }

  .link-grid { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: repeat(2, 1fr); }

  .video-modal-close { top: 12px; right: 12px; z-index: 2; mix-blend-mode: difference; }
}

@media (max-width: 600px) {
  .studio-grid { grid-template-columns: 1fr; }
  .works-nav { justify-content: stretch; }
  .works-prev, .works-next { flex: 1; text-align: center; }
}
