:root {
  --bg: oklch(0.18 0.008 250);
  --bg-elev: oklch(0.21 0.009 250);
  --bg-soft: oklch(0.24 0.009 250);
  --line: oklch(0.32 0.01 250);
  --line-soft: oklch(0.26 0.009 250);
  --fg: oklch(0.96 0.005 90);
  --fg-dim: oklch(0.72 0.008 250);
  --fg-mute: oklch(0.55 0.01 250);
  --accent: oklch(0.82 0.16 75);
  --accent-dim: oklch(0.68 0.13 75);
  --display: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); font-family: var(--display); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-mute); }
.mono.accent { color: var(--accent); }

/* ===== Layout ===== */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ===== Nav ===== */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
nav.top.scrolled { border-bottom-color: var(--line-soft); }
nav.top .inner {
  max-width: 1320px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
nav.top .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
}
nav.top .brand .mark {
  width: 22px; height: 22px; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
nav.top .brand .mark::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
nav.top .brand .mark::after {
  content: ''; position: absolute;
  width: 6px; height: 6px; background: var(--bg); right: 4px; bottom: 4px;
}
nav.top .brand .dot { color: var(--accent); }
nav.top .links { display: flex; gap: 32px; align-items: center; }
nav.top .links a { font-size: 14px; color: var(--fg-dim); transition: color 0.2s; }
nav.top .links a:hover { color: var(--fg); }
nav.top .cta {
  border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s ease;
}
nav.top .cta:hover { border-color: var(--accent); color: var(--accent); }
nav.top .cta .arrow { transition: transform 0.2s ease; }
nav.top .cta:hover .arrow { transform: translate(2px, -2px); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; padding: 140px 0 80px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 50%, black 30%, transparent 80%);
  opacity: 0.55;
}
.hero-glow {
  position: absolute; z-index: 0;
  width: 600px; height: 600px; border-radius: 50%;
  right: -120px; top: 10%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-meta {
  display: flex; gap: 12px; align-items: center; margin-bottom: 36px;
}
.hero-meta .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 70%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 70%, transparent); }
  70% { box-shadow: 0 0 0 12px color-mix(in oklab, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 0%, transparent); }
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 8.5vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: 14ch;
  margin-bottom: 40px;
}
.hero h1 .em {
  font-style: italic; font-weight: 400; color: var(--accent);
  font-family: var(--display);
}
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.05em; }
.hero h1 .word > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero h1.in .word > span { transform: translateY(0); }

.hero-row {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end;
  margin-top: 24px;
}
.hero-lead {
  font-size: 18px; line-height: 1.55; color: var(--fg-dim); max-width: 48ch;
  text-wrap: pretty;
}
.hero-lead strong { color: var(--fg); font-weight: 500; }

.hero-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--accent); color: var(--bg);
  padding: 14px 22px; border-radius: 999px; border: none;
  font-family: var(--display); font-weight: 500; font-size: 15px; cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary:hover { background: oklch(0.88 0.16 75); transform: translateY(-1px); }
.btn-primary .arrow {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease;
}
.btn-primary:hover .arrow { transform: rotate(-45deg); }

.hero-stat {
  font-family: var(--mono); font-size: 12px; color: var(--fg-mute); display: flex; gap: 14px; align-items: center;
}
.hero-stat::before {
  content: ''; display: inline-block; width: 28px; height: 1px; background: var(--line);
}

/* Marquee tech strip */
.ticker {
  margin-top: 100px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
          mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.ticker-track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-item { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); display: inline-flex; gap: 14px; align-items: center; }
.ticker-item .dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Section frame ===== */
section.block { padding: 140px 0; position: relative; }
.section-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 80px; align-items: end;
}
.section-head .label { display: flex; align-items: center; gap: 12px; }
.section-head .label::before {
  content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 72px); line-height: 0.98; letter-spacing: -0.03em; font-weight: 500;
  max-width: 16ch; text-wrap: balance;
}
.section-head h2 .em { font-style: italic; font-weight: 400; color: var(--fg-dim); }

/* ===== Services ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-soft); }
.service {
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  padding: 40px 32px 36px;
  position: relative; cursor: default;
  transition: background 0.3s ease;
  min-height: 380px;
  display: flex; flex-direction: column;
}
.service:nth-child(3n) { border-right: none; }
.service:hover { background: var(--bg-elev); }
.service .num { font-family: var(--mono); font-size: 12px; color: var(--fg-mute); margin-bottom: 80px; }
.service h3 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 16px; }
.service p { color: var(--fg-dim); font-size: 15px; line-height: 1.55; max-width: 36ch; flex: 1; }
.service .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.service .tag {
  font-family: var(--mono); font-size: 11px; color: var(--fg-dim);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 10px;
  transition: all 0.2s;
}
.service:hover .tag { border-color: var(--line); color: var(--fg); }
.service .glyph {
  position: absolute; top: 36px; right: 32px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.service .glyph svg { width: 100%; height: 100%; }

/* ===== Differentiator banner ===== */
.banner {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 56px 0;
  overflow: hidden;
  position: relative;
}
.banner-track { display: flex; gap: 50px; white-space: nowrap; animation: ticker 50s linear infinite; }
.banner-item {
  font-size: clamp(40px, 6vw, 90px); font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  display: inline-flex; align-items: center; gap: 50px;
}
.banner-item .em { font-style: italic; color: var(--accent); font-weight: 400; }
.banner-item .sep {
  width: 12px; height: 12px; background: var(--accent); border-radius: 50%;
  display: inline-block;
}

/* ===== Process ===== */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.process-list { display: flex; flex-direction: column; }
.step {
  padding: 28px 0; border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 60px 1fr auto; gap: 24px; align-items: center;
  cursor: pointer;
  transition: padding 0.3s ease;
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--fg-mute); }
.step h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; transition: color 0.25s; }
.step .duration { font-family: var(--mono); font-size: 12px; color: var(--fg-mute); }
.step .body {
  grid-column: 2 / 4; color: var(--fg-dim); font-size: 15px; line-height: 1.55; max-width: 50ch;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.step.open .body { max-height: 200px; opacity: 1; margin-top: 12px; }
.step.open h3 { color: var(--accent); }
.step .chev {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--fg-dim);
  transition: all 0.3s;
}
.step.open .chev { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: rotate(45deg); }

.process-visual {
  position: sticky; top: 120px;
  align-self: start;
  height: 480px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg-elev);
  border-radius: 4px;
  position: sticky;
  overflow: hidden;
}
.pv-label {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-mute);
}
.pv-meter {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--accent);
}
.pv-stage {
  position: absolute; inset: 60px 32px 32px 32px;
  display: flex; flex-direction: column; gap: 8px;
}
.pv-row {
  display: grid; grid-template-columns: 110px 1fr 60px; gap: 12px; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--fg-dim);
  padding: 6px 0;
}
.pv-bar { height: 6px; background: var(--line-soft); border-radius: 2px; overflow: hidden; position: relative; }
.pv-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent);
  width: 0; transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pv-row.active { color: var(--fg); }
.pv-row.active .pv-bar i { background: var(--accent); }
.pv-row.done .pv-bar i { width: 100%; background: var(--accent-dim); }

/* ===== Stats strip ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.stat {
  padding: 48px 32px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-size: 56px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px;
}
.stat .num .em { color: var(--accent); }
.stat .lab { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); }

/* ===== Contact ===== */
.contact {
  padding: 140px 0 100px;
  position: relative;
  border-top: 1px solid var(--line-soft);
}
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; }
.contact h2 {
  font-size: clamp(48px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 500;
  margin-bottom: 32px;
}
.contact h2 .em { font-style: italic; color: var(--accent); font-weight: 400; }
.contact .lead { color: var(--fg-dim); font-size: 17px; line-height: 1.55; max-width: 42ch; margin-bottom: 40px; }
.contact-meta { display: flex; flex-direction: column; gap: 14px; }
.contact-meta .row {
  display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--line-soft);
  font-size: 15px;
}
.contact-meta .row:last-child { border-bottom: 1px solid var(--line-soft); }
.contact-meta .row .k { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); }

form.contact-form {
  display: flex; flex-direction: column; gap: 0;
  background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: 6px;
  padding: 8px;
}
.field {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border-radius: 4px;
  transition: background 0.2s ease;
}
.field:focus-within { background: var(--bg-soft); }
.field label { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); }
.field input, .field textarea, .field select {
  background: transparent; border: none; outline: none; resize: none;
  color: var(--fg); font-family: var(--display); font-size: 16px;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-mute); }
.field.error label { color: oklch(0.72 0.18 30); }
.field.error input, .field.error textarea { color: oklch(0.85 0.14 30); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; }

/* Honeypot — hidden from humans, visible to bots */
.field.honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip {
  font-family: var(--mono); font-size: 11px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg-dim); cursor: pointer; user-select: none;
  background: transparent; transition: all 0.2s ease;
}
.chip:hover { border-color: var(--fg-dim); color: var(--fg); }
.chip.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.form-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
}
.form-foot .hint { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); }
.submit-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--bg); border: none;
  padding: 12px 18px; border-radius: 999px;
  font-family: var(--display); font-weight: 500; font-size: 14px; cursor: pointer;
  transition: all 0.2s ease;
}
.submit-btn:hover { background: oklch(0.88 0.16 75); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-btn .arrow { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }

.form-success {
  padding: 32px; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
}
.form-success .check {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.form-success h4 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.form-success p { color: var(--fg-dim); font-size: 14px; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 36px;
}
footer .row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
footer .copyright { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); }
footer .links { display: flex; gap: 28px; }
footer .links a { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); transition: color 0.2s; }
footer .links a:hover { color: var(--accent); }
.signature {
  margin-top: 48px;
  font-size: clamp(80px, 16vw, 240px);
  line-height: 0.85; letter-spacing: -0.06em; font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  text-stroke: 1px var(--line);
  user-select: none;
  text-align: center;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; gap: 0.15em;
}
.signature .em { font-style: italic; -webkit-text-stroke: 1px var(--accent); }
.signature .doo {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  -webkit-text-stroke: 1px var(--accent);
          text-stroke: 1px var(--accent);
}

/* ===== Legal / prose pages ===== */
.legal { padding: 160px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal-head { margin-bottom: 56px; }
.legal-head .mono { margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.legal-head .mono::before {
  content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
}
.legal-head h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95; letter-spacing: -0.04em; font-weight: 500;
  margin-bottom: 24px;
}
.legal-head h1 .em { font-style: italic; color: var(--accent); font-weight: 400; }
.legal-head .legal-meta {
  font-family: var(--mono); font-size: 12px; color: var(--fg-mute); line-height: 1.7;
  border-top: 1px solid var(--line-soft); padding-top: 20px;
}
.legal-head .legal-meta strong { color: var(--fg-dim); font-weight: 500; }
.legal-head .legal-meta a { color: var(--fg-dim); border-bottom: 1px solid var(--line); }
.legal-head .legal-meta a:hover { color: var(--accent); border-color: var(--accent); }

.legal-body { color: var(--fg-dim); font-size: 16px; line-height: 1.65; }
.legal-body .lead {
  font-size: 18px; color: var(--fg); padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 32px;
}
.legal-body h2 {
  font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg);
  margin-top: 48px; margin-bottom: 16px;
}
.legal-body h3 {
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg);
  margin-top: 24px; margin-bottom: 10px;
}
.legal-body p { margin-bottom: 14px; }
.legal-body ul {
  list-style: none; padding-left: 0; margin: 0 0 14px 0;
}
.legal-body ul li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
}
.legal-body ul li::before {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 1px; background: var(--accent);
}
.legal-body strong { color: var(--fg); font-weight: 500; }
.legal-body em { font-style: italic; color: var(--fg); }
.legal-body a { color: var(--fg); border-bottom: 1px solid var(--line); transition: all 0.2s; }
.legal-body a:hover { color: var(--accent); border-color: var(--accent); }
.legal-body hr {
  border: none; border-top: 1px solid var(--line-soft); margin: 48px 0 24px;
}
.legal-body .legal-foot {
  font-family: var(--mono); font-size: 12px; color: var(--fg-mute); line-height: 1.7;
}
.legal-body .legal-foot a { color: var(--fg-dim); }

.legal-back { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-soft); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.2,0.8,0.2,1), transform 0.9s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-row, .section-head, .process, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: 1fr; }
  .service { border-right: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .field-row { grid-template-columns: 1fr; }
  nav.top .links a:not(.cta) { display: none; }
  .process-visual { display: none; }
}
