:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --ink: #0a0a0a;
  --ink-muted: #525252;
  --border: #e5e5e5;
  --shadow: 0 12px 40px rgba(10, 10, 10, 0.06);
  --radius: 16px;
  --max: 1120px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.03);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links .btn-primary {
  color: #fff;
}

.nav-links .btn-primary:hover {
  color: #fff;
}

.nav-links .nav-cta {
  margin-left: 0.25rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 560;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #262626;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100svh - 4.25rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(10, 10, 10, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 70%, rgba(10, 10, 10, 0.045), transparent 50%),
    linear-gradient(180deg, #fafafa 0%, #ffffff 55%, #ffffff 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  padding: 4.5rem 0 5.5rem;
  max-width: 40rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 9vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-brand em {
  font-style: normal;
  display: block;
  font-weight: 600;
  font-size: 0.32em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.65rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-inner > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.18s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.3s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.42s; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Inner page head —— */
.page-head {
  padding: 4.25rem 0 1.5rem;
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.page-head .lede {
  color: var(--ink-muted);
  font-size: 1.125rem;
  max-width: 36rem;
}

/* —— Sections —— */
section {
  padding: 5rem 0;
}

.page-head + section,
.page-section {
  padding: 2.5rem 0 5rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.section-soft {
  background: var(--bg-soft);
}

.text-link {
  display: inline-flex;
  margin-top: 1.5rem;
  font-weight: 560;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.1rem;
}

.text-link:hover {
  opacity: 0.7;
}

/* —— Cards —— */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.stack-sm {
  margin-top: 1.5rem;
}

.stack-md {
  margin-top: 3rem;
}

.stack-lg {
  margin-top: 3.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.65rem;
  box-shadow: var(--shadow);
}

.card-step {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--ink-muted);
  font-size: 0.9875rem;
}

/* —— Metrics —— */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.metric {
  text-align: left;
}

.metric-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.metric h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
  margin: 0;
}

/* —— Name grid (partners) —— */
.name-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.name-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  background: var(--bg);
}

.name-tile p {
  font-weight: 560;
  margin-bottom: 0.25rem;
}

.name-tile span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* —— Prose —— */
.prose {
  max-width: 40rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin: 2.25rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-muted);
  font-size: 1.0625rem;
  margin-bottom: 0.9rem;
}

.prose a:not(.btn) {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.prose ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.cta-panel--narrow {
  max-width: 40rem;
  margin-top: 2rem;
}

.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.draft-note {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 560;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 1rem;
}

/* —— Forms —— */
.form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 560;
}

.form input,
.form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
}

.form input:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-status {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.contact-list span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* —— CTA band —— */
.cta-band {
  padding: 4.5rem 0;
}

.cta-panel {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2rem, 5vw, 3.25rem);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(10, 10, 10, 0.05), transparent 55%),
    var(--bg);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.cta-panel p {
  color: var(--ink-muted);
  max-width: 28rem;
}

.cta-panel .btn-group {
  margin-top: 1.25rem;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.15rem;
  font-size: 0.9375rem;
  font-weight: 560;
}

.cta-links a {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.1rem;
}

.cta-links a:hover {
  opacity: 0.7;
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.footer-brand + p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  max-width: 18rem;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer a {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

/* —— Responsive —— */
@media (max-width: 1020px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .card-grid--3,
  .card-grid--2,
  .name-grid,
  .prose-grid,
  .contact-split {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links > li:last-child {
    border-bottom: none;
    padding-top: 1rem;
  }

  .nav-links .nav-cta {
    margin-left: 0;
  }

  .hero-inner {
    padding: 3.25rem 0 4rem;
  }
}

@media (max-width: 640px) {
  .metric-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }
}

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

  .hero-inner > *,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
