:root {
  --ink: #08090b;
  --panel: #101216;
  --panel-light: #171a20;
  --paper: #f2f0e9;
  --muted: #9da1a8;
  --line: rgba(242, 240, 233, 0.16);
  --blue: #4a72ff;
  --cyan: #87e7ff;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --radius: 1.1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "DM Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.brand-mark {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: conic-gradient(transparent 0 25%, currentColor 25% 50%, transparent 50% 75%, currentColor 75%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  font-size: 0.82rem;
  font-weight: 500;
}

.site-nav > a:not(.nav-cta) {
  color: #c5c7ca;
}

.site-nav > a:hover,
.site-nav > a:focus-visible {
  color: var(--paper);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 8.5rem var(--pad) 3rem;
  background:
    radial-gradient(circle at 78% 52%, rgba(67, 103, 255, 0.18), transparent 25%),
    linear-gradient(130deg, #08090b 35%, #0d1018 100%);
}

.hero::after {
  position: absolute;
  right: -10%;
  bottom: -25%;
  width: 60vw;
  height: 60vw;
  border: 1px solid rgba(135, 231, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.eyebrow,
.section-label,
.mono-note,
.card-number {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-top: clamp(2rem, 5vh, 4.5rem);
}

.hero h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(3.4rem, 9.8vw, 9.3rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 233, 0.5);
}

.hero-bottom {
  display: flex;
  max-width: 60rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.5rem, 6vh, 5rem);
  margin-left: clamp(0rem, 14vw, 13rem);
}

.hero-bottom p {
  max-width: 32rem;
  margin: 0;
  color: #b3b5ba;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
}

.circle-link {
  display: flex;
  width: 6.2rem;
  height: 6.2rem;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  transition: border-color 200ms ease, transform 200ms ease;
}

.circle-link:hover,
.circle-link:focus-visible {
  border-color: var(--cyan);
  transform: rotate(8deg);
}

.hero-index {
  position: absolute;
  right: var(--pad);
  bottom: 2rem;
  color: #696c73;
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
}

.hero-orbit {
  position: absolute;
  top: 22%;
  right: 7%;
  width: clamp(17rem, 35vw, 34rem);
  aspect-ratio: 1;
  opacity: 0.72;
  transform: rotate(-18deg);
}

.orbit,
.orbit-core {
  position: absolute;
  border-radius: 50%;
}

.orbit {
  inset: 8%;
  border: 1px solid rgba(135, 231, 255, 0.22);
  animation: orbit 18s linear infinite;
}

.orbit::before {
  position: absolute;
  top: 13%;
  left: 13%;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan);
  content: "";
}

.orbit-two {
  inset: 24%;
  animation-direction: reverse;
  animation-duration: 12s;
}

.orbit-core {
  inset: 39%;
  background: radial-gradient(circle at 35% 35%, #b4f1ff, #395de4 50%, #111527 72%);
  box-shadow: 0 0 70px rgba(74, 114, 255, 0.55);
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.section-shell {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) var(--pad);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
}

.section-label span {
  color: var(--cyan);
}

.intro {
  background: var(--paper);
  color: var(--ink);
}

.intro .section-label {
  color: #686a6c;
}

.intro .section-label span {
  color: #3156db;
}

.intro-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 0.65fr);
  gap: 8vw;
  align-items: end;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.intro-content h2,
.approach h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5.6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.intro-content p {
  margin: 0;
  color: #5b5c5f;
  font-size: 0.95rem;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(4rem, 8vw, 8rem);
}

.service-card {
  display: flex;
  min-height: 23rem;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 2.5vw, 2.3rem);
  border: 1px solid #d3d1ca;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.22);
  transition: transform 250ms ease, border-color 250ms ease;
}

.service-card:hover {
  transform: translateY(-0.5rem);
  border-color: #878681;
}

.service-card-featured {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.service-card h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.service-card p {
  max-width: 23rem;
  margin: 0;
  color: #616266;
  font-size: 0.88rem;
}

.service-card-featured p {
  color: rgba(255, 255, 255, 0.75);
}

.approach {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 4rem 4rem;
}

.approach-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  gap: 9vw;
  align-items: end;
  margin-top: clamp(3rem, 7vw, 7rem);
}

.mono-note {
  color: var(--cyan);
}

.approach h2 em {
  color: #7f838b;
  font-family: Georgia, serif;
  font-weight: 400;
}

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

.process-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.process-list li > span {
  color: var(--cyan);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
}

.process-list strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  font-weight: 500;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.contact {
  min-height: 80vh;
  overflow: hidden;
  background: #0d0f13;
}

.contact-glow {
  position: absolute;
  right: -10vw;
  bottom: -26vw;
  width: 65vw;
  height: 65vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 114, 255, 0.4), rgba(74, 114, 255, 0.04) 45%, transparent 68%);
  filter: blur(10px);
}

.contact-content {
  position: relative;
  z-index: 1;
  margin-top: clamp(4rem, 10vw, 9rem);
}

.contact-content > p {
  color: var(--muted);
}

.contact h2 span {
  color: var(--cyan);
}

.contact-link {
  display: flex;
  max-width: 42rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--paper);
  font-size: clamp(1rem, 2vw, 1.5rem);
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem var(--pad);
  border-top: 1px solid var(--line);
  color: #777b82;
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  text-transform: uppercase;
}

.site-footer p:last-child {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.service-card:nth-child(2),
.process-list li:nth-child(2) { transition-delay: 90ms; }

.service-card:nth-child(3),
.process-list li:nth-child(3) { transition-delay: 180ms; }

@media (max-width: 820px) {
  .menu-toggle {
    z-index: 2;
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-content: center;
    gap: 0.35rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #0d0f13;
    color: white;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 1rem;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 1rem;
    right: var(--pad);
    display: none;
    width: min(20rem, calc(100vw - 2.5rem));
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 4.5rem 1.2rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #101216;
    box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.45);
  }

  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 0.9rem; }
  .nav-cta { margin-top: 0.7rem; }

  .hero-orbit {
    top: 20%;
    right: -28%;
    width: 24rem;
    opacity: 0.55;
  }

  .hero h1 { font-size: clamp(3.2rem, 15vw, 6rem); }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 0;
  }

  .circle-link { width: 5rem; height: 5rem; }

  .intro-content,
  .approach-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 18rem; }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer p { margin: 0; }
  .site-footer p:last-child { text-align: left; }
}

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