/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --purple:      #9d5cff;
  --purple-dim:  #6d3abf;
  --pink:        #e84d9b;
  --blue:        #22d3ee;
  --gold:        #f0b429;
  --green:       #34d399;

  /* Backgrounds */
  --bg:          #08050f;
  --bg-alt:      #0d0919;
  --bg-card:     rgba(255,255,255,0.035);
  --bg-card-h:   rgba(255,255,255,0.065);

  /* Text */
  --text:        #ede8f8;
  --text-2:      #a89ec8;
  --text-3:      #6b5f8a;

  /* Borders */
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(255,255,255,0.14);

  /* Radii */
  --r:           18px;
  --r-sm:        10px;
  --r-xs:        6px;

  /* Shadows */
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(157,92,255,0.25);

  /* Transitions */
  --ease:        cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  border-radius: var(--r-xs);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

body {
  font-family: 'Comfortaa', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.75;
  font-size: 15px;
  cursor: auto;
}

/* ============================================================
   NOISE + ORBS + CURSOR
   ============================================================ */
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.6;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 20s ease-in-out infinite alternate;
}
.orb-1 { width: 500px; height: 500px; background: rgba(157,92,255,0.12); top: -10%; left: -10%; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: rgba(232,77,155,0.09); top: 40%; right: -8%; animation-delay: -7s; animation-duration: 25s; }
.orb-3 { width: 350px; height: 350px; background: rgba(34,211,238,0.07); bottom: 10%; left: 30%; animation-delay: -14s; animation-duration: 18s; }
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 60px) scale(1.15); }
}

.cursor-glow {
  display: none;
}

/* ============================================================
   STARS
   ============================================================ */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%,100% { opacity: 0.08; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.4); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(8,5,15,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease), box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(8,5,15,0.92);
  box-shadow: 0 1px 40px rgba(0,0,0,0.5);
}
.nav-logo {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 3px;
  font-weight: 600;
  transition: text-shadow 0.3s;
}
.nav-logo:hover { text-shadow: 0 0 20px rgba(240,180,41,0.5); }
.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--text); background: rgba(157,92,255,0.15); }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%,
    rgba(157,92,255,0.16) 0%,
    rgba(232,77,155,0.08) 50%,
    transparent 75%);
  pointer-events: none;
}
.hero-content { max-width: 700px; position: relative; z-index: 2; }

.avatar-ring {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #e9d5ff,
    #fbcfe8,
    #a5d8f7,
    #fef3c7,
    #c7d2fe,
    #e9d5ff
  );
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 36px;
  animation: spin 10s linear infinite;
  box-shadow:
    0 0 50px rgba(201, 168, 255, 0.28),
    0 0 100px rgba(186, 230, 253, 0.15);
}
.avatar-inner {
  width: 126px; height: 126px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
  display: block;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.2s forwards;
}
.hero-title {
  font-family: 'Comfortaa', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -1px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.4s forwards;
}
.highlight {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.6s forwards;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-bottom: 40px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.8s forwards;
}
.badge {
  background: rgba(157,92,255,0.1);
  border: 1px solid rgba(157,92,255,0.25);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.25s var(--ease-spring);
  cursor: default;
}
.badge:hover {
  background: rgba(157,92,255,0.2);
  border-color: var(--purple);
  color: var(--text);
  transform: translateY(-3px) scale(1.04);
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.3s;
  box-shadow: 0 4px 30px rgba(157,92,255,0.45);
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 1s forwards;
  position: relative;
  overflow: hidden;
}
.hero-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.hero-btn:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 10px 40px rgba(157,92,255,0.55); }
.hero-btn:hover::after { opacity: 1; }

.scroll-indicator {
  position: absolute; bottom: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeSlideUp 0.8s var(--ease) 1.4s forwards;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--purple));
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 50%;
  background: var(--purple);
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  from { top: -50%; }
  to   { top: 150%; }
}
.scroll-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  position: relative; z-index: 1;
  padding: 120px 24px;
}
.section-alt { background: var(--bg-alt); }
.section-cats {
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(157,92,255,0.08) 0%, transparent 70%),
              var(--bg);
}
.section-inner { max-width: 1120px; margin: 0 auto; }

/* Section header */
.section-header { text-align: center; margin-bottom: 72px; }
.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
  padding: 4px 14px;
  border: 1px solid rgba(157,92,255,0.3);
  border-radius: 999px;
  background: rgba(157,92,255,0.08);
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-10px) rotate(2deg); }
}
.section-header h2 {
  font-family: 'Comfortaa', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.section-tagline {
  font-family: 'Comfortaa', sans-serif;
  font-style: italic;
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.85;
}
.section-tagline em {
  font-style: italic;
  color: var(--text);
  font-weight: 500;
}

/* Section tabs (pill switchers) */
.section-tabs { margin-top: 8px; }
.section-tab-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.section-tab {
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.section-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: var(--border-h);
}
.section-tab.active {
  color: var(--text);
  background: rgba(157,92,255,0.18);
  border-color: rgba(157,92,255,0.45);
  box-shadow: 0 0 24px rgba(157,92,255,0.15);
}
.section-cats .section-tab.active {
  background: rgba(34,211,238,0.12);
  border-color: rgba(34,211,238,0.4);
  box-shadow: 0 0 24px rgba(34,211,238,0.12);
}
.section-alt .section-tab.active {
  background: rgba(232,77,155,0.12);
  border-color: rgba(232,77,155,0.35);
  box-shadow: 0 0 24px rgba(232,77,155,0.1);
}
.section-tab-panel { animation: fadeSlideUp 0.4s var(--ease); }
.section-tab-panel[hidden] { display: none !important; }

/* Divider */
.section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--border), transparent);
  display: block;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 30px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-spring);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { background: var(--bg-card-h); border-color: var(--border-h); transform: translateY(-8px); }
.card:hover::before { opacity: 1; }
.card-reading:hover { border-color: rgba(157,92,255,0.35); box-shadow: 0 16px 48px rgba(157,92,255,0.15); }
.card-drawing:hover { border-color: rgba(232,77,155,0.35); box-shadow: 0 16px 48px rgba(232,77,155,0.15); }
.card h3 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: 0.2px;
}
.card p { color: var(--text-2); font-size: 0.9rem; line-height: 1.75; }

/* ============================================================
   READING SHELF
   ============================================================ */
.reading-shelf { text-align: center; margin-top: 8px; }
.shelf-title {
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: var(--text-3);
  font-weight: 600;
}
.books {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.book {
  width: 52px;
  height: clamp(90px, 14vw, 130px);
  background: var(--c, var(--purple));
  border-radius: 3px 8px 8px 3px;
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s;
  box-shadow: -4px 6px 16px rgba(0,0,0,0.5);
  border-left: 5px solid rgba(0,0,0,0.25);
  position: relative;
}
.book::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 6px; height: 100%;
  background: rgba(255,255,255,0.08);
  border-radius: 0 8px 8px 0;
}
.book:hover, .book.active-book {
  transform: translateY(-18px) rotate(-4deg);
  box-shadow: -5px 22px 32px rgba(0,0,0,0.55);
}
.book.active-book { outline: 2px solid rgba(255,255,255,0.25); outline-offset: 2px; }

/* Reading shelf: pastel spines, dark type for contrast */
#shelfBooks .book {
  color: rgba(45, 40, 58, 0.95);
  box-shadow: -3px 5px 14px rgba(0,0,0,0.1), 0 1px 0 rgba(255,255,255,0.45) inset;
  border-left: 4px solid rgba(0,0,0,0.08);
  font-weight: 600;
}
#shelfBooks .book::after {
  background: rgba(255,255,255,0.4);
}
#shelfBooks .book:hover,
#shelfBooks .book.active-book {
  box-shadow: -4px 18px 28px rgba(0,0,0,0.18), 0 1px 0 rgba(255,255,255,0.5) inset;
}
#shelfBooks .book.active-book {
  outline: 2px solid rgba(140, 110, 180, 0.45);
  outline-offset: 2px;
}

/* Shelf — text only */
.shelf-words { margin-top: 40px; max-width: 640px; margin-left: auto; margin-right: auto; }
.shelf-text-panel {
  display: none;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  animation: fadeSlideUp 0.45s var(--ease);
}
.shelf-text-panel.active { display: flex; }
.shelf-line {
  font-family: 'Comfortaa', sans-serif;
  font-style: italic;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.85;
  margin: 0;
}
.shelf-text-panel.active .shelf-line {
  opacity: 0;
  animation: shelfLineIn 0.55s cubic-bezier(.4,0,.2,1) both;
}
.shelf-text-panel.active .shelf-line:nth-child(1) { animation-delay: 0s; }
.shelf-text-panel.active .shelf-line:nth-child(2) { animation-delay: 0.08s; }
.shelf-text-panel.active .shelf-line:nth-child(3) { animation-delay: 0.16s; }
@keyframes shelfLineIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Little things */
.little-things { margin-top: 56px; text-align: center; }
.little-list {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 22px;
}
.little-list li {
  background: rgba(232,77,155,0.07);
  border: 1px solid rgba(232,77,155,0.18);
  color: var(--text-2);
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-style: italic;
  transition: all 0.25s var(--ease-spring);
  cursor: default;
}
.little-list li:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--pink);
  color: var(--text);
  background: rgba(232,77,155,0.13);
}

/* ============================================================
   DRAWING
   ============================================================ */
.drawing-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.drawing-showcase-full { grid-template-columns: 1fr; }
.drawing-showcase-full .drawing-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.drawing-info { display: flex; flex-direction: column; gap: 18px; }

/* ============================================================
   WARRIOR CATS
   ============================================================ */
.clans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.clan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
  cursor: default; position: relative; overflow: hidden;
}
.clan-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.clan-card:hover { transform: translateY(-8px); }
.clan-card:hover::before { opacity: 1; }
#clan-thunder:hover { border-color: rgba(250,204,21,0.4); box-shadow: 0 16px 48px rgba(250,204,21,0.12); }
#clan-shadow:hover  { border-color: rgba(124,58,237,0.4); box-shadow: 0 16px 48px rgba(124,58,237,0.12); }
#clan-river:hover   { border-color: rgba(34,211,238,0.45); box-shadow: 0 20px 56px rgba(34,211,238,0.14); }
#clan-wind:hover    { border-color: rgba(134,239,172,0.4); box-shadow: 0 16px 48px rgba(134,239,172,0.12); }
.clan-abbrev {
  width: 48px; height: 48px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Comfortaa', sans-serif; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1px; border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.clan-thunder-ab { color: #facc15; border-color: rgba(250,204,21,0.35); }
.clan-shadow-ab  { color: #a78bfa; border-color: rgba(124,58,237,0.35); }
.clan-river-ab   { color: var(--blue); border-color: rgba(34,211,238,0.35); }
.clan-wind-ab    { color: #86efac; border-color: rgba(134,239,172,0.35); }
.clan-card h3 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1rem; font-weight: 600;
  margin-bottom: 10px; color: var(--text);
}
.clan-card p { color: var(--text-2); font-size: 0.85rem; margin-bottom: 18px; line-height: 1.65; }
.clan-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-bottom: 10px; overflow: hidden; }
.clan-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 2px;
  animation: fillBar 1.8s var(--ease) forwards;
  width: 0;
}
@keyframes fillBar { from { width: 0 !important; } }
.clan-stat { font-size: 0.7rem; color: var(--text-3); font-style: italic; letter-spacing: 0.5px; }

.starclan-banner {
  text-align: center;
  padding: 28px 40px;
  background: linear-gradient(135deg, rgba(157,92,255,0.08), rgba(232,77,155,0.06));
  border: 1px solid rgba(157,92,255,0.15);
  border-radius: var(--r);
  margin-bottom: 48px;
  position: relative; overflow: hidden;
}
.starclan-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157,92,255,0.5), transparent);
}
.starclan-banner p {
  font-family: 'Comfortaa', sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-2);
}

.oc-section h3 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.3rem; font-weight: 600;
  text-align: center; margin-bottom: 24px;
  color: var(--gold);
  letter-spacing: 1px;
}
.oc-gallery {
  max-width: 960px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.oc-gallery-header {
  text-align: center;
}
.oc-gallery-header h3 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.oc-gallery-header p {
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}
.oc-gallery .oc-section {
  margin: 0;
}
.oc-card {
  display: flex; align-items: flex-start; gap: 36px;
  background: linear-gradient(135deg, rgba(34,211,238,0.07), rgba(146,98,58,0.08));
  border: 1px solid rgba(34,211,238,0.22);
  border-radius: var(--r);
  padding: 40px;
  position: relative; overflow: hidden;
}
.oc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.35), rgba(146,98,58,0.35), transparent);
}
.oc-card-with-ref {
  flex-wrap: wrap;
  align-items: stretch;
}
.warrior-ref-sheet {
  flex: 1 1 280px;
  max-width: min(100%, 520px);
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid rgba(34,211,238,0.2);
  background: rgba(8, 5, 15, 0.45);
  align-self: flex-start;
}
.warrior-ref-sheet img {
  width: 100%;
  height: auto;
  display: block;
}
.oc-card-with-ref .oc-info {
  flex: 1 1 240px;
  min-width: 0;
}
.oc-monogram {
  flex-shrink: 0;
  width: 96px; height: 96px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Comfortaa', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(34,211,238,0.12), rgba(146,98,58,0.15));
  border: 2px solid rgba(34,211,238,0.35);
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(146,98,58,0.15);
}
.oc-info h4 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--gold); margin-bottom: 12px;
}
.oc-info p { color: var(--text-2); font-size: 0.88rem; margin-bottom: 8px; line-height: 1.7; }
.oc-info p strong { color: var(--text); }
.oc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.oc-tags span {
  background: rgba(146,98,58,0.12);
  border: 1px solid rgba(146,98,58,0.28);
  padding: 4px 14px; border-radius: 999px;
  font-size: 0.75rem; color: #c89460; font-weight: 500;
}

/* ============================================================
   BUILDING
   ============================================================ */
.build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.build-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 28px;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s, border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.build-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.3), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.build-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-h);
  border-color: rgba(34,211,238,0.3);
  box-shadow: 0 16px 48px rgba(34,211,238,0.1);
}
.build-card:hover::before { opacity: 1; }
.build-card h3 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 10px; color: var(--text);
}
.build-card p { color: var(--text-2); font-size: 0.88rem; margin-bottom: 18px; line-height: 1.75; }
.build-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.build-tags span {
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  padding: 3px 12px; border-radius: 999px;
  font-size: 0.72rem; color: var(--blue); font-weight: 500;
}

/* ============================================================
   CODING
   ============================================================ */
#coding.section {
  background: radial-gradient(ellipse 50% 40% at 50% 25%, rgba(34, 211, 238, 0.06) 0%, transparent 60%),
    var(--bg-alt);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 72px 24px 48px;
  text-align: center;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 400px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--pink), transparent);
}
.footer-logo {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 18px;
  display: inline-block;
  transition: text-shadow 0.3s;
}
.footer-logo:hover { text-shadow: 0 0 24px rgba(240,180,41,0.5); }
.footer-quote {
  font-family: 'Comfortaa', sans-serif;
  font-style: italic;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.footer-topics {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
  animation: textShimmer 6s ease-in-out infinite;
}
@keyframes textShimmer {
  0%,100% { opacity: 0.55; }
  50% { opacity: 1; color: var(--text-2); }
}
.footer-copy { color: var(--text-3); font-size: 0.78rem; letter-spacing: 0.5px; }

/* ============================================================
   ACTIVE NAV INDICATOR
   ============================================================ */
.nav-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 201;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--blue));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .navbar { padding: 0 24px; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(8,5,15,0.97);
    border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 24px; border-radius: 0; }
  .hamburger { display: block; cursor: pointer; }
  .drawing-showcase { grid-template-columns: 1fr; }
  .oc-card { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .oc-card-with-ref { flex-direction: column; align-items: stretch; text-align: left; }
  .oc-card-with-ref .warrior-ref-sheet { max-width: 100%; margin: 0 auto; }
  .oc-card-with-ref .oc-info { text-align: center; }
  .oc-tags { justify-content: center; }
  body { cursor: auto; }
  .cursor-glow { display: none; }
}
@media (max-width: 540px) {
  .hero-title { font-size: 2.4rem; }
  .book {
    width: 44px;
    font-size: 0.52rem;
    letter-spacing: 1px;
  }
}
