/* Variant A — clean minimal.
   Visual system per landing-page-design PART B:
   one typeface (Manrope; Geist Mono for numbers only), named text styles,
   spacing/radius from the fixed tables, flat approved dark surfaces,
   one text gradient (hero heading only), base-curve motion. */

:root {
  /* Dark backgrounds — approved values only */
  --bg-0: #000000;
  --bg-1: #181818;
  --bg-2: #1F1F1F;
  --bg-3: #272727;
  --bg-4: #313131;

  /* Text */
  --text-hi: #ffffff;
  --text-body: rgba(255, 255, 255, 0.72);
  --text-mute: rgba(255, 255, 255, 0.48);
  --text-tag: rgba(255, 255, 255, 0.3);

  --border: #272727;
  --border-hi: #313131;

  /* Motion — B7 base curve */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-move: 500ms;
  --dur-fade: 300ms;

  /* Type — one family + mono for numbers */
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  /* Radius — Tailwind scale only */
  --radius-btn: 12px;   /* xl */
  --radius-card: 16px;  /* 2xl */

  --container: 1200px;
  --measure: 680px;
}

/* ---------- Named text styles (B1) ---------- */

.heading-1 { font-size: 3.75rem; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }         /* text-6xl 60/60 */
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; }    /* text-4xl 36/40 */
.heading-4 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em; }  /* text-3xl 30/36 */
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }                            /* text-xl 20/28 */
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }                              /* text-xl 20/28 */
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }                             /* text-lg 18/28 */
.body-1 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }                                   /* text-base 16/24 */
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }                                   /* text-base 16/24 */
.button-md { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }                                /* text-base 16/24 */
.button-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }                           /* text-sm 14/20 */
.caption-3 { font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.08em; }       /* text-xs 12/16 */
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; letter-spacing: 0.04em; }       /* text-xs 12/16 */
.caption-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 400; }                               /* text-xs 12/16 */

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p { margin: 0; }

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

img, svg { display: block; }

::selection { background: var(--text-hi); color: var(--bg-0); }

:focus-visible {
  outline: 2px solid var(--text-hi);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px; /* Spacing-300 */
}

.measure { max-width: var(--measure); }

/* ---------- Skip link ---------- */

.skip-link {
  position: fixed;
  top: 12px; /* Spacing-100 */
  left: 12px;
  z-index: 100;
  padding: 8px 12px; /* Spacing-75 / Spacing-100 */
  background: var(--text-hi);
  color: var(--bg-0);
  border-radius: var(--radius-btn);
  transform: translateY(-200%);
  transition: transform var(--dur-move) var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Floating nav (B7) ---------- */

.nav {
  position: fixed;
  top: 16px; /* Spacing-200 */
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px; /* Spacing-300 */
  padding: 8px 12px; /* Spacing-75 / Spacing-100 */
  background: rgba(24, 24, 24, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: max-content;
  max-width: calc(100vw - 32px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px; /* Spacing-75 */
  padding: 4px 8px; /* Spacing-50 / Spacing-75 */
  color: var(--text-hi);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px; /* Spacing-75 */
}

.nav-link {
  padding: 4px 8px; /* Spacing-50 / Spacing-75 */
  border-radius: 8px; /* Spacing-75 radius lg */
  color: var(--text-mute);
  transition: color var(--dur-fade) var(--ease), background-color var(--dur-fade) var(--ease);
}

.nav-link:hover { color: var(--text-hi); background: var(--bg-2); }
.nav-link:active { transform: translateY(1px); }

.nav-cta {
  padding: 8px 12px; /* Spacing-75 / Spacing-100 */
  background: var(--text-hi);
  color: var(--bg-0);
  border-radius: 999px;
  transition: transform var(--dur-fade) var(--ease), opacity var(--dur-fade) var(--ease);
}

.nav-cta:hover { opacity: 0.85; }
.nav-cta:active { transform: scale(0.98); }

/* Toggle — animated open/close icon */
.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color var(--dur-fade) var(--ease);
}

.nav-toggle:hover { background: var(--bg-2); }
.nav-toggle:active { transform: scale(0.98); }

.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--text-hi);
  transition: transform var(--dur-move) var(--ease);
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 23px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu — full height panel, staggered links */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px; /* Spacing-200 */
  padding: 96px 24px 48px; /* Spacing-600 / Spacing-300 / Spacing-600 */
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-move) var(--ease), visibility 0s linear var(--dur-move);
}

.menu.open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-move) var(--ease);
}

.menu a {
  color: var(--text-hi);
  transform: translateY(24px); /* Spacing-300 */
  opacity: 0;
  transition: transform var(--dur-move) var(--ease), opacity var(--dur-move) var(--ease);
}

.menu.open a {
  transform: translateY(0);
  opacity: 1;
}

/* 60ms per item, sequence capped at 400ms */
.menu.open a:nth-child(1) { transition-delay: 0ms; }
.menu.open a:nth-child(2) { transition-delay: 55ms; }
.menu.open a:nth-child(3) { transition-delay: 110ms; }
.menu.open a:nth-child(4) { transition-delay: 165ms; }
.menu.open a:nth-child(5) { transition-delay: 220ms; }
.menu.open a:nth-child(6) { transition-delay: 275ms; }
.menu.open a:nth-child(7) { transition-delay: 330ms; }
.menu.open a:nth-child(8) { transition-delay: 340ms; }

.menu-link { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em; } /* text-3xl */
.menu-meta { color: var(--text-mute); }

/* ---------- Hero ---------- */

.hero {
  padding-top: 96px; /* Spacing-900 — clears the fixed nav */
  padding-bottom: 96px; /* Spacing-900 */
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Spacing-75 */
  color: var(--text-mute);
}

.eyebrow::before {
  content: "";
  width: 8px; /* Spacing-75 */
  height: 8px;
  border-radius: 999px;
  background: var(--text-hi);
}

.hero h1 {
  margin-top: 24px; /* Spacing-300 */
  color: var(--text-hi);
  /* B5: the one permitted gradient — heading text only */
  background-image: linear-gradient(90deg, #ffffff, #9b9b9b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 24px; /* Spacing-300 */
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px; /* Spacing-200 */
  margin-top: 32px; /* Spacing-400 */
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Spacing-75 */
  padding: 8px 12px; /* Spacing-75 / Spacing-100 */
  background: var(--text-hi);
  color: var(--bg-0);
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform var(--dur-fade) var(--ease), opacity var(--dur-fade) var(--ease);
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:active { transform: scale(0.98); }

.btn-primary svg { width: 18px; height: 18px; }

.hero-proof {
  margin-top: 24px; /* Spacing-300 */
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* ---------- Sections ---------- */

.section { padding-block: 96px; } /* Spacing-900 */

.section-head { max-width: var(--measure); }

.section-title {
  margin-top: 16px; /* Spacing-200 */
  color: var(--text-hi);
  text-wrap: balance;
}

.section-lede {
  margin-top: 16px; /* Spacing-200 */
  text-wrap: pretty;
}

/* ---------- Tagline reveal (B11) ---------- */

.tagline {
  padding-block: 96px; /* Spacing-900 */
}

.tagline-text {
  color: var(--text-hi);
  text-wrap: balance;
}

.tagline-text .word {
  opacity: var(--text-tag-opacity, 1);
  transition: opacity var(--dur-move) var(--ease);
}

.js .tagline-text .word { --text-tag-opacity: 0.3; }
.js .tagline-text .word.on { --text-tag-opacity: 1; }

/* ---------- Proof strip ---------- */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px; /* Spacing-400 */
  margin-top: 48px; /* Spacing-600 */
}

.proof-item {
  display: block;
  padding-top: 16px; /* Spacing-200 */
  border-top: 1px solid var(--border-hi);
  transition: border-color var(--dur-fade) var(--ease);
}

.proof-item:hover { border-top-color: var(--text-hi); }

.proof-number {
  color: var(--text-hi);
  font-family: var(--font-mono);
}

.proof-label {
  display: block;
  margin-top: 8px; /* Spacing-75 */
  color: var(--text-mute);
  text-wrap: pretty;
}

.proof-item:hover .proof-label { color: var(--text-body); }

.proof-note {
  margin-top: 32px; /* Spacing-400 */
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* ---------- How I work ---------- */

.work-list {
  display: grid;
  gap: 32px; /* Spacing-400 */
  margin-top: 48px; /* Spacing-600 */
}

.work-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px; /* Spacing-200 */
  align-items: start;
}

.work-item svg {
  width: 24px;
  height: 24px;
  margin-top: 0; /* optical: icon aligns with first text line via line-height */
  color: var(--text-hi);
}

.work-item p { text-wrap: pretty; }

.work-item strong { color: var(--text-hi); }

/* ---------- Selected work ---------- */

.card-stack {
  display: grid;
  gap: 16px; /* Spacing-200 */
  margin-top: 48px; /* Spacing-600 */
}

.card {
  display: block;
  padding: 24px; /* Spacing-300 */
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: background-color var(--dur-fade) var(--ease), transform var(--dur-move) var(--ease), border-color var(--dur-fade) var(--ease);
}

.card:hover {
  background: var(--bg-2);
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.card:active { transform: translateY(0) scale(0.99); }

.card-top {
  display: flex;
  align-items: center;
  gap: 12px; /* Spacing-100 */
}

.card-badge {
  padding: 4px 8px; /* Spacing-50 / Spacing-75 */
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  color: var(--text-body);
}

.card-name { color: var(--text-hi); }

.card-arrow {
  margin-left: auto;
  width: 20px;
  height: 20px;
  color: var(--text-mute);
  transition: transform var(--dur-move) var(--ease), color var(--dur-fade) var(--ease);
}

.card:hover .card-arrow { transform: translate(2px, -2px); color: var(--text-hi); }

.card-desc {
  margin-top: 8px; /* Spacing-75 */
  max-width: 60ch;
  text-wrap: pretty;
}

.also {
  margin-top: 32px; /* Spacing-400 */
  color: var(--text-mute);
  text-wrap: pretty;
}

.also a {
  color: var(--text-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fade) var(--ease);
}

.also a:hover { color: var(--text-hi); }

/* ---------- Timeline ---------- */

.timeline {
  display: grid;
  gap: 32px; /* Spacing-400 */
  margin-top: 48px; /* Spacing-600 */
}

.era {
  display: grid;
  grid-template-columns: 96px 1fr; /* Spacing-900 */
  gap: 24px; /* Spacing-300 */
  padding-top: 24px; /* Spacing-300 */
  border-top: 1px solid var(--border);
}

.era-year {
  color: var(--text-mute);
  font-family: var(--font-mono);
}

.era-title { color: var(--text-hi); }

.era-body {
  margin-top: 8px; /* Spacing-75 */
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---------- Now ---------- */

.now-list {
  display: grid;
  gap: 16px; /* Spacing-200 */
  margin-top: 48px; /* Spacing-600 */
}

.now-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px; /* Spacing-200 */
  align-items: baseline;
  padding: 16px; /* Spacing-200 */
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.now-tag {
  color: var(--text-mute);
  font-family: var(--font-mono);
}

.now-item p { text-wrap: pretty; }

.now-item a {
  color: var(--text-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--dur-fade) var(--ease);
}

.now-item a:hover { opacity: 0.8; }

.now-stamp {
  margin-top: 24px; /* Spacing-300 */
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 32px; /* Spacing-400 */
  margin-top: 48px; /* Spacing-600 */
  max-width: var(--measure);
}

.faq-q { color: var(--text-hi); text-wrap: balance; }

.faq-a {
  margin-top: 8px; /* Spacing-75 */
  text-wrap: pretty;
}

/* ---------- Contact / footer ---------- */

.contact { padding-bottom: 96px; } /* Spacing-900 */

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px; /* Spacing-200 */
  margin-top: 32px; /* Spacing-400 */
}

.link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Spacing-75 */
  padding: 8px 12px; /* Spacing-75 / Spacing-100 */
  color: var(--text-hi);
  border-radius: var(--radius-btn);
  transition: background-color var(--dur-fade) var(--ease);
}

.link-secondary:hover { background: var(--bg-2); }
.link-secondary:active { transform: translateY(1px); }
.link-secondary svg { width: 18px; height: 18px; color: var(--text-mute); }

.footer {
  border-top: 1px solid var(--border);
  padding-block: 32px; /* Spacing-400 */
}

.footer-meta {
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* ---------- Scroll reveals (B7) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(32px); /* Spacing-400 */
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion: swap movement for plain fades ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .tagline-text .word {
    opacity: 1;
    transition: none;
  }

  .menu, .menu a, .nav-toggle span, .card, .card-arrow, .btn-primary, .skip-link {
    transition-duration: 1ms;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .hero { padding-top: 80px; } /* Spacing-800 */
  .hero h1 { font-size: 3rem; line-height: 1; } /* text-5xl 48/48 */
  .heading-3 { font-size: 1.875rem; line-height: 2.25rem; } /* text-3xl 30/36 */

  .section { padding-block: 64px; } /* Spacing-700 */
  .tagline { padding-block: 64px; } /* Spacing-700 */

  .era { grid-template-columns: 1fr; gap: 8px; } /* Spacing-75 */
  .now-item { grid-template-columns: 1fr; gap: 8px; } /* Spacing-75 */
  .work-item { grid-template-columns: 24px 1fr; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.25rem; line-height: 2.5rem; } /* text-3xl 36/40 — keeps the fixed line breaks inside 390px */
}

@media (max-width: 390px) {
  .container { padding-inline: 16px; } /* Spacing-200 */
  .proof-grid { grid-template-columns: 1fr; gap: 24px; } /* Spacing-300 */
}
