@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #081411;
  --ink-soft: #13221e;
  --paper: #f5f7f2;
  --paper-strong: #ffffff;
  --muted: #65726d;
  --line: rgba(8, 20, 17, 0.13);
  --line-dark: rgba(255, 255, 255, 0.14);
  --lime: #c9f43b;
  --lime-deep: #97bf17;
  --mint: #63e6be;
  --aqua: #8ee8e1;
  --shadow: 0 24px 70px rgba(8, 20, 17, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --container: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p {
  color: var(--muted);
}

.skip-link {
  background: var(--lime);
  color: var(--ink);
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 9999;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  margin: 0 auto;
  max-width: var(--container);
  padding: 0 1.5rem;
  width: 100%;
}

.section {
  padding: clamp(5rem, 9vw, 8.5rem) 0;
}

.section-tight {
  padding: 4rem 0;
}

.section-dark {
  background: var(--ink);
  color: white;
}

.section-tint {
  background: #eaf0e9;
}

.eyebrow {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
  font-weight: 500;
  gap: 0.65rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--lime-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(151, 191, 23, 0.13);
  content: "";
  height: 7px;
  width: 7px;
}

.section-dark .eyebrow,
.dark-card .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}

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

.section-heading > p {
  flex: 0 0 340px;
  font-size: 1.05rem;
}

.section-dark .section-heading p,
.section-dark p {
  color: rgba(255, 255, 255, 0.62);
}

.accent {
  color: var(--lime-deep);
}

.section-dark .accent {
  color: var(--lime);
}

/* Navigation */
.site-nav {
  left: 0;
  padding: 1.1rem 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: background 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
  z-index: 1000;
}

.site-nav.scrolled,
.site-nav.menu-visible {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(245, 247, 242, 0.9);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.nav-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 800;
  gap: 0.75rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  z-index: 2;
}

.brand-mark {
  background: var(--ink);
  border-radius: 10px;
  display: grid;
  height: 38px;
  overflow: hidden;
  place-items: center;
  position: relative;
  transform: rotate(-3deg);
  width: 38px;
}

.brand-mark::before,
.brand-mark::after {
  border: 2px solid var(--lime);
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  height: 20px;
  position: absolute;
  transform: rotate(-20deg);
  width: 20px;
}

.brand-mark::after {
  border-color: var(--mint);
  border-right-color: transparent;
  height: 10px;
  width: 10px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 2rem;
}

.nav-links > a:not(.button) {
  color: #3e4b46;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links > a:not(.button):hover,
.nav-links > a[aria-current="page"] {
  color: var(--ink);
}

.menu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  height: 44px;
  position: relative;
  width: 44px;
  z-index: 2;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  background: var(--ink);
  content: "";
  height: 2px;
  left: 10px;
  position: absolute;
  transition: 0.25s ease;
  width: 24px;
}

.menu-toggle::before { top: 14px; }
.menu-toggle span { top: 21px; }
.menu-toggle::after { top: 28px; }
.menu-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }

/* Buttons */
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
}

.button::after {
  content: "↗";
  font-size: 1rem;
}

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

.button-primary {
  background: var(--ink);
  box-shadow: 0 10px 25px rgba(8, 20, 17, 0.15);
  color: white;
}

.button-primary:hover {
  background: #1b2d28;
  box-shadow: 0 14px 30px rgba(8, 20, 17, 0.2);
}

.button-lime {
  background: var(--lime);
  color: var(--ink);
}

.button-lime:hover {
  background: #d8ff5c;
  box-shadow: 0 12px 30px rgba(201, 244, 59, 0.22);
}

.button-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.section-dark .button-ghost,
.dark-card .button-ghost {
  border-color: var(--line-dark);
  color: white;
}

.text-link {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 0.45rem;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Home hero */
.hero {
  --hero-x: 68%;
  --hero-y: 24%;
  background:
    linear-gradient(rgba(8, 20, 17, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 20, 17, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 76% 20%, rgba(99, 230, 190, 0.2), transparent 27%),
    var(--paper);
  background-size: 46px 46px, 46px 46px, auto, auto;
  min-height: 830px;
  overflow: hidden;
  padding: 10.5rem 0 7rem;
  position: relative;
}

.hero::before {
  background: radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(99, 230, 190, 0.19), transparent 20%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: background 0.2s ease-out;
  z-index: 0;
}

.hero::after {
  background: var(--lime);
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  height: 260px;
  opacity: 0.18;
  position: absolute;
  right: -120px;
  top: 260px;
  width: 260px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(3rem, 6vw, 6.5rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 760px;
}

.hero-copy h1 .serif-accent {
  color: var(--lime-deep);
  font-weight: 500;
}

.hero-copy > p {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  margin: 1.8rem 0 2rem;
  max-width: 650px;
}

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

.hero-note {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  gap: 0.6rem;
  margin-top: 1.7rem;
}

.hero-note span {
  color: var(--lime-deep);
}

.system-card {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 35px 80px rgba(8, 20, 17, 0.25);
  color: white;
  min-height: 510px;
  overflow: hidden;
  padding: 1.4rem;
  position: relative;
  transform: rotate(1.5deg);
  transform-style: preserve-3d;
}

.system-card::before {
  background: linear-gradient(135deg, rgba(201, 244, 59, 0.16), transparent 50%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.system-card .system-topbar,
.system-card .pipeline,
.system-card .system-metrics {
  transform: translateZ(24px);
  transform-style: preserve-3d;
}

.system-card .pipeline-node {
  transform: translateZ(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.system-card .pipeline-node:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(201, 244, 59, 0.32);
  transform: translateZ(22px) translateX(3px);
}

.card-glare {
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.14), transparent 34%);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.system-card:hover .card-glare {
  opacity: 1;
}

.system-topbar {
  align-items: center;
  display: flex;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  justify-content: space-between;
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
  position: relative;
  text-transform: uppercase;
}

.live-pill {
  align-items: center;
  color: var(--lime);
  display: flex;
  gap: 0.45rem;
}

.live-pill::before {
  animation: pulse 1.8s infinite;
  background: var(--lime);
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}

.pipeline {
  display: grid;
  gap: 0.75rem;
  position: relative;
}

.pipeline-node {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  gap: 1rem;
  min-height: 72px;
  padding: 0.9rem 1rem;
  position: relative;
}

.pipeline-node::after {
  background: repeating-linear-gradient(90deg, var(--mint) 0 4px, transparent 4px 8px);
  bottom: -0.8rem;
  content: "";
  height: 1px;
  left: 2.1rem;
  opacity: 0.5;
  position: absolute;
  width: 45%;
}

.pipeline-node:last-child::after {
  display: none;
}

.node-icon {
  background: rgba(201, 244, 59, 0.12);
  border: 1px solid rgba(201, 244, 59, 0.35);
  border-radius: 9px;
  color: var(--lime);
  display: grid;
  flex: 0 0 42px;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  height: 42px;
  place-items: center;
}

.node-copy strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.node-copy small {
  color: rgba(255, 255, 255, 0.48);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
}

.node-status {
  color: var(--mint);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  margin-left: auto;
}

.system-metrics {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.2rem;
}

.system-metric {
  background: var(--lime);
  border-radius: 14px;
  color: var(--ink);
  padding: 1rem;
}

.system-metric:nth-child(2) {
  background: var(--aqua);
}

.system-metric strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.system-metric span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-float {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 15px 40px rgba(8, 20, 17, 0.1);
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.8rem;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.hero-float::before {
  background: var(--lime-deep);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 6px;
  margin-right: 0.45rem;
  width: 6px;
}

.hero-float-one {
  animation: floatOne 5.5s ease-in-out infinite;
  right: 2.5%;
  top: 24%;
}

.hero-float-two {
  animation: floatTwo 6.5s ease-in-out infinite;
  bottom: 17%;
  right: 36%;
}

.capability-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}

.capability-row {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}

.capability-row > span {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  list-style: none;
}

.capability-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #43504b;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 0.75rem;
}

/* Cards and grids */
.outcome-grid,
.service-grid,
.engagement-grid,
.values-grid,
.team-grid {
  display: grid;
  gap: 1rem;
}

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

.outcome-card {
  border-top: 1px solid var(--line);
  padding: 1.8rem 0;
}

.outcome-index {
  color: var(--lime-deep);
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  margin-bottom: 3.5rem;
}

.outcome-card h3 {
  margin-bottom: 0.85rem;
}

.service-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.service-card {
  background: #eff3ed;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  min-height: 330px;
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.service-card:hover,
.engagement-card:hover,
.team-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.service-card.wide {
  grid-column: 1 / -1;
  min-height: 290px;
}

.service-card.dark-card {
  background: var(--ink-soft);
  border-color: transparent;
  color: white;
}

.service-card.lime-card {
  background: var(--lime);
}

.service-number {
  color: var(--lime-deep);
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
}

.dark-card .service-number {
  color: var(--lime);
}

.lime-card .service-number {
  color: rgba(8, 20, 17, 0.58);
}

.service-card h3 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin: 4rem 0 1rem;
  max-width: 530px;
}

.service-card p {
  max-width: 560px;
}

.dark-card p {
  color: rgba(255, 255, 255, 0.62);
}

.lime-card p {
  color: rgba(8, 20, 17, 0.66);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 1.7rem;
}

.service-tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  padding: 0.45rem 0.7rem;
  text-transform: uppercase;
}

.dark-card .service-tags li {
  border-color: var(--line-dark);
}

.service-orbit {
  border: 1px solid rgba(8, 20, 17, 0.18);
  border-radius: 50%;
  height: 230px;
  position: absolute;
  right: -45px;
  top: -55px;
  width: 230px;
}

.service-orbit::before,
.service-orbit::after {
  border: 1px solid rgba(8, 20, 17, 0.18);
  border-radius: 50%;
  content: "";
  inset: 35px;
  position: absolute;
}

/* Spatial 3D system */
.spatial-section {
  background:
    radial-gradient(circle at 74% 48%, rgba(99, 230, 190, 0.13), transparent 25%),
    linear-gradient(145deg, #0b1915, #07110e);
  color: white;
  overflow: hidden;
  position: relative;
}

.spatial-noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  inset: 0;
  mask-image: linear-gradient(to right, transparent, black 35%, black);
  pointer-events: none;
  position: absolute;
}

.spatial-grid {
  align-items: center;
  display: grid;
  gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: 0.85fr 1.15fr;
  position: relative;
}

.spatial-copy h2 {
  margin-bottom: 1.5rem;
}

.spatial-copy > p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.05rem;
}

.spatial-points {
  border-top: 1px solid var(--line-dark);
  list-style: none;
  margin-top: 2.3rem;
}

.spatial-points li {
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 0.85rem 0;
}

.spatial-points span {
  color: var(--lime);
  display: inline-block;
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  width: 2.3rem;
}

.universe-shell {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(6, 16, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 40px 90px rgba(0, 0, 0, 0.35);
  min-height: 560px;
  overflow: hidden;
  perspective: 1000px;
  position: relative;
  transform-style: preserve-3d;
}

.universe-shell::before {
  background: linear-gradient(90deg, transparent, rgba(201, 244, 59, 0.28), transparent);
  content: "";
  height: 1px;
  left: 10%;
  position: absolute;
  right: 10%;
  top: 50%;
}

.universe-glow {
  background: var(--mint);
  border-radius: 50%;
  filter: blur(80px);
  height: 230px;
  left: 50%;
  opacity: 0.14;
  position: absolute;
  top: 46%;
  transform: translate(-50%, -50%) translateZ(-50px);
  width: 230px;
}

.universe {
  height: 390px;
  left: 50%;
  perspective: 900px;
  position: absolute;
  top: 48%;
  transform: translate(-50%, -50%) rotateX(4deg);
  transform-style: preserve-3d;
  width: 390px;
}

.orbit {
  border: 1px solid rgba(142, 232, 225, 0.5);
  border-radius: 50%;
  inset: 45px;
  position: absolute;
  transform-style: preserve-3d;
}

.orbit::before {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: inherit;
  content: "";
  inset: 18px;
  position: absolute;
}

.orbit span {
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(201, 244, 59, 0.75);
  height: 11px;
  left: 24px;
  position: absolute;
  top: 36px;
  width: 11px;
}

.orbit-one {
  animation: orbitOne 11s linear infinite;
  transform: rotateX(68deg) rotateZ(0deg);
}

.orbit-two {
  animation: orbitTwo 14s linear infinite reverse;
  border-color: rgba(201, 244, 59, 0.46);
  inset: 72px 15px;
  transform: rotateY(68deg) rotateZ(20deg);
}

.orbit-two span {
  background: var(--mint);
  box-shadow: 0 0 22px rgba(99, 230, 190, 0.75);
  left: auto;
  right: 22px;
  top: 44px;
}

.orbit-three {
  animation: orbitThree 16s linear infinite;
  border-color: rgba(255, 255, 255, 0.25);
  inset: 82px 30px;
  transform: rotateX(58deg) rotateY(56deg);
}

.orbit-three span {
  background: white;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.65);
  left: 42%;
  top: -6px;
}

.core-cube {
  animation: cubeSpin 13s linear infinite;
  height: 72px;
  left: calc(50% - 36px);
  position: absolute;
  top: calc(50% - 36px);
  transform-style: preserve-3d;
  width: 72px;
}

.cube-face {
  align-items: center;
  backface-visibility: visible;
  background: rgba(201, 244, 59, 0.15);
  border: 1px solid rgba(201, 244, 59, 0.7);
  box-shadow: inset 0 0 25px rgba(201, 244, 59, 0.08);
  color: var(--lime);
  display: flex;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  height: 72px;
  justify-content: center;
  left: 0;
  letter-spacing: 0.08em;
  position: absolute;
  top: 0;
  width: 72px;
}

.face-front { transform: translateZ(36px); }
.face-back { transform: rotateY(180deg) translateZ(36px); }
.face-right { transform: rotateY(90deg) translateZ(36px); }
.face-left { transform: rotateY(-90deg) translateZ(36px); }
.face-top { transform: rotateX(90deg) translateZ(36px); }
.face-bottom { transform: rotateX(-90deg) translateZ(36px); }

.universe-label {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "DM Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  padding: 0.45rem 0.65rem;
  position: absolute;
}

.label-data { left: 2%; top: 48%; transform: translateZ(60px); }
.label-models { right: 1%; top: 22%; transform: translateZ(30px); }
.label-actions { bottom: 5%; right: 16%; transform: translateZ(80px); }

.universe-status {
  align-items: center;
  bottom: 1.3rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  justify-content: space-between;
  left: 1.5rem;
  letter-spacing: 0.08em;
  position: absolute;
  right: 1.5rem;
  text-transform: uppercase;
}

.service-orbit::after {
  background: var(--ink);
  border: 0;
  height: 12px;
  inset: auto;
  left: 32px;
  top: 45px;
  width: 12px;
}

.deliverables {
  display: grid;
  gap: 3rem;
  grid-template-columns: 0.82fr 1.18fr;
}

.deliverables-intro {
  align-self: start;
  position: sticky;
  top: 7rem;
}

.deliverables-intro h2 {
  margin-bottom: 1.5rem;
}

.deliverables-intro p {
  margin-bottom: 2rem;
  max-width: 440px;
}

.deliverable-list {
  border-top: 1px solid var(--line-dark);
}

.deliverable {
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  gap: 1rem;
  grid-template-columns: 80px 1fr;
  padding: 2rem 0;
}

.deliverable span {
  color: var(--lime);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
}

.deliverable h3 {
  margin-bottom: 0.65rem;
}

.process-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3.5rem;
}

.process-step {
  border-left: 1px solid var(--line);
  min-height: 300px;
  padding: 1.5rem;
  position: relative;
}

.process-step:last-child {
  border-right: 1px solid var(--line);
}

.step-number {
  color: var(--lime-deep);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
}

.process-step h3 {
  margin: 6rem 0 1rem;
}

.engagement-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}

.engagement-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.engagement-card.featured {
  background: var(--lime);
  border-color: var(--lime);
}

.engagement-card small {
  color: var(--muted);
  display: block;
  font-family: "DM Mono", monospace;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.engagement-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.engagement-card ul {
  border-top: 1px solid var(--line);
  list-style: none;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
}

.engagement-card li {
  color: #43504b;
  font-size: 0.9rem;
  margin: 0.65rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.engagement-card li::before {
  content: "•";
  left: 0;
  position: absolute;
}

/* Inner pages */
.page-hero {
  overflow: hidden;
  padding: 11rem 0 6rem;
  position: relative;
}

.page-hero::after {
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  height: 420px;
  position: absolute;
  right: -130px;
  top: 80px;
  width: 420px;
}

.page-hero-inner {
  max-width: 940px;
  position: relative;
  z-index: 1;
}

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

.page-hero p {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  max-width: 690px;
}

.service-detail {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3rem;
  grid-template-columns: 0.55fr 1.45fr;
  padding: 4rem 0;
}

.service-detail-label {
  color: var(--lime-deep);
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.service-detail-main h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1.2rem;
}

.service-detail-main > p {
  font-size: 1.05rem;
  max-width: 720px;
}

.detail-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
}

.detail-block {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.4rem;
}

.detail-block strong {
  display: block;
  margin-bottom: 0.5rem;
}

.detail-block p {
  font-size: 0.9rem;
}

.about-story {
  display: grid;
  gap: 5rem;
  grid-template-columns: 0.9fr 1.1fr;
}

.story-statement {
  background: var(--lime);
  border-radius: var(--radius-lg);
  min-height: 520px;
  padding: clamp(2rem, 4vw, 3.5rem);
  position: relative;
}

.story-statement::after {
  border: 1px solid rgba(8, 20, 17, 0.2);
  border-radius: 50%;
  bottom: -70px;
  content: "";
  height: 260px;
  position: absolute;
  right: -45px;
  width: 260px;
}

.story-statement h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  position: relative;
  z-index: 1;
}

.story-copy {
  align-self: center;
}

.story-copy h2 {
  margin-bottom: 1.5rem;
}

.story-copy p + p {
  margin-top: 1rem;
}

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

.value-card {
  border-top: 1px solid var(--line-dark);
  padding: 2rem 0;
}

.value-card span {
  color: var(--lime);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
}

.value-card h3 {
  margin: 3rem 0 0.8rem;
}

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

.team-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.team-visual {
  background:
    radial-gradient(circle at 70% 30%, var(--mint), transparent 28%),
    linear-gradient(145deg, #dfe9df, #f8faf5);
  height: 230px;
  overflow: hidden;
  position: relative;
}

.team-visual::before,
.team-visual::after {
  border: 1px solid rgba(8, 20, 17, 0.18);
  border-radius: 50%;
  content: "";
  height: 150px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
}

.team-visual::after {
  background: var(--ink);
  height: 50px;
  width: 50px;
}

.team-card:nth-child(2) .team-visual {
  background:
    radial-gradient(circle at 30% 70%, var(--lime), transparent 30%),
    linear-gradient(145deg, #e8ede2, #fff);
}

.team-card:nth-child(3) .team-visual {
  background:
    radial-gradient(circle at 65% 50%, var(--aqua), transparent 30%),
    linear-gradient(145deg, #dbe9e6, #f8faf5);
}

.team-copy {
  padding: 1.7rem;
}

.team-copy small {
  color: var(--lime-deep);
  display: block;
  font-family: "DM Mono", monospace;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.team-copy h3 {
  margin-bottom: 0.65rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 5rem;
  grid-template-columns: 0.78fr 1.22fr;
}

.contact-aside h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  margin-bottom: 1.5rem;
}

.contact-points {
  border-top: 1px solid var(--line);
  list-style: none;
  margin-top: 2.5rem;
}

.contact-points li {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.contact-points small {
  color: var(--muted);
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.contact-points a {
  font-weight: 700;
  text-decoration: none;
}

.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
}

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

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.form-control {
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  min-height: 52px;
  outline: none;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-control:focus {
  border-color: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(151, 191, 23, 0.12);
}

textarea.form-control {
  min-height: 145px;
  resize: vertical;
}

.form-footer {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.form-note {
  font-size: 0.76rem;
  max-width: 280px;
}

.form-status {
  color: var(--lime-deep);
  display: none;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 1rem;
}

.form-status.visible {
  display: block;
}

/* CTA and footer */
.cta-panel {
  align-items: center;
  background: var(--lime);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(2.2rem, 6vw, 5rem);
  position: relative;
}

.cta-panel::after {
  border: 1px solid rgba(8, 20, 17, 0.22);
  border-radius: 50%;
  content: "";
  height: 280px;
  position: absolute;
  right: -90px;
  top: -130px;
  width: 280px;
}

.cta-panel h2 {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.cta-panel .button {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.site-footer {
  background: var(--ink);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
}

.site-footer .brand {
  color: white;
  margin-bottom: 1.4rem;
}

.site-footer .brand-mark {
  background: white;
}

.footer-intro p {
  color: rgba(255, 255, 255, 0.55);
  max-width: 350px;
}

.footer-title {
  color: rgba(255, 255, 255, 0.45);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.42);
  display: flex;
  font-size: 0.75rem;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 1.5rem;
}

.footer-bottom a {
  color: inherit;
}

/* Motion */
.tilt-surface {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.25s ease;
  will-change: transform;
}

.system-card.tilt-surface {
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(1.5deg);
}

.reveal.tilt-surface {
  transform: perspective(1100px) translateY(22px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.reveal.is-visible.tilt-surface {
  transform: perspective(1100px) translateY(0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.tilt-surface > * {
  transform-style: preserve-3d;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 244, 59, 0.35); }
  50% { box-shadow: 0 0 0 7px rgba(201, 244, 59, 0); }
}

@keyframes floatOne {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(1deg); }
  50% { transform: translate3d(-8px, -14px, 22px) rotate(-2deg); }
}

@keyframes floatTwo {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(10px, 12px, 16px) rotate(2deg); }
}

@keyframes orbitOne {
  from { transform: rotateX(68deg) rotateZ(0deg); }
  to { transform: rotateX(68deg) rotateZ(360deg); }
}

@keyframes orbitTwo {
  from { transform: rotateY(68deg) rotateZ(20deg); }
  to { transform: rotateY(68deg) rotateZ(380deg); }
}

@keyframes orbitThree {
  from { transform: rotateX(58deg) rotateY(56deg) rotateZ(0deg); }
  to { transform: rotateX(58deg) rotateY(56deg) rotateZ(360deg); }
}

@keyframes cubeSpin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to { transform: rotateX(342deg) rotateY(360deg); }
}

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

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .about-story,
  .contact-grid,
  .spatial-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 9rem;
  }

  .hero-copy {
    max-width: 800px;
  }

  .system-card {
    margin: 0 auto;
    max-width: 560px;
    transform: none;
    width: 100%;
  }

  .universe-shell {
    margin: 0 auto;
    max-width: 650px;
    width: 100%;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  .section-heading > p {
    flex: auto;
    max-width: 600px;
  }

  .deliverables {
    grid-template-columns: 1fr;
  }

  .deliverables-intro {
    position: static;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .process-step:last-child {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .engagement-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 1.1rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    align-items: stretch;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 0;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 6rem 1.5rem 2rem;
    pointer-events: none;
    position: fixed;
    transform: translateY(-12px);
    transition: 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links > a:not(.button) {
    border-bottom: 1px solid var(--line);
    font-size: 1.6rem;
    padding: 1rem 0;
  }

  .nav-links .button {
    margin-top: 1.5rem;
  }

  .hero {
    min-height: auto;
    padding: 8.5rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

  .system-card {
    min-height: auto;
  }

  .hero-float {
    display: none;
  }

  .universe-shell {
    min-height: 440px;
  }

  .universe {
    height: 330px;
    transform: translate(-50%, -50%) rotateX(4deg) scale(0.84);
    width: 330px;
  }

  .node-status {
    display: none;
  }

  .capability-row {
    align-items: start;
    flex-direction: column;
  }

  .capability-list {
    justify-content: flex-start;
  }

  .outcome-grid,
  .service-grid,
  .engagement-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .service-card.wide {
    grid-column: auto;
  }

  .outcome-index {
    margin-bottom: 2rem;
  }

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

  .process-step {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: auto;
    padding: 2rem 0;
  }

  .process-step:last-child {
    border-right: 0;
  }

  .process-step h3 {
    margin: 2.5rem 0 0.8rem;
  }

  .service-detail {
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .detail-columns,
  .form-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 9rem 0 4.5rem;
  }

  .story-statement {
    min-height: 390px;
  }

  .form-footer,
  .cta-panel,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .button,
  .cta-panel .button {
    width: 100%;
  }

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

  .footer-intro {
    grid-column: 1 / -1;
  }
}

@media (hover: none), (pointer: coarse) {
  .tilt-surface,
  .system-card.tilt-surface,
  .reveal.tilt-surface,
  .reveal.is-visible.tilt-surface {
    transform: none;
  }

  .system-card .pipeline-node:hover {
    transform: translateZ(8px);
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: 0.86rem;
  }

  .brand-mark {
    height: 34px;
    width: 34px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .system-metrics {
    grid-template-columns: 1fr;
  }

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

  .footer-intro {
    grid-column: auto;
  }
}
