/* ============================================
   Nathan Critchett - "Cinematic Ethereal"

   Palette:
   - Interstellar Abyss: #080C18 (deep space canvas)
   - Deep Indigo: #0F1628 (card surfaces)
   - Nebula Slate: #1A2240 (elevated surfaces)
   - Dune Gold: #C4874D (warmth, CTAs, accent)
   - Atmospheric Peach: #D4735E (secondary warmth)
   - Pandora Cyan: #00D4B8 (bioluminescence, highlights)
   - Nebula Violet: #6B3FA0 (depth, gradients)
   - Star White: #E8E4F0 (text)
   ============================================ */

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

:root {
  /* More contrast between surface layers */
  --abyss: #060A14;
  --abyss-light: #101828;
  --nebula-slate: #1E2A48;
  --nebula-hover: #283560;
  --dune: #C4874D;
  --dune-hover: #D49A60;
  --peach: #D4735E;
  --cyan: #00D4B8;
  --cyan-dim: rgba(0, 212, 184, 0.08);
  --violet: #6B3FA0;
  --violet-dim: rgba(107, 63, 160, 0.15);
  /* Brighter text tiers for legibility */
  --star: #F0ECF8;
  --star-muted: #B0B4CC;
  --star-dim: #8088A8;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--abyss);
  color: var(--star);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  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;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Typography */
.section-label {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dune);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--star);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--dune), var(--peach));
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 135, 77, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--star);
  border: 1px solid rgba(232, 228, 240, 0.2);
}
.btn-ghost:hover {
  background: rgba(232, 228, 240, 0.06);
  border-color: rgba(232, 228, 240, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--star-muted);
  border: 1px solid rgba(232, 228, 240, 0.15);
}
.btn-outline:hover {
  background: rgba(232, 228, 240, 0.06);
  border-color: rgba(232, 228, 240, 0.3);
}

.btn-sm { padding: 0.65rem 1.5rem; font-size: 0.95rem; }
.btn-lg { padding: 1.1rem 2.8rem; font-size: 1rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dune);
  transition: opacity 0.2s;
  margin-top: 1.5rem;
}
.text-link:hover { opacity: 0.7; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: all 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(8, 12, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.8rem 0;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--star);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--star-muted);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--star); }

.nav-cta {
  background: linear-gradient(135deg, var(--dune), var(--peach)) !important;
  color: white !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 100px;
  font-weight: 500 !important;
}
.nav-cta:hover { box-shadow: 0 4px 20px rgba(196, 135, 77, 0.3); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--star);
  transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Animated gradient background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(107, 63, 160, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(196, 135, 77, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(0, 212, 184, 0.04) 0%, transparent 60%);
  animation: nebulaShift 20s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes nebulaShift {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Video background container (ready for future video) */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--star);
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--star);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0);
  }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% {
    opacity: 0;
    transform: translateY(-10vh) translateX(40px);
  }
}

/* Ticker */
.ticker-wrap {
  margin-top: auto;
  padding-top: 3rem;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 1;
}

.ticker { width: 100%; overflow: hidden; }

.ticker-track {
  display: flex;
  gap: 2rem;
  animation: ticker 35s linear infinite;
  width: max-content;
}

.ticker-track span {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--star-dim);
  white-space: nowrap;
  position: relative;
  padding-left: 1.2rem;
  text-transform: uppercase;
}

.ticker-track span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dune);
  transform: translateY(-50%);
  opacity: 0.5;
}

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

/* ---- About ---- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  background: var(--abyss-light);
  position: relative;
}

/* Subtle god ray on about section */
.about::before {
  content: '';
  position: absolute;
  top: -20%;
  right: 10%;
  width: 400px;
  height: 800px;
  background: linear-gradient(180deg, rgba(196, 135, 77, 0.06) 0%, transparent 100%);
  transform: rotate(15deg);
  pointer-events: none;
  z-index: 0;
}

.about-photo {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: linear-gradient(135deg, var(--nebula-slate), var(--abyss-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--star-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-content {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.about p {
  color: var(--star-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ---- Thesis ---- */
.thesis {
  padding: 7rem 2.5rem;
  background: var(--abyss);
  position: relative;
}

.thesis::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 70% 50% at 30% 70%, rgba(0, 212, 184, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.thesis-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.thesis-intro {
  font-size: 1.05rem;
  color: var(--star-muted);
  line-height: 1.75;
  max-width: 800px;
  margin-bottom: 2.5rem;
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.thesis-card {
  background: var(--abyss-light);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.thesis-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--dune), var(--peach));
  opacity: 0;
  transition: opacity 0.4s;
}

.thesis-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 135, 77, 0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

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

.thesis-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--star);
}

.thesis-card p {
  font-size: 1rem;
  color: var(--star-muted);
  line-height: 1.7;
}

/* ---- What I've Built ---- */
.built {
  padding: 7rem 2.5rem;
  background: var(--abyss-light);
  position: relative;
}

.built-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.built-intro {
  font-size: 1.05rem;
  color: var(--star-muted);
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 3rem;
}

.built-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.built-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--nebula-slate);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.built-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 50px rgba(0,0,0,0.3);
}

.built-card-visual {
  position: relative;
  min-height: 300px;
  background: linear-gradient(135deg, rgba(107, 63, 160, 0.1), rgba(0, 212, 184, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video container inside built cards */
.built-card-visual video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.built-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: linear-gradient(135deg, var(--dune), var(--peach));
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  z-index: 2;
}

.built-screenshot-placeholder {
  color: var(--star-dim);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.3;
}

.built-card-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.built-card-content h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--star);
  margin-bottom: 0.3rem;
}

.built-tagline {
  font-size: 1rem;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 1rem;
}

.built-card-content > p {
  font-size: 1rem;
  color: var(--star-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.built-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.built-features li {
  font-size: 0.95rem;
  color: var(--star-muted);
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.built-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(0, 212, 184, 0.4);
}

/* ---- Reach / Stats ---- */
.reach {
  padding: 5rem 2.5rem;
  background: var(--abyss);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.reach-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.stats-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--abyss-light);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 135, 77, 0.12);
}

.stat-number {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--star);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--star);
  margin-bottom: 0.75rem;
}

.stat-desc {
  font-size: 0.95rem;
  color: var(--star-dim);
  line-height: 1.6;
}

/* ---- Work / Services ---- */
.work {
  padding: 7rem 2.5rem;
  background: var(--abyss-light);
}

.work-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.work-card {
  background: var(--nebula-slate);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.work-icon {
  color: var(--dune);
  margin-bottom: 1.5rem;
}

.work-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--star);
}

.work-card p {
  font-size: 1rem;
  color: var(--star-muted);
  line-height: 1.7;
}

/* ---- Writing ---- */
.writing {
  padding: 7rem 2.5rem;
  background: var(--abyss);
}

.writing-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.writing-category {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.writing-list {
  display: flex;
  flex-direction: column;
}

.writing-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
}

.writing-item:hover {
  padding-left: 0.5rem;
}

.writing-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--star);
}

.writing-desc {
  font-size: 0.95rem;
  color: var(--star-dim);
  line-height: 1.5;
}

.writing-arrow {
  font-size: 1.2rem;
  color: var(--star-dim);
  transition: all 0.3s;
}

.writing-item:hover .writing-arrow {
  transform: translateX(4px);
  color: var(--dune);
}

.all-articles-note {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--star-dim);
}
.all-articles-note a {
  color: var(--dune);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Services (Speaking + Consulting) ---- */
.services {
  padding: 7rem 2.5rem;
  background: var(--abyss-light);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 50% 40% at 80% 30%, rgba(196, 135, 77, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--nebula-slate);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

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

.service-card-icon {
  color: var(--dune);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--star);
  margin-bottom: 0.75rem;
}

.service-card-desc {
  font-size: 1rem;
  color: var(--star-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.session-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.session-topic {
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.session-topic h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--dune);
  margin-bottom: 0.5rem;
}

.session-topic p {
  font-size: 0.95rem;
  color: var(--star-muted);
  line-height: 1.65;
}

.services-cta {
  margin-top: 3rem;
  text-align: center;
}

@media (max-width: 768px) {
  .services { padding: 4rem 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .session-topics { grid-template-columns: 1fr; }
}

/* Testimonials */
.testimonials { margin-top: 3rem; }

.testimonial-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: var(--nebula-slate);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: rgba(196, 135, 77, 0.12);
  transform: translateY(-2px);
}

.quote-mark {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--dune);
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.quote-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--star);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.quote-attr {
  font-size: 0.9rem;
  color: var(--star-dim);
  font-weight: 500;
}

/* ---- Contact ---- */
.contact {
  padding: 8rem 2.5rem;
  background: var(--abyss);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107, 63, 160, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-sub {
  font-size: 1rem;
  color: var(--star-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: var(--star-dim);
  transition: color 0.3s;
}
.social-link:hover { color: var(--star); }

/* ---- Footer ---- */
.footer {
  padding: 2rem 2.5rem;
  background: var(--abyss);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--star-dim);
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--star-dim);
  opacity: 0.5;
}

/* ---- Animations ---- */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---- About Image ---- */
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* ---- Book Section ---- */
.book {
  padding: 6rem 2.5rem;
  background: var(--abyss);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.book-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: center;
}

.book-cover {
  position: relative;
}

.book-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(196, 135, 77, 0.1);
  transition: transform 0.4s;
}

.book-cover:hover img {
  transform: scale(1.02) rotate(-1deg);
}

.book-content .section-headline {
  margin-bottom: 0.5rem;
}

.book-subtitle {
  font-size: 1.1rem;
  color: var(--dune);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.book-content p {
  font-size: 1rem;
  color: var(--star-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.book-status {
  font-size: 1rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

/* ---- Built Card Images + Video ---- */
.built-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.built-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.6;
}

/* ---- Floating Spotify Player ---- */
.spotify-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.spotify-toggle {
  height: 48px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--abyss-light);
  color: #1DB954;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.spotify-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--star-muted);
  white-space: nowrap;
  transition: color 0.3s;
}

.spotify-toggle:hover {
  background: var(--nebula-slate);
  border-color: rgba(29, 185, 84, 0.3);
  transform: scale(1.02);
}

.spotify-toggle:hover .spotify-label {
  color: var(--star);
}

.spotify-toggle.active {
  background: #1DB954;
  color: white;
  border-color: #1DB954;
}

.spotify-toggle.active .spotify-label {
  color: rgba(255,255,255,0.9);
}

.spotify-player {
  display: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}

.spotify-player.open {
  display: block;
  animation: playerSlideUp 0.3s ease;
}

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

@media (max-width: 480px) {
  .spotify-float {
    bottom: 1rem;
    right: 1rem;
  }
  .spotify-player iframe {
    width: 260px;
  }
}

/* ---- Cards ---- */

/* ---- Word Reveal ---- */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* ---- Wave Divider ---- */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  width: 100%;
  height: 40px;
  color: var(--abyss-light);
}

.thesis .wave-divider svg { color: var(--abyss); }
.built .wave-divider svg { color: var(--abyss); }
.writing .wave-divider svg { color: var(--abyss-light); }
.contact .wave-divider svg { color: var(--abyss-light); }

/* ---- Button Ripple ---- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* ---- Nav Active State ---- */
.nav-links a.nav-active {
  color: var(--dune) !important;
}

/* ---- Parallax offset ---- */
.about::before,
.thesis::before,
.speaking::before,
.contact::before {
  transform: translateY(var(--parallax-y, 0));
}

/* ---- Ticker hover pause ---- */
.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  transition: color 0.2s, opacity 0.2s;
}

.ticker-track span:hover {
  color: var(--star);
  opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .stats-scroll { grid-template-columns: repeat(2, 1fr); }
  .testimonial-scroll { grid-template-columns: repeat(2, 1fr); }
  .built-card { grid-template-columns: 1fr; }
  .built-card-visual { min-height: 200px; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--abyss);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; color: var(--star); }
  .nav-toggle { display: flex; z-index: 101; }

  /* Hero */
  .hero { padding: 6rem 1.25rem 2rem; min-height: 100vh; min-height: 100dvh; }
  .hero-headline { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .hero-label { font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 2rem; }
  .hero-actions { gap: 0.75rem; }
  .hero-video-bg { opacity: 0.2; } /* lighter on mobile for legibility */

  /* About */
  .about { grid-template-columns: 1fr; min-height: auto; }
  .about-photo { min-height: 400px; max-height: 500px; }
  .about-content { padding: 2.5rem 1.25rem; }
  .about .section-headline { font-size: clamp(1.4rem, 6vw, 1.8rem); }

  /* Book */
  .book { padding: 4rem 1.25rem; }
  .book-inner { grid-template-columns: 140px 1fr; gap: 1.5rem; }
  .book-subtitle { font-size: 0.95rem; }

  /* Thesis */
  .thesis { padding: 4rem 1.25rem; }
  .thesis-grid { grid-template-columns: 1fr; }
  .thesis-intro { font-size: 0.95rem; }

  /* Built */
  .built { padding: 4rem 1.25rem; }
  .built-card { grid-template-columns: 1fr; }
  .built-card-visual { min-height: 200px; }
  .built-card-content { padding: 2rem 1.25rem; }
  .built-tagline { font-size: 0.85rem; }

  /* Stats */
  .reach { padding: 3rem 1.25rem; }
  .stats-scroll { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-card { padding: 1.5rem 1.25rem; }
  .stat-number { font-size: 2.5rem; }

  /* Work */
  .work { padding: 4rem 1.25rem; }
  .work-grid { grid-template-columns: 1fr; }

  /* Writing */
  .writing { padding: 4rem 1.25rem; }
  .writing-item { grid-template-columns: 1fr; gap: 0.2rem; padding: 1rem 0; }
  .writing-arrow { display: none; }
  .writing-title { font-size: 1rem; }
  .writing-desc { font-size: 0.85rem; }

  /* Speaking */
  .speaking { padding: 4rem 1.25rem; }
  .keynote-item h3 { font-size: 1.25rem; }

  /* Contact */
  .contact { padding: 4rem 1.25rem; }
  .section-headline { font-size: clamp(1.4rem, 5.5vw, 2rem); }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* Spotify */
  .spotify-label { display: none; }
  .spotify-toggle { width: 48px; padding: 0; border-radius: 50%; }
  .spotify-player iframe { width: 280px; }
}

@media (max-width: 480px) {
  .stats-scroll { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
  .book-inner { grid-template-columns: 120px 1fr; gap: 1rem; }
  .about-photo { min-height: 350px; }
}

@media (prefers-reduced-motion: reduce) {
  .animate-in, .fade-up { opacity: 1; transform: none; transition: none; }
  .word-reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .hero::before { animation: none; }
  .particle { animation: none; }
}
