/* ============================================================
   DEMON SLAYER FAN HUB — MAIN STYLESHEET
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --black:        #0a0a0a;
  --black-soft:   #111111;
  --black-mid:    #161616;
  --black-light:  #1e1e1e;
  --surface:      #1a1a1a;
  --surface-2:    #222222;
  --red:          #dc143c;
  --red-dark:     #a50e2b;
  --red-light:    #ff2a52;
  --red-glow:     rgba(220, 20, 60, 0.4);
  --red-glow-sm:  rgba(220, 20, 60, 0.2);
  --gold:         #c8a84b;
  --gold-light:   #e8c87a;
  --white:        #f5f0eb;
  --white-dim:    rgba(245, 240, 235, 0.7);
  --white-faint:  rgba(245, 240, 235, 0.35);
  --border:       rgba(255, 255, 255, 0.07);
  --border-red:   rgba(220, 20, 60, 0.3);

  --font-display: 'Cinzel Decorative', serif;
  --font-serif:   'Cinzel', serif;
  --font-jp:      'Noto Serif JP', serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--red-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--red);
  color: var(--white);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  line-height: 1.15;
  font-weight: 700;
}

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

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

/* ---------- Utilities ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-red {
  color: var(--red);
}

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--border-red);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--white-dim);
  max-width: 620px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-kanji {
  font-family: var(--font-jp);
  font-size: 1.6rem;
  color: var(--red);
  font-weight: 700;
  text-shadow: 0 0 20px var(--red-glow);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

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

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(220, 20, 60, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(200, 70, 0, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, var(--black) 100%);
}

/* Decorative grid lines */
.hero-bg-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-jp);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--red);
  letter-spacing: 0.5em;
  margin-bottom: 24px;
  opacity: 0;
  animation: heroFadeDown 1s 0.3s forwards;
  text-shadow: 0 0 30px var(--red-glow);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 0;
  opacity: 0;
  animation: heroFadeUp 1.2s 0.5s forwards;
}

.hero-title-main {
  display: block;
  color: var(--white);
  text-shadow:
    0 0 60px rgba(255, 255, 255, 0.1),
    0 4px 40px rgba(0, 0, 0, 0.8);
}

.hero-title-accent {
  display: block;
  color: var(--red);
  text-shadow:
    0 0 60px var(--red-glow),
    0 0 120px rgba(220, 20, 60, 0.3);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--white-dim);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-top: 16px;
  margin-bottom: 32px;
  opacity: 0;
  animation: heroFadeUp 1s 0.8s forwards;
}

.hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--white-faint);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.8;
  opacity: 0;
  animation: heroFadeUp 1s 1s forwards;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  animation: heroFadeUp 1s 1.2s forwards;
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}

.btn-hero:hover {
  background: var(--red-light);
  box-shadow:
    0 0 30px var(--red-glow),
    0 8px 30px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}

.btn-hero svg {
  transition: transform var(--transition);
}

.btn-hero:hover svg {
  transform: translateX(4px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: heroFadeUp 1s 1.8s forwards;
}

.hero-scroll-indicator span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-faint);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--red) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  background: var(--black-soft);
}

.section-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2l-38 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text .section-tag {
  margin-bottom: 16px;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 300;
}

.about-body {
  font-size: 0.95rem;
  color: var(--white-dim);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-body strong {
  color: var(--white);
  font-weight: 600;
}

.about-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-faint);
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-image-frame {
  position: relative;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--black-light) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(220,20,60,0.1) 0%, transparent 50%),
    linear-gradient(315deg, rgba(200,70,0,0.05) 0%, transparent 50%);
}

.placeholder-inner {
  text-align: center;
  z-index: 1;
  position: relative;
}

.placeholder-symbol {
  font-family: var(--font-jp);
  font-size: 8rem;
  font-weight: 700;
  color: rgba(220, 20, 60, 0.2);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 80px rgba(220, 20, 60, 0.3);
}

.placeholder-inner p {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-faint);
}

.about-deco-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--red);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 30px rgba(220,20,60,0.4);
}

.about-deco-badge span {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.about-quote-block {
  background: var(--surface);
  border-left: 3px solid var(--red);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 24px;
}

.about-quote-block blockquote {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 10px;
}

.about-quote-block cite {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-style: normal;
}

/* ============================================================
   CHARACTERS
   ============================================================ */

.characters {
  background: var(--black);
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.char-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.char-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(220,20,60,0.2), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}

.char-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 20, 60, 0.4);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 30px rgba(220, 20, 60, 0.15);
}

.char-card:hover::before {
  opacity: 1;
}

.char-card.featured {
  border-color: rgba(220, 20, 60, 0.3);
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.1);
}

.char-card.villain {
  border-color: rgba(90, 10, 90, 0.4);
}

.char-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.char-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--char-color, #333) 30%, var(--black-light)) 0%,
    color-mix(in srgb, var(--char-color, #333) 10%, var(--black)) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.char-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 60%),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
}

.char-symbol {
  font-family: var(--font-jp);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  z-index: 1;
  position: relative;
  text-shadow: 0 0 40px currentColor;
}

.char-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.char-card:hover .char-overlay {
  opacity: 1;
}

.char-style-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid;
}

.char-style-badge.water  { background: rgba(0,119,190,0.3);  border-color: rgba(0,119,190,0.7);  color: #64b8e8; }
.char-style-badge.thunder{ background: rgba(200,160,0,0.3);  border-color: rgba(200,160,0,0.7);  color: #e8d070; }
.char-style-badge.flame  { background: rgba(200,75,0,0.3);   border-color: rgba(200,75,0,0.7);   color: #f08060; }
.char-style-badge.beast  { background: rgba(45,122,45,0.3);  border-color: rgba(45,122,45,0.7);  color: #80c880; }
.char-style-badge.demon  { background: rgba(139,26,126,0.3); border-color: rgba(139,26,126,0.7); color: #d890d0; }
.char-style-badge.muzan  { background: rgba(90,10,90,0.3);   border-color: rgba(90,10,90,0.7);   color: #c060c0; }

.char-info {
  padding: 20px;
}

.char-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.char-role {
  font-size: 0.75rem;
  color: var(--white-faint);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.char-style {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--white-dim);
}

.style-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.style-dot.water   { background: #0077be; box-shadow: 0 0 6px rgba(0,119,190,0.8); }
.style-dot.thunder { background: #c8a000; box-shadow: 0 0 6px rgba(200,160,0,0.8); }
.style-dot.flame   { background: #c84b00; box-shadow: 0 0 6px rgba(200,75,0,0.8); }
.style-dot.beast   { background: #2d7a2d; box-shadow: 0 0 6px rgba(45,122,45,0.8); }
.style-dot.demon   { background: #8b1a7e; box-shadow: 0 0 6px rgba(139,26,126,0.8); }
.style-dot.muzan   { background: #5a0a5a; box-shadow: 0 0 6px rgba(90,10,90,0.8); }

/* ============================================================
   BREATHING STYLES
   ============================================================ */

.breathing {
  background: var(--black-soft);
}

.section-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(220,20,60,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(200,75,0,0.04) 0%, transparent 60%);
}

.breathing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.breath-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.breath-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 30px var(--breath-glow, rgba(220,20,60,0.1));
  opacity: 0;
  transition: opacity var(--transition);
}

.breath-card:hover {
  transform: translateY(-4px);
  border-color: var(--breath-color, var(--red));
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px var(--breath-glow, var(--red-glow-sm));
}

.breath-card:hover::after {
  opacity: 1;
}

.breath-icon {
  width: 52px;
  height: 52px;
  color: var(--breath-color, var(--red));
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px var(--breath-glow, var(--red-glow)));
}

.breath-icon svg {
  width: 100%;
  height: 100%;
}

.breath-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.breath-forms {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--breath-color, var(--red));
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.breath-desc {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.breath-kanji {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-family: var(--font-jp);
  font-size: 6rem;
  font-weight: 700;
  color: var(--breath-color, var(--red));
  opacity: 0.06;
  line-height: 1;
  user-select: none;
  transition: opacity var(--transition);
}

.breath-card:hover .breath-kanji {
  opacity: 0.12;
}

/* ============================================================
   HASHIRA GALLERY
   ============================================================ */

.hashira {
  background: var(--black);
}

.hashira-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.hashira-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--black-mid) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.hashira-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-red);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 40px rgba(220, 20, 60, 0.1);
}

.hashira-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.hashira-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--h-color, #333) 25%, var(--black-light)) 0%,
    color-mix(in srgb, var(--h-color, #333) 8%, var(--black)) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hashira-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.07) 0%, transparent 60%),
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
}

.h-kanji {
  font-family: var(--font-jp);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.18);
  z-index: 1;
  position: relative;
  text-shadow: 0 0 40px var(--h-color, var(--red));
}

.hashira-rank {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-red);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  text-align: center;
  z-index: 2;
}

.hashira-details {
  padding: 22px;
}

.hashira-details h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.hashira-style {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.hashira-trait {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.65;
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline-section {
  background: var(--black-soft);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--red) 10%, var(--red) 90%, transparent);
  transform: translateX(-50%);
  opacity: 0.4;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 48px;
  position: relative;
}

.timeline-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 0 20px var(--red-glow-sm);
}

.t-num {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 340px;
  transition: var(--transition);
  position: relative;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 20px;
  right: -8px;
  width: 16px;
  height: 16px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(-45deg);
}

.timeline-item.right .timeline-card::before {
  right: auto;
  left: -8px;
  transform: rotate(135deg);
}

.timeline-card:hover {
  border-color: var(--border-red);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.t-arc-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.timeline-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.timeline-card p {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

.t-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.t-highlights span {
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.2);
  color: rgba(220, 20, 60, 0.8);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* ============================================================
   FAN ZONE
   ============================================================ */

.fanzone {
  background: var(--black);
}

.fanzone-pattern {
  opacity: 0.02;
}

.quote-carousel {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.carousel-track {
  position: relative;
  min-height: 280px;
}

.quote-slide {
  display: none;
  padding: 48px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--black-mid) 100%);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: quoteFade 0.5s ease;
}

.quote-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(220,20,60,0.08) 0%, transparent 60%);
}

.quote-slide.active {
  display: block;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--red);
  opacity: 0.3;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.quote-text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.quote-attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.quote-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.quote-role {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 0 20px var(--red-glow-sm);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--red);
  width: 20px;
  border-radius: 3px;
  box-shadow: 0 0 8px var(--red-glow);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-kanji {
  font-size: 2.4rem;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--white-faint);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white-dim);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--red);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--white-faint);
  line-height: 1.6;
  text-align: center;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

@keyframes quoteFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes emberFloat {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-100vh) translateX(var(--drift, 40px)) rotate(360deg); opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual {
    max-width: 480px;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item,
  .timeline-item.right {
    padding-right: 0;
    padding-left: 64px;
    justify-content: flex-start;
  }
  .timeline-marker {
    left: 20px;
  }
  .timeline-card {
    max-width: 100%;
  }
  .timeline-card::before,
  .timeline-item.right .timeline-card::before {
    left: -8px;
    right: auto;
    transform: rotate(135deg);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .nav-link::after {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .breathing-grid {
    grid-template-columns: 1fr;
  }

  .hashira-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .about-stats {
    gap: 24px;
  }

  .quote-slide {
    padding: 32px 24px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .hashira-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }
}
