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

:root {
  --navy:    #080c18;
  --navy-2:  #0f1624;
  --navy-3:  #161e30;
  --gold:    #c9a84c;
  --gold-lt: #e2c97a;
  --white:   #f4f4f0;
  --gray:    #8a94a6;
  --gray-lt: #b0b8c8;
  --border:  rgba(201, 168, 76, 0.15);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --max-w: 1100px;
  --section-pad: 96px 24px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s, backdrop-filter 0.3s;
}
#nav.scrolled {
  background: rgba(8, 12, 24, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-lt);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
#nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
#nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; }
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.2s both;
}
.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.4s both;
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray-lt);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 40px;
  animation: fadeUp 0.8s 0.6s both;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.8s both;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-lt); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--gray-lt);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* HERO SCROLL HINT */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
  animation: scrollLine 2s 1.4s ease-in-out infinite;
}

/* ===== SECTIONS ===== */
section { padding: var(--section-pad); }
.section-dark { background: var(--navy-2); }
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 48px;
}
.section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-top: 10px;
}
.section-intro {
  color: var(--gray-lt);
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: -32px;
  margin-bottom: 56px;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 80px;
  align-items: start;
}
.about-lead {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 24px;
}
.about-text p { color: var(--gray-lt); margin-bottom: 16px; }
.about-text p strong { color: var(--white); }
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.stat {
  background: var(--navy-2);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--gold);
  font-weight: 600;
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 56px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -29px;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--navy-2);
}
.timeline-meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.timeline-company {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.timeline-period {
  font-size: 0.8rem;
  color: var(--gray);
}
.timeline-role {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.timeline-content p { color: var(--gray-lt); margin-bottom: 12px; }
.timeline-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-highlights li {
  color: var(--gray-lt);
  font-size: 0.9rem;
  padding-left: 16px;
  position: relative;
}
.timeline-highlights li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ===== FOCUS CARDS ===== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.focus-card {
  background: var(--navy-2);
  padding: 32px 28px;
  transition: background 0.2s;
}
.focus-card:hover { background: var(--navy-3); }
.focus-icon {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.focus-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.focus-card p {
  font-size: 0.875rem;
  color: var(--gray-lt);
  line-height: 1.65;
}

/* ===== WRITING ===== */
.writing-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.writing-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  background: var(--navy-3);
  padding: 28px 32px;
  transition: background 0.2s;
}
.writing-item:hover { background: rgba(255,255,255,0.03); }
.writing-year {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold);
  padding-top: 3px;
}
.writing-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.writing-body p { font-size: 0.875rem; color: var(--gray-lt); margin-bottom: 12px; }
.writing-type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 2px;
}

/* ===== RECOGNITION ===== */
.recognition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.recognition-card {
  background: var(--navy-2);
  padding: 40px 36px;
  transition: background 0.2s;
}
.recognition-card:hover { background: var(--navy-3); }
.recognition-year {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.recognition-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.recognition-card p { font-size: 0.875rem; color: var(--gray-lt); }

/* ===== CONTACT ===== */
.contact-inner { text-align: center; }
.contact-intro {
  color: var(--gray-lt);
  font-size: 1.1rem;
  max-width: 480px;
  margin: -32px auto 40px;
}
.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-lt);
  transition: all 0.2s;
}
.contact-link:hover { border-color: var(--gold); color: var(--gold); }
.contact-link svg { flex-shrink: 0; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes scrollLine {
  0%   { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(0.3); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: bottom; }
}

/* ===== SCROLL FADE ===== */
.fade-target {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-target.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-target { opacity: 1 !important; transform: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .focus-grid  { grid-template-columns: repeat(2, 1fr); }
  .recognition-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-pad: 64px 20px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 12, 24, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 20px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  #nav.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .focus-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .writing-item { grid-template-columns: 1fr; gap: 8px; }
  .writing-year { font-size: 0.8rem; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
