
/* ==================================================================
   METAVERSE-INFO // Oneiric Drift
   "情報の地平を、漂う。"
   ================================================================== */

:root {
  --ink-0: #06061a;
  --ink-1: #0a0a1f;
  --ink-2: #1a0b2e;
  --ink-3: #0f1a3a;
  --lavender: #c9b6ff;
  --aqua: #7fd9ff;
  --peach: #ffb89a;
  --text: #f0ebff;
  --text-2: #c9c3dc;
  --muted: #9a95b3;
  --dim: #6b6788;
  --line: rgba(240, 235, 255, 0.08);
  --line-soft: rgba(240, 235, 255, 0.14);
  --glass: rgba(240, 235, 255, 0.035);
  --glass-strong: rgba(240, 235, 255, 0.06);

  --font-mincho: 'Shippori Mincho B1', 'Noto Serif JP', serif;
  --font-serif: 'Noto Serif JP', serif;
  --font-italic: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
  --font-jp: 'Noto Sans JP', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 3vw, 56px);
  --frame: clamp(20px, 2.4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: rgba(201, 182, 255, 0.35); color: #fff; }

html, body {
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
  position: relative;
  background: transparent;
}

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

/* ==================================================================
   BACKGROUND LAYERS
   ================================================================== */

/* Background video — fullscreen ambient layer */
.bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, #0a0a1f 0%, #1a0b2e 50%, #0f1a3a 100%);
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.75) contrast(1.05);
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  transform-origin: 50% 40%;
  will-change: transform;
}
.bg-video.ready { opacity: 1; }
.bg-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(10,10,31,0.35) 100%),
    linear-gradient(180deg, rgba(10,10,31,0.35) 0%, rgba(26,11,46,0.25) 50%, rgba(10,10,31,0.55) 100%);
}

.cosmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* soft orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  mix-blend-mode: screen;
  will-change: transform;
}
.orb-1 {
  width: 640px; height: 640px;
  top: -10%; left: -8%;
  background: radial-gradient(circle, rgba(201, 182, 255, 0.85) 0%, rgba(201, 182, 255, 0.25) 40%, transparent 70%);
  animation: orbDrift1 42s ease-in-out infinite alternate, orbPulse 8s ease-in-out infinite;
}
.orb-2 {
  width: 780px; height: 780px;
  top: 25%; right: -12%;
  background: radial-gradient(circle, rgba(127, 217, 255, 0.75) 0%, rgba(127, 217, 255, 0.22) 40%, transparent 70%);
  animation: orbDrift2 58s ease-in-out infinite alternate-reverse, orbPulse 10s ease-in-out infinite -2s;
}
.orb-3 {
  width: 520px; height: 520px;
  top: 60%; left: 20%;
  background: radial-gradient(circle, rgba(255, 184, 154, 0.65) 0%, rgba(255, 184, 154, 0.2) 40%, transparent 70%);
  animation: orbDrift3 50s ease-in-out infinite alternate, orbPulse 9s ease-in-out infinite -4s;
}
.orb-4 {
  width: 420px; height: 420px;
  bottom: 10%; right: 15%;
  background: radial-gradient(circle, rgba(201, 182, 255, 0.7) 0%, rgba(127, 217, 255, 0.3) 40%, transparent 75%);
  animation: orbDrift4 46s ease-in-out infinite alternate-reverse, orbPulse 11s ease-in-out infinite -6s;
}
.orb-5 {
  width: 380px; height: 380px;
  top: 45%; left: 55%;
  background: radial-gradient(circle, rgba(127, 217, 255, 0.55) 0%, transparent 70%);
  animation: orbDrift5 54s ease-in-out infinite alternate, orbPulse 12s ease-in-out infinite -3s;
}

@keyframes orbDrift1 {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(80px, 60px, 0) rotate(45deg); }
  100% { transform: translate3d(-60px, 100px, 0) rotate(-30deg); }
}
@keyframes orbDrift2 {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(-120px, 80px, 0) rotate(-60deg); }
  100% { transform: translate3d(60px, -80px, 0) rotate(40deg); }
}
@keyframes orbDrift3 {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(140px, -70px, 0) rotate(80deg); }
  100% { transform: translate3d(-90px, 50px, 0) rotate(-45deg); }
}
@keyframes orbDrift4 {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-80px, -120px, 0); }
  100% { transform: translate3d(100px, 60px, 0); }
}
@keyframes orbDrift5 {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(60px, 90px, 0); }
  100% { transform: translate3d(-100px, -50px, 0); }
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.45; filter: blur(80px); }
  50%      { opacity: 0.7;  filter: blur(100px); }
}

/* stars canvas — softened to blend with bg video */
#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  mix-blend-mode: screen;
}

/* god rays */
.rays {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(201, 182, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 0%, rgba(127, 217, 255, 0.1), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* film grain */
.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 98;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  animation: grainShift 8s steps(8) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-4%, 3%); }
  50%  { transform: translate(3%, -4%); }
  75%  { transform: translate(-3%, -2%); }
  100% { transform: translate(4%, 2%); }
}

/* subtle vignette */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 97;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(6, 6, 26, 0.5) 100%);
}

/* ==================================================================
   CURSOR — glowing light particle
   ================================================================== */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(201, 182, 255, 0.7) 30%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(4px);
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease);
}
.cursor.hover {
  width: 64px; height: 64px;
  background: radial-gradient(circle, rgba(127, 217, 255, 0.8) 0%, rgba(201, 182, 255, 0.3) 40%, transparent 70%);
}
.cursor-trail {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(201, 182, 255, 0.8);
}

/* ==================================================================
   LAYOUT
   ================================================================== */
.app {
  position: relative;
  z-index: 10;
}
.shell {
  padding-left: var(--frame);
  padding-right: var(--frame);
  max-width: 1640px;
  margin: 0 auto;
}

/* ==================================================================
   HEADER
   ================================================================== */
.header {
  position: fixed;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 80;
  padding: 18px 28px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(10, 10, 31, 0.4);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: url('/assets/metaverse-logo-96.png') center / contain no-repeat;
  box-shadow: 0 0 18px rgba(127, 217, 255, 0.45);
  position: relative;
  animation: orbPulse 4s ease-in-out infinite;
}
.brand-name {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--text);
}
.brand-name small {
  display: block;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 1px;
  font-weight: 400;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 36px;
}
.nav a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-2);
  transition: color .6s var(--ease), opacity .6s var(--ease);
  opacity: 0.75;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  opacity: 1;
}
.nav a.active {
  position: relative;
}
.nav a.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  width: 4px; height: 4px;
  background: var(--lavender);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px var(--lavender);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang {
  display: inline-flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.lang button { transition: color .5s var(--ease); padding: 2px 4px; }
.lang button.on { color: var(--lavender); }
.lang span { color: var(--dim); }
.icon-btn {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  border-radius: 50%;
  transition: color .4s var(--ease), background .4s var(--ease);
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.hub-pill {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(201, 182, 255, 0.04);
  transition: all .6s var(--ease);
}
.hub-pill:hover {
  border-color: rgba(201, 182, 255, 0.45);
  background: rgba(201, 182, 255, 0.08);
  box-shadow: 0 0 24px rgba(201, 182, 255, 0.2);
}

/* ==================================================================
   REVEAL ANIMATIONS
   ================================================================== */
.fade {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease), filter 1.6s var(--ease);
}
.in-view .fade { opacity: 1; transform: none; filter: blur(0); }
.in-view .fade.d1 { transition-delay: .15s; }
.in-view .fade.d2 { transition-delay: .35s; }
.in-view .fade.d3 { transition-delay: .55s; }
.in-view .fade.d4 { transition-delay: .75s; }
.in-view .fade.d5 { transition-delay: .95s; }

/* ==================================================================
   HERO
   ================================================================== */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--lavender);
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0.85;
}
.hero-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lavender);
  box-shadow: 0 0 10px var(--lavender);
  margin: 0 14px;
  transform: translateY(-2px);
}

.hero-title {
  font-family: var(--font-mincho);
  font-weight: 300;
  font-size: clamp(52px, 10vw, 180px);
  letter-spacing: 0.08em;
  line-height: 1.18;
  color: var(--text);
  text-shadow:
    0 0 40px rgba(201, 182, 255, 0.4),
    0 0 80px rgba(127, 217, 255, 0.15);
  margin-bottom: 40px;
  position: relative;
}
.hero-title .line {
  display: block;
}
.hero-title .line.indent {
  padding-left: 1.2em;
}
.hero-title .soft {
  color: var(--text);
  opacity: 0.75;
}
.hero-title .mark {
  color: var(--lavender);
}

/* Depth wrapper — title sinks into the video on scroll */
.hero-depth {
  position: relative;
  will-change: transform, opacity, filter;
}
.hero-mist {
  position: absolute;
  inset: -18% -28%;
  pointer-events: none;
  z-index: 6;
}
.hero-mist .mist {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.mist-veil {
  left: 0%; top: 28%;
  width: 105%; height: 52%;
  background: radial-gradient(ellipse at 50% 50%, rgba(22, 14, 50, 0.5), rgba(22, 14, 50, 0) 70%);
  filter: blur(50px);
  animation: mistSway 26s ease-in-out infinite alternate;
}
.mist-glow {
  right: -4%; top: 4%;
  width: 68%; height: 48%;
  background: radial-gradient(ellipse at 50% 50%, rgba(201, 182, 255, 0.2), transparent 70%);
  filter: blur(60px);
  mix-blend-mode: screen;
  animation: mistSway 34s ease-in-out infinite alternate-reverse;
}
.mist-low {
  left: -8%; bottom: -10%;
  width: 88%; height: 44%;
  background: radial-gradient(ellipse at 50% 50%, rgba(15, 26, 58, 0.55), transparent 70%);
  filter: blur(46px);
  animation: mistSway 30s ease-in-out infinite alternate;
}
@keyframes mistSway {
  0%   { transform: translate3d(-3%, 0, 0) scale(1); }
  100% { transform: translate3d(3%, -4%, 0) scale(1.08); }
}

.hero-sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 32px);
  letter-spacing: 0.04em;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto 60px;
}
.hero-sub .dim { color: var(--muted); }
.hero-sub .accent { color: var(--aqua); }

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-meta .val { color: var(--text); font-weight: 400; }
.hero-meta .accent { color: var(--lavender); }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: scrollBreathe 3s ease-in-out infinite;
}
@keyframes scrollBreathe {
  0%, 100% { opacity: 0.5; transform: translate(-50%, 0); }
  50%      { opacity: 1;   transform: translate(-50%, 6px); }
}
.scroll-hint .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--lavender), transparent);
}

/* ==================================================================
   BUTTONS
   ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  transition: all .6s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--bx, 50%) 50%, rgba(201, 182, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.btn:hover::before { opacity: 1; }
.btn:hover {
  border-color: rgba(201, 182, 255, 0.4);
  background: rgba(201, 182, 255, 0.08);
  box-shadow: 0 20px 60px rgba(201, 182, 255, 0.2), 0 0 40px rgba(127, 217, 255, 0.1);
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, rgba(201, 182, 255, 0.25), rgba(127, 217, 255, 0.18));
  border-color: rgba(201, 182, 255, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(201, 182, 255, 0.38), rgba(127, 217, 255, 0.3));
  box-shadow: 0 24px 60px rgba(201, 182, 255, 0.3), 0 0 50px rgba(127, 217, 255, 0.18);
}
.btn .arrow {
  transition: transform .6s var(--ease);
}
.btn:hover .arrow { transform: translate(4px, -2px); }

/* ==================================================================
   SECTION
   ================================================================== */
.section {
  padding: 140px 0;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 80px;
}
.section-eyebrow {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--aqua);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow .num {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}
.section-title {
  font-family: var(--font-mincho);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 84px);
  letter-spacing: 0.1em;
  line-height: 1.25;
  color: var(--text);
  text-shadow: 0 0 30px rgba(201, 182, 255, 0.3);
  margin-bottom: 18px;
}
.section-sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==================================================================
   GLASS CARD BASE
   ================================================================== */
.card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  transition: transform .8s var(--ease), border-color .8s var(--ease), box-shadow .8s var(--ease), background .8s var(--ease);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 182, 255, 0.28);
  background: rgba(240, 235, 255, 0.05);
  box-shadow: 0 30px 80px rgba(127, 217, 255, 0.15), 0 0 40px rgba(201, 182, 255, 0.1);
}
/* light sheen sweep on hover */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(240, 235, 255, 0.07) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 1.2s var(--ease);
  pointer-events: none;
}
.card:hover::after { transform: translateX(130%); }
/* fast transform while tilting / magnetized */
.card.tilting {
  transition: transform .2s ease-out, border-color .8s var(--ease), box-shadow .8s var(--ease), background .8s var(--ease);
}
.magnet-active { transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.btn, .ai-submit, .hub-pill, .float-ai { will-change: transform; }

/* ==================================================================
   AI BAR (glass panel, poetic placeholder)
   ================================================================== */
.ai-panel {
  max-width: 820px;
  margin: 48px auto 0;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(240, 235, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(201, 182, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 24px;
  padding-right: 8px;
  position: relative;
}
.ai-panel::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--a, 0deg), transparent 0%, rgba(201, 182, 255, 0.3) 25%, transparent 50%, rgba(127, 217, 255, 0.3) 75%, transparent 100%);
  z-index: -1;
  opacity: 0.5;
  filter: blur(6px);
  animation: spin 10s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--lavender);
}
.ai-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  padding: 14px 0;
  caret-color: var(--lavender);
}
.ai-input::placeholder { color: var(--muted); font-style: italic; }
.ai-submit {
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-0);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(201, 182, 255, 0.9));
  transition: all .5s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ai-submit:hover {
  background: linear-gradient(135deg, var(--lavender), var(--aqua));
  box-shadow: 0 0 30px rgba(201, 182, 255, 0.5);
}
.ai-note {
  max-width: 820px;
  margin: 14px auto 0;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: center;
}
.ai-note .dot { color: var(--lavender); }

/* ==================================================================
   STARTER CARDS
   ================================================================== */
.starter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.starter {
  padding: 44px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 340px;
  cursor: none;
}
.starter-orb {
  width: 68px; height: 68px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(201, 182, 255, 0.6) 40%, transparent 70%);
  box-shadow: 0 0 28px rgba(201, 182, 255, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.3);
  position: relative;
  animation: orbPulse 4s ease-in-out infinite;
}
.starter:nth-child(2) .starter-orb {
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(127, 217, 255, 0.6) 40%, transparent 70%);
  box-shadow: 0 0 28px rgba(127, 217, 255, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.3);
}
.starter:nth-child(3) .starter-orb {
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(255, 184, 154, 0.6) 40%, transparent 70%);
  box-shadow: 0 0 28px rgba(255, 184, 154, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.3);
}
.starter-title {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--text);
}
.starter-title em {
  display: block;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 8px;
  font-variant: normal;
  text-transform: uppercase;
}
.starter-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
  margin-top: auto;
}
.starter-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--lavender);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.starter:hover .starter-cta { color: var(--aqua); }
.starter-cta .arrow { transition: transform .6s var(--ease); }
.starter:hover .starter-cta .arrow { transform: translateX(6px); }

/* ==================================================================
   EVENTS
   ================================================================== */
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 50px;
}
.tab {
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(240, 235, 255, 0.02);
  backdrop-filter: blur(10px);
  transition: all .6s var(--ease);
}
.tab.on {
  color: var(--text);
  border-color: rgba(201, 182, 255, 0.35);
  background: rgba(201, 182, 255, 0.08);
  box-shadow: 0 0 24px rgba(201, 182, 255, 0.2);
}
.tab:hover { color: var(--text); }

.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.event {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  padding: 28px;
  align-items: center;
  cursor: none;
}
.event-date {
  text-align: center;
  padding: 14px 8px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(201, 182, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event-date .mo {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--lavender);
  text-transform: uppercase;
}
.event-date .day {
  font-family: var(--font-mincho);
  font-weight: 300;
  font-size: 36px;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
  text-shadow: 0 0 20px rgba(201, 182, 255, 0.4);
}
.event-date .wd {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.event-body .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--aqua);
  margin-bottom: 10px;
}
.event-body .tag .d { width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 6px var(--aqua); }
.event-body .title {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 10px;
}
.event-body .meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.event-arrow {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 20px;
  color: var(--lavender);
  opacity: 0.5;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.event:hover .event-arrow { opacity: 1; transform: translateX(4px); }
.events-foot {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ==================================================================
   QUIZ
   ================================================================== */
.quiz-wrap {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: stretch;
}
.quiz-side {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.quiz-side .topic {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--text);
}
.quiz-side .topic em {
  display: block;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--aqua);
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 400;
}
.quiz-side .meter-wrap {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: auto;
}
.quiz-side .meter-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.quiz-side .meter-label .v { color: var(--lavender); }
.quiz-side .meter {
  height: 2px;
  border-radius: 2px;
  background: rgba(240, 235, 255, 0.08);
  overflow: hidden;
}
.quiz-side .meter .fill {
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--lavender), var(--aqua));
  box-shadow: 0 0 14px var(--lavender);
}
.quiz-side .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.quiz-side .stat .v {
  font-family: var(--font-mincho);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.quiz-side .stat .v .a { color: var(--lavender); }
.quiz-side .stat .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
}
.quiz-main {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.quiz-eyebrow {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--aqua);
  text-transform: uppercase;
}
.quiz-q {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: var(--text);
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(240, 235, 255, 0.02);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  transition: all .5s var(--ease);
  width: 100%;
}
.quiz-option:hover {
  border-color: rgba(201, 182, 255, 0.35);
  background: rgba(201, 182, 255, 0.05);
  color: var(--text);
  transform: translateX(4px);
}
.quiz-option .letter {
  font-family: var(--font-mincho);
  font-size: 15px;
  color: var(--lavender);
}
.quiz-option .mark {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0;
  transition: opacity .4s var(--ease);
  text-transform: uppercase;
}
.quiz-option:hover .mark { opacity: 0.8; }
.quiz-option.correct {
  border-color: rgba(127, 217, 255, 0.45);
  background: rgba(127, 217, 255, 0.08);
  color: var(--text);
  box-shadow: 0 0 30px rgba(127, 217, 255, 0.2);
}
.quiz-option.correct .letter { color: var(--aqua); }
.quiz-option.correct .mark { opacity: 1; color: var(--aqua); }
.quiz-option.incorrect {
  border-color: rgba(255, 184, 154, 0.35);
  background: rgba(255, 184, 154, 0.05);
  color: var(--text-2);
}
.quiz-option.incorrect .mark { opacity: 1; color: var(--peach); }
.quiz-explain {
  padding: 22px 26px;
  border-radius: 14px;
  background: rgba(127, 217, 255, 0.06);
  border-left: 2px solid var(--aqua);
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
}
.quiz-explain strong {
  display: block;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--aqua);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 400;
}

/* ==================================================================
   CATEGORIES
   ================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.cat {
  padding: 36px 24px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: none;
  min-height: 220px;
  justify-content: space-between;
}
.cat-orb {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8), rgba(201, 182, 255, 0.4) 50%, transparent 75%);
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(201, 182, 255, 0.4);
}
.cat:nth-child(2) .cat-orb { background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8), rgba(127, 217, 255, 0.5) 50%, transparent 75%); box-shadow: 0 0 20px rgba(127, 217, 255, 0.4); }
.cat:nth-child(3) .cat-orb { background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8), rgba(255, 184, 154, 0.5) 50%, transparent 75%); box-shadow: 0 0 20px rgba(255, 184, 154, 0.4); }
.cat:nth-child(4) .cat-orb { background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8), rgba(201, 182, 255, 0.4) 50%, transparent 75%); box-shadow: 0 0 20px rgba(201, 182, 255, 0.35); }
.cat:nth-child(5) .cat-orb { background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8), rgba(127, 217, 255, 0.4) 50%, transparent 75%); box-shadow: 0 0 20px rgba(127, 217, 255, 0.35); }

.cat-name {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--text);
}
.cat-name em {
  display: block;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
}
.cat-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--lavender);
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ==================================================================
   FEATURED
   ================================================================== */
.featured {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 56px;
  align-items: center;
  padding: 32px;
}
.featured-thumb {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0b2e 0%, #0a0a1f 100%);
  border: 1px solid var(--line-soft);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(201, 182, 255, 0.15);
}
.featured-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201, 182, 255, 0.25), transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(127, 217, 255, 0.2), transparent 60%);
}
.featured-thumb-svg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
}
.featured-thumb image-slot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 1.4s var(--ease);
}
.featured:hover .featured-thumb image-slot { transform: scale(1.03); }
.featured-thumb-label {
  position: absolute;
  top: 22px; left: 22px;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--lavender);
  text-transform: uppercase;
  z-index: 2;
}
.featured-content { padding: 20px 0; }
.featured-cat {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--aqua);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.featured-title {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 52px);
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 22px;
  text-shadow: 0 0 30px rgba(201, 182, 255, 0.2);
}
.featured-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
  margin-bottom: 32px;
}
.featured-meta {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.featured-meta .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.featured-meta .v {
  font-family: var(--font-mincho);
  font-size: 15px;
  color: var(--text);
}
.featured-meta .v.accent { color: var(--lavender); }

/* ==================================================================
   ARTICLES
   ================================================================== */
.articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.article {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 28px;
  align-items: start;
  cursor: none;
}
.article-thumb {
  aspect-ratio: 4/5;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1a0b2e, #0a0a1f);
  border: 1px solid var(--line);
}
.article-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 40%, var(--hue, rgba(201, 182, 255, 0.35)), transparent 65%);
}
/* user-fillable image slot inside article thumb */
.article-thumb image-slot,
.featured-thumb image-slot {
  color: rgba(240, 235, 255, 0.62);
}
.article-thumb image-slot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 1.2s var(--ease);
}
.article:hover .article-thumb image-slot { transform: scale(1.045); }
.article:nth-child(1) .article-thumb { --hue: rgba(201, 182, 255, 0.4); }
.article:nth-child(2) .article-thumb { --hue: rgba(127, 217, 255, 0.4); }
.article:nth-child(3) .article-thumb { --hue: rgba(255, 184, 154, 0.35); }
.article:nth-child(4) .article-thumb { --hue: rgba(127, 217, 255, 0.4); }
.article:nth-child(5) .article-thumb { --hue: rgba(201, 182, 255, 0.4); }
.article:nth-child(6) .article-thumb { --hue: rgba(255, 184, 154, 0.35); }

.article-body { padding-top: 4px; }
.article-cat {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--aqua);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.article-title {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 14px;
  transition: color .5s var(--ease);
}
.article:hover .article-title { color: var(--lavender); }
.article-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 16px;
}
.article-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}
.article-meta .accent { color: var(--lavender); }
.articles-foot { display: flex; justify-content: center; margin-top: 48px; }

/* ==================================================================
   Q&A
   ================================================================== */
.qa {
  padding: 90px 60px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.qa-orb {
  width: 90px; height: 90px;
  border-radius: 50%;
  margin: 0 auto 32px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(201, 182, 255, 0.6) 35%, rgba(127, 217, 255, 0.3) 65%, transparent 80%);
  box-shadow: 0 0 60px rgba(201, 182, 255, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.3);
  animation: orbPulse 4s ease-in-out infinite;
  position: relative;
}
.qa-orb::after {
  content: '?';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mincho);
  font-weight: 300;
  font-size: 32px;
  color: var(--text);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
.qa-title {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 14px;
  color: var(--text);
}
.qa-sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ==================================================================
   HUB
   ================================================================== */
.hub {
  padding: 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hub::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(201, 182, 255, 0.15), rgba(127, 217, 255, 0.15), rgba(255, 184, 154, 0.1), rgba(201, 182, 255, 0.15));
  z-index: -1;
  filter: blur(30px);
  opacity: 0.7;
  animation: spin 28s linear infinite;
}
.hub-tag {
  display: inline-flex;
  gap: 10px;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--aqua);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hub-title {
  font-family: var(--font-mincho);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 80px);
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--text);
  text-shadow: 0 0 40px rgba(201, 182, 255, 0.3);
  margin-bottom: 22px;
}
.hub-title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--lavender);
}
.hub-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 520px;
}
.hub-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hub-stats .v {
  font-family: var(--font-mincho);
  font-weight: 300;
  font-size: 30px;
  color: var(--text);
  letter-spacing: 0.03em;
}
.hub-stats .v .a { color: var(--lavender); }
.hub-stats .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
}
.hub-visual {
  aspect-ratio: 1;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
}
.hub-globe {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95) 0%, rgba(201, 182, 255, 0.8) 20%, rgba(127, 217, 255, 0.6) 50%, rgba(26, 11, 46, 0.9) 90%),
    radial-gradient(circle at 70% 70%, rgba(255, 184, 154, 0.4), transparent 50%);
  box-shadow:
    0 0 80px rgba(201, 182, 255, 0.5),
    inset 0 0 60px rgba(201, 182, 255, 0.3),
    inset -30px -30px 80px rgba(26, 11, 46, 0.8);
  animation: orbPulse 6s ease-in-out infinite;
}
.hub-globe::before, .hub-globe::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(201, 182, 255, 0.2);
  animation: spin 24s linear infinite;
}
.hub-globe::after {
  inset: -36px;
  border-style: dashed;
  border-color: rgba(127, 217, 255, 0.15);
  animation-duration: 40s;
  animation-direction: reverse;
}

/* ==================================================================
   FLOATING
   ================================================================== */
.floating {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.float-bgm {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 10, 31, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  transition: all .6s var(--ease);
}
.float-bgm:hover {
  border-color: rgba(201, 182, 255, 0.4);
  color: var(--lavender);
  box-shadow: 0 0 30px rgba(201, 182, 255, 0.25);
}
.float-bgm.on { color: var(--lavender); border-color: rgba(201, 182, 255, 0.5); }
.float-bgm .wave {
  position: relative;
  width: 20px; height: 20px;
}
.float-bgm .wave span {
  position: absolute;
  inset: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
}
.float-bgm.on .wave span {
  animation: waveOut 2.2s ease-out infinite;
}
.float-bgm.on .wave span:nth-child(2) { animation-delay: 0.7s; }
.float-bgm.on .wave span:nth-child(3) { animation-delay: 1.4s; }
.float-bgm.on .wave::before {
  content: '';
  position: absolute;
  inset: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.float-bgm .wave::before {
  content: '';
  position: absolute;
  inset: 7px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.6;
}
@keyframes waveOut {
  0%   { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.float-ai {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(201, 182, 255, 0.75) 40%, rgba(127, 217, 255, 0.5) 80%);
  display: grid;
  place-items: center;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-0);
  box-shadow: 0 0 40px rgba(201, 182, 255, 0.55), inset 0 0 14px rgba(255, 255, 255, 0.4);
  animation: orbPulse 3s ease-in-out infinite;
  transition: transform .5s var(--ease);
}
.float-ai:hover { transform: scale(1.08); }

/* labeled AI ask pill — sits above the BGM pill */
.float-ask {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(201, 182, 255, 0.45);
  background: linear-gradient(135deg, rgba(201, 182, 255, 0.18), rgba(127, 217, 255, 0.12)), rgba(10, 10, 31, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--text);
  box-shadow: 0 0 28px rgba(201, 182, 255, 0.22), 0 10px 30px rgba(6, 6, 26, 0.5);
  transition: all .6s var(--ease);
}
.float-ask:hover {
  border-color: var(--lavender);
  box-shadow: 0 0 44px rgba(201, 182, 255, 0.45), 0 10px 30px rgba(6, 6, 26, 0.5);
  color: #fff;
}
.float-ask .orb {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(201, 182, 255, 0.75) 40%, rgba(127, 217, 255, 0.5) 80%);
  box-shadow: 0 0 16px rgba(201, 182, 255, 0.6);
  animation: orbPulse 3s ease-in-out infinite;
  position: relative;
}
.float-ask .orb::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(201, 182, 255, 0.5);
  animation: askRing 2.4s ease-out infinite;
}
@keyframes askRing {
  0%   { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ==================================================================
   CHAT DRAWER — prototype of production FloatingChatBot
   ================================================================== */
.chat-drawer {
  position: fixed;
  top: 14px; right: 14px; bottom: 14px;
  width: min(430px, calc(100vw - 28px));
  z-index: 990;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: rgba(13, 11, 34, 0.78);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow: -30px 0 90px rgba(6, 6, 26, 0.6), 0 0 60px rgba(201, 182, 255, 0.12);
  transform: translateX(calc(100% + 40px));
  transition: transform .8s var(--ease);
  overflow: hidden;
}
.chat-drawer.open { transform: translateX(0); }
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.chat-head .orb {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.95), rgba(201,182,255,.7) 40%, rgba(127,217,255,.4) 75%);
  box-shadow: 0 0 18px rgba(201,182,255,.5);
  flex-shrink: 0;
}
.chat-head .t {
  font-family: var(--font-mincho);
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--text);
}
.chat-head .t small {
  display: block;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}
.chat-head .limit {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.chat-head .limit b { color: var(--lavender); font-weight: 500; }
.chat-close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: color .4s var(--ease), background .4s var(--ease);
  font-size: 17px;
  line-height: 1;
}
.chat-close:hover { color: var(--text); background: rgba(255,255,255,.06); }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,182,255,.25) transparent;
}
.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .06em;
  line-height: 2;
  padding: 0 24px;
}
.chat-empty .hint {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.chat-msg {
  max-width: 86%;
  padding: 13px 17px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(201,182,255,.22), rgba(127,217,255,.16));
  border: 1px solid rgba(201,182,255,.3);
  color: var(--text);
  border-bottom-right-radius: 6px;
}
.chat-msg.ai {
  align-self: flex-start;
  background: rgba(240,235,255,.045);
  border: 1px solid var(--line);
  color: var(--text-2);
  border-bottom-left-radius: 6px;
}
.chat-sys {
  align-self: center;
  margin: 6px 0 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: .85;
}
.chat-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 14px 18px;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lavender);
  opacity: .4;
  animation: chatDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatDot {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}
.chat-foot {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-foot input {
  flex: 1;
  background: rgba(240,235,255,.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  caret-color: var(--lavender);
  transition: border-color .4s var(--ease);
}
.chat-foot input:focus { border-color: rgba(201,182,255,.4); }
.chat-foot input::placeholder { color: var(--muted); font-style: italic; }
.chat-send {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(201,182,255,.9));
  color: var(--ink-0);
  display: grid;
  place-items: center;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.chat-send:hover { box-shadow: 0 0 24px rgba(201,182,255,.5); transform: scale(1.06); }
@media (max-width: 720px) {
  .chat-drawer { top: 8px; right: 8px; bottom: 8px; width: calc(100vw - 16px); }
}

/* ==================================================================
   FOOTER
   ================================================================== */
.footer {
  position: relative;
  margin-top: 120px;
  padding: 100px 0 0;
  z-index: 10;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-lead {
  font-family: var(--font-mincho);
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 40px);
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--text);
  text-shadow: 0 0 30px rgba(201, 182, 255, 0.3);
}
.footer-lead small {
  display: block;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 20px;
  text-transform: uppercase;
}
.footer h4 {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--aqua);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 400;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-2);
  transition: color .4s var(--ease);
}
.footer a:hover { color: var(--lavender); }
.footer-bar {
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.footer-mega {
  font-family: var(--font-mincho);
  font-weight: 300;
  font-size: clamp(90px, 16vw, 280px);
  letter-spacing: 0.08em;
  line-height: 0.9;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, rgba(240, 235, 255, 0.25) 0%, rgba(201, 182, 255, 0.15) 50%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 50px rgba(201, 182, 255, 0.3);
  padding: 30px 20px 0;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}
.footer-mega .em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(180deg, rgba(201, 182, 255, 0.45) 0%, rgba(127, 217, 255, 0.2) 50%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header { grid-template-columns: auto auto; }
  .starter-grid, .articles, .events-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz-wrap { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .hub { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { cursor: auto; }
  .cursor, .cursor-trail { display: none; }
  button, input, a { cursor: pointer; }
  .hero-eyebrow { font-size: 12px; letter-spacing: 0.22em; }
  .article { grid-template-columns: 1fr; gap: 18px; }
  .event { grid-template-columns: 80px 1fr; gap: 18px; padding: 22px; }
  .event-arrow { display: none; }
  .floating { right: 16px; bottom: 16px; }
  .footer-content { grid-template-columns: 1fr; }
  .section { padding: 90px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade { opacity: 1 !important; transform: none !important; filter: none !important; }
  body { cursor: auto; }
  .cursor, .cursor-trail, .grain { display: none; }
  button, input, a { cursor: pointer; }
  #stars { display: none; }
  .bg-video { display: none !important; }
  .bg-video-wrap {
    background: linear-gradient(180deg, #0a0a1f 0%, #1a0b2e 50%, #0f1a3a 100%);
  }
}

/* ---------- mobile performance (PSI) ---------- */
@media (max-width: 768px) {
  .orb-2, .orb-3 { display: none; }
  .orb { filter: blur(46px); }
  .grain { animation: none; }
  .fog, .rays { display: none; }
  .hub-pill { display: none; }
  .tabs { flex-wrap: wrap; justify-content: center; }
  .card, .header { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
