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

:root {
  --bg:           #F7F8FA;
  --text:         #111827;
  --text-muted:   #6B7485;
  --accent:       #1D4ED8;
  --accent-dark:  #1A44BE;
  --accent-light: #EEF3FF;
  --white:        #FFFFFF;
  --shadow:       0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
  --radius:       8px;
  --max-w:        1120px;
  --gap:          24px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ── CONTAINER ───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ── FOCUS ───────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin: -6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    align-items: flex-start;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 24px; width: 100%; }
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.12);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 88px;
}

.hero-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.06em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  font-style: italic;
  color: var(--text);
  max-width: 600px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.hero-bio {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 480px) {
  .hero { padding: 60px 0 52px; }
  .hero-tagline { font-size: 1.0625rem; }
}

/* ── WORK SECTIONS ───────────────────────────────────────────────────────── */
.work-section {
  padding: 80px 0 0;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 52px;
}

.section-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 0.85;
  color: var(--accent);
  opacity: 0.15;
  flex-shrink: 0;
  margin-top: -6px;
  user-select: none;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.section-subtitle {
  margin-top: 6px;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ── CARDS ───────────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  gap: var(--gap);
  padding-bottom: 40px;
}

.cards-2col { grid-template-columns: repeat(2, 1fr); }
.cards-3col { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .cards-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards-2col,
  .cards-3col { grid-template-columns: 1fr; }
  .cards-grid { padding-bottom: 28px; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-eyebrow {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1.35;
}

/* Metric highlight — draws the eye to the big wins */
.metric {
  color: var(--accent);
  font-weight: 700;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}

.card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.image-placeholder {
  background: var(--accent-light);
  border: 1.5px dashed rgba(29, 78, 216, 0.22);
  border-radius: 6px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
  flex-shrink: 0;
}

.image-placeholder span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  letter-spacing: 0.01em;
}

.card-figure {
  margin: 4px 0;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.card-image:hover { opacity: 0.88; }

.card-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
  font-style: italic;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 6px;
  object-fit: contain;
}

/* About headshot */
.about-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .about-layout { flex-direction: column; gap: 24px; }
  .about-headshot { width: 120px; height: 120px; }
}

.card-inline-quote {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.5;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 2px solid var(--accent-light);
}

.card-artifact {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.artifact-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  transition: letter-spacing 0.18s;
}
.artifact-link:hover { letter-spacing: 0.01em; }
.artifact-link.muted { color: var(--text-muted); font-weight: 400; }

/* ── SPOTIFY PULL QUOTE ──────────────────────────────────────────────────── */
.pull-quote-panel {
  background: var(--text);
  padding: 58px 24px;
  text-align: center;
}

.pull-quote-panel blockquote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  letter-spacing: -0.025em;
  max-width: 820px;
  margin: 0 auto;
}

.pull-quote-panel blockquote em {
  color: rgba(255,255,255,0.45);
}

.br-desktop { display: block; }
@media (max-width: 600px) {
  .pull-quote-panel { padding: 40px 24px; }
  .br-desktop { display: none; }
}

/* ── HOW I WORK ──────────────────────────────────────────────────────────── */
.tools-section {
  padding: 80px 0;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.tools-heading {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.tools-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.tool {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: #EDEFF3;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 999px;
  padding: 7px 15px;
  transition: background 0.18s, color 0.18s;
}
.tool:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.tools-tagline {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ── ABOUT ───────────────────────────────────────────────────────────────── */
.about-section {
  padding: 80px 0;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.about-heading {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.about-body {
  max-width: 640px;
}

.about-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ── METRICS BAND ────────────────────────────────────────────────────────── */
.metrics-band {
  border-top: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 52px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.metric-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric-value {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--accent);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 300px;
}

@media (max-width: 720px) {
  .metrics-grid { grid-template-columns: 1fr; gap: 28px; }
  .metrics-band { padding: 40px 0; }
}

/* ── BROWSER FRAME ───────────────────────────────────────────────────────── */
.browser-frame {
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #F1F2F5;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0,0,0,0.16);
  flex-shrink: 0;
}

.browser-url {
  margin-left: 8px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.browser-frame .card-image {
  border-radius: 0;
  height: 200px;
}

/* ── SCROLL REVEAL ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
