:root {
  --bg: #070a12;
  --bg-soft: #0d1220;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --muted: #a5afc4;
  --dim: #6f7a92;
  --blue: #8ab4ff;
  --cyan: #7de7ff;
  --violet: #b69cff;
  --green: #67f0b5;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(138, 180, 255, 0.22), transparent 35%),
    radial-gradient(circle at 10% 20%, rgba(182, 156, 255, 0.16), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(125, 231, 255, 0.38) 0 1px, transparent 1px);
  background-position: 0 0, 34px 52px;
  background-size: 110px 110px, 170px 170px;
  content: "";
  opacity: 0.16;
}

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

h1,
h2,
h3 {
  font-family: "Space Grotesk", "DM Sans", Arial, sans-serif;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 1100px;
  margin-bottom: 26px;
  font-size: clamp(4rem, 10vw, 9.6rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.75rem;
  line-height: 1.08;
}

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

.ambient,
.grid-bg {
  position: fixed;
  pointer-events: none;
}

.ambient {
  z-index: -3;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.33;
}

.ambient-one {
  top: 14vh;
  right: -12vw;
  background: var(--blue);
}

.ambient-two {
  bottom: -18vw;
  left: -14vw;
  background: var(--violet);
}

.grid-bg {
  inset: auto 0 0;
  z-index: -2;
  height: 45vh;
  background:
    linear-gradient(rgba(125, 231, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 231, 255, 0.15) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(transparent, black 35%, transparent);
  opacity: 0.28;
  transform: perspective(700px) rotateX(58deg) translateY(12vh);
  transform-origin: bottom center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 10, 18, 0.64);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(138, 180, 255, 0.22), rgba(125, 231, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand strong {
  font-size: 0.95rem;
}

.brand small,
.eyebrow,
footer,
.client-tag,
.project-top,
.project-footer,
.signal-row {
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brand small {
  color: var(--dim);
  font-size: 0.68rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

nav a:last-child {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text);
}

nav a:hover {
  color: white;
}

.hero,
.section {
  width: min(1280px, 90vw);
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: calc(100vh - 78px);
  align-content: center;
  padding: 96px 0 72px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-text {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.36rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #f5f7fb, #a7c7ff);
  color: #07101c;
  box-shadow: 0 18px 45px rgba(138, 180, 255, 0.22);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 700;
}

.signal-row span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.signal-row strong {
  color: var(--green);
}

.section {
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.project-card,
.method-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.project-card {
  display: grid;
  min-height: 390px;
  align-content: space-between;
  gap: 34px;
  padding: 30px;
}

.project-card.active::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 12%, rgba(125, 231, 255, 0.23), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(182, 156, 255, 0.18), transparent 35%);
  content: "";
}

.card-orbit {
  position: absolute;
  top: 26px;
  right: 28px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(125, 231, 255, 0.25);
  border-radius: 50%;
}

.card-orbit::after {
  position: absolute;
  top: 18px;
  right: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 26px var(--cyan);
  content: "";
}

.project-top,
.project-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--dim);
  font-size: 0.7rem;
  font-weight: 700;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.status-dot.muted {
  background: var(--dim);
  box-shadow: none;
}

.client-tag {
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-card p {
  max-width: 620px;
  color: var(--muted);
}

.project-card.empty {
  opacity: 0.72;
}

.method-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.method-copy p:last-child {
  max-width: 520px;
  color: var(--muted);
}

.method-grid {
  display: grid;
  gap: 14px;
}

.method-grid article {
  padding: 24px;
}

.method-grid span {
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.method-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4vw;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--dim);
  font-size: 0.7rem;
}

@media (max-width: 860px) {
  .site-header,
  nav,
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-header {
    padding: 16px 5vw;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.6rem);
  }

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

  .project-grid,
  .method-section {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 330px;
  }

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