:root {
  --bg: #070707;
  --panel: #0d0d0d;
  --panel-2: #141414;
  --text: #f2efe9;
  --muted: #b8b4ae;
  --soft: #787470;
  --line: rgba(242, 239, 233, 0.14);
  --line-strong: rgba(232, 0, 90, 0.55);
  --accent: #e8005a;
  --accent-soft: rgba(232, 0, 90, 0.13);
  --cyan: #00b4d8;
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}

body::selection {
  background: var(--accent);
  color: #fff;
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 4vw, 52px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 7, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a {
  transition: color 0.2s ease;
}

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

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 11px 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: 150px 0 86px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay {
  background:
    linear-gradient(90deg, #070707 0%, rgba(7, 7, 7, 0.94) 28%, rgba(7, 7, 7, 0.54) 62%, rgba(7, 7, 7, 0.9) 100%),
    linear-gradient(0deg, #070707 0%, rgba(7, 7, 7, 0.12) 40%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  align-items: center;
  gap: 56px;
}

.eyebrow,
.kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.lead {
  max-width: 610px;
  color: var(--muted);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.ghost {
  background: rgba(7, 7, 7, 0.35);
  color: var(--text);
}

.need-card,
.path-card,
.skill-card,
.profile-card,
.contact-form {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(242, 239, 233, 0.055), rgba(242, 239, 233, 0.02));
}

.path-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.path-card li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.section {
  padding: 112px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.intro-text {
  color: var(--muted);
  font-size: 19px;
}

.need-grid,
.path-grid,
.skill-grid {
  display: grid;
  gap: 16px;
  margin-top: 52px;
}

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

.need-card,
.skill-card {
  padding: 28px;
}

.need-card span,
.skill-card span,
.num {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.need-card p,
.skill-card p,
.path-card p,
.section-heading p,
.section-copy p,
.team-copy p,
.contact-copy p {
  color: var(--muted);
}

.dark-band {
  background:
    linear-gradient(180deg, rgba(232, 0, 90, 0.07), rgba(7, 7, 7, 0) 35%),
    var(--panel);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
}

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

.path-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  scroll-margin-top: 110px;
}

.path-card.featured {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--accent-soft), rgba(242, 239, 233, 0.025));
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}

.tag {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.path-card h3 {
  color: var(--accent);
  font-size: 42px;
}

.path-card p {
  min-height: 116px;
}

.method {
  overflow: hidden;
}

.thinking-map {
  min-height: 520px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 30px;
  border: 1px solid var(--line);
  padding: 30px;
  background:
    linear-gradient(rgba(242, 239, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 233, 0.05) 1px, transparent 1px),
    #0a0a0a;
  background-size: 34px 34px;
}

.linear-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.linear-flow span {
  border: 1px solid var(--line);
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.linear-flow span + span {
  position: relative;
}

.linear-flow span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 1px);
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.mind-map {
  position: relative;
  min-height: 340px;
}

.mind-map .node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 104px;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(242, 239, 233, 0.28);
  background: rgba(7, 7, 7, 0.82);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mind-map .node.core {
  inset: 42% auto auto 42%;
  min-width: 130px;
  min-height: 130px;
  border-radius: 999px;
  border-color: var(--accent);
  color: var(--accent);
}

.n1 { top: 8%; left: 10%; }
.n2 { top: 16%; right: 8%; }
.n3 { bottom: 16%; right: 12%; }
.n4 { bottom: 6%; left: 8%; min-width: 148px; }
.n5 { top: 43%; left: 0; min-width: 154px; }
.n6 { top: 54%; right: 0; }
.n7 { top: 2%; left: 42%; }
.n8 { bottom: 0; left: 42%; }
.n9 { top: 30%; right: 22%; }

.line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 0, 90, 0), rgba(232, 0, 90, 0.85), rgba(242, 239, 233, 0));
  transform-origin: left center;
}

.l1 { width: 260px; top: 42%; left: 18%; transform: rotate(27deg); }
.l2 { width: 220px; top: 36%; left: 48%; transform: rotate(-32deg); }
.l3 { width: 250px; top: 62%; left: 47%; transform: rotate(24deg); }
.l4 { width: 230px; top: 70%; left: 18%; transform: rotate(-22deg); }
.l5 { width: 190px; top: 50%; left: 12%; transform: rotate(3deg); }
.l6 { width: 180px; top: 58%; left: 58%; transform: rotate(-2deg); }
.l7 { width: 140px; top: 25%; left: 46%; transform: rotate(88deg); }
.l8 { width: 160px; top: 78%; left: 46%; transform: rotate(-72deg); }
.l9 { width: 120px; top: 43%; left: 58%; transform: rotate(-28deg); }

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

.process {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.process-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 60px;
}

.process-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.process-list span {
  color: var(--accent);
  font-weight: 800;
}

.process-list small {
  grid-column: 2;
  color: var(--muted);
  font-size: 15px;
}

.note {
  grid-column: 2;
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}

.team-grid {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 70px;
  align-items: center;
}

.profile-card {
  padding: 34px;
}

.profile-initials {
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 34px;
  font-weight: 800;
}

.profile-card small {
  display: block;
  margin-top: 28px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.profile-card h2 {
  margin-top: 12px;
  font-size: 42px;
}

.profile-card p {
  color: var(--muted);
}

.contact {
  background:
    linear-gradient(180deg, rgba(232, 0, 90, 0.06), rgba(7, 7, 7, 0) 42%),
    var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-points span {
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #090909;
  color: var(--text);
  font: inherit;
  padding: 14px;
  outline: none;
  border-radius: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

.field-note {
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.check {
  grid-template-columns: 18px 1fr;
  align-items: start;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.form-button {
  width: 100%;
}

.website-field {
  position: absolute;
  left: -9999px;
}

.form-alert {
  border: 1px solid var(--line);
  padding: 14px;
  font-weight: 700;
}

.form-alert.success {
  border-color: rgba(86, 197, 150, 0.6);
  color: #56c596;
}

.form-alert.error {
  border-color: var(--line-strong);
  color: var(--accent);
}

.site-footer {
  padding: 58px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.footer-grid strong,
.footer-grid span,
.footer-grid a {
  display: block;
}

.footer-grid strong,
.footer-grid span {
  color: var(--text);
}

.footer-grid a {
  margin-top: 8px;
}

.legal-page {
  min-height: 100vh;
  background: var(--bg);
}

.legal-wrap {
  width: min(840px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0;
}

.legal-wrap h1 {
  font-size: clamp(42px, 8vw, 78px);
}

.legal-wrap p {
  color: var(--muted);
  font-size: 18px;
}

.back-link {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 78px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: rgba(7, 7, 7, 0.97);
    padding: 12px;
  }

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

  .main-nav a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-grid,
  .split,
  .process-wrap,
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .need-grid,
  .path-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .note {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    padding: 14px;
  }

  .brand small {
    max-width: 190px;
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 7, 7, 0.58), #070707 76%),
      linear-gradient(90deg, #070707 0%, rgba(7, 7, 7, 0.55) 100%);
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  .lead,
  .intro-text {
    font-size: 17px;
  }

  .section {
    padding: 76px 0;
  }

  .form-row,
  .footer-grid,
  .linear-flow {
    grid-template-columns: 1fr;
  }

  .thinking-map {
    min-height: 650px;
    padding: 18px;
  }

  .mind-map {
    min-height: 470px;
  }

  .node.core {
    inset: 38% auto auto calc(50% - 65px);
  }

  .n1 { top: 0; left: 2%; }
  .n2 { top: 12%; right: 0; }
  .n3 { bottom: 14%; right: 0; }
  .n4 { bottom: 0; left: 5%; }
  .n5 { top: 38%; left: 0; }
  .n6 { top: 54%; right: 0; }
  .n7 { top: 4%; left: 38%; }
  .n8 { bottom: 2%; left: 36%; }
  .n9 { top: 28%; right: 14%; }

  .line {
    opacity: 0.7;
  }
}
