/* ---------- Design tokens ---------- */
:root {
  --bg: #eef2f1;
  --bg-alt: #d6e2df;
  --surface: #f8fbfa;
  --text: #1c2624;
  --text-muted: #4f5f5b;
  --border: #c4d2cf;
  --accent: #2b6e8f;
  --accent-soft: #cfe3ea;
  --accent-2: #2f7a5a;
  --dark-bg: #1f2a2b;
  --dark-surface: #29373a;
  --dark-text: #eef4f2;
  --dark-text-muted: #b6c5c1;
  --shadow: 0 10px 32px rgba(20, 30, 28, 0.12);
  --radius: 18px;
  --maxw: 880px;
  --font-head: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161d1e;
    --bg-alt: #1c2426;
    --surface: #212b2d;
    --text: #eef4f2;
    --text-muted: #a9b8b4;
    --border: #33403f;
    --accent: #5aa8cc;
    --accent-soft: #253842;
    --accent-2: #63b592;
    --dark-bg: #0e1415;
    --dark-surface: #171f20;
    --dark-text: #eef4f2;
    --dark-text-muted: #a9b8b4;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --bg: #161d1e;
  --bg-alt: #1c2426;
  --surface: #212b2d;
  --text: #eef4f2;
  --text-muted: #a9b8b4;
  --border: #33403f;
  --accent: #5aa8cc;
  --accent-soft: #253842;
  --accent-2: #63b592;
  --dark-bg: #0e1415;
  --dark-surface: #171f20;
  --dark-text: #eef4f2;
  --dark-text-muted: #a9b8b4;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; color: var(--text); }
a { color: var(--accent); text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background motion ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  will-change: transform;
}
.blob-1 {
  width: 520px; height: 520px;
  background: var(--accent);
  opacity: 0.28;
  top: -140px; left: -120px;
  animation: float1 26s ease-in-out infinite;
}
.blob-2 {
  width: 460px; height: 460px;
  background: var(--accent-2);
  opacity: 0.22;
  bottom: -150px; right: -130px;
  animation: float2 32s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  z-index: 100;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; }

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 74%;
    max-width: 300px;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: transform 0.25s ease, opacity 0.25s 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); }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  margin-bottom: 22px;
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 54ch;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43, 110, 143, 0.3); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-photo-wrap {
  position: relative;
  justify-self: center;
}
.hero-photo-glow {
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 65%);
  border-radius: 50%;
  filter: blur(6px);
  z-index: 0;
}
.hero-photo {
  position: relative;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 4px solid var(--surface);
  z-index: 1;
}

@media (max-width: 720px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-photo-wrap { justify-self: start; }
  .hero-photo { width: 140px; height: 140px; }
}

/* ---------- Section shell ---------- */
section { padding: 76px 0; }
.section-head { margin-bottom: 36px; max-width: 60ch; }
.section-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.prose p { color: var(--text-muted); font-size: 1.04rem; max-width: 68ch; }
.prose p strong { color: var(--text); }

/* ---------- Timeline (The Arc) ---------- */
.timeline {
  position: relative;
  margin-top: 8px;
  padding-left: 36px;
}
.timeline-track {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-fill {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.15s linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .timeline-fill { transition: none; }
}
.timeline-item {
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}
.timeline-era {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.timeline-content p {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 14px;
}
.timeline-content p strong { color: var(--text); }
.timeline-stat {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
}

.timeline-throughline {
  margin-top: 44px;
  padding: 26px 30px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.timeline-throughline p {
  color: var(--text-muted);
  margin: 0;
  max-width: 68ch;
}
.timeline-throughline p strong { color: var(--text); }

/* ---------- Pull quote (Outside the Numbers) ---------- */
.pull-quote {
  margin: 40px 0 0;
  padding: 4px 0 4px 30px;
  border-left: 3px solid var(--accent);
  max-width: 66ch;
}
.pull-quote p {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 500;
}
.pull-quote p strong {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 560px) {
  .timeline { padding-left: 26px; }
  .timeline-marker { left: -26px; }
}

/* ---------- How I Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 12px;
}
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.work-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.work-icon svg { width: 18px; height: 18px; }
.work-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.work-card p { color: var(--text-muted); font-size: 0.97rem; margin: 0; }

/* ---------- Proof points ---------- */
.proof-grid {
  display: grid;
  gap: 20px;
  margin-top: 12px;
}
.proof-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.proof-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.proof-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.proof-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.proof-card p { color: var(--text-muted); margin: 0; }

/* ---------- Contact (bold dark close) ---------- */
.section-dark {
  background: var(--dark-bg);
  padding: 96px 0;
}
.section-dark .section-eyebrow { color: var(--accent); }
.section-dark h2 { color: var(--dark-text); }
.contact-card {
  background: var(--dark-surface);
  border: 1px solid rgba(246, 236, 219, 0.1);
  border-radius: var(--radius);
  padding: 44px;
  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.contact-card h2 { color: var(--dark-text); }
.contact-links {
  display: flex;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.contact-location {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--dark-text-muted);
}
.section-dark .btn-ghost {
  color: var(--dark-text);
  border-color: rgba(246, 236, 219, 0.25);
}
.section-dark .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

footer {
  background: var(--dark-bg);
  padding: 32px 0 60px;
  color: var(--dark-text-muted);
  font-size: 0.9rem;
}
