/* =====================================================
   Watashiwa Art — Premium Japanese Cinematic
   ===================================================== */

:root {
  /* Backgrounds */
  --bg: #05070a;
  --bg-secondary: #0f1117;
  --glass: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);

  /* Text */
  --text: #f5f5f5;
  --text-secondary: #bfc6d1;

  /* Accents */
  --crimson: #e63946;
  --gold: #d4af37;
  --blue: #4fc3f7;
  --purple: #8b5cf6;

  /* Type */
  --font-display: "Cinzel", serif;
  --font-body: "Inter", sans-serif;
  --font-jp: "Noto Serif JP", serif;
  --font-alt: "Space Grotesk", sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Subtle ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(230, 57, 70, 0.1), transparent 60%),
    radial-gradient(50% 50% at 85% 20%, rgba(79, 195, 247, 0.08), transparent 60%),
    radial-gradient(60% 60% at 70% 90%, rgba(139, 92, 246, 0.08), transparent 60%);
  pointer-events: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--crimson);
  color: #fff;
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 10rem) 1.5rem;
}

.section--alt {
  max-width: none;
  background: linear-gradient(180deg, transparent, var(--bg-secondary) 20%, var(--bg-secondary) 80%, transparent);
}

.section--alt > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__eyebrow {
  font-family: var(--font-alt);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.section__lead {
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 60ch;
  text-wrap: pretty;
}

/* =====================================================
   Loader
   ===================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.loader__inner {
  text-align: center;
  width: min(360px, 80vw);
}

.loader__mark {
  font-family: var(--font-jp);
  font-size: 2.5rem;
  color: var(--crimson);
  margin-bottom: 0.75rem;
}

.loader__title {
  font-family: var(--font-display);
  letter-spacing: 0.35em;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1.75rem;
  padding-left: 0.35em;
}

.loader__bar {
  height: 2px;
  width: 100%;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}

.loader__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
}

.loader__count {
  margin-top: 1rem;
  font-family: var(--font-alt);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

body.is-loaded .loader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

/* =====================================================
   Cursor
   ===================================================== */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 245, 245, 0.5);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
    border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--text);
}

.cursor.is-hover {
  width: 64px;
  height: 64px;
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.cursor.is-label {
  width: 84px;
  height: 84px;
  border-color: transparent;
  background: var(--crimson);
  mix-blend-mode: normal;
}

.cursor::after {
  content: attr(data-label);
  font-family: var(--font-alt);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}

.cursor.is-label::after {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor,
  .cursor-dot { display: none; }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 998;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
}

/* =====================================================
   Navigation
   ===================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s,
    border-color 0.4s, padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(5, 7, 10, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav.is-scrolled .nav__inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav__brand-mark {
  font-family: var(--font-jp);
  color: var(--crimson);
  font-size: 1.4rem;
}

.nav__brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 2rem);
}

.nav__links a {
  font-family: var(--font-alt);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
}

.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.nav__links a:not(.nav__cta):hover {
  color: var(--text);
}

.nav__links a:not(.nav__cta):hover::after {
  width: 100%;
}

.nav__cta {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--text) !important;
  transition: border-color 0.3s, background-color 0.3s, transform 0.3s var(--ease);
}

.nav__cta:hover {
  border-color: var(--crimson);
  background: rgba(230, 57, 70, 0.12);
  transform: translateY(-2px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 6px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.75rem;
    padding: 2rem 2.5rem;
    background: rgba(5, 7, 10, 0.9);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }

  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.15rem; }
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-alt);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
  cursor: none;
}

.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 12px 40px -12px rgba(230, 57, 70, 0.7);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -12px rgba(230, 57, 70, 0.85);
}

.btn--ghost {
  border-color: var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text-secondary);
  transform: translateY(-3px);
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 1.5rem 6rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(115%) contrast(105%);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.7), rgba(5, 7, 10, 0.4) 40%, var(--bg)),
    radial-gradient(70% 60% at 50% 40%, transparent, rgba(5, 7, 10, 0.6));
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__content {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-alt);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.2);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold), var(--crimson));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: 1.75rem;
  max-width: 54ch;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-secondary);
  font-family: var(--font-jp);
  font-weight: 300;
  text-wrap: pretty;
}

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__stats {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.hero__stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--text);
}

.hero__stats dt::after { content: "+"; color: var(--gold); }

.hero__stats dd {
  font-family: var(--font-alt);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-alt);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--text);
  animation: scrollLine 2s infinite var(--ease);
}

@keyframes scrollLine {
  0% { transform: translateY(0); }
  100% { transform: translateY(300%); }
}

/* Floaters */
.hero__floaters {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floater {
  position: absolute;
  will-change: transform;
}

.floater--jp {
  font-family: var(--font-jp);
  color: rgba(245, 245, 245, 0.06);
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 500;
}

.floater--jp[data-float="1"] { top: 12%; right: 8%; color: rgba(230, 57, 70, 0.08); }
.floater--jp[data-float="2"] { bottom: 16%; left: 5%; color: rgba(79, 195, 247, 0.07); }
.floater--jp[data-float="3"] { top: 42%; right: 26%; color: rgba(212, 175, 55, 0.06); }

.floater--ring {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 50%;
  top: 20%;
  left: 12%;
}

.floater--ring-sm {
  width: 120px;
  height: 120px;
  border-color: rgba(139, 92, 246, 0.2);
  top: auto;
  bottom: 22%;
  right: 14%;
  left: auto;
}

/* =====================================================
   Marquee
   ===================================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.5rem 0;
  background: var(--bg-secondary);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.marquee__track .dot { color: var(--crimson); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =====================================================
   Collection cards
   ===================================================== */
.collection__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1.25rem;
}

.card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.5s var(--ease), border-color 0.5s;
}

.card--tall { grid-row: span 2; }
.card--wide { grid-column: span 2; }

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
}

.card__media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__media img { transform: scale(1.05); }

.card__placeholder {
  font-family: var(--font-alt);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(191, 198, 209, 0.4);
  border: 1px dashed var(--line);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
}

.card__body {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(5, 7, 10, 0.92), transparent);
}

.card__tag {
  display: inline-block;
  font-family: var(--font-alt);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.card__tag--crimson { background: rgba(230, 57, 70, 0.16); color: #ff8f97; }
.card__tag--gold { background: rgba(212, 175, 55, 0.16); color: var(--gold); }
.card__tag--blue { background: rgba(79, 195, 247, 0.16); color: var(--blue); }
.card__tag--purple { background: rgba(139, 92, 246, 0.16); color: #b79bff; }

.card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.card__meta {
  font-family: var(--font-alt);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

@media (max-width: 860px) {
  .collection__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .card--wide { grid-column: span 2; }
  .card--tall { grid-row: span 1; }
}

@media (max-width: 520px) {
  .collection__grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
}

/* =====================================================
   Timeline
   ===================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.timeline__item {
  position: relative;
  padding-top: 4.5rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.15);
}

.timeline__year {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-alt);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--crimson);
}

.timeline__item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.timeline__item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .timeline::before { display: none; }
}

@media (max-width: 480px) {
  .timeline { grid-template-columns: 1fr; }
}

/* =====================================================
   Studios
   ===================================================== */
.studios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.studio {
  padding: 2.25rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(8px);
  transition: transform 0.5s var(--ease), border-color 0.5s, background-color 0.5s;
}

.studio:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 195, 247, 0.35);
  background: rgba(79, 195, 247, 0.05);
}

.studio__logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.studio__logo span {
  font-family: var(--font-alt);
  font-size: 0.55rem;
  color: rgba(191, 198, 209, 0.5);
  text-align: center;
  padding: 0 0.25rem;
}

.studio h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
}

.studio p { color: var(--text-secondary); font-size: 0.95rem; }

@media (max-width: 860px) { .studios__grid { grid-template-columns: 1fr; } }

/* =====================================================
   Craft
   ===================================================== */
.craft__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.craft__text .btn { margin-top: 2rem; }

.craft__player {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

.craft__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, rgba(139, 92, 246, 0.12), rgba(79, 195, 247, 0.08));
}

.craft__placeholder span {
  font-family: var(--font-alt);
  font-size: 0.8rem;
  color: rgba(191, 198, 209, 0.55);
  border: 1px dashed var(--line);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
}

.craft__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: none;
  background: var(--crimson);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: none;
  box-shadow: 0 12px 40px -8px rgba(230, 57, 70, 0.7);
  transition: transform 0.35s var(--ease);
}

.craft__play::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(230, 57, 70, 0.5);
  animation: ripple 2.2s infinite var(--ease);
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.craft__play:hover { transform: translate(-50%, -50%) scale(1.08); }

@media (max-width: 860px) { .craft__grid { grid-template-columns: 1fr; } }

/* =====================================================
   Join / CTA
   ===================================================== */
.join__panel {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.join__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(230, 57, 70, 0.14), transparent 70%);
  pointer-events: none;
}

.join__mark {
  font-family: var(--font-jp);
  font-size: 2.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.join__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
}

.join__lead {
  max-width: 52ch;
  margin: 1.25rem auto 0;
  color: var(--text-secondary);
}

.join__form {
  margin: 2.5rem auto 0;
  max-width: 520px;
  display: flex;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.join__input {
  flex: 1;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.5);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: none;
}

.join__input::placeholder { color: rgba(191, 198, 209, 0.5); }
.join__input:focus { outline: none; border-color: var(--gold); }

.join__note {
  margin-top: 1rem;
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--gold);
}

@media (max-width: 520px) {
  .join__form { flex-direction: column; }
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-secondary);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem 2.5rem;
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 420px;
}

.footer__mark {
  font-family: var(--font-jp);
  font-size: 2rem;
  color: var(--crimson);
}

.footer__brand p { color: var(--text-secondary); font-size: 0.95rem; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  font-family: var(--font-alt);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__nav a:hover { color: var(--text); }

.footer__copy {
  font-size: 0.82rem;
  color: rgba(191, 198, 209, 0.55);
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

/* =====================================================
   Reveal animations base state
   ===================================================== */
[data-reveal],
[data-reveal-line] > * {
  opacity: 0;
}

:where(a, button, input, [role="button"]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; transition-duration: 0.01ms !important; }
  [data-reveal],
  [data-reveal-line] > * { opacity: 1 !important; }
}

/* =====================================================
   Documentary interactive timelines
   ===================================================== */
.doc-timeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.doc-timeline__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--gold), transparent);
  opacity: 0.4;
}

/* Chapter navigation (chips) */
.doc-timeline__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: sticky;
  top: 6rem;
  max-height: 74vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.doc-timeline__nav::-webkit-scrollbar { width: 5px; }
.doc-timeline__nav::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.doc-chip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.85rem 1rem 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: none;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.doc-chip__dot {
  position: absolute;
  left: 0.35rem;
  top: 1.2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.doc-chip__era {
  font-family: var(--font-alt);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--crimson);
  white-space: nowrap;
}

.doc-chip__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color 0.35s var(--ease);
}

.doc-chip:hover {
  background: var(--glass);
  border-color: var(--line);
}

.doc-chip:hover .doc-chip__name { color: var(--text); }

.doc-chip.is-active {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.35);
}

.doc-chip.is-active .doc-chip__dot {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.15);
  transform: scale(1.15);
}

.doc-chip.is-active .doc-chip__name { color: var(--text); }

/* Stage / panel */
.doc-timeline__stage { min-height: 420px; }

.doc-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: stretch;
}

.doc-panel__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

#history-animation .doc-panel__media {
  background-image:
    linear-gradient(180deg, rgba(5, 7, 10, 0.5), rgba(5, 7, 10, 0.78)),
    url("/assets/images/doc-animation.webp");
  background-size: cover;
  background-position: center;
}

#history-anime .doc-panel__media {
  background-image:
    linear-gradient(180deg, rgba(5, 7, 10, 0.5), rgba(5, 7, 10, 0.78)),
    url("/assets/images/doc-anime.webp");
  background-size: cover;
  background-position: center;
}

.doc-panel__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-alt);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.doc-panel__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doc-panel__kicker {
  font-family: var(--font-alt);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.85rem;
}

.doc-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.doc-panel__body {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 46ch;
  text-wrap: pretty;
}

.doc-panel__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.doc-panel__fact {
  font-family: var(--font-alt);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
}

@media (max-width: 860px) {
  .doc-timeline { grid-template-columns: 1fr; }
  .doc-timeline__rail { display: none; }
  .doc-timeline__nav {
    position: static;
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    padding-right: 0;
  }
  .doc-chip { flex: 0 0 auto; padding-left: 1rem; }
  .doc-chip__dot { display: none; }
  .doc-panel { grid-template-columns: 1fr; }
  .doc-panel__media { min-height: 220px; }
}

/* =====================================================
   Studio glass cards
   ===================================================== */
.studio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.studio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.studio-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.studio-card--gold .studio-card__glow { background: radial-gradient(70% 60% at 50% 0%, rgba(212, 175, 55, 0.16), transparent 70%); }
.studio-card--crimson .studio-card__glow { background: radial-gradient(70% 60% at 50% 0%, rgba(230, 57, 70, 0.16), transparent 70%); }
.studio-card--blue .studio-card__glow { background: radial-gradient(70% 60% at 50% 0%, rgba(79, 195, 247, 0.16), transparent 70%); }
.studio-card--purple .studio-card__glow { background: radial-gradient(70% 60% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%); }

.studio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.studio-card--crimson:hover { border-color: rgba(230, 57, 70, 0.45); }
.studio-card--blue:hover { border-color: rgba(79, 195, 247, 0.45); }
.studio-card--purple:hover { border-color: rgba(139, 92, 246, 0.45); }

.studio-card:hover .studio-card__glow { opacity: 1; }

.studio-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.studio-card__logo {
  font-family: var(--font-jp);
  font-size: 1.35rem;
  color: rgba(245, 245, 245, 0.55);
  line-height: 1;
  transition: color 0.5s var(--ease);
}

.studio-card--gold:hover .studio-card__logo { color: var(--gold); }
.studio-card--crimson:hover .studio-card__logo { color: #ff8f97; }
.studio-card--blue:hover .studio-card__logo { color: var(--blue); }
.studio-card--purple:hover .studio-card__logo { color: #b79bff; }

.studio-card__year {
  font-family: var(--font-alt);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.studio-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.1rem 0 1.25rem;
  position: relative;
  z-index: 1;
}

.studio-card__facts {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  flex: 1;
}

.studio-card__facts > div {
  display: grid;
  gap: 0.15rem;
}

.studio-card__facts dt {
  font-family: var(--font-alt);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.studio-card__facts dd {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.studio-card__actions {
  display: flex;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.studio-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-alt);
  font-size: 0.82rem;
  padding: 0.7rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: none;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    transform 0.35s var(--ease), color 0.35s var(--ease);
}

.studio-btn svg { flex-shrink: 0; }

.studio-btn--site {
  background: var(--glass);
  color: var(--text);
}

.studio-btn--site:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
}

.studio-btn--yt {
  background: rgba(230, 57, 70, 0.14);
  color: #ff8f97;
  border-color: rgba(230, 57, 70, 0.3);
}

.studio-btn--yt:hover {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .studio-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .studio-cards { grid-template-columns: 1fr; }
}

/* =====================================================
   Section 4 — Popular Anime cards
   ===================================================== */
.no-scroll { overflow: hidden; }

.anime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.anime-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.anime-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.85);
}

.anime-card--crimson:hover { border-color: rgba(230, 57, 70, 0.45); }
.anime-card--gold:hover { border-color: rgba(212, 175, 55, 0.45); }
.anime-card--blue:hover { border-color: rgba(79, 195, 247, 0.45); }
.anime-card--purple:hover { border-color: rgba(139, 92, 246, 0.45); }

.anime-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.anime-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.anime-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 7, 10, 0.55) 78%, rgba(5, 7, 10, 0.92));
}

.anime-card:hover .anime-card__media img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.anime-card__genre {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  font-family: var(--font-alt);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(5, 7, 10, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.anime-card__jp {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  font-family: var(--font-jp);
  font-size: 1.05rem;
  color: rgba(245, 245, 245, 0.75);
}

.anime-card__playbtn {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-alt);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.anime-card:hover .anime-card__playbtn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.anime-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.4rem 1.5rem;
  flex: 1;
}

.anime-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.anime-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
}

.anime-card__year {
  font-family: var(--font-alt);
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.anime-card__studio {
  font-family: var(--font-alt);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.anime-card--crimson .anime-card__studio { color: #ff8f97; }
.anime-card--blue .anime-card__studio { color: var(--blue); }
.anime-card--purple .anime-card__studio { color: #b79bff; }

.anime-card__summary {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.anime-card__facts {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.anime-card__facts > div { display: grid; gap: 0.15rem; }

.anime-card__facts dt {
  font-family: var(--font-alt);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.anime-card__facts dd {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text);
}

.anime-card__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.anime-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-alt);
  font-size: 0.8rem;
  padding: 0.7rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: none;
  color: var(--text);
  background: var(--glass);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    transform 0.35s var(--ease), color 0.35s var(--ease);
}

.anime-btn svg { flex-shrink: 0; }

.anime-btn--play {
  background: rgba(230, 57, 70, 0.16);
  color: #ff8f97;
  border-color: rgba(230, 57, 70, 0.32);
}

.anime-btn--play:hover {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
  transform: translateY(-2px);
}

.anime-btn--site:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .anime-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .anime-grid { grid-template-columns: 1fr; }
}

/* ---------- Trailer lightbox ---------- */
.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.trailer-modal.is-open { display: flex; }

.trailer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(6px);
}

.trailer-modal__inner {
  position: relative;
  width: min(1000px, 100%);
  z-index: 1;
}

.trailer-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  background: #000;
}

.trailer-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.trailer-modal__close {
  position: absolute;
  top: -3rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  cursor: none;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.trailer-modal__close:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

@media (max-width: 620px) {
  .trailer-modal__close { top: auto; bottom: -3.2rem; right: 50%; transform: translateX(50%); }
}

/* =====================================================
   Section 5 — Legendary Creators
   ===================================================== */
.creator-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.creator {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(12px);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.creator:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.85);
}

.creator--crimson:hover { border-color: rgba(230, 57, 70, 0.4); }
.creator--blue:hover { border-color: rgba(79, 195, 247, 0.4); }
.creator--purple:hover { border-color: rgba(139, 92, 246, 0.4); }

.creator--flip .creator__portrait { order: 2; }

.creator__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.creator__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.creator:hover .creator__portrait img { transform: scale(1.05); }

.creator__jp {
  position: absolute;
  left: 0.9rem;
  bottom: 0.75rem;
  font-family: var(--font-jp);
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.creator__role {
  font-family: var(--font-alt);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.creator--crimson .creator__role { color: #ff8f97; }
.creator--blue .creator__role { color: var(--blue); }
.creator--purple .creator__role { color: #b79bff; }

.creator__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.creator__bio {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.creator__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}

.creator__col h4,
.creator__works-wrap h4 {
  font-family: var(--font-alt);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.creator__col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.creator__works {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.creator__work {
  font-family: var(--font-alt);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
}

@media (max-width: 820px) {
  .creator { grid-template-columns: 1fr; }
  .creator--flip .creator__portrait { order: 0; }
  .creator__portrait { max-width: 360px; }
  .creator__cols { grid-template-columns: 1fr; }
}

/* =====================================================
   Section 6 — Animation Pipeline
   ===================================================== */
.pipeline__flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.pipeline__step {
  width: min(560px, 100%);
  opacity: 0;
}

.pipeline__card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  overflow: hidden;
  cursor: none;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.pipeline__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--crimson), var(--gold));
  opacity: 0.75;
}

.pipeline__card:hover {
  transform: translateX(4px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}

.pipeline__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.pipeline__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.pipeline__desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pipeline__jp {
  grid-row: 1 / span 2;
  grid-column: 3;
  font-family: var(--font-jp);
  font-size: 1.35rem;
  color: rgba(245, 245, 245, 0.4);
  transition: color 0.4s var(--ease);
}

.pipeline__card:hover .pipeline__jp { color: var(--gold); }

.pipeline__card .pipeline__title,
.pipeline__card .pipeline__desc { grid-column: 2; }

.pipeline__arrow {
  color: rgba(212, 175, 55, 0.65);
  opacity: 0;
  display: flex;
  justify-content: center;
  padding: 0.1rem 0;
}

@media (max-width: 520px) {
  .pipeline__card { padding: 1.1rem 1.2rem; gap: 0.8rem; }
  .pipeline__jp { display: none; }
}

/* =====================================================
   Section 7 — Anime Culture (expandable glass cards)
   ===================================================== */
.culture__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.culture-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}

.culture-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.culture-card--gold .culture-card__glow { background: radial-gradient(80% 60% at 15% 0%, rgba(212, 175, 55, 0.16), transparent 70%); }
.culture-card--crimson .culture-card__glow { background: radial-gradient(80% 60% at 15% 0%, rgba(230, 57, 70, 0.16), transparent 70%); }
.culture-card--blue .culture-card__glow { background: radial-gradient(80% 60% at 15% 0%, rgba(79, 195, 247, 0.16), transparent 70%); }
.culture-card--purple .culture-card__glow { background: radial-gradient(80% 60% at 15% 0%, rgba(139, 92, 246, 0.16), transparent 70%); }

.culture-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}
.culture-card--gold:hover { border-color: rgba(212, 175, 55, 0.45); }
.culture-card--crimson:hover { border-color: rgba(230, 57, 70, 0.45); }
.culture-card--blue:hover { border-color: rgba(79, 195, 247, 0.45); }
.culture-card--purple:hover { border-color: rgba(139, 92, 246, 0.45); }
.culture-card:hover .culture-card__glow,
.culture-card.is-open .culture-card__glow { opacity: 1; }

.culture-card__head {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem;
  background: none;
  border: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.culture-card__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.5s var(--ease), color 0.5s, border-color 0.5s;
}
.culture-card__icon svg { width: 26px; height: 26px; }
.culture-card--gold .culture-card__icon { color: var(--gold); }
.culture-card--crimson .culture-card__icon { color: #ff8f97; }
.culture-card--blue .culture-card__icon { color: var(--blue); }
.culture-card--purple .culture-card__icon { color: #b79bff; }
.culture-card:hover .culture-card__icon { transform: translateY(-2px) scale(1.05); }

.culture-card__heading { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.culture-card__jp {
  font-family: var(--font-jp, "Noto Serif JP", serif);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  opacity: 0.7;
}
.culture-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--text);
}
.culture-card__tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.culture-card__chevron {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--text-secondary);
  transition: transform 0.4s var(--ease), color 0.4s;
}
.culture-card.is-open .culture-card__chevron { transform: rotate(180deg); }
.culture-card--gold.is-open .culture-card__chevron { color: var(--gold); }
.culture-card--crimson.is-open .culture-card__chevron { color: #ff8f97; }
.culture-card--blue.is-open .culture-card__chevron { color: var(--blue); }
.culture-card--purple.is-open .culture-card__chevron { color: #b79bff; }

.culture-card__panel {
  position: relative;
  z-index: 1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.culture-card__panel-inner {
  padding: 0 1.5rem 1.6rem calc(1.5rem + 52px + 1.1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.culture-card__block h4 {
  font-family: var(--font-alt, var(--font-display));
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.culture-card--crimson .culture-card__block h4 { color: #ff8f97; }
.culture-card--blue .culture-card__block h4 { color: var(--blue); }
.culture-card--purple .culture-card__block h4 { color: #b79bff; }
.culture-card__block p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.culture-card__head:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
  border-radius: 20px;
}

@media (max-width: 760px) {
  .culture__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .culture-card__head { padding: 1.2rem; gap: 0.9rem; }
  .culture-card__panel-inner { padding: 0 1.2rem 1.3rem 1.2rem; }
}

/* =====================================================
   Section 8 — Future of Animation (cinematic timeline)
   ===================================================== */
.future { position: relative; overflow: hidden; }

.future__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.future__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.future__orb--1 {
  width: 40vw;
  height: 40vw;
  top: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.28), transparent 70%);
  animation: futureDrift 22s ease-in-out infinite alternate;
}
.future__orb--2 {
  width: 34vw;
  height: 34vw;
  bottom: -12%;
  right: -6%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.24), transparent 70%);
  animation: futureDrift 26s ease-in-out infinite alternate-reverse;
}
.future__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 40%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 40%, #000 40%, transparent 85%);
}

@keyframes futureDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(6%, 8%, 0); }
}

.future .section__head,
.future__timeline { position: relative; z-index: 1; }

.future__timeline {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 0;
}
.future__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--line);
}
.future__rail-fill {
  position: absolute;
  inset: 0;
  transform-origin: top center;
  transform: scaleY(0);
  background: linear-gradient(180deg, var(--blue), var(--purple), var(--crimson));
  box-shadow: 0 0 16px rgba(79, 195, 247, 0.5);
}

.future-node {
  position: relative;
  width: 50%;
  padding: 1.25rem 3rem 1.25rem 0;
  box-sizing: border-box;
}
.future-node--right {
  margin-left: 50%;
  padding: 1.25rem 0 1.25rem 3rem;
}

.future-node__marker {
  position: absolute;
  top: 2rem;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
  z-index: 2;
}
.future-node--right .future-node__marker { right: auto; left: -7px; }
.future-node--crimson .future-node__marker { border-color: var(--crimson); }
.future-node--gold .future-node__marker { border-color: var(--gold); }
.future-node--purple .future-node__marker { border-color: var(--purple); }
.future-node__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: var(--blue);
  opacity: 0;
  animation: futurePulse 3s ease-out infinite;
}
.future-node--crimson .future-node__pulse { color: var(--crimson); }
.future-node--gold .future-node__pulse { color: var(--gold); }
.future-node--purple .future-node__pulse { color: var(--purple); }

@keyframes futurePulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

.future-node__card {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.future-node__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.future-node--blue .future-node__glow { background: radial-gradient(70% 60% at 50% 0%, rgba(79, 195, 247, 0.16), transparent 70%); }
.future-node--crimson .future-node__glow { background: radial-gradient(70% 60% at 50% 0%, rgba(230, 57, 70, 0.16), transparent 70%); }
.future-node--gold .future-node__glow { background: radial-gradient(70% 60% at 50% 0%, rgba(212, 175, 55, 0.16), transparent 70%); }
.future-node--purple .future-node__glow { background: radial-gradient(70% 60% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%); }
.future-node__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}
.future-node--blue .future-node__card:hover { border-color: rgba(79, 195, 247, 0.45); }
.future-node--crimson .future-node__card:hover { border-color: rgba(230, 57, 70, 0.45); }
.future-node--gold .future-node__card:hover { border-color: rgba(212, 175, 55, 0.45); }
.future-node--purple .future-node__card:hover { border-color: rgba(139, 92, 246, 0.45); }
.future-node__card:hover .future-node__glow { opacity: 1; }

.future-node__top {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.future-node__tag {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue);
}
.future-node--crimson .future-node__tag { color: #ff8f97; }
.future-node--gold .future-node__tag { color: var(--gold); }
.future-node--purple .future-node__tag { color: #b79bff; }
.future-node__jp {
  font-family: var(--font-jp, "Noto Serif JP", serif);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  opacity: 0.65;
}
.future-node__title {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.future-node__body {
  position: relative;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.future-node__points {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.future-node__point {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

@media (max-width: 760px) {
  .future__rail { left: 9px; transform: none; }
  .future-node,
  .future-node--right {
    width: 100%;
    margin-left: 0;
    padding: 0.8rem 0 0.8rem 2.4rem;
  }
  .future-node__marker,
  .future-node--right .future-node__marker { left: 2px; right: auto; }
}

/* Graceful fallback for a missing / replaceable anime key-art image. */
.anime-card__media img.is-missing {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  color: rgba(191, 198, 209, 0.5);
  font-family: var(--font-alt);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
}
.anime-card__media img.is-missing::after {
  content: attr(data-fallback);
  border: 1px dashed var(--line);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
}

/* Respect reduced motion for the new sections. */
@media (prefers-reduced-motion: reduce) {
  .future__orb--1,
  .future__orb--2,
  .future-node__pulse { animation: none; }
  .future__rail-fill { transform: scaleY(1); }
}
