/* =============================================================================
   ASMA HELEL — Master Stylesheet
   styles.css  (Shared across all pages)

   TABLE OF CONTENTS
   -----------------
   1.  Design Tokens
   2.  Base & Reset
   3.  Material Symbols
   4.  Shared Typography Utilities
   5.  Component: Navbar
   6.  Component: Mobile Bottom Nav
   7.  Component: Buttons
   8.  Component: Footer
   9.  Index: Page Base
   10. Index: Hero
   12. Index: Stat Bar
   14. Index: Work Section & Bento Grid
   15. Index: Bento Card
   16. Index: About Interlude
   17. Index: Discipline Rows
   18. Index: Process Section
   19. Index: Easter Egg – Fun Portal
   20. Index: CTA Section
   21. About Page Specifics (Cards, Timelines, Spotlights)
   22. Responsive
   23. Scroll To Top
   ============================================================================= */

/* =============================================================================
   1. DESIGN TOKENS
   ============================================================================= */
:root {
  /* Brand Palette */
  --c-bg:              #0d0b18;
  --c-surface-0:       #09080f;
  --c-surface-1:       #14112a;
  --c-surface-2:       #1a1630;
  --c-surface-3:       #221e38;
  --c-surface-4:       #2d2845;

  --c-purple:          #7c3aed;
  --c-purple-mid:      #9d5cf0;
  --c-lavender:        #c084fc;
  --c-lilac:           #d2bbff;
  --c-pink:            #f0abfc;

  --c-teal:            #2dd4bf;
  --c-gold:            #fbbf24;
  --c-green:           #22c55e;
  --c-red:             #ef4444;

  --c-text:            #ede9ff;
  --c-text-muted:      #b8a8e0;
  --c-text-faint:      #6b5f96;

  --c-border:          rgba(124, 58, 237, 0.14);
  --c-border-hover:    rgba(192, 132, 252, 0.38);
  --c-border-subtle:   rgba(255, 255, 255, 0.06);

  /* Project Specific Colors */
  --pp-bg:           #0f0d16;
  --pp-surface:      #17142a;
  --pp-card:         #1e1a32;
  --pp-border:       rgba(124, 58, 237, 0.18);
      
  --pp-purple:       #7c3aed;
  --pp-lavender:     #c084fc;
  --pp-pink:         #f0abfc;
  --pp-magenta:      #d946ef;
  --pp-dark-blue:    #0a0812; 

  --pp-text:         #ede9ff;
  --pp-text-muted:   #9d8ec2;
  --pp-text-faint:   #5c4f80;  

  /* Radius */
  --r-sm:   0.35rem;
  --r-md:   0.75rem;
  --r-lg:   1.5rem;
  --r-full: 9999px;

  /* Shadows / Glows */
  --glow-soft:    0 0 40px rgba(124, 58, 237, 0.18);
  --glow-medium:  0 0 60px rgba(124, 58, 237, 0.32);
  --glow-nav:     0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

/* =============================================================================
   2. BASE & RESET
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(124, 58, 237, 0.40); color: var(--c-pink); }

/* =============================================================================
   3. MATERIAL SYMBOLS
   ============================================================================= */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* =============================================================================
   4. SHARED TYPOGRAPHY UTILITIES
   ============================================================================= */
.section-eyebrow {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-lavender);
  opacity: 0.65;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--c-text);
  margin-top: 0.75rem;
}
.section-title em { font-style: italic; color: var(--c-lavender); }

/* =============================================================================
   5. COMPONENT: NAVBAR
   ============================================================================= */
.navbar {
  position: fixed;
  top: 0.85rem;
  left: 20%;
  right: 20%;
  width: 60%;
  z-index: 100;
  border-radius: var(--r-full);
  background: rgba(13, 11, 24, 0.55);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--glow-nav);
}
.navbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 1.75rem; }
.navbar__logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.navbar__links { display: flex; gap: 2.25rem; align-items: center; }
.navbar__link {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 200ms ease;
  position: relative;
}
.navbar__link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--c-lavender);
  transform: scaleX(0); transition: transform 250ms ease;
}
.navbar__link:hover { color: var(--c-lavender); }
.navbar__link:hover::after { transform: scaleX(1); }
.navbar__link--active { color: var(--c-lavender); }
.navbar__link--active::after { transform: scaleX(1); opacity: 0.5; }

/* =============================================================================
   6. COMPONENT: MOBILE BOTTOM NAV
   ============================================================================= */
.mobile-nav { position: fixed; bottom: 1.75rem; left: 50%; transform: translateX(-50%); z-index: 100; }
.mobile-nav__pill {
  display: flex; gap: 1.75rem; align-items: center; padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--r-full);
}
.mobile-nav__icon--active { color: var(--c-lavender); }
.mobile-nav__icon { color: var(--c-text-faint); }

/* =============================================================================
   7. COMPONENT: BUTTONS
   ============================================================================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--c-purple); color: #fff;
  padding: 0.75rem 1.75rem; border-radius: var(--r-full); border: none;
  font-family: 'Space Mono', monospace; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  box-shadow: var(--glow-soft);
  transition: box-shadow 300ms ease, transform 150ms ease, background 200ms ease;
}
.btn-primary .material-symbols-outlined { font-size: 1.1rem; }
.btn-primary:hover { background: var(--c-purple-mid); box-shadow: var(--glow-medium); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary--lg { padding: 1rem 2.5rem; font-size: 0.9rem; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--c-lavender);
  padding: 0.65rem 1.5rem; border-radius: var(--r-full);
  border: 1px solid var(--c-border-hover);
  font-family: 'Space Mono', monospace; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn-ghost:hover { background: rgba(192, 132, 252, 0.10); border-color: var(--c-lavender); color: var(--c-pink); }

/* =============================================================================
   8. COMPONENT: FOOTER
   ============================================================================= */
.footer {
  width: 100%; padding: 5rem 1.5rem; border-radius: 2rem 2rem 0 0;
  background-color: var(--c-surface-0); border-top: 1px solid var(--c-border);
  position: relative; z-index: 1;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; max-width: 80rem; margin: 0 auto; }
.footer__brand { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--c-text); }
.footer__tagline { font-size: 0.8rem; color: var(--c-text-muted); opacity: 0.7; text-align: center; max-width: 22rem; line-height: 1.6; }
.footer__links { display: flex; gap: 2.25rem; flex-wrap: wrap; justify-content: center; }
.footer__link { font-family: 'Space Mono', monospace; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-muted); text-decoration: none; transition: color 200ms ease; }
.footer__link:hover { color: var(--c-lavender); }
.footer__divider { width: 100%; border: none; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer__copyright { font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--c-text-faint); opacity: 0.5; text-align: center; }

/* =============================================================================
   9. INDEX: PAGE BASE
   ============================================================================= */
.idx-page { background: var(--c-bg); position: relative; overflow-x: hidden; }

/* =============================================================================
   10. INDEX: HERO (NEXUS CONCEPT)
   ============================================================================= */
.nexus-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 8rem;
  overflow: hidden;
  background-color: var(--c-bg);
  text-align: center;
}

/* --- Architectural Grid & Glow (Hardware Accelerated) --- */
.nexus-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(124, 58, 237, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
  pointer-events: none;
}
.nexus-hero__core-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  animation: nexusPulse 8s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* --- Content Wrapper --- */
.nexus-hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 60rem;
  width: 100%;
}

/* --- Floating Status Pill --- */
.nexus-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-full);
  background: rgba(34, 197, 94, 0.08); /* Green background tint */
  border: 1px solid rgba(34, 197, 94, 0.25); /* Green border */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: nexusFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}
.nexus-pill__indicator {
  position: relative;
  width: 8px;
  height: 8px;
}
.nexus-pill__dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c-green); /* Green dot */
  z-index: 2;
}
.nexus-pill__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--c-green); /* Green pulse */
  opacity: 0.5;
  z-index: 1;
  animation: nexusPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.nexus-pill__text {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-green); /* Green text */
}


/* --- Headline (Smooth Clip-Path Reveal) --- */
.nexus-headline {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 2rem;
}
.nexus-headline__mask {
  overflow: hidden;
  padding-bottom: 0.1em;
}
.nexus-headline__text {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
  /* Hardware accelerated wipe prep */
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transform: translateY(20px);
  will-change: transform, clip-path;
}
.nexus-headline__text em {
  font-style: italic;
  color: var(--c-lavender);
}
.nexus-headline__text--offset {
  color: var(--c-text-muted);
}
.nexus-headline__mask:nth-child(1) .nexus-headline__text {
  animation: nexusWipe 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.4s forwards;
}
.nexus-headline__mask:nth-child(2) .nexus-headline__text {
  animation: nexusWipe 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.55s forwards;
}

/* --- Subcopy & Actions --- */
.nexus-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--c-text-muted);
  max-width: 42rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(15px);
  animation: nexusFadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.7s forwards;
}
.nexus-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  animation: nexusFadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.85s forwards;
}

/* --- Glassmorphic Stats Dock --- */
.nexus-dock {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2.5rem;
  background: rgba(20, 17, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-full);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  animation: nexusFadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 1.1s forwards;
}
.nexus-dock__stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nexus-dock__num {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--c-text);
  line-height: 1;
}
.nexus-dock__label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-align: left;
  line-height: 1.3;
}
.nexus-dock__sep {
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.1);
}

/* --- High-Performance Animations --- */
@keyframes nexusFadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes nexusWipe {
  0% {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: translateY(20px);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(0);
  }
}
@keyframes nexusPing {
  75%, 100% { transform: scale(3); opacity: 0; }
}
@keyframes nexusPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .nexus-hero {
    padding: 8rem 1.5rem 10rem;
  }
  .nexus-pill {
    margin-bottom: 2rem;
  }
  .nexus-pill__text {
    font-size: 0.65rem;
  }
  .nexus-actions {
    flex-direction: column;
    width: 100%;
  }
  .nexus-actions a {
    width: 100%;
    justify-content: center;
  }
  .nexus-dock {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    justify-content: space-between;
    padding: 1.25rem;
    gap: 0;
    background: rgba(13, 11, 24, 0.85);
  }
  .nexus-dock__stat {
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
  }
  .nexus-dock__label {
    text-align: center;
    font-size: 0.6rem;
  }
}

/* =============================================================================
   14. INDEX: WORK SECTION & BENTO GRID
   ============================================================================= */
.section-work { padding: 8rem 0; position: relative; z-index: 1; }
.section-work__inner { max-width: 90rem; margin: 0 auto; padding: 0 3rem; }
.work-header { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.work-header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 1.25rem; }
.work-header__desc { font-size: 0.9rem; line-height: 1.7; color: var(--c-text-muted); text-align: right; max-width: 22rem; }
.work-header__all {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Space Mono', monospace; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-lavender); text-decoration: none;
  border-bottom: 1px solid rgba(192, 132, 252, 0.25); padding-bottom: 0.2rem; transition: color 200ms ease, border-color 200ms ease;
}
.work-header__all:hover { color: var(--c-pink); border-color: var(--c-pink); }
.bento-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 320px; gap: 1.25rem;
}

/* =============================================================================
   15. INDEX: BENTO CARD
   ============================================================================= */
.bento-card {
  position: relative; overflow: hidden; border-radius: var(--r-md); text-decoration: none; display: block;
  grid-column: span 4; grid-row: span 1;
  --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 400ms ease; opacity: 0; translate: 0 24px;
}
.bento-card.revealed {
  opacity: 1; translate: 0 0;
  transition: opacity 500ms ease, translate 500ms cubic-bezier(0.34, 1.56, 0.64, 1), transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 400ms ease;
}
.bento-card--feature { grid-column: span 8; grid-row: span 2; }
.bento-card--wide    { grid-column: span 8; }

.bento-card__bg { position: absolute; inset: 0; background: var(--card-bg, var(--c-bg)); overflow: hidden; }
.bento-img-main, .bento-img-hover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bento-img-main { opacity: 0.55; transform: scale(1.06); }
.bento-img-hover { opacity: 0; transform: scale(1.1); }
.bento-card:hover .bento-img-main { opacity: 0; transform: scale(1.1); }
.bento-card:hover .bento-img-hover { opacity: 0.7; transform: scale(1.06); }

.bento-card__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,8,15,0.94) 0%, rgba(9,8,15,0.55) 38%, rgba(9,8,15,0.12) 72%, transparent 100%);
  transition: background 400ms ease; pointer-events: none;
}
.bento-card__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem; z-index: 10; pointer-events: none; }
.bento-card__meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.bento-tag {
  display: inline-block; font-family: 'Space Mono', monospace; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: var(--r-full); background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09); color: rgba(237, 233, 255, 0.60); backdrop-filter: blur(8px);
}
.bento-card__year { font-family: 'Space Mono', monospace; font-size: 0.65rem; color: rgba(237, 233, 255, 0.35); letter-spacing: 0.1em; margin-left: auto; }
.bento-card__copy { display: flex; flex-direction: column; gap: 0.6rem; }
.bento-card__co { font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-lavender); opacity: 0.6; }
.bento-card__title { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(1.75rem, 2.8vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.05; color: var(--c-text); }
.bento-card__title em { font-style: italic; color: var(--c-lavender); }
.bento-card--feature .bento-card__title { font-size: clamp(2.5rem, 4.5vw, 4rem); }
.bento-card__hook { font-size: 0.82rem; line-height: 1.6; color: rgba(237, 233, 255, 0.60); max-width: 28rem; opacity: 0; transform: translateY(8px); transition: opacity 350ms ease, transform 350ms ease; }
.bento-card--feature .bento-card__hook { opacity: 1; transform: none; }
.bento-card__cta {
  position: absolute; bottom: 1.75rem; right: 1.75rem; z-index: 15; display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: 'Space Mono', monospace; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-lavender); background: rgba(9, 8, 15, 0.75); border: 1px solid rgba(192, 132, 252, 0.25); padding: 0.45rem 0.85rem; border-radius: var(--r-full); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(6px); transition: opacity 300ms ease, transform 300ms ease, background 200ms ease; pointer-events: auto;
}
.bento-card--feature .bento-card__cta { opacity: 1; transform: none; }
.bento-card__num { position: absolute; top: 1rem; right: 1.25rem; font-family: 'Playfair Display', serif; font-weight: 800; font-size: 5rem; line-height: 1; color: rgba(255, 255, 255, 0.028); pointer-events: none; z-index: 5; transition: color 400ms ease; }
.bento-card::before { content: ''; position: absolute; inset: 0; border-radius: var(--r-md); border: 1px solid transparent; pointer-events: none; z-index: 20; transition: border-color 400ms ease; }
.bento-card:hover { box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.bento-card:hover::before { border-color: rgba(192, 132, 252, 0.30); }
.bento-card:hover .bento-card__veil { background: linear-gradient(to top, rgba(9,8,15,0.97) 0%, rgba(9,8,15,0.65) 42%, rgba(9,8,15,0.22) 75%, transparent 100%); }
.bento-card:hover .bento-card__hook { opacity: 1; transform: translateY(0); }
.bento-card:hover .bento-card__cta  { opacity: 1; transform: translateY(0); }
.bento-card:hover .bento-card__num  { color: rgba(255,255,255,0.055); }

/* =============================================================================
   16. INDEX: ABOUT INTERLUDE
   ============================================================================= */
.section-about { padding: 9rem 3rem; position: relative; z-index: 1; }
.section-about__inner { max-width: 90rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.about-left { display: flex; flex-direction: column; gap: 1.5rem; }
.about-left__title { margin-top: 0.5rem; }
.about-bio { font-size: 0.95rem; line-height: 1.85; color: var(--c-text-muted); max-width: 32rem; }
.about-stats { display: flex; gap: 2.5rem; padding-top: 0.5rem; }
.about-stat { display: flex; flex-direction: column; gap: 0.3rem; opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
.about-stat.revealed { opacity: 1; transform: translateY(0); }
.about-stat:nth-child(2) { transition-delay: 100ms; }
.about-stat:nth-child(3) { transition-delay: 200ms; }
.about-stat__num { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 2.25rem; letter-spacing: -0.02em; color: var(--c-text); line-height: 1; }
.about-stat__num sup { font-size: 0.55em; color: var(--c-lavender); }
.about-stat__label { font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-text-faint); }

/* =============================================================================
   17. INDEX: DISCIPLINE ROWS
   ============================================================================= */
.about-right { display: flex; flex-direction: column; gap: 0; padding-top: 4rem; }
.discipline-row { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); opacity: 0; transform: translateX(16px); transition: opacity 500ms ease, transform 500ms ease, border-color 200ms ease; cursor: default; }
.discipline-row:nth-child(1) { transition-delay: 0ms; }
.discipline-row:nth-child(2) { transition-delay: 80ms; }
.discipline-row:nth-child(3) { transition-delay: 160ms; }
.discipline-row:nth-child(4) { transition-delay: 240ms; }
.discipline-row:nth-child(5) { transition-delay: 320ms; }
.discipline-row.revealed { opacity: 1; transform: translateX(0); }
.discipline-row:hover { border-color: rgba(192, 132, 252, 0.30); }
.discipline-row__name { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 800; font-size: clamp(2.8rem, 5vw, 4rem); letter-spacing: -0.02em; color: var(--c-text); line-height: 1; transition: color 200ms ease; }
.discipline-row:hover .discipline-row__name, .discipline-row:hover .discipline-row__icon { color: var(--c-lavender); }
.discipline-row__icon { color: var(--c-text-faint); font-size: 1.5rem; transition: color 200ms ease; }

/* =============================================================================
   18. INDEX: PROCESS SECTION
   ============================================================================= */
.section-process { padding: 9rem 3rem; background: var(--c-surface-0); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); position: relative; z-index: 1; }
.section-process__inner { max-width: 90rem; margin: 0 auto; }
.process-header { margin-bottom: 4rem; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process-card { padding: 2.25rem 2rem; background: var(--c-surface-1); border: 1px solid var(--c-border); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 1.1rem; transition: border-color 250ms ease, background 250ms ease, transform 250ms ease; opacity: 0; transform: translateY(20px); }
.process-card.revealed { opacity: 1; transform: translateY(0); transition: opacity 500ms ease, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 250ms ease, background 250ms ease; }
.process-card:nth-child(1).revealed { transition-delay: 0ms; }
.process-card:nth-child(2).revealed { transition-delay: 80ms; }
.process-card:nth-child(3).revealed { transition-delay: 160ms; }
.process-card:nth-child(4).revealed { transition-delay: 240ms; }
.process-card:hover { border-color: var(--c-border-hover); background: var(--c-surface-2); transform: translateY(-4px); }
.process-card__num { font-family: 'Space Mono', monospace; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: var(--c-lavender); opacity: 0.55; }
.process-card__title { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; font-size: 1.2rem; line-height: 1.2; color: var(--c-text); }
.process-card__body { font-size: 0.84rem; line-height: 1.8; color: var(--c-text-muted); }

/* =============================================================================
   19. INDEX: EASTER EGG — FUN PORTAL
   ============================================================================= */
.rift-divider { position: relative; height: 1px; overflow: visible; margin: 0; z-index: 1; }
.rift-divider__crack { position: absolute; left: 50%; transform: translateX(-50%); width: 30%; height: 1px; background: linear-gradient(to right, transparent 0%, #f472b6 20%, #a855f7 50%, #38bdf8 80%, transparent 100%); box-shadow: 0 0 6px rgba(244,114,182,0.6), 0 0 14px rgba(168,85,247,0.4), 0 0 24px rgba(56,189,248,0.3); }

.fun-portal {
  --fun-ring-1-color: #fbcfe8; --fun-ring-2-color: #c084fc; --fun-ring-3-color: #818cf8; --fun-ring-4-color: #3b82f6; --fun-ring-5-color: #0ea5e9;
  --fun-ring-1-dur: 2.8s; --fun-ring-2-dur: 4.5s; --fun-ring-3-dur: 7s; --fun-ring-4-dur: 12s; --fun-ring-5-dur: 20s;
  position: relative; overflow: hidden; background: #06060c; padding: 10rem 1.5rem 12rem; display: flex; justify-content: center; align-items: center;
}
.fun-portal--charged { --fun-ring-1-dur: 1.0s; --fun-ring-2-dur: 1.8s; --fun-ring-3-dur: 3s; --fun-ring-4-dur: 5.5s; --fun-ring-5-dur: 9s; }
.fun-portal__grain { position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"); background-size: 180px; opacity: 0.04; }
.fun-portal__inner { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 3rem; text-align: center; }
.fun-portal__discovery { font-family: 'Space Mono', monospace; font-size: 0.72rem; letter-spacing: 0.18em; color: var(--fun-ring-2-color); opacity: 0.65; }
.fun-portal__rift { position: relative; display: block; width: 460px; height: 460px; border-radius: 50%; overflow: visible; text-decoration: none; flex-shrink: 0; }
.fun-portal__ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; pointer-events: none; }
.fun-portal__ring--1 { width:150px;height:150px; background:conic-gradient(from 0deg,var(--fun-ring-1-color) 0%,transparent 35%,var(--fun-ring-1-color) 55%,transparent 90%); filter:blur(3px); opacity:.95; animation:fun-spin-cw var(--fun-ring-1-dur) linear infinite; }
.fun-portal__ring--2 { width:220px;height:220px; background:conic-gradient(from 60deg,var(--fun-ring-2-color) 0%,transparent 40%,var(--fun-ring-2-color) 65%,transparent 100%); filter:blur(5px); opacity:.80; animation:fun-spin-ccw var(--fun-ring-2-dur) linear infinite; }
.fun-portal__ring--3 { width:300px;height:300px; background:conic-gradient(from 130deg,var(--fun-ring-3-color) 0%,transparent 45%,var(--fun-ring-3-color) 70%,transparent 100%); filter:blur(9px); opacity:.60; animation:fun-spin-cw var(--fun-ring-3-dur) linear infinite; }
.fun-portal__ring--4 { width:380px;height:380px; background:conic-gradient(from 200deg,var(--fun-ring-4-color) 0%,transparent 50%,var(--fun-ring-4-color) 78%,transparent 100%); filter:blur(16px); opacity:.40; animation:fun-spin-ccw var(--fun-ring-4-dur) linear infinite; }
.fun-portal__ring--5 { width:470px;height:470px; background:conic-gradient(from 310deg,var(--fun-ring-5-color) 0%,transparent 55%,var(--fun-ring-5-color) 82%,transparent 100%); filter:blur(28px); opacity:.28; animation:fun-spin-cw var(--fun-ring-5-dur) linear infinite; }
@keyframes fun-spin-cw  { from{transform:translate(-50%,-50%) rotate(0deg);} to{transform:translate(-50%,-50%) rotate(360deg);} }
@keyframes fun-spin-ccw { from{transform:translate(-50%,-50%) rotate(0deg);} to{transform:translate(-50%,-50%) rotate(-360deg);} }
.fun-portal__void { position: absolute; top:50%; left:50%; transform: translate(-50%,-50%); z-index: 20; width: 90px; height: 90px; border-radius: 50%; background: #06060c; display: flex; align-items:center; justify-content:center; box-shadow: 0 0 8px rgba(192,132,252,.15), inset 0 0 12px rgba(0,0,0,.9); transition: box-shadow 400ms ease; }
.fun-portal__rift:hover .fun-portal__void { box-shadow: 0 0 16px rgba(244,114,182,.40), 0 0 40px rgba(168,85,247,.20), 0 0 70px rgba(56,189,248,.12), inset 0 0 12px rgba(0,0,0,.9); }
.fun-portal__enter-label { font-family: 'Space Mono', monospace; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.25em; color: var(--fun-ring-1-color); opacity: 0; transform: scale(0.8); transition: opacity 300ms ease, transform 300ms ease; }
.fun-portal__rift:hover .fun-portal__enter-label { opacity: 1; transform: scale(1); }
.fun-portal__copy { display:flex; flex-direction:column; align-items:center; gap:1rem; }
.fun-portal__headline { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(3.5rem, 8vw, 6rem); letter-spacing: -0.02em; line-height: 0.95; color: #f0eeff; }
.fun-portal__headline em { font-style: italic; color: var(--fun-ring-2-color); }
.fun-portal__sub { font-family: 'Space Mono', monospace; font-size: 0.72rem; letter-spacing: 0.08em; color: rgba(240,238,255,0.45); }

/* =============================================================================
   20. INDEX: CTA SECTION
   ============================================================================= */
.section-cta { position: relative; padding: 12rem 3rem 10rem; display: flex; justify-content: center; align-items: center; flex-direction: column; overflow: hidden; z-index: 1; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,0.22) 0%, transparent 70%); pointer-events: none; animation: cta-pulse 5s ease-in-out infinite; }
@keyframes cta-pulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 50% { transform: translate(-50%,-50%) scale(1.15); opacity: 0.7; } }
.cta-inner { position: relative; z-index: 10; text-align: center; max-width: 52rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.cta-headline { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(3.5rem, 9vw, 7rem); letter-spacing: -0.02em; line-height: 1.05; color: var(--c-text); }
.cta-headline em { font-style: italic; color: var(--c-lavender); }
.cta-sub { font-size: 1.05rem; line-height: 1.75; color: var(--c-text-muted); max-width: 36rem; }
.cta-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.cta-cv { display: inline-flex; align-items: center; gap: 0.4rem; font-family: 'Space Mono', monospace; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-muted); text-decoration: none; transition: color 200ms ease; }
.cta-cv:hover { color: var(--c-lavender); }
.cta-cv .material-symbols-outlined { font-size: 0.9rem; }
.cta-social-links { display: flex; justify-content: center; gap: 2.5rem; margin-top: 3.5rem; flex-wrap: wrap; z-index: 10; position: relative; }
.cta-social-link { font-family: 'Space Mono', monospace; font-size: 0.75rem; font-weight: 700; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.15em; text-decoration: none; transition: color 300ms ease, text-shadow 300ms ease; }
.cta-social-link:hover { color: var(--c-pink); text-shadow: 0 0 12px var(--c-purple); }

/* =============================================================================
   21. ABOUT PAGE SPECIFICS
   ============================================================================= */
.about-hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 6rem; position: relative; z-index: 10; }
.about-hero__headline { font-family: 'Playfair Display', serif; font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1.5rem; color: var(--c-text); animation: fade-up 600ms ease; }
.about-hero__accent { color: var(--c-lavender); font-style: italic; }
.about-hero__sub { font-size: 1.125rem; color: var(--c-text-muted); max-width: 42rem; line-height: 1.7; animation: fade-up 800ms ease; }

.timeline { position: relative; display: flex; flex-direction: column; gap: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background-color: rgba(210, 187, 255, 0.10); }
.timeline__entry { position: relative; padding-left: 2.5rem; transition: all 500ms ease; opacity: 0; transform: translateY(20px); }
.timeline__entry.revealed { opacity: 1; transform: translateY(0); }
.timeline__bullet { position: absolute; left: -5px; top: 2rem; width: 12px; height: 12px; border-radius: var(--r-full); background-color: rgba(210, 187, 255, 0.30); transition: background-color 200ms ease, box-shadow 200ms ease; }
.timeline__bullet--active { background-color: var(--c-purple); box-shadow: 0 0 14px rgba(124, 58, 237, 0.80); }
.timeline__entry:hover .timeline__bullet { background-color: var(--c-lavender); box-shadow: 0 0 10px rgba(192, 132, 252, 0.60); }
.experience-card { background-color: var(--c-surface-1); padding: 2rem; border-radius: var(--r-md); border-left: 2px solid transparent; transition: background-color 300ms ease, transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease; }
.timeline__entry:hover .experience-card { background-color: var(--c-surface-2); border-left-color: var(--c-purple); transform: translateY(-0.5rem); box-shadow: 0 20px 40px rgba(124, 58, 237, 0.12); }
.experience-card__header { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .experience-card__header { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.experience-card__title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--c-text); }
.experience-card__company { font-family: 'Space Mono', monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-lavender); }
.experience-card__date { display: inline-block; font-family: 'Space Mono', monospace; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-text-faint); background-color: var(--c-surface-0); padding: 0.35rem 0.85rem; border-radius: var(--r-full); border: 1px solid rgba(255,255,255,0.05); white-space: nowrap; flex-shrink: 0; }
.experience-card__body { font-size: 0.9rem; color: var(--c-text-muted); line-height: 1.7; }

/* Skill Tags */
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-tag { display: inline-block; padding: 0.45rem 0.85rem; border-radius: var(--r-full); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); font-family: 'Space Mono', monospace; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-muted); transition: all 200ms ease; cursor: default; }
.skill-tag:hover { background: rgba(192, 132, 252, 0.15); border-color: var(--c-lavender); color: var(--c-pink); }

/* Collab CTA Card */
.collab-card { position: relative; overflow: hidden; padding: 2.5rem 2rem; border-radius: var(--r-md); background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-surface-3) 100%); box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15); }
.collab-card__content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.collab-card__headline { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: #fff; max-width: 18rem; }
.collab-card__btn { display: inline-block; background: #fff; color: var(--c-purple); padding: 0.65rem 1.5rem; border-radius: var(--r-full); font-family: 'Space Mono', monospace; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; transition: transform 150ms ease, box-shadow 150ms ease; }
.collab-card__btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.collab-card__deco { position: absolute; right: -2.5rem; bottom: -2.5rem; opacity: 0.15; font-size: 10rem; transform: rotate(12deg); pointer-events: none; color: #fff; }

/* Mastery Toolkit */
.mastery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem; align-content: center; align-items: center; }
.tool-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; background: var(--c-surface-1); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 1.5rem 0.5rem; transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease; opacity: 0; transform: translateY(16px); }
.tool-card.revealed { opacity: 1; transform: translateY(0); }
.tool-card:hover { border-color: var(--c-lavender); background: var(--c-surface-2); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15); }
.tool-card__icon { font-size: 2rem; color: var(--c-text-faint); transition: color 250ms ease, filter 250ms ease; }
.tool-card:hover .tool-card__icon { color: var(--c-pink); filter: drop-shadow(0 0 8px var(--c-purple)); }
.tool-card__label { font-family: 'Space Mono', monospace; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-text-muted); text-align: center; }

/* Philosophy Cards */
.philosophy-card { background: var(--c-surface-1); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 2.5rem 2rem; transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease; opacity: 0; transform: translateY(20px); }
.philosophy-card.revealed { opacity: 1; transform: translateY(0); }
.philosophy-card:hover { border-color: var(--c-lavender); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(124, 58, 237, 0.12); }

/* Article Spotlight Cards */
.article-card { display: flex; flex-direction: column; background: var(--c-surface-0); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 0.75rem; transition: transform 300ms ease, border-color 300ms ease; text-decoration: none; opacity: 0; transform: translateY(20px); }
.article-card.revealed { opacity: 1; transform: translateY(0); }
.article-card:hover { border-color: rgba(192, 132, 252, 0.4); transform: translateY(-4px); }
.article-card__thumb { width: 100%; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; margin-bottom: 1.25rem; background: var(--c-surface-1); position: relative; }
.article-card__img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: transform 500ms ease, opacity 500ms ease; }
.article-card:hover .article-card__img { transform: scale(1.05); opacity: 1; }
.article-card__meta { display: flex; align-items: center; gap: 0.5rem; font-family: 'Space Mono', monospace; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-text-faint); margin-bottom: 0.75rem; padding: 0 0.5rem; }
.article-card__title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.35rem; color: var(--c-text); line-height: 1.2; margin-bottom: 0.5rem; padding: 0 0.5rem; transition: color 200ms ease; }
.article-card:hover .article-card__title { color: var(--c-lavender); }
.article-card__desc { font-size: 0.85rem; color: var(--c-text-muted); line-height: 1.6; padding: 0 0.5rem 0.5rem; }

.ambient-orb { position: fixed; border-radius: var(--r-full); filter: blur(120px); pointer-events: none; z-index: 0; }
.ambient-orb--top-right { top: -10%; right: -10%; width: 600px; height: 600px; background-color: rgba(124, 58, 237, 0.15); animation: orb-drift-b 20s infinite alternate; }
.ambient-orb--bottom-left { bottom: 10%; left: -5%; width: 500px; height: 500px; background-color: rgba(45, 212, 191, 0.05); filter: blur(100px); animation: orb-drift-a 15s infinite alternate; }


/* =============================================================================
   22. RESPONSIVE
   ============================================================================= */
@media (max-width: 1100px) {
  .bento-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 280px; }
  .bento-card--feature { grid-column: span 6; }
  .bento-card--wide    { grid-column: span 6; }
  .bento-card          { grid-column: span 3; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .section-about__inner { gap: 4rem; }
}

@media (max-width: 768px) {
  .navbar { left: 5%; right: 5%; width: 90%; }
  .hero { padding: 8rem 1.5rem 11rem; }
  .hero__headline { gap: 0.1em; }
  .hero__hl-reel-container { min-width: auto; width: 100%; text-align: center; display: block; margin-top: 0.2em; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .bento-card--feature, .bento-card--wide, .bento-card { grid-column: span 1; grid-row: span 1; }
  .bento-card--feature .bento-card__hook, .bento-card .bento-card__hook { opacity: 1; transform: none; }
  .bento-card .bento-card__cta, .bento-card--feature .bento-card__cta { opacity: 1; transform: none; }
  .section-work__inner, .section-about, .section-process { padding-left: 1.5rem; padding-right: 1.5rem; }
  .work-header { grid-template-columns: 1fr; }
  .work-header__right { align-items: flex-start; }
  .work-header__desc { text-align: left; }
  .section-about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-right { padding-top: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .fun-portal__rift { width: 280px; height: 280px; }
  .fun-portal__ring--1 { width:90px; height:90px; } .fun-portal__ring--2 { width:135px; height:135px; } .fun-portal__ring--3 { width:185px; height:185px; } .fun-portal__ring--4 { width:235px; height:235px; } .fun-portal__ring--5 { width:285px; height:285px; } .fun-portal__void { width:65px; height:65px; }
  .hero__stat-bar { flex-wrap: wrap; }
  .hero__stat { min-width: 45%; padding-bottom: 1rem; }
  .cta-headline { font-size: clamp(3rem, 12vw, 5rem); }
  .mastery-grid { grid-template-columns: repeat(3, 1fr); }
  .meta-strip__inner     { gap: 0; }
  .meta-item             { padding: 1rem 1rem 1rem 0; margin-right: 1rem; }
}


/* =============================================================================
   23. Scroll To Top Button
   ============================================================================= */
.scroll-to-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--pp-purple), var(--pp-purple)); color: #ffffff; border: none;
  outline: none; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 99;
  box-shadow: 0 5px 8px rgba(124, 58, 237, 0.4); opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { transform: translateY(-5px); box-shadow: 0 6px 10px rgba(138, 65, 160, 0.6); background: linear-gradient(135deg, var(--pp-lavender), var(--pp-lavender)); }
@media (max-width: 768px) { .scroll-to-top { bottom: 1.5rem; right: 1.5rem; width: 3rem; height: 3rem; } }

/* =========================================================
   Project PROGRESS RAIL (For Individual Projects)
========================================================= */
.project-main { padding-left: 0; }
@media (min-width: 1280px) { .project-main { padding-left: 3.5rem; } }
.progress-rail { position: fixed; left: 1.5rem; top: 50%; transform: translateY(-50%); z-index: 40; display: none; }
@media (min-width: 1280px) { .progress-rail { display: block; } }
.progress-rail__line { position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: rgba(124, 58, 237, 0.15); }
.progress-rail__fill { width: 100%; height: 0%; background: linear-gradient(to bottom, var(--pp-purple), var(--pp-pink)); transition: height 400ms ease; }
.progress-rail__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; position: relative; }
.rail-dot { display: flex; align-items: center; text-decoration: none; position: relative; }
.rail-dot span {
  display: block; width: 15px; height: 15px; border-radius: 50%;
  background: rgba(124, 58, 237, 0.18); border: 1px solid rgba(124, 58, 237, 0.3);
  transition: all 200ms;
}
.rail-dot::after {
  content: attr(data-label); position: absolute; left: 24px; white-space: nowrap;
  font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.12em;
  color: var(--pp-text-muted); text-transform: uppercase; opacity: 0; transform: translateX(-4px);
  transition: all 150ms; pointer-events: none;
}
.rail-dot:hover::after, .rail-dot--active::after { opacity: 1; transform: translateX(0); color: var(--pp-pink); }
.rail-dot--active span, .rail-dot:hover span { background: var(--pp-magenta); border-color: var(--pp-pink); transform: scale(1.3); box-shadow: 0 0 10px rgba(217, 70, 239, 0.5); }

/*=============================================================================
   Project HERO & META (For Individual Projects)
============================================================================= */
.project-hero__image {
  position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04);
  animation: hero-drift 20s ease-in-out infinite alternate;
}
.project-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.project-hero { position: relative; height: 100vh; min-height: 600px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; overflow: hidden; }
@keyframes hero-drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.04) translate(-1%, 0.5%); } }
.project-hero__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,13,22,0.95) 0%, rgba(15,13,22,0.45) 40%, transparent 70%), linear-gradient(to right, rgba(15,13,22,0.60) 0%, transparent 55%); }
.project-hero__content { position: relative; z-index: 10; padding: 0 4rem 6rem; max-width: 54rem; }
.project-hero__breadcrumb { font-family: 'Space Mono', monospace; font-size: 0.75rem; letter-spacing: 0.18em; color: var(--pp-text-muted); margin-bottom: 1.5rem; opacity: 0.5; }
.project-hero__breadcrumb a { color: inherit; text-decoration: none; transition: color 200ms ease; }
.project-hero__breadcrumb a:hover { color: var(--pp-lavender); opacity: 1; }
.project-hero__category { font-family: 'Space Mono', monospace; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pp-lavender); margin-bottom: 1rem; opacity: 0.75; }
.project-hero__title { font-family: 'DM Serif Display', serif; font-optical-sizing: auto; font-variation-settings: 'opsz' 144; font-weight: 800; font-size: clamp(4rem, 10vw, 8rem); letter-spacing: -0.04em; line-height: 0.88; color: var(--pp-text); margin-bottom: 2rem; }
.project-hero__title em { font-style: italic; color: var(--pp-lavender); }
.project-hero__hook { font-size: 1.1rem; line-height: 1.6; color: rgba(237, 233, 255, 0.65); max-width: 40rem; }
.project-hero__scroll { position: absolute; bottom: 2.5rem; right: 4rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0.30; font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }
.project-hero__scroll-line { width: 1px; height: 2.5rem; background: linear-gradient(to bottom, var(--pp-lavender), transparent); }
.meta-strip { background: var(--pp-surface); border-bottom: 1px solid var(--pp-border); top: 0; z-index: 30; }
.meta-strip__inner { display: flex; flex-wrap: wrap; gap: 0; max-width: var(--pp-inner-max); margin: 0 auto; padding: 0 2rem; }
.meta-item { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.25rem 2rem 1.25rem 0; margin-right: 2rem; border-right: 1px solid rgba(74, 68, 85, 0.15); }
.meta-item:last-child { border-right: none; margin-right: 0; }
.meta-item__label { font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pp-text-faint); }
.meta-item__value { font-size: 0.82rem; font-weight: 600; color: var(--pp-text); white-space: nowrap; }

/* =============================================================================
   UNIFIED MOBILE NAVBAR FIX
   ============================================================================= */
#mobile-menu-btn {
  background: none; 
  border: none; 
  color: #ede9ff; 
  cursor: pointer; 
  display: none; 
  padding: 0;
}
#mobile-menu-btn .material-symbols-outlined {
  font-size: 2rem;
}

@media (max-width: 768px) {
  .navbar__inner { width: 100%; }
  
  /* Show hamburger button */
  #mobile-menu-btn { display: block !important; }
  
  /* Hide links by default, turn into dropdown */
  .navbar__links {
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 110%; 
    left: 0;
    width: 100%;
    background: rgba(13, 11, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    gap: 1.5rem;
  }

  /* Active class toggled by Javascript */
  .navbar__links.is-open {
    display: flex !important;
  }
}