/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --void:        #03060f;
  --deep:        #070d1a;
  --surface:     #0c1527;
  --panel:       #111e35;
  --rim:         #1a2d4a;
  --gold:        #c89b3c;
  --gold-bright: #f0c060;
  --gold-dim:    #7a5c1e;
  --teal:        #0ac8b9;
  --teal-dim:    #066b62;
  --fog:         #8fa3c0;
  --text:        #ccd6f6;
  --text-dim:    #5a6e8a;
  --white:       #e8f0ff;
  --danger:      #e84057;

  --font-display: 'Cinzel', serif;
  --font-ui:      'Rajdhani', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-expo:  cubic-bezier(0.7, 0, 0.84, 0);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: screen;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold-bright);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(200,155,60,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out-expo), width 0.2s, height 0.2s, border-color 0.2s;
}
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--teal);
}

a, button { cursor: none; }

/* ============================================================
   CANVAS — PARTICLE FIELD
   ============================================================ */
#canvas-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: linear-gradient(to bottom, rgba(3,6,15,0.95), transparent);
  backdrop-filter: blur(6px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(200,155,60,0.4);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  height: 100%;
  align-items: center;
}

.nav-links li {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
  padding: 1.5rem 1.2rem;
  display: flex;
  align-items: center;
}
.nav-links a.nav-disabled {
  color: var(--text-dim);
  pointer-events: none;
  opacity: 0.5;
}
.nav-links a.nav-disabled::after { display: none; }

.coming-soon-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  border: 1px solid var(--gold-dim);
  padding: 0.1rem 0.35rem;
  margin-left: 0.4rem;
  vertical-align: middle;
  text-transform: uppercase;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a:hover::after { right: 0; }

/* ============================================================
   SHARED LAYOUT
   ============================================================ */
section {
  position: relative;
  z-index: 1;
  padding: 96px 5vw 120px;
  max-width: 1400px;
  margin: 0 auto;
  display: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
section.page-active {
  display: block;
  opacity: 1;
}
section.page-entering { display: block; opacity: 0; }
section.page-exiting  { display: block; opacity: 0; }

/* Sections that need non-block display when active/entering */
#hero.page-active, #hero.page-entering   { display: flex; }
#about.page-active, #about.page-entering { display: grid; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s, transform 0.6s var(--ease-out-expo);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.1s, transform 0.7s 0.1s var(--ease-out-expo);
}
.section-title span { color: var(--gold); }

.in-view .section-eyebrow,
.in-view .section-title {
  opacity: 1;
  transform: none;
}

/* Divider (hidden in SPA mode) */
.divider { display: none; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 0;
  max-width: 100%;
  overflow: hidden;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
  width: 100%;
}

.hero-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--gold-dim);
  background: rgba(200,155,60,0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.3s var(--ease-out-expo) forwards;
}
.hero-rank-badge .rank-icon {
  width: 20px; height: 20px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  flex-shrink: 0;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 6.5rem);
  font-weight: 900;
  line-height: 0.92;
  color: var(--white);
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeSlideUp 0.9s 0.5s var(--ease-out-expo) forwards;
  position: relative;
}
.hero-name .name-line2 {
  color: var(--gold);
  -webkit-text-stroke: 1px var(--gold-bright);
}

.hero-title {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--fog);
  text-transform: uppercase;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.7s var(--ease-out-expo) forwards;
}

.hero-desc {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--fog);
  line-height: 1.75;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 0.9s var(--ease-out-expo) forwards;
}

.hero-cta-group {
  display: flex;
  gap: 1.25rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s 1.1s var(--ease-out-expo) forwards;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.25rem;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--void);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: filter 0.25s, transform 0.2s;
}
.btn-primary:hover { filter: brightness(1.2); transform: translateY(-2px); }

.btn-disabled {
  pointer-events: none;
  opacity: 0.45;
  filter: grayscale(0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.25rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: background 0.25s, color 0.25s, transform 0.2s;
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(200,155,60,0.1);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rim);
  opacity: 0;
  animation: fadeSlideUp 0.8s 1.3s var(--ease-out-expo) forwards;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-bright);
  line-height: 1;
  text-shadow: 0 0 16px rgba(240,192,96,0.4);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--text);
  text-transform: uppercase;
}

/* Rift fog overlay at bottom of hero */
.rift-fog {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--void), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Animated rune circles behind hero */
.rune-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: runeSpin linear infinite;
  pointer-events: none;
  z-index: 0;
}
.rune-ring-1 {
  width: 600px; height: 600px;
  border-color: rgba(200,155,60,0.07);
  top: 50%; right: -100px;
  transform: translateY(-50%);
  animation-duration: 60s;
}
.rune-ring-2 {
  width: 400px; height: 400px;
  border-color: rgba(10,200,185,0.05);
  top: 50%; right: 0;
  transform: translateY(-50%);
  animation-duration: 40s;
  animation-direction: reverse;
}
.rune-ring-3 {
  width: 200px; height: 200px;
  border-color: rgba(200,155,60,0.1);
  top: 50%; right: 100px;
  transform: translateY(-50%);
  animation-duration: 25s;
}

@keyframes runeSpin {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}

/* Scan line effect */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

@media (max-width: 900px) {
  #about { grid-template-columns: 1fr; gap: 3rem; }
}

.about-text p {
  font-size: 1.05rem;
  color: var(--fog);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s, transform 0.6s var(--ease-out-expo);
}
.in-view .about-text p:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.2s; }
.in-view .about-text p:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.35s; }
.in-view .about-text p:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.5s; }

.about-text p strong { color: var(--gold); font-weight: 600; }

.philosophy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.phil-card {
  background: var(--panel);
  border: 1px solid var(--rim);
  border-top: 2px solid var(--gold-dim);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out-expo), border-color 0.3s;
}
.phil-card:hover { border-top-color: var(--gold); }
.phil-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,155,60,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.phil-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}
.phil-card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.phil-card-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.in-view .phil-card:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.15s; }
.in-view .phil-card:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.25s; }
.in-view .phil-card:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.35s; }
.in-view .phil-card:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.45s; }

/* ============================================================
   SKILLS
   ============================================================ */
#skills {
  background: rgba(7,13,26,0.8);
  max-width: 100%;
  padding: 96px 5vw 120px;
}
#skills .skills-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.skill-category-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.skill-bar-wrap {
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out-expo);
}
.in-view .skill-bar-wrap { opacity: 1; transform: none; }

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.skill-name {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
}
.skill-rank {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.skill-track {
  height: 6px;
  background: var(--rim);
  position: relative;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.skill-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: width 1.2s var(--ease-out-expo);
  box-shadow: 0 0 10px rgba(200,155,60,0.4);
}
.skill-fill.teal {
  background: linear-gradient(90deg, var(--teal-dim), var(--teal));
  box-shadow: 0 0 10px rgba(10,200,185,0.4);
}
.in-view .skill-fill { width: var(--pct); }

/* XP bar beneath each skill */
.xp-pips {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}
.xp-pip {
  width: 100%;
  height: 3px;
  background: var(--rim);
  transition: background 0.3s;
}
.xp-pip.lit { background: rgba(200,155,60,0.35); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--rim);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(24px);
}
.in-view .project-card { opacity: 1; transform: none; }
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dim);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(200,155,60,0.05);
}

/* corner accent */
.project-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 48px; height: 48px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover::before { opacity: 1; }
.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 48px;
  border-bottom: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover::after { opacity: 1; }

.project-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--teal-dim);
  background: rgba(10,200,185,0.05);
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--fog);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.project-tech {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  padding: 0.2rem 0.5rem;
  background: rgba(200,155,60,0.1);
  border: 1px solid rgba(200,155,60,0.25);
}
.project-impact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
}
.project-impact::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* stagger reveal */
.project-card:nth-child(1) { transition-delay: 0.05s; }
.project-card:nth-child(2) { transition-delay: 0.12s; }
.project-card:nth-child(3) { transition-delay: 0.19s; }
.project-card:nth-child(4) { transition-delay: 0.26s; }
.project-card:nth-child(5) { transition-delay: 0.33s; }
.project-card:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   COACHING
   ============================================================ */
#coaching {
  max-width: 100%;
  padding: 96px 5vw 120px;
  background: linear-gradient(180deg, var(--void), var(--deep), var(--void));
}
#coaching .coaching-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.coaching-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 4rem;
  align-items: start;
}
@media(max-width: 900px) { .coaching-layout { grid-template-columns: 1fr; gap: 3rem; } }

.coaching-offering {
  padding: 1.5rem;
  border: 1px solid var(--rim);
  border-left: 3px solid var(--gold-dim);
  background: rgba(17,30,53,0.5);
  margin-bottom: 1rem;
  transition: border-left-color 0.3s, background 0.3s;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out-expo), border-left-color 0.3s, background 0.3s;
}
.coaching-offering:hover {
  border-left-color: var(--gold);
  background: rgba(17,30,53,0.9);
}
.in-view .coaching-offering { opacity: 1; transform: none; }
.in-view .coaching-offering:nth-child(2) { transition-delay: 0.1s; }
.in-view .coaching-offering:nth-child(3) { transition-delay: 0.2s; }
.in-view .coaching-offering:nth-child(4) { transition-delay: 0.3s; }

.offering-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.offering-desc {
  font-size: 0.9rem;
  color: var(--fog);
  line-height: 1.65;
}

/* Lead form */
.lead-form {
  background: var(--panel);
  border: 1px solid var(--rim);
  padding: 2.5rem;
  position: relative;
}
.lead-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--teal), var(--gold-dim));
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.form-subtitle {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.required { color: var(--danger); }

.field input,
.field textarea,
.field select {
  background: var(--surface);
  border: 1px solid var(--rim);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(200,155,60,0.1);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select option { background: var(--deep); }

.form-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--void);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: none;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: filter 0.25s, transform 0.2s;
  margin-top: 0.5rem;
}
.form-submit:hover { filter: brightness(1.2); transform: translateY(-2px); }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success .success-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.form-success p { color: var(--teal); font-family: var(--font-display); }

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  text-align: center;
  padding: 100px 5vw 80px;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 1.5rem 2rem;
  border: 1px solid var(--rim);
  background: var(--panel);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  min-width: 140px;
  opacity: 0;
  transform: translateY(16px);
}
.in-view .contact-link { opacity: 1; transform: none; }
.in-view .contact-link:nth-child(2) { transition-delay: 0.1s; }
.in-view .contact-link:nth-child(3) { transition-delay: 0.2s; }
.in-view .contact-link:nth-child(4) { transition-delay: 0.3s; }
.contact-link:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 20px rgba(200,155,60,0.06);
}
.contact-link-icon { font-size: 1.6rem; }
.contact-link-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}
.blog-search {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}
.blog-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.65rem 1rem;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-search input::placeholder {
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.blog-search input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(200,155,60,0.1);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.blog-tag-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--rim);
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.blog-tag-btn:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}
.blog-tag-btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(200,155,60,0.1);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.blog-card { cursor: pointer; }

.blog-empty {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--rim);
  background: rgba(12,21,39,0.5);
}

.blog-back-btn {
  margin-bottom: 2rem;
}

/* Blog post detail */
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.blog-post-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 2rem;
}
.blog-post-body {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--fog);
  line-height: 1.85;
}
.blog-post-body h2,
.blog-post-body h3 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 2rem 0 1rem;
}
.blog-post-body h2 { font-size: 1.5rem; }
.blog-post-body h3 { font-size: 1.2rem; }
.blog-post-body p { margin-bottom: 1.25rem; }
.blog-post-body a { color: var(--teal); text-decoration: underline; }
.blog-post-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rim);
  margin: 1rem 0;
}
.blog-post-body blockquote {
  border-left: 3px solid var(--gold-dim);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-dim);
  background: rgba(17,30,53,0.5);
}
.blog-post-body pre,
.blog-post-body code {
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--rim);
}
.blog-post-body code {
  padding: 0.15rem 0.4rem;
  font-size: 0.88rem;
}
.blog-post-body pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.blog-post-body pre code {
  border: none;
  padding: 0;
  background: none;
}
.blog-post-body ul,
.blog-post-body ol {
  margin: 1rem 0 1rem 1.5rem;
}
.blog-post-body li { margin-bottom: 0.4rem; }

/* Comments */
.blog-comments {
  margin-top: 3rem;
  max-width: 720px;
}
.blog-comment {
  border-left: 2px solid var(--rim);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: rgba(17,30,53,0.3);
}
.blog-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.blog-comment-header strong {
  color: var(--gold);
}
.blog-comment-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}
.blog-comment p {
  font-size: 0.9rem;
  color: var(--fog);
  line-height: 1.7;
}
.blog-no-comments {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-style: italic;
}

.blog-comment-form {
  max-width: 720px;
  margin-top: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  border-top: 1px solid var(--rim);
  padding: 1rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--void);
}
footer span { letter-spacing: 0.1em; }
footer .footer-right { color: var(--gold-dim); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

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

/* Hexagon floating decoration */
.hex-deco {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.hex-deco svg { fill: var(--gold); }

/* Glow pulse */
@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.7; }
}

/* ============================================================
   MODE TOGGLE SWITCH
   ============================================================ */
.mode-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: fixed;
  bottom: 3.5rem;
  right: 2rem;
  z-index: 200;
}
.mode-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s;
}
.mode-toggle-label.active { color: var(--gold); }

.mode-toggle-track {
  width: 42px;
  height: 22px;
  background: var(--rim);
  border: 1px solid var(--gold-dim);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
}
.mode-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--gold);
  border-radius: 50%;
  transition: transform 0.25s var(--ease-out-expo);
  transform: translateX(20px);
}
/* When pretty is OFF (fast mode), knob goes left */
.mode-toggle-track.fast::after {
  transform: translateX(0);
}

/* ============================================================
   FAST MODE — only kill navigation & reveal animations
   ============================================================ */

/* Instant page transitions */
body.fast-mode section {
  transition-duration: 0s !important;
}
body.fast-mode section.page-active {
  opacity: 1 !important;
}

/* Instant element reveals (eyebrows, titles, cards, skill bars, etc.) */
body.fast-mode .section-eyebrow,
body.fast-mode .section-title,
body.fast-mode .about-text p,
body.fast-mode .phil-card,
body.fast-mode .skill-bar-wrap,
body.fast-mode .skill-fill,
body.fast-mode .project-card,
body.fast-mode .coaching-offering,
body.fast-mode .contact-link,
body.fast-mode .portfolio-sub,
body.fast-mode .hero-rank-badge,
body.fast-mode .hero-name,
body.fast-mode .hero-title,
body.fast-mode .hero-desc,
body.fast-mode .hero-cta-group,
body.fast-mode .hero-stats {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   SPA — overflow & scroll lock
   ============================================================ */
html, body { overflow-x: hidden; }
body { overflow-y: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  section { padding: 80px 1.5rem; }
  #hero { padding-top: 72px; }
  .hero-inner { padding: 0 1.5rem; }
  .hero-stats { gap: 1.5rem; margin-top: 3rem; }
  .philosophy-cards { grid-template-columns: 1fr; }
  .mode-toggle { right: 1rem; bottom: 3rem; }
}

/* ============================================================
   MOBILE NAV TOGGLE (simple)
   ============================================================ */
.nav-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--gold-dim);
  padding: 0.4rem 0.6rem;
  color: var(--gold);
  font-size: 1.1rem;
}
@media(max-width: 768px) {
  .nav-menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(3,6,15,0.98);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--rim);
  }
}
