/* ============================================
   HOME.CSS — Hero + Timeline + About
   ============================================ */

/* ---- Hero ---- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: var(--space-24) 0 var(--space-20);
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid background texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

/* Warm fade at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__content {
  max-width: 620px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-accent);
}

.hero__name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

.hero__name em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
  max-width: 520px;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 0.35s;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 0.5s;
}



/* ---- Quick stats row ---- */
.hero__stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 0.65s;
}

.hero__stat-value {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero__stat-label {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Timeline Section ---- */
.timeline-section {
  padding: var(--space-24) 0;
  background: var(--color-bg);
}

.timeline-section__header {
  margin-bottom: var(--space-16);
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-border) 80%, transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-12);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

/* Dot on the line */
.timeline__item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  transition: background var(--transition-fast);
}

.timeline__item:hover::before {
  background: var(--color-accent);
}

/* First dot is filled */
.timeline__item:first-child::before {
  background: var(--color-accent);
  width: 11px;
  height: 11px;
  left: -33px;
  top: 7px;
}

.timeline__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

.timeline__org {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.timeline__role {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.timeline__desc {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 560px;
}

.timeline__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

/* ---- About Section ---- */
.about-section {
  padding: var(--space-24) 0;
  border-top: 1px solid var(--color-border);
}

.about-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: start;
}

.about-section__text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.about-section__text p {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.about-section__text p:last-child {
  margin-bottom: 0;
}

.about-section__links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

/* About photo */
.about-section__photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
}

.about-section__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shown when image fails to load or no src set */
.about-section__photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--text-5xl);
  font-weight: 600;
  color: var(--color-text-faint);
  letter-spacing: -0.03em;
}

/* Hide placeholder once image loads */
.about-section__photo img:not([src=""]) ~ .about-section__photo-placeholder {
  display: none;
}

/* ---- Animations ---- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero__inner {
    max-width: 100%;
  }

  .hero__stats {
    gap: var(--space-8);
  }

  .about-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-section__photo {
    aspect-ratio: 3 / 2;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    gap: var(--space-6);
    flex-wrap: wrap;
  }

  .hero__ctas {
    flex-direction: column;
  }

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