/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --cream:    #F4EFE6;
  --cream-2:  #EDE6D9;
  --charcoal: #1B1915;
  --ink:      #3A3630;
  --muted:    #8A8278;
  --accent:   #B8633A;
  --rule:     #D5CDBD;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'DM Sans', sans-serif;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' 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)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 80px 0; }
section + section { border-top: 1px solid var(--rule); }

/* ── FADE IN ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  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.32s; }
.reveal-delay-4 { transition-delay: 0.45s; }

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--rule); }

.nav-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--charcoal); }

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  padding-top: 160px;
  padding-bottom: 96px;
  border-top: none;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: block;
}

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: 1.12;
  color: var(--charcoal);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-body {
  max-width: 600px;
}

.hero-body p {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: 18px;
}
.hero-body p:last-child { margin-bottom: 0; }

.hero-meta {
  margin-top: 40px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SECTION HEADINGS ─────────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
  display: block;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 20px;
}

p {
  color: var(--ink);
  margin-bottom: 20px;
  font-size: 0.97rem;
}
p:last-child { margin-bottom: 0; }

/* ── PROJECTS ─────────────────────────────────────────────── */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-card {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
}
.project-card:first-child { border-top: 1px solid var(--rule); }

.project-index {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--rule);
  line-height: 1;
  padding-top: 4px;
}

.project-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.2;
}

.project-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(184, 99, 58, 0.1);
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.project-body {
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.8;
  margin: 0;
}

/* ── HOW I THINK ──────────────────────────────────────────── */
.thinking-intro {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.85;
  margin-bottom: 40px;
}

.theme-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.theme-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.93rem;
  color: var(--ink);
}
.theme-item:first-child { border-top: 1px solid var(--rule); }

.theme-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

.linkedin-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.linkedin-cta:hover { color: var(--accent); border-color: var(--accent); }

/* ── CONTACT ──────────────────────────────────────────────── */
#contact { padding-bottom: 100px; }

.contact-statement {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--charcoal);
  margin-bottom: 48px;
  font-style: italic;
  max-width: 560px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background 0.2s;
}
.contact-row:first-child { border-top: 1px solid var(--rule); }
.contact-row:hover .contact-arrow { transform: translateX(6px); color: var(--accent); }

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 0.95rem;
  color: var(--charcoal);
}
.contact-arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  padding: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer span {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 18px 20px; }
  .nav-links { gap: 20px; }
  .container { padding: 0 20px; }
  #hero { padding-top: 120px; }
  section { padding: 60px 0; }

  .project-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .project-index { font-size: 1.6rem; }

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px 20px;
  }

  .contact-row {
    flex-wrap: wrap;
    gap: 4px;
  }
}
