/* ============================================
   THISZHOUMO — Personal B2B Site
   Design: White Grain Texture + Editorial Serif
   ============================================ */

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

/* --- Tokens --- */
:root {
  /* Colors — Light mode, warm neutral palette */
  --bg-deep: #fafaf8;
  --bg-primary: #f5f5f0;
  --bg-surface: #efefe8;
  --bg-card: #ffffff;
  --bg-card-hover: #fafaf8;

  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #999999;
  --text-hero: #0d0d0d;

  --accent: #3b6cf0;
  --accent-light: #2b5ce0;
  --accent-dark: #1e45b8;
  --accent-glow: rgba(59, 108, 240, 0.08);
  --accent-glow-strong: rgba(59, 108, 240, 0.18);
  --purple: #7c4ddb;
  --cyan: #0891b2;
  --magenta: #9333ea;

  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.14);
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--purple));
  --gradient-mesh: 
    radial-gradient(ellipse 80% 50% at 15% 45%, rgba(59, 108, 240, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 75% 25%, rgba(124, 77, 219, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 65% 55% at 55% 75%, rgba(8, 145, 178, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 70%, rgba(59, 108, 240, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 35% 30% at 5% 85%, rgba(147, 51, 234, 0.03) 0%, transparent 50%);

  /* Typography */
  --font-serif: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, 'PingFang SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-gap: 120px;
  --container: 1100px;
  --pad: 28px;

  /* Effects */
  --transition-fast: 150ms ease;
  --transition-base: 280ms ease;
  --transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

/* --- Grain Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.35;
  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.85' 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: 180px 180px;
}

::selection {
  background: rgba(59, 108, 240, 0.2);
  color: #0d0d0d;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--text-primary); }

/* --- Bilingual --- */
html.lang-en .zh { display: none !important; }
html.lang-zh .en { display: none !important; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* --- Section --- */
section {
  position: relative;
  padding: var(--section-gap) 0;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  margin-bottom: 40px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--text-hero);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.nav-brand span { color: var(--accent); }

.nav-center {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-center a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  letter-spacing: 0.5px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 1px;
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-hero);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow-strong);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ============================================
   HERO — Mesh Gradient + Falling Text
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  background-color: var(--bg-deep);
  z-index: 0;
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { filter: blur(0px); opacity: 1; }
  50% { filter: blur(2px); opacity: 0.9; }
  100% { filter: blur(0px); opacity: 1; }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 108, 240, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 108, 240, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 65% 50% at 50% 45%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 65% 50% at 50% 45%, black 20%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 0 var(--pad);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-hero);
  margin-bottom: 16px;
  animation: heroFadeIn 0.8s ease 0.1s both;
}

.hero-title-line {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
  animation: heroFadeIn 0.8s ease 0.3s both;
}

/* Falling Text Container */
.falling-text-wrapper {
  position: relative;
  width: 100%;
  min-height: 240px;
  margin: 0 auto 40px;
  animation: heroFadeIn 0.8s ease 0.5s both;
}

.falling-text-container {
  position: relative;
  width: 100%;
  min-height: 240px;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  cursor: default;
  overflow: hidden;
}

.falling-text-container .word {
  display: inline-block;
  padding: 2px 5px;
  transition: color 0.2s ease;
  user-select: none;
}

.falling-text-container .word.highlight {
  color: var(--text-hero);
  font-weight: 600;
}

.falling-text-container .word.physics-active {
  position: absolute;
  will-change: transform;
  cursor: grab;
}

.falling-text-container .word.physics-active:active {
  cursor: grabbing;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: heroFadeIn 0.8s ease 1s both, bounceArrow 2s ease-in-out 2s infinite;
}

.hero-scroll-hint svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-muted);
  stroke-width: 2;
  fill: none;
}

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

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

/* ============================================
   SERVICES
   ============================================ */
#services {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.03);
  padding: 0;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: var(--gradient-accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

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

.service-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-img::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--bg-card) 5%, transparent 100%);
}

.service-body {
  padding: 24px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(59, 108, 240, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--text-hero);
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-link:hover { gap: 12px; color: var(--text-primary); }
.service-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

/* ============================================
   PROJECTS
   ============================================ */
#projects {
  background: var(--bg-deep);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  transition: all var(--transition-slow);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.project-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--bg-primary);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img img {
  transform: scale(1.04);
}

.project-img::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-card) 5%, transparent 100%);
}

.project-body {
  padding: 20px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.project-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-hero);
}

.project-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 1px;
}

.project-body > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-metrics {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-metric {
  display: flex;
  flex-direction: column;
}

.pm-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.pm-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   CAREER — Horizontal Zigzag Timeline
   ============================================ */
#career {
  background: var(--bg-primary);
}

.h-timeline {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 64px;
  padding: 140px 0;
  gap: 0;
}

/* Central horizontal track line */
.h-timeline-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--border));
  transform: translateY(-50%);
  z-index: 0;
}

.h-timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* Dot on the axis */
.h-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  flex-shrink: 0;
  transition: all var(--transition-base);
  position: relative;
  z-index: 2;
}

.h-timeline-dot.current {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow-strong);
  width: 16px;
  height: 16px;
}

.h-timeline-item:hover .h-timeline-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow);
  transform: scale(1.15);
}

/* Card content */
.h-timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  max-width: 210px;
  transition: all var(--transition-base);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.h-timeline-item:hover .h-timeline-card {
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.h-bottom:hover .h-timeline-card {
  transform: translateY(4px);
}

/* Top items: card above, dot below */
.h-top {
  flex-direction: column;
}

.h-top .h-timeline-card {
  margin-bottom: 16px;
}

/* Bottom items: dot above, card below */
.h-bottom {
  flex-direction: column;
}

.h-bottom .h-timeline-card {
  margin-top: 16px;
}

/* Connector lines from card to dot */
.h-top::after {
  content: '';
  position: absolute;
  top: calc(50%);
  width: 1px;
  height: 16px;
  background: var(--border-hover);
  transform: translateY(-100%);
}

.h-bottom::before {
  content: '';
  position: absolute;
  bottom: calc(50%);
  width: 1px;
  height: 16px;
  background: var(--border-hover);
  transform: translateY(100%);
  z-index: 0;
}

.h-timeline-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.h-timeline-role {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-hero);
  line-height: 1.3;
}

.h-timeline-company {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}

.h-timeline-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  opacity: 0.85;
}

/* ============================================
   SPEAKING & MEDIA — Photo Gallery
   ============================================ */
#speaking {
  background: var(--bg-deep);
}

.speaking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  margin-bottom: 72px;
}

.speaking-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.speaking-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Feature card spans 2 columns */
.speaking-card.featured {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.speaking-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.speaking-card:hover img {
  transform: scale(1.06);
}

.speaking-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 10, 24, 0.9) 0%, rgba(5, 10, 24, 0.3) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background var(--transition-base);
}

.speaking-card:hover .speaking-overlay {
  background: linear-gradient(0deg, rgba(5, 10, 24, 0.95) 0%, rgba(5, 10, 24, 0.4) 50%, transparent 80%);
}

.speaking-overlay h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
  color: #fff;
}

.speaking-overlay .speaking-role {
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 2px;
}

.speaking-overlay .speaking-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}

/* Media Logos */
.media-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.media-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.media-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-decoration: none;
}

.media-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ============================================
   CONTACT CTA
   ============================================ */
#contact {
  background: var(--bg-primary);
}

.contact-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 64px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.25;
}

.contact-card::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.contact-card h2 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  color: var(--text-hero);
}

.contact-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-hover);
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-decoration: none;
}

.contact-method:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.contact-method .cm-icon { font-size: 20px; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--accent); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  :root { --section-gap: 80px; }

  .hero-name { font-size: 52px; }
  .falling-text-container { font-size: 1.6rem; }
  .section-title { font-size: 34px; }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .speaking-grid { grid-template-columns: repeat(2, 1fr); }
  .speaking-card.featured { grid-column: span 2; }

  .nav-center { display: none; }
  .contact-card { padding: 48px 28px; }

  /* Horizontal timeline wraps on tablet */
  .h-timeline {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 40px 0;
  }
  .h-timeline-track { display: none; }
  .h-timeline-item {
    flex: 0 0 30%;
  }
  .h-top::after, .h-bottom::before { display: none; }
  .h-top .h-timeline-card { margin-bottom: 8px; }
  .h-bottom .h-timeline-card { margin-top: 8px; }
  .h-timeline-dot { display: none; }
}

@media (max-width: 600px) {
  :root { --section-gap: 60px; --pad: 18px; }

  .hero-name { font-size: 38px; }
  .hero-title-line { font-size: 17px; }
  .falling-text-container { font-size: 1.3rem; min-height: 200px; }
  .section-title { font-size: 28px; }

  .project-metrics { gap: 16px; }
  .pm-value { font-size: 18px; }

  /* Career: simple vertical stack on mobile */
  .h-timeline {
    flex-direction: column;
    padding: 20px 0;
    gap: 16px;
  }
  .h-timeline-item { flex: none; width: 100%; }
  .h-timeline-card { max-width: 100%; text-align: left; }

  .speaking-grid { grid-template-columns: 1fr; }
  .speaking-card.featured { grid-column: span 1; }

  .contact-actions { flex-direction: column; align-items: center; }
  .contact-method { width: 100%; justify-content: center; }
  .contact-card h2 { font-size: 28px; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .media-logos { justify-content: center; }
}
