/* ═══════════════════════════════════════════════════════════════
   WEBSITES MOLDOVA — PORTFOLIO CSS
   Ancient Elegance × Modern Futurism
═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────── */
:root {
  --navy:        #06080f;
  --navy-2:      #0a0e1a;
  --navy-3:      #0d1320;
  --blue-deep:   #0f1e35;
  --blue-mid:    #1a3a5c;
  --blue-accent: #2463a6;
  --blue-glow:   #3b82f6;
  --blue-soft:   #4a9eff;
  --blue-pale:   #93c5fd;
  --white:       #ffffff;
  --off-white:   #e2eaf7;
  --muted:       #6b82a8;
  --glass-bg:    rgba(255, 255, 255, 0.05);
  --glass-border:rgba(255, 255, 255, 0.10);
  --glass-blur:  blur(20px);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Sora', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-title:   'Outfit', sans-serif;

  /* Gold accent — adds warmth alongside the cold blue */
  --gold:         #c8a96e;
  --gold-dim:     rgba(200,169,110,0.18);
  --gold-glow:    rgba(200,169,110,0.35);
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── CUSTOM CURSOR ──────────────────────────────────── */
#cursor {
  width: 8px; height: 8px;
  background: var(--blue-soft);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
}
#cursor-follow {
  width: 36px; height: 36px;
  border: 1px solid rgba(74,158,255,0.35);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.25s cubic-bezier(.23,1,.32,1), border-color 0.3s;
}
body:hover #cursor-follow { border-color: rgba(74,158,255,0.6); }

/* ── CONTAINER ──────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── SECTION TITLE FONT OVERRIDE (Outfit — thin) ────── */
.section-title,
.about-heading,
.projects-heading,
.skills-heading,
.work-heading,
.chapter-title,
.pcf-title {
  font-family: var(--font-title) !important;
  letter-spacing: -0.025em;
  font-weight: 300;   /* thin — elegant, not heavy */
}
/* Italic em spans fall back to Cormorant for editorial serif contrast */
.section-title em,
.about-heading em,
.skills-heading em,
.work-heading em {
  font-family: var(--font-display) !important;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--gold);   /* warm gold on italic accents */
}
/* Bento titles — slightly heavier than body, still light */
.bento-title {
  font-family: var(--font-title) !important;
  font-weight: 400;
  letter-spacing: -0.02em;
}
/* Hero title stays in Cormorant — classical display centerpiece */

/* ══════════════════════════════════════════════════════
   LOADING SCREEN — CINEMATIC REDESIGN
══════════════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: #020408;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s ease, visibility 1s;
  overflow: hidden;
}
#loader.fade-out { opacity: 0; visibility: hidden; }

/* Particle canvas behind everything */
#loader-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Subtle scan lines */
.loader-scan-lines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.12) 3px, rgba(0,0,0,0.12) 4px
  );
  pointer-events: none; z-index: 1;
}

/* Center content */
.loader-content {
  text-align: center;
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 36px;
}

/* Ring + initials */
.loader-logo-ring {
  position: relative;
  width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.loader-ring-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  animation: ringRotate 4s linear infinite;
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.ring-progress {
  animation: ringFill 2s 0.5s cubic-bezier(.4,0,.2,1) forwards;
  transform-origin: center;
  transform: rotate(-90deg);
}
@keyframes ringFill {
  to { stroke-dashoffset: 0; }
}
.ring-dot {
  transform-origin: 100px 100px;
  animation: ringRotate 4s linear infinite;
}

.loader-initials {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative; z-index: 1;
}
.init-o { opacity: 0; animation: slideUp 0.7s 0.4s cubic-bezier(.23,1,.32,1) forwards; }
.init-dot { color: var(--blue-soft); opacity: 0; animation: slideUp 0.7s 0.65s cubic-bezier(.23,1,.32,1) forwards;
  text-shadow: 0 0 20px rgba(74,158,255,0.8); }
.init-d { opacity: 0; animation: slideUp 0.7s 0.55s cubic-bezier(.23,1,.32,1) forwards; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Status block */
.loader-status {
  display: flex; flex-direction: column; gap: 14px;
  min-width: 320px;
}
.loader-status-row {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  opacity: 0; animation: slideUp 0.6s 1s cubic-bezier(.23,1,.32,1) forwards;
}
.loader-status-key { color: rgba(255,255,255,0.25); }
.loader-status-val {
  color: var(--blue-soft);
  text-shadow: 0 0 12px rgba(74,158,255,0.5);
  animation: statusPulse 2s 1.2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.5; }
}

/* Progress bar */
.loader-bar-wrap {
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.06);
  position: relative;
  border-radius: 2px;
  overflow: visible;
  opacity: 0; animation: slideUp 0.6s 1.1s cubic-bezier(.23,1,.32,1) forwards;
}
.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-accent), var(--blue-soft));
  width: 0; border-radius: 2px;
  position: relative; transition: width 0.15s linear;
  box-shadow: 0 0 12px rgba(74,158,255,0.6), 0 0 24px rgba(74,158,255,0.3);
}
.loader-bar::after {
  content: '';
  position: absolute; right: -1px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 16px rgba(74,158,255,0.9), 0 0 32px rgba(74,158,255,0.5);
}
.loader-bar-percent {
  position: absolute; right: 0; top: -22px;
  font-family: var(--font-mono);
  font-size: 10px; color: var(--blue-pale);
  letter-spacing: 0.1em;
  transition: right 0.15s linear;
}

/* Terminal text line */
.loader-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 8px;
  min-height: 20px;
  opacity: 0; animation: slideUp 0.6s 1.2s cubic-bezier(.23,1,.32,1) forwards;
}
.loader-prompt { color: var(--blue-soft); font-size: 14px; }
.loader-cursor-blink {
  color: var(--blue-soft);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.loader-version {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.25em; text-transform: uppercase;
  opacity: 0; animation: slideUp 0.6s 1.4s cubic-bezier(.23,1,.32,1) forwards;
}

/* Corner labels */
.loader-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(74,158,255,0.2);
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0; animation: slideUp 0.6s 1.5s forwards;
}
.lc-bracket { color: rgba(74,158,255,0.4); }
.tl { top: 28px; left: 28px; }
.tr { top: 28px; right: 28px; }
.bl { bottom: 28px; left: 28px; }
.br { bottom: 28px; right: 28px; }

/* Crosshair corner decorations */
.loader-crosshair {
  position: absolute;
  width: 20px; height: 20px;
  pointer-events: none;
  opacity: 0; animation: slideUp 0.6s 1.6s forwards;
}
.loader-crosshair::before,
.loader-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(74,158,255,0.25);
}
.loader-crosshair::before { width: 100%; height: 1px; top: 50%; }
.loader-crosshair::after  { width: 1px; height: 100%; left: 50%; }
.tl-cross { top: 60px; left: 60px; }
.tr-cross { top: 60px; right: 60px; }
.bl-cross { bottom: 60px; left: 60px; }
.br-cross { bottom: 60px; right: 60px; }

/* ══════════════════════════════════════════════════════
   DYNAMIC ISLAND HEADER
══════════════════════════════════════════════════════ */
#nav-island {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#nav-island.visible { opacity: 1; }

.island-inner {
  display: flex; align-items: center; gap: 48px;
  padding: 12px 36px;
  background: rgba(6, 8, 15, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 100px;
  box-shadow:
    0 4px 32px rgba(0,0,0,0.6),
    0 0 0 1px rgba(74,158,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: all 0.4s cubic-bezier(.23,1,.32,1);
  white-space: nowrap;
}
.island-inner:hover {
  background: rgba(10, 14, 26, 0.85);
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    0 8px 48px rgba(0,0,0,0.7),
    0 0 0 1px rgba(74,158,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.island-logo {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  padding: 4px 12px 4px 8px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.island-nav {
  display: flex; gap: 36px;
}
.island-nav a {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  transition: color 0.25s;
  padding: 4px 0;
  position: relative;
}
.island-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--blue-soft);
  transition: width 0.3s;
}
.island-nav a:hover { color: var(--white); }
.island-nav a:hover::after { width: 100%; }

/* Language switcher */
.island-lang {
  position: relative;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.lang-active {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; outline: none;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.25s;
}
.lang-active:hover { color: var(--white); }
.lang-active svg { opacity: 0.5; transition: transform 0.3s, opacity 0.3s; }
.island-lang.open .lang-active svg { transform: rotate(180deg); opacity: 1; }

.lang-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: rgba(6,8,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  min-width: 52px;
}
.island-lang.open .lang-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-opt {
  background: none; border: none; outline: none;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.lang-opt:hover {
  background: rgba(74,158,255,0.1);
  color: var(--white);
}
.lang-opt.active {
  color: var(--blue-soft);
  background: rgba(74,158,255,0.08);
}

/* ══════════════════════════════════════════════════════
   HERO — SCROLL-ZOOM MUSEUM
══════════════════════════════════════════════════════ */

/* The wrapper is tall = it provides the scroll distance for the zoom */
#hero-zoom-wrapper {
  /* 300vh = user scrolls 3 screens worth to complete the zoom */
  height: 300vh;
  position: relative;
}

/* The sticky container stays visible during the full scroll length */
#hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* Image container — transform-origin targets the center painting */
#hero-img-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
}
#hero-museum-img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Zoom origin = center of the main painting in the image */
  transform-origin: 50% 43%;
  transform: scale(1);
  will-change: transform;
  transition: transform 0.05s linear;
  display: block;
}

/* Dark radial vignette on the image */
.museum-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 70% 70% at 50% 43%,
    transparent 25%,
    rgba(6,8,15,0.5) 70%,
    rgba(6,8,15,0.92) 100%
  );
  pointer-events: none;
}

/* Full black cover that fades in at the end of zoom */
#zoom-blackout {
  position: absolute; inset: 0;
  background: var(--navy);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* Particles float on top of museum image */
.particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.particle {
  position: absolute;
  width: 2px; height: 2px; border-radius: 50%;
  background: var(--blue-soft); opacity: 0;
  animation: particleFly var(--dur) var(--delay) ease-in-out infinite;
}
@keyframes particleFly {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  20%  { opacity: 0.5; }
  80%  { opacity: 0.25; }
  100% { opacity: 0; transform: translateY(-120px) translateX(var(--drift)); }
}

/* ── HERO CONTENT TEXT ─────────────────────────────── */
.hero-content {
  position: relative; z-index: 4;
  text-align: center;
  padding: 0 20px;
  will-change: opacity, transform;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: clamp(9px, 1.1vw, 12px);
  color: var(--blue-pale);
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 220px);
  font-weight: 600; line-height: 0.9;
  letter-spacing: -0.03em; color: var(--white);
  margin-bottom: 28px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.title-port { display: inline; }
.title-folio {
  display: inline; font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.55);
}
.hero-name {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 24px;
}
.name-line {
  flex: 1; max-width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
}
.hero-name .name-line:last-child {
  background: linear-gradient(90deg, rgba(255,255,255,0.3), transparent);
}
.name-text {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.5vw, 16px); font-weight: 300;
  color: var(--off-white); letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px); font-weight: 300;
  color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 52px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.hero-sub em { color: rgba(255,255,255,0.8); font-style: italic; }

.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(255,255,255,0.45); letter-spacing: 0.2em;
}
.scroll-line {
  width: 1px; height: 60px;
  background: rgba(255,255,255,0.12);
  position: relative; overflow: hidden;
}
.scroll-dot {
  width: 1px; height: 20px; background: var(--blue-soft);
  position: absolute; top: -20px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: -20px; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 60px; opacity: 0; }
}

/* Reveal animations (triggered by JS after loader) */
.reveal-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(.23,1,.32,1), transform 0.9s cubic-bezier(.23,1,.32,1);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.35s; }
.delay-4 { transition-delay: 0.5s; }
.delay-5 { transition-delay: 0.65s; }
.delay-6 { transition-delay: 0.8s; }

/* ── ZOOM LABEL ────────────────────────────────────── */
.zoom-label {
  position: absolute; bottom: 48px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s;
  white-space: nowrap;
}
.zoom-label.show { opacity: 1; }
.zoom-label-line {
  width: 32px; height: 1px;
  background: rgba(255,255,255,0.2);
}

/* ══════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════ */
#about {
  position: relative;
  padding: 100px 0 120px;
  background: transparent; /* painting bg handles the color */
  overflow: hidden;
}

/* ── PAINTING BACKGROUND IN ABOUT ───────────────── */
.about-painting-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.about-painting-img {
  width: 100%; height: 120%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.22) saturate(0.65) contrast(1.1);
  transform: translateY(0);
  will-change: transform;
}
/* Seamless top fade from the zoom blackout/navy */
.about-painting-fade-top {
  position: absolute; top: 0; left: 0; right: 0; height: 260px;
  background: linear-gradient(to bottom, var(--navy) 0%, transparent 100%);
}
/* Bottom dissolves to navy-3 before projects section */
.about-painting-fade-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(to top, var(--navy-2) 0%, var(--navy-2) 15%, transparent 100%);
}
/* Overall dark tint for text legibility */
.about-painting-overlay {
  position: absolute; inset: 0;
  background: rgba(4, 7, 16, 0.58);
}

/* Zoom container wraps painting frame */
.painting-zoom {
  transform-origin: 50% 50%;
  transform: scale(1);
  will-change: transform;
}

.about-bg { position: absolute; inset: 0; z-index: 1; }
.about-orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,99,166,0.15), transparent 70%);
  top: -100px; right: -100px;
  animation: orbFloat1 18s ease-in-out infinite;
}

.about-layout {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: 60px;
  align-items: start;
  position: relative; z-index: 2;
}

.about-label {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding-top: 16px;
}
.label-rotated {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.label-number {
  font-family: var(--font-display);
  font-size: 48px;
  color: rgba(255,255,255,0.06);
  font-weight: 700;
}

.about-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--blue-soft);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 20px;
}
.about-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 500; line-height: 1.15;
  color: var(--white); margin-bottom: 32px;
}
.about-heading em { font-style: italic; color: var(--blue-pale); }

.about-text {
  font-size: 15px; font-weight: 300; line-height: 1.9;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  max-width: 600px;
}

.about-motto {
  display: flex; align-items: center; gap: 20px;
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: 18px; font-style: italic;
  color: rgba(255,255,255,0.4);
}
.motto-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12));
}
.about-motto .motto-line:last-child {
  background: linear-gradient(90deg, rgba(255,255,255,0.12), transparent);
}

/* Glass card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow:
    0 0 80px rgba(36,99,166,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: sticky; top: 100px;
}

.stat-item {
  padding: 20px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 600; line-height: 1;
  color: var(--white);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.stat-divider {
  height: 1px; background: var(--glass-border);
}
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 20px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--blue-pale);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 100px;
  padding: 4px 12px;
  letter-spacing: 0.05em;
}

/* Fade in animation */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════
   HERO — GALLERY SCENE
══════════════════════════════════════════════════════ */
#hero-zoom-wrapper {
  height: 300vh;
  position: relative;
}
#hero-sticky {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* ── MUSEUM BACKGROUND ───────────────────────────── */
#hero-img-wrap {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
#hero-museum-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transform: scale(1.02);
  filter: brightness(0.38) saturate(0.8);
}
.museum-dark {
  position: absolute; inset: 0;
  background: rgba(3, 5, 12, 0.55);
  pointer-events: none;
}
.museum-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 80% 80% at 50% 40%,
    transparent 30%,
    rgba(3,5,10,0.65) 80%,
    rgba(3,5,10,0.97) 100%
  );
  pointer-events: none;
  transition: background 0.1s;
}
#zoom-blackout {
  position: absolute; inset: 0;
  background: var(--navy);
  opacity: 0; pointer-events: none; will-change: opacity;
}

/* ── SPOTLIGHTS — z-index 2 (behind paintings at z-index 3) ── */
.spotlight-layer {
  position: absolute; inset: 0;
  z-index: 2; pointer-events: none;
}
.spotlight {
  position: absolute; top: 0;
}
/* All spotlight cones */
.spotlight::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
}
/* Subtle side spotlights */
.spot-left-side  { left: 18%; }
.spot-right-side { left: 78%; }
.spot-left-side::before, .spot-right-side::before {
  width: 200px; height: 100vh;
  background: conic-gradient(
    from -5deg at 50% 0%,
    transparent 0deg,
    rgba(255,240,190,0.04) 5deg,
    rgba(255,248,210,0.08) 10deg,
    rgba(255,240,190,0.04) 15deg,
    transparent 20deg
  );
}
/* CENTER — powerful, flickers. Renders BEHIND painting (z-index 2 < painting z-index 3) */
.spot-center { left: 50%; transform: translateX(-50%); }
.spot-center::before {
  width: 500px; height: 100vh;
  background: conic-gradient(
    from -12deg at 50% 0%,
    transparent 0deg,
    rgba(255,246,200,0.06) 6deg,
    rgba(255,252,220,0.22) 12deg,
    rgba(255,255,235,0.38) 18deg,
    rgba(255,255,235,0.42) 24deg,
    rgba(255,252,220,0.22) 30deg,
    rgba(255,246,200,0.06) 36deg,
    transparent 42deg
  );
  animation: spotFlicker 5s ease-in-out infinite;
}
@keyframes spotFlicker {
   0%  { opacity: 1.00; }
  64%  { opacity: 1.00; }
  65%  { opacity: 0.12; }
  66%  { opacity: 0.85; }
  67%  { opacity: 0.08; }
  68%  { opacity: 1.00; }
 100%  { opacity: 1.00; }
}
/* Wall halo glow — strong, behind painting */
.spot-halo {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  width: 560px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%,
    rgba(255,248,200,0.22) 0%,
    rgba(255,240,160,0.10) 35%,
    transparent 68%
  );
  filter: blur(24px);
  animation: haloFlicker 5ms ease-in-out infinite;
  animation-delay: 0.15s;
  pointer-events: none;
}
@keyframes haloFlicker {
  0%   { opacity: 1.00; }
  64%  { opacity: 1.00; }
  65%  { opacity: 0.15; }
  67%  { opacity: 0.08; }
  68%  { opacity: 1.00; }
 100%  { opacity: 1.00; }
}

/* ── THREE PAINTINGS ROW — z-index 3 ─────────────── */
.gallery-row {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 0;
  pointer-events: none;
}

/* SIDE paintings — aligned with center painting */
.side-painting {
  position: absolute;
  top: 50%;
  display: flex; align-items: center;
  width: clamp(200px, 24vw, 360px);
  opacity: 0;
  transition: opacity 1.4s 0.6s cubic-bezier(.23,1,.32,1),
              transform 1.6s 0.5s cubic-bezier(.23,1,.32,1);
}
.side-painting.visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0) !important;
}
.side-left  { left: 0; transform: translateY(-50%) translateX(-40px); }
.side-right { right: 0; transform: translateY(-50%) translateX(40px); }

.side-painting-img {
  width: 100%; height: auto;
  max-height: 48vh;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.70) saturate(0.85) contrast(1.05);
  display: block;
}
.side-left .side-painting-img {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.2) 15%, black 45%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.2) 15%, black 45%);
}
.side-right .side-painting-img {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.2) 15%, black 45%);
  mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.2) 15%, black 45%);
}

/* CENTER painting */
.hero-painting-wrap {
  position: absolute; bottom: 190px;
  left: 50%; transform: translateX(-50%) translateY(-10px) !important;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; will-change: opacity, transform;
  z-index: 3;
}
.painting-wire {
  width: 2px; height: clamp(16px, 3.5vh, 44px);
  background: linear-gradient(rgba(200,180,100,0.4), rgba(200,180,100,0.1));
  margin-bottom: -1px;
}
/* NO FRAME — just the image */
.painting-zoom {
  transform-origin: 50% 50%;
  transform: scale(1);
  will-change: transform;
}
.painting-img {
  display: block;
  width: clamp(280px, 46vw, 720px);
  height: auto;
  max-height: 55vh;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.06) saturate(0.9);
}

/* ── TEXT BLOCKS — snap-hidden at scroll threshold ── */
.hero-text-top {
  position: absolute; z-index: 6;
  top: clamp(75px, 11vh, 120px);
  left: 0; right: 0;
  text-align: center;
  pointer-events: none;
  /* JS adds .text-hidden instantly at scroll threshold */
  transition: none;
}
.hero-text-bottom {
  position: absolute; z-index: 6;
  bottom: clamp(24px, 4.5vh, 52px);
  left: 0; right: 0;
  text-align: center;
  pointer-events: none;
  transition: none;
}
/* Load-in animation — text arrives from above */
.hero-text-top, .hero-text-bottom {
  opacity: 0; transform: translateY(-28px);
}
.hero-text-top.text-in, .hero-text-bottom.text-in {
  opacity: 1; transform: translateY(0);
  transition: opacity 1s 0.3s cubic-bezier(.23,1,.32,1),
              transform 1s 0.3s cubic-bezier(.23,1,.32,1);
}
.hero-text-bottom.text-in {
  transform: translateY(0);
  transition: opacity 1s 0.55s cubic-bezier(.23,1,.32,1),
              transform 1s 0.55s cubic-bezier(.23,1,.32,1);
}
/* Triggered fade-out with slight zoom */
.hero-text-top.text-hidden, .hero-text-bottom.text-hidden {
  opacity: 0 !important;
  transform: scale(1.06) translateY(-10px) !important;
  transition: opacity 0.7s cubic-bezier(.23,1,.32,1), transform 0.7s cubic-bezier(.23,1,.32,1) !important;
  pointer-events: none;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: clamp(9px, 1vw, 11px);
  color: var(--blue-pale);
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 190px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 180px);
  font-weight: 600; line-height: 0.9;
  letter-spacing: -0.03em; color: var(--white);
  text-shadow: 0 4px 60px rgba(0,0,0,0.7);
  margin-bottom: 20px;
}
.title-port { display: inline; }
.title-folio {
  display: inline; font-style: italic;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.5);
}
.hero-name {
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.name-line {
  flex: 1; max-width: 100px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25));
}
.hero-name .name-line:last-child {
  background: linear-gradient(90deg, rgba(255,255,255,0.25), transparent);
}
.name-text {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.3vw, 14px); font-weight: 300;
  color: var(--off-white); letter-spacing: 0.35em; text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.8vw, 22px); font-weight: 300;
  color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
}
.hero-sub em { color: rgba(255,255,255,0.75); font-style: italic; }
.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 9px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.25em;
}
.scroll-line {
  width: 1px; height: 48px; background: rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.scroll-dot {
  width: 1px; height: 16px; background: var(--blue-soft);
  position: absolute; top: -16px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%  { top:-16px; opacity:0; } 30% { opacity:1; } 100% { top:48px; opacity:0; }
}

/* ── ZOOM LABEL ──────────────────────────────────── */
.zoom-label {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%); z-index: 7;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.3em; color: rgba(255,255,255,0.25);
  text-transform: uppercase; opacity: 0;
  transition: opacity 0.5s; white-space: nowrap;
}
.zoom-label.show { opacity: 1; }
.zoom-label-line { width: 28px; height: 1px; background: rgba(255,255,255,0.18); }

/* ── PARTICLES ───────────────────────────────────── */
.particles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.particle {
  position: absolute; width: 1px; height: 1px; border-radius: 50%;
  background: rgba(255,245,200,0.55); opacity: 0;
  animation: particleFly var(--dur) var(--delay) ease-in-out infinite;
}
@keyframes particleFly {
  0%   { opacity:0; transform:translateY(0) translateX(0); }
  20%  { opacity:0.5; }
  80%  { opacity:0.2; }
  100% { opacity:0; transform:translateY(-100px) translateX(var(--drift)); }
}

/* ── CHAPTER REVEAL ──────────────────────────────── */
#chapter-reveal {
  position: absolute; inset: 0; z-index: 8;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
}
#chapter-reveal.show { opacity: 1; }
.chapter-inner {
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.chapter-line {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.chapter-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--blue-pale);
  letter-spacing: 0.4em; text-transform: uppercase;
}
.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 500; line-height: 1;
  color: var(--white); letter-spacing: -0.02em;
}

/* reveal-up/down kept for other sections */
.reveal-up { opacity:0; transform:translateY(40px); transition: opacity 0.9s cubic-bezier(.23,1,.32,1), transform 0.9s cubic-bezier(.23,1,.32,1); }
.reveal-up.visible { opacity:1; transform:translateY(0); }
.reveal-down { opacity:0; transform:translateY(-32px); transition: opacity 1s cubic-bezier(.23,1,.32,1), transform 1s cubic-bezier(.23,1,.32,1); }
.reveal-down.visible { opacity:1; transform:translateY(0); }
.delay-1{transition-delay:.15s}.delay-2{transition-delay:.30s}.delay-3{transition-delay:.45s}
.delay-4{transition-delay:.60s}.delay-5{transition-delay:.75s}.delay-6{transition-delay:.90s}


/* ══════════════════════════════════════════════════════
   SKILLS — BENTO GRID (Senior UX/UI)
══════════════════════════════════════════════════════ */
#skills {
  position: relative;
  background: var(--navy-2);
  padding: 130px 0 120px;
  overflow: hidden;
}
.skills-bg { position: absolute; inset: 0; pointer-events: none; }
.skills-orb {
  position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(36,99,166,0.10), transparent 60%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: orbFloat1 20s ease-in-out infinite;
}
.skills-header {
  text-align: center;
  margin-bottom: 72px;
}
.skills-heading {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 500;
  color: var(--white);
  margin-top: 16px;
  letter-spacing: -0.02em;
}
.skills-heading em { font-style: italic; color: var(--blue-pale); }
.skills-sub {
  font-size: 14px; font-weight: 300; line-height: 1.8;
  color: rgba(255,255,255,0.4);
  max-width: 460px;
  margin: 20px auto 0;
}

/* ── Bento grid layout ── */
.skills-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}
.bento-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 280px;
  display: flex;
  transition: transform 0.55s cubic-bezier(.23,1,.32,1),
              border-color 0.55s,
              box-shadow 0.55s;
}
.bento-wide {
  grid-column: span 2;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 28px 72px rgba(0,0,0,0.45),
              0 0 0 1px rgba(255,255,255,0.04);
}

/* Accent glow */
.bento-glow {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s;
  pointer-events: none; z-index: 0;
}
.bento-card:hover .bento-glow { opacity: 1; }
[data-accent="blue"] .bento-glow    { background: radial-gradient(ellipse at 30% 20%, rgba(74,158,255,0.08), transparent 60%); }
[data-accent="purple"] .bento-glow  { background: radial-gradient(ellipse at 30% 20%, rgba(139,92,246,0.08), transparent 60%); }
[data-accent="amber"] .bento-glow   { background: radial-gradient(ellipse at 30% 20%, rgba(245,158,11,0.08), transparent 60%); }
[data-accent="emerald"] .bento-glow { background: radial-gradient(ellipse at 30% 20%, rgba(52,211,153,0.08), transparent 60%); }

/* Top line accent */
.bento-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; z-index: 2;
  opacity: 0; transition: opacity 0.5s;
}
.bento-card:hover::before { opacity: 1; }
[data-accent="blue"]::before    { background: linear-gradient(90deg, transparent, #4a9eff, transparent); }
[data-accent="purple"]::before  { background: linear-gradient(90deg, transparent, #a78bfa, transparent); }
[data-accent="amber"]::before   { background: linear-gradient(90deg, transparent, #f59e0b, transparent); }
[data-accent="emerald"]::before { background: linear-gradient(90deg, transparent, #34d399, transparent); }

.bento-content {
  position: relative; z-index: 1;
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
  flex: 1; min-width: 0;
}
.bento-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px;
}
.bento-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s, background 0.4s, border-color 0.4s;
}
[data-accent="blue"] .bento-icon-wrap    { color: #4a9eff; }
[data-accent="purple"] .bento-icon-wrap  { color: #a78bfa; }
[data-accent="amber"] .bento-icon-wrap   { color: #f59e0b; }
[data-accent="emerald"] .bento-icon-wrap { color: #34d399; }
.bento-card:hover .bento-icon-wrap {
  transform: scale(1.08);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.bento-num {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 700;
  color: rgba(255,255,255,0.03);
  line-height: 1; transition: color 0.5s;
}
.bento-card:hover .bento-num { color: rgba(255,255,255,0.06); }
.bento-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500; color: var(--white);
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.bento-desc {
  font-size: 13px; font-weight: 300; line-height: 1.85;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px; max-width: 400px;
}
.bento-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto;
}
.bento-tags span {
  font-family: var(--font-mono);
  font-size: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 4px 12px; letter-spacing: 0.06em;
  transition: background 0.3s, border-color 0.3s;
}
[data-accent="blue"] .bento-tags span    { color: #93c5fd; }
[data-accent="purple"] .bento-tags span  { color: #c4b5fd; }
[data-accent="amber"] .bento-tags span   { color: #fcd34d; }
[data-accent="emerald"] .bento-tags span { color: #6ee7b7; }
.bento-card:hover .bento-tags span {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

/* Bento visual decorative elements */
.bento-visual {
  position: relative; width: 260px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.bv-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}
.bv-window {
  width: 180px; border-radius: 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(.23,1,.32,1);
}
.bento-card:hover .bv-window {
  transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
}
.bv-bar {
  padding: 8px 10px; display: flex; gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bv-bar span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.bv-bar span:nth-child(1) { background: rgba(255,97,97,0.4); }
.bv-bar span:nth-child(2) { background: rgba(255,190,70,0.4); }
.bv-bar span:nth-child(3) { background: rgba(70,200,100,0.4); }
.bv-content { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bv-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); }
.bv-line.w80 { width: 80%; } .bv-line.w60 { width: 60%; } .bv-line.w40 { width: 40%; }
.bv-block {
  height: 48px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(74,158,255,0.1), rgba(74,158,255,0.03));
  border: 1px solid rgba(74,158,255,0.1);
}
.bv-phone {
  width: 120px; border-radius: 20px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 8px;
  transform: perspective(600px) rotateY(10deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(.23,1,.32,1);
}
.bento-card:hover .bv-phone {
  transform: perspective(600px) rotateY(3deg) rotateX(1deg);
}
.bv-phone-notch { width: 40px; height: 4px; border-radius: 3px; background: rgba(255,255,255,0.08); margin: 0 auto 12px; }
.bv-phone-screen { display: flex; flex-direction: column; gap: 8px; }
.bv-phone-cards { display: flex; gap: 6px; }
.bv-mini-card {
  flex: 1; height: 36px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(52,211,153,0.1), rgba(52,211,153,0.03));
  border: 1px solid rgba(52,211,153,0.1);
}

@media (max-width: 900px) {
  .skills-bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .bento-visual { display: none; }
}

/* ══════════════════════════════════════════════════════
   PROJECTS — FIXED SNAP SCROLL
   Wrapper provides scroll height; sticky locks section.
   Cards swap via wheel events while section is pinned.
══════════════════════════════════════════════════════ */
#projects-scroll-wrapper {
  position: relative;
  /* height set by JS: (totalCards) * 100vh */
  height: 300vh;
}
#projects-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
#projects {
  position: relative;
  background: var(--navy-2);
  overflow: hidden;
  padding: 80px 0 60px;
  height: 100vh;
  display: flex; flex-direction: column;
}
#proj-bg-light {
  position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0;
  filter: blur(120px);
  background: radial-gradient(circle, rgba(36,99,166,0.35) 0%, transparent 65%);
  transition: background 1.2s cubic-bezier(.23,1,.32,1);
  will-change: background;
}
.projects-header {
  position: relative; z-index: 2;
  max-width: 100%; padding: 0 60px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.projects-heading {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 500; color: var(--white);
}
.proj-nav-arrows { display: flex; gap: 8px; }
.proj-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  cursor: none;
  transition: all 0.35s cubic-bezier(.23,1,.32,1);
}
.proj-arrow:hover {
  background: rgba(74,158,255,0.12);
  border-color: rgba(74,158,255,0.4);
  color: var(--white); transform: scale(1.08);
}
.proj-arrow:active { transform: scale(0.95); }

.proj-track-viewport {
  position: relative; z-index: 2;
  overflow: hidden; flex: 1;
  display: flex; align-items: stretch;
}
.proj-cards-track {
  display: flex; width: max-content;
  will-change: transform; align-items: stretch;
  transition: transform 0.8s cubic-bezier(.25,.1,.25,1);
}
.proj-card-full {
  width: 100vw; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 60px; gap: 0;
  opacity: 0.35; transform: scale(0.96);
  transition: opacity 0.8s cubic-bezier(.23,1,.32,1),
              transform 0.8s cubic-bezier(.23,1,.32,1);
}
.proj-card-full.active { opacity: 1; transform: scale(1); }

.proj-footer {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 28px 60px 0;
}
.proj-dots { display: flex; gap: 8px; }
.proj-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none; outline: none; cursor: none;
  transition: all 0.4s cubic-bezier(.23,1,.32,1);
}
.proj-dot.active {
  background: var(--blue-soft);
  width: 28px; border-radius: 4px;
  box-shadow: 0 0 12px rgba(74,158,255,0.5);
}
.proj-counter {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted); letter-spacing: 0.15em;
}
.proj-counter span:first-child { color: var(--white); }

/* ── Project card inner styles ── */
.pcf-visual {
  width: 100%;
  height: clamp(340px, 56vh, 600px);
  border-radius: 24px;
  position: relative; overflow: hidden;
  transition: transform 0.5s cubic-bezier(.23,1,.32,1);
}
.proj-card-full.active:hover .pcf-visual { transform: scale(1.01); }
.pcf-visual-1 {
  background: linear-gradient(140deg,
    #040d1a 0%, #0d2040 30%, #1a3a6c 60%, #2463a6 85%, #1a2e50 100%);
}
.pcf-visual-2 {
  background: linear-gradient(140deg,
    #0d0818 0%, #1e0f38 30%, #3b1f6b 60%, #6d28d9 85%, #2d1454 100%);
}
.pcf-visual-3 {
  background: linear-gradient(140deg,
    #020f10 0%, #073533 30%, #0d6464 60%, #0d9488 85%, #064e4e 100%);
}
.pcf-glow-inner {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 110%,
    rgba(255,255,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.pcf-visual-1 .pcf-glow-inner {
  background: radial-gradient(ellipse 65% 65% at 50% 100%,
    rgba(74,158,255,0.25) 0%, rgba(36,99,166,0.12) 40%, transparent 65%);
}
.pcf-visual-2 .pcf-glow-inner {
  background: radial-gradient(ellipse 65% 65% at 50% 100%,
    rgba(139,92,246,0.3) 0%, rgba(79,46,130,0.14) 40%, transparent 65%);
}
.pcf-visual-3 .pcf-glow-inner {
  background: radial-gradient(ellipse 65% 65% at 50% 100%,
    rgba(45,212,191,0.28) 0%, rgba(13,100,100,0.14) 40%, transparent 65%);
}
.pcf-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.pcf-num {
  position: absolute; bottom: 24px; right: 36px;
  font-family: var(--font-display);
  font-size: 120px; font-weight: 700; line-height: 1;
  color: rgba(255,255,255,0.04);
  pointer-events: none; user-select: none;
}
.pcf-info {
  width: 100%;
  padding: 32px 8px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 40px;
  align-items: start;
}
.pcf-tag {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 10px; color: var(--blue-soft);
  letter-spacing: 0.18em; text-transform: uppercase;
  align-self: center;
}
.pcf-title {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 500; color: var(--white);
  letter-spacing: -0.01em; line-height: 1;
}
.pcf-desc {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 14px; font-weight: 300; line-height: 1.85;
  color: rgba(255,255,255,0.5);
  max-width: 460px;
}
.pcf-link {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--blue-pale);
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: gap 0.3s, color 0.3s;
  white-space: nowrap;
}
.pcf-link:hover { gap: 16px; color: var(--white); }

/* ══════════════════════════════════════════════════════
   LET'S WORK SECTION
══════════════════════════════════════════════════════ */
#work {
  position: relative;
  padding: 140px 0 0;
  background: var(--navy);
  overflow: hidden;
}

.work-bg { position: absolute; inset: 0; }
.work-orb-1 {
  position: absolute;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(36,99,166,0.12), transparent 60%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: orbFloat1 20s ease-in-out infinite;
}
.work-orb-2 {
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,158,255,0.08), transparent 70%);
  bottom: 100px; right: 100px;
  animation: orbFloat2 14s ease-in-out infinite;
}

.work-content {
  position: relative; z-index: 1;
  text-align: center;
  padding-bottom: 100px;
}

.work-label {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 32px;
}

.work-heading {
  font-family: var(--font-display);
  font-size: clamp(54px, 8vw, 110px);
  font-weight: 500; line-height: 1;
  color: var(--white);
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}
.work-heading em { font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.4); }

.work-sub {
  font-size: 15px; font-weight: 300; line-height: 1.8;
  color: rgba(255,255,255,0.45); max-width: 500px;
  margin: 0 auto 48px;
}

.work-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 36px;
  background: rgba(36,99,166,0.2);
  border: 1px solid rgba(74,158,255,0.3);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
  position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(.23,1,.32,1);
  cursor: none;
  margin-bottom: 40px;
}
.work-btn:hover {
  background: rgba(36,99,166,0.4);
  border-color: rgba(74,158,255,0.6);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(36,99,166,0.3);
}
.btn-glow {
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(74,158,255,0.1), transparent 50%);
  border-radius: 100px;
  opacity: 0; transition: opacity 0.3s;
}
.work-btn:hover .btn-glow { opacity: 1; }

.work-details {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.1em;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.dot-sep { color: var(--blue-soft); opacity: 0.5; }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 32px 0;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  color: rgba(255,255,255,0.5);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.1em;
}
.footer-links {
  display: flex; gap: 24px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--blue-pale); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 60px 1fr; }
  .about-stats  { display: none; }
  .projects-heading { font-size: clamp(32px, 5vw, 56px); }
}

@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-label  { flex-direction: row; padding: 0; }
  .label-rotated { writing-mode: horizontal-tb; }

  .island-inner { padding: 10px 14px; gap: 16px; }
  .island-nav { gap: 14px; }
  .island-cta { display: none; }

  .projects-header { flex-wrap: wrap; gap: 8px; }
  .proj-card { width: 300px; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }

  .arch-deco { display: none; }

  .work-heading { font-size: clamp(40px, 10vw, 70px); }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .island-nav a { font-size: 10px; }
  .island-logo  { font-size: 15px; }
}

/* ══════════════════════════════════════════════════════
   ✦ ENHANCED ANIMATIONS — ULTRA COOL ADDITIONS ✦
══════════════════════════════════════════════════════ */

/* ── FILM GRAIN OVERLAY ─────────────────────────────── */
#grain-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.032;
  mix-blend-mode: screen;
}

/* ── CINEMATIC LETTERBOX ────────────────────────────── */
.letterbox-top, .letterbox-bot {
  position: fixed; left: 0; right: 0;
  height: 0; background: #000;
  z-index: 9985; pointer-events: none;
  transition: height 1.2s cubic-bezier(.86,0,.07,1);
}
.letterbox-top { top: 0; }
.letterbox-bot { bottom: 0; }
body.cinematic .letterbox-top,
body.cinematic .letterbox-bot { height: 56px; }

/* ── CURSOR TRAIL ───────────────────────────────────── */
.cursor-trail-dot {
  position: fixed;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--blue-soft);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: opacity 0.6s;
}

/* ── MAGNETIC BUTTON AURA ───────────────────────────── */
.work-btn { overflow: hidden; }
.work-btn .magnetic-aura {
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%),
    rgba(74,158,255,0.3) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.work-btn:hover .magnetic-aura { opacity: 1; }

/* ── GLITCH TEXT EFFECT ─────────────────────────────── */
@keyframes glitch1 {
  0%,100% { clip-path: inset(0 0 95% 0); transform: translateX(0); }
  20% { clip-path: inset(30% 0 50% 0); transform: translateX(-4px); }
  40% { clip-path: inset(60% 0 20% 0); transform: translateX(4px); }
  60% { clip-path: inset(80% 0 10% 0); transform: translateX(-2px); }
  80% { clip-path: inset(10% 0 70% 0); transform: translateX(3px); }
}
@keyframes glitch2 {
  0%,100% { clip-path: inset(90% 0 0 0); transform: translateX(0); }
  25% { clip-path: inset(20% 0 60% 0); transform: translateX(5px); }
  50% { clip-path: inset(50% 0 30% 0); transform: translateX(-3px); }
  75% { clip-path: inset(70% 0 5% 0); transform: translateX(4px); }
}
.glitch-wrap {
  position: relative; display: inline-block;
}
.glitch-wrap::before,
.glitch-wrap::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  font: inherit; color: inherit;
  pointer-events: none;
}
.glitch-wrap.glitching::before {
  color: rgba(74,158,255,0.8);
  animation: glitch1 0.4s steps(1) forwards;
  mix-blend-mode: screen;
}
.glitch-wrap.glitching::after {
  color: rgba(255,100,100,0.6);
  animation: glitch2 0.4s steps(1) forwards;
  mix-blend-mode: screen;
}

/* ── 3D TILT CARD ───────────────────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
  will-change: transform;
}
.tilt-card .bento-content,
.tilt-card .bento-glow {
  transform: translateZ(20px);
  transform-style: preserve-3d;
}

/* ── SCROLL REVEAL CLIP ─────────────────────────────── */
.reveal-clip {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition: clip-path 0.9s cubic-bezier(.77,0,.18,1),
              opacity 0.3s;
}
.reveal-clip.visible {
  clip-path: inset(0 0% 0 0);
  opacity: 1;
}
.reveal-slide-up {
  opacity: 0;
  transform: translateY(60px) skewY(2deg);
  transition: opacity 0.9s cubic-bezier(.23,1,.32,1),
              transform 0.9s cubic-bezier(.23,1,.32,1);
}
.reveal-slide-up.visible {
  opacity: 1;
  transform: translateY(0) skewY(0);
}

/* ── CHROMATIC ABERRATION PAINTING HOVER ────────────── */
.painting-img, .side-painting-img {
  transition: filter 0.5s, transform 0.6s cubic-bezier(.23,1,.32,1);
}
.hero-painting-wrap:hover .painting-img {
  filter: brightness(1.05) contrast(1.1) saturate(1.1);
  animation: chromatic 3s ease-in-out infinite;
}
@keyframes chromatic {
  0%,100% { filter: brightness(1.05) contrast(1.1) saturate(1.1); }
  33% { filter: brightness(1.05) contrast(1.1) saturate(1.15) hue-rotate(3deg); }
  66% { filter: brightness(1.05) contrast(1.1) saturate(1.05) hue-rotate(-3deg); }
}

/* ── AMBIENT GLOW ORBS (enhanced) ──────────────────── */
@keyframes orbFloat1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%     { transform: translate(30px, -20px) scale(1.05); }
  66%     { transform: translate(-20px, 15px) scale(0.97); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0, 0) rotate(0deg); }
  50%     { transform: translate(-25px, 30px) rotate(180deg); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translate(0, 0) scale(1); }
  40%     { transform: translate(20px, 25px) scale(1.08); }
  80%     { transform: translate(-15px, -10px) scale(0.95); }
}

/* ── STATS COUNTER HIGHLIGHT ────────────────────────── */
.stat-num {
  transition: text-shadow 0.5s, color 0.5s;
}
.stat-num.counting {
  color: var(--blue-pale);
  text-shadow: 0 0 40px rgba(74,158,255,0.5);
}

/* ── PROJECT CARD ENTRANCE ──────────────────────────── */
.proj-card-full {
  transition: opacity 0.6s cubic-bezier(.23,1,.32,1),
              transform 0.6s cubic-bezier(.23,1,.32,1);
}
.proj-card-full.slide-in {
  animation: slideInCard 0.7s cubic-bezier(.23,1,.32,1) forwards;
}
@keyframes slideInCard {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── RIPPLE ON CLICK ────────────────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(74,158,255,0.35);
  transform: scale(0);
  animation: rippleOut 0.6s linear forwards;
  pointer-events: none;
}
@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}

/* ── ENHANCED NAV ISLAND ON SCROLL ─────────────────── */
#nav-island.scrolled .island-inner {
  padding: 10px 28px;
  background: rgba(4, 6, 12, 0.9);
  box-shadow:
    0 8px 60px rgba(0,0,0,0.8),
    0 0 0 1px rgba(74,158,255,0.15),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

/* ── SECTION TITLE REVEAL ───────────────────────────── */
.section-title-wrap {
  overflow: hidden;
}
.section-title-wrap .section-title {
  transform: translateY(100%);
  transition: transform 1s cubic-bezier(.77,0,.18,1);
}
.section-title-wrap.visible .section-title {
  transform: translateY(0);
}

/* ── PARALLAX LAYERS ────────────────────────────────── */
.parallax-slow { will-change: transform; }
.parallax-mid  { will-change: transform; }
.parallax-fast { will-change: transform; }

/* ── BENTO CARD HOVER GLOW ──────────────────────────── */
.bento-card {
  transition: transform 0.4s cubic-bezier(.23,1,.32,1),
              box-shadow 0.4s cubic-bezier(.23,1,.32,1),
              border-color 0.4s;
}
.bento-card:hover {
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 80px rgba(36,99,166,0.12),
    inset 0 1px 0 rgba(255,255,255,0.1);
  border-color: rgba(74,158,255,0.25);
}

/* ── HERO ORB AMBIENT ───────────────────────────────── */
.hero-ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
  animation: orbPulse 6s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50%     { opacity: 0.7; transform: scale(1.12); }
}

/* ── ABOUT SECTION ENHANCED ─────────────────────────── */
.about-text {
  overflow: hidden;
}
.about-text-inner {
  transform: translateY(100%);
  transition: transform 1s cubic-bezier(.77,0,.18,1);
  display: block;
}
.about-text.visible .about-text-inner {
  transform: translateY(0);
}

/* ── FLOATING LABEL EFFECT ──────────────────────────── */
.float-label {
  animation: floatLabel 4s ease-in-out infinite;
}
@keyframes floatLabel {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

/* ── SCAN LINE ON HOVER FOR MUSEUM BG ───────────────── */
#hero-sticky::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.015) 3px,
    rgba(0,0,0,0.015) 4px
  );
  opacity: 0.6;
}

/* ── CHAPTER REVEAL ENHANCED ────────────────────────── */
#chapter-reveal {
  position: absolute;
  inset: 0; z-index: 7;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.8s cubic-bezier(.23,1,.32,1);
}
#chapter-reveal.show { opacity: 1; }
.chapter-inner {
  display: flex; align-items: center; gap: 28px;
}
.chapter-line {
  width: 0; height: 1px;
  background: rgba(255,255,255,0.25);
  transition: width 0.9s 0.3s cubic-bezier(.77,0,.18,1);
}
#chapter-reveal.show .chapter-line { width: 80px; }
.chapter-num {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--blue-soft);
  letter-spacing: 0.3em;
}
.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500; color: var(--white);
  letter-spacing: -0.02em;
}

/* ── MOUSE-TRACKED SPOTLIGHT ────────────────────────── */
#mouse-light {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9988;
  background: radial-gradient(circle,
    rgba(74,158,255,0.04) 0%,
    transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.5s;
  mix-blend-mode: screen;
}

/* ── GLOWING LOGO ON HOVER ──────────────────────────── */
.island-logo {
  transition: text-shadow 0.4s, color 0.4s;
}
.island-logo:hover {
  color: var(--blue-pale);
  text-shadow: 0 0 30px rgba(74,158,255,0.5);
}

/* ── SKILL TAG FLOAT ANIMATION ──────────────────────── */
.bento-tags span {
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.bento-card:hover .bento-tags span:nth-child(1) {
  transform: translateY(-3px); transition-delay: 0s;
}
.bento-card:hover .bento-tags span:nth-child(2) {
  transform: translateY(-3px); transition-delay: 0.05s;
}
.bento-card:hover .bento-tags span:nth-child(3) {
  transform: translateY(-3px); transition-delay: 0.1s;
}
.bento-card:hover .bento-tags span:nth-child(4) {
  transform: translateY(-3px); transition-delay: 0.15s;
}


/* ══════════════════════════════════════════════════════
   ✦ POLISH PASS — GENERAL IMPROVEMENTS ✦
══════════════════════════════════════════════════════ */

/* ── SECTION LABEL UPPERCASE TRACKING ──────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blue-soft);
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.5;
  vertical-align: middle;
}

/* ── ABOUT SECTION HEADING SIZE ─────────────────────── */
.about-heading {
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.1;
  font-weight: 700;
}

/* ── BENTO CARD POLISH ──────────────────────────────── */
.bento-card {
  background: linear-gradient(135deg,
    rgba(255,255,255,0.042) 0%,
    rgba(255,255,255,0.018) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.25s cubic-bezier(.23,1,.32,1);
}
.bento-card:hover {
  border-color: rgba(74,158,255,0.2);
}
.bento-title {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--white);
}

/* ── PROJECT CARD VISUAL GLOW ───────────────────────── */
.proj-card-full {
  border-radius: 20px;
  overflow: visible;
}
.proj-card-full.active .pcf-visual {
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

/* ── WORK SECTION HEADING ───────────────────────────── */
.work-heading {
  line-height: 1.05;
  font-weight: 800;
}
.work-heading em {
  font-weight: 300;
}

/* ── FOOTER IMPROVED ────────────────────────────────── */
footer {
  background: linear-gradient(to top, #010204, transparent);
}
.footer-inner {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 36px 40px;
}

/* ── ISLAND NAV ACTIVE LINK ─────────────────────────── */
.island-nav a.active {
  color: var(--white);
}
.island-nav a.active::after { width: 100%; }

/* ── GLASS CARD ENHANCED ────────────────────────────── */
.glass-card {
  background: linear-gradient(135deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ── PCF VISUAL IMPROVED ────────────────────────────── */
.pcf-visual {
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── SCROLL DOT ANIMATION ───────────────────────────── */
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
}

/* ── ABOUT PAINTING IMPROVED CONTRAST ──────────────── */
.about-painting-img {
  filter: brightness(0.18) saturate(0.5) contrast(1.15);
}

/* ── SKILLS HEADING SIZE ────────────────────────────── */
.skills-heading {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
}

/* ── PROJ HEADING ───────────────────────────────────── */
.projects-heading {
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1;
}

/* ── HERO TITLE SHARPER ─────────────────────────────── */
.hero-title {
  text-rendering: optimizeLegibility;
}

/* ── LINK HOVER COLOR ───────────────────────────────── */
.footer-links a:hover { color: var(--white); }

/* ── LOADER GLOW BG ─────────────────────────────────── */
#loader::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(36,99,166,0.14) 0%,
    transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none; z-index: 1;
  animation: orbPulse 3s ease-in-out infinite;
}


/* ══════════════════════════════════════════════════════
   ✦ COMPREHENSIVE IMPROVEMENTS v3 ✦
══════════════════════════════════════════════════════ */

/* ── ROOT COLOR PALETTE REFINEMENTS ────────────────── */
:root {
  --navy:        #04060d;
  --navy-2:      #070a14;
  --navy-3:      #0a0e1b;
  --blue-deep:   #0c1a2e;
  --blue-accent: #1e5799;
  --blue-soft:   #4a9eff;
  --blue-pale:   #93c5fd;
  --muted:       #5a7094;
  --off-white:   #dde6f5;
}

/* ── HERO TITLE — REFINED WEIGHT & SIZING ───────────── */
.hero-title {
  font-size: clamp(72px, 13vw, 200px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.88;
}
.title-folio {
  -webkit-text-stroke: 1px rgba(255,255,255,0.35);
}

/* ── HERO TAG — GOLD ACCENT ─────────────────────────── */
.hero-tag {
  color: var(--gold);
  letter-spacing: 0.3em;
  font-size: clamp(9px, 0.9vw, 11px);
  opacity: 0.85;
}

/* ── HERO NAME — MORE REFINED ───────────────────────── */
.name-text {
  letter-spacing: 0.45em;
  font-size: clamp(10px, 1.1vw, 13px);
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

/* ── HERO SUB — SLIGHTLY BIGGER ─────────────────────── */
.hero-sub {
  font-size: clamp(16px, 2vw, 24px);
  color: rgba(255,255,255,0.42);
  max-width: 580px;
  margin: 0 auto 28px;
}
.hero-sub em { color: rgba(255,255,255,0.72); }

/* ── SECTION LABEL — GOLD DOT ───────────────────────── */
.section-label {
  color: var(--gold) !important;
  font-size: 9px !important;
  letter-spacing: 0.4em !important;
}
.section-label::before {
  background: var(--gold) !important;
  width: 24px !important;
}

/* ── ABOUT HEADING — BIGGER & AIRIER ───────────────── */
.about-heading {
  font-size: clamp(40px, 5vw, 68px) !important;
  line-height: 1.08 !important;
  font-weight: 300 !important;
  margin-bottom: 36px;
}

/* ── ABOUT TEXT — REFINED ───────────────────────────── */
.about-text {
  font-size: 15px;
  line-height: 2;
  color: rgba(255,255,255,0.48);
  font-weight: 300;
}

/* ── ABOUT EYEBROW — GOLD ───────────────────────────── */
.about-eyebrow {
  color: var(--gold) !important;
  letter-spacing: 0.25em;
  font-size: 10px;
  margin-bottom: 24px;
}

/* ── ABOUT MOTTO ────────────────────────────────────── */
.about-motto {
  border-left: 2px solid var(--gold-dim);
  padding-left: 20px;
  font-size: 16px;
  color: rgba(255,255,255,0.32);
  margin-top: 44px;
}
.about-motto em { color: rgba(255,255,255,0.55); }
.motto-line { display: none; } /* replaced by left border */

/* ── STAT NUMBERS — GOLD ACCENT ─────────────────────── */
.stat-num {
  background: linear-gradient(135deg, var(--white) 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 56px;
}

/* ── GLASS CARD BORDER — WARMER ─────────────────────── */
.glass-card {
  border-color: rgba(200,169,110,0.12) !important;
  box-shadow: 0 0 0 1px rgba(200,169,110,0.06),
    0 12px 48px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

/* ── SKILL TAGS — WARM VARIANT ──────────────────────── */
.tag {
  border-color: rgba(200,169,110,0.2) !important;
  color: var(--gold) !important;
  background: rgba(200,169,110,0.06) !important;
}

/* ── BENTO CARD — MORE REFINED ──────────────────────── */
.bento-card {
  border-radius: 20px;
  min-height: 260px;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.035) 0%,
    rgba(255,255,255,0.012) 100%) !important;
}
.bento-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(255,255,255,0.1) !important;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
.bento-title {
  font-size: clamp(20px, 2.2vw, 28px) !important;
  color: var(--white);
  margin-bottom: 10px;
}
.bento-desc {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,0.38);
  font-weight: 300;
}
.bento-tags span {
  font-size: 9px;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.4) !important;
  border-radius: 4px !important;
}
.bento-icon-wrap svg {
  color: var(--gold);
  opacity: 0.7;
}

/* ── SKILLS HEADING — REFINED ───────────────────────── */
.skills-heading {
  font-size: clamp(40px, 5.5vw, 72px) !important;
  font-weight: 300 !important;
  letter-spacing: -0.025em !important;
}
.skills-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  line-height: 1.85;
}

/* ── SECTION TITLE — ALL INSTANCES ─────────────────── */
.section-title {
  font-size: clamp(42px, 5vw, 70px) !important;
  line-height: 1.08 !important;
  font-weight: 300 !important;
}

/* ── PROJECTS HEADING ───────────────────────────────── */
.projects-heading {
  font-size: clamp(34px, 4vw, 54px) !important;
  font-weight: 300 !important;
  letter-spacing: -0.025em;
}

/* ── PROJECT SECTION LABEL ──────────────────────────── */
.projects-header .section-label { color: var(--gold) !important; }

/* ── PCF TAG — GOLD ─────────────────────────────────── */
.pcf-tag {
  color: var(--gold) !important;
  font-size: 9px;
  letter-spacing: 0.2em;
}
.pcf-title {
  font-size: clamp(32px, 4vw, 52px) !important;
  font-weight: 300 !important;
  letter-spacing: -0.02em !important;
}
.pcf-desc {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.42);
  font-weight: 300;
}
.pcf-link {
  color: var(--gold) !important;
}
.pcf-link:hover { color: var(--white) !important; }

/* ── PCF VISUAL — RICHER GRADIENTS ─────────────────── */
.pcf-visual-1 {
  background: linear-gradient(145deg,
    #030912 0%, #0a1e3d 35%, #122c5a 65%, #1b4485 100%) !important;
}
.pcf-visual-2 {
  background: linear-gradient(145deg,
    #08040f 0%, #160b2e 35%, #271050 65%, #3d1873 100%) !important;
}
.pcf-visual-3 {
  background: linear-gradient(145deg,
    #010d0d 0%, #052e2e 35%, #085050 65%, #0d7070 100%) !important;
}
.pcf-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
}

/* ── PROJECT ARROWS — GOLD ON HOVER ────────────────── */
.proj-arrow:hover {
  border-color: rgba(200,169,110,0.4) !important;
  color: var(--gold) !important;
}

/* ── PROJ DOTS — GOLD ACTIVE ────────────────────────── */
.proj-dot.active {
  background: var(--gold) !important;
  box-shadow: 0 0 12px var(--gold-glow) !important;
}

/* ── WORK HEADING — REFINED ─────────────────────────── */
.work-heading {
  font-size: clamp(52px, 7.5vw, 105px) !important;
  font-weight: 300 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.03em !important;
}
.work-heading em {
  -webkit-text-stroke: 1px rgba(200,169,110,0.5) !important;
  color: transparent !important;
}

/* ── WORK BUTTON — WARMER ───────────────────────────── */
.work-btn {
  border-color: rgba(200,169,110,0.3) !important;
  background: rgba(200,169,110,0.07) !important;
  font-size: 13px;
  padding: 15px 40px;
  letter-spacing: 0.08em;
}
.work-btn:hover {
  background: rgba(200,169,110,0.14) !important;
  border-color: rgba(200,169,110,0.55) !important;
  box-shadow: 0 16px 48px rgba(200,169,110,0.12) !important;
}

/* ── WORK ORB — WARMER TONE ─────────────────────────── */
.work-orb-1 {
  background: radial-gradient(circle,
    rgba(200,169,110,0.06) 0%, rgba(36,99,166,0.08) 40%, transparent 70%) !important;
}

/* ── WORK SECTION BACKGROUND ────────────────────────── */
#work {
  background: linear-gradient(to bottom, var(--navy) 0%, #030509 100%) !important;
}

/* ── NAV ISLAND — THINNER, MORE REFINED ─────────────── */
.island-inner {
  padding: 10px 30px !important;
  gap: 40px !important;
  border-color: rgba(255,255,255,0.07) !important;
}
.island-logo {
  font-size: 16px !important;
  color: rgba(255,255,255,0.8);
  padding-right: 16px !important;
}
.island-nav a {
  font-size: 12px !important;
  color: rgba(255,255,255,0.45) !important;
  letter-spacing: 0.06em;
}
.island-nav a:hover { color: rgba(255,255,255,0.9) !important; }
.island-nav a::after { background: var(--gold) !important; }

/* ── SCROLL INDICATOR — GOLD ────────────────────────── */
.scroll-dot { background: var(--gold) !important; }

/* ── SECTION BACKGROUNDS — MORE DISTINCT ───────────── */
#about { background: linear-gradient(to bottom, var(--navy) 0%, #060912 100%); }
#skills { background: linear-gradient(to bottom, #060912 0%, #04070f 100%) !important; }
#projects > div, #projects-sticky { background: #04070f; }

/* ── FOOTER — REFINED ───────────────────────────────── */
footer {
  background: #020306 !important;
  border-top: 1px solid rgba(255,255,255,0.04) !important;
}
.footer-logo {
  font-size: 18px !important;
  letter-spacing: 0.04em;
}
.footer-copy { color: rgba(255,255,255,0.2) !important; }
.footer-links a { color: rgba(255,255,255,0.25) !important; }
.footer-links a:hover { color: var(--gold) !important; }

/* ── LOADER RING & INITIALS — REFINED ───────────────── */
.loader-initials {
  font-size: 56px !important;
}
.init-dot {
  color: var(--gold) !important;
  text-shadow: 0 0 20px var(--gold-glow) !important;
}

/* ── CHAPTER REVEAL — GOLD ACCENT ───────────────────── */
.chapter-num { color: var(--gold) !important; }
.chapter-title {
  font-weight: 300 !important;
  letter-spacing: -0.02em;
}

/* ── ZOOM LABEL — REFINED ───────────────────────────── */
.zoom-label { letter-spacing: 0.35em; color: rgba(255,255,255,0.2); }

/* ── PAINTING WIRE — GOLD ───────────────────────────── */
.painting-wire {
  background: linear-gradient(
    rgba(200,169,110,0.5), rgba(200,169,110,0.08)) !important;
}

/* ── SCROLL PROGRESS BAR — GOLD ─────────────────────── */
body > div[style*="position:fixed"][style*="height:2px"] {
  background: linear-gradient(90deg, var(--gold), var(--blue-soft)) !important;
}

/* ── BLUE SOFT ELEMENTS TO GOLD WHERE APPROPRIATE ───── */
.about-feature-dot, .loader-status-val { color: var(--gold) !important; }
.loader-prompt { color: var(--gold) !important; }
.loader-cursor-blink { color: var(--gold) !important; }
.lc-bracket { color: rgba(200,169,110,0.4) !important; }
.loader-corner { color: rgba(200,169,110,0.18) !important; }

/* ── MUSEUM OVERLAY — WARMER TONE ───────────────────── */
.museum-dark {
  background: rgba(2,3,8,0.6) !important;
}

/* ── SPOT HALO — WARMER ─────────────────────────────── */
.spot-halo {
  background: radial-gradient(ellipse at 50% 35%,
    rgba(255,242,180,0.25) 0%,
    rgba(240,220,150,0.1) 35%,
    transparent 68%) !important;
}

/* ── SIDE PAINTINGS — WARMER FILTER ────────────────── */
.side-painting-img {
  filter: brightness(0.65) saturate(0.75) contrast(1.08) sepia(0.1) !important;
}

/* ── ABOUT SECTION SPACING ──────────────────────────── */
#about { padding: 120px 0 140px; }
.about-bio { padding-right: 20px; }

/* ── SKILLS SECTION SPACING ─────────────────────────── */
#skills { padding: 140px 0 130px !important; }
.skills-header { margin-bottom: 80px !important; }

/* ── BENTO GRID GAP ─────────────────────────────────── */
.skills-bento { gap: 14px !important; }

/* ── PCF INFO GRID — BETTER PROPORTIONS ─────────────── */
.pcf-info { padding: 28px 4px 0 !important; }

/* ── WORK CONTENT SPACING ───────────────────────────── */
.work-content { padding-bottom: 120px !important; }
.work-sub { max-width: 440px; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,0.38); }

/* ── WORK LABEL ─────────────────────────────────────── */
.work-label { color: var(--gold) !important; margin-bottom: 28px; }

/* ── HERO SCROLL ────────────────────────────────────── */
.hero-scroll { color: rgba(255,255,255,0.3); }

/* ── REMOVE HEAVY SHADOWS FROM BENTO ───────────────── */
.bento-card:not(:hover) { box-shadow: none; }

/* ── ISLAND LOGO GOLD HOVER ─────────────────────────── */
.island-logo:hover { color: var(--gold) !important; text-shadow: 0 0 24px var(--gold-glow) !important; }

/* ── LANG SWITCHER ACTIVE ───────────────────────────── */
.lang-opt.active { color: var(--gold) !important; }

/* ── PROJ COUNTER ACCENT ────────────────────────────── */
.proj-counter span:first-child { color: var(--gold) !important; }

/* ── BENTO WIDE VISUAL DECORATION ──────────────────── */
.bento-visual { opacity: 0.6; }

/* ── REVEAL CLIP — GOLD EYEBROW ─────────────────────── */
.about-eyebrow.visible { opacity: 1; }

