/* =====================================================
   FONT FACE — Big Shoulders
===================================================== */
@font-face {
  font-family: 'Big Shoulders';
  src: url('BigShoulders-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('Geist-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* =====================================================
   CSS CUSTOM PROPERTIES — COLOR SYSTEM
===================================================== */
:root {
  /* Light mode defaults */
  --bg-base:        #F5F0E8;
  --bg-surface:     #FFFFFF;
  --bg-surface-2:   #EDE6DA;
  --bg-highlight:   #FFF1E6;

  --accent-warm:    #C85C35;
  --accent-warm-2:  #E8784F;
  --accent-cool:    #2F6B5E;
  --accent-cool-2:  #3D8A7A;

  --text-primary:   #1A1714;
  --text-secondary: #6B5E52;
  --text-body:      #5A4F44;
  --text-muted:     #9C8E82;
  --text-on-accent: #FFFFFF;

  --border:         #DDD5C8;
  --border-strong:  #C8BFB3;
  --shadow-sm:      0 1px 3px rgba(26,23,20,0.08);
  --shadow-md:      0 4px 16px rgba(26,23,20,0.10);
  --shadow-lg:      0 12px 40px rgba(26,23,20,0.14);
  --shadow-hover:   0 16px 48px rgba(200,92,53,0.15);

  /* Typography scale */
  --font-display:   'Big Shoulders', 'Fraunces', Georgia, serif;
  --font-body:      'Geist', 'DM Sans', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Courier New', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

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

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-2xl: 40px;

  --transition-fast:   150ms ease-out;
  --transition-base:   220ms ease-out;
  --transition-slow:   350ms ease-out;
  --transition-theme:  300ms ease;
}

/* =====================================================
   DARK MODE
===================================================== */
[data-theme="dark"] {
  --bg-base:        #131110;
  --bg-surface:     #1E1A17;
  --bg-surface-2:   #2A2520;
  --bg-highlight:   #2A1F18;

  --accent-warm:    #D96B3F;
  --accent-warm-2:  #F08050;
  --accent-cool:    #3D8A7A;
  --accent-cool-2:  #50A896;

  --text-primary:   #EDE6DC;
  --text-secondary: #A09282;
  --text-body:      #C8B8A5;
  --text-muted:     #6B5E52;
  --text-on-accent: #FFFFFF;

  --border:         #2F2A25;
  --border-strong:  #3D3530;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.30);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.40);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.50);
  --shadow-hover:   0 16px 48px rgba(217,107,63,0.20);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-base);
  line-height: 1.6;
  transition:
    background-color var(--transition-theme),
    color var(--transition-theme);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul { list-style: none; }

/* =====================================================
   UTILITY
===================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.section {
  padding: var(--space-24) 0;
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: #EDE6DC;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

.section-title em {
  font-style: normal;
  color: var(--text-body);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-body);
  margin-top: 12px;
  max-width: 640px;
}

/* =====================================================
   ANIMATION BASE CLASSES (Intersection Observer)
===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s ease-out;
}

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

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }

/* =====================================================
   CARD BASE
===================================================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition:
    background var(--transition-theme),
    border-color var(--transition-theme),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.005);
}

/* =====================================================
   NAVIGATION
===================================================== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: auto;
  max-width: calc(100% - var(--space-6));
  transition:
    top var(--transition-base),
    background var(--transition-theme),
    backdrop-filter var(--transition-slow),
    border-color var(--transition-theme);
}

.nav > .container { padding: 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  height: 64px;
  padding: 0 32px;
  position: relative;
  isolation: isolate;
  overflow: hidden;

  /* DEFAULT (top of page) — very subtle, near-invisible glass */
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.02) 50%,
      rgba(255, 255, 255, 0.01) 100%
    ),
    color-mix(in srgb, var(--bg-surface) 14%, transparent);

  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);

  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-color: rgba(255, 255, 255, 0.12);
  border-radius: 100px;

  box-shadow:
    /* light ambient drop only */
    0 4px 18px rgba(0, 0, 0, 0.18),
    /* faint inner top highlight */
    inset 0 1px 0 rgba(255, 255, 255, 0.10);

  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* SCROLLED — solid-enough glass with clear text legibility */
.nav.scrolled .nav-inner {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.04) 45%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    color-mix(in srgb, var(--bg-surface) 88%, transparent);

  backdrop-filter: blur(40px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.05);

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.24);

  box-shadow:
    0 14px 48px rgba(0, 0, 0, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.25),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.30);
}

/* Top sheen — only visible in scrolled state */
.nav-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.04) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 100px 100px 80px 80px / 100px 100px 40px 40px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav.scrolled .nav-inner::before {
  opacity: 1;
}

/* Keep nav content above the sheen pseudo-element */
.nav-inner > * {
  position: relative;
  z-index: 1;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
  will-change: transform;
  transition: transform var(--transition-fast);
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 82%;
  transform: scale(1.35);
  transform-origin: 50% 50%;
  display: block;
}

.nav-logo:hover { transform: scale(1.05); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #ffffff;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.is-active {
  color: var(--text-primary);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition-theme),
    border-color var(--transition-theme),
    transform var(--transition-fast);
  color: var(--text-body);
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  color: var(--accent-warm);
}

.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: none; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-2);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-4);
}

.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: var(--text-base); }

/* =====================================================
   HERO SECTION
===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent-warm) 12%, transparent), transparent 70%);
  pointer-events: none;
  animation: orb-drift 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent-cool) 10%, transparent), transparent 70%);
  pointer-events: none;
  animation: orb-drift 10s ease-in-out infinite alternate-reverse;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.1); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: 420px;
  height: 420px;
}

/* Animated entry */
.hero-greeting {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.5s ease-out 0.1s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, var(--text-7xl));
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: var(--space-3) 0 var(--space-4);
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in 0.6s ease-out 0.25s forwards;
}

.hero-name .name-highlight {
  color: var(--accent-warm);
  font-style: normal;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.5s ease-out 0.45s forwards;
}

.hero-title-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  color: #EDE6DC;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0;
  font-family: var(--font-body);
  white-space: nowrap;
}

.hero-title-pill::before {
  content: '✦';
  font-size: 16px;
  color: #EDE6DC;
  animation: twinkle 1.2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.2; transform: scale(0.5); }
}

.hero-title-separator {
  display: none;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, var(--text-2xl));
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.5s ease-out 0.6s forwards;
}

.hero-bio {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 560px;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.5s ease-out 0.75s forwards;
}

.hero-bio strong,
.hero-bio-story strong { color: var(--text-primary); font-weight: 600; }

.smile-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
  color: var(--text-primary);
}

.hero-bio-story {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: calc(-1 * var(--space-4)) 0 var(--space-8);
  max-width: 560px;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.5s ease-out 0.85s forwards;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  animation: hero-in 0.5s ease-out 0.9s forwards;
}

.hero-funfact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-12);
  padding: 10px 14px;
  background: color-mix(in srgb, var(--accent-cool) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-cool) 28%, transparent);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.8;
  white-space: nowrap;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: hero-in 0.5s ease-out 1s forwards;
}

.hero-funfact strong {
  font-weight: 700;
}

.hero-funfact-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  color: var(--accent-cool-2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.hero-funfact-tag svg,
.hero-funfact-bulb {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  animation: funfact-bulb-glow 1.2s ease-in-out infinite;
}

@keyframes funfact-bulb-glow {
  0%, 30% {
    filter: none;
  }
  50%, 75% {
    filter: drop-shadow(0 0 3px #FFD43B)
            drop-shadow(0 0 7px rgba(255, 212, 59, 0.75));
  }
  100% {
    filter: none;
  }
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.social-icon:hover {
  color: var(--accent-warm);
  border-color: var(--accent-warm);
  background: var(--bg-highlight);
  transform: translateY(-3px) rotate(5deg);
}

.social-icon svg { width: 20px; height: 20px; }

/* Hero visual (right side) */
.hero-visual {
  opacity: 0;
  animation: hero-in 0.7s ease-out 0.5s forwards;
}

.hero-avatar-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: var(--radius-2xl);
}

.hero-avatar {
  width: 260px;
  height: 260px;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: scale(1);
  object-position: center 30%;
}

.hero-avatar-badge {
  position: absolute;
  bottom: -12px;
  right: -12px;
  background: var(--accent-warm);
  color: var(--text-on-accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: 100px;
  border: 2px solid var(--bg-base);
  white-space: nowrap;
}

.hero-deco-ring {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 292px;
  height: 292px;
  border-radius: calc(var(--radius-2xl) + 8px);
  border: 2px dashed color-mix(in srgb, var(--accent-warm) 30%, transparent);
  animation: spin-ring 20s linear infinite;
}

.hero-avatar-mobile { display: none; }

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   ABOUT SECTION — BENTO GRID
===================================================== */
#about {
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 32%;
  height: 45%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent-cool) 16%, transparent), transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

#about::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 32%;
  height: 45%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent-warm) 16%, transparent), transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 14s ease-in-out infinite alternate-reverse;
}

#about > .container {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.about-bio-card {
  grid-column: 1 / -1;
  max-width: 750px;
  width: 100%;
}

.about-bio-card strong { color: var(--text-primary); font-weight: 600; }

/* ── Timeline ─────────────────────────────────────── */
.timeline {
  --progress: 0;
  --line-top: 14px;
  --line-height: calc(100% - 28px);
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline::before,
.timeline::after {
  content: '';
  position: absolute;
  left: 9px;
  top: var(--line-top);
  height: var(--line-height);
  width: 2px;
  border-radius: 1px;
  pointer-events: none;
}

.timeline::before {
  background: var(--border);
}

.timeline::after {
  background: var(--text-secondary);
  transform-origin: top;
  transform: scaleY(var(--progress));
  transition: transform 120ms linear;
}

.timeline-plane {
  position: absolute;
  left: -6px;
  top: calc(var(--line-top) + var(--line-height) * var(--progress) - 22px);
  width: 32px;
  height: 32px;
  color: var(--text-primary);
  pointer-events: none;
  z-index: 5;
  transition: top 160ms linear;
  animation: plane-fly 2.6s ease-in-out infinite alternate;
}

@keyframes plane-fly {
  from { transform: rotate(132deg) translate(0, -1px); }
  to { transform: rotate(138deg) translate(0, 1px); }
}

.timeline-item {
  position: relative;
  padding-left: 44px;
  padding-bottom: var(--space-8);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  z-index: 2;
  transition: border-color 320ms ease, box-shadow 320ms ease;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--text-secondary);
  transform: scale(0);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-dot.is-active {
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--text-secondary) 14%, transparent);
}

.timeline-dot.is-active::after {
  transform: scale(1);
}

.timeline-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.timeline-label-pill {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-surface) 60%, transparent);
  color: var(--text-primary);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.company-logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #161616;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.company-logo-tile img {
  width: 24px;
  height: 24px;
  display: block;
}

.timeline-desc {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text-body);
  margin: 0;
}

.timeline-subentry {
  margin-top: var(--space-5);
}

.timeline-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

.about-photo-card {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  background: var(--bg-surface-2);
  text-align: center;
}

/* REPLACE: about-photo with real image */
.about-photo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  border: 2px solid var(--border);
}

.about-name-tag {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.about-name-tag span {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.community-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: color-mix(in srgb, var(--accent-cool) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-cool) 20%, transparent);
  color: var(--accent-cool);
  font-size: 13px;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: 100px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-row {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.stat-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition:
    background var(--transition-theme),
    border-color var(--transition-theme),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--accent-warm);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-2);
  line-height: 1.4;
}

/* =====================================================
   EXPERIENCE SECTION
===================================================== */
.experience-section {
  background: var(--bg-surface-2);
  position: relative;
  overflow: hidden;
}

.experience-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: -15%;
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse 60% 55% at 60% 40%,
    color-mix(in srgb, var(--accent-warm) 55%, transparent) 0%,
    color-mix(in srgb, var(--accent-warm) 30%, transparent) 30%,
    color-mix(in srgb, var(--accent-warm) 10%, transparent) 55%,
    transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.experience-section > .container { position: relative; z-index: 1; }

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.experience-card {
  position: relative;
}

.experience-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: start;
}

.exp-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  color: var(--accent-warm);
  margin-bottom: var(--space-5);
  flex-shrink: 0;
  overflow: hidden;
}

.exp-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.exp-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.exp-meta { flex: 1; }

.exp-company {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.exp-role {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0;
}

.exp-duration {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  white-space: nowrap;
  margin-top: var(--space-1);
  display: inline-block;
  flex-shrink: 0;
}

.exp-bullets {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.exp-bullet {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.6;
}

.exp-bullet::before {
  content: '✦';
  color: var(--text-body);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1.6;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.exp-metric {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: color-mix(in srgb, var(--accent-cool) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-cool) 22%, transparent);
  color: var(--accent-cool);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-left: var(--space-1);
}

.exp-badge {
  background: var(--accent-warm);
  color: var(--text-on-accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 3px var(--space-2);
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =====================================================
   SKILLS SECTION
===================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.skill-category-card {
  padding: var(--space-6);
}

.skill-cat-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent-warm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-pill {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  cursor: default;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
  opacity: 0;
  transform: scale(0.9);
}

.skill-pill.visible {
  opacity: 1;
  transform: scale(1);
}

.skill-pill:hover {
  background: color-mix(in srgb, var(--accent-warm) 12%, transparent);
  border-color: var(--accent-warm);
  color: var(--accent-warm);
  transform: translateY(-2px);
}

.skill-pill.placeholder {
  border-style: dashed;
  color: var(--text-muted);
  font-style: italic;
}

/* =====================================================
   PROJECTS SECTION
===================================================== */
.projects-section { background: var(--bg-surface-2); }

.projects-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.projects-footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

.project-card-featured,
.project-card-small {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.project-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid var(--text-muted);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent-warm) 18%, transparent);
  background-color: var(--bg-surface-2);
  background-image: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-warm) 20%, var(--bg-surface-2)),
    color-mix(in srgb, var(--accent-cool) 20%, var(--bg-surface-2)));
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  font-style: italic;
  color: var(--text-muted);
}

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

.project-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 3px var(--space-3);
  border-radius: 100px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.project-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 32px;
  margin-bottom: var(--space-3);
}

.project-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.project-metric {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: color-mix(in srgb, var(--accent-cool) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-cool) 18%, transparent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}

.project-metrics {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-5);
}

.project-metrics .metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.project-metrics .metric-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.project-metrics .metric-text {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-body);
}

.metric-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--accent-cool);
  line-height: 1;
}

.metric-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

.project-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  padding-right: 1.4em;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-warm);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: color var(--transition-fast);
}

.project-cta::before,
.project-cta::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.project-cta::before {
  color: var(--text-primary);
  opacity: 0;
  transform: translate(-12px, -50%);
}

.project-cta::after {
  color: var(--accent-warm);
  opacity: 1;
  transform: translateY(-50%);
}

.project-cta:hover,
.card.is-clickable:hover .project-cta {
  color: var(--text-primary);
}

.project-cta:hover::before,
.card.is-clickable:hover .project-cta::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.project-cta:hover::after,
.card.is-clickable:hover .project-cta::after {
  opacity: 0;
  transform: translate(12px, -50%);
}

.card.is-clickable {
  cursor: pointer;
}

.project-card-small .project-body { flex: 1; }

.project-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-cta-row .project-cta {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.project-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 10px;
  background: var(--bg-surface-2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-body);
  margin-top: auto;
}

.project-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.project-card-small .project-thumb-sm {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid var(--text-muted);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent-warm) 18%, transparent);
  background-color: var(--bg-surface-2);
  background-image: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-warm) 15%, var(--bg-surface-2)),
    color-mix(in srgb, var(--accent-cool) 10%, var(--bg-surface-2)));
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--text-muted);
}

.project-card-small .project-title {
  font-size: 24px;
  line-height: 32px;
  margin-bottom: var(--space-2);
}

.project-card-small .project-desc {
  font-size: var(--text-sm);
  flex: 1;
}

.project-card-small .project-body:has(.project-cta-row) .project-desc {
  flex: 0 0 auto;
}

/* =====================================================
   WRITING SECTION
===================================================== */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid var(--text-muted);
  background-color: var(--bg-surface-2);
  background-image: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-warm) 15%, var(--bg-surface-2)),
    color-mix(in srgb, var(--accent-cool) 10%, var(--bg-surface-2)));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.article-pub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.article-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

.article-excerpt {
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.article-link {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-warm);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  padding-right: 1.4em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: color var(--transition-fast);
  margin-top: auto;
}

.article-link::before,
.article-link::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.article-link::before {
  color: var(--text-primary);
  opacity: 0;
  transform: translate(-12px, -50%);
}

.article-link::after {
  color: var(--accent-warm);
  opacity: 1;
  transform: translateY(-50%);
}

.article-link:hover,
.article-card:hover .article-link {
  color: var(--text-primary);
}

.article-link:hover::before,
.article-card:hover .article-link::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.article-link:hover::after,
.article-card:hover .article-link::after {
  opacity: 0;
  transform: translate(12px, -50%);
}

.writing-placeholder {
  grid-column: 3 / 4;
  border: 1.5px dashed var(--border);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-3);
  cursor: default;
}

.writing-placeholder:hover {
  transform: none;
  box-shadow: none;
}

.placeholder-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.placeholder-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

/* =====================================================
   TESTIMONIALS SECTION
===================================================== */
.testimonials-section { background: var(--bg-surface-2); }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-warm) 6%, transparent) 0%,
    transparent 45%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.testimonial-body {
  flex: 1;
  position: relative;
  z-index: 1;
}

.testimonial-body p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.testimonial-body p:last-child { margin-bottom: 0; }

.testimonial-body .hl {
  color: var(--text-primary);
  font-weight: 500;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-surface-2);
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.testimonial-name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.testimonial-role {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-body);
  letter-spacing: 0.02em;
}

/* =====================================================
   EDUCATION SECTION
===================================================== */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.edu-card {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.edu-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent-cool) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-cool) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cool);
  flex-shrink: 0;
}

.edu-icon svg { width: 24px; height: 24px; }

.edu-degree {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.edu-institution {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.edu-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
  display: inline-block;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  padding: 2px var(--space-3);
  border-radius: 100px;
}

/* =====================================================
   CONTACT SECTION
===================================================== */
.contact-section {
  background: var(--bg-surface-2);
}

.contact-card {
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
}

.contact-deco-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(320px, 60%);
  aspect-ratio: 1;
  border-radius: calc(var(--radius-2xl) + 12px);
  border: 1.5px dashed color-mix(in srgb, var(--accent-warm) 30%, transparent);
  transform: translate(-50%, -50%);
  animation: contact-ring-spin 22s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes contact-ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes contact-ring-spin-top {
  from { transform: translate(-50%, 0) rotate(0deg); }
  to   { transform: translate(-50%, 0) rotate(360deg); }
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, var(--text-5xl));
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-5);
  position: relative;
}

.contact-heading em {
  font-style: normal;
  color: var(--text-body);
}

.contact-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto var(--space-10);
  line-height: 1.65;
  position: relative;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
  position: relative;
}

.contact-actions .btn-primary,
.contact-actions .btn-secondary {
  flex: 0 0 240px;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--accent-warm);
  color: var(--text-on-accent);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-4) var(--space-8);
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-warm) 40%, transparent);
  background: var(--accent-warm-2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-4) var(--space-8);
  border-radius: 100px;
  border: 1.5px solid var(--border-strong);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    background var(--transition-fast);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-warm);
  color: var(--accent-warm);
  background: color-mix(in srgb, var(--accent-warm) 10%, var(--bg-surface));
}

.contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  transition: border-color var(--transition-theme);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.footer-copy span {
  color: var(--accent-warm);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* =====================================================
   FOCUS VISIBLE (accessibility)
===================================================== */
:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* =====================================================
   LITTLE PIECES OF ART — polaroid gallery
===================================================== */
.art-section {
  padding-top: var(--space-12);
  overflow: hidden;
}

.art-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-5xl);
  line-height: 1.1;
}

.art-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 1100 / 720;
  margin: var(--space-12) auto 0;
}

.art-piece {
  position: absolute;
  background: #fff;
  padding: 10px 10px 32px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.45s cubic-bezier(.2, .9, .3, 1.2), box-shadow 0.35s ease;
  will-change: transform;
}

.art-piece img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.art-piece::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 50px;
  height: 14px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(232, 220, 196, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.art-piece:hover {
  transform: rotate(0deg) scale(1.08);
  z-index: 20;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 6px 14px rgba(0, 0, 0, 0.5);
}

.art-l       { width: 19%; }
.art-l  img  { aspect-ratio: 3 / 4; }
.art-sq      { width: 17%; }
.art-sq img  { aspect-ratio: 1 / 1; }
.art-p       { width: 15%; }
.art-p  img  { aspect-ratio: 5 / 7; }
.art-circle  { width: 17%; padding: 8px; border-radius: 50%; }
.art-circle img    { aspect-ratio: 1 / 1; border-radius: 50%; }
.art-circle::before { display: none; }

.art-pos-1  { left: 0%;  top: 5%;  transform: rotate(-7deg); z-index: 3; }
.art-pos-2  { left: 19%; top: 13%; transform: rotate(4deg);  z-index: 5; }
.art-pos-3  { left: 37%; top: 0%;  transform: rotate(-3deg); z-index: 6; }
.art-pos-4  { left: 56%; top: 14%; transform: rotate(6deg);  z-index: 2; }
.art-pos-5  { left: 73%; top: 4%;  transform: rotate(-5deg); z-index: 4; }
.art-pos-6  { left: 3%;  top: 54%; transform: rotate(5deg);  z-index: 7; }
.art-pos-7  { left: 22%; top: 51%; transform: rotate(-6deg); z-index: 4; }
.art-pos-8  { left: 38%; top: 56%; transform: rotate(3deg);  z-index: 8; }
.art-pos-9  { left: 54%; top: 58%; transform: rotate(-4deg); z-index: 5; }
.art-pos-10 { left: 75%; top: 53%; transform: rotate(7deg);  z-index: 3; }

/* =====================================================
   RESPONSIVE — TABLET
===================================================== */
@media (max-width: 900px) {
  .container { padding: 0 15px; }

  .section { padding: 72px 0; }

  .art-section { padding-top: 72px; }

  .project-note { align-items: flex-start; font-size: 14px; }
  .project-note svg { margin-top: 3px; }

  .experience-section { overflow: visible; }
  .experience-section::after {
    top: 30%;
    left: -180px;
    right: auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(50px);
    background: color-mix(in srgb, var(--accent-warm) 40%, transparent);
  }


  .hero { padding-top: 100px; }

  .hero-bio,
  .hero-bio-story,
  .contact-sub,
  .timeline-desc,
  .about-bio-card { font-size: 15px; }

  #about::before {
    width: 400px;
    height: 400px;
    bottom: 0%;
    left: -5%;
  }

  #about::after {
    width: 400px;
    height: 400px;
    top: 5%;
    right: -10%;
  }

  .timeline-title,
  .exp-company,
  .project-title,
  .project-card-small .project-title { font-size: 18px; line-height: 1.3; }

  .hero-name br { display: none; }
  .hero-name .name-highlight { margin-left: 0.3em; }

  .section-header { margin-bottom: var(--space-6); }

  .card { padding: 16px; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual { display: none; }

  .hero-avatar-mobile {
    display: flex;
    justify-content: center;
    margin: var(--space-6) 0 var(--space-10);
  }
  .hero-avatar-mobile-wrap {
    position: relative;
    width: 180px;
    height: 180px;
  }
  .hero-avatar-clip {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  .hero-avatar-mobile .hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    transform: scale(1);
    transform-origin: center 50%;
    object-position: center 82%;
  }
  .hero-deco-ring-mobile {
    top: -12px;
    left: -12px;
    width: 204px;
    height: 204px;
    border-radius: 24px;
  }

  /* Glow layers on mobile avatar — match 24px clip radius */
  .hero-avatar-mobile-wrap .agly-1 { border-radius: calc(24px + 4px); }
  .hero-avatar-mobile-wrap .agly-2 { border-radius: calc(24px + 3px); }
  .hero-avatar-mobile-wrap .agly-3 { border-radius: calc(24px + 2px); }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-title-row {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-10);
  }

  .hero-title-pill { font-size: 13px; }
  .hero-title-pill::before { font-size: 13px; }

  .hero-social { justify-content: center; }

  /* Center the eyebrow with the name on tablet/mobile (flex item — text-align doesn't reach it) */
  .hero-greeting { justify-content: center; }

  .hero-bio,
  .hero-bio-story { max-width: 100%; }

  .hero-funfact {
    white-space: normal;
    max-width: 100%;
    text-align: left;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-bio-card { grid-column: 1 / 2; }

  .about-photo-card {
    grid-column: 1 / 2;
    grid-row: auto;
    flex-direction: row;
    text-align: left;
  }

  .stat-row {
    grid-column: 1 / 2;
    grid-row: auto;
    grid-template-columns: repeat(3, 1fr);
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .experience-card.featured { grid-column: 1 / 2; }

  .skills-grid { grid-template-columns: 1fr; }

  .projects-bento {
    grid-template-columns: 1fr 1fr;
  }

  .project-card-featured,
  .project-card-small {
    flex-direction: column;
    gap: var(--space-5);
  }

  .project-card-featured .project-thumb,
  .project-card-small .project-thumb-sm {
    flex: 0 0 auto;
    width: 100%;
  }

  .writing-grid { grid-template-columns: 1fr 1fr; }
  .writing-placeholder { display: none; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-author { align-items: flex-start; }
  .testimonial-avatar { margin-top: 2px; }

  .education-grid { grid-template-columns: 1fr; }

  .nav-inner {
    gap: var(--space-6);
    height: 55px;
    padding: 0 20px;
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.25),
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 0 24px rgba(255, 255, 255, 0.12),
      inset 0 1px 0 color-mix(in srgb, var(--text-primary) 10%, transparent);
  }
  .nav-links { gap: var(--space-4); }
  .nav-mobile { display: none !important; }
  .nav-item-contact { display: none; }

  .nav-link:hover,
  .nav-link:focus,
  .nav-link:active {
    color: var(--accent-warm);
  }
}

/* =====================================================
   RESPONSIVE — MOBILE
===================================================== */
@media (max-width: 900px) {
  .contact-deco-ring {
    top: calc(var(--space-16) - 50px);
    width: 260px;
    border-radius: calc(var(--radius-2xl) + 12px);
    animation: contact-ring-spin-top 22s linear infinite;
  }

  .contact-actions { flex-direction: column-reverse; }

  .contact-actions .btn-primary,
  .contact-actions .btn-secondary {
    flex: 0 0 auto;
    width: 240px;
  }
}

@media (max-width: 900px) {
  .container { padding: 0 15px; }

  .section-title { font-size: var(--text-3xl); }

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

  .contact-card { padding: var(--space-10) 0; }

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

  .nav-inner {
    gap: 16px;
    height: 55px;
    padding: 0 12px;
  }
  .nav-logo { width: 32px; height: 32px; }
  .nav-links { gap: 12px; }
  .nav-link { font-size: 13px; }
}

/* Art wall — collapse to multi-column grid on narrow screens */
@media (max-width: 620px) {
  .art-stage {
    position: static;
    aspect-ratio: auto;
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    align-items: start;
    gap: var(--space-4);
    margin-top: var(--space-6);
  }
  .art-piece {
    position: relative;
    width: 100%;
    left: auto;
    top: auto;
    padding: 8px 8px 22px;
    transform: rotate(var(--rot, 0deg));
  }
  .art-piece::before { width: 38px; height: 11px; top: -7px; }
  .art-piece img { aspect-ratio: 3 / 4; }
  .art-piece:hover { transform: rotate(0deg) scale(1.04); }
  .art-circle { padding: 6px; }
  .art-circle img { aspect-ratio: 1 / 1; }
  .art-pos-1  { --rot: -3deg; } .art-pos-2  { --rot: 2deg;  }
  .art-pos-3  { --rot: -2deg; } .art-pos-4  { --rot: 3deg;  }
  .art-pos-5  { --rot: -3deg; } .art-pos-6  { --rot: 2deg;  }
  .art-pos-7  { --rot: -2deg; } .art-pos-8  { --rot: 3deg;  }
  .art-pos-9  { --rot: -2deg; } .art-pos-10 { --rot: 3deg;  }
}

@media (max-width: 452px) {
  .art-stage {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
  .art-piece { padding: 6px 6px 16px; }
  .art-piece::before { width: 30px; height: 9px; top: -6px; }
  .art-circle { padding: 4px; }
}

@media (max-width: 480px) {
  .nav {
    top: auto;
    bottom: 20px;
    left: 15px;
    right: 15px;
    transform: none;
    width: auto;
    max-width: none;
  }
  .nav > .container { max-width: 100%; }
  .nav-inner {
    padding: 0 20px;
    justify-content: space-between;
    gap: 0;
  }
  .nav-links { display: contents; }
  .hero { padding-top: 40px; }
  body { padding-bottom: 95px; }
}

/* =====================================================
   SCROLLBAR STYLING
===================================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-warm); }

/* =====================================================
   PREFERS-REDUCED-MOTION
===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* =====================================================
   PROJECTS PAGE (projects.html)
===================================================== */
.projects-page {
  padding-top: 140px;
  padding-bottom: var(--space-24);
  min-height: 100vh;
}

.projects-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  background: var(--bg-base);
  z-index: 40;
  pointer-events: none;
}

.projects-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.breadcrumb-back:hover {
  color: var(--accent-warm);
  transform: translateX(-2px);
}

.breadcrumb-back svg {
  display: block;
  width: 28px;
  height: 28px;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.breadcrumb-trail > * {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--text-primary);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-primary);
}

.projects-tabs {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-16);
  position: sticky;
  top: 88px;
  z-index: 50;
  background: var(--bg-base);
}

.projects-tab {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  padding: 6px 0;
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.projects-tab:hover {
  color: var(--text-primary);
}

.projects-tab.active {
  color: var(--accent-warm);
  font-weight: 600;
}

.projects-tab-panel {
  display: none;
}

.projects-tab-panel.active {
  display: block;
}

.projects-page-header {
  margin-bottom: var(--space-10);
}

.projects-page-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

.projects-page-title em {
  font-style: normal;
  color: var(--text-body);
}

.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.projects-empty {
  padding: var(--space-16) var(--space-8);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* Visual Stuff cards */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.visual-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  text-decoration: none;
  color: inherit;
}

.visual-card-img {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, #FFFFFF 14%, transparent);
  overflow: hidden;
  background-color: var(--bg-surface-2);
  background-image: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-warm) 22%, var(--bg-surface-2)),
    color-mix(in srgb, var(--accent-warm-2) 10%, var(--bg-surface-2)) 55%,
    color-mix(in srgb, var(--accent-cool) 15%, var(--bg-surface-2)));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.visual-card-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.visual-card:hover .visual-card-img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.visual-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.visual-card:hover .visual-card-overlay,
.visual-card:focus-visible .visual-card-overlay {
  opacity: 1;
}

.visual-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent-warm);
  color: #FFFFFF;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  transform: translateY(10px);
  transition: transform var(--transition-base);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.visual-card:hover .visual-card-btn,
.visual-card:focus-visible .visual-card-btn {
  transform: translateY(0);
}

.visual-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 28px;
  margin: 0;
}

.visual-logos-header {
  margin-top: var(--space-16);
}

.visual-logos-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

.visual-logos-title em {
  font-style: normal;
  color: var(--text-body);
}

.visual-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  grid-auto-rows: 100px;
  gap: 8px;
  padding: 0;
  justify-content: start;
}

.visual-logo-card {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-sm);
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 260ms ease;
  will-change: transform;
}

/* Bento collage — 4×3 grid with two 2×2 heros */
.visual-logo-card:nth-child(1) { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.visual-logo-card:nth-child(2) { grid-column: 3; grid-row: 1; }
.visual-logo-card:nth-child(3) { grid-column: 4; grid-row: 1; }
.visual-logo-card:nth-child(4) { grid-column: 1; grid-row: 3; }
.visual-logo-card:nth-child(5) { grid-column: 2; grid-row: 3; }
.visual-logo-card:nth-child(6) { grid-column: 3 / span 2; grid-row: 2 / span 2; }

.visual-logo-card:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

@media (max-width: 480px) {
  .visual-logos-grid {
    grid-template-columns: repeat(4, 70px);
    grid-auto-rows: 70px;
    gap: 6px;
  }
}

@media (max-width: 900px) {
  .projects-page-grid {
    grid-template-columns: 1fr 1fr;
  }
  .visual-grid {
    grid-template-columns: 1fr 1fr;
  }
  .visual-card-overlay { opacity: 1; }
  .visual-card-btn { transform: translateY(0); }
  .projects-page {
    padding-top: 110px;
  }
}

@media (max-width: 480px) {
  .projects-bento { grid-template-columns: 1fr; }
  .writing-grid { grid-template-columns: 1fr; }
  .projects-page-grid { grid-template-columns: 1fr; }
  .visual-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .projects-breadcrumb { margin-bottom: 40px; }

  .projects-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    top: 80px;
  }

  .projects-page::before { height: 80px; }
  .projects-tabs::-webkit-scrollbar { display: none; }
  .projects-tab { white-space: nowrap; flex-shrink: 0; }
}

/* =====================================================
   SCROLL PROGRESS BAR
===================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}

.scroll-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.85),
    #ffffff
  );
  width: 0%;
  border-radius: 0 2px 2px 0;
  transition: width 60ms linear;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
}

/* =====================================================
   CURSOR RING (fine pointer / desktop only)
===================================================== */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--accent-warm);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition:
    width 260ms cubic-bezier(0.23, 1, 0.32, 1),
    height 260ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 300ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.cursor-ring.is-visible { opacity: 0.65; }

.cursor-ring.is-hovering {
  width: 56px;
  height: 56px;
  border-color: var(--accent-warm);
  background: color-mix(in srgb, var(--accent-warm) 10%, transparent);
  opacity: 1;
}

@media (pointer: coarse) {
  .cursor-ring { display: none !important; }
}

/* =====================================================
   AVAILABILITY BADGE
===================================================== */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  background: color-mix(in srgb, #16A34A 14%, transparent);
  border: 1px solid color-mix(in srgb, #4ADE80 32%, transparent);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #86EFAC;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  width: fit-content;
  opacity: 0;
  animation: hero-in 0.5s ease-out 0.05s forwards;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  animation: availability-pulse 2.2s ease-in-out infinite;
}

@keyframes availability-pulse {
  0%, 100% { box-shadow: 0 0 0 0   color-mix(in srgb, #4ADE80 60%, transparent); }
  60%       { box-shadow: 0 0 0 5px color-mix(in srgb, #4ADE80 0%,  transparent); }
}

/* =====================================================
   SKILLS MARQUEE STRIP
===================================================== */
.marquee-strip {
  background: color-mix(in srgb, var(--bg-surface) 55%, var(--bg-base));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-base) 0%, transparent 100%);
}

.marquee-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-base) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-slide 32s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}

.marquee-sep {
  color: var(--accent-warm);
  font-size: 9px;
  flex-shrink: 0;
  opacity: 0.8;
}

@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   PROJECT & ARTICLE THUMBNAIL ZOOM ON HOVER
===================================================== */
.project-thumb,
.project-thumb-sm,
.article-thumb {
  background-size: cover !important;
  background-position: center !important;
  transition:
    background-size 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important,
    box-shadow var(--transition-base) !important;
}

.card:hover .project-thumb,
.card:hover .project-thumb-sm {
  background-size: 112% !important;
}

.article-card:hover .article-thumb {
  background-size: 110% !important;
}

/* =====================================================
   IMPROVED REVEAL ANIMATION (override) — blur + slide
===================================================== */
.reveal {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(20px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* =====================================================
   PAGE-LOAD CASCADE — blur-slide entrance for every section
   Mirrors hero-section-1 framer transition (blur 12 → 0,
   y 12 → 0, springy ease, ~1.5s)
===================================================== */
@keyframes page-blur-in {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Nav-specific keyframe — preserves translateX(-50%) horizontal centering */
@keyframes page-blur-in-nav {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate(-50%, -8px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, 0);
  }
}

.hero,
.section,
footer[role="contentinfo"] {
  animation: page-blur-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav {
  animation: page-blur-in-nav 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Staggered cascade — each section starts ~0.15s after the previous */
.nav                       { animation-delay: 0s;    }
.hero                      { animation-delay: 0.15s; }
#projects                  { animation-delay: 0.30s; }
#writing                   { animation-delay: 0.45s; }
#testimonials              { animation-delay: 0.60s; }
#about                     { animation-delay: 0.75s; }
#art                       { animation-delay: 0.90s; }
#contact                   { animation-delay: 1.05s; }
footer[role="contentinfo"] { animation-delay: 1.20s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .nav,
  .hero,
  .section,
  footer[role="contentinfo"] {
    animation: none;
  }
  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* =====================================================
   SECTION LABEL ENHANCEMENT
===================================================== */
.section-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: var(--text-primary) !important;
  font-family: var(--font-mono);
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  flex-shrink: 0;
}

/* =====================================================
   HERO ENHANCEMENTS
===================================================== */
/* Stronger gradient orbs */
.hero::before {
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent-warm) 18%, transparent), transparent 65%) !important;
}

/* Hero greeting becomes a subtle label */
.hero-greeting {
  font-size: 14px !important;
  letter-spacing: 0.1em !important;
  color: var(--text-primary) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.hero-greeting::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
}

/* =====================================================
   CONTACT OPEN-TO-WORK BADGE
===================================================== */
.contact-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  background: color-mix(in srgb, #16A34A 10%, transparent);
  border: 1px solid color-mix(in srgb, #4ADE80 22%, transparent);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #86EFAC;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

/* =====================================================
   FLOATING RESUME CTA
===================================================== */
.resume-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.6s ease-out 1.6s forwards;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    background var(--transition-fast);
}

.resume-fab:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-warm);
  color: var(--accent-warm);
  background: color-mix(in srgb, var(--accent-warm) 8%, var(--bg-surface));
}

.resume-fab svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .resume-fab {
    bottom: 90px;
    right: 16px;
    font-size: 13px;
    padding: 9px 16px;
  }
}

/* =====================================================
   GRAIN TEXTURE OVERLAY
===================================================== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
  opacity: 0.020;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

/* =====================================================
   CARD GLOW ON HOVER (enhanced)
===================================================== */
.card:hover {
  box-shadow:
    var(--shadow-hover),
    0 0 0 1px color-mix(in srgb, var(--accent-warm) 12%, transparent) !important;
}

/* =====================================================
   HERO PILLS IMPROVEMENT
===================================================== */
.hero-title-pill::before {
  content: '✦';
  font-size: 10px !important;
  color: var(--accent-warm) !important;
  animation: twinkle 1.8s ease-in-out infinite;
}

/* =====================================================
   MAGNETIC BUTTON PREP
===================================================== */
.btn-primary,
.btn-secondary,
.social-icon {
  will-change: transform;
}

/* =====================================================
   SECTION BACKGROUND VARIATION
===================================================== */
/* Subtle warm tint for alternating sections to break monotony */
.testimonials-section {
  background: var(--bg-surface-2) !important;
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 60% 40% at 10% 50%,
      color-mix(in srgb, var(--accent-warm) 5%, transparent),
      transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 50%,
      color-mix(in srgb, var(--accent-cool) 5%, transparent),
      transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.testimonials-section > .container { position: relative; z-index: 1; }

/* =====================================================
   TESTIMONIAL CARD: OPEN QUOTE
===================================================== */
.testimonial-card::after {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: color-mix(in srgb, var(--accent-warm) 12%, transparent);
  pointer-events: none;
  z-index: 0;
  font-style: italic;
}

/* =====================================================
   WRITING GRID: 3rd ARTICLE FULL-SPAN ON SMALL SCREENS
===================================================== */
@media (min-width: 901px) {
  .writing-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* =====================================================
   PROJECT FEATURED CARD: SLIGHTLY TALLER THUMB
===================================================== */
.project-card-featured .project-thumb {
  aspect-ratio: 16 / 9 !important;
}

/* =====================================================
   NAV LINK HOVER UNDERLINE
===================================================== */
.nav-link {
  position: relative;
  transition: color var(--transition-fast) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  right: 50%;
  height: 1.5px;
  background: var(--accent-warm);
  border-radius: 1px;
  transition:
    left var(--transition-base),
    right var(--transition-base);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  left: 0;
  right: 0;
}

/* =====================================================
   HERO NAME — SLIGHT LETTER-SPACING REFINEMENT
===================================================== */
.hero-name {
  letter-spacing: -0.04em !important;
}

/* =====================================================
   HERO BIO STRONG — plain white bold (no animation)
===================================================== */
.hero-bio strong,
.hero-bio-story strong {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* =====================================================
   HERO TITLE PILLS + STARS — INLINE-HIGHLIGHT COLOR FADE
   Continuously fades white → portfolio orange and back,
   staggered across the three pills (Remotion-inspired)
===================================================== */
@keyframes hero-highlight-fade {
  0%, 8% {
    color: #EDE6DC;
  }
  28%, 42% {
    /* Subtle warm white-orange — between #EDE6DC and accent-warm-2 */
    color: #FFCFA8;
  }
  62%, 100% {
    color: #EDE6DC;
  }
}

/* Apply the fade to each pill */
.hero-title-pill {
  animation: hero-highlight-fade 3.5s ease-in-out infinite;
  will-change: color;
}

/* Stars (::before) keep their twinkle AND get the color fade */
.hero-title-pill::before {
  animation:
    twinkle 1.2s ease-in-out infinite,
    hero-highlight-fade 3.5s ease-in-out infinite;
}

/* Sweep delay — each pill (and its star) peaks ~0.55s after the previous */
.hero-title-pill:nth-of-type(1),
.hero-title-pill:nth-of-type(1)::before { animation-delay: 0s, 0s; }

.hero-title-pill:nth-of-type(2) { animation-delay: 0.55s; }
.hero-title-pill:nth-of-type(2)::before { animation-delay: 0s, 0.55s; }

.hero-title-pill:nth-of-type(3) { animation-delay: 1.10s; }
.hero-title-pill:nth-of-type(3)::before { animation-delay: 0s, 1.10s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-title-pill,
  .hero-title-pill::before {
    animation: none;
    color: #EDE6DC;
  }
}

/* =====================================================
   HERO RIGHT-SIDE IMAGE CAROUSEL — auto-scrolling
   Horizontal marquee of art images, fades into dark
   background on the left edge via CSS mask
===================================================== */
.hero-carousel {
  position: absolute;
  top: 0;
  right: 0;
  width: 780px;
  height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* Left-edge gradient fade — text region stays nearly black, images become solid only past the text */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 20%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(0, 0, 0, 0.18) 42%,
    rgba(0, 0, 0, 0.45) 52%,
    rgba(0, 0, 0, 0.80) 60%,
    #000 68%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 20%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(0, 0, 0, 0.18) 42%,
    rgba(0, 0, 0, 0.45) 52%,
    rgba(0, 0, 0, 0.80) 60%,
    #000 68%,
    #000 92%,
    transparent 100%
  );
}

.hero-carousel-row {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.hero-carousel-track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.hero-carousel-track-1 {
  animation: hero-carousel-scroll-left 55s linear infinite;
}
.hero-carousel-track-2 {
  animation: hero-carousel-scroll-right 65s linear infinite;
}

.hero-carousel-item {
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 16 / 10;
  margin-right: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1410;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes hero-carousel-scroll-left {
  from { transform: translateX(0);    }
  to   { transform: translateX(-50%); }
}
@keyframes hero-carousel-scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0);    }
}

/* Pause on hover for accessibility */
.hero-carousel:hover .hero-carousel-track {
  animation-play-state: paused;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-track { animation: none; }
}

/* Tablet — slightly smaller */
@media (max-width: 1024px) {
  .hero-carousel { width: 600px; height: 360px; }
  .hero-carousel-item { margin-right: 14px; }
}

/* =====================================================
   AVATAR GLOW — CONTINUOUS CONIC-GRADIENT BORDER
   Portfolio palette: rust orange + teal accents
===================================================== */

/* Continuous rotation keyframes */
@keyframes av-glow-spin {
  from { transform: translate(-50%, -50%) rotate(0deg);   }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes av-glow-spin-r {
  from { transform: translate(-50%, -50%) rotate(0deg);    }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* hero-avatar-wrap must be a stacking context */
.hero-avatar-wrap {
  position: relative;
}

/* Shared glow layer base */
.av-glow-layer {
  position: absolute;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  pointer-events: none;
}

.av-glow-layer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background-repeat: no-repeat;
}

/* ─── Layer 1: Main ring — rust → bright orange ─── */
.agly-1 {
  inset: -4px;
  filter: blur(4px);
  border-radius: calc(var(--radius-2xl) + 4px);
}
.agly-1::before {
  width: 800px;
  height: 800px;
  background: conic-gradient(
    #1a0d08,
    #C85C35 6%,
    #1a0d08 30%,
    #1a0d08 50%,
    #E8784F 62%,
    #1a0d08 80%
  );
  animation: av-glow-spin 12s linear infinite;
}

/* ─── Layer 2: Mid depth — deep rust + dark teal haze ─── */
.agly-2 {
  inset: -3px;
  filter: blur(2.5px);
  border-radius: calc(var(--radius-2xl) + 3px);
}
.agly-2::before {
  width: 600px;
  height: 600px;
  background: conic-gradient(
    rgba(0,0,0,0),
    #7a3018,
    rgba(0,0,0,0) 12%,
    rgba(0,0,0,0) 50%,
    #1e4d42,
    rgba(0,0,0,0) 62%
  );
  animation: av-glow-spin-r 16s linear infinite;
}

/* ─── Layer 3: Bright highlight — warm amber + teal ─── */
.agly-3 {
  inset: -2px;
  filter: blur(1px) brightness(1.5);
  border-radius: calc(var(--radius-2xl) + 2px);
}
.agly-3::before {
  width: 600px;
  height: 600px;
  background: conic-gradient(
    rgba(0,0,0,0) 0%,
    #e8a070,
    rgba(0,0,0,0) 9%,
    rgba(0,0,0,0) 50%,
    #4a9988,
    rgba(0,0,0,0) 59%
  );
  animation: av-glow-spin 20s linear infinite;
}

/* Remove old static border on the image — glow handles it */
.hero-avatar {
  border-color: transparent !important;
  position: relative;
  z-index: 1;
}

/* =====================================================
   DESKTOP HERO AVATAR — glowing portrait (replaces carousel)
   Reuses the .av-glow-layer system; base radii (var(--radius-2xl))
   already align since the 24px override is scoped to mobile only.
===================================================== */
.hero-avatar-desktop {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-desktop-wrap {
  position: relative;
  width: 300px;
  height: 300px;
}

.hero-avatar-desktop .hero-avatar-clip {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.hero-avatar-desktop .hero-avatar {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: center 82%;
  transform: scale(1);
}
