/* ============================================
   Jason T. Arnold — Landing Page
   Obsidian & Gold — High-class dark/light theme
   ============================================ */

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

/* --- Dark theme (default) --- */
:root,
[data-theme="dark"] {
  --bg: #050810;
  --bg-section: #070b14;
  --bg-card: rgba(255, 255, 255, 0.028);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --bg-glass: rgba(10, 14, 28, 0.7);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(201, 169, 110, 0.35);
  --border-gold: rgba(201, 169, 110, 0.2);
  --text: #eeeef0;
  --text-muted: #7a7a8c;
  --text-dim: #44445a;
  --gold: #c9a96e;
  --gold-light: #e2c98a;
  --gold-dim: rgba(201, 169, 110, 0.12);
  --violet: #7c6ff7;
  --violet-dim: rgba(124, 111, 247, 0.12);
  --accent: #c9a96e;
  --accent-2: #a78bfa;
  --accent-glow: rgba(201, 169, 110, 0.18);
  --gradient: linear-gradient(135deg, #c9a96e 0%, #e2c98a 50%, #c9a96e 100%);
  --gradient-cool: linear-gradient(135deg, #7c6ff7, #a78bfa, #c084fc);
  --gradient-hero: linear-gradient(135deg, #c9a96e 0%, #e8d5a3 40%, #a78bfa 100%);
  --nav-bg: rgba(5, 8, 16, 0.82);
  --nav-border: rgba(201, 169, 110, 0.1);
  --mobile-menu-bg: rgba(5, 8, 16, 0.97);
  --noise-opacity: 0.03;
  --avatar-ring: rgba(201, 169, 110, 0.35);
  --avatar-ring-glow: rgba(201, 169, 110, 0.15);
  --footer-bg: transparent;
}

/* --- Light theme --- */
[data-theme="light"] {
  --bg: #f5f3ee;
  --bg-section: #ede9e0;
  --bg-card: rgba(0, 0, 0, 0.035);
  --bg-card-hover: rgba(0, 0, 0, 0.065);
  --bg-glass: rgba(245, 243, 238, 0.85);
  --border: rgba(0, 0, 0, 0.09);
  --border-hover: rgba(160, 120, 50, 0.4);
  --border-gold: rgba(160, 120, 50, 0.25);
  --text: #1a1810;
  --text-muted: #5c5648;
  --text-dim: #9e9484;
  --gold: #9a6f28;
  --gold-light: #7a5418;
  --gold-dim: rgba(154, 111, 40, 0.1);
  --violet: #5a50d4;
  --violet-dim: rgba(90, 80, 212, 0.1);
  --accent: #9a6f28;
  --accent-2: #7c6ef7;
  --accent-glow: rgba(154, 111, 40, 0.14);
  --gradient: linear-gradient(135deg, #9a6f28 0%, #c49a45 50%, #9a6f28 100%);
  --gradient-cool: linear-gradient(135deg, #5a50d4, #7c6ef7, #a066d4);
  --gradient-hero: linear-gradient(135deg, #9a6f28 0%, #c49a45 40%, #7c6ef7 100%);
  --nav-bg: rgba(245, 243, 238, 0.88);
  --nav-border: rgba(154, 111, 40, 0.15);
  --mobile-menu-bg: rgba(245, 243, 238, 0.98);
  --noise-opacity: 0.015;
  --avatar-ring: rgba(154, 111, 40, 0.4);
  --avatar-ring-glow: rgba(154, 111, 40, 0.12);
  --footer-bg: transparent;
}

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

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

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

/* --- Noise Texture Overlay --- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Aurora background (global) --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(124, 111, 247, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(201, 169, 110, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(20, 184, 166, 0.04) 0%, transparent 50%);
  transition: opacity 0.4s;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(124, 111, 247, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(201, 169, 110, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(20, 184, 166, 0.03) 0%, transparent 50%);
}

/* --- Container --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 32px;
  transition: all 0.5s var(--ease);
}

.nav.scrolled {
  padding: 0;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s var(--ease);
  padding: 0 4px;
}

.nav.scrolled .nav-inner {
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  border-radius: 0;
  padding: 14px 32px;
  max-width: 100%;
}

.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a:hover::after {
  width: 100%;
}

/* --- Nav Actions (theme toggle + hamburger) --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  background: var(--gold-dim);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s;
  letter-spacing: -0.01em;
}

.mobile-menu a:hover {
  color: var(--gold-light);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 28px 100px;
  overflow: hidden;
}

/* Canvas replaces the CSS dot grid */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: all;
  z-index: 1;
  mask-image: radial-gradient(ellipse 85% 85% at center, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at center, black 20%, transparent 78%);
}

/* Large radial spotlight */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(124, 111, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .hero::after {
  background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(124, 111, 247, 0.04) 0%, transparent 70%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  width: 700px;
  height: 700px;
  top: -220px;
  right: -80px;
  background: rgba(124, 111, 247, 0.1);
  animation: glow-drift 14s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: 600px;
  height: 600px;
  bottom: -180px;
  left: -120px;
  background: rgba(201, 169, 110, 0.07);
  animation: glow-drift 11s ease-in-out infinite alternate-reverse;
}

.hero-glow-3 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(99, 102, 241, 0.05);
  animation: glow-pulse 8s ease-in-out infinite;
}

[data-theme="light"] .hero-glow-1 {
  background: rgba(124, 111, 247, 0.06);
}

[data-theme="light"] .hero-glow-2 {
  background: rgba(201, 169, 110, 0.05);
}

@keyframes glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.12); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

/* --- Hero Profile (avatar + badge row) --- */
.hero-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--avatar-ring);
  box-shadow: 0 0 0 6px var(--avatar-ring-glow), 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.hero-avatar:hover {
  transform: scale(1.05);
  border-color: var(--gold);
  box-shadow: 0 0 0 8px var(--gold-dim), 0 12px 40px rgba(201, 169, 110, 0.2);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 20px;
  background: rgba(201, 169, 110, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

[data-theme="light"] .hero-badge {
  background: rgba(154, 111, 40, 0.06);
  border-color: rgba(154, 111, 40, 0.25);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  60% { opacity: 0.9; box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(52px, 10vw, 104px);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(160deg, var(--text) 0%, rgba(255, 255, 255, 0.88) 40%, rgba(201, 169, 110, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero-name {
  background: linear-gradient(160deg, #1a1810 0%, #3a3020 40%, #9a6f28 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--gradient);
  margin: 0 auto 20px;
  opacity: 0.6;
}

.hero-subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 48px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 10px;
  transition: all 0.35s var(--ease);
  cursor: pointer;
  border: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--gradient);
  color: #0d0a05;
  box-shadow: 0 4px 24px rgba(201, 169, 110, 0.25), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(201, 169, 110, 0.35), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201, 169, 110, 0.3);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* --- Hero Socials --- */
.hero-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.35s var(--ease);
  backdrop-filter: blur(8px);
}

.hero-socials a:hover {
  color: var(--gold-light);
  border-color: var(--border-gold);
  background: var(--gold-dim);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(201, 169, 110, 0.12);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.8; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 0.2; transform: scaleY(0.5); transform-origin: top; }
}

/* --- Sections --- */
.section {
  padding: 130px 0;
  position: relative;
  z-index: 1;
}

.section-dark {
  background: rgba(255, 255, 255, 0.013);
}

[data-theme="light"] .section-dark {
  background: rgba(0, 0, 0, 0.025);
}

.section-dark::before,
.section-dark::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 110, 0.15) 30%, rgba(201, 169, 110, 0.15) 70%, transparent 100%);
}

.section-dark::before { top: 0; }
.section-dark::after { bottom: 0; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  opacity: 0.8;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 64px;
  background: linear-gradient(160deg, var(--text) 0%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .section-heading {
  background: linear-gradient(160deg, #1a1810 0%, #5c5648 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-profile-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 24px;
}

.about-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--avatar-ring);
  box-shadow: 0 0 0 4px var(--avatar-ring-glow);
  flex-shrink: 0;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.about-avatar:hover {
  transform: scale(1.06);
  border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-dim);
}

.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0;
  background: linear-gradient(160deg, var(--text) 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .about-text h2 {
  background: linear-gradient(160deg, #1a1810 0%, #5c5648 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(201, 169, 110, 0.08);
}

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

.stat-prefix,
.stat-number {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 44px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom,
    var(--gold) 0%,
    rgba(201, 169, 110, 0.4) 30%,
    rgba(124, 111, 247, 0.2) 70%,
    transparent 100%
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

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

.timeline-marker {
  position: absolute;
  left: -44px;
  top: 26px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(201, 169, 110, 0.5);
  z-index: 2;
  transition: all 0.4s var(--ease);
}

.timeline-marker::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.timeline-item:hover .timeline-marker {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.1);
}

.timeline-item:hover .timeline-marker::after {
  opacity: 1;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.4s var(--ease);
  overflow: hidden;
  position: relative;
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--violet));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  border-radius: 2px 0 0 2px;
}

.timeline-card:hover,
.timeline-card:has(.timeline-toggle[aria-expanded="true"]) {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(201, 169, 110, 0.06);
  transform: translateX(3px);
}

.timeline-card:hover::before,
.timeline-card:has(.timeline-toggle[aria-expanded="true"])::before {
  opacity: 1;
}

.timeline-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  padding: 28px;
}

.timeline-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 16px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 16px;
}

.timeline-header h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.timeline-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  margin-top: 3px;
  opacity: 0.85;
}

.timeline-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.timeline-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.timeline-chevron {
  display: flex;
  align-items: center;
  color: var(--text-dim);
  transition: transform 0.4s var(--ease), color 0.3s;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  justify-content: center;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.timeline-toggle[aria-expanded="true"] .timeline-chevron {
  transform: rotate(180deg);
  color: var(--gold);
  background: var(--gold-dim);
  border-color: var(--border-gold);
}

.timeline-location {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* --- Timeline details --- */
.timeline-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 28px;
}

.timeline-details.open {
  max-height: 1400px;
  opacity: 1;
  padding: 0 28px 28px;
}

.timeline-details-inner {
  border-top: 1px solid rgba(201, 169, 110, 0.1);
  padding-top: 20px;
}

.timeline-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.timeline-detail-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.timeline-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}

.timeline-subrole {
  margin-bottom: 22px;
}

.timeline-subrole:last-of-type {
  margin-bottom: 0;
}

.timeline-subrole h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-family: var(--mono);
  opacity: 0.85;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.timeline-tags span {
  padding: 4px 13px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 100px;
  letter-spacing: 0.03em;
}

/* --- Highlights Grid --- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.highlight-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}

.highlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.45s;
}

.highlight-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(201, 169, 110, 0.07);
}

.highlight-card:hover::after {
  opacity: 1;
}

.highlight-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid rgba(201, 169, 110, 0.15);
  color: var(--gold);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.highlight-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.highlight-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* --- Skills Grid --- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.35s var(--ease);
  cursor: default;
  letter-spacing: 0.01em;
}

.skill-tag:hover {
  color: var(--gold-light);
  border-color: rgba(201, 169, 110, 0.35);
  background: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 169, 110, 0.08);
}

/* --- Contact --- */
.contact-section-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(124, 111, 247, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(201, 169, 110, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

[data-theme="light"] .contact-section-bg {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(124, 111, 247, 0.04) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(201, 169, 110, 0.04) 0%, transparent 50%);
}

.contact-wrapper {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(160deg, var(--text) 0%, rgba(201, 169, 110, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .contact-heading {
  background: linear-gradient(160deg, #1a1810 0%, #9a6f28 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 44px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.35s var(--ease);
  min-width: 320px;
  justify-content: center;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.contact-link:hover {
  color: var(--gold-light);
  border-color: var(--border-gold);
  background: var(--gold-dim);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201, 169, 110, 0.12);
}

/* --- Footer --- */
.footer {
  padding: 36px 0;
  position: relative;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 110, 0.15) 30%, rgba(201, 169, 110, 0.15) 70%, transparent 100%);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.footer-domain {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.3s;
  letter-spacing: 0.06em;
}

.footer-domain:hover {
  color: var(--gold);
}

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 110px 20px 80px;
  }

  .section {
    padding: 90px 0;
  }

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

  .about-profile-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text h2 {
    text-align: center;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline {
    padding-left: 34px;
  }

  .timeline-marker {
    left: -34px;
    width: 13px;
    height: 13px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 6px;
  }

  .timeline-header-right {
    flex-direction: row;
  }

  .timeline-toggle {
    padding: 22px;
  }

  .timeline-details {
    padding: 0 22px;
  }

  .timeline-details.open {
    padding: 0 22px 22px;
  }

  .contact-link {
    min-width: unset;
    width: 100%;
  }

  .section-heading {
    margin-bottom: 44px;
  }

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

@media (max-width: 480px) {
  .hero-name {
    font-size: 52px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .stat-card {
    padding: 24px;
  }

  .stat-prefix,
  .stat-number {
    font-size: 30px;
  }

  .highlight-card {
    padding: 28px;
  }

  .hero-avatar {
    width: 80px;
    height: 80px;
  }

  .about-avatar {
    width: 60px;
    height: 60px;
  }
}
