:root {
  --bg-deep: #07090d;
  --bg-elevated: #0e1218;
  --text: #e8edf5;
  --text-muted: #8b96a8;
  --accent: #39ffc8;
  --accent-dim: rgba(57, 255, 200, 0.14);
  --violet: #a78bfa;
  --violet-dim: rgba(167, 139, 250, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 14px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.glow-a {
  top: -20%;
  right: -15%;
  background: radial-gradient(circle, var(--violet-dim), transparent 70%);
}

.glow-b {
  bottom: -25%;
  left: -20%;
  background: radial-gradient(circle, var(--accent-dim), transparent 65%);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

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

a:hover {
  color: var(--accent);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  box-shadow: 0 0 24px rgba(57, 255, 200, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--text-muted);
}

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

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.03);
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav a {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.mobile-nav:not([hidden]) {
  display: flex;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr min(32vw, 280px);
  gap: 2rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 12vw, 7rem);
  min-height: min(88vh, 900px);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .helix {
    order: -1;
    max-width: 200px;
    margin: 0 auto;
  }
}

.hero-grid {
  max-width: 38rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--violet);
}

.hero-lede {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.1rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, color 0.2s;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--bg-deep);
}

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

.btn-ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.helix {
  justify-self: end;
  opacity: 0.9;
}

.helix svg {
  width: 100%;
  height: auto;
  max-height: 420px;
}

.strand {
  stroke-width: 2.5;
  stroke-linecap: round;
}

.strand-1 {
  stroke: var(--accent);
  opacity: 0.85;
}

.strand-2 {
  stroke: var(--violet);
  opacity: 0.75;
}

.rungs line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5;
}

.section {
  padding: clamp(3.5rem, 10vw, 6rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

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

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
  border-color: rgba(57, 255, 200, 0.25);
  transform: translateY(-4px);
}

.card-index {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.card h3 {
  font-size: 1.2rem;
  margin: 0.75rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-work {
  border-top: 1px solid var(--border);
}

.section-method {
  background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.04));
  border-top: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1.5rem;
}

.steps {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.steps li {
  margin-bottom: 0.85rem;
}

.steps strong {
  color: var(--text);
}

.muted {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

.split-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.split-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
}

.split-panel blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
}

.attribution {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section-cta {
  padding-bottom: clamp(4rem, 12vw, 6rem);
}

.cta-block {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(57, 255, 200, 0.06), rgba(167, 139, 250, 0.06));
}

.cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.cta-block > p {
  margin: 0 auto 1.75rem;
  max-width: 42ch;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.cta-or {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

.footer-domain {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
