:root {
  color-scheme: dark;
  --ink: #080b0a;
  --ink-2: #0e1513;
  --ink-3: #17211d;
  --paper: #f8f1e8;
  --paper-2: #f0dfca;
  --muted: #a9b8b0;
  --line: rgba(248, 241, 232, 0.13);
  --line-strong: rgba(248, 241, 232, 0.28);
  --teal: #3de0bd;
  --coral: #ff7557;
  --acid: #c9ff58;
  --blue: #7da7ff;
  --gold: #e8bf67;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::selection {
  background: var(--acid);
  color: var(--ink);
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 11, 10, 0.62);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.24);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding-left: 6px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(8, 12, 20, 0.1));
}

.nav-links {
  gap: 3px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(248, 241, 232, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a:hover {
  background: rgba(248, 241, 232, 0.09);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 241, 232, 0.06);
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 150px 0 0;
  isolation: isolate;
  background:
    linear-gradient(110deg, rgba(61, 224, 189, 0.12), transparent 24%),
    linear-gradient(250deg, rgba(255, 117, 87, 0.12), transparent 26%),
    var(--ink);
}

.sculpture-canvas {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.42;
  background:
    linear-gradient(90deg, rgba(248, 241, 232, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(248, 241, 232, 0.04) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(90deg, black, transparent 82%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 44%;
  background: linear-gradient(0deg, var(--ink), rgba(8, 11, 10, 0));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.45fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 92px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1,
.systems h2,
.section-lead h2,
.process h2,
.capability-lab h2,
.contact h2 {
  margin: 0;
  font-family: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 940px;
  font-size: clamp(4rem, 8vw, 8.3rem);
}

.hero-copy {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(248, 241, 232, 0.78);
  font-size: 1.1rem;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button svg,
.nav-toggle svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.3;
}

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

.secondary {
  border-color: rgba(248, 241, 232, 0.24);
  background: rgba(248, 241, 232, 0.07);
  color: var(--paper);
}

.secondary:hover {
  background: rgba(248, 241, 232, 0.11);
}

.live-spec {
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(8, 11, 10, 0.54);
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
}

.spec-top,
.spec-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.spec-top {
  color: rgba(248, 241, 232, 0.76);
  font-family: "Space Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.spec-line:last-child {
  border-bottom: 0;
}

.spec-line span {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.spec-line b {
  max-width: 210px;
  color: var(--paper);
  text-align: right;
}

.spec-line.active {
  background: linear-gradient(90deg, rgba(61, 224, 189, 0.12), rgba(255, 117, 87, 0.08));
}

.signal-strip {
  position: relative;
  overflow: hidden;
  contain: layout paint;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 10, 0.74);
  backdrop-filter: blur(16px);
}

.signal-strip div {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.signal-strip span {
  padding: 18px 30px;
  color: rgba(248, 241, 232, 0.72);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.systems,
.process,
.contact {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 70px;
  padding: 116px 0;
  align-items: start;
}

.systems h2,
.section-lead h2,
.process h2,
.capability-lab h2,
.contact h2 {
  font-size: clamp(2.4rem, 4.4vw, 4.8rem);
}

.systems-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.85;
}

.services {
  position: relative;
  padding: 116px 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 10, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 11, 10, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
}

.services .shell {
  position: relative;
}

.services .eyebrow,
.capability-lab .eyebrow {
  color: #087f69;
}

.section-lead {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 54px;
  margin-bottom: 48px;
}

.service-stage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.service-orbit {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(8, 11, 10, 0.14);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 24px 70px rgba(8, 11, 10, 0.08);
}

.service-wide {
  grid-column: span 3;
}

.service-orbit:not(.service-wide):not(.service-tall) {
  grid-column: span 3;
}

.service-tall {
  grid-column: span 6;
  min-height: 250px;
}

.service-orbit::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(8, 11, 10, 0.13);
  border-radius: 38px;
  transform: rotate(22deg);
}

.service-orbit > span:not(.premium-icon) {
  color: #087f69;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.premium-icon {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(8, 11, 10, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 242, 0.58)),
    radial-gradient(circle at 28% 20%, rgba(61, 224, 189, 0.22), transparent 32%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 42px rgba(8, 11, 10, 0.1);
}

.premium-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid rgba(8, 11, 10, 0.08);
  border-radius: inherit;
}

.premium-icon::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 18px rgba(255, 117, 87, 0.42);
}

.premium-icon svg {
  display: block;
  width: 31px;
  height: 31px;
  color: #087f69;
  stroke-width: 1.85;
  filter: drop-shadow(0 8px 14px rgba(8, 11, 10, 0.12));
}

.service-icon {
  width: 76px;
  height: 76px;
  margin-top: 54px;
  border-radius: 24px;
  transform: rotate(-4deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-orbit:hover .service-icon {
  transform: translateY(-3px) rotate(0deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 58px rgba(8, 11, 10, 0.14);
}

.service-orbit h3 {
  margin: 42px 0 16px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.service-tall h3 {
  margin: 42px 0 16px;
  font-size: 2.2rem;
}

.service-orbit p {
  margin: 0;
  color: #5f665f;
  line-height: 1.72;
}

.process-river {
  display: grid;
  gap: 14px;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(248, 241, 232, 0.075), rgba(248, 241, 232, 0.025));
}

.process-step::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, rgba(61, 224, 189, 0.16), transparent 48%, rgba(255, 117, 87, 0.1));
  transition: opacity 240ms ease;
}

.process-step:hover::after {
  opacity: 1;
}

.process-step span {
  color: var(--gold);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.process-step h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.process-step p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.capability-lab {
  padding: 116px 0;
  background: var(--paper);
  color: var(--ink);
}

.capability-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 68px;
  align-items: start;
}

.capability-stack {
  display: grid;
  gap: 12px;
}

.capability-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid rgba(8, 11, 10, 0.12);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.84);
}

.capability-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.capability-icon::before {
  inset: 5px;
}

.capability-icon::after {
  right: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
}

.capability-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.capability-item span {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.contact {
  border-bottom: 1px solid var(--line);
}

.contact-copy h2 {
  margin-bottom: 24px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(248, 241, 232, 0.05);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(248, 241, 232, 0.76);
  font-family: "Space Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 11, 10, 0.72);
  color: var(--paper);
  padding: 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61, 224, 189, 0.14);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-button {
  width: fit-content;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  color: rgba(248, 241, 232, 0.58);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0.82;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

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

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    min-width: 230px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 11, 10, 0.96);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    justify-content: start;
  }

  .hero-inner,
  .systems,
  .section-lead,
  .process,
  .capability-grid,
  .contact,
  .service-stage {
    grid-template-columns: 1fr;
  }

  .service-wide,
  .service-orbit:not(.service-wide):not(.service-tall),
  .service-tall {
    grid-column: auto;
  }

  .service-tall {
    display: block;
    min-height: 310px;
  }

  .live-spec {
    max-width: 620px;
  }
}

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

  .site-header {
    width: min(calc(100% - 20px), var(--max));
  }

  .brand span:last-child {
    max-width: 128px;
    line-height: 1.1;
  }

  .hero {
    padding-top: 116px;
  }

  .hero-inner {
    gap: 34px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .live-spec {
    border-radius: 18px;
  }

  .spec-line {
    display: grid;
  }

  .spec-line b {
    max-width: none;
    text-align: left;
  }

  .systems,
  .services,
  .process,
  .capability-lab,
  .contact {
    padding: 78px 0;
  }

  .signal-strip span {
    padding-inline: 20px;
  }

  .service-orbit {
    min-height: 310px;
    padding: 22px;
  }

  .process-step {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 18px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
