/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO — STYLE.CSS
   Aesthetic: Editorial Luxury · Refined Minimal · Linear × Stripe
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Color System */
  --bg:        #000000;
  --bg-2:      #111113;
  --bg-3:      #18181b;
  --bg-4:      #222228;
  --surface:   rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);

  /* Text */
  --text-1:   #f4f4f5;
  --text-2:   #a1a1aa;
  --text-3:   #71717a;

  /* Accent — cool champagne gold */
  --accent:      #e8d5b0;
  --accent-dim:  rgba(232,213,176,0.15);
  --accent-glow: rgba(232,213,176,0.08);

  /* Semantic */
  --green: #10b981;
  --blue:  #6366f1;
  --amber: #f59e0b;
  --rose:  #ec4899;
  --teal:  #14b8a6;

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', 'Fira Code', monospace;

  /* Spacing Scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg:  0 16px 60px rgba(0,0,0,0.6), 0 4px 20px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(232,213,176,0.06);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast: 180ms;
  --dur-med:  320ms;
  --dur-slow: 600ms;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; }
ul, ol { list-style: none; }

/* ── Custom Cursor ────────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--dur-fast), height var(--dur-fast), background var(--dur-fast);
  will-change: transform;
}

#cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(232,213,176,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out), width var(--dur-med), height var(--dur-med), border-color var(--dur-med);
  will-change: transform;
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 16px;
  height: 16px;
}

body:has(a:hover) #cursor-follower,
body:has(button:hover) #cursor-follower {
  width: 56px;
  height: 56px;
  border-color: rgba(232,213,176,0.6);
}

@media (hover: none) {
  #cursor, #cursor-follower { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
}

/* ── Loader ───────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
  overflow: hidden;
  isolation: isolate;
}

#loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='2048' height='820' viewBox='0 0 2048 820' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23ffffff' stroke-opacity='.14' stroke-width='2'%3E%3Cpath d='M-24 104C43 70 111 38 180 8'/%3E%3Cpath d='M-22 146C40 132 70 126 88 130c46 10 61 78 82 170 28 125 50 290 66 520'/%3E%3Cpath d='M594 -46c34 126 58 248 75 367 21 150 35 316 42 515'/%3E%3Cpath d='M914 -52c-2 70 8 127 31 176 26 56 68 107 126 176 53 63 63 131 31 211-35 87-112 194-229 339'/%3E%3Cpath d='M1153 -28c18 113 21 227 10 342-17 166-63 342-138 526'/%3E%3Cpath d='M1361 -20c24 127 24 255 2 384-26 152-72 314-138 486'/%3E%3Cpath d='M1784 -8c-112 91-199 193-261 307-70 128-124 301-162 526'/%3E%3Cpath d='M2058 114c-98 136-158 276-179 420-12 82-19 176-23 289'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.72;
  z-index: -2;
  pointer-events: none;
}

#loader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, rgba(0,0,0,0.05), rgba(0,0,0,0.5) 78%);
  z-index: -1;
  pointer-events: none;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  position: relative;
  z-index: 1;
}

.loader-profile {
  width: clamp(152px, 30vw, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(232,213,176,0.42);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45), 0 0 0 8px rgba(255,255,255,0.035);
  animation: loaderFade 1.5s ease-in-out infinite;
}

.loader-signature {
  max-width: 145px;
  max-height: 96px;
  width: auto;
  height: auto;
  animation: loaderFade 1.5s ease-in-out infinite;
}

@keyframes loaderFade {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--sp-5) 0;
  transition: background var(--dur-med), backdrop-filter var(--dur-med),
              border-color var(--dur-med), padding var(--dur-med), transform var(--dur-med);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  padding: var(--sp-3) 0;
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  min-height: 48px;
  border: 1px solid transparent;
  transition: width var(--dur-med) var(--ease-out),
              max-width var(--dur-med) var(--ease-out),
              min-height var(--dur-med) var(--ease-out),
              padding var(--dur-med) var(--ease-out),
              background var(--dur-med),
              border-radius var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med),
              border-color var(--dur-med);
}

#navbar.scrolled .nav-inner {
  width: min(calc(100% - 48px), 1180px);
  max-width: none;
  min-height: 62px;
  padding: 0.35rem 0.7rem 0.35rem var(--sp-5);
  background: linear-gradient(135deg, rgba(22,22,20,0.72), rgba(10,10,9,0.5));
  border-color: rgba(255,255,255,0.055);
  border-radius: var(--r-full);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.36);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
  letter-spacing: -0.03em;
  position: relative;
  transition: align-items var(--dur-med), gap var(--dur-med);
}

/* Underline accent bar that slides in on hover */
.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-logo:hover::after { width: 100%; }

/* Large accented first letter */
.logo-first {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s ease, color var(--dur-med), font-size var(--dur-med);
}

/* Rest of name — slightly smaller, light colour */
.logo-rest {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-1);
  opacity: 0.9;
  letter-spacing: -0.02em;
  transition: opacity 0.3s ease, color 0.3s ease, font-size var(--dur-med);
}

.nav-logo:hover .logo-first  { transform: translateY(-1px); }
.nav-logo:hover .logo-rest   { opacity: 1; color: var(--accent); }

/* Legacy fallback classes — keep unused but harmless */
.logo-mark { display: none; }
.logo-text { display: none; }
.nav-logo-img { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: auto;
  transition: gap var(--dur-med), margin var(--dur-med);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  letter-spacing: 0.01em;
}

#navbar.scrolled .nav-links {
  gap: clamp(var(--sp-4), 4vw, var(--sp-12));
  margin-left: auto;
  margin-right: auto;
}

#navbar.scrolled .nav-link {
  color: rgba(244,244,245,0.9);
  font-size: 0.98rem;
  font-weight: 500;
  padding: var(--sp-2) var(--sp-2);
}

#navbar.scrolled .nav-link:hover {
  color: var(--text-1);
  background: transparent;
}

.nav-link:hover { color: var(--text-1); background: var(--surface); }

.nav-cta {
  margin-left: var(--sp-4);
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-5);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--r-full);
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast),
              color var(--dur-fast), padding var(--dur-med), font-size var(--dur-med);
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

#navbar.scrolled .nav-cta {
  margin-left: 0;
  padding: 0.72rem 1.55rem;
  background: #f7f4ed;
  color: #11110f;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}

.nav-cta:hover {
  background: #f0e4c4;
  box-shadow: 0 0 20px rgba(232,213,176,0.2);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--sp-2);
  margin-left: auto;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-1);
  border-radius: var(--r-full);
  transition: transform var(--dur-med), opacity var(--dur-med);
  transform-origin: center;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Menu ──────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med), visibility var(--dur-med);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}

.mob-link {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--text-2);
  transition: color var(--dur-fast);
}

.mob-link:hover { color: var(--accent); }

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: var(--sp-32) 0;
  position: relative;
}

/* ── Section Headers ──────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: var(--sp-16);
}

/* ── Reveal Animations ────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out) var(--delay, 0s),
              transform 0.7s var(--ease-out) var(--delay, 0s);
}

.reveal-left {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s var(--ease-out) var(--delay, 0s),
              transform 0.7s var(--ease-out) var(--delay, 0s);
}

.reveal-right {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s var(--ease-out) var(--delay, 0s),
              transform 0.7s var(--ease-out) var(--delay, 0s);
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--dur-fast) var(--ease-out);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
}

.btn:hover::after { background: rgba(255,255,255,0.06); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #f0e4c4;
  box-shadow: 0 8px 32px rgba(232,213,176,0.2);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.2);
}

/* Magnetic buttons */
.magnetic-btn { transition: transform 0.25s var(--ease-out), background var(--dur-fast), box-shadow var(--dur-fast); }

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--sp-16);
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px var(--sp-6) var(--sp-20);
  position: relative;
  overflow: hidden;
}

/* ── HERO BACKGROUND LAYERS ─────────────────────────────── */

/* Layer 1: Background Image */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('Generated_Hero_Image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-attachment: fixed;
  z-index: 0;
  will-change: transform;
  animation: heroZoomIn 1.2s var(--ease-out) forwards;
}

@keyframes heroZoomIn {
  from {
    transform: scale(1.08);
    opacity: 0.8;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Layer 2: Dark Overlay with Side Vignette (82% opacity center, darker edges) */
.hero-dark-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.80) 0%,
      rgba(0, 0, 0, 0.77) 15%,
      rgba(0, 0, 0, 0.65) 50%,
      rgba(0, 0, 0, 0.77) 85%,
      rgba(0, 0, 0, 0.80) 100%
    );
  z-index: 1;
  pointer-events: none;
}

/* Layer 3: Gradient Overlay (Mouse-reactive) */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: transparent;
  display: none;
}

/* Layer 4: Particles & Canvas */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  will-change: transform;
}

/* Layer 5: Vignette Effect (Enhanced edges) */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(
      ellipse at center,
      transparent 0%,
      rgba(0, 0, 0, 0.15) 60%,
      rgba(0, 0, 0, 0.35) 100%
    );
  z-index: 4;
  pointer-events: none;
  box-shadow: 
    inset 0 0 120px rgba(0, 0, 0, 0.5),
    inset -80px 0 100px rgba(0, 0, 0, 0.4),
    inset 80px 0 100px rgba(0, 0, 0, 0.4);
}

/* ── Hero Content (Layer 5 - Foreground) ─────────────────── */

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-photo {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  animation: fadeInUp 1.5s var(--ease-out) 2s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: var(--sp-8);
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: var(--sp-6);
}

.headline-line {
  display: block;
}

.headline-line.italic {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-3);
  transition: all var(--dur-fast);
}

.social-link svg { width: 18px; height: 18px; }

.social-link:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text-1);
  transform: translateY(-2px);
}

.photo-frame {
  position: relative;
  width: 380px;
  height: 460px;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-3);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,213,176,0.08) 0%, transparent 60%);
}

.photo-initials {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
  letter-spacing: -0.05em;
}

.photo-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(232,213,176,0.15), transparent 70%);
  border-radius: 50%;
}

/* Floating badges on photo */
.photo-badge-1,
.photo-badge-2 {
  position: absolute;
  background: rgba(16,16,18,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.4;
  box-shadow: var(--shadow-md);
  animation: badgeFloat 4s ease-in-out infinite;
}

.photo-badge-1 {
  top: var(--sp-6);
  left: -40px;
  animation-delay: 0s;
}

.photo-badge-2 {
  bottom: var(--sp-8);
  right: -40px;
  animation-delay: 2s;
}

.badge-icon { font-size: 1.25rem; flex-shrink: 0; }

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

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--border-2), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Additional Hero Animations ─────────────────────────── */
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-20px) translateX(10px); opacity: 0.5; }
  50% { transform: translateY(-40px) translateX(-10px); opacity: 0.4; }
  75% { transform: translateY(-20px) translateX(15px); opacity: 0.45; }
}

@keyframes subtleBlur {
  0%, 100% { filter: blur(0px); }
  50% { filter: blur(0.8px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════════════ */
.about {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-20);
  align-items: start;
}

.about-body p {
  font-size: 0.975rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.about-body p:last-child { margin-bottom: var(--sp-10); }

.about-stats {
  display: flex;
  gap: var(--sp-8);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* Timeline */
.timeline-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}

.timeline {
  position: relative;
  padding-left: var(--sp-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.2;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--sp-8);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1.5px solid var(--border-2);
  transition: all var(--dur-med);
}

.timeline-item.active::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(232,213,176,0.4);
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-1);
}

.tl-content h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: var(--sp-1);
}

.tl-content p {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   SKILLS SECTION
══════════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.skill-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: border-color var(--dur-med), background var(--dur-med), transform var(--dur-med), box-shadow var(--dur-med);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-med);
}

.skill-card:hover {
  border-color: var(--border-2);
  background: var(--bg-4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-card:hover::before { opacity: 1; }

.skill-icon {
  font-size: 1.8rem;
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
  position: relative;
  z-index: 1;
}

.skill-desc {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

.skill-bar {
  height: 3px;
  background: var(--bg-4);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: var(--sp-1);
  position: relative;
  z-index: 1;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(232,213,176,0.6) 100%);
  border-radius: var(--r-full);
  width: 0;
  transition: width 1.2s var(--ease-out);
}

.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  position: relative;
  z-index: 1;
}

/* Tech Stack Pills */
.stack-section {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-8);
}

.stack-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-4);
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.stack-pills span {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  color: var(--text-2);
  transition: all var(--dur-fast);
  font-family: var(--font-mono);
  font-weight: 300;
}

.stack-pills span:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════
   PROJECTS SECTION
══════════════════════════════════════════════════════════════ */
.projects { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--sp-2) var(--sp-5);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.85rem;
  color: var(--text-3);
  transition: all var(--dur-fast);
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  border-color: var(--border-2);
  color: var(--text-1);
  background: var(--surface);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

/* Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.project-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur-med) var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}

.project-card.hidden {
  opacity: 0;
  transform: scale(0.95) translateY(16px);
  pointer-events: none;
  position: absolute;
}

.project-visual {
  height: 140px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--bg-4)) 0%, var(--bg-4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 70%);
}

.project-visual-icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

.project-visual-bg {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.project-content {
  padding: var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.project-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.award-tag {
  background: var(--accent-dim);
  border-color: rgba(232,213,176,0.3);
  color: var(--accent);
}

.project-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: var(--sp-3);
  flex: 1;
}

.project-stack {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.02em;
}

.project-links {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: auto;
}

.project-detail-btn {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232,213,176,0.2);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-4);
  transition: all var(--dur-fast);
  letter-spacing: 0.01em;
}

.project-detail-btn:hover {
  background: rgba(232,213,176,0.2);
  border-color: rgba(232,213,176,0.4);
}

.project-link-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-3);
  transition: all var(--dur-fast);
}

.project-link-icon svg { width: 15px; height: 15px; }

.project-link-icon:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text-1);
}

/* ══════════════════════════════════════════════════════════════
   EXPERIENCE SECTION
══════════════════════════════════════════════════════════════ */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-20);
}

.exp-list {
  margin-top: var(--sp-8);
}

.exp-item {
  position: relative;
  padding-left: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-left: 1px solid var(--border);
}

.exp-item:last-child {
  padding-bottom: 0;
  border-color: transparent;
}

.exp-dot {
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1.5px solid var(--border-2);
  transition: all var(--dur-med);
}

.exp-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(232,213,176,0.4);
}

.exp-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.exp-type {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 1px var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.exp-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: var(--sp-1);
  letter-spacing: -0.01em;
}

.exp-org {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: var(--sp-2);
  font-style: italic;
}

.exp-detail {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: var(--sp-3);
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.exp-tags span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 2px var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-3);
}

/* ══════════════════════════════════════════════════════════════
   ACHIEVEMENTS
══════════════════════════════════════════════════════════════ */
.achievements { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.achievement-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: all var(--dur-med) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--dur-med);
}

.achievement-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.achievement-card:hover::before { opacity: 0.5; }

.ach-icon {
  font-size: 2.2rem;
  margin-bottom: var(--sp-4);
  display: block;
}

.achievement-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.achievement-card p {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: var(--sp-4);
}

.ach-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════════════════════════ */
.stats-section {
  padding: var(--sp-20) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.big-stat {
  background: var(--bg);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  transition: background var(--dur-med);
}

.big-stat:hover { background: var(--bg-2); }

.big-number {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-3);
}

.big-label {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════════ */
.testimonials { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.testimonial-track-outer {
  overflow: hidden;
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-6);
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s var(--ease-out);
}

.testimonial-card {
  flex: 0 0 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-12);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 0% 0%, var(--accent-glow) 0%, transparent 50%);
}

.test-quote {
  font-family: var(--font-serif);
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.15;
  line-height: 0.6;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

.test-text {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: var(--sp-8);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.test-author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
}

.test-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--accent);
  flex-shrink: 0;
}

.test-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 2px;
}

.test-author span {
  font-size: 0.8rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}

.test-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast);
}

.test-btn svg { width: 18px; height: 18px; }

.test-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text-1);
}

.test-dots {
  display: flex;
  gap: var(--sp-2);
}

.test-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-2);
  border: none;
  transition: all var(--dur-med);
  padding: 0;
}

.test-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: var(--r-full);
}

/* ══════════════════════════════════════════════════════════════
   ADD REVIEW SECTION
══════════════════════════════════════════════════════════════ */
.add-review-container {
  margin-top: var(--sp-16);
  padding: var(--sp-12);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}

.add-review-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 100% 100%, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.add-review-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-1);
  margin-bottom: var(--sp-8);
  position: relative;
  z-index: 1;
}

.add-review-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.add-review-form .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.add-review-form .form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-1);
}

.add-review-form .form-input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--dur-fast);
}

.add-review-form .form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-4);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.add-review-form .form-textarea {
  resize: vertical;
  min-height: 100px;
}

.char-count {
  font-size: 0.8rem;
  color: var(--text-3);
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-4);
}

.add-review-form .form-submit {
  align-self: flex-start;
  padding: var(--sp-3) var(--sp-6);
  font-size: 0.95rem;
}

/* Two-column row for review form */
.add-review-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

@media (max-width: 600px) {
  .add-review-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* Firebase loading shimmer for testimonial cards */
.test-card-loading {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
  height: 180px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Firebase badge on user-submitted reviews */
.test-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: #10b981;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-left: var(--sp-2);
}

.test-badge-live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.form-error {
  font-size: 0.8rem;
  color: var(--rose);
  display: none;
}

.form-input.error {
  border-color: var(--rose);
}

.form-input.error ~ .form-error {
  display: block;
}

.form-success {
  display: none;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--green);
  border-radius: var(--r-md);
  color: var(--green);
  font-size: 0.95rem;
  animation: slideIn 0.4s var(--ease-out);
}

.form-success.show {
  display: flex;
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-20);
  align-items: start;
}

.contact-sub {
  font-size: 0.975rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color var(--dur-fast);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all var(--dur-fast);
}

.contact-info-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }

.contact-info-item:hover {
  color: var(--text-1);
  background: var(--surface);
  border-color: var(--border);
}

/* Contact Form */
.contact-form {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,213,176,0.3), transparent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.form-input {
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-1);
  outline: none;
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
  width: 100%;
}

.form-input::placeholder { color: var(--text-3); }

.form-input:focus {
  border-color: rgba(232,213,176,0.4);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input.error { border-color: #f87171; }

.form-textarea { resize: vertical; min-height: 120px; font-family: var(--font-sans); }

.form-error {
  font-size: 0.78rem;
  color: #f87171;
  min-height: 1.2em;
  font-family: var(--font-mono);
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: var(--sp-4);
  margin-top: var(--sp-2);
}

.form-success {
  display: none;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--r-md);
  color: var(--green);
  font-size: 0.9rem;
  margin-top: var(--sp-4);
}

.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-success.show { display: flex; animation: fadeInUp 0.4s var(--ease-out); }

.contact-form.form-hidden {
  animation: fadeOutDown 0.3s var(--ease-out) forwards;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: var(--sp-20) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-16);
  margin-bottom: var(--sp-12);
}

.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
  text-decoration: none;
}

.footer-logo .logo-first {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--accent);
}

.footer-logo .logo-rest {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-2);
  letter-spacing: -0.02em;
}

.footer-logo:hover .logo-rest { color: var(--accent); transition: color 0.3s; }

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: var(--sp-5);
}

.footer-socials {
  display: flex;
  gap: var(--sp-2);
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-3);
  transition: all var(--dur-fast);
}

.footer-socials a svg { width: 16px; height: 16px; }

.footer-socials a:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text-1);
}

.footer-nav h4 {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: var(--sp-4);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color var(--dur-fast);
}

.footer-nav a:hover { color: var(--text-1); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* ══════════════════════════════════════════════════════════════
   PROJECT MODAL
══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  animation: fadeIn 0.25s var(--ease-out);
}

.modal-overlay[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.35s var(--ease-out);
  box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast);
  z-index: 1;
}

.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: var(--surface-2); color: var(--text-1); }

.modal-content { padding: var(--sp-8); }

.modal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-1);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}

.modal-content .modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.modal-content .modal-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 2px var(--sp-3);
  background: var(--accent-dim);
  border: 1px solid rgba(232,213,176,0.2);
  border-radius: var(--r-full);
  color: var(--accent);
}

.modal-content p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.modal-content h3 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal-content ul {
  list-style: disc;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.modal-content li {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: var(--sp-1);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  #navbar.scrolled .nav-inner {
    width: min(calc(100% - 32px), 920px);
  }

  #navbar.scrolled .nav-links {
    gap: var(--sp-4);
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 100px;
    padding-bottom: var(--sp-20);
  }

  .hero-photo { order: -1; }

  .photo-frame { width: 280px; height: 340px; margin: 0 auto; }

  .photo-badge-1 { left: -10px; }
  .photo-badge-2 { right: -10px; }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .exp-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-12); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --sp-32: 5rem;
    --sp-20: 3.5rem;
    --sp-16: 3rem;
  }

  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  #navbar.scrolled { padding: var(--sp-3) 0; }
  #navbar.scrolled .nav-inner {
    width: calc(100% - 24px);
    min-height: 56px;
    padding: 0.32rem var(--sp-3) 0.32rem var(--sp-5);
  }

  .hero { gap: var(--sp-8); grid-template-columns: 1fr; }
  .hero-bg-image { background-attachment: scroll; }

  .hero-headline { font-size: clamp(2.2rem, 8vw, 3rem); }

  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; gap: var(--sp-2); text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { gap: var(--sp-6); }

  .testimonial-card { padding: var(--sp-6); }
  .test-text { font-size: 0.95rem; }
  
  .add-review-container { padding: var(--sp-8); }
  .add-review-form { max-width: 100%; }
  
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
}

@media (max-width: 480px) {
  .photo-frame { width: 240px; height: 300px; }
  .photo-badge-1, .photo-badge-2 { display: none; }
  .hero-badge { font-size: 0.72rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .big-number { font-size: 3rem; }
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--bg-3); }

/* ── Focus Styles (accessibility) ────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Selection ────────────────────────────────────────────── */
::selection {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   EDITORIAL REDESIGN — SKILLS, PROJECTS, ACHIEVEMENTS
   Premium Luxury Aesthetic · Content-first · Minimal
══════════════════════════════════════════════════════════════ */

/* ── SKILLS — Expertise Rows ──────────────────────────────── */
.skills-editorial-header {
  margin-bottom: var(--sp-16);
}

.expertise-list {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-16);
}

.expertise-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--sp-12);
  align-items: start;
  padding: var(--sp-10) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background var(--dur-med);
}

.expertise-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(232,213,176,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-med);
  pointer-events: none;
  border-radius: var(--r-sm);
}

.expertise-row:first-child {
  border-top: 1px solid var(--border);
}

.expertise-row:hover::before { opacity: 1; }

.expertise-left {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
}

.expertise-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 0 12px rgba(232,213,176,0.2));
  transition: transform var(--dur-med) var(--ease-out);
}

.expertise-row:hover .expertise-icon {
  transform: scale(1.15) rotate(-3deg);
}

.expertise-identity {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.expertise-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
}

.expertise-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.expertise-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-full);
  width: fit-content;
}

.expertise-badge.expert {
  background: rgba(232,213,176,0.12);
  border: 1px solid rgba(232,213,176,0.3);
  color: var(--accent);
}

.expertise-badge.advanced {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  color: var(--text-2);
}

.expertise-badge.proficient {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.expertise-right {
  padding-top: var(--sp-1);
}

.expertise-desc {
  font-size: 0.94rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}

.expertise-techs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.expertise-techs span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: all var(--dur-fast);
  letter-spacing: 0.04em;
}

.expertise-techs span:hover {
  color: var(--accent);
  border-color: rgba(232,213,176,0.3);
  background: rgba(232,213,176,0.05);
}

/* ── PROJECTS — Featured Showcase ─────────────────────────── */
.featured-projects {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.featured-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 440px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--dur-med), box-shadow var(--dur-med);
  position: relative;
}

.featured-project:hover {
  border-color: rgba(232,213,176,0.2);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 4px 24px rgba(0,0,0,0.3);
}

/* Visual Panel */
.fp-visual {
  position: relative;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 320px;
}

.fp-left .fp-visual { border-right: 1px solid var(--border); }
.fp-right .fp-visual { border-left: 1px solid var(--border); }

.fp-visual-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.fp-visual-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--proj-color) 12%, transparent) 0%, transparent 65%);
  transition: opacity var(--dur-slow);
  opacity: 0.7;
}

.featured-project:hover .fp-visual-glow { opacity: 1; }

.fp-icon-wrap {
  position: relative;
  z-index: 2;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--proj-color) 8%, var(--bg-4));
  border: 1px solid color-mix(in srgb, var(--proj-color) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--proj-color) 20%, transparent);
}

.featured-project:hover .fp-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 0 40px color-mix(in srgb, var(--proj-color) 25%, transparent);
}

.fp-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}

.fp-number-bg {
  position: absolute;
  bottom: var(--sp-5);
  right: var(--sp-5);
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 400;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

/* Content Panel */
.fp-content {
  padding: var(--sp-10) var(--sp-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-2);
}

.fp-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.fp-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
}

.fp-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.fp-meta .fp-year + .fp-cat::before {
  content: '·';
  margin-right: var(--sp-3);
  color: var(--text-3);
}

.fp-award {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 10px;
  background: rgba(232,213,176,0.1);
  border: 1px solid rgba(232,213,176,0.25);
  border-radius: var(--r-full);
  color: var(--accent);
  letter-spacing: 0.04em;
}

.fp-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}

.fp-lead {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.fp-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding: var(--sp-5);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.fp-detail-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-4);
  align-items: baseline;
}

.fp-detail-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.fp-detail-text {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.6;
  margin: 0;
}

.fp-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.fp-tech-row span, .fps-card .fp-tech-row span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
  transition: all var(--dur-fast);
}

.fp-tech-row span:hover {
  color: var(--accent);
  border-color: rgba(232,213,176,0.3);
}

.fp-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.fp-case-btn {
  background: none;
  border: 1px solid rgba(232,213,176,0.3);
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-5);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: all 220ms var(--ease-out);
  font-family: var(--font-sans);
}

.fp-case-btn:hover {
  background: rgba(232,213,176,0.1);
  border-color: rgba(232,213,176,0.5);
  transform: translateX(3px);
}

.fp-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-3);
  transition: all var(--dur-fast);
}

.fp-link:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text-1);
}

/* Secondary Cards Row */
.fp-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.fp-secondary-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color var(--dur-med), box-shadow var(--dur-med);
  position: relative;
  overflow: hidden;
}

.fp-secondary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,213,176,0.2), transparent);
  opacity: 0;
  transition: opacity var(--dur-med);
}

.fp-secondary-card:hover {
  border-color: rgba(232,213,176,0.15);
  box-shadow: var(--shadow-md);
}

.fp-secondary-card:hover::before { opacity: 1; }

.fps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}

.fps-icon { font-size: 1.8rem; }

.fps-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -0.04em;
}

.fps-meta {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}

.fps-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.fps-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.fps-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.fps-desc {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.65;
  flex: 1;
}

.fps-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
  font-family: var(--font-sans);
  transition: color var(--dur-fast), transform var(--dur-fast);
  text-align: left;
  margin-top: var(--sp-2);
  letter-spacing: 0.01em;
}

.fps-btn:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* ── ACHIEVEMENTS — Luxury Timeline ───────────────────────── */
.ach-timeline {
  position: relative;
  padding-left: 120px;
  margin-top: var(--sp-12);
}

.ach-timeline-line {
  position: absolute;
  left: 92px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(232,213,176,0.5) 10%,
    rgba(232,213,176,0.3) 50%,
    rgba(232,213,176,0.5) 90%,
    transparent 100%
  );
}

.ach-milestone {
  display: flex;
  gap: var(--sp-10);
  padding: var(--sp-10) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  align-items: flex-start;
  transition: opacity var(--dur-med);
}

.ach-milestone:last-child { border-bottom: none; }

.ach-milestone:hover .ach-milestone-content { opacity: 1; }

.ach-year-marker {
  position: absolute;
  left: -120px;
  top: var(--sp-10);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 120px;
  justify-content: flex-end;
  /* Ensure the dot (last child) sits exactly on the vertical line at left:92px of parent */
  padding-right: 23px; /* 120px - 92px - dot_radius(4.5px) ≈ 23.5px */
}

.ach-year-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.ach-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1.5px solid rgba(232,213,176,0.4);
  position: relative;
  flex-shrink: 0;
  transition: all var(--dur-med);
  /* Precise vertical line alignment: marker right-aligns into timeline */
  margin-right: -4.5px;
}

.ach-milestone:hover .ach-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(232,213,176,0.4);
}

.ach-milestone-content {
  flex: 1;
  opacity: 0.85;
  transition: opacity var(--dur-med);
}

.ach-icon-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.ach-emoji {
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(232,213,176,0.15));
}

.ach-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ach-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-3);
}

.ach-desc {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 640px;
}

/* ── Responsive Overrides ─────────────────────────────────── */
@media (max-width: 1024px) {
  .expertise-row {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .featured-project {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .fp-left .fp-visual,
  .fp-right .fp-visual {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--border);
    min-height: 240px;
  }

  .fp-right {
    direction: ltr;
  }

  .fp-right .fp-content {
    order: 1;
  }

  .fp-right .fp-visual {
    order: 2;
    border-top: 1px solid var(--border);
    border-bottom: none;
  }

  .fp-secondary-row {
    grid-template-columns: 1fr;
  }

  .ach-timeline {
    padding-left: 80px;
  }

  .ach-year-marker {
    left: -80px;
    width: 80px;
  }

  .ach-timeline-line {
    left: 64px;
  }
}

@media (max-width: 768px) {
  .expertise-row {
    padding: var(--sp-8) 0;
  }

  .ach-timeline {
    padding-left: 0;
    padding-top: var(--sp-6);
  }

  .ach-timeline-line { display: none; }

  .ach-year-marker {
    position: static;
    width: auto;
    margin-bottom: var(--sp-2);
    justify-content: flex-start;
  }

  .ach-milestone {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .fp-content {
    padding: var(--sp-6);
  }

  .fp-detail-row {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }

  .fp-title {
    font-size: 1.6rem;
  }
}
