/* ===== ABOUT PAGE — TRIANGLE THEME ===== */

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-dim: rgba(255, 255, 255, 0.35);
  --accent: #c9a8ff;
  --accent-2: #b794f6;
  --ricky-red: #ff2d2d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --content-max: min(56rem, 92vw);
  --section-x: clamp(1rem, 4vw, 3rem);
}

/* Light Mode Variables */
[data-theme="light"] {
  --bg: #f8f8f8;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --text: #1a1a1a;
  --text-muted: rgba(26, 26, 26, 0.6);
  --text-dim: rgba(26, 26, 26, 0.4);
  --line: rgba(26, 26, 26, 0.1);
  --line-strong: rgba(26, 26, 26, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(15px, 2.8vw, 16px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ===== NAVIGATION ===== */
.about-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem var(--section-x);
  padding-top: max(0.875rem, env(safe-area-inset-top));
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  min-height: 56px;
}

.about-nav-logo {
  font-family: "Syne", sans-serif;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.01em;
}

.about-nav-logo .ricky { color: var(--ricky-red); }

.about-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.about-nav-secondary {
  display: inline-flex;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color .3s ease, opacity .2s ease;
  border: 1px solid rgba(201, 168, 255, 0.35);
  padding: 0.35rem 0.65rem;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.about-nav-secondary:hover,
.about-nav-secondary:active {
  color: var(--text);
  border-color: var(--accent);
}

.about-nav-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .3s ease;
}

.about-nav-back:hover, .about-nav-back:active { color: var(--accent); }
.about-nav-back svg { width: 18px; height: 18px; }

/* Touch feedback for mobile */
.about-nav-back, .about-nav-logo {
  -webkit-tap-highlight-color: rgba(201, 168, 255, 0.2);
  transition: opacity 0.2s ease, color 0.3s ease;
}

.about-nav-back:active, .about-nav-logo:active, .about-nav-secondary:active {
  opacity: 0.7;
}

/* ===== HERO ===== */
.about-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(80px + env(safe-area-inset-top)) var(--section-x) clamp(3rem, 8vw, 6rem);
  background:
    linear-gradient(175deg, rgba(201, 168, 255, .06) 0%, transparent 40%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(201, 168, 255, .08), transparent 55%);
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 168, 255, .05) 0%, transparent 60%);
  clip-path: polygon(100% 0, 100% 100%, 30% 100%);
  pointer-events: none;
}

.about-hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.about-hero-eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.about-hero-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-hero-title em {
  font-style: normal;
  color: var(--accent);
}

.about-hero-rule {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-bottom: 2rem;
  border-radius: 2px;
}

.about-hero-sub {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.7;
}

.about-hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hide-mobile { display: inline; }

/* ===== CHAPTERS ===== */
.chapter {
  padding: clamp(3rem, 10vw, 6rem) var(--section-x);
  position: relative;
}

.chapter--warm {
  background: var(--surface);
}

.chapter--warm::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(201, 168, 255, .05), transparent 60%);
}

.chapter-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.chapter-inner--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chapter-number {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .5;
  margin-bottom: 1.25rem;
}

.chapter-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.chapter-intro {
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ===== STORY BLOCKS ===== */
.story-block {
  margin-bottom: 2rem;
}

.story-block p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.story-block p:last-child {
  margin-bottom: 0;
}

/* ===== PULL QUOTE ===== */
.pull-quote {
  margin: 3.5rem 0;
  padding: 2.5rem 0 2.5rem 2rem;
  border-left: 3px solid var(--accent);
  position: relative;
}

.pull-quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.pull-quote p {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

/* ===== WHAT I DO GRID ===== */
.what-i-do-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin: 3rem 0;
  border: 1px solid var(--line);
}

.what-card {
  background: var(--surface-2);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  transition: background .4s ease;
}

.what-card:hover {
  background: var(--surface);
}

.what-card h3 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .75rem;
}

.what-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== FUN FACTS ===== */
.facts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  min-height: 80px;
}

.fact-item:first-child {
  border-top: 1px solid var(--line);
}

.fact-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fact-body {
  flex: 1;
  min-width: 0;
}

.fact-body h3 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1rem, 4vw, 1.15rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.fact-body p {
  font-size: clamp(0.88rem, 3.5vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== ANIMATED ICONS ===== */
.animated-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Reduce animation complexity on mobile */
@media (max-width: 768px) {
  .cube {
    animation: rotateCube 12s linear infinite;
  }
  
  .spade-card {
    animation: flipCard 4s ease-in-out infinite;
  }
  
  .music-note {
    animation: floatNote 3s ease-in-out infinite;
  }
  
  .sound-wave span {
    animation: soundWave 1.5s ease-in-out infinite;
  }
}

/* Rubik's Cube */
.cube-wrapper {
  width: 40px;
  height: 40px;
  perspective: 100px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 8s linear infinite;
}

.cube-face {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  background: rgba(201, 168, 255, 0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}

.cube-face::before {
  content: '';
  grid-column: 1;
  grid-row: 1;
  background: var(--accent);
  opacity: 0.6;
}

.cube-face::after {
  content: '';
  grid-column: 2;
  grid-row: 2;
  background: var(--accent);
  opacity: 0.8;
}

.cube-face.front { transform: translateZ(20px); }
.cube-face.back { transform: rotateY(180deg) translateZ(20px); }
.cube-face.right { transform: rotateY(90deg) translateZ(20px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(20px); }
.cube-face.top { transform: rotateX(90deg) translateZ(20px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(20px); }

@keyframes rotateCube {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  25% { transform: rotateX(90deg) rotateY(0deg); }
  50% { transform: rotateX(90deg) rotateY(90deg); }
  75% { transform: rotateX(0deg) rotateY(90deg); }
  100% { transform: rotateX(0deg) rotateY(0deg); }
}

/* Spades Card */
.spade-wrapper {
  width: 40px;
  height: 56px;
  perspective: 100px;
}

.spade-card {
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: flipCard 3s ease-in-out infinite;
  transform-style: preserve-3d;
}

.spade-symbol {
  font-size: 24px;
  color: var(--accent);
  animation: pulseSpade 1.5s ease-in-out infinite;
}

@keyframes flipCard {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

@keyframes pulseSpade {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Pool Table */
.pool-wrapper {
  width: 50px;
  height: 35px;
  position: relative;
}

.pool-table {
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.pool-ball {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent));
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  animation: rollBall 2s ease-in-out infinite;
}

.pool-cue {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  animation: strikeCue 2s ease-in-out infinite;
}

@keyframes rollBall {
  0%, 100% { left: 30%; }
  50% { left: 70%; }
}

@keyframes strikeCue {
  0%, 100% { transform: translateY(-50%) translateX(0); opacity: 1; }
  25% { transform: translateY(-50%) translateX(-10px); opacity: 0.5; }
  50% { transform: translateY(-50%) translateX(0); opacity: 1; }
}

/* Book */
.book-wrapper {
  width: 40px;
  height: 50px;
  perspective: 100px;
}

.book {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: openBook 4s ease-in-out infinite;
}

.book-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  border-radius: 2px;
  transform-origin: left;
  animation: flipCover 4s ease-in-out infinite;
}

.book-pages {
  position: absolute;
  width: 90%;
  height: 92%;
  background: rgba(201, 168, 255, 0.1);
  right: 0;
  top: 4%;
  border-radius: 0 2px 2px 0;
}

.book-spine {
  position: absolute;
  width: 4px;
  height: 100%;
  background: var(--accent);
  left: 0;
  border-radius: 2px 0 0 2px;
}

@keyframes openBook {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(-20deg); }
}

@keyframes flipCover {
  0%, 100% { transform: rotateY(0deg); }
  25% { transform: rotateY(-140deg); }
  75% { transform: rotateY(-140deg); }
}

/* Music Notes */
.music-wrapper {
  width: 50px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-note {
  position: absolute;
  font-size: 20px;
  color: var(--accent);
  animation: floatNote 2s ease-in-out infinite;
}

.music-note.note-1 {
  left: 5px;
  top: 10px;
  animation-delay: 0s;
}

.music-note.note-2 {
  left: 20px;
  top: 5px;
  font-size: 24px;
  animation-delay: 0.3s;
}

.music-note.note-3 {
  left: 35px;
  top: 15px;
  animation-delay: 0.6s;
}

@keyframes floatNote {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-10px) rotate(10deg); 
    opacity: 1;
  }
}

.sound-wave {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  align-items: flex-end;
}

.sound-wave span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: soundWave 1s ease-in-out infinite;
}

.sound-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.sound-wave span:nth-child(2) { height: 15px; animation-delay: 0.1s; }
.sound-wave span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.sound-wave span:nth-child(4) { height: 12px; animation-delay: 0.3s; }

@keyframes soundWave {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.5); opacity: 1; }
}

/* ===== CTA SECTION ===== */
.chapter--cta {
  background: var(--surface);
  padding: clamp(5rem, 15vw, 10rem) var(--section-x);
  position: relative;
  overflow: hidden;
}

.chapter--cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 255, .1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-headline {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.cta-headline em {
  font-style: normal;
  color: var(--accent);
}

.cta-sub {
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.8rem, 3.5vw, 0.9rem);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.75rem;
  min-height: 52px;
  min-width: 160px;
  border-radius: 3px;
  transition: all .3s var(--ease-spring);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: rgba(201, 168, 255, 0.2);
}

.cta-btn svg {
  width: 16px;
  height: 16px;
  transition: transform .3s var(--ease-spring);
}

.cta-btn:active svg {
  transform: translateX(4px);
}

.cta-btn--primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.cta-btn--primary:hover, .cta-btn--primary:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(201, 168, 255, .4);
  filter: brightness(1.05);
}

.cta-btn--secondary {
  color: var(--text);
  border: 1px solid var(--line-strong);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.cta-btn--secondary:hover, .cta-btn--secondary:active {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.cta-closing {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.65rem, 2.5vw, 0.72rem);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.cta-closing .ricky {
  color: var(--ricky-red);
}

/* ===== FOOTER ===== */
.about-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1.25rem var(--section-x);
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.65rem, 2.5vw, 0.7rem);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-footer-refs {
  margin: 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: clamp(0.62rem, 2.4vw, 0.68rem);
}

.about-footer-refs span[aria-hidden="true"] {
  opacity: 0.45;
  user-select: none;
}

.about-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .3s ease;
  -webkit-tap-highlight-color: rgba(201, 168, 255, 0.2);
}

.about-footer a:hover, .about-footer a:active {
  color: var(--accent);
}

/* ===== SCROLL REVEALS ===== */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-spring);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered delays for children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Slide in from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-spring);
  will-change: transform, opacity;
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-spring);
  will-change: transform, opacity;
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up animation */
.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-spring);
  will-change: transform, opacity;
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Rotate in animation */
.reveal-rotate {
  opacity: 0;
  transform: rotate(-5deg) translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-spring);
  will-change: transform, opacity;
}

.reveal-rotate.is-visible {
  opacity: 1;
  transform: rotate(0) translateY(0);
}

/* Floating animation for hero elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Glow pulse for accent elements */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(201, 168, 255, 0.6); }
}

.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

/* Underline draw animation */
.reveal-underline {
  position: relative;
}

.reveal-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1s var(--ease-out);
}

.reveal-underline.is-visible::after {
  width: 100%;
}

/* Card hover lift effect */
.what-card {
  transition: transform 0.4s var(--ease-spring), background 0.4s ease, box-shadow 0.4s ease;
}

.what-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(201, 168, 255, 0.2);
}

/* Fact item slide in with stagger */
.fact-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-spring);
}

.fact-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Chapter number counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chapter-number {
  animation: countUp 0.8s var(--ease-out) forwards;
}

/* Parallax background effect */
.parallax-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  .hide-mobile { display: none; }
  
  /* Reduce animation distance for mobile */
  .reveal {
    transform: translateY(40px) scale(0.95);
  }
  
  .reveal-left {
    transform: translateX(-40px);
  }
  
  .reveal-right {
    transform: translateX(40px);
  }
  
  /* Faster transitions on mobile */
  .reveal, .reveal-left, .reveal-right {
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-spring);
  }

  .what-i-do-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .what-card {
    padding: 1.25rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 0.75rem;
  }

  .cta-btn {
    width: 100%;
    min-height: 56px;
  }

  .about-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.65rem;
    padding: 1rem var(--section-x);
  }

  .about-footer-top {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .pull-quote {
    padding: 1.5rem 0 1.5rem 1rem;
    margin: 2rem 0;
  }
  
  /* Optimize touch targets */
  .about-nav-back {
    padding: 0.5rem;
    margin: -0.5rem;
  }
  
  /* Reduce motion for battery saving */
  @media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right {
      transition: opacity 0.3s ease;
      transform: none;
    }
  }
}

@media (max-width: 480px) {
  :root {
    --section-x: clamp(0.875rem, 3.5vw, 1.25rem);
  }
  
  .about-hero-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    line-height: 1.05;
  }

  .chapter-title {
    font-size: clamp(1.4rem, 6.5vw, 1.9rem);
  }

  .cta-headline {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  
  .about-hero-sub {
    font-size: 1rem;
  }
  
  .story-block p {
    font-size: 0.95rem;
  }
}

/* iOS Safe Area Support */
@supports (padding-top: env(safe-area-inset-top)) {
  .about-nav {
    padding-top: max(0.875rem, env(safe-area-inset-top));
  }
  
  .about-hero {
    padding-top: calc(80px + env(safe-area-inset-top));
  }
  
  .about-footer {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}

/* Prevent text zoom on iOS */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  input, textarea, select {
    font-size: 16px;
  }
}

/* Smooth scrolling for iOS */
html {
  -webkit-overflow-scrolling: touch;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .what-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .cta-btn:hover {
    transform: none;
  }
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-triangle {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  position: relative;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-triangle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.loader-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  animation: loaderText 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes loaderText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Mobile: Simpler animations */
@media (max-width: 768px) {
  @keyframes loaderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
  }
  
  .loader-triangle {
    animation: loaderPulse 2s ease-in-out infinite;
    transform: none !important;
  }
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(201, 168, 255, 0.1);
  z-index: 101;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-bar.visible {
  opacity: 1;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(201, 168, 255, 0.5);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: rgba(201, 168, 255, 0.2);
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: rgba(201, 168, 255, 0.1);
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text);
  transition: all 0.3s ease;
  position: absolute;
}

.theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* ===== SHARE BUTTON ===== */
.share-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-spring);
  -webkit-tap-highlight-color: rgba(201, 168, 255, 0.2);
}

.share-btn:hover {
  border-color: var(--accent);
  background: rgba(201, 168, 255, 0.1);
  transform: scale(1.1);
}

.share-btn svg {
  width: 18px;
  height: 18px;
  color: var(--text);
  transition: transform 0.3s ease;
}

.share-btn:hover svg {
  transform: translateY(-2px);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-spring);
  z-index: 99;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  -webkit-tap-highlight-color: rgba(201, 168, 255, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  background: rgba(201, 168, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201, 168, 255, 0.2);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-message {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

/* ===== MICRO-INTERACTIONS ===== */
/* Button ripple effect */
.cta-btn {
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.cta-btn:active::before {
  width: 300px;
  height: 300px;
}

/* Link underline animation */
.about-footer a {
  position: relative;
}

.about-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.about-footer a:hover::after {
  width: 100%;
}

/* Card shine effect */
.what-card {
  position: relative;
  overflow: hidden;
}

.what-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.what-card:hover::before {
  left: 100%;
}

/* ===== PARALLAX EFFECTS ===== */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Hero parallax */
.about-hero::before {
  will-change: transform;
}

/* Chapter backgrounds parallax */
.chapter--warm::before {
  will-change: transform;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== ERROR STATES ===== */
.error-boundary {
  padding: 2rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--ricky-red);
  border-radius: 8px;
  margin: 2rem 0;
}

.error-boundary h3 {
  color: var(--ricky-red);
  margin-bottom: 1rem;
}

.error-boundary p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.error-boundary button {
  background: var(--ricky-red);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.error-boundary button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  /* Reduce animations */
  .cube {
    animation: rotateCube 15s linear infinite;
  }
  
  .spade-card {
    animation: flipCard 5s ease-in-out infinite;
  }
  
  .music-note {
    animation: floatNote 4s ease-in-out infinite;
  }
  
  .sound-wave span {
    animation: soundWave 2s ease-in-out infinite;
  }
  
  /* Smaller nav buttons */
  .theme-toggle,
  .share-btn {
    width: 36px;
    height: 36px;
  }
  
  .theme-toggle svg,
  .share-btn svg {
    width: 16px;
    height: 16px;
  }
  
  /* Back to top - smaller */
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .back-to-top:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
  
  /* Hide toast on mobile */
  .toast {
    display: none;
  }
  
  /* Faster loader */
  .loader-triangle {
    width: 40px;
    height: 40px;
    animation: none;
  }
  
  .loader-text {
    font-size: 0.75rem;
  }
  
  /* Disable complex effects */
  .cta-btn::before,
  .what-card::before {
    display: none;
  }
  
  /* Simpler transitions */
  .reveal, .reveal-left, .reveal-right {
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  /* Reduce shadow complexity */
  .back-to-top,
  .cta-btn,
  .what-card {
    box-shadow: none;
  }
  
  /* Optimize will-change */
  .parallax-layer,
  .about-hero::before,
  .chapter--warm::before {
    will-change: auto;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .about-nav-actions {
    gap: 0.5rem;
  }
  
  .about-nav-secondary {
    display: none;
  }
  
  .theme-toggle,
  .share-btn {
    width: 32px;
    height: 32px;
  }
}

/* Smooth transitions for theme change */
body,
.about-nav,
.chapter,
.what-card,
.fact-item,
.about-footer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}