:root {
  --bg: #0a0a0c;
  --line: #1e1d22;
  --text: #ecebef;
  --muted: #86848e;
  --accent: #e0186a;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgb(10 10 12 / .85);
  backdrop-filter: blur(10px);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.nav nav { display: flex; gap: clamp(18px, 3vw, 36px); font-size: 14px; }
.nav nav a { color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--text); }

/* hero */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding: 140px var(--pad) clamp(64px, 10vh, 120px);
}
.hex-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-inner { max-width: var(--max); width: 100%; margin: 0 auto; }
h1 {
  font-size: clamp(44px, 8vw, 104px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
}
.lede {
  margin-top: 32px;
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
}
.cta {
  display: inline-flex;
  gap: 10px;
  margin-top: 40px;
  font-weight: 500;
  padding-bottom: 4px;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 1px no-repeat;
}
.cta span { transition: transform .3s var(--ease); }
.cta:hover span { transform: translateX(4px); }

/* sections */
.section, .contact {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(96px, 13vw, 160px) var(--pad) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: baseline;
}
.label { font-family: var(--mono); font-size: 13px; color: var(--muted); }
h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 500;
  max-width: 22ch;
}
h3 { font-size: 18px; font-weight: 500; }

/* services */
.services {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.services li {
  position: relative;
  padding: 32px 28px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services li::after {
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.services li:hover::after { transform: scaleX(1); }
.services p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* steps */
.steps {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.steps li { counter-increment: step; padding-top: 20px; position: relative; }
.steps li::before, .steps li::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.steps li::after {
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease) .3s;
}
.steps li.in::after { transform: scaleX(1); }
.steps h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 13px var(--mono);
  color: var(--muted);
  margin-bottom: 14px;
}
.steps p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* contact */
.contact { padding-bottom: clamp(96px, 13vw, 160px); }
.contact h2 { margin-top: 20px; font-size: clamp(36px, 6vw, 72px); font-weight: 600; letter-spacing: -.04em; }
.contact-sub { margin-top: 18px; max-width: 46ch; color: var(--muted); }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }
.mail {
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: -.02em;
  padding-bottom: 4px;
  background:
    linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat,
    linear-gradient(var(--line), var(--line)) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
  overflow-wrap: anywhere;
}
.mail:hover { background-size: 100% 1px, 100% 1px; }
.copy {
  font: 13px var(--mono);
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 0;
  transition: color .2s;
}
.copy:hover { color: var(--text); }

/* footer */
.footer {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 28px var(--pad) 40px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}
@media (max-width: 560px) {
  .nav nav a:not([href="#contact"]) { display: none; }
  .services { grid-template-columns: 1fr; }
  .services li { padding: 24px 20px 28px; }
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
