/* Znith — design tokens */
:root {
  --ink: #0A0A0A;
  --paper: #FAFAF7;
  --bone: #F2EFE7;
  --mist: #E8E4DA;
  --electric: #2C5FFF;
  --line: rgba(0, 0, 0, 0.09);
  --muted: rgba(0, 0, 0, 0.6);
  --softer: rgba(0, 0, 0, 0.45);
  --success: #2CC07D;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--softer);
}

.accent {
  color: var(--electric);
}

/* Wordmark */
.wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.wordmark .dot {
  color: var(--electric);
  margin-left: 1px;
}

/* Pills / CTAs */
.pill {
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}

.pill--dark {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.pill--dark:hover {
  background: #222;
  border-color: #222;
}

.pill--outline {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.pill--outline:hover {
  border-color: rgba(0, 0, 0, 0.35);
}

.pill--sm {
  padding: 8px 14px;
  font-size: 12px;
}

.pill--md {
  padding: 13px 20px;
  font-size: 14px;
}

.pill--lg {
  padding: 14px 22px;
  font-size: 14px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.nav__links a {
  transition: color 0.18s;
}

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

.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 20px;
  padding: 8px;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 110px 0 120px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-weight: 600;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 20px 0 0;
  max-width: 920px;
  text-wrap: balance;
}

.hero__sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 640px;
  margin-top: 28px;
  text-wrap: pretty;
}

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

.hero__tag {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--softer);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__tag .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
}

/* ── What we do ── */
.what {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.what__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
}

.what h2 {
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.035em;
  margin-top: 14px;
  line-height: 1.1;
}

.row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.18s;
}

.row:last-child {
  border-bottom: 1px solid var(--line);
}

.row:hover {
  background: rgba(44, 95, 255, 0.03);
}

.row__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--softer);
  letter-spacing: 0.1em;
  transition: color 0.18s;
}

.row:hover .row__num,
.row:hover .row__arrow {
  color: var(--electric);
}

.row__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.row__body {
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 560px;
  line-height: 1.55;
}

.row__arrow {
  font-size: 18px;
  color: var(--softer);
  transition: transform 0.18s, color 0.18s;
}

.row:hover .row__arrow {
  transform: translateX(4px);
}

/* ── Approach ── */
.approach {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bone);
}

.approach h2 {
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 48px);
  letter-spacing: -0.04em;
  margin: 14px 0 56px;
  line-height: 1.05;
  max-width: 780px;
}

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

.phase {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 22px;
  min-height: 200px;
}

.phase__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--electric);
}

.phase__title {
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 10px;
  font-size: 24px;
  color: rgb(12, 12, 12);
}

.phase__body {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.55;
}

/* ── Targets (cases) ── */
.targets {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.targets__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 16px;
}

.targets h2 {
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: -0.035em;
  margin-top: 12px;
  line-height: 1.05;
}

.targets__note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--softer);
  letter-spacing: 0.12em;
  max-width: 260px;
  text-align: right;
  line-height: 1.5;
}

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

.target {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px 22px;
  background: var(--paper);
  cursor: pointer;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.22s, border-color 0.22s;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.target:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(44, 95, 255, 0.3);
}

.target__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--softer);
}

.target__metric {
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-top: 18px;
  color: var(--ink);
  transition: color 0.22s;
}

.target:hover .target__metric {
  color: var(--electric);
}

.target__outcome {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 8px;
  line-height: 1.3;
}

.target__body {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.55;
}

/* ── Who we work with (dark band) ── */
.who {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
  background: #0A0A0A;
  color: #FAFAF7;
}

.who__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.who__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.who h2 {
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 48px);
  letter-spacing: -0.04em;
  margin-top: 14px;
  line-height: 1.05;
}

.who__lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-top: 20px;
  max-width: 420px;
}

.who__list {
  display: flex;
  flex-direction: column;
}

.who__item {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.who__item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.who__item h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.who__item p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

/* ── CTA ── */
.cta {
  padding: 120px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.cta h2 {
  font-weight: 600;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -0.045em;
  margin: 16px auto 0;
  line-height: 1.02;
  max-width: 820px;
  text-wrap: balance;
}

.cta__buttons {
  margin-top: 36px;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Footer ── */
.footer {
  background: #0A0A0A;
  color: #FAFAF7;
  padding: 56px 0 32px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 14px;
}

.footer__cols {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__col a {
  color: #FAFAF7;
  transition: opacity 0.18s;
}

.footer__col a:hover {
  opacity: 0.7;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
}

/* ── Contact drawer ── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  z-index: 100;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 92vw);
  background: var(--paper);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.drawer__close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--muted);
  padding: 4px;
  transition: color 0.18s;
}

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

.drawer h3 {
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.035em;
  margin: 10px 0 8px;
  line-height: 1.1;
}

.drawer__lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 28px;
}

.drawer__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--softer);
}

.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  padding: 12px 0 10px;
  border: none;
  border-bottom: 1px solid var(--line);
  outline: none;
  width: 100%;
  background: transparent;
  transition: border-color 0.18s;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--electric);
}

.drawer__submit {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s;
}

.drawer__submit:hover {
  background: #222;
}

.drawer__success {
  padding: 60px 0;
  text-align: left;
  display: none;
}

.drawer__success.is-visible {
  display: block;
}

.drawer__form.is-hidden,
.drawer__intro.is-hidden {
  display: none;
}

.drawer__error {
  font-size: 13px;
  color: #B42318;
  min-height: 1.3em;
  line-height: 1.4;
}

.drawer__error:empty {
  display: none;
}

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

.drawer__submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.drawer__success .eyebrow {
  color: var(--electric);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .what__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .approach__grid,
  .targets__grid {
    grid-template-columns: 1fr;
  }

  .who__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .targets__note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 16px;
    align-items: flex-start;
  }

  .hero {
    padding: 80px 0 96px;
  }

  .hero__tag {
    display: none;
  }

  .what,
  .approach,
  .targets,
  .who {
    padding: 72px 0;
  }

  .cta {
    padding: 96px 0;
  }

  .row {
    grid-template-columns: 36px 1fr auto;
    gap: 16px;
  }

  .row__title {
    font-size: 20px;
  }
}
