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

/* --- 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-green: #00ff9f;
  --accent-green-dim: rgba(0, 255, 159, 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%);
  --gradient-neon: linear-gradient(135deg, #00ff9f 0%, #7B61FF 50%, #c9a96e 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;
  --neon-glow: 0 0 40px rgba(201, 169, 110, 0.3), 0 0 80px rgba(124, 111, 247, 0.2);
}

/* --- 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-green: #00cc7a;
  --accent-green-dim: rgba(0, 204, 122, 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%);
  --gradient-neon: linear-gradient(135deg, #00cc7a 0%, #5a50d4 50%, #9a6f28 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;
  --neon-glow: 0 0 30px rgba(154, 111, 40, 0.25), 0 0 60px rgba(90, 80, 212, 0.15);
}

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

/* --- Logo Light/Dark Mode Switching --- */
.logo-dark {
  display: block;
}
.logo-light {
  display: none;
}

[data-theme="light"] .logo-dark {
  display: none;
}
[data-theme="light"] .logo-light {
  display: block;
}

: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);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ticker-item-size: clamp(140px, 8vw, 170px);
}

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;
}

/* --- Reading Progress Bar --- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-neon);
  z-index: 1001;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-green), 0 0 20px rgba(124, 111, 247, 0.3);
}

/* --- 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;
}

/* --- Global Mesh Animation (follows mouse globally) --- */
.global-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  background:
    radial-gradient(ellipse 45% 35% at 50% 50%, rgba(124, 111, 247, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 50% 50%, rgba(201, 169, 110, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 25% 25% at 50% 50%, rgba(0, 255, 159, 0.06) 0%, transparent 40%);
  filter: blur(40px);
  will-change: transform;
  transition: transform 0.1s ease-out;
}

[data-theme="light"] .global-mesh {
  opacity: 0.4;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* --- 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%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.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;
  transition: transform 0.3s var(--spring);
}

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

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

.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;
  padding: 8px 0;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-neon);
  border-radius: 2px;
  transition: width 0.4s var(--spring), left 0.4s var(--spring);
  box-shadow: 0 0 8px var(--accent-green);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 100%;
  left: 0;
}

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

/* Active nav indicator */
.nav-indicator {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: all 0.4s var(--spring);
  box-shadow: 0 0 10px rgba(201, 169, 110, 0.4);
}

/* --- 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);
  transform: scale(1.05);
}

.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: all 0.4s var(--spring);
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateX(-30px);
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 120px;
  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%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  top: -120px;
  right: -80px;
  background: rgba(124, 111, 247, 0.12);
}

.hero-glow-2 {
  width: 450px;
  height: 450px;
  bottom: -100px;
  left: -80px;
  background: rgba(201, 169, 110, 0.1);
}

.hero-glow-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(99, 102, 241, 0.06);
}

[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);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 100%;
  padding: 20px 16px 80px;
  width: 100%;
  overflow: visible;
}

/* --- 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);
  position: relative;
  backface-visibility: hidden;
}

.hero-avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), var(--violet), var(--gold));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
  animation: spin 4s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.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-avatar:hover::after {
  opacity: 1;
}

/* --- Hero Badge with Magnetic Effect --- */
.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);
  transition: all 0.4s var(--spring);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 159, 0.1), rgba(201, 169, 110, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.3), 0 0 40px rgba(0, 255, 159, 0.1);
  border-color: rgba(201, 169, 110, 0.4);
}

.hero-badge:hover::before {
  opacity: 1;
}

[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;
  box-shadow: 0 0 6px #4ade80;
}

@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 - Oversized with Neon Glow --- */
.hero-name {
  font-family: var(--serif);
  font-size: clamp(56px, 11.5vw, 140px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  padding: 0.15em 0.08em;
  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;
  word-break: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

[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 with Typewriter --- */
.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;
}

/* --- Typewriter Effect --- */
.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;
}

.typewriter {
  display: inline;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--gold);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.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;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before {
  opacity: 1;
}

.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, 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s var(--ease);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px rgba(201, 169, 110, 0.35), 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 0 20px rgba(201, 169, 110, 0.3), 0 0 0 1px 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(--spring);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.hero-socials a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201, 169, 110, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

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

.hero-socials a:hover::before {
  opacity: 1;
}

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

.scroll-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
  min-width: 40px;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  color: var(--gold);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.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;
  content-visibility: auto;
  contain-intrinsic-size: 1300px;
}

.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; }

#partners {
  padding: 0;
  min-height: auto;
}


.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;
}

/* Hexagonal background pattern */
.about-text-wrapper {
  position: relative;
}

.about-text-wrapper::before {
  content: '';
  position: absolute;
  inset: -40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='0.03'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

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

.about-avatar-wrapper {
  perspective: 1000px;
}

.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);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.about-avatar:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-dim), 0 0 30px rgba(201, 169, 110, 0.3);
}

.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::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 169, 110, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 18px;
  pointer-events: none;
}

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

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

/* Stat counter pop animation */
.stat-card.counted {
  animation: stat-pop 0.6s var(--spring);
}

@keyframes stat-pop {
  0% { transform: translateY(-5px) scale(1); }
  50% { transform: translateY(-5px) scale(1.05); }
  100% { transform: translateY(-5px) scale(1.02); }
}

.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;
  position: relative;
  z-index: 1;
}

.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;
  position: relative;
  z-index: 1;
}

/* --- 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%
  );
}

/* Animated timeline line */
.timeline-line {
  position: absolute;
  left: 7px;
  top: 10px;
  width: 1px;
  height: 0;
  background: var(--gradient-neon);
  box-shadow: 0 0 10px var(--accent-green), 0 0 20px rgba(124, 111, 247, 0.3);
  transition: height 0.5s var(--ease-out);
  z-index: 1;
}

.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.active .timeline-marker {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.1), 0 0 15px rgba(201, 169, 110, 0.3);
}

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

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

.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;
  will-change: transform;
  backface-visibility: hidden;
}

.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::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 0% 50%, rgba(201, 169, 110, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.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), 0 0 40px rgba(201, 169, 110, 0.08);
  transform: translateX(3px) translateY(-2px);
}

.timeline-card:hover::before,
.timeline-card:has(.timeline-toggle[aria-expanded="true"])::before,
.timeline-card:hover::after,
.timeline-card:has(.timeline-toggle[aria-expanded="true"])::after {
  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);
  transition: color 0.3s;
}

.timeline-card:hover .timeline-header h3 {
  color: var(--gold-light);
}

.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-company-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.timeline-company-logo svg {
  width: 22px;
  height: 22px;
}

.timeline-company-logo svg path,
.timeline-company-logo svg circle,
.timeline-company-logo svg rect {
  fill: currentColor;
  stroke: none;
}

.timeline-company-logo svg circle,
.timeline-company-logo svg path[fill="none"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.timeline-company-logo svg path[stroke="none"] {
  fill: currentColor;
  stroke: none;
}

.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(--spring), color 0.3s, background 0.3s, border-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;
  transition: all 0.3s var(--ease);
}

.timeline-card:hover .timeline-tags span {
  background: rgba(201, 169, 110, 0.18);
  border-color: rgba(201, 169, 110, 0.3);
  transform: scale(1.02);
}

/* --- Logo Ticker --- */
.logo-ticker {
  padding: clamp(20px, 3vh, 42px) 0;
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  box-shadow: none;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  display: flex;
  align-items: center;
}

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

.logo-ticker::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.013) 0%, rgba(255, 255, 255, 0.013) 25%, transparent 100%);
}

.logo-ticker::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.013) 0%, rgba(255, 255, 255, 0.013) 25%, transparent 100%);
}

[data-theme="light"] .logo-ticker::before {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.025) 0%, rgba(0, 0, 0, 0.025) 25%, transparent 100%);
}

[data-theme="light"] .logo-ticker::after {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.025) 0%, rgba(0, 0, 0, 0.025) 25%, transparent 100%);
}

.logo-ticker-track {
  display: flex;
  align-items: center;
  gap: clamp(50px, calc(var(--ticker-item-size) * 0.54), 94px);
  padding: 0;
  animation: ticker-scroll var(--ticker-duration, 28s) linear infinite;
  width: max-content;
}

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

@media (min-width: 768px) {
  .logo-ticker-track {
    --ticker-duration: 29s;
  }
}

@media (min-width: 1024px) {
  .logo-ticker-track {
    --ticker-duration: 30s;
  }
}

@media (min-width: 1280px) {
  .logo-ticker-track {
    --ticker-duration: 31s;
  }
}

@media (min-width: 1536px) {
  .logo-ticker-track {
    --ticker-duration: 32s;
  }
}

@media (min-width: 1920px) {
  .logo-ticker-track {
    --ticker-duration: 33s;
  }
}

@media (min-width: 2560px) {
  .logo-ticker-track {
    --ticker-duration: 34s;
  }
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-ticker-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--ticker-item-size);
  height: clamp(56px, 5vw, 96px);
  padding: 0;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease);
}

.logo-ticker-item:hover {
  opacity: 0.8;
}

.logo-ticker-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}


.logo-ticker-icon img {
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  width: auto;
  object-fit: contain;
}

.logo-dark {
  display: block;
}

.logo-light {
  display: none;
}

[data-theme="light"] .logo-dark {
  display: none;
}

[data-theme="light"] .logo-light {
  display: block;
}

@media (max-width: 900px) {
  .logo-ticker {
    padding: 40px 0;
  }

  .logo-ticker-track {
    gap: 36px;
    padding: 0 24px;
  }

  .logo-ticker-item {
    min-width: 130px;
    height: 54px;
  }

  .logo-ticker-icon {
    height: 100%;
  }

  .logo-ticker-icon img {
    max-height: 100%;
    height: 100%;
  }
}

@media (max-width: 640px) {
  .logo-ticker {
    padding: 32px 0;
  }

  .logo-ticker-track {
    gap: 28px;
    padding: 0 18px;
  }

  .logo-ticker-item {
    min-width: 110px;
    height: 44px;
  }

  .logo-ticker-icon {
    height: 100%;
  }

  .logo-ticker-icon img {
    max-height: 100%;
    height: 100%;
  }
}


.logo-ticker-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* --- 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;
  transform-style: preserve-3d;
  perspective: 1000px;
  backface-visibility: hidden;
  will-change: transform;
}

.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::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold) 0%, transparent 50%, var(--violet) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s;
}

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

.highlight-card:hover::after,
.highlight-card:hover::before {
  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;
  transition: all 0.4s var(--spring);
}

.highlight-card:hover .highlight-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.3);
}

.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 with Magnetic Effect --- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.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(--spring);
  cursor: default;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  backface-visibility: hidden;
}

.skill-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

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

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

/* --- 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;
  animation: contact-bg-shift 15s ease-in-out infinite alternate;
}

@keyframes contact-bg-shift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(3deg); }
}

[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(--spring);
  min-width: 320px;
  justify-content: center;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201, 169, 110, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-link:hover::before,
.contact-link:hover::after {
  opacity: 1;
}

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

.contact-link svg {
  transition: transform 0.3s var(--spring);
}

.contact-link:hover svg {
  transform: scale(1.1);
}

/* --- 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);
}

/* Stagger children */
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate-stagger].visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
[data-animate-stagger].visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
[data-animate-stagger].visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
[data-animate-stagger].visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
[data-animate-stagger].visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
[data-animate-stagger].visible > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-arrow {
    animation: none;
  }
}

/* --- Responsive --- */
@media (min-width: 1400px) {
  .hero-name {
    white-space: nowrap;
    line-height: 0.95;
  }
}

@media (max-width: 1024px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .logo-ticker-track {
    gap: 34px;
  }
  
  .logo-ticker-item {
    padding: 10px 16px;
  }
  
  .logo-ticker-name {
    font-size: 13px;
  }
}

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

  .nav-toggle {
    display: flex;
  }

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

  .hero-name {
    font-size: clamp(48px, 10vw, 60px);
  }

  .hero-content {
    padding: 0 8px;
  }

  .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-company-logo {
    display: none;
  }

  .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%;
  }
  
  .logo-ticker {
    padding: 24px 0;
  }
  
  .logo-ticker-track {
    gap: 26px;
  }
  
  .logo-ticker-item {
    padding: 8px 12px;
  }
  
  .logo-ticker-name {
    display: none;
  }
  
  .logo-ticker-icon svg {
    width: 20px;
    height: 20px;
  }

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

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

@media (max-width: 480px) {
  .hero {
    padding: 100px 12px 70px;
  }

  .hero-name {
    font-size: clamp(40px, 9vw, 52px);
  }

  .hero-content {
    padding: 0 4px;
  }

  .container {
    padding: 0 16px;
  }

  .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;
  }
}
