/* ═══════════════════════════════════════════
   INDRAJITH RAJESH — PORTFOLIO
   Inspired by gowthamoleti.com
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;700&family=Kalam:wght@400;700&family=Schoolbell&display=swap');

/* Register CSS variables for smooth scroll-driven transitions */
@property --bg { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --bg-card { syntax: '<color>'; inherits: true; initial-value: #f5f5f7; }
@property --bg-elevated { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --text { syntax: '<color>'; inherits: true; initial-value: #0d0d0d; }
@property --text-muted { syntax: '<color>'; inherits: true; initial-value: #6b6b6b; }
@property --text-subtle { syntax: '<color>'; inherits: true; initial-value: #999; }
@property --border { syntax: '<color>'; inherits: true; initial-value: rgba(0,0,0,0.08); }
@property --border-strong { syntax: '<color>'; inherits: true; initial-value: rgba(0,0,0,0.14); }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #0d0d0d; }
@property --accent-glow { syntax: '<color>'; inherits: true; initial-value: rgba(13,13,13,0.08); }
@property --badge-bg { syntax: '<color>'; inherits: true; initial-value: rgba(0,0,0,0.06); }
@property --badge-text { syntax: '<color>'; inherits: true; initial-value: #0d0d0d; }
@property --badge-border { syntax: '<color>'; inherits: true; initial-value: rgba(0,0,0,0.1); }
@property --tag-bg { syntax: '<color>'; inherits: true; initial-value: rgba(0,0,0,0.05); }
@property --tag-text { syntax: '<color>'; inherits: true; initial-value: #444; }

/* ── Google Fonts loaded in HTML ── */

/* ══════════ TOKENS & THEME ══════════ */
:root {
  /* Light mode palette */
  --bg:           #ffffff;
  --bg-card:      #f5f5f7;
  --bg-elevated:  #ffffff;
  --text:         #0d0d0d;
  --text-muted:   #6b6b6b;
  --text-subtle:  #999;
  --border:       rgba(0,0,0,0.08);
  --border-strong:rgba(0,0,0,0.14);

  --accent:       #0d0d0d;
  --accent-hover: #2d2d2d;
  --accent-glow:  rgba(13,13,13,0.08);
  --testimonial-green: var(--text);

  --stepper-accent: #d99b26;
  --stepper-glow:   rgba(217, 155, 38, 0.2);

  --badge-bg:     rgba(0,0,0,0.06);
  --badge-text:   #0d0d0d;
  --badge-border: rgba(0,0,0,0.1);

  --tag-bg:       rgba(0,0,0,0.05);
  --tag-text:     #444;

  --nav-bg:       rgba(255,255,255,0.85);
  --footer-bg:    #0d0d0d;
  --footer-text:  #ececec;

  --marquee-bg:   #0d0d0d;
  --marquee-text: #ffffff;

  --scroll-thumb: #c8c8c2;

  /* Sizes */
  --nav-h:        72px;
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;

  /* Transitions */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:   'Instrument Serif', Georgia, serif;
}

[data-theme="dark"] {
  --bg:           #0c0c0c;
  --bg-card:      #151515;
  --bg-elevated:  #1c1c1c;
  --text:         #f0f0eb;
  --text-muted:   #888;
  --text-subtle:  #555;
  --border:       rgba(255,255,255,0.07);
  --border-strong:rgba(255,255,255,0.12);

  --accent:       #c8ff6b;
  --accent-hover: #d4ff85;
  --accent-glow:  rgba(200,255,107,0.15);
  --testimonial-green: #c8ff6b;

  --stepper-accent: #fbbf24;
  --stepper-glow:   rgba(251, 191, 36, 0.25);

  --badge-bg:     rgba(255,255,255,0.06);
  --badge-text:   #f0f0eb;
  --badge-border: rgba(255,255,255,0.1);

  --tag-bg:       rgba(255,255,255,0.06);
  --tag-text:     #bbb;

  --nav-bg:       rgba(12,12,12,0.88);
  --footer-bg:    #080808;
  --footer-text:  #888;

  --marquee-bg:   #c8ff6b;
  --marquee-text: #0c0c0c;

  --scroll-thumb: #333;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

/* ─── LENIS GSAP SMOOTH SCROLL ─── */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  cursor: none;
  
  /* Smoothly animate variables on scroll and theme changes */
  transition: 
    --bg 0.6s ease, 
    --bg-card 0.6s ease, 
    --bg-elevated 0.6s ease, 
    --text 0.6s ease, 
    --text-muted 0.6s ease, 
    --text-subtle 0.6s ease, 
    --border 0.6s ease, 
    --border-strong 0.6s ease, 
    --accent 0.6s ease, 
    --accent-glow 0.6s ease,
    --badge-bg 0.6s ease, 
    --badge-text 0.6s ease, 
    --badge-border 0.6s ease, 
    --tag-bg 0.6s ease, 
    --tag-text 0.6s ease,
    background-color 0.6s ease,
    color 0.6s ease;
}

/* Layout elements fallback for smooth color fades */
body, section, .container, p, h1, h2, h3, h4, h5, h6, span {
  transition: color 0.6s ease, background-color 0.6s ease, border-color 0.6s ease;
}

@media (hover: none) { body { cursor: auto; } }

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 4px; }

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { border: none; background: none; cursor: none; font-family: inherit; }
@media (hover: none) { button { cursor: pointer; } }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }

/* ══════════ LAYOUT ══════════ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5vw;
}

section { padding: 120px 0; }

/* ══════════ FIXED SPACE BACKGROUND ══════════
   Sits BEHIND all page content (z-index: 1/2).
   Opacity is driven by JS scroll progress — 0 when
   galaxy section is out of view, 1 when fully in view.
   Smoothly transitions the background of the page.
══════════════════════════════════════════════ */
#space-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 1;     /* ← BEHIND sections */
  opacity: 0;
  pointer-events: none;
  /* JS lerps opacity each frame — no CSS transition needed */
}

#space-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;     /* ← above overlay, below sections */
  opacity: 0;
  pointer-events: none;
}

/* Regular sections — stacked above the fixed space background */
.hero, .about, .work, .contact, footer {
  position: relative;
  z-index: 3;
}

/* Preloader above everything */
.preloader { z-index: 99999; }


/* ══════════ TYPOGRAPHY UTILITIES ══════════ */
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
}

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

/* ══════════ CURSOR ══════════ */
.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 200000;
  color: #e23c44; /* Figma red/coral cursor color */
  opacity: 0;
  will-change: transform;
  transition: opacity 0.2s ease;
}

.custom-cursor__arrow {
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
  transform-origin: 0 0;
  transition: transform 0.2s var(--ease-spring);
}

.custom-cursor__label {
  position: absolute;
  left: 5px;
  top: 17px;
  background: #e23c44;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border-top-left-radius: 0;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.2s var(--ease-spring);
}

.custom-cursor.hover .custom-cursor__arrow {
  transform: scale(1.15);
}

.custom-cursor.hover .custom-cursor__label {
  transform: translate(0.75px, 2.55px) scale(0.95);
}

@media (hover: hover) {
  body, a, button, select, input[type="submit"], input[type="button"], .project, .skill-tag, .badge, .social-link, .tag {
    cursor: none !important;
  }
}

@media (hover: none) {
  .custom-cursor {
    display: none !important;
  }
}

/* ══════════ NAV ══════════ */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;  /* above space overlay (500) and canvas (501) */
  width: calc(100% - 48px);
  max-width: 820px;
  pointer-events: none;
  transition: max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1), top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav.nav--scrolled {
  max-width: 680px;
  top: 12px;
}

.nav__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #e8e8e4;
  border-radius: 100px;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  pointer-events: all;
  transition: padding 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.nav--scrolled .nav__pill {
  padding: 6px 6px 6px 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.05);
}

[data-theme="dark"] .nav__pill {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.2);
}

[data-theme="dark"] .nav--scrolled .nav__pill {
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.22);
}

/* Left group */
.nav__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__initials {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  transition: opacity 0.2s;
}
.nav__initials:hover { opacity: 0.6; }

.nav__clock-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f2f2ef;
  border: 1px solid #e4e4e0;
  border-radius: 40px;
  padding: 5px 12px;
  transition: background 0.35s, border-color 0.35s;
}
[data-theme="dark"] .nav__clock-badge {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
}

.nav__clock {
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav__tz {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Center links */
.nav__links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
  margin: 0 auto;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  padding: 7px 16px;
  border-radius: 40px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
[data-theme="dark"] .nav__link { color: #999; }
.nav__link:hover {
  color: var(--text);
  background: rgba(0,0,0,0.05);
}
[data-theme="dark"] .nav__link:hover {
  background: rgba(255,255,255,0.07);
}

/* Right group */
.nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #0d0d0d;
  padding: 10px 22px;
  border-radius: 40px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, padding 0.2s, width 0.2s, height 0.2s;
  letter-spacing: -0.01em;
}

.nav__cta-icon {
  display: none;
  align-items: center;
  justify-content: center;
}
.nav__cta:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
[data-theme="dark"] .nav__cta {
  background: #f0f0eb;
  color: #0d0d0d;
}
[data-theme="dark"] .nav__cta:hover {
  background: #fff;
}

/* Greeting Banner */
.nav-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 18px 6px 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  margin: 12px auto 0 auto;
  width: max-content;
  max-width: calc(100% - 32px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.nav-banner__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  flex-shrink: 0;
}

[data-theme="dark"] .nav-banner__icon-wrap {
  background: rgba(255, 255, 255, 0.08);
}

.nav-banner__text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .nav__hamburger { background: rgba(255,255,255,0.07); }
.nav__hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: calc(20px + 60px + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: calc(100% - 48px);
  max-width: 820px;
  background: #fff;
  border: 1.5px solid #e8e8e4;
  border-radius: 24px;
  z-index: 999;
  padding: 12px;
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
[data-theme="dark"] .mobile-menu {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.1);
}
.mobile-menu.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  transition: background 0.2s;
}
.mobile-menu__link:hover { background: rgba(0,0,0,0.04); }
[data-theme="dark"] .mobile-menu__link:hover { background: rgba(255,255,255,0.06); }
.mobile-menu__link--cta {
  background: #0d0d0d;
  color: #fff;
  text-align: center;
  margin-top: 4px;
  font-weight: 600;
}
[data-theme="dark"] .mobile-menu__link--cta {
  background: #f0f0eb;
  color: #0d0d0d;
}
.mobile-menu__link--cta:hover {
  background: #2a2a2a !important;
  color: #fff;
}
[data-theme="dark"] .mobile-menu__link--cta:hover {
  background: #fff !important;
}

/* ─── THEME TOGGLE BUTTON ─── */
.nav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.nav__theme-toggle:hover {
  background: rgba(0,0,0,0.06);
  color: var(--text);
  transform: scale(1.08);
}
[data-theme="dark"] .nav__theme-toggle {
  border-color: rgba(255,255,255,0.12);
  color: #aaa;
}
[data-theme="dark"] .nav__theme-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: #f0f0eb;
}

/* Sun = visible in dark mode, Moon = visible in light mode */
.nav__theme-icon {
  position: absolute;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.nav__theme-icon--sun {
  opacity: 0;
  transform: rotate(-30deg) scale(0.8);
}
.nav__theme-icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
[data-theme="dark"] .nav__theme-icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
[data-theme="dark"] .nav__theme-icon--moon {
  opacity: 0;
  transform: rotate(30deg) scale(0.8);
}

/* Mobile menu theme toggle */
.mobile-menu__theme-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.mobile-menu__theme-toggle:hover {
  background: rgba(0,0,0,0.04);
}
[data-theme="dark"] .mobile-menu__theme-toggle:hover {
  background: rgba(255,255,255,0.06);
}
.mobile-menu__theme-toggle .nav__theme-icon {
  position: static;
  flex-shrink: 0;
}
.mobile-menu__theme-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* ─── FLOATING THEME TOGGLE FAB — icon only, glassy ─── */
.theme-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  cursor: none;
  color: var(--text);

  /* Spring-based transition — all props */
  transition:
    background 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.35s ease,
    box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Glow halo ring — pseudo element */
  isolation: isolate;
  will-change: transform;

  /* Slide up on entry */
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  animation: fab-enter 0.55s 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fab-enter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Glow halo ring */
.theme-fab::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid transparent;
  transition:
    border-color 0.35s ease,
    inset 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

/* Floating tooltip */
.theme-fab::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.theme-fab:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.theme-fab:hover {
  background: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.13),
    0 3px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-3px) scale(1.1);
  border-color: rgba(255, 255, 255, 0.75);
}

.theme-fab:hover::before {
  inset: -5px;
  border-color: rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.theme-fab:active {
  transform: translateY(0) scale(0.93) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transition-duration: 0.1s !important;
}

[data-theme="dark"] .theme-fab {
  background: rgba(22, 22, 30, 0.7);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.45),
    0 1px 4px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #e8e8e4;
}

[data-theme="dark"] .theme-fab:hover {
  background: rgba(35, 35, 45, 0.85);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.55),
    0 3px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .theme-fab:hover::before {
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

/* Icon cross-fade with spring spring rotation */
.theme-fab__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  will-change: transform, opacity;
}

/* Light theme: moon visible, sun hidden behind rotate+scale */
.theme-fab__icon--moon { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
.theme-fab__icon--sun  { opacity: 0; transform: translate(-50%, -50%) rotate(60deg) scale(0.5); }

/* Dark theme: sun springs in, moon rotates out */
[data-theme="dark"] .theme-fab__icon--moon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-50deg) scale(0.5);
}
[data-theme="dark"] .theme-fab__icon--sun {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* Icon subtly bounces on hover */
.theme-fab:hover .theme-fab__icon--moon,
.theme-fab:hover [data-theme="dark"] .theme-fab__icon--sun {
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.15));
}

[data-theme="dark"] .theme-fab:hover .theme-fab__icon--sun {
  filter: drop-shadow(0 0 6px rgba(255, 200, 50, 0.4));
  transform: translate(-50%, -50%) rotate(15deg) scale(1.05);
}

.theme-fab:hover .theme-fab__icon--moon {
  filter: drop-shadow(0 0 5px rgba(80, 120, 255, 0.3));
  transform: translate(-50%, -50%) rotate(-15deg) scale(1.05);
}

/* When expanded: unpin icons from absolute, sit in flex row */
.theme-fab.landing-expanded .theme-fab__icon,
.cs-theme-toggle.landing-expanded .theme-fab__icon {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  opacity: 1 !important;
  flex-shrink: 0;
  filter: none !important;
}

/* Hide the inactive icon completely when expanded so no ghost icon doubles */
.theme-fab.landing-expanded .theme-fab__icon--sun,
.cs-theme-toggle.landing-expanded .theme-fab__icon--sun {
  display: none;
}
[data-theme="dark"] .theme-fab.landing-expanded .theme-fab__icon--sun,
[data-theme="dark"] .cs-theme-toggle.landing-expanded .theme-fab__icon--sun {
  display: block;
}
[data-theme="dark"] .theme-fab.landing-expanded .theme-fab__icon--moon,
[data-theme="dark"] .cs-theme-toggle.landing-expanded .theme-fab__icon--moon {
  display: none;
}

/* Hide the text tooltip completely (using ::after pseudo instead) */
.theme-fab__tooltip { display: none; }


.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 40px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
}
.badge--outline { border-color: var(--border-strong); }

.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3dba6e;
  animation: pulse 1.8s ease-in-out infinite;
}
.badge--outline::before { display: none; }

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

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 40px;
  background: var(--tag-bg);
  color: var(--tag-text);
}

/* ══════════ HERO ══════════ */
.hero {
  padding-top: 130px;
  padding-bottom: 0;
  overflow: hidden;
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 100px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero__headline {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 32px;
}

.hero__greeting-line {
  opacity: 0.55; /* Reduced opacity for the greeting line */
}

#hero-hello {
  display: inline-flex;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) rotate(8deg);
  transform-origin: center bottom;
  will-change: opacity, transform;
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.letter.animate-in {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.letter.animate-out {
  opacity: 0;
  transform: translateY(-14px) rotate(-8deg);
}

.hero__headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.hero__subtext {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 48px;
  overflow: visible;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Scroll Indicator ── */
.hero__scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text);
  opacity: 0.65;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bounceDown 2s infinite ease-in-out;
}

.hero__scroll-indicator:hover {
  color: #18a0fb;
  opacity: 1;
  transform: translateX(-50%) scale(1.15);
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ══════════ BUTTONS ══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 40px;
  transition: all 0.25s var(--ease);
  letter-spacing: -0.01em;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
  border: 2px solid var(--text);
}
.btn--primary:hover {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border-strong);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn--large {
  font-size: 1rem;
  padding: 17px 40px;
}

/* ══════════ WORK / PROJECTS ══════════ */
.work {
  background: transparent;
}

.work__header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.work__header-left {
  display: flex;
  flex-direction: column;
}

.work__header-left .section-label {
  margin-bottom: 6px;
}

.work__header-left .section-title {
  margin-bottom: 0;
  line-height: 1.1;
}

/* Category Tabs Alignment & Wrapper */
.work__tabs-wrapper {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  z-index: 10;
  align-self: flex-end;
}

/* Segmented Soft Pill Tab Switch (Inspired by user reference design) */
.work__tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f3f5;
  padding: 5px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: max-content;
}

/* Elevated Active White Pill Slider */
.work__tab-slider {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  border-radius: 100px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.work__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  background: transparent;
  color: #656d76;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.work__tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2;
  color: inherit;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.work__tab-text {
  display: inline-block;
  white-space: nowrap;
}

.work__tab:hover {
  color: #1a1d20;
}

.work__tab:hover .work__tab-icon {
  opacity: 0.95;
}

.work__tab.is-active {
  padding: 9px 18px;
  color: #0d0e12;
  font-weight: 600;
}

.work__tab.is-active .work__tab-icon {
  opacity: 1;
}

/* Dark Mode Tab Overrides */
[data-theme="dark"] .work__tabs {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .work__tab-slider {
  background: #1e2027;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .work__tab {
  color: #8c94a0;
}

[data-theme="dark"] .work__tab:hover {
  color: #f0f2f5;
}

[data-theme="dark"] .work__tab.is-active {
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 868px) {
  .work__header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
  }

  .work__tabs-wrapper {
    align-self: stretch;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 580px) {
  .work__tabs {
    width: 100%;
    justify-content: space-around;
  }
  .work__tab {
    padding: 8px 12px;
    font-size: 0.8rem;
    gap: 5px;
    flex: 1;
  }
}

/* Work Section Subtitle (Dynamic for Products) */
.work__subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Schoolbell', cursive, sans-serif;
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 16px 0 0;
  opacity: 0;
  transform: translateY(6px) rotate(-1.5deg);
  transform-origin: left center;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  white-space: nowrap;
}

[data-theme="dark"] .work__subtitle {
  color: #a0a09b;
}

.work__subtitle.is-active,
.section-header.visible .work__subtitle {
  opacity: 1;
  transform: translateY(0) rotate(-1.5deg);
  pointer-events: auto;
  animation: writeReveal 1.6s cubic-bezier(0.3, 0.1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes writeReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0% 0 0);
  }
}

.heart-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff4d4d; /* beautiful red heart */
  transform-origin: center;
  animation: heartbeat 1.4s infinite ease-in-out;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.22);
  }
  40% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.22);
  }
}

/* Empty State */
.project-empty-state {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 24px;
}

.empty-state-card {
  text-align: center;
  max-width: 480px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.empty-state-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.empty-state-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.empty-state-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.work__cta {
  display: flex;
  justify-content: center;
  margin-top: 56px;
  margin-bottom: 24px;
}

/* Editorial Project Feed (Free-form, borderless) */
/* ─── HORIZONTAL SCROLLING CASE STUDIES TRACK ─── */

/* Wrapper breaks out to full viewport width — same trick as .projects-stack —
   so position:absolute children are measured from the true viewport edges */
.projects-stack-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Right-edge fade: absolutely inside the full-width wrapper */
.projects-stack-arrow {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  bottom: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Hidden by default — JS adds .is-visible when #work section is in viewport */
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Shown when work section is in the viewport */
.projects-stack-arrow.is-visible {
  opacity: 1;
  pointer-events: auto; /* let clicks reach the button */
}

/* But if we've reached the end of the track, hide it again */
.projects-stack-arrow.is-visible.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Gradient: multi-stop eased fade — transparent → page background */
/* Dark mode (default) — fades from transparent to #0c0c0c */
.projects-stack-arrow__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(12, 12, 12, 0)    0%,
    rgba(12, 12, 12, 0.04) 12%,
    rgba(12, 12, 12, 0.12) 25%,
    rgba(12, 12, 12, 0.28) 40%,
    rgba(12, 12, 12, 0.55) 58%,
    rgba(12, 12, 12, 0.80) 74%,
    rgba(12, 12, 12, 0.95) 88%,
    rgba(12, 12, 12, 1)    100%
  );
  pointer-events: none;
}

/* Light mode override — fades to #ffffff */
[data-theme="light"] .projects-stack-arrow__gradient {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0)    0%,
    rgba(255, 255, 255, 0.04) 12%,
    rgba(255, 255, 255, 0.12) 25%,
    rgba(255, 255, 255, 0.28) 40%,
    rgba(255, 255, 255, 0.55) 58%,
    rgba(255, 255, 255, 0.80) 74%,
    rgba(255, 255, 255, 0.95) 88%,
    rgba(255, 255, 255, 1)    100%
  );
}

/* Circular arrow button — vertically centred, sits right of gradient */
.projects-stack-arrow__btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  pointer-events: auto;
  margin-right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2),
              background 0.2s ease,
              color 0.2s ease,
              box-shadow 0.22s ease;
  animation: arrowPulse 2.4s ease-in-out infinite;
}

.projects-stack-arrow__btn:hover {
  transform: scale(1.12);
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 8px 28px rgba(0,0,0,0.24);
  animation: none;
}

@keyframes arrowPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.18); }
  50%       { box-shadow: 0 4px 32px rgba(0,0,0,0.30); }
}

.projects-stack {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 32px;
  width: 100%;
  padding-left: max(5vw, calc(50vw - 590px));
  padding-right: max(5vw, calc(50vw - 590px));
  padding-top: 40px;
  padding-bottom: 60px;
  align-items: center;
  scroll-behavior: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.projects-stack::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

/* ─── STAGGERED ASPECT RATIO & POSITIONED PORTRAIT CARDS ─── */
.projects-stack .project--stack-card {
  position: relative;
  flex: 0 0 360px; /* fixed layout width */
  width: 360px;
  background: transparent;
  border: none;
  overflow: visible;
  cursor: pointer;
  
  /* Smooth exit/entrance state */
  opacity: 0;
  transform: translateY(60px);
  transition: 
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
    opacity 0.5s var(--ease);

  /* Hardware Acceleration */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Invisible hit-box bridge so mouse never leaves card when media shifts UP */
.projects-stack .project--stack-card::before {
  content: '';
  position: absolute;
  top: -65px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  z-index: 0;
  pointer-events: auto;
}

/* Entrance animation triggers via JS IntersectionObserver */
.project--stack-card.is-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered height wave layout aligned via parent flex-centering */
.project--stack-card.stagger-1 { height: 520px; }
.project--stack-card.stagger-2 { height: 460px; }
.project--stack-card.stagger-3 { height: 410px; }

/* Project Branding Colors (RGB) */
#project-credcollect { --project-color-rgb: 200, 255, 107; } /* lime green */
#project-keralacobank { --project-color-rgb: 10, 88, 202; } /* vibrant blue */
#project-lynalysis { --project-color-rgb: 87, 48, 211; } /* violet blue */
#project-dawnbreak { --project-color-rgb: 0, 229, 255; } /* cyan */
#project-sameepam { --project-color-rgb: 255, 42, 95; } /* rose pink */
#project-credigro { --project-color-rgb: 16, 185, 129; } /* emerald green */
#project-ilay { --project-color-rgb: 255, 109, 0; } /* orange */
#project-menubuilder { --project-color-rgb: 245, 158, 11; } /* gold */
#project-midseas { --project-color-rgb: 0, 145, 234; } /* ocean blue */
#project-blz { --project-color-rgb: 229, 57, 53; } /* ruby red */
#project-novanest { --project-color-rgb: 184, 144, 71; } /* warm gold */
#project-intelligo { --project-color-rgb: 124, 77, 255; } /* purple violet */

/* Neighboring cards slide away smoothly on the GPU with zero reflow cost */
.projects-stack .project--stack-card.shift-left {
  transform: translateX(-16px) translateZ(0);
}

.projects-stack .project--stack-card.shift-right {
  transform: translateX(16px) translateZ(0);
}

/* ─── CARD MEDIA IMAGE CONTAINER (LIFTS UP ON HOVER FOR WEB) ─── */
.project--stack-card .project__media {
  position: relative;
  width: 100%;
  height: calc(100% - 76px);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: 
    transform 0.48s cubic-bezier(0.2, 0.9, 0.3, 1.2), 
    box-shadow 0.48s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.35s ease;
  will-change: transform, box-shadow;
  z-index: 2;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.project--stack-card .project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* WEB / DESKTOP HOVER: Card Image goes UP and elevates with glow shadow */
@media (hover: hover) and (min-width: 769px) {
  .projects-stack .project--stack-card.is-hovered .project__media,
  .projects-stack .project--stack-card:hover .project__media {
    transform: translateY(-54px) scale(1.02);
    box-shadow: 
      0 20px 45px rgba(0, 0, 0, 0.32),
      0 0 35px rgba(var(--project-color-rgb, 0, 0, 0), 0.22),
      0 2px 10px rgba(var(--project-color-rgb, 0, 0, 0), 0.15);
    border-color: rgba(var(--project-color-rgb, 255, 255, 255), 0.35);
  }

  [data-theme="light"] .projects-stack .project--stack-card.is-hovered .project__media,
  [data-theme="light"] .projects-stack .project--stack-card:hover .project__media {
    box-shadow: 
      0 16px 36px rgba(0, 0, 0, 0.12),
      0 0 25px rgba(var(--project-color-rgb, 0, 0, 0), 0.15);
    border-color: rgba(0, 0, 0, 0.15);
  }

  .projects-stack .project--stack-card.is-hovered .project__media img,
  .projects-stack .project--stack-card:hover .project__media img {
    transform: scale(1.05);
  }
}

/* ─── INFO DETAILS REVEALED UNDERNEATH ON HOVER (MATCHING REFERENCE IMAGE) ─── */
.project--stack-card .project__info {
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 72px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.35s ease;
  will-change: transform, opacity;
}

@media (hover: hover) and (min-width: 769px) {
  .project--stack-card .project__info {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
  }

  /* Revealed under the card when hovered on web */
  .projects-stack .project--stack-card.is-hovered .project__info,
  .projects-stack .project--stack-card:hover .project__info {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Title & Arrow Button Row */
.project__info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.project--stack-card .project__title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project--stack-card .project__desc {
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 54px; /* 34px button width + 20px clean gap */
}

/* Arrow Button on Top-Right of Info Section (Like Reference Image ↗) */
.project--stack-card .project__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.05rem;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.project--stack-card .project__link .arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  will-change: transform;
}

.project--stack-card .project__link:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project--stack-card .project__link:hover .arrow {
  transform: translate(2px, -2px);
}

.project--stack-card .project__link-text {
  display: none; /* Only show sleek ↗ arrow button next to title */
}

/* Mobile & Touch Devices (No hover capability): Show clean layout without requiring hover */
@media (max-width: 768px), (hover: none) {
  .project--stack-card .project__info {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

/* ─── MOBILE RESPONSIVE MEDIA QUERIES ─── */
@media (max-width: 768px) {
  .projects-stack {
    gap: 20px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .project--stack-card {
    flex: 0 0 290px;
    width: 290px;
    border-radius: var(--radius-md);
  }
  .project--stack-card.stagger-1 {
    height: 420px;
  }
  .project--stack-card.stagger-2 {
    height: 380px;
  }
  .project--stack-card.stagger-3 {
    height: 350px;
  }
  
  /* Reduced scale and shifts on mobile to prevent clipping */
  .projects-stack .project--stack-card.is-hovered {
    transform: scale(1.06) translateY(-6px) translateZ(0);
  }
  .projects-stack .project--stack-card.shift-left {
    transform: translateX(-10px) translateZ(0);
  }
  .projects-stack .project--stack-card.shift-right {
    transform: translateX(10px) translateZ(0);
  }
}

/* Premium shimmer sheen effect on hover */
.project__media {
  position: relative;
  overflow: hidden;
}

.project__media::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 2;
}

.project:hover .project__media::after {
  left: 150%;
  transition: left 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Shared info styles */
.project__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project__title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.project--featured .project__title { font-size: 2rem; }

.project__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex: 1;
}

.project__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s var(--ease), opacity 0.2s;
  align-self: flex-start;
}
.project__link:hover { gap: 10px; opacity: 0.7; }
.project__link .arrow { transition: transform 0.2s var(--ease); }
.project__link:hover .arrow { transform: translate(2px, -2px); }


/* ══════════ DOODH ACHIEVEMENT ══════════ */
.doodh-achievement {
  background: transparent;
  padding: 160px 0;
}

/* Smooth scroll-driven animations for Doodh recognition section */
.doodh-achievement .doodh__header {
  /* Passive trigger container: elements inside are animated instead */
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

/* Staggered header components */
.doodh-achievement .doodh__header .section-label {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}
.doodh-achievement .doodh__header.visible .section-label {
  opacity: 1;
  transform: translateY(0);
}

.doodh-achievement .doodh__header .doodh__minister-pill {
  opacity: 0;
  transform: translateY(25px) scale(0.95);
  filter: blur(6px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
              filter 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.doodh-achievement .doodh__header.visible .doodh__minister-pill {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.doodh-achievement .doodh__header .doodh__headline {
  opacity: 0;
  transform: translateY(35px) scale(0.97);
  filter: blur(10px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
              filter 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.doodh-achievement .doodh__header.visible .doodh__headline {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.doodh-achievement .doodh__header .doodh__subtext {
  opacity: 0;
  transform: translateY(25px);
  filter: blur(4px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.45s,
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.45s,
              filter 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}
.doodh-achievement .doodh__header.visible .doodh__subtext {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered stage layout reveal */
.doodh-achievement .doodh__stage {
  /* Passive trigger container: child columns staggered separately */
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

/* 3-Column stage layout stagger animations */
.doodh-achievement .doodh__stage .doodh__pillars {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.25s,
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}
.doodh-achievement .doodh__stage.visible .doodh__pillars {
  opacity: 1;
  transform: translateX(0);
}

.doodh-achievement .doodh__stage .doodh__media-stack {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  filter: blur(8px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
              filter 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}
.doodh-achievement .doodh__stage.visible .doodh__media-stack {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.doodh-achievement .doodh__stage .doodh__stats {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.55s,
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}
.doodh-achievement .doodh__stage.visible .doodh__stats {
  opacity: 1;
  transform: translateX(0);
}

/* Ambient glow blob */
.doodh-achievement::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 200, 50, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.doodh__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
  position: relative;
  z-index: 1;
}

.doodh__headline {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.doodh__headline em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
}

/* Minister award pill */
.doodh__minister-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 215, 50, 0.13) 0%, rgba(255, 180, 20, 0.07) 100%);
  border: 1px solid rgba(255, 200, 50, 0.4);
  color: #9a7200;
  padding: 7px 18px 7px 12px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.doodh__minister-pill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: doodh-shimmer 4s infinite linear;
}

@keyframes doodh-shimmer {
  0% {
    left: -150%;
  }
  35% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

[data-theme="dark"] .doodh__minister-pill {
  color: #f0c030;
  background: linear-gradient(135deg, rgba(255, 215, 50, 0.1) 0%, rgba(255, 180, 20, 0.05) 100%);
  border-color: rgba(255, 200, 50, 0.28);
}

.doodh__minister-pill-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

@keyframes doodh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

.doodh__subtext {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}


/* ─── Stage: 3-column layout ─── */
.doodh__stage {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
  margin-bottom: 80px;
}

/* ─── Left Pillars ─── */
.doodh__pillars {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.doodh__pillar {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 24px 0 0 0;
  transition: opacity 0.3s var(--ease);
}

.doodh__pillar:first-child {
  border-top: none;
  padding-top: 0;
}

.doodh__pillar:hover {
  opacity: 0.7;
}

.doodh__pillar-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tag-bg);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.doodh__pillar-icon {
  width: 16px;
  height: 16px;
}

.doodh__pillar-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 8px 0;
}

.doodh__pillar-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Centre Media Stack ─── */
.doodh__media-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.doodh__award-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 215, 50, 0.12) 0%, rgba(255, 180, 20, 0.08) 100%);
  border: 1px solid rgba(255, 200, 50, 0.35);
  color: #a07800;
  padding: 7px 16px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  margin-bottom: 8px;
}

[data-theme="dark"] .doodh__award-badge {
  color: #f5c842;
  background: linear-gradient(135deg, rgba(255, 215, 50, 0.1) 0%, rgba(255, 180, 20, 0.06) 100%);
  border-color: rgba(255, 200, 50, 0.25);
}

/* Polaroid cards */
.doodh__polaroid {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 10px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
  width: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  cursor: pointer;
}

.doodh__polaroid:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
}

.doodh__polaroid--1 { transform: rotate(-2deg); }
.doodh__polaroid--2 { transform: rotate(1.5deg); margin-top: -16px; }
.doodh__polaroid--3 { transform: rotate(-1deg); margin-top: -16px; }

.doodh__polaroid--1:hover { transform: rotate(0deg) translateY(-6px); }
.doodh__polaroid--2:hover { transform: rotate(0deg) translateY(-6px); }
.doodh__polaroid--3:hover { transform: rotate(0deg) translateY(-6px); }

.doodh__polaroid-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doodh__polaroid-img img,
.doodh__polaroid-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video polaroid — relative container for play indicator */
.doodh__polaroid-img--video {
  position: relative;
}

.doodh__video-play-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.doodh__polaroid:hover .doodh__video-play-indicator {
  opacity: 0;
}

.doodh__img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
  text-align: center;
  padding: 20px;
}

.doodh__img-placeholder .material-symbols-rounded {
  font-size: 2rem;
  opacity: 0.4;
}

.doodh__img-placeholder p {
  font-size: 0.75rem;
  opacity: 0.5;
  margin: 0;
}

.doodh__polaroid-caption {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0 0;
  letter-spacing: 0.01em;
}

/* ─── Right Stats ─── */
.doodh__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.doodh__stat {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.3s var(--ease);
}

.doodh__stat:nth-child(1),
.doodh__stat:nth-child(2) {
  border-top: none;
  padding-top: 0;
}

.doodh__stat:hover { opacity: 0.7; }

.doodh__stat-num {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.doodh__stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA group spans full 2 columns */
.doodh__cta-group {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* ─── Doodh Timeline (Inline Stepper Card Layout) ─── */
.doodh__timeline {
  position: relative;
  margin-top: 64px;
  padding-bottom: 220px; /* Space for the floating popover cards underneath */
}

.doodh__timeline-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.doodh__timeline-track {
  position: absolute;
  top: 16px; /* Centered behind the 32px dot wrapper */
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  z-index: 1;
}

.doodh__timeline-fill {
  height: 100%;
  width: var(--fill-width, 0%);
  background: var(--stepper-accent);
  transition: width 0.15s linear;
  border-radius: 2px;
}

/* Stepper Item Button */
.doodh__timeline-item {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  outline: none;
}

.doodh__tl-dot-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.doodh__tl-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--border-strong);
  box-shadow: 0 0 0 2px var(--bg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.doodh__tl-dot svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: color 0.4s;
}

.doodh__tl-year {
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

/* Hover States */
.doodh__timeline-item:hover .doodh__tl-dot {
  border-color: var(--stepper-accent);
  transform: scale(1.15);
}

.doodh__timeline-item:hover .doodh__tl-dot svg {
  color: var(--stepper-accent);
}

.doodh__timeline-item:hover .doodh__tl-year {
  color: var(--text);
}

/* Active & Visited States (Cohesive Golden Amber Accent) */
.doodh__timeline-item.is-active .doodh__tl-dot {
  transform: scale(1.3);
  background: var(--bg);
  border-color: var(--stepper-accent);
  box-shadow: 0 0 0 4px var(--stepper-glow), 0 0 0 2px var(--bg);
}

.doodh__timeline-item.is-active .doodh__tl-dot svg {
  color: var(--stepper-accent);
}

.doodh__timeline-item.is-visited:not(.is-active) .doodh__tl-dot {
  background: var(--stepper-accent);
  border-color: var(--stepper-accent);
}

.doodh__timeline-item.is-visited:not(.is-active) .doodh__tl-dot svg {
  color: var(--bg);
}

.doodh__timeline-item.is-active .doodh__tl-year,
.doodh__timeline-item.is-visited .doodh__tl-year {
  color: var(--stepper-accent);
  font-weight: 800;
}

/* Award Dot Specificity */
.doodh__timeline-item--award .doodh__tl-dot--award {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  background: var(--bg-card);
  border-color: var(--border-strong);
  margin-top: 0;
  box-shadow: 0 0 0 2px var(--bg);
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 4px;
}

.doodh__timeline-item--award:hover .doodh__tl-dot--award {
  border-color: var(--stepper-accent);
  box-shadow: 0 0 0 4px var(--stepper-glow);
}

.doodh__timeline-item--award.is-active .doodh__tl-dot--award {
  background: var(--bg-card);
  border-color: var(--stepper-accent);
  box-shadow: 0 0 0 5px var(--stepper-glow), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: scale(1.15);
}

.doodh__timeline-item--award.is-visited .doodh__tl-dot--award {
  border-color: var(--stepper-accent);
}

.doodh__timeline-item--award.is-active .doodh__tl-year {
  color: var(--stepper-accent);
}

/* Floating Detail Card Popup (Container fill removed) */
.doodh__tl-card {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translate(-50%, -10px);
  width: 230px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
  z-index: 10;
}

.doodh__timeline-item.is-active .doodh__tl-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.doodh__tl-card-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--stepper-accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.doodh__tl-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.doodh__tl-card-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive Stepper styles */
@media (max-width: 1024px) {
  .doodh__stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .doodh__pillars { grid-column: 1; grid-row: 1; }
  .doodh__stats   { grid-column: 2; grid-row: 1; }
  .doodh__media-stack { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .doodh__polaroid { width: 200px; }
}

@media (max-width: 768px) {
  .doodh__stage { grid-template-columns: 1fr; }
  .doodh__pillars, .doodh__stats, .doodh__media-stack { grid-column: 1; grid-row: auto; }
  
  .doodh__timeline {
    padding-bottom: 0;
  }
  .doodh__timeline-track {
    display: block;
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 14.5px;
    width: 3px;
    height: auto;
    right: auto;
  }
  .doodh__timeline-fill {
    width: 100%;
    height: 0;                        /* JS overrides with px values */
    background: var(--stepper-accent);
    transition: height 0.12s ease-out;
  }
  .doodh__timeline-items {
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
  }
  .doodh__timeline-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 16px;
    align-items: center;
    text-align: left;
    width: 100%;
  }
  .doodh__tl-dot-wrap {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  .doodh__tl-year {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    align-self: center;
  }
  .doodh__tl-card {
    grid-column: 2;
    grid-row: 2;
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    padding: 6px 0 0 0 !important;
    border: none;
    box-shadow: none;
    background: transparent;
    transition: opacity 0.3s ease, color 0.3s ease;
    text-align: left !important;
  }
  .doodh__timeline-item.is-active .doodh__tl-card {
    max-height: none !important;
    opacity: 1 !important;
    padding: 6px 0 0 0 !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    text-align: left !important;
  }
}

/* ══════════ ABOUT ══════════ */
.about {
  background: transparent;
}

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

/* Photo column */
.about__photo-col { position: sticky; top: calc(var(--nav-h) + 32px); }

.about__photo-wrap {
  width: 220px;
  height: 270px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}

.about__photo-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  opacity: 0.15;
}

.about__initials {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text);
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-style: italic;
}

.about__quick-facts { display: flex; flex-direction: column; gap: 20px; }

.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fact__num {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--text);
  line-height: 1;
}
.fact__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Text column */
.about__bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.about__bio strong { color: var(--text); font-weight: 600; }
.about__bio em { color: var(--text); font-style: italic; font-family: var(--font-serif); }

.skills__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

.about__skills { margin: 36px 0; }
.skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 40px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.skill-tag:hover { border-color: var(--border-strong); color: var(--text); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.timeline__item:last-child { border-bottom: none; }

.timeline__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.timeline__company {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.timeline__year {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.timeline__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ══════════ CONTACT ══════════ */
.contact {
  background: transparent;
  text-align: center;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.contact__headline {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.contact__subtext {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.social-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.social-link:hover { color: var(--text); }

/* ══════════ FOOTER ══════════ */
.footer {
  background: var(--footer-bg);
  padding: 28px 0;
  transition: background 0.4s;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f0f0eb;
}
.footer__copy {
  font-size: 0.8rem;
  color: #555;
}
.footer__back {
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  transition: color 0.2s;
}
.footer__back:hover { color: #f0f0eb; }

/* ══════════ SCROLL ANIMATIONS ══════════ */

/* ── Section-level entrance ── */
/* Only active after JS adds .js-scroll-ready to body */
.js-scroll-ready section:not(.hero):not(.galaxy-section) {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  transition:
    opacity  0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.js-scroll-ready section:not(.hero):not(.galaxy-section).section-in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Individual element fade-up (children within sections) ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for sibling fade-up elements */
.fade-up:nth-child(1) { transition-delay: 0.05s; }
.fade-up:nth-child(2) { transition-delay: 0.13s; }
.fade-up:nth-child(3) { transition-delay: 0.21s; }
.fade-up:nth-child(4) { transition-delay: 0.29s; }
.fade-up:nth-child(5) { transition-delay: 0.37s; }

/* Hero fade-up items — always visible, no delay */
.hero .fade-up,
.hero .fade-up:nth-child(n) {
  transition-delay: 0s;
}



/* ══════════ RESPONSIVE ══════════ */
.break-md { display: block; }

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding-bottom: 60px;
  }
  .hero__text-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .hero__headline {
    text-align: center;
    width: 100%;
  }
  .hero__eyebrow {
    justify-content: center;
  }
  .hero__subtext {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 100%;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__graphic-col {
    perspective: none !important;
    padding: 20px 0;
  }
  .figma-canvas {
    max-width: 420px;
    transform: none !important;
    transform-style: flat !important;
  }
  .figma-canvas:hover {
    transform: none !important;
  }



  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__photo-col { position: static; display: flex; align-items: center; gap: 40px; }
  .about__photo-wrap { margin-bottom: 0; }
  .about__quick-facts { flex-direction: row; gap: 32px; }
}

@media (max-width: 820px) {
  section { padding: 80px 0; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .mobile-menu { display: block; }

  .hero__headline { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .break-md { display: inline; }


  .work__cta {
    margin-top: 24px !important;
  }

  .about__photo-col { flex-direction: column; align-items: flex-start; }
  .about__quick-facts { flex-direction: row; gap: 28px; }

  .contact__socials { gap: 20px; }
  .footer__inner { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 480px) {
  :root { --nav-h: 64px; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero__headline { letter-spacing: -0.03em; }
  .figma-canvas {
    max-width: 320px;
    width: 100%;
  }
  .figma-canvas__title {
    display: none;
  }
  .figma-canvas__body {
    padding: 16px;
  }

  .about__photo-col { flex-direction: column; }
  .about__quick-facts { flex-direction: column; gap: 16px; }
}

@media (max-width: 576px) {
  .nav__cta-text {
    display: none;
  }
  .nav__cta-icon {
    display: inline-flex;
  }
  .nav__cta {
    padding: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    justify-content: center;
  }
  .nav__pill {
    padding: 6px 6px 6px 12px;
  }
  .nav--scrolled .nav__pill {
    padding: 6px 6px 6px 12px;
  }
  .nav__left {
    gap: 6px;
  }
  .nav__clock-badge {
    padding: 5px 8px;
  }
  .nav__right {
    gap: 6px;
  }
}

/* ══════════ COMPANY BADGES ══════════ */
/* ── COMPANY BADGES — styled as Figma selection frames ── */
.company-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 5px 16px 5px 16px;
  margin: 0 3px;
  vertical-align: middle;
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  /* Figma blue selection border */
  border: 1.5px solid #0c8ce9;
  border-radius: 2px;

  box-shadow:
    0 0 0 0.5px rgba(12, 140, 233, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.08);

  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    background 0.2s ease;

  /* Figma layer name label — top left */
}

/* The layer label above the frame */
.company-badge::before {
  content: attr(data-layer);
  position: absolute;
  top: -18px;
  left: -1.5px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: #0c8ce9;
  background: transparent;
  white-space: nowrap;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.company-badge:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* Corner resize handles — pseudo approach via box shadows on ::after */
/* We use a small inset corner square pattern */
.company-badge::after {
  content: '';
  position: absolute;
  inset: -4px;
  pointer-events: none;
  /* Four white squares with blue border at each corner */
  background:
    /* TL */ radial-gradient(circle at 4px 4px,       #fff 3px, transparent 3px),
    radial-gradient(circle at 4px 4px,                #0c8ce9 4px, transparent 4px),
    /* TR */ radial-gradient(circle at calc(100% - 4px) 4px,       #fff 3px, transparent 3px),
    radial-gradient(circle at calc(100% - 4px) 4px,                #0c8ce9 4px, transparent 4px),
    /* BL */ radial-gradient(circle at 4px calc(100% - 4px),       #fff 3px, transparent 3px),
    radial-gradient(circle at 4px calc(100% - 4px),                #0c8ce9 4px, transparent 4px),
    /* BR */ radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), #fff 3px, transparent 3px),
    radial-gradient(circle at calc(100% - 4px) calc(100% - 4px),   #0c8ce9 4px, transparent 4px);
  opacity: 1;
}

/* Hover: frame lifts off the page */
.company-badge:hover {
  transform: translateY(-6px) scale(1.05) rotate(0deg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(12, 140, 233, 0.4),
    0 10px 28px rgba(12, 140, 233, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Dark mode */
[data-theme="dark"] .company-badge {
  color: #f0f0eb;
  background: rgba(30, 30, 34, 0.75);
  border-color: #0c8ce9;
  box-shadow:
    0 0 0 0.5px rgba(12, 140, 233, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .company-badge:hover {
  background: rgba(40, 40, 48, 0.92);
  box-shadow:
    0 0 0 1px rgba(12, 140, 233, 0.5),
    0 10px 28px rgba(12, 140, 233, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .company-badge::before {
  color: #3db8ff;
}

/* Icon inside the badge */
.company-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 15px;
  min-width: 15px;
  width: auto;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.company-badge__icon svg,
.company-badge__icon img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Credgenics: dark square, tilted left */
.company-badge--credgenics {
  transform: rotate(-3deg);
}

.company-badge--credgenics .company-badge__icon {
  background: transparent;
}

/* Oronium: indigo square, tilted left slightly */
.company-badge--oronium {
  transform: rotate(-1.8deg);
}

.company-badge--oronium .company-badge__icon {
  background: transparent;
}

/* Grab: green square, tilted right */
.company-badge--grab {
  transform: rotate(2.4deg);
}

.company-badge--grab .company-badge__icon {
  background: transparent;
}

/* ══════════ FIGMA CANVAS GRAPHIC ══════════ */
.hero__graphic-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  perspective: 1200px;
  perspective-origin: center;
  overflow: visible;
  padding: 40px 20px;
}

.hero__graphic-col::before {
  content: "";
  position: absolute;
  inset: -10px 0;
  background-image: 
    linear-gradient(var(--border) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--border) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  background-position: center;
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 75%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 75%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.figma-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: #e5e5e5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin: 0 auto;
  font-family: var(--font-sans);
  user-select: none;
  /* 3D perspective rotation */
  transform: rotateY(-18deg) rotateX(12deg) rotateZ(-3deg) translateY(-10px);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.figma-canvas:hover {
  transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateY(0);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .figma-canvas {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .figma-canvas:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.figma-canvas__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-weight: 500;
  color: #333333;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

[data-theme="dark"] .figma-canvas__header {
  background: #2c2c2c;
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: #d1d1d1;
}

/* Left Tools Toolbar */
.figma-canvas__tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.figma-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  color: #555555;
  background: transparent;
  cursor: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

[data-theme="dark"] .figma-tool {
  color: #b0b0b0;
}

.figma-tool:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #111111;
}

[data-theme="dark"] .figma-tool:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.figma-tool.is-active {
  color: #18a0fb !important;
  background: rgba(24, 160, 251, 0.1) !important;
}

/* Header Title */
.figma-canvas__title {
  font-size: 11px;
  font-weight: 500;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Controls */
.figma-canvas__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Overlapping Avatars */
.figma-canvas__avatars {
  display: flex;
  align-items: center;
  margin-right: 4px;
}

.figma-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  margin-left: -5px;
  cursor: none !important;
  transition: border-color 0.4s var(--ease);
}

[data-theme="dark"] .figma-avatar {
  border-color: #2c2c2c;
}

.figma-avatar:first-child {
  margin-left: 0;
  z-index: 2;
}

.figma-avatar:nth-child(2) {
  z-index: 1;
}

.figma-avatar--ir {
  background: #a259ff; /* Figma purple */
}

.figma-avatar--go {
  background: #00b14f; /* Grab green */
}

/* Play/Present Button */
.figma-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  color: #555555;
  background: transparent;
  cursor: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

[data-theme="dark"] .figma-control-btn {
  color: #b0b0b0;
}

.figma-control-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #111111;
}

[data-theme="dark"] .figma-control-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Zoom Dropdown */
.figma-canvas__zoom {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #18a0fb;
  background: rgba(24, 160, 251, 0.08);
  cursor: none !important;
  transition: background 0.15s ease;
}

.figma-canvas__zoom:hover {
  background: rgba(24, 160, 251, 0.16);
}

/* Canvas Body */
.figma-canvas__body {
  position: relative;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Image Wrapper */
.figma-canvas__image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 6px;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
}

.figma-canvas__image-wrapper.is-zoomed {
  transform: scale(1.4);
}

/* Hero Subject Image */
.figma-canvas__image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  position: relative;
  z-index: 2;
  border-radius: 6px;
  filter: drop-shadow(0 2px 0 #fff)
          drop-shadow(2px 0 0 #fff)
          drop-shadow(-2px 0 0 #fff)
          drop-shadow(0 -2px 0 #fff)
          drop-shadow(1px 1px 0 #fff)
          drop-shadow(-1px 1px 0 #fff)
          drop-shadow(1px -1px 0 #fff)
          drop-shadow(-1px -1px 0 #fff);
}

[data-theme="dark"] .figma-canvas__image {
  filter: drop-shadow(0 2px 0 rgba(255,255,255,0.9))
          drop-shadow(2px 0 0 rgba(255,255,255,0.9))
          drop-shadow(-2px 0 0 rgba(255,255,255,0.9))
          drop-shadow(0 -2px 0 rgba(255,255,255,0.9))
          drop-shadow(1px 1px 0 rgba(255,255,255,0.9))
          drop-shadow(-1px 1px 0 rgba(255,255,255,0.9))
          drop-shadow(1px -1px 0 rgba(255,255,255,0.9))
          drop-shadow(-1px -1px 0 rgba(255,255,255,0.9));
}

/* Theme-adaptive interactive grid and neon orb backgrounds */
.figma-canvas__bg {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  z-index: 1;
  background-color: #f7f7f7;
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  transition: background-color 0.4s var(--ease);
}

[data-theme="dark"] .figma-canvas__bg {
  background-color: #121212;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.2px, transparent 1.2px);
}

.figma-canvas__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
  will-change: transform;
}

.figma-canvas__orb--1 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, #ff7262 0%, rgba(255, 114, 98, 0) 70%);
  top: 15%;
  left: 10%;
  animation: orbFloat1 8s infinite ease-in-out;
  mix-blend-mode: multiply;
}

.figma-canvas__orb--2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #a259ff 0%, rgba(162, 89, 255, 0) 70%);
  bottom: 15%;
  right: 10%;
  animation: orbFloat2 10s infinite ease-in-out;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .figma-canvas__orb {
  opacity: 0.45;
  mix-blend-mode: screen;
}

[data-theme="dark"] .figma-canvas__orb--1 {
  background: radial-gradient(circle, #ff3b30 0%, rgba(255, 59, 48, 0) 75%);
}

[data-theme="dark"] .figma-canvas__orb--2 {
  background: radial-gradient(circle, #00c7fc 0%, rgba(0, 199, 252, 0) 75%);
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -20px) scale(1.15); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-30px, 25px) scale(0.9); }
}

/* Floating Abstract Geometric Shapes */
.figma-shape {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.4s var(--ease);
}

.figma-shape--donut {
  width: 48px;
  height: 48px;
  top: 15%;
  left: 12%;
  color: rgba(162, 89, 255, 0.85);
  animation: shapeFloatRotate1 14s infinite ease-in-out;
  filter: drop-shadow(0 6px 15px rgba(162, 89, 255, 0.25));
  transform-origin: center;
}

.figma-shape--donut-progress {
  stroke-dasharray: 88;
  stroke-dashoffset: 22;
  transform-origin: center;
  animation: progressPulse 5s infinite ease-in-out;
}

@keyframes progressPulse {
  0%, 100% {
    stroke-dashoffset: 75;
  }
  50% {
    stroke-dashoffset: 15;
  }
}

.figma-shape--3d-dome {
  width: 72px;
  height: auto;
  opacity: 0.76;
  animation: shapeFloatRotate2 16s infinite ease-in-out;
  filter: hue-rotate(50deg) saturate(0.65) brightness(1.25) drop-shadow(0 8px 20px rgba(162, 89, 255, 0.12));
}

.figma-shape--3d-torus {
  width: 78px;
  height: auto;
  opacity: 0.78;
  animation: shapeFloatRotate3 13s infinite ease-in-out;
  filter: hue-rotate(110deg) saturate(0.65) brightness(1.25) drop-shadow(0 8px 22px rgba(255, 98, 140, 0.12));
}

.figma-shape--3d-icosahedron {
  width: 76px;
  height: auto;
  opacity: 0.76;
  animation: shapeFloatRotate1 15s infinite ease-in-out;
  filter: hue-rotate(190deg) saturate(0.65) brightness(1.25) drop-shadow(0 8px 20px rgba(241, 190, 80, 0.12));
}

.figma-shape--3d-cone {
  width: 68px;
  height: auto;
  opacity: 0.76;
  animation: shapeFloatRotate3 14s infinite ease-in-out -1.5s;
  filter: hue-rotate(-20deg) saturate(0.65) brightness(1.25) drop-shadow(0 8px 22px rgba(0, 199, 252, 0.12));
}

.figma-shape--3d-cylinder {
  width: 58px;
  height: auto;
  opacity: 0.78;
  animation: shapeFloatRotate2 14s infinite ease-in-out -2s;
  filter: hue-rotate(-90deg) saturate(0.65) brightness(1.25) drop-shadow(0 8px 20px rgba(10, 207, 131, 0.12));
}

.figma-shape--squiggle {
  width: 44px;
  height: 22px;
  color: rgba(255, 114, 98, 0.6);
  top: 45%;
  right: 8%;
  animation: shapeFloatRotate3 13s infinite ease-in-out -1.5s;
  filter: drop-shadow(0 4px 8px rgba(255, 114, 98, 0.15));
}

.figma-shape--plus {
  width: 12px;
  height: 12px;
  color: rgba(24, 160, 251, 0.45);
  animation: shapeTwinkleFloat 8s infinite ease-in-out;
  filter: drop-shadow(0 2px 5px rgba(24, 160, 251, 0.15));
}

.figma-shape--plus-1 {
  top: 8%;
  right: 28%;
  animation-duration: 9.5s;
}

.figma-shape--plus-2 {
  bottom: 28%;
  left: 24%;
  animation-duration: 8s;
  animation-delay: -2s;
}

.figma-shape--dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(162, 89, 255, 0.35);
  animation: shapeTwinkleFloat 7.5s infinite ease-in-out;
}

.figma-shape--dot-1 {
  top: 35%;
  left: 28%;
  animation-duration: 6s;
  animation-delay: -1s;
}

.figma-shape--dot-2 {
  bottom: 15%;
  right: 28%;
  animation-duration: 8.5s;
  animation-delay: -3.5s;
}

.figma-shape--bezier {
  width: 42px;
  height: 42px;
  top: 42%;
  right: 12%;
  color: rgba(24, 160, 251, 0.65);
  animation: shapeFloatRotate3 15s infinite ease-in-out -3s;
  filter: drop-shadow(0 4px 10px rgba(24, 160, 251, 0.2));
}

.figma-shape--triangle {
  width: 22px;
  height: 22px;
}

.figma-shape--triangle-green {
  top: 72%;
  left: 18%;
  color: rgba(10, 207, 131, 0.6);
  animation: shapeTwinkleFloat 9s infinite ease-in-out -1.5s;
  filter: drop-shadow(0 4px 8px rgba(10, 207, 131, 0.15));
}

.figma-shape--triangle-orange {
  top: 78%;
  right: 18%;
  color: rgba(255, 114, 98, 0.6);
  animation: shapeFloatRotate2 11s infinite ease-in-out -3s;
  filter: drop-shadow(0 4px 8px rgba(255, 114, 98, 0.15));
}

.figma-shape--triangle-blue {
  top: 26%;
  right: 32%;
  color: rgba(24, 160, 251, 0.55);
  animation: shapeFloatRotate3 13s infinite ease-in-out -5s;
  filter: drop-shadow(0 4px 8px rgba(24, 160, 251, 0.15));
}

@keyframes shapeTwinkleFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.25;
  }
  50% {
    transform: translate3d(7px, -9px, 0) scale(1.2);
    opacity: 0.85;
  }
}

[data-theme="dark"] .figma-shape--donut {
  border-color: rgba(162, 89, 255, 0.85);
  background: rgba(162, 89, 255, 0.15);
  filter: drop-shadow(0 6px 15px rgba(162, 89, 255, 0.45));
}
[data-theme="dark"] .figma-shape--3d-dome {
  filter: hue-rotate(50deg) saturate(0.8) brightness(1.15) drop-shadow(0 10px 25px rgba(162, 89, 255, 0.22));
}
[data-theme="dark"] .figma-shape--3d-torus {
  filter: hue-rotate(110deg) saturate(0.8) brightness(1.15) drop-shadow(0 10px 25px rgba(255, 98, 140, 0.22));
}
[data-theme="dark"] .figma-shape--3d-icosahedron {
  filter: hue-rotate(190deg) saturate(0.8) brightness(1.15) drop-shadow(0 10px 25px rgba(241, 190, 80, 0.22));
}
[data-theme="dark"] .figma-shape--3d-cone {
  filter: hue-rotate(-20deg) saturate(0.8) brightness(1.15) drop-shadow(0 10px 25px rgba(0, 199, 252, 0.22));
}
[data-theme="dark"] .figma-shape--3d-cylinder {
  filter: hue-rotate(-90deg) saturate(0.8) brightness(1.15) drop-shadow(0 10px 25px rgba(10, 207, 131, 0.22));
}
[data-theme="dark"] .figma-shape--squiggle {
  color: rgba(255, 114, 98, 0.85);
  filter: drop-shadow(0 4px 15px rgba(255, 114, 98, 0.4));
}
[data-theme="dark"] .figma-shape--plus {
  color: rgba(0, 199, 252, 0.7);
}
[data-theme="dark"] .figma-shape--dot {
  background: rgba(162, 89, 255, 0.55);
}
[data-theme="dark"] .figma-shape--bezier {
  color: rgba(0, 199, 252, 0.85);
  filter: drop-shadow(0 4px 15px rgba(0, 199, 252, 0.4));
}
[data-theme="dark"] .figma-shape--triangle-green {
  color: rgba(10, 207, 131, 0.85);
  filter: drop-shadow(0 4px 15px rgba(10, 207, 131, 0.35));
}
[data-theme="dark"] .figma-shape--triangle-orange {
  color: rgba(255, 114, 98, 0.85);
  filter: drop-shadow(0 4px 15px rgba(255, 114, 98, 0.35));
}
[data-theme="dark"] .figma-shape--triangle-blue {
  color: rgba(0, 199, 252, 0.8);
  filter: drop-shadow(0 4px 15px rgba(0, 199, 252, 0.35));
}

@keyframes shapeFloatRotate1 {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(15px, -20px, 0) rotate(180deg) scale(1.08);
  }
}

@keyframes shapeFloatRotate2 {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(45deg) scale(1);
  }
  50% {
    transform: translate3d(-18px, 15px, 0) rotate(-135deg) scale(0.92);
  }
}

@keyframes shapeFloatRotate3 {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(12px, 18px, 0) rotate(90deg) scale(1.1);
  }
}

@keyframes shapeMorphFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  33% {
    transform: translate3d(18px, -15px, 0) rotate(120deg);
    border-radius: 40% 60% 50% 50% / 50% 60% 40% 50%;
  }
  66% {
    transform: translate3d(-12px, 20px, 0) rotate(240deg);
    border-radius: 50% 50% 60% 40% / 60% 40% 60% 50%;
  }
}

.figma-canvas__flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: 6px;
  animation: figmaFlash 4s infinite;
}

@keyframes figmaFlash {
  0%, 49% { opacity: 0; }
  50% { opacity: 0.65; }
  51% { opacity: 0.65; }
  52%, 100% { opacity: 0; }
}

.figma-canvas__polaroid {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 58px;
  height: 72px;
  background: #ffffff;
  padding: 4px 4px 10px 4px;
  border-radius: 3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: none;
  z-index: 25;
  transform-origin: bottom left;
  animation: polaroidPopup 4s infinite;
}

.figma-canvas__polaroid-img {
  width: 100%;
  height: 48px;
  background: #fed7aa;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.figma-canvas__polaroid-caption {
  font-family: 'Kalam', 'Caveat', cursive, sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-top: 3px;
}

@keyframes polaroidPopup {
  0%, 50% {
    opacity: 0;
    transform: scale(0.6) translateY(24px) rotate(-18deg);
  }
  53% {
    opacity: 1;
    transform: scale(1.1) translateY(-2px) rotate(-6deg);
  }
  54%, 90% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(-8deg);
  }
  96%, 100% {
    opacity: 0;
    transform: scale(0.6) translateY(24px) rotate(-18deg);
  }
}

.figma-canvas__caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playpen Sans', 'Patrick Hand', 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #000000; /* Comic text in black */
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  transition: opacity 0.3s ease, color 0.4s var(--ease);
}

[data-theme="dark"] .figma-canvas__caption {
  color: #ffffff; /* Contrast correction for dark mode */
}

.figma-canvas__caption-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.figma-canvas__caption-icon--focus {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: focusPulse 1s infinite alternate;
}

@keyframes focusPulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 1; }
}

.figma-canvas__caption-icon--sparkle {
  font-size: 13px;
  animation: sparkleRotate 2s infinite linear;
}

@keyframes sparkleRotate {
  0% { transform: rotate(0deg) scale(0.9); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(0.9); }
}

.figma-canvas__caption--smile {
  animation: captionSmile 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.figma-canvas__caption--beautiful {
  animation: captionBeautiful 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes captionSmile {
  0% { opacity: 0; transform: translate(-50%, 15px) scale(0.9) rotate(-2.5deg); }
  6%, 42% { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(-2.5deg); }
  48%, 100% { opacity: 0; transform: translate(-50%, -15px) scale(0.9) rotate(-2.5deg); }
}

@keyframes captionBeautiful {
  0%, 50% { opacity: 0; transform: translate(-50%, 15px) scale(0.9) rotate(1.5deg); }
  54%, 90% { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(1.5deg); }
  96%, 100% { opacity: 0; transform: translate(-50%, -15px) scale(0.9) rotate(1.5deg); }
}

/* Figma selection frame overlay */
.figma-frame {
  position: absolute;
  border: 1.5px solid transparent;
  pointer-events: auto;
  box-sizing: border-box;
  z-index: 5;
  transition: border-color 0.15s ease;
}

.figma-frame:hover {
  border-color: #18a0fb;
}

.figma-frame__label {
  position: absolute;
  left: -1px;
  top: -16px;
  background: #18a0fb;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 2px 2px 2px 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.figma-frame:hover .figma-frame__label {
  opacity: 1;
}

.figma-frame.is-selected {
  border-color: transparent;
  border-width: 1.5px;
  z-index: 10;
}

.figma-frame.is-selected .figma-frame__label,
.figma-frame.is-selected .figma-frame__handle {
  opacity: 0;
}

/* Figma Handles */
.figma-frame__handle {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border: 1.5px solid #18a0fb;
  position: absolute;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  z-index: 11;
  transition: opacity 0.15s ease;
}



.figma-frame__handle.tl { top: -3px; left: -3px; cursor: nwse-resize; }
.figma-frame__handle.tr { top: -3px; right: -3px; cursor: nesw-resize; }
.figma-frame__handle.bl { bottom: -3px; left: -3px; cursor: nesw-resize; }
.figma-frame__handle.br { bottom: -3px; right: -3px; cursor: nwse-resize; }

/* Interactive Figma Mini-Tools styles */
.figma-canvas__body.cursor-hand {
  cursor: grab !important;
}
.figma-canvas__body.cursor-hand:active {
  cursor: grabbing !important;
}
.figma-canvas__body.cursor-text {
  cursor: text !important;
}
.figma-canvas__body.cursor-crosshair {
  cursor: crosshair !important;
}

.figma-drawn-rect {
  position: absolute;
  border: 1.5px solid #18a0fb;
  background: rgba(24, 160, 251, 0.08);
  box-sizing: border-box;
  pointer-events: auto;
  z-index: 4;
}

.figma-drawn-rect__dims {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #18a0fb;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.figma-drawn-text-input {
  position: absolute;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: #18a0fb;
  border: 1px dashed #18a0fb;
  background: transparent;
  outline: none;
  padding: 2px 4px;
  border-radius: 2px;
  z-index: 10;
  min-width: 60px;
}

.figma-drawn-text-label {
  position: absolute;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: #18a0fb;
  background: transparent;
  white-space: nowrap;
  pointer-events: auto;
  z-index: 9;
}

/* Disable frame hovers and clicks during autopilot demo */
.figma-canvas--autopilot .figma-frame {
  pointer-events: none !important;
  border-color: transparent !important;
}
.figma-canvas--autopilot .figma-frame .figma-frame__label,
.figma-canvas--autopilot .figma-frame .figma-frame__handle {
  opacity: 0 !important;
}

/* Collaborator Cursor */
.figma-collaborator-cursor {
  position: absolute;
  z-index: 50;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), top 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: left, top;
}

.figma-collaborator-cursor__arrow {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

.figma-collaborator-cursor__label {
  background: #e23c44;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  border-top-left-radius: 0;
  margin-top: 2px;
  margin-left: 5px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 1.5px solid #ffffff;
}

/* Page highlight animations */
@keyframes navFlash {
  0% {
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 0 0 0px var(--accent-glow);
  }
  30% {
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 0 0 10px var(--accent-glow);
    background: var(--accent-glow);
  }
  100% {
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 0 0 0px var(--accent-glow);
  }
}

.nav-flash .nav__pill {
  animation: navFlash 1s ease-out;
}

@keyframes sectionFlash {
  0% {
    outline: 2px solid transparent;
    background: transparent;
  }
  15% {
    outline: 2px solid var(--accent);
    background: var(--accent-glow);
  }
  100% {
    outline: 2px solid transparent;
    background: transparent;
  }
}
.section-flash {
  position: relative;
}

.section-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  animation: sectionFlash 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ══════════ ABOUT TABS & STORY BADGES ══════════ */
.about__header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.about__tabs {
  display: flex;
  gap: 4px;
  background: #f1f3f5;
  padding: 5px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.about__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: #707070;
  cursor: pointer;
  transition: all 0.2s ease;
}

.about__tab svg {
  color: currentColor;
  opacity: 0.85;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.about__tab:hover {
  color: #0d0d0d;
}

.about__tab.is-active {
  background: #ffffff;
  color: #0d0d0d;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  font-weight: 500;
}

.about__tab.is-active svg {
  opacity: 1;
  stroke-width: 2.2;
}

[data-theme="dark"] .about__tabs {
  background: #151515;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .about__tab {
  color: #888888;
}

[data-theme="dark"] .about__tab:hover {
  color: #f0f0eb;
}

[data-theme="dark"] .about__tab.is-active {
  background: #252525;
  color: #f0f0eb;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .about__tab.is-active svg {
  color: #f0f0eb;
}

.about__tab-content {
  display: none;
}

.about__tab-content.is-active {
  display: block !important;
  animation: tabFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (max-width: 640px) {
  .about__header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
  }

  .about__tabs {
    width: 100%;
    box-sizing: border-box;
  }

  .about__tab {
    flex: 1;
    justify-content: center;
    padding: 9px 14px;
    font-size: 0.88rem;
    gap: 6px;
  }
}

.about__content-box {
  min-height: 250px;
}

/* Story Tab - Paragraph & Emojis Badges styling */
.story-paragraph {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 24px;
}

.story-inline-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  transition: all 0.25s var(--ease);
}

.story-inline-link:hover {
  color: var(--accent);
  border-bottom-color: transparent;
  background: var(--accent-glow);
}

.story-emoji-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
  margin: 0 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: emojiFloat 3s ease-in-out infinite;
}

.story-emoji-badge:hover {
  transform: scale(1.3) rotate(8deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  animation-play-state: paused;
  cursor: pointer;
}

.story-emoji-badge--car {
  background: #fee2e2;
  border-color: #fecaca;
}

.story-emoji-badge--camera {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.story-emoji-badge--virus {
  background: #dcfce7;
  border-color: #bbf7d0;
}

[data-theme="dark"] .story-emoji-badge {
  background: #1e293b;
  border-color: #334155;
  box-shadow: none;
}

[data-theme="dark"] .story-emoji-badge--car {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.25);
}

[data-theme="dark"] .story-emoji-badge--virus {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.25);
}

@keyframes emojiFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.story-circle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  vertical-align: middle;
  margin: 0 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: emojiFloat 3.5s ease-in-out infinite;
}

.story-circle-badge:hover {
  transform: scale(1.35) rotate(-10deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  animation-play-state: paused;
  cursor: pointer;
}

.story-circle-badge--heart-eye {
  background: #ffedd5;
}

.story-circle-badge--heart {
  background: #ffe4e6;
}

[data-theme="dark"] .story-circle-badge--heart-eye {
  background: rgba(253, 186, 116, 0.2);
}

[data-theme="dark"] .story-circle-badge--heart {
  background: rgba(244, 63, 94, 0.2);
}

.story-badge-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 2px;
  vertical-align: middle;
  cursor: help;
  line-height: 1;
}

.story-highlight {
  display: inline-block;
  background: #fdf087;
  color: #1c1917;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
  border: 1px solid #fde047;
  font-size: 15px;
  vertical-align: middle;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.2s ease;
}

.story-highlight:hover {
  transform: translateY(-2px) scale(1.04);
  background-color: #fef08a;
  box-shadow: 0 4px 12px rgba(253, 224, 71, 0.4);
  cursor: pointer;
}

[data-theme="dark"] .story-highlight {
  background: rgba(253, 240, 135, 0.15);
  color: #fdf087;
  border-color: rgba(253, 240, 135, 0.3);
}

[data-theme="dark"] .story-highlight:hover {
  background: rgba(253, 240, 135, 0.25);
  box-shadow: 0 4px 15px rgba(253, 240, 135, 0.15);
  border-color: rgba(253, 240, 135, 0.5);
}

/* Keycap button */
.story-chip-freeze {
  display: inline-block;
  background: #ffffff;
  color: #1e293b;
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), inset 0 -2px 0 #e2e8f0;
  vertical-align: middle;
  margin: 0 2px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.story-chip-freeze:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08), inset 0 -2px 0 #cbd5e1;
  cursor: pointer;
}

.story-chip-freeze:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .story-chip-freeze {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #475569;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 -2px 0 #334155;
}

[data-theme="dark"] .story-chip-freeze:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 -2px 0 #334155;
}

[data-theme="dark"] .story-chip-freeze:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Company Logos & Yellow Badges in Paragraph 3 */
.about-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #000000;
  color: #ffffff;
  vertical-align: middle;
  margin: 0 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 4px;
}

.about-logo-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-logo-badge--district {
  background: #5f259f;
}

.about-text-badge {
  display: inline-block;
  background: #fdf087;
  color: #1c1917;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
  border: 1px solid #fde047;
  font-size: 15px;
  text-decoration: none;
  vertical-align: middle;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-text-badge:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(253, 224, 71, 0.25);
}

[data-theme="dark"] .about-text-badge {
  background: rgba(253, 240, 135, 0.15);
  color: #fdf087;
  border-color: rgba(253, 240, 135, 0.3);
}

[data-theme="dark"] .about-text-badge:hover {
  box-shadow: 0 4px 12px rgba(253, 224, 71, 0.12);
}

/* Red grid badge */
.about-grid-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #e11d48;
  vertical-align: middle;
  margin: 0 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 5px;
}

.about-grid-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.story-chip-dots {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 4px;
}

/* Viewfinder Capture chip */
.story-chip-capture {
  display: inline-block;
  background: #f8fafc;
  color: #0f172a;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border: 1px dashed #94a3b8;
  position: relative;
  vertical-align: middle;
  margin: 0 2px;
  transition: all 0.3s var(--ease);
}

.story-chip-capture:hover {
  transform: scale(1.06);
  border-style: solid;
  border-color: #3b82f6;
  background: #eff6ff;
  color: #2563eb;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .story-chip-capture {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #475569;
}

[data-theme="dark"] .story-chip-capture:hover {
  background: #1e293b;
  border-color: #3b82f6;
  color: #60a5fa;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

/* Arrow indicator shift animation */
@keyframes arrowBounceHorizontal {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.story-arrow-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  color: var(--text-muted);
  vertical-align: middle;
  transition: all 0.2s var(--ease);
}

.story-arrow-indicator:hover {
  animation: arrowBounceHorizontal 0.8s ease-in-out infinite;
  color: var(--text);
  cursor: pointer;
}

/* Monospace tech code tag */
.story-code-tag {
  display: inline-block;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13.5px;
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 600;
  vertical-align: middle;
  margin: 0 2px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-code-tag:hover {
  transform: translateY(-2px) rotate(-4deg) scale(1.1);
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .story-code-tag {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
}

[data-theme="dark"] .story-code-tag:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

/* Interactive gradient pill for product design */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.story-pill-design {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1, #3b82f6, #6366f1);
  background-size: 200% 200%;
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
  vertical-align: middle;
  margin: 0 2px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: gradientShift 4s ease infinite;
}

.story-pill-design:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  cursor: pointer;
}

/* Colored category tags */
.story-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  vertical-align: middle;
  margin: 0 2px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-tag:hover {
  transform: translateY(-3px) scale(1.08) rotate(2deg);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.story-tag--aesthetics {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.story-tag--aesthetics:hover {
  border-color: #f472b6;
  box-shadow: 0 4px 10px rgba(219, 39, 119, 0.15);
}

[data-theme="dark"] .story-tag--aesthetics {
  background: rgba(219, 39, 119, 0.15);
  color: #fbcfe8;
  border-color: rgba(219, 39, 119, 0.3);
}

.story-tag--tech {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.story-tag--tech:hover {
  border-color: #60a5fa;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .story-tag--tech {
  background: rgba(37, 99, 235, 0.15);
  color: #bfdbfe;
  border-color: rgba(37, 99, 235, 0.3);
}

.story-tag--problem {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.story-tag--problem:hover {
  border-color: #fbbf24;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
}

[data-theme="dark"] .story-tag--problem {
  background: rgba(217, 119, 6, 0.15);
  color: #fde68a;
  border-color: rgba(217, 119, 6, 0.3);
}

.story-circle-badge--home {
  background: #ecfdf5;
}

[data-theme="dark"] .story-circle-badge--home {
  background: rgba(16, 185, 129, 0.2);
}



/* Timeline Redesign Styles */
.timeline-intro {
  margin-bottom: 40px;
}

.timeline-intro__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.timeline-intro__desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 720px;
}

/* Vertical Node-Line Timeline Styles */
.timeline-intro {
  margin-bottom: 48px;
}

.timeline-intro__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.timeline-intro__desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
}

.vertical-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  max-width: 800px;
  margin: 0;
}

/* Vertical track line */
.vertical-timeline::before {
  content: "";
  position: absolute;
  left: 93px; /* Aligned with center of the node circle (54px year + 24px gap + 16px half-node-width - 1px half-line-width) */
  top: 12px;
  bottom: 12px;
  width: 2px;
  background-color: var(--border-strong);
}

.vertical-timeline__item {
  position: relative;
  display: flex;
  margin-bottom: 40px;
  gap: 24px;
}

.vertical-timeline__item:last-child {
  margin-bottom: 0;
}

.vertical-timeline__year-col {
  width: 54px;
  text-align: right;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding-top: 4px;
}

.vertical-timeline__node-col {
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.vertical-timeline__node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #94a3b8; /* Cool gray circle node */
  border: 2px solid var(--bg); /* Mask to overlay track line */
  margin-top: 8px;
  transition: all 0.3s var(--ease);
}

/* Active current role pulse indicator */
@keyframes nodePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(93, 95, 239, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(93, 95, 239, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(93, 95, 239, 0);
  }
}

@keyframes nodePulseDark {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 255, 107, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(200, 255, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 255, 107, 0);
  }
}

.vertical-timeline__item--current .vertical-timeline__node {
  background-color: #5d5fef;
  animation: nodePulse 2s infinite;
}

[data-theme="dark"] .vertical-timeline__item--current .vertical-timeline__node {
  background-color: var(--accent);
  animation: nodePulseDark 2s infinite;
}

/* Hover effects for interactive premium feel */
.vertical-timeline__item:hover .vertical-timeline__node {
  background-color: #5d5fef;
  transform: scale(1.3);
}

[data-theme="dark"] .vertical-timeline__item:hover .vertical-timeline__node {
  background-color: var(--accent);
}

.vertical-timeline__content-col {
  flex: 1;
  padding-top: 2px;
}

.vertical-timeline__title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.vertical-timeline__item:hover .vertical-timeline__title {
  color: #5d5fef;
}

[data-theme="dark"] .vertical-timeline__item:hover .vertical-timeline__title {
  color: var(--accent);
}

.vertical-timeline__date {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.vertical-timeline__desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .vertical-timeline::before {
    left: 59px; /* Aligned with center of the node circle (38px year + 12px gap + 10px half-node-width - 1px half-line-width) */
  }

  .vertical-timeline__year-col {
    width: 38px;
    font-size: 13px;
  }

  .vertical-timeline__node-col {
    width: 20px;
  }

  .vertical-timeline__item {
    gap: 12px;
  }

  .vertical-timeline__title {
    font-size: 16px;
  }

  .vertical-timeline__desc {
    font-size: 13.5px;
  }
}

/* ══════════ GALAXY INTERLUDE SECTION ══════════ */
.galaxy-section {
  position: relative;
  background: transparent;          /* ← fixed #space-overlay provides the dark bg */
  min-height: 120vh;
  padding: 240px 0;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  cursor: crosshair;
  z-index: 3;  /* same stacking level as other sections */
}

/* Full-page dark takeover when galaxy is in view */
body.galaxy-bg-active {
  --bg:           #0c0c0c;
  --bg-card:      #151515;
  --bg-elevated:  #1c1c1c;
  --text:         #f0f0eb;
  --text-muted:   #888;
  --text-subtle:  #555;
  --border:       rgba(255,255,255,0.07);
  --border-strong:rgba(255,255,255,0.12);

  --accent:       #c8ff6b;
  --accent-hover: #d4ff85;
  --accent-glow:  rgba(200,255,107,0.15);

  --badge-bg:     rgba(255,255,255,0.06);
  --badge-text:   #f0f0eb;
  --badge-border: rgba(255,255,255,0.1);

  --tag-bg:       rgba(255,255,255,0.06);
  --tag-text:     #bbb;

  --nav-bg:       rgba(12,12,12,0.88);
  --footer-bg:    #080808;
  --footer-text:  #888;

  --marquee-bg:   #c8ff6b;
  --marquee-text: #0c0c0c;

  --scroll-thumb: #333;
}

body.galaxy-bg-active .nav__pill {
  background: rgba(3, 7, 18, 0.88) !important;
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6) !important;
}

body.galaxy-bg-active .nav__clock-badge {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.galaxy-bg-active .nav__link {
  color: rgba(255, 255, 255, 0.55) !important;
}

body.galaxy-bg-active .nav__link:hover,
body.galaxy-bg-active .nav__link.nav__link--active {
  color: #ffffff !important;
}

body.galaxy-bg-active .nav__cta {
  background: rgba(200,255,107,0.12) !important;
  border-color: rgba(200,255,107,0.35) !important;
  color: #c8ff6b !important;
}




/* Content layout */
.galaxy-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 860px;
}

.galaxy-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 28px;
}

/* Big headline */
.galaxy-headline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 36px;
}

.galaxy-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
}

/* Animate lines only when section enters viewport */
.galaxy-section.is-visible .galaxy-line {
  animation: galaxyLineIn 0.9s var(--ease) forwards;
}

.galaxy-line--1 { color: rgba(255,255,255,0.5); font-weight: 400; font-size: 0.68em; }
.galaxy-line--2 { /* bright main word */ }
.galaxy-line--3 { color: rgba(255,255,255,0.5); font-weight: 400; font-size: 0.68em; }

.galaxy-section.is-visible .galaxy-line--1 { animation-delay: 0.1s; }
.galaxy-section.is-visible .galaxy-line--2 { animation-delay: 0.28s; }
.galaxy-section.is-visible .galaxy-line--3 { animation-delay: 0.46s; }

@keyframes galaxyLineIn {
  to { opacity: 1; transform: translateY(0); }
}

.galaxy-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #c8ff6b;
  letter-spacing: 0;
}

.galaxy-serif span {
  display: inline-block;
  transform: translateY(0) scale(1) rotate(0deg);
  filter: blur(0px);
  opacity: 1;
  transition: 
    opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.8s var(--ease);
  transition-delay: 0.1s;
}

.galaxy-serif span:hover {
  opacity: 0;
  transform: translateY(-16px) scale(0.5) rotate(12deg);
  filter: blur(4px);
  transition: 
    opacity 0.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.15s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.15s ease-out;
  transition-delay: 0s;
}

/* Animated dot cluster */
.galaxy-dot-cluster {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  margin-left: 12px;
}

.galaxy-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8ff6b;
  animation: galaxyDotPulse 2s ease-in-out infinite;
}

.galaxy-dot:nth-child(2) { animation-delay: 0.25s; opacity: 0.6; width: 6px; height: 6px; }
.galaxy-dot:nth-child(3) { animation-delay: 0.5s; opacity: 0.3; width: 4px; height: 4px; }

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

/* Body paragraph */
.galaxy-body {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  max-width: 620px;
  margin-bottom: 48px;
}

.galaxy-highlight {
  color: #ffffff;
  font-weight: 600;
  position: relative;
  display: inline-block;
  cursor: default;
}

.galaxy-highlight::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: #c8ff6b;
  transition: width 0.4s var(--ease);
}

.galaxy-highlight:hover::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .galaxy-section { padding: 160px 0; }
}

@media (max-width: 480px) {
  .galaxy-headline { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .galaxy-body { font-size: 14.5px; }
}

/* Galaxy content full-width within flex parent */
.galaxy-section > .galaxy-content {
  width: 100%;
}

/* Scroll hint */
.galaxy-scroll-hint {
  position: absolute;
  bottom: 36px;
  right: 5vw;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: galaxyScrollBounce 2.4s ease-in-out infinite;
}

.galaxy-scroll-hint__line {
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.15), transparent);
  transform-origin: left;
  animation: galaxyScrollLine 2.4s ease-in-out infinite;
}

@keyframes galaxyScrollBounce {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 0.9; transform: translateX(6px); }
}

@keyframes galaxyScrollLine {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.4); }
}

/* Click hint */
.galaxy-click-hint {
  position: absolute;
  bottom: 36px;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.galaxy-click-hint.is-hidden {
  opacity: 0;
}

/* ══════════ STORY FOOTER (MINIMAL) ══════════ */

.story-footer-minimal {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-strong);
}

/* Minimal Stats */
.story-stats-minimal {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.story-stat-item {
  flex: 1;
  min-width: 160px;
}

.story-stat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  transition: transform 0.3s var(--ease);
}

[data-theme="light"] .story-stat-num {
  color: var(--text);
}

.story-stat-item:hover .story-stat-num {
  transform: translateY(-2px);
  color: var(--accent);
}

.story-stat-desc {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* Minimal Connect Row */
.story-connect-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.story-connect-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.story-minimal-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.story-minimal-link svg {
  color: var(--text-subtle);
  transition: color 0.25s var(--ease);
}

.story-minimal-link:hover {
  color: var(--text);
}

/* Interactive Contact Hover Transition */
.story-contact-link-interactive {
  position: relative;
  overflow: hidden;
  height: 24px;
  display: inline-flex;
  align-items: center;
}

.contact-icon-wrapper {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 2px;
}

.contact-icon {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}

.contact-icon--default {
  opacity: 1;
  transform: scale(1);
}

.contact-icon--hover {
  opacity: 0;
  transform: scale(0.6) rotate(-10deg);
}

.contact-text-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  height: 1.4em;
  overflow: hidden;
}

.contact-text {
  display: block;
  line-height: 1.4em;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.contact-text--default {
  transform: translateY(0);
  opacity: 1;
}

.contact-text--hover {
  transform: translateY(0);
  opacity: 0;
  position: absolute;
  left: 0;
  top: 100%;
  white-space: nowrap;
}

/* HOVER INTERACTIONS */
.story-contact-link-interactive:hover .contact-icon--default {
  opacity: 0;
  transform: scale(0.6) rotate(15deg);
}

.story-contact-link-interactive:hover .contact-icon--hover {
  opacity: 1;
  transform: scale(1) rotate(0);
  color: var(--accent);
}

.story-contact-link-interactive:hover .contact-text--default {
  transform: translateY(-100%);
  opacity: 0;
}

.story-contact-link-interactive:hover .contact-text--hover {
  transform: translateY(-100%);
  opacity: 1;
  color: var(--accent);
}

.contact-text--hover .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.story-contact-link-interactive:hover .contact-text--hover .arrow {
  transform: translateX(4px);
}

.story-minimal-link:hover svg {
  color: var(--accent);
}

[data-theme="light"] .story-minimal-link:hover svg {
  color: var(--text);
}

.story-connect-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.story-minimal-socials {
  display: flex;
  gap: 16px;
}

.story-minimal-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0.65;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease-spring);
  padding: 6px;
}

.story-minimal-social-icon:hover {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-2.5px) scale(1.18);
}

[data-theme="light"] .story-minimal-social-icon:hover {
  color: var(--text);
}

.story-minimal-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--border-strong);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.story-minimal-resume-btn svg {
  transition: transform 0.25s var(--ease-spring);
}

.story-minimal-resume-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="light"] .story-minimal-resume-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.story-minimal-resume-btn:hover svg {
  transform: translateY(2px);
}

/* Media Queries for Minimal Story Footer */
@media (max-width: 768px) {
  .story-stats-minimal {
    gap: 24px;
  }
  .story-connect-minimal {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .story-connect-links {
    gap: 20px;
    width: 100%;
  }
  .story-connect-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .story-stats-minimal {
    flex-direction: column;
    gap: 20px;
  }
  .story-connect-links {
    flex-direction: column;
    gap: 16px;
  }
  .story-connect-actions {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }
  .story-minimal-socials {
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
  }
}

/* ══════════ PAGE PRELOADER ══════════ */
html.preloader-no-scroll,
body.preloader-no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.85, 0, 0.15, 1), transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), visibility 0.8s;
}

.preloader.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100vh);
}

.preloader__grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  pointer-events: none;
  opacity: 0.6;
}

.preloader__grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, var(--bg) 80%);
  pointer-events: none;
}

.preloader__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  max-width: 500px;
  width: 100%;
}

.preloader__subtitle {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.85;
}

.preloader__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.preloader__status {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.preloader__progress-track {
  width: 220px;
  height: 3px;
  background-color: var(--border-strong);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.preloader__progress-bar {
  width: 0%;
  height: 100%;
  background-color: var(--text);
  transition: width 0.1s cubic-bezier(0.1, 0.8, 0.25, 1);
}

[data-theme="dark"] .preloader__progress-bar {
  background-color: var(--accent);
}

.preloader__percent {
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  color: var(--text-muted);
  font-weight: 400;
}

/* ══════════ BLOG ══════════ */
.blog {
  background: transparent;
}

.blog__feed {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.blog-item {
  display: grid;
  grid-template-columns: 100px 1fr 200px;
  gap: 32px;
  align-items: baseline;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.blog-item__date {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-subtle);
}

.blog-item__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-item__title {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.blog-item__link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
  display: inline-block;
}

.blog-item__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-item__link:hover {
  color: var(--accent);
}

.blog-item__link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.blog-item__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 600px;
}

.blog-item__tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 6px 14px;
  border-radius: 100px;
  width: max-content;
  justify-self: end;
  align-self: center;
  border: 1px solid var(--border);
}

/* Responsive Blog */
@media (max-width: 768px) {
  .blog-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  .blog-item__tag {
    justify-self: start;
    align-self: start;
    margin-top: 8px;
  }
}

/* Blog Pagination */
.blog__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
}

.pagination-arrow {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.pagination-arrow:hover:not(:disabled) {
  background: var(--badge-bg);
  color: var(--accent);
}

.pagination-arrow:disabled {
  color: var(--text-subtle);
  cursor: not-allowed;
  opacity: 0.35;
}

.pagination-info {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}



.timeline-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  min-width: 18px;
  width: auto;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  vertical-align: middle;
  margin: 0 4px;
  flex-shrink: 0;
}

.timeline-logo svg,
.timeline-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.timeline-logo--credgenics {
  background: transparent;
}

.timeline-logo--oronium {
  background: transparent;
}

.timeline-logo--vonnue {
  background: transparent;
}

.timeline-logo--kerala {
  background: transparent;
}

.timeline-logo--shutterup {
  background: #f43f5e;
  color: #ffffff;
}

.timeline-logo--stmarys {
  background: #059669;
  color: #ffffff;
}

/* Company Badges Shimmer Animation */
.company-badge__shimmer-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  border-radius: 2px;
}

.company-badge__shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%) skewX(-15deg);
  animation: companyShimmer 4.5s infinite ease-in-out;
}

[data-theme="dark"] .company-badge__shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

@keyframes companyShimmer {
  0% {
    transform: translateX(-105%) skewX(-15deg);
  }
  30% {
    transform: translateX(105%) skewX(-15deg);
  }
  100% {
    transform: translateX(105%) skewX(-15deg);
  }
}

/* Mobile responsive override: force contact link to always show Mail Me */
@media (max-width: 768px) {
  .story-contact-link-interactive .contact-icon--default {
    opacity: 0 !important;
    transform: scale(0.6) rotate(15deg) !important;
  }
  .story-contact-link-interactive .contact-icon--hover {
    opacity: 1 !important;
    transform: scale(1) rotate(0) !important;
    color: var(--accent) !important;
  }
  
  .story-contact-link-interactive .contact-text--default {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
  }
  .story-contact-link-interactive .contact-text--hover {
    transform: translateY(-100%) !important;
    opacity: 1 !important;
    color: var(--accent) !important;
  }
  
  .story-contact-link-interactive .contact-text--hover .arrow {
    transform: translateX(4px) !important;
  }
}

/* ══════════ TESTIMONIALS SECTION (HORIZONTAL PREMIUM SCROLL) ══════════ */
.testimonials {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.testimonials__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.testimonials__viewport-container {
  position: relative;
  width: 100%;
  /* Modern CSS gradient mask to fade testimonials at the right edge without absolute overlays */
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

/* Horizontal Scroll Container */
.testimonials__viewport {
  display: flex;
  gap: 0; /* use padding on cards for spacing around separators */
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 12px;
  width: 100%;
}

.testimonials__viewport::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

/* 2.1 visible configuration: each card is exactly 46% of the viewport width */
.testimonial-card-minimal {
  position: relative;
  flex: 0 0 46%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 48px; /* horizontal spacing around dividers */
  transition: transform 0.3s ease;
}

/* Vertically centered, reduced height separator line */
.testimonial-card-minimal::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 55%; /* reduced separator height */
  background-color: var(--border);
}

.testimonial-card-minimal:first-child::before {
  display: none; /* remove separator on first item */
}

.testimonial-card-minimal:first-child {
  padding-left: 0;
}

.testimonial-card-minimal__quote {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-muted); /* muted base color */
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.testimonial-card-minimal__quote strong {
  font-weight: inherit; /* same font weight as parent body quote */
  color: var(--text); /* high contrast highlight */
  background-image: linear-gradient(var(--testimonial-green), var(--testimonial-green));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1.5px; /* initial width 0%, height 1.5px */
  transition: background-size 0.35s var(--ease), color 0.3s ease;
  padding-bottom: 2px;
}

/* Hover/Active highlight: text transitions color and underline draws in smoothly */
.testimonial-card-minimal:hover .testimonial-card-minimal__quote strong,
.testimonial-card-minimal.is-active-hover .testimonial-card-minimal__quote strong {
  color: var(--testimonial-green);
  background-size: 100% 1.5px; /* expands to full width */
}

.testimonial-card-minimal__author {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  height: 20px; /* bounds height for transition */
  line-height: 20px;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.author-text-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  height: 20px;
  overflow: hidden;
}

.author-text {
  display: block;
  line-height: 20px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.author-text--default {
  transform: translateY(0);
  opacity: 1;
}

.author-text--hover {
  transform: translateY(0);
  opacity: 0;
  position: absolute;
  left: 0;
  top: 100%;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hover transitions on the author link itself */
.testimonial-card-minimal__author:hover {
  color: var(--testimonial-green);
}

.testimonial-card-minimal__author:hover .author-text--default {
  transform: translateY(-100%);
  opacity: 0;
}

.testimonial-card-minimal__author:hover .author-text--hover {
  transform: translateY(-100%);
  opacity: 1;
  color: var(--testimonial-green);
}

.author-text--hover .linkedin-icon {
  flex-shrink: 0;
  display: inline-block;
}

.author-text--hover .arrow-icon {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.testimonial-card-minimal__author:hover .author-text--hover .arrow-icon {
  transform: translate(2px, -2px);
}

/* Testimonial Carousel End Summary Card Styles */
.testimonial-card-minimal--summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 12px 48px;
  position: relative;
  transition: transform 0.4s var(--ease);
}

.summary-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
}

.testimonial-summary-stat {
  font-family: var(--font-sans);
  font-size: 5rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  /* Premium linear text gradient from high contrast to subtle */
  background: linear-gradient(135deg, var(--text) 40%, var(--text-subtle) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.4s var(--ease), -webkit-text-fill-color 0.4s var(--ease);
}

[data-theme="dark"] .testimonial-summary-stat {
  background: linear-gradient(135deg, var(--accent) 30%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Interactivity response on entire card hover */
.testimonial-card-minimal--summary:hover .testimonial-summary-stat {
  transform: scale(1.04) translateY(-2px);
}

.testimonial-summary-text {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.testimonial-summary-text strong {
  color: var(--text);
  font-weight: 500;
}



@media (max-width: 1024px) {
  /* On tablets/smaller screens, show 1.2 elements instead of 2.1 */
  .testimonial-card-minimal {
    flex: 0 0 72%;
  }
}

@media (max-width: 768px) {
  .testimonials {
    padding: 70px 0;
  }
  .testimonials__header-wrapper {
    margin-bottom: 32px;
  }
  .testimonials__viewport {
    gap: 0; /* maintain border system spacing */
  }
  .testimonial-card-minimal {
    flex: 0 0 calc(85% - 16px);
    min-width: 270px;
    padding: 8px 24px; /* slightly tighter on mobile views */
  }
  .testimonial-card-minimal:first-child {
    padding-left: 0;
  }
  .testimonial-card-minimal__quote {
    font-size: 1.05rem;
  }
}

/* ─── TELEGRAM-STYLE CIRCULAR THEME REVEAL VIEW TRANSITIONS ─── */
::view-transition-image-pair(root) {
  isolation: isolate;
}

@keyframes circular-reveal-expand {
  from {
    clip-path: circle(0px at var(--clip-x, 50%) var(--clip-y, 50%));
  }
  to {
    clip-path: circle(var(--clip-r, 100vmax) at var(--clip-x, 50%) var(--clip-y, 50%));
  }
}

@keyframes circular-reveal-shrink {
  from {
    clip-path: circle(var(--clip-r, 100vmax) at var(--clip-x, 50%) var(--clip-y, 50%));
  }
  to {
    clip-path: circle(0px at var(--clip-x, 50%) var(--clip-y, 50%));
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
  display: block;
}

/* Light Transition Direction: old theme (dark) shrinks back on top of new theme (light) */
.theme-transition-to-light::view-transition-old(root) {
  animation: 550ms circular-reveal-shrink cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: 99999;
}
.theme-transition-to-light::view-transition-new(root) {
  animation: none;
  z-index: 1;
}

/* Dark Transition Direction: new theme (dark) expands on top of old theme (light) */
.theme-transition-to-dark::view-transition-old(root) {
  animation: none;
  z-index: 1;
}
.theme-transition-to-dark::view-transition-new(root) {
  animation: 550ms circular-reveal-expand cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: 99999;
}

/* ─── MINIMAL FEATURED WORK CARD ─── */
.project--featured {
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 120px;
}

/* Image container takes center stage */
.project--featured .project__media-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px; /* Enable 3D perspective */
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.project--featured:hover .project__media-wrapper {
  border-color: var(--border-strong);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .project--featured:hover .project__media-wrapper {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.04);
}

/* ─── MOVING GRID BACKGROUND (GPU ACCELERATED) ─── */
.media-grid-bg {
  position: absolute;
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  pointer-events: none;
  animation: moving-grid-transform 16s linear infinite;
  opacity: 0.8;
  will-change: transform;
}

[data-theme="light"] .media-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(12, 12, 12, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 12, 12, 0.02) 1px, transparent 1px);
  opacity: 0.65;
}

@keyframes moving-grid-transform {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(40px, 40px, 0); }
}

/* ─── SINGLE SVG MEDIA PORTAL ─── */
.project--featured .project__media {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(120px) scale(0.92);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s var(--ease);
  z-index: 2;
  background: transparent;
}

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

.project--featured .project__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.22));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s var(--ease);
}

[data-theme="light"] .project--featured .project__media img {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
}

/* Coming Upfront on Card Hover */
.project--featured:hover .project__media.is-visible img {
  transform: scale(1.035) translateY(-4px);
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.32));
}

[data-theme="light"] .project--featured:hover .project__media.is-visible img {
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.08));
}

/* ─── TIMELINE ADAPTATIONS (PROJECTS PAGE) ─── */
.projects-card-img-wrapper .project__media {
  opacity: 0;
  transform: translateY(80px) scale(0.92);
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.0s var(--ease);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-card-img-wrapper .project__media.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.projects-card-img-wrapper .project__media img {
  transition: transform 0.6s var(--ease);
}

.timeline-item--featured:hover .project__media.is-visible img {
  transform: scale(1.035) translateY(-4px);
}

/* ─── ELATION BADGE INSIDE CONTAINER ─── */
.featured-badge.container-badge {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px) scale(0.8);
  opacity: 0;
  z-index: 10;
  margin-bottom: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s var(--ease);
}

[data-theme="light"] .featured-badge.container-badge {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.featured-badge.container-badge.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Centered layout for card-level badge overlay (placed at top-center) */
.media-overlay-center {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px) scale(0.85);
  transform-origin: top center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s var(--ease);
  pointer-events: none;
  width: 100%;
  text-align: center;
}

.media-overlay-center.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.media-overlay-center .featured-badge {
  background: linear-gradient(135deg, rgba(255, 252, 238, 0.94) 0%, rgba(255, 243, 209, 0.94) 100%);
  border: 1px solid rgba(230, 185, 75, 0.5);
  color: #6d5210; /* deep gold-brown from the design image */
  font-weight: 600;
  text-transform: none; /* turn off uppercase to match image */
  letter-spacing: 0.02em;
  padding: 7px 18px; /* pill padding */
  font-size: 11.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  gap: 8px; /* spacing between outline ribbon and text */
}

[data-theme="light"] .media-overlay-center .featured-badge {
  background: linear-gradient(135deg, rgba(255, 252, 238, 0.96) 0%, rgba(255, 243, 209, 0.96) 100%);
  border: 1px solid rgba(230, 185, 75, 0.6);
  color: #6d5210;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.media-center-title {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 2.0rem;
  font-weight: 400;
  color: #ffffff; /* always pure white to overlay contrastingly on mockups */
  margin: 0;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Shimmer Badge - Clean & Quiet */
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 255, 107, 0.08);
  border: 1px solid rgba(200, 255, 107, 0.25);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .featured-badge {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text);
}

/* Subtler shimmer line */
.featured-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: badge-shimmer 4s infinite linear;
}

@keyframes badge-shimmer {
  0% { left: -150%; }
  35% { left: 150%; }
  100% { left: 150%; }
}

.featured-badge__icon {
  font-size: 11px;
}

@media (max-width: 992px) {
  .project--featured .project__media-wrapper {
    height: 480px;
  }
  .showcase-screen {
    width: 150px;
    height: 320px;
  }
  .project--featured:hover .showcase-screen.screen-1 {
    transform: translateX(-130px) translateZ(0) rotateY(0) scale(0.95);
  }
  .project--featured:hover .showcase-screen.screen-2 {
    transform: translateX(0) translateZ(20px) rotateY(0) scale(1.02);
  }
  .project--featured:hover .showcase-screen.screen-3 {
    transform: translateX(130px) translateZ(0) rotateY(0) scale(0.95);
  }
  .project--featured .project__info {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .project--featured .project__media-wrapper {
    height: 380px;
  }
  .showcase-screen {
    width: 110px;
    height: 240px;
  }
  .project--featured:hover .showcase-screen.screen-3 {
    transform: translateX(90px) translateZ(0) scale(0.95);
  }
}

/* Fan out on timeline card hover */
.timeline-item--featured:hover .showcase-screen.screen-1 {
  transform: translateX(-220px) translateZ(0) rotateY(0) scale(0.95);
  opacity: 0.95;
  z-index: 1;
}

.timeline-item--featured:hover .showcase-screen.screen-2 {
  transform: translateX(0) translateZ(20px) rotateY(0) scale(1.02);
  opacity: 1;
  z-index: 3;
}

.timeline-item--featured:hover .showcase-screen.screen-3 {
  transform: translateX(220px) translateZ(0) rotateY(0) scale(0.95);
  opacity: 0.95;
  z-index: 2;
}

/* Individual screen hovers on timeline */
.timeline-item--featured:hover .showcase-screen.screen-1:hover {
  transform: translateX(-220px) translateZ(50px) rotateY(0) scale(1.05);
  opacity: 1;
  z-index: 10;
}

.timeline-item--featured:hover .showcase-screen.screen-2:hover {
  transform: translateX(0) translateZ(70px) rotateY(0) scale(1.1);
  opacity: 1;
  z-index: 10;
}

.timeline-item--featured:hover .showcase-screen.screen-3:hover {
  transform: translateX(220px) translateZ(50px) rotateY(0) scale(1.05);
  opacity: 1;
  z-index: 10;
}

@media (max-width: 992px) {
  .timeline-item--featured:hover .showcase-screen.screen-1 {
    transform: translateX(-130px) translateZ(0) rotateY(0) scale(0.95);
  }
  .timeline-item--featured:hover .showcase-screen.screen-2 {
    transform: translateX(0) translateZ(20px) rotateY(0) scale(1.02);
  }
  .timeline-item--featured:hover .showcase-screen.screen-3 {
    transform: translateX(130px) translateZ(0) rotateY(0) scale(0.95);
  }
}

@media (max-width: 576px) {
  .timeline-item--featured:hover .showcase-screen.screen-1 {
    transform: translateX(-90px) translateZ(0) scale(0.95);
  }
  .timeline-item--featured:hover .showcase-screen.screen-3 {
    transform: translateX(90px) translateZ(0) scale(0.95);
  }
}

/* ══════════ DOODH MEDIA POPOVER MODAL ══════════ */
.doodh-media-popover {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.doodh-media-popover.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.doodh-media-popover__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.doodh-media-popover__card {
  position: relative;
  z-index: 2;
  width: min(92vw, 840px);
  max-height: 90vh;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s var(--ease);
}

.doodh-media-popover.is-open .doodh-media-popover__card {
  transform: scale(1) translateY(0);
}

.doodh-media-popover__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.doodh-media-popover__close:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.1);
}

.doodh-media-popover__content {
  width: 100%;
  max-height: 72vh;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doodh-media-popover__content img,
.doodh-media-popover__content video {
  width: 100%;
  height: 100%;
  max-height: 72vh;
  object-fit: cover;
  display: block;
}

.doodh-media-popover__caption {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
}

/* ══════════ CONTACT POPOVER MODAL STYLES ══════════ */
.contact-popover {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.contact-popover.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-popover__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .contact-popover__backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.contact-popover__dialog {
  position: relative;
  z-index: 2;
  width: min(92vw, 480px);
  background: var(--bg-card, #121218);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(200, 255, 107, 0.05);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

[data-theme="light"] .contact-popover__dialog {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.contact-popover.active .contact-popover__dialog {
  transform: scale(1) translateY(0);
}

.contact-popover__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  color: var(--text, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

[data-theme="light"] .contact-popover__close {
  background: rgba(0, 0, 0, 0.05);
  color: #111827;
}

.contact-popover__close:hover {
  background: var(--accent, #c8ff6b);
  color: #000000;
  transform: scale(1.08);
}

.contact-popover__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #c8ff6b;
  background: rgba(200, 255, 107, 0.1);
  border: 1px solid rgba(200, 255, 107, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

[data-theme="light"] .contact-popover__badge {
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

.contact-popover__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8ff6b;
  box-shadow: 0 0 8px #c8ff6b;
  animation: pulse-dot-glow 2s infinite;
}

@keyframes pulse-dot-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.contact-popover__title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text, #ffffff);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.contact-popover__subtitle {
  font-size: 0.88rem;
  color: var(--text-muted, #9ca3af);
  line-height: 1.5;
  margin-bottom: 24px;
}

.contact-popover__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-popover__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-popover__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text, #e5e7eb);
}

.contact-popover__req {
  color: #f87171;
}

.contact-popover__opt {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-muted, #9ca3af);
}

.contact-popover__input,
.contact-popover__textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  color: var(--text, #ffffff);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  cursor: text !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

[data-theme="light"] .contact-popover__input,
[data-theme="light"] .contact-popover__textarea {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #111827;
}

.contact-popover__input:focus,
.contact-popover__textarea:focus {
  border-color: #c8ff6b;
  box-shadow: 0 0 0 3px rgba(200, 255, 107, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.contact-popover__input.invalid,
.contact-popover__textarea.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.contact-popover__error-msg {
  display: none;
  font-size: 0.76rem;
  color: #f87171;
  margin-top: 2px;
}

.contact-popover__error-msg.active {
  display: block;
}

.contact-popover__submit-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: #c8ff6b;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  margin-top: 8px;
  position: relative;
}

.contact-popover__submit-btn:hover {
  background: #d8ff85;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 255, 107, 0.25);
}

[data-theme="light"] .contact-popover__submit-btn:hover {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-popover__submit-btn:active {
  transform: translateY(0);
}

.contact-popover__submit-btn.loading .btn-text,
.contact-popover__submit-btn.loading .btn-icon {
  opacity: 0;
}

.contact-popover__submit-btn.loading .btn-spinner {
  display: block;
}

[data-theme="light"] .contact-popover__submit-btn.loading .btn-spinner {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
}

.btn-spinner {
  display: none;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spinner-spin 0.8s linear infinite;
}

@keyframes spinner-spin {
  to { transform: rotate(360deg); }
}

.contact-popover__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted, #9ca3af);
}

.contact-popover__direct-link {
  color: var(--text, #ffffff);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-popover__direct-link:hover {
  color: #c8ff6b;
  text-decoration: underline;
}

/* SUCCESS STATE */
.contact-popover__success {
  text-align: center;
  padding: 20px 0 10px;
}

.contact-success__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(200, 255, 107, 0.12);
  border: 1px solid rgba(200, 255, 107, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-success__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text, #ffffff);
  margin-bottom: 8px;
}

.contact-success__desc {
  font-size: 0.9rem;
  color: var(--text-muted, #9ca3af);
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-popover__close-btn {
  padding: 12px 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text, #ffffff);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.contact-popover__close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ══════════ LIGHT MODE POPOVER OVERRIDES ══════════ */
[data-theme="light"] .contact-popover__close:hover {
  background: #111827;
  color: #ffffff;
}

[data-theme="light"] .contact-popover__badge {
  color: #111827;
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .contact-popover__badge-dot {
  background: #111827;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .contact-popover__input:focus,
[data-theme="light"] .contact-popover__textarea:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

[data-theme="light"] .contact-popover__submit-btn {
  background: #111827;
  color: #ffffff;
}

[data-theme="light"] .contact-popover__submit-btn:hover {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .contact-popover__direct-link {
  color: #111827;
}

[data-theme="light"] .contact-popover__direct-link:hover {
  color: #000000;
}

[data-theme="light"] .contact-success__icon-wrap {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .contact-success__icon-wrap svg {
  stroke: #111827;
}

[data-theme="light"] .contact-popover__close-btn {
  background: rgba(0, 0, 0, 0.06);
  color: #111827;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .contact-popover__close-btn:hover {
  background: #111827;
  color: #ffffff;
}

/* Hide sound button while website preloader is active */
html.preloader-no-scroll .sound-fab,
body.preloader-no-scroll .sound-fab,
#preloader:not(.preloader--hidden) ~ .sound-fab,
.preloader:not(.preloader--hidden) .sound-fab {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

.sound-fab {
  position: fixed;
  bottom: 28px;
  right: 80px;
  z-index: 99999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  cursor: pointer;
  color: var(--text, #111827);
  isolation: isolate;
  will-change: transform;
  overflow: visible;

  transition:
    width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-radius 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.32s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Start hidden — landing sequence shows it */
  opacity: 0;
  transform: translateY(10px) scale(0.88);
  pointer-events: none;
}

/* Glow halo ring */
.sound-fab::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1.5px solid transparent;
  transition:
    border-color 0.35s ease,
    inset 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

/* Floating tooltip */
.sound-fab::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.sound-fab.idle-visible:hover::after,
.sound-fab:not(.landing-expanded):not(.active):hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Button becomes visible when landing-expanded OR active (music playing) */
.sound-fab.landing-expanded,
.sound-fab.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Idle state — fully contracted, music off: visible but subtle */
.sound-fab.idle-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

[data-theme="dark"] .sound-fab {
  background: rgba(22, 22, 30, 0.7);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.45),
    0 1px 4px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #e8e8e4;
}

.sound-fab:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    0 3px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-3px) scale(1.1);
}

.sound-fab:hover::before {
  inset: -5px;
  border-color: rgba(0, 0, 0, 0.07);
  opacity: 1;
}

.sound-fab:active {
  transform: translateY(0) scale(0.93) !important;
  transition-duration: 0.1s !important;
}

[data-theme="dark"] .sound-fab:hover {
  background: rgba(38, 38, 50, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.55),
    0 3px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-3px) scale(1.1);
}

[data-theme="dark"] .sound-fab:hover::before {
  border-color: rgba(255, 255, 255, 0.09);
  opacity: 1;
}

/* Active / Playing state — circular with accent glow (blob fits inside) */
.sound-fab.active {
  width: 44px;
  border-radius: 50%;
  padding: 0;
  background: rgba(200, 255, 107, 0.1);
  border: 1.5px solid rgba(200, 255, 107, 0.45);
  color: #c8ff6b;
  box-shadow:
    0 0 18px rgba(200, 255, 107, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

.sound-fab.active:hover {
  background: rgba(200, 255, 107, 0.16);
  border-color: rgba(200, 255, 107, 0.65);
  box-shadow:
    0 0 28px rgba(200, 255, 107, 0.35),
    0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px) scale(1.08) !important;
}

[data-theme="light"] .sound-fab.active {
  background: rgba(17, 24, 39, 0.05);
  border: 1.5px solid rgba(17, 24, 39, 0.2);
  color: #111827;
  box-shadow:
    0 0 14px rgba(17, 24, 39, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .sound-fab.active:hover {
  background: rgba(17, 24, 39, 0.1);
  border-color: rgba(17, 24, 39, 0.3);
  box-shadow:
    0 0 22px rgba(17, 24, 39, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px) scale(1.08) !important;
}

.sound-fab__icon--speaker {
  display: block;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.25s ease,
    filter 0.3s ease;
}

.sound-fab:hover .sound-fab__icon--speaker {
  transform: scale(1.15);
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.15));
}

[data-theme="dark"] .sound-fab:hover .sound-fab__icon--speaker {
  filter: drop-shadow(0 0 6px rgba(200, 220, 255, 0.25));
}

.sound-fab.active .sound-fab__icon--speaker {
  display: none !important;
}

/* ══════════ LIQUID BLOB AUDIO VISUALIZER ══════════ */
.sound-fab__waveform--dna {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sound-fab.active .sound-fab__waveform--dna {
  display: flex !important;
}

/* The blob container holds the morphing shape + its glow aura */
.dna-helix {
  position: relative;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer pulsing glow ring */
.dna-helix::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 107, 0.25) 0%, transparent 70%);
  animation: blob-aura 2.2s ease-in-out infinite;
  pointer-events: none;
}

[data-theme="light"] .dna-helix::before {
  background: radial-gradient(circle, rgba(17, 24, 39, 0.15) 0%, transparent 70%);
}

/* Inner secondary shimmer ring */
.dna-helix::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(200, 255, 107, 0.3);
  animation: blob-ring 2.2s ease-in-out infinite 0.4s;
  pointer-events: none;
}

[data-theme="light"] .dna-helix::after {
  border-color: rgba(17, 24, 39, 0.2);
}

/* The blob itself — morphs between organic shapes */
.dna-bar {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #c8ff6b;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation:
    blob-morph 3s ease-in-out infinite,
    blob-breathe 2.2s ease-in-out infinite;
  box-shadow:
    0 0 12px rgba(200, 255, 107, 0.5),
    0 0 28px rgba(200, 255, 107, 0.2);
}

[data-theme="light"] .dna-bar {
  background: #111827;
  box-shadow:
    0 0 10px rgba(17, 24, 39, 0.2),
    0 0 22px rgba(17, 24, 39, 0.08);
}

/* Show only the first bar — the blob is a single shape */
.dna-bar--1 {
  animation:
    blob-morph 3s ease-in-out infinite,
    blob-breathe 2.2s ease-in-out infinite;
}
.dna-bar--2,
.dna-bar--3,
.dna-bar--4,
.dna-bar--5 {
  display: none;
}

/* Hover: blob beats faster */
.sound-fab.active:hover .dna-bar--1 {
  animation:
    blob-morph 1.8s ease-in-out infinite,
    blob-breathe 1.4s ease-in-out infinite;
  box-shadow:
    0 0 16px rgba(200, 255, 107, 0.7),
    0 0 36px rgba(200, 255, 107, 0.3);
}

.sound-fab.active:hover .dna-helix::before {
  animation-duration: 1.4s;
}

/* Blob morphs through 5 organic shapes — asymmetric for life */
@keyframes blob-morph {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  20%  { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  40%  { border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%; }
  60%  { border-radius: 40% 60% 30% 70% / 70% 40% 60% 30%; }
  80%  { border-radius: 50% 50% 60% 40% / 30% 70% 30% 70%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Blob breathes — subtle scale pulse */
@keyframes blob-breathe {
  0%, 100% { transform: scale(0.88); opacity: 0.85; }
  50%       { transform: scale(1.1);  opacity: 1;    }
}

/* Outer glow aura pulses outward */
@keyframes blob-aura {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%       { transform: scale(1.5); opacity: 0;   }
}

/* Inner ring shrinks and fades */
@keyframes blob-ring {
  0%, 100% { transform: scale(1);    opacity: 0.5; }
  50%       { transform: scale(1.35); opacity: 0;   }
}


/* ══════════ FAB LANDING EXPANDED PILLS ══════════ */
/* Note: cs-theme-toggle is excluded — it lives inside the nav bar on case study pages */
/* Only override right-position transition here; per-button transitions handle everything else */
.sound-fab,
.theme-fab {
  transition:
    width 0.52s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-radius 0.52s cubic-bezier(0.34, 1.56, 0.64, 1),
    right 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sound-fab.shift-left {
  right: 124px !important;
}

/* ── Sound pill ── */
.sound-fab.landing-expanded {
  width: 120px !important;
  border-radius: 22px !important;
  gap: 6px !important;
  justify-content: center !important;
  align-items: center !important;
}

/* ── Theme pill (floating FAB on main pages only) ── */
.theme-fab.landing-expanded {
  width: 90px !important;
  border-radius: 22px !important;
  gap: 6px !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Hide scroll ring while expanded as pill */
.theme-fab.landing-expanded .theme-progress-ring {
  display: none !important;
}

/* Sound button inner: pass-through layout */
.sound-fab__inner {
  display: contents;
}

/* Clip only the text label so it doesn't overflow outside the pill */
.fab-landing-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: currentColor;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 0px;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease 0.08s;
  pointer-events: none;
}

.landing-expanded .fab-landing-text {
  max-width: 80px;
  opacity: 1;
}

/* ── 3-second SVG pill outline timer ── */
/* Fixed pixel size centered on each button — avoids distortion during width transition */
.pill-timer-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  z-index: 20;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.theme-fab .pill-timer-svg {
  width: 90px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.sound-fab .pill-timer-svg {
  width: 120px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.landing-expanded .pill-timer-svg {
  opacity: 1;
}

.pill-timer-track {
  fill: none;
  stroke: rgba(180, 180, 180, 0.3);
  stroke-width: 2;
}

[data-theme="dark"] .pill-timer-track {
  stroke: rgba(255, 255, 255, 0.15);
}

.pill-timer-fill {
  fill: none;
  stroke: var(--accent, #c8ff6b);
  stroke-width: 3;
  stroke-linecap: round;
  /* stroke-dasharray and stroke-dashoffset are set dynamically by JS */
  transition: stroke-dashoffset 0s linear;
}

[data-theme="light"] .pill-timer-fill {
  stroke: #111827;
}

/* Animate stroke around the pill over 3 seconds */
.landing-expanded.timer-running .pill-timer-fill {
  stroke-dashoffset: 0 !important;
  transition: stroke-dashoffset 3s linear !important;
}

/* ══════════ Scroll Hide + Progress Ring ══════════ */

/* Hide sound fab while scrolling (only when music is NOT playing) */
.sound-fab.is-scrolling {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(10px) scale(0.9) !important;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s !important;
}

/* When music IS playing, always keep button fully visible — even while scrolling */
.sound-fab.active.is-scrolling,
.sound-fab.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* Theme scroll progress ring — hidden until user scrolls */
.theme-progress-ring {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 48px;
  height: 48px;
  pointer-events: none;
  transform: rotate(-90deg);
  z-index: 10;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.theme-progress-ring.visible {
  opacity: 1;
}

.theme-fab.landing-expanded .theme-progress-ring {
  display: none !important;
}

.theme-progress-track {
  stroke: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .theme-progress-track {
  stroke: rgba(0, 0, 0, 0.1);
}

.theme-progress-fill {
  stroke: var(--accent, #c8ff6b);
  transition: stroke-dashoffset 0.15s linear;
}

[data-theme="light"] .theme-progress-fill {
  stroke: #111827;
}

/* ─── Stealth Vault (Creative High-Tech NDA Empty State) ─── */
.work-empty-state {
  width: 100%;
  max-width: 780px;
  margin: 2.5rem auto;
  position: relative;
}

.stealth-vault {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3.75rem 2.5rem;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stealth-vault:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.stealth-vault__grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.stealth-vault__glow {
  position: absolute;
  top: -45%;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(200, 255, 107, 0.08) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.stealth-vault__header {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.stealth-vault__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stealth-vault__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: vaultPulse 1.8s infinite ease-in-out;
}

.stealth-vault__orb-wrap {
  position: relative;
  z-index: 1;
  margin: 0 auto 1.75rem auto;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stealth-vault__orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  animation: orbFloat 4s infinite ease-in-out;
}

.stealth-vault__lock-icon {
  color: var(--text);
  transition: transform 0.35s ease;
}

.stealth-vault:hover .stealth-vault__lock-icon {
  transform: scale(1.12) rotate(-8deg);
}

.stealth-vault__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed var(--border-strong);
  opacity: 0.6;
}

.stealth-vault__ring--1 {
  animation: ringRotate 15s infinite linear;
}

.stealth-vault__ring--2 {
  inset: -12px;
  border-style: dotted;
  opacity: 0.35;
  animation: ringRotateReverse 22s infinite linear;
}

.stealth-vault__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stealth-vault__sparkles span {
  position: absolute;
  font-size: 0.75rem;
  color: var(--accent, #6366f1);
  opacity: 0.7;
  animation: sparkleTwinkle 2.5s infinite ease-in-out;
}

.stealth-vault__sparkles span:nth-child(1) { top: -4px; left: 10px; animation-delay: 0s; }
.stealth-vault__sparkles span:nth-child(2) { bottom: 2px; right: 8px; animation-delay: 0.8s; }
.stealth-vault__sparkles span:nth-child(3) { top: 48%; right: -10px; animation-delay: 1.6s; }

.stealth-vault__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans) !important;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.stealth-vault__title-highlight {
  position: relative;
  color: var(--text);
  background: linear-gradient(120deg, var(--text) 40%, var(--accent, #6366f1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stealth-vault__status-ticker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.stealth-vault__status-ticker .ticker-sep {
  opacity: 0.4;
}

.stealth-vault__desc {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 2.25rem auto;
}

.stealth-vault__tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.stealth-vault__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.stealth-vault__tag:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.stealth-vault__action {
  position: relative;
  z-index: 1;
}

.stealth-vault__action .btn {
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 14px;
}

.stealth-vault__tag {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--text-muted);
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.25s ease;
}

.stealth-vault__tag:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.stealth-vault__action {
  position: relative;
  z-index: 1;
}

@keyframes vaultPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ringRotateReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.2); }
}









