/* ================================================
   GAEL LE REUN — Portfolio Design System v2
   Editorial Light · Teal identity · Textured
   Fonts: Sora (display) + IBM Plex Mono (mono labels)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --accent: #1d4ed8;
  --accent-rgb: 29, 78, 216;
  /* Darker blue for better contrast (orig #2563eb) */
  --accent-hover: #1e40af;
  --accent-light: #eff6ff;
  --accent-subtle: rgba(29, 78, 216, 0.04);
  --accent-border: rgba(29, 78, 216, 0.15);

  --text: #111827;
  --text-2: #374151;
  --text-3: #374151;
  /* Darker shade for WCAG AA compliance */

  --bg: #ffffff;
  --surface: #e2e8f0;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --green: #059669;
}

/* Smooth theme transition */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              fill 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-delay: 0s !important;
}

/* ---- Base ---- */
html {
  scroll-behavior: auto !important;
  scroll-padding-top: 80px;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* ---- FOUC Prevention ---- */
.js-enabled body {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.js-enabled body.components-loaded {
  opacity: 1;
}

/* ---- Animation Fallback ---- */
.js-enabled .animate-on-scroll:not(.animate-fade-in) {
  opacity: 0;
  transform: translateY(2rem);
}

.text-blue-600 {
  color: var(--accent) !important;
}

.text-blue-700 {
  color: var(--accent-hover) !important;
}

/* Subtle grain overlay for warmth & texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---- Section Label ---- */
.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.section-label::after {
  content: '';
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
}

/* ---- Navbar ---- */
.nav-glass {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* ---- Hero Glow ---- */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease-out, top 0.3s ease-out, opacity 0.5s ease;
  opacity: 0;
  will-change: left, top;
}

.hero-glow.active {
  opacity: 1;
}

/* ---- Photo Ring ---- */
.photo-ring {
  border: 3px solid var(--accent);
  animation: ringPulse 4s ease-in-out infinite;
}

@keyframes ringPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
  }
}

/* ---- Accent Card (left border, NO background box) ---- */
.accent-card {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  transition: border-color 0.3s ease;
}

.accent-card:hover {
  border-left-color: var(--accent-hover);
}

/* ---- Mission List ---- */
.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-list li {
  position: relative;
  padding-left: 1.5rem;
}

.mission-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}

/* ---- Tags ---- */
.tag-accent,
.tag-neutral,
.tag-inline {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.tag-accent:hover,
.tag-neutral:hover,
.tag-inline:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* ---- Skill Tag ---- */
.skill-tag {
  display: inline-flex;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-2);
  /* #374151 is usually fine on white/surface */
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.skill-tag:hover {
  border-color: transparent;
  color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-1px);
}

/* ---- Pulse Dot ---- */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  animation: pulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ---- Buttons ---- */
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 2px solid #d1d5db;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-ghost {
  border-color: #52525b;
}

[data-theme="dark"] .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Secondary Button ---- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Text Gradient ---- */
.text-gradient {
  color: var(--accent);
}

/* ---- Project Items (separator borders removed) ---- */

/* ---- Glass Card Skill ---- */
.glass-card-skill {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
  .glass-card-skill {
    padding: 2rem;
  }
}

.glass-card-skill:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--accent);
  box-shadow: 0 10px 30px -10px var(--accent-subtle);
}

[data-theme="dark"] .glass-card-skill {
  background: rgba(24, 24, 27, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .glass-card-skill:hover {
  background: rgba(24, 24, 27, 0.8);
  border-color: var(--accent);
  box-shadow: 0 10px 30px -10px var(--accent-subtle);
}

/* ---- Dot-grid surface pattern ---- */
.surface-dots {
  background-color: var(--surface);
}



/* ---- Animations ---- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

@keyframes bounce-subtle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.animate-bounce-subtle {
  animation: bounce-subtle 3s ease-in-out infinite;
}

.animate-on-scroll {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero-name {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
  }
}

/* ---- Accessibility: Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {

  .animate-fade-in,
  .animate-bounce-subtle {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .photo-ring::before {
    animation: none;
  }

  .photo-ring {
    animation: none;
  }

  .pulse-dot::after {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ================================================
   DARK MODE — Amber on near-black
   Activated via data-theme="dark" on <html>
   ================================================ */

[data-theme="dark"] {
  --accent: #f59e0b;
  --accent-rgb: 245, 158, 11;
  --accent-hover: #d97706;
  --accent-light: rgba(245, 158, 11, 0.07);
  --accent-subtle: rgba(245, 158, 11, 0.06);
  --accent-border: rgba(245, 158, 11, 0.25);
  --bg: #09090b;
  --surface: #18181b;
  --text: #fafafa;
  --text-2: #c4c4cc;
  --text-3: #94949e;
  --border: #27272a;
  --border-light: #1c1c1e;
  --green: #34d399;
}

/* Body & global */
html[data-theme="dark"] body {
  background-color: var(--bg);
  color: var(--text);
}

[data-theme="dark"] ::selection {
  background: var(--accent);
  color: #09090b;
}

[data-theme="dark"] body::after {
  opacity: 0.04;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #3f3f46;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --- Tailwind utility overrides --- */

/* Backgrounds */
[data-theme="dark"] .bg-white {
  background-color: var(--bg) !important;
}

[data-theme="dark"] .bg-gray-50 {
  background-color: var(--surface) !important;
}

[data-theme="dark"] .bg-gray-100 {
  background-color: #27272a !important;
}

[data-theme="dark"] .bg-gray-200,
[data-theme="dark"] .hover\:bg-gray-200:hover {
  background-color: #3f3f46 !important;
}

[data-theme="dark"] .bg-gray-400,
[data-theme="dark"] .hover\:bg-gray-400:hover {
  background-color: #52525b !important;
}

/* Text */
[data-theme="dark"] .text-gray-900 {
  color: var(--text) !important;
}

[data-theme="dark"] .text-gray-800 {
  color: #f4f4f5 !important;
}

[data-theme="dark"] .text-gray-700 {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .text-gray-600 {
  color: #c8c8d0 !important;
}

[data-theme="dark"] .text-gray-500 {
  color: #a1a1aa !important;
}

[data-theme="dark"] .text-gray-400 {
  color: var(--text-3) !important;
}

/* Borders */
[data-theme="dark"] .border-gray-400 {
  border-color: #52525b !important;
}

[data-theme="dark"] .border-gray-300 {
  border-color: #3f3f46 !important;
}

[data-theme="dark"] .border-gray-300 {
  border-color: var(--border) !important;
}

[data-theme="dark"] .border-gray-300 {
  border-color: var(--border) !important;
}

/* Teal → Amber */
[data-theme="dark"] .text-blue-600 {
  color: var(--accent) !important;
}

[data-theme="dark"] .text-blue-700 {
  color: #d97706 !important;
}

[data-theme="dark"] .bg-blue-600 {
  background-color: var(--accent) !important;
}

[data-theme="dark"] .bg-blue-50 {
  background-color: rgba(245, 158, 11, 0.1) !important;
}

[data-theme="dark"] .border-blue-200 {
  border-color: rgba(245, 158, 11, 0.3) !important;
}

[data-theme="dark"] .border-blue-300 {
  border-color: rgba(245, 158, 11, 0.4) !important;
}

/* Hover states */
[data-theme="dark"] .hover\:text-blue-600:hover {
  color: var(--accent) !important;
}

[data-theme="dark"] .hover\:bg-blue-100:hover {
  background-color: rgba(245, 158, 11, 0.15) !important;
}

[data-theme="dark"] .hover\:border-blue-200:hover {
  border-color: rgba(245, 158, 11, 0.4) !important;
}

[data-theme="dark"] .hover\:border-blue-300:hover {
  border-color: rgba(245, 158, 11, 0.5) !important;
}

[data-theme="dark"] .hover\:text-gray-900:hover {
  color: var(--text) !important;
}

[data-theme="dark"] .hover\:border-gray-300:hover {
  border-color: #3f3f46 !important;
}

[data-theme="dark"] .hover\:border-gray-400:hover {
  border-color: #52525b !important;
}

[data-theme="dark"] .hover\:bg-gray-100:hover {
  background-color: #1c1c1e !important;
}

[data-theme="dark"] .hover\:bg-blue-50:hover {
  background-color: rgba(245, 158, 11, 0.08) !important;
}

/* Focus */
[data-theme="dark"] .focus\:bg-blue-600:focus {
  background-color: var(--accent) !important;
}

/* Group-hover */
[data-theme="dark"] .group:hover .group-hover\:text-blue-600 {
  color: var(--accent) !important;
}

[data-theme="dark"] .group:hover .group-hover\:border-blue-300 {
  border-color: rgba(245, 158, 11, 0.4) !important;
}

[data-theme="dark"] .group:hover .group-hover\:bg-blue-50 {
  background-color: rgba(245, 158, 11, 0.08) !important;
}

[data-theme="dark"] .group:hover .group-hover\:text-gray-900 {
  color: var(--text) !important;
}

[data-theme="dark"] .group:hover .group-hover\:border-gray-400 {
  border-color: #52525b !important;
}

[data-theme="dark"] .group:hover .group-hover\:bg-gray-100 {
  background-color: #1c1c1e !important;
}

/* Emerald badge → brighter green for dark */
[data-theme="dark"] .text-emerald-700 {
  color: #34d399 !important;
}

[data-theme="dark"] .border-emerald-200 {
  border-color: rgba(52, 211, 153, 0.25) !important;
}

/* --- Component overrides --- */

/* Navbar */
[data-theme="dark"] .nav-glass {
  background: rgba(9, 9, 11, 0.72) !important;
}

[data-theme="dark"] .nav-scrolled {
  background: rgba(9, 9, 11, 0.95) !important;
  border-bottom-color: var(--border) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile menu bg */
[data-theme="dark"] #mobileMenu {
  background: rgba(9, 9, 11, 0.98) !important;
  backdrop-filter: blur(20px) !important;
}

/* Text gradient → amber */
[data-theme="dark"] .text-gradient {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Hero glow → amber */
[data-theme="dark"] .hero-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.03) 40%, transparent 65%) !important;
}

/* Photo ring → amber */
[data-theme="dark"] .photo-ring {
  border-color: var(--accent) !important;
}

/* Surface dots → dark grid */
[data-theme="dark"] .surface-dots {
  background-color: var(--surface) !important;
}

/* Button text color contrast */
[data-theme="dark"] .btn-accent {
  color: #09090b !important;
}

/* Shadow adjustments */
[data-theme="dark"] .shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4) !important;
}

/* Ring pulse → amber */
@keyframes ringPulseDark {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
  }
}

[data-theme="dark"] .photo-ring {
  animation-name: ringPulseDark;
}

/* Inline styles: availability badge */
[data-theme="dark"] [style*="rgba(5, 150, 105"] {
  background: rgba(52, 211, 153, 0.08) !important;
  border-color: rgba(52, 211, 153, 0.25) !important;
}

/* Footer emerald CTA */
[data-theme="dark"] .bg-emerald-50\/50 {
  background-color: rgba(52, 211, 153, 0.08) !important;
}

/* Theme toggle transition */
html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme="dark"] body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ════ BENTO GRID ════ */
.bento-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 18px;
  z-index: 1;
}

@media (min-width: 1025px) {
  .bento-hero {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento-wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento-std {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-wide-low {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(240px, auto);
  }

  .bento-hero {
    grid-column: span 2;
    grid-row: span 2;
  }

  .bento-wide {
    grid-column: span 2;
  }

  .bento-std {
    grid-column: span 1;
  }

  .bento-wide-low {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-hero,
  .bento-wide,
  .bento-wide-low,
  .bento-std {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-card {
    min-height: 280px;
  }
}

/* ════ CARD BASE — Glassmorphism + dual-theme ════ */
.bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;

  /* Light: white pur, ombre bleue ample, bordure très fine */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgb(229 231 235);
  /* gray-200 */
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 12px 32px -8px rgba(29, 78, 216, 0.08),
    0 24px 48px -12px rgba(15, 23, 42, 0.06);

  transition:
    transform 0.5s var(--ease-spring),
    box-shadow 0.5s var(--ease-spring),
    border-color 0.4s var(--ease-spring);
}

[data-theme="dark"] .bento-card {
  background: rgba(39, 39, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 12px 32px -8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Glow ring (animated on hover) ── */
.bento-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg,
      rgba(var(--accent-rgb), 0) 0%,
      rgba(var(--accent-rgb), 0) 40%,
      rgba(var(--accent-rgb), 0.45) 50%,
      rgba(var(--accent-rgb), 0) 60%,
      rgba(var(--accent-rgb), 0) 100%);
  background-size: 250% 250%;
  background-position: 100% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease-spring), background-position 1.2s var(--ease-spring);
  pointer-events: none;
  z-index: 5;
}

/* Hover lift + shadow + glow */
.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 48px -8px rgba(var(--accent-rgb), 0.18),
    0 32px 64px -12px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .bento-card:hover {
  border-color: rgba(var(--accent-rgb), 0.40);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 24px 56px -8px rgba(var(--accent-rgb), 0.18),
    0 32px 64px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bento-card:hover::before {
  opacity: 1;
  background-position: 0% 0%;
}

/* ════ HERO CARD — NutriTracker SaaS Premium ════ */
/* NutriTracker brand color (vert/teal du site vitrine) */
.bento-card-hero {
  --nt-rgb: 16, 185, 129;
  /* emerald-500 */
  --nt-dark-rgb: 5, 150, 105;
  /* emerald-600 */
  flex-direction: row;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle textured backdrop on the hero — gradient + dotted grid */
.bento-card-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 90% at 100% 100%, rgba(var(--nt-rgb), 0.18), transparent 55%),
    radial-gradient(120% 80% at 0% 0%, rgba(var(--nt-rgb), 0.08), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.07) 1px, transparent 0);
  background-size: 100% 100%, 100% 100%, 22px 22px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
  transition: opacity 0.5s var(--ease-spring);
}

[data-theme="dark"] .bento-card-hero::after {
  background:
    radial-gradient(140% 90% at 100% 100%, rgba(var(--nt-rgb), 0.22), transparent 55%),
    radial-gradient(120% 80% at 0% 0%, rgba(var(--nt-rgb), 0.10), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 100% 100%, 100% 100%, 22px 22px;
}

.bento-card-hero:hover::after {
  opacity: 1;
}

/* Left content block */
.bento-card-hero .body {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 50%;
  padding: 1.75rem 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* NutriTracker logo chip */
.nt-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 11px 5px 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .nt-logo {
  background: rgba(24, 24, 27, 0.65);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nt-logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nt-logo-text {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg1);
}

.nt-logo-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--fg3);
  margin-left: 2px;
}

/* Glass tags column */
.nt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* ── PHONE MOCKUP STAGE ── */
.nt-phone-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: 1;
  pointer-events: none;
  perspective: 1400px;
  perspective-origin: 30% 50%;
}

/* Glow halo behind the phone */
.nt-phone-stage::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-45%, -50%);
  background:
    radial-gradient(ellipse at center,
      rgba(var(--nt-rgb), 0.45) 0%,
      rgba(var(--nt-rgb), 0.25) 25%,
      rgba(var(--nt-rgb), 0.10) 50%,
      transparent 70%);
  filter: blur(40px);
  transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
  opacity: 0.85;
}

[data-theme="dark"] .nt-phone-stage::before {
  background:
    radial-gradient(ellipse at center,
      rgba(var(--nt-rgb), 0.55) 0%,
      rgba(var(--nt-rgb), 0.30) 25%,
      rgba(var(--nt-rgb), 0.12) 50%,
      transparent 70%);
  opacity: 0.9;
}

.bento-card-hero:hover .nt-phone-stage::before {
  opacity: 1;
  transform: translate(-45%, -55%) scale(1.05);
}

/* iPhone Frame */
.nt-phone {
  position: absolute;
  top: 2%;
  right: -2%;
  width: 290px;
  aspect-ratio: 250 / 510;
  transform-style: preserve-3d;
  transform:
    rotateY(-15deg) rotateX(8deg) rotate(-4deg);
  transition: transform 0.7s var(--ease-spring);
  filter:
    drop-shadow(0 30px 40px rgba(15, 23, 42, 0.20)) drop-shadow(0 12px 18px rgba(var(--nt-rgb), 0.22));
  will-change: transform;
}

[data-theme="dark"] .nt-phone {
  filter:
    drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 12px 18px rgba(var(--nt-rgb), 0.30));
}

.bento-card-hero:hover .nt-phone {
  transform:
    rotateY(-9deg) rotateX(5deg) rotate(-2deg) translateY(-8px);
}

/* Outer titanium body */
.nt-phone-body {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background:
    linear-gradient(145deg, #2d2d2f 0%, #1a1a1c 35%, #131315 100%);
  padding: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px 1px rgba(0, 0, 0, 0.5);
}

/* Side buttons (subtle) */
.nt-phone-body::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 22%;
  width: 2.5px;
  height: 14%;
  background: linear-gradient(90deg, #0a0a0c, #1f1f21);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 22px 0 #1a1a1c, 0 38px 0 #1a1a1c;
}

.nt-phone-body::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 30%;
  width: 2.5px;
  height: 18%;
  background: linear-gradient(270deg, #0a0a0c, #1f1f21);
  border-radius: 0 2px 2px 0;
}

/* Inner screen */
.nt-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
  transform: translateZ(0);
}

.nt-phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Dynamic Island */
.nt-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 18px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 8px rgba(0, 0, 0, 0.4);
}

.nt-island::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a4358 0%, #0a1a22 100%);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Screen reflection (very subtle gloss — corner only, doesn't haze the screen) */
.nt-phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 30%;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.02) 60%,
      transparent 100%);
  pointer-events: none;
  z-index: 4;
  border-radius: 24px 0 0 0;
}

/* Responsive: hero collapses to column on tablet */
@media (max-width: 1024px) {
  .bento-card-hero {
    flex-direction: column;
  }

  .bento-card-hero .body {
    max-width: 100%;
    padding: 1.5rem;
  }

  .nt-phone-stage {
    position: relative;
    width: 100%;
    height: 240px;
    flex-shrink: 0;
  }

  .nt-phone {
    top: 5%;
    right: 50%;
    transform: translateX(50%) rotateY(-12deg) rotateX(6deg) rotate(-3deg);
    width: 190px;
  }

  .bento-card-hero:hover .nt-phone {
    transform: translateX(50%) rotateY(-7deg) rotateX(3deg) rotate(-2deg) translateY(-6px);
  }
}

@media (max-width: 640px) {
  .nt-phone {
    width: 170px;
    top: 3%;
  }
}

/* ════ WIDE CARDS (image left, content right) ════ */
.bento-card-wide {
  flex-direction: row;
}

.bento-card-wide .media {
  position: relative;
  width: 42%;
  flex-shrink: 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.bento-card-wide .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.7s var(--ease-spring);
  padding: 0.85rem;
}

.bento-card-wide:hover .media img {
  transform: scale(1.05);
}

/* no overlay needed — the mask handles the fade */
.bento-card-wide .media::after {
  content: none;
}

.bento-card-wide .body {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* ════ STD CARDS (icon + content, no image) ════ */
.bento-card-std {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Subtle radial accent in corner */
.bento-card-std::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.10), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.5s var(--ease-spring);
}

.bento-card-std:hover::after {
  opacity: 1;
}

/* ════ ICON BUBBLE ════ */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(var(--accent-rgb), 0.10);
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  transition: transform 0.4s var(--ease-spring), background 0.3s;
}

.bento-card:hover .card-icon {
  transform: scale(1.08) rotate(-3deg);
  background: rgba(var(--accent-rgb), 0.16);
}

/* tag-glass removed */
/* tag-inline now consolidated with .tag-accent globally */

/* ════ BUTTONS ════ */
.btn-demo,
.btn-gh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), background 0.25s, border-color 0.25s;
  width: 100%;
}

.btn-demo {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.25);
}

[data-theme="dark"] .btn-demo {
  color: #09090b;
}

.btn-demo:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.4);
}

.btn-gh {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.15);
}

[data-theme="dark"] .btn-gh {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
  color: #fafafa;
}

.btn-gh:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(15, 23, 42, 0.1);
  color: var(--accent);
}

[data-theme="dark"] .btn-gh:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ════ FEATURED BADGE ════ */
.badge-featured {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .badge-featured {
  background: rgba(24, 24, 27, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ════ TYPO ════ */
.card-title {
  color: var(--fg1);
  line-height: 1.3;
}

.card-desc {
  color: var(--fg2);
}

/* ════ THEME TOGGLE (demo only) ════ */
.theme-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  color: var(--fg1);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .theme-btn {
  background: rgba(24, 24, 27, 0.7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.surface-bg {
  background-color: var(--surface);
}

/* Scroll-in */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bento-card,
  .bento-card *,
  .card-icon {
    transition: none !important;
  }
}

/* ==========================================================================
   HERO SAAS REVAMP ELEMENTS
   ========================================================================== */

/* Animated Text Gradient */
.text-gradient-animated {
  background: linear-gradient(to right, #2563eb, #06b6d4, #2563eb);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 4s linear infinite;
  display: inline-block;
}

[data-theme="dark"] .text-gradient-animated {
  background: linear-gradient(to right, #fbbf24, var(--accent), #f59e0b);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Hero Spotlight Glow */
.hero-spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0.15;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

[data-theme="dark"] .hero-spotlight {
  opacity: 0.1;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
}

/* ---- SVG Organic Blob ---- */
.hero-blob-svg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

#heroBlob {
  d: path("M200,40 C230,35 260,20 300,55 C340,90 355,120 350,160 C345,200 375,230 360,280 C345,330 315,365 270,370 C225,375 210,340 180,320 C150,300 110,350 70,320 C30,290 25,250 40,210 C55,170 30,140 55,100 C80,60 120,30 160,35 C180,38 190,42 200,40Z");
  animation: blobMorph 12s ease-in-out infinite;
}

@keyframes blobMorph {
  0%, 100% {
    d: path("M200,40 C230,35 260,20 300,55 C340,90 355,120 350,160 C345,200 375,230 360,280 C345,330 315,365 270,370 C225,375 210,340 180,320 C150,300 110,350 70,320 C30,290 25,250 40,210 C55,170 30,140 55,100 C80,60 120,30 160,35 C180,38 190,42 200,40Z");
  }
  33% {
    d: path("M210,30 C250,25 290,40 330,80 C370,120 365,155 340,185 C315,215 380,250 350,300 C320,350 280,385 230,380 C180,375 170,330 150,290 C130,250 70,280 45,240 C20,200 40,160 60,130 C80,100 45,65 85,45 C125,25 165,50 185,40 C195,35 205,32 210,30Z");
  }
  66% {
    d: path("M195,45 C240,30 275,50 310,90 C345,130 330,170 345,210 C360,250 340,290 310,330 C280,370 240,375 200,360 C160,345 145,300 120,270 C95,240 40,270 30,225 C20,180 55,150 50,115 C45,80 75,45 120,40 C165,35 175,55 190,48 C192,47 194,46 195,45Z");
  }
}

.blob-stop-1 {
  stop-color: #1d4ed8;
  stop-opacity: 1;
}

.blob-stop-2 {
  stop-color: #1d4ed8;
  stop-opacity: 0.5;
}

[data-theme="dark"] .blob-stop-1 {
  stop-color: #f59e0b;
  stop-opacity: 0.9;
}

[data-theme="dark"] .blob-stop-2 {
  stop-color: #f59e0b;
  stop-opacity: 0.3;
}

/* Floating Badges */
.glass-badge {
  background: transparent;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 20;
  animation: float 4s ease-in-out infinite;
}

[data-theme="dark"] .glass-badge {
  background: transparent;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

.delay-float-1 {
  animation-delay: 0.5s;
}

.delay-float-2 {
  animation-delay: 1.0s;
}

.delay-float-3 {
  animation-delay: 1.5s;
}

.delay-float-4 {
  animation-delay: 2.0s;
}

/* ================================================
       CONCEPT B — Sticky Editorial Layout (Polished)
       ================================================ */

    .exp-section-b {
      position: relative;
    }

    /* ---- Experience Block (with connector line) ---- */
    .exp-block {
      display: flex;
      flex-direction: column;
      padding-bottom: 4rem;
      margin-bottom: 4rem;
      position: relative;
    }

    .exp-block:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
    }

    @media (min-width: 1024px) {
      .exp-block {
        flex-direction: row;
        gap: 0;
        padding-bottom: 5rem;
        margin-bottom: 5rem;
      }
    }

    /* ---- Subtle Vertical Connector Line ---- */
    .exp-connector {
      display: none;
    }

    @media (min-width: 1024px) {
      .exp-connector {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 4rem;
        flex-shrink: 0;
        position: relative;
      }

      /* The vertical line */
      .exp-connector::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(180deg,
            rgba(var(--accent-rgb), 0.15) 0%,
            rgba(var(--accent-rgb), 0.08) 100%);
      }

      /* Glowing dot on the line */
      .exp-connector-dot {
        position: sticky;
        top: 10rem;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4),
          0 0 20px rgba(var(--accent-rgb), 0.15);
        z-index: 2;
        flex-shrink: 0;
      }

      /* Extend line past last block */
      .exp-block:last-child .exp-connector::before {
        bottom: 2rem;
      }
    }

    /* ---- Sticky Left Column ---- */
    .exp-sticky-col {
      flex-shrink: 0;
    }

    @media (min-width: 1024px) {
      .exp-sticky-col {
        width: 320px;
        position: sticky;
        top: 8rem;
        align-self: flex-start;
        text-align: right;
        padding-right: 0;
      }
    }

    /* ---- Big Editorial Date ---- */
    .editorial-year {
      font-family: 'Sora', sans-serif;
      font-size: 3.5rem;
      font-weight: 800;
      line-height: 1;
      -webkit-text-stroke: 1.5px var(--accent);
      color: transparent;
      letter-spacing: -0.03em;
      transition: all 0.4s ease;
    }

    /* Current year: animated gradient fill */
    .editorial-year.year-current {
      -webkit-text-stroke: 0;
      background: linear-gradient(to right, #2563eb, #06b6d4, #2563eb);
      background-size: 200% auto;
      color: transparent;
      -webkit-background-clip: text;
      background-clip: text;
      animation: shine 4s linear infinite;
    }

    [data-theme="dark"] .editorial-year.year-current {
      background: linear-gradient(to right, #fbbf24, var(--accent), #f59e0b);
      background-size: 200% auto;
      -webkit-background-clip: text;
      background-clip: text;
    }

    @keyframes shine {
      to { background-position: 200% center; }
    }

    /* Older years: hollow with accent stroke */
    .editorial-year.year-past {
      opacity: 0.85;
      color: transparent;
      -webkit-text-stroke: 1.5px var(--accent);
    }

    .exp-block:hover .editorial-year.year-past {
      opacity: 1;
      -webkit-text-stroke: 1.5px var(--accent);
      color: rgba(var(--accent-rgb), 0.08);
    }

    [data-theme="dark"] .editorial-year.year-past {
      color: transparent;
      -webkit-text-stroke: 1.5px var(--accent);
      opacity: 0.6;
    }
    
    [data-theme="dark"] .exp-block:hover .editorial-year.year-past {
      opacity: 1;
      -webkit-text-stroke: 1.5px var(--accent);
      color: rgba(var(--accent-rgb), 0.1);
    }

    [data-theme="dark"] .editorial-year {
      -webkit-text-stroke-color: var(--accent);
    }

    /* ---- Company Card ---- */
    .company-card {
      margin-top: 1.25rem;
      padding: 1rem 1.25rem;
      border-radius: 12px;
      border: 1px solid transparent;
      background: transparent;
      transition: all 0.35s ease;
    }

    .exp-block:hover .company-card {
      border-color: var(--border, #e2e8f0);
      background: rgba(var(--accent-rgb), 0.03);
    }
    
    [data-theme="dark"] .exp-block:hover .company-card {
      border-color: rgba(var(--accent-rgb), 0.3);
      background: rgba(var(--accent-rgb), 0.06);
    }

    .company-name {
      font-size: 1.125rem;
      font-weight: 700;
      color: var(--text);
    }

    .company-role {
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--accent);
      margin-top: 0.25rem;
    }

    .company-date {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.75rem;
      color: var(--text-3, #6b7280);
      display: flex;
      align-items: flex-start;
      gap: 6px;
      margin-top: 0.5rem;
    }

    .company-date i {
      flex-shrink: 0;
      margin-top: 2px;
    }

    @media (min-width: 1024px) {
      .company-date {
        justify-content: flex-end;
      }
    }

    /* ---- Right Content Column ---- */
    .exp-content-col {
      flex: 1;
      min-width: 0;
    }

    /* ---- Hover Focus Container ---- */
    .exp-content-inner {
      padding: 1.75rem 2rem;
      border-radius: 16px;
      border: 1px solid transparent;
      background: transparent;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .exp-block:hover .exp-content-inner {
      background: rgba(255, 255, 255, 0.5);
      border-color: var(--border, #e2e8f0);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02);
    }

    [data-theme="dark"] .exp-block:hover .exp-content-inner {
      background: rgba(24, 24, 27, 0.4);
      border-color: var(--border);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.1);
    }

    /* Section divider inside content */
    .content-section-label {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.6875rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--text-3, #6b7280);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .content-section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border, #e2e8f0);
    }

    /* ---- Mission items with chevron icon ---- */
    .mission-item {
      position: relative;
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      padding: 0.75rem 0;
      font-size: 0.9375rem;
      line-height: 1.65;
      color: var(--text-2, #374151);
      transition: all 0.3s ease;
    }

    .mission-item .mission-icon {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      color: var(--accent);
      opacity: 0.6;
      margin-top: 3px;
      transition: all 0.3s ease;
    }

    .mission-item:hover .mission-icon {
      opacity: 1;
      transform: translateX(2px);
    }

    .mission-item:hover {
      color: var(--text, #111827);
    }

    /* ---- Glassmorphism Tags ---- */
    .tag-glass {
      display: inline-flex;
      align-items: center;
      padding: 5px 12px;
      border-radius: 8px;
      background: rgba(var(--accent-rgb), 0.06);
      border: 1px solid rgba(var(--accent-rgb), 0.15);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: var(--accent);
      font-family: 'Sora', sans-serif;
      font-size: 0.75rem;
      font-weight: 600;
      white-space: nowrap;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: default;
    }

    .tag-glass:hover {
      background: rgba(var(--accent-rgb), 0.12);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.1);
    }

    /* ---- Mobile adjustments ---- */
    @media (max-width: 1023px) {
      .editorial-year {
        font-size: 3rem;
        -webkit-text-stroke-width: 1px;
      }

      .exp-block {
        padding-bottom: 2.5rem;
        margin-bottom: 2.5rem;
        border-bottom: 1px solid var(--border, #e2e8f0);
      }

      .exp-block:last-child {
        border-bottom: none;
      }

      .exp-sticky-col {
        margin-bottom: 1.5rem;
        text-align: left;
      }

      .exp-content-inner {
        padding: 0;
      }

      .exp-content-inner:hover {
        background: transparent;
        border-color: transparent;
        backdrop-filter: none;
        transform: none;
        box-shadow: none;
      }

      .mission-item {
        font-size: 0.875rem;
      }
    }

    /* ---- Scroll reveal ---- */
    .reveal-up {
      opacity: 0;
      transform: translateY(1.5rem);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

@media (min-width: 1024px) { .editorial-year { font-size: 5rem; } }