/* ═══════════════════════════════════════════
   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: #f4f3ef; }
@property --bg-card { syntax: '<color>'; inherits: true; initial-value: #efefea; }
@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:           #f4f3ef;
  --bg-card:      #efefea;
  --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);

  --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(244,243,239,0.85);
  --footer-bg:    #0d0d0d;
  --footer-text:  #ececec;

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

  --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;

  --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 {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  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: 10000;
  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;
  letter-spacing: -0.01em;
}
.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.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);

  cursor: none;
  color: var(--text);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.25s, transform 0.2s;

  /* Slide up on entry */
  opacity: 0;
  transform: translateY(10px);
  animation: fab-enter 0.45s 1.2s var(--ease) forwards;
}

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

.theme-fab:hover {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px) scale(1.06);
}

[data-theme="dark"] .theme-fab {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.25);
  color: #e8e8e4;
}

[data-theme="dark"] .theme-fab:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Icon cross-fade: moon shown in light → switch to dark; sun shown in dark → switch to light */
.theme-fab__icon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.theme-fab__icon--moon { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-fab__icon--sun  { opacity: 0; transform: rotate(40deg) scale(0.6); }

[data-theme="dark"] .theme-fab__icon--moon { opacity: 0; transform: rotate(-40deg) scale(0.6); }
[data-theme="dark"] .theme-fab__icon--sun  { opacity: 1; transform: rotate(0deg) scale(1); }

/* Hide the text tooltip completely */
.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 Section Category Tabs */
/* Work Section Category Tabs */
.work__tabs-wrapper {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 24px);
  z-index: 8500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 480px) {
  .work__tabs-wrapper {
    bottom: 20px;
  }
}

.work__tabs-wrapper.is-floating-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: all;
}

.work__tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.88); /* glassmorphic */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 5px;
  border-radius: 100px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.work__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: #707070;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.work__tab:hover {
  color: #0d0d0d;
  transform: translateY(-1px);
}

.work__tab.is-active {
  background: #0d0d0d; /* Charcoal black in light mode */
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 600;
  transform: scale(1.05);
}

.work__tab.is-active:hover {
  transform: scale(1.05);
}

[data-theme="dark"] .work__tabs {
  background: rgba(20, 20, 20, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

[data-theme="dark"] .work__tab:hover {
  color: #f0f0eb;
  transform: translateY(-1px);
}

[data-theme="dark"] .work__tab.is-active {
  background: #c8ff6b; /* Neon green/yellow accent in dark mode */
  color: #0d0d0d;      /* Dark text on light background */
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(200, 255, 107, 0.45), 0 2px 8px rgba(200, 255, 107, 0.25);
  font-weight: 600;
  transform: scale(1.05);
}

[data-theme="dark"] .work__tab.is-active:hover {
  transform: scale(1.05);
}

/* 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: 24px 0 16px;
  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 {
  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 ─── */
.projects-stack {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 32px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(5vw, calc(50vw - 590px));
  padding-right: max(5vw, calc(50vw - 590px));
  padding-top: 40px;
  padding-bottom: 60px; /* balanced padding for hover lift and shadows */
  align-items: center; /* naturally center staggered cards for stable, smooth waves */
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -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;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  
  /* Smooth exit/entrance state */
  opacity: 0;
  transform: translateY(60px);
  transition: 
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
    box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.5s var(--ease),
    border-color 0.4s var(--ease);

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

/* 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-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 */

/* GPU-Accelerated Accordion Carousel expansion on hover (higher specificity to override fade-up) */
.projects-stack .project--stack-card.is-hovered {
  transform: scale(1.22) translateY(-12px) translateZ(0); /* expand card size visually on the GPU */
  z-index: 10;
  
  /* Multi-layered premium themed shadow: dark grounding shadow + soft diffused themed glow */
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.28),                                    /* crisp dark grounding shadow */
    0 30px 65px rgba(var(--project-color-rgb, 0, 0, 0), 0.18),          /* wide-reaching soft themed glow */
    0 2px 12px rgba(var(--project-color-rgb, 0, 0, 0), 0.15);           /* tight colored outline halo */
    
  border-color: rgba(var(--project-color-rgb, 255, 255, 255), 0.28);    /* subtle themed border highlights */
}

[data-theme="light"] .projects-stack .project--stack-card.is-hovered {
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.06),
    0 24px 50px rgba(0, 0, 0, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.05);
    
  border-color: rgba(0, 0, 0, 0.1);
}

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

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

/* ─── CARD MEDIA BACKGROUND ─── */
.project--stack-card .project__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  border-radius: 0;
  border: none;
  
  /* Hardware Acceleration */
  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;
}

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

/* Subtle bottom shadow gradient to keep tags readable when overlay is hidden */
.project--stack-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.projects-stack .project--stack-card.is-hovered::after {
  opacity: 0.15;
}

/* ─── BLUR DETAILS OVERLAY (SLIDES UP ON HOVER) ─── */
.project--stack-card .project__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 160px 28px 32px 28px; /* massive padding for ultra-soft vertical linear blur fade */
  
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  
  /* Hidden by default with slight offset to prevent rendering lag */
  transform: translateY(12px);
  opacity: 0;
  transition: 
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), 
    opacity 0.4s ease;
  pointer-events: none;
  background: transparent;
  border-top: none;

  /* Hardware Acceleration */
  will-change: transform, opacity;
}

/* Glassmorphism blur overlay via pseudo-element for smooth linear blur gradient */
.project--stack-card .project__info::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(15, 15, 15, 1.0) 0%, rgba(15, 15, 15, 0.95) 55%, rgba(15, 15, 15, 0) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  
  /* Smooth mask that fades the blur out linearly towards the top over a wider range */
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 50%, rgba(0, 0, 0, 0) 100%);
  
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  will-change: opacity;
}

[data-theme="light"] .project--stack-card .project__info::before {
  background: linear-gradient(to top, rgba(255, 255, 255, 1.0) 0%, rgba(255, 255, 255, 0.96) 55%, rgba(255, 255, 255, 0) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.projects-stack .project--stack-card.is-hovered .project__info {
  transform: translateY(0) translateZ(0);
  opacity: 1;
  pointer-events: auto;
}

/* Remove tag chips completely inside case studies */
.project--stack-card .project__tags {
  display: none;
}

.project--stack-card .project__title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.25;
  
  /* Text stability overrides during hardware transitions */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

[data-theme="light"] .project--stack-card .project__title {
  color: var(--text);
}

.project--stack-card .project__desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px 0;
  
  /* Text stability overrides during hardware transitions */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translate3d(0, 0, 0);
}

[data-theme="light"] .project--stack-card .project__desc {
  color: var(--text-muted);
}

.project--stack-card .project__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.25s var(--ease);
  
  /* Text stability overrides during hardware transitions */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translate3d(0, 0, 0);
}

.project--stack-card .project__link:hover {
  gap: 10px;
}

.project--stack-card .project__link .arrow {
  transition: transform 0.25s var(--ease);
}

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

/* ─── 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;
  position: relative;
  overflow: hidden;
  padding: 160px 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;
}

/* ─── Timeline Strip ─── */
.doodh__timeline {
  position: relative;
  z-index: 1;
  margin-top: 80px;
}

.doodh__timeline-line {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

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

.doodh__timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  position: relative;
}

.doodh__timeline-dot {
  position: absolute;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border-strong);
  transition: background 0.3s, box-shadow 0.3s;
}

.doodh__timeline-item--active .doodh__timeline-dot {
  background: #f5c842;
  box-shadow: 0 0 0 1px rgba(245, 200, 66, 0.5), 0 0 12px rgba(245, 200, 66, 0.4);
  width: 16px;
  height: 16px;
  top: 8px;
}

.doodh__timeline-year {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.doodh__timeline-event {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 140px;
}

.doodh__timeline-item--active .doodh__timeline-year {
  color: #a07800;
}

[data-theme="dark"] .doodh__timeline-item--active .doodh__timeline-year {
  color: #f5c842;
}

/* ─── Responsive ─── */
@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-items {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .doodh__timeline-line { display: none; }
  .doodh__timeline-dot { position: static; margin-bottom: 8px; }
  .doodh__timeline-item { padding-top: 0; }
}

/* ══════════ 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 ══════════ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for children */
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }

/* Immediately visible hero items */
.hero .fade-up { transition-delay: 0s; }
.hero .fade-up:nth-child(2) { transition-delay: 0.1s; }
.hero .fade-up:nth-child(3) { transition-delay: 0.2s; }
.hero .fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ══════════ 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; }
  .fact__num { font-size: 1.5rem; }
}

/* ══════════ 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;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.company-badge__icon svg { display: block; }

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

.company-badge--credgenics .company-badge__icon {
  background: #111111;
  color: #ffffff;
}

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

.company-badge--oronium .company-badge__icon {
  background: #4f46e5;
  color: #ffffff;
  font-weight: 900;
  font-size: 9px;
  line-height: 1;
}

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

.company-badge--grab .company-badge__icon {
  background: #00b14f;
  color: #ffffff;
  font-weight: 900;
  font-size: 9px;
  line-height: 1;
}

/* ══════════ 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 with Zoom Animation */
.figma-canvas__image-wrapper {
  position: relative;
  width: 100%;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.figma-canvas__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  user-select: none;
  -webkit-user-drag: none;
  border: 1px solid rgba(0,0,0,0.04);
  pointer-events: none;
}

[data-theme="dark"] .figma-canvas__image {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255,255,255,0.04);
}

.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,
.figma-frame.is-selected .figma-frame__label {
  opacity: 1;
}

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

/* 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.is-selected .figma-frame__handle {
  opacity: 1;
}

.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; }

/* 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 2px rgba(0, 0, 0, 0.15));
}

.figma-collaborator-cursor__label {
  background: #00b14f; /* Grab green theme */
  color: #ffffff;
  font-size: 8px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 2px;
  border-top-left-radius: 0;
  margin-top: 2px;
  margin-left: 5px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* 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;
}

/* Tab switching fade-in animation */
@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.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);
}

/* ══════════════════════════════════════
   JOURNAL POPOVER MODAL
   ══════════════════════════════════════ */
.journal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.4s step-end;
}

.journal-modal.is-active {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s step-start;
}

.journal-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.journal-modal.is-active .journal-modal__overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.journal-modal__container {
  position: relative;
  width: 90%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0.95) translateY(15px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.journal-modal.is-active .journal-modal__container {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.journal-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--badge-bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.journal-modal__close:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.journal-modal__close .material-symbols-rounded {
  font-size: 1.125rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.journal-modal__header {
  margin-bottom: 24px;
  margin-right: 24px;
}

.journal-modal__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.journal-modal__tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.journal-modal__dot {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.journal-modal__date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.journal-modal__title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}

.journal-modal__body {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 8px;
}

.journal-modal__body::-webkit-scrollbar {
  width: 4px;
}

.journal-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.journal-modal__body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.journal-modal__body::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.journal-modal__content {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-wrap;
}

@media (max-width: 580px) {
  .journal-modal__container {
    padding: 32px 24px;
    border-radius: 16px;
  }
  
  .journal-modal__title {
    font-size: 1.5rem;
  }
  
  .journal-modal__close {
    top: 16px;
    right: 16px;
  }
}

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

.timeline-logo svg {
  width: 12px;
  height: 12px;
  display: block;
}

.timeline-logo--credgenics {
  background: #111111;
  color: #ffffff;
}

.timeline-logo--oronium {
  background: #4f46e5;
  color: #ffffff;
}

.timeline-logo--vonnue {
  background: #1e3a8a;
  color: #ffffff;
}

.timeline-logo--kerala {
  background: #d97706;
  color: #ffffff;
}

.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);
  }
}






