:root {
  --ink: #0b1020;
  --ink-soft: #151c33;
  --ink-line: #232c4a;
  --paper: #ffffff;
  --paper-tint: #f5f6fa;
  --text: #1c2238;
  --text-muted: #5a6280;
  --text-invert: #eef0f7;
  --text-invert-muted: #a4abc4;
  --accent: #4f46e5;
  --accent-soft: #6d66f0;
  --accent-wash: #eef0fe;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1140px;
  --step: clamp(64px, 8vw, 116px);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.16rem; font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img, svg { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  background: var(--paper);
  color: var(--accent);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.site-header.is-stuck {
  border-bottom-color: var(--ink-line);
  background: rgba(11, 16, 32, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-invert);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), var(--accent-soft));
  color: #fff;
}

.brand-mark svg { width: 20px; height: 20px; }

.brand-text {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-text span { color: var(--accent-soft); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-invert-muted);
  transition: color 0.18s;
}

.nav-list a:hover { color: var(--text-invert); }
.nav-list .btn { color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.5px;
  background: var(--text-invert);
  transform: translateX(-50%);
  transition: transform 0.22s, opacity 0.22s;
}

.nav-toggle .bar { top: 50%; margin-top: -0.75px; }
.nav-toggle .bar::before { content: ""; top: -6px; }
.nav-toggle .bar::after { content: ""; top: 6px; }

.nav-toggle[aria-expanded="true"] .bar { transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::before { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-90deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s, transform 0.18s, border-color 0.18s;
}

.btn:hover { background: var(--accent-soft); transform: translateY(-1px); }

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-invert);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-invert);
  padding-block: clamp(80px, 12vw, 150px) clamp(76px, 10vw, 130px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

.hero::before {
  width: 460px; height: 460px;
  top: -170px; right: -120px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.75), transparent 70%);
}

.hero::after {
  width: 380px; height: 380px;
  bottom: -190px; left: -110px;
  background: radial-gradient(circle, rgba(109, 102, 240, 0.45), transparent 70%);
}

.hero-inner { position: relative; max-width: 830px; }

.hero .lede {
  margin-top: 1.35rem;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  color: var(--text-invert-muted);
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.1rem;
}

.standards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 3.2rem 0 0;
  padding: 0;
  list-style: none;
}

.standards li {
  padding: 6px 14px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  font-size: 0.815rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-invert-muted);
  background: rgba(255, 255, 255, 0.03);
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  text-align: center;
}

.error-page .hero-inner { margin-inline: auto; }
.error-page .lede { margin-inline: auto; }
.error-page .hero-actions { justify-content: center; }

/* ---------- sections ---------- */

.section { padding-block: var(--step); }
.section-alt { background: var(--paper-tint); }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(38px, 5vw, 58px);
}

.section-lede {
  margin-top: 1rem;
  font-size: 1.075rem;
  color: var(--text-muted);
}

/* ---------- cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

.card {
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid #e5e7f0;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #d3d7e8;
  box-shadow: 0 14px 34px rgba(15, 22, 45, 0.08);
}

a.work-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.965rem; }

/* ---------- split ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}

.split-text p { color: var(--text-muted); }
.split-text h2 { margin-bottom: 1.2rem; }

.channel-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  border: 1px solid #e2e5f0;
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.channel-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 22px;
  border-bottom: 1px solid #edeff6;
}

.channel-list li:last-child { border-bottom: 0; }

.channel-name { font-weight: 600; }

.channel-note {
  font-size: 0.87rem;
  color: var(--text-muted);
  text-align: right;
}

.output-note {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--accent-wash);
  border: 1px solid #dcdcfb;
}

.output-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #302a9e;
}

.output-note p:last-child {
  font-size: 0.95rem;
  color: #4a4790;
}

/* ---------- timeline ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: phase;
}

.timeline li {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: var(--radius);
  background: var(--paper-tint);
  border: 1px solid #e5e7f0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0; left: 26px; right: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.phase {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.timeline h3 { margin-bottom: 0.55rem; }
.timeline p:last-child { color: var(--text-muted); font-size: 0.965rem; }

/* ---------- callout ---------- */

.callout {
  margin-top: 24px;
  padding: 30px 32px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--text-invert);
}

.callout h3 { margin-bottom: 0.65rem; }
.callout p { color: var(--text-invert-muted); max-width: 74ch; }
.callout strong { color: var(--text-invert); font-weight: 600; }

/* ---------- cta ---------- */

.cta {
  background: var(--ink);
  color: var(--text-invert);
}

.cta-inner { max-width: 68ch; }
.cta-inner h2 { margin-bottom: 1.15rem; }
.cta-inner > p { color: var(--text-invert-muted); font-size: 1.06rem; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.cta-note {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: var(--text-invert-muted);
}

.cta-note a {
  color: var(--text-invert);
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.cta-note a:hover { text-decoration-color: currentColor; }

/* ---------- discovery form ---------- */

.discovery-form {
  margin-top: 2rem;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-invert);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(11, 16, 32, 0.55);
  color: var(--text-invert);
  font: inherit;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(238, 240, 247, 0.45);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(109, 102, 240, 0.25);
}

.field textarea {
  resize: vertical;
  min-height: 132px;
}

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-recaptcha {
  margin-top: 4px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.5rem;
}

.form-actions .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.925rem;
  min-height: 1.4em;
}

.form-status.is-success { color: #86efac; }
.form-status.is-error { color: #fca5a5; }
.form-status.is-warn { color: #fde68a; }

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

.site-footer {
  background: var(--ink-soft);
  color: var(--text-invert-muted);
  padding-block: 52px 34px;
  border-top: 1px solid var(--ink-line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px 48px;
}

.footer-brand .brand-text { color: var(--text-invert); display: block; margin-bottom: 0.7rem; }
.footer-brand p { font-size: 0.94rem; max-width: 42ch; }

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.18s;
}

.footer-nav a:hover { color: var(--text-invert); }

.copyright {
  grid-column: 1 / -1;
  padding-top: 26px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.865rem;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .split, .footer-inner { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: rgba(11, 16, 32, 0.98);
    border-bottom: 1px solid var(--ink-line);
    display: none;
  }

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

  .nav-list li { border-bottom: 1px solid var(--ink-line); }
  .nav-list li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav-list a { display: block; padding: 13px 2px; }
  .nav-list .btn { justify-content: center; padding: 12px 20px; }
}

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