:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-soft: #0e1014;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-border: rgba(255, 255, 255, 0.11);
  --text: #f4f3ef;
  --muted: #a4a6ae;
  --lime: #c7ff67;
  --blue: #63b8ff;
  --violet: #9b7bff;
  --orange: #ff8e62;
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);
  --display-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1440px;
  --progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(99, 184, 255, 0.06), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--display-font);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.025;
  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='.6'/%3E%3C/svg%3E");
}

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

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

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transition: transform 180ms ease;
}

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

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-progress span {
  display: block;
  width: calc(var(--progress) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  box-shadow: 0 0 1rem rgba(199, 255, 103, 0.5);
}

.site-header {
  position: fixed;
  top: 1rem;
  right: var(--page-pad);
  left: var(--page-pad);
  z-index: 80;
  display: flex;
  max-width: var(--max-width);
  min-height: 3.25rem;
  margin-inline: auto;
  padding: 0.45rem 0.5rem 0.45rem 0.8rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.58);
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display-font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.67rem;
  letter-spacing: -0.06em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.5vw, 1.4rem);
}

nav a {
  padding: 0.65rem 0.8rem;
  color: #c7c8cd;
  font-size: 0.78rem;
  transition: color 180ms ease, background 180ms ease;
}

nav a:hover {
  color: var(--text);
}

nav .nav-cta {
  padding-inline: 1.1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

nav .nav-cta:hover {
  background: var(--lime);
  color: var(--bg);
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  height: 190vh;
  min-height: 70rem;
}

.hero-sticky {
  position: sticky;
  top: 0;
  display: grid;
  height: 100svh;
  min-height: 40rem;
  padding: 8rem var(--page-pad) 2rem;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-sticky::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 32%;
  content: "";
  background: linear-gradient(transparent, var(--bg));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 76rem);
  text-align: center;
  transform: translateY(calc(var(--hero-progress, 0) * -4rem));
  opacity: calc(1 - var(--hero-progress, 0) * 0.7);
  will-change: transform, opacity;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1,
h2,
h3 {
  font-family: var(--display-font);
}

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 9.2vw, 9.5rem);
  font-weight: 500;
  letter-spacing: -0.078em;
  line-height: 0.91;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(105deg, #f8f6f0 12%, #8dd7ff 47%, #c8ff69 88%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 38rem;
  margin: 2rem auto 1.8rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  padding: 0.75rem 0;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.88rem;
  transition: gap 180ms ease, border-color 180ms ease;
}

.text-link:hover {
  gap: 0.95rem;
  border-color: var(--lime);
}

.hero-glow {
  position: absolute;
  top: 52%;
  left: 50%;
  z-index: -2;
  width: min(85vw, 70rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(calc(0.8 + var(--hero-progress, 0) * 0.45));
  border-radius: 50%;
  opacity: calc(0.75 - var(--hero-progress, 0) * 0.35);
  background:
    radial-gradient(circle at 45% 45%, rgba(199, 255, 103, 0.16), transparent 24%),
    radial-gradient(circle at 58% 48%, rgba(99, 184, 255, 0.22), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(155, 123, 255, 0.12), transparent 58%);
  filter: blur(12px);
  will-change: transform, opacity;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(64vw, 62rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(calc(var(--hero-progress, 0) * 24deg)) scale(calc(0.82 + var(--hero-progress, 0) * 0.32));
  opacity: calc(0.65 - var(--hero-progress, 0) * 0.3);
  will-change: transform;
}

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

.orbit {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.orbit::after {
  position: absolute;
  top: 50%;
  left: -0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 1.5rem rgba(199, 255, 103, 0.9);
}

.orbit-b {
  inset: 14%;
  transform: rotate(80deg);
}

.orbit-b::after {
  background: var(--blue);
  box-shadow: 0 0 1.5rem rgba(99, 184, 255, 0.8);
}

.orbit-c {
  inset: 29%;
  transform: rotate(170deg);
}

.orbit-c::after {
  background: var(--violet);
  box-shadow: 0 0 1.5rem rgba(155, 123, 255, 0.8);
}

.core {
  inset: 43%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 3rem rgba(255, 255, 255, 0.4);
}

.hero-caption {
  position: absolute;
  right: var(--page-pad);
  bottom: 1.4rem;
  left: var(--page-pad);
  display: flex;
  justify-content: space-between;
  color: #70737c;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-pad {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(7rem, 13vw, 13rem) var(--page-pad);
}

.statement {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.statement h2 {
  max-width: 70rem;
  margin: 0;
  color: #777a82;
  font-size: clamp(2.5rem, 6.4vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.statement h2 span {
  color: var(--text);
}

.story {
  position: relative;
  display: grid;
  max-width: var(--max-width);
  min-height: 330vh;
  margin-inline: auto;
  padding-inline: var(--page-pad);
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  gap: clamp(2rem, 6vw, 7rem);
}

.story-stage {
  position: sticky;
  top: 15vh;
  height: 70vh;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: clamp(1.5rem, 3vw, 3rem);
  background:
    radial-gradient(circle at calc(35% + var(--story-progress, 0) * 35%) 48%, rgba(99, 184, 255, 0.16), transparent 30%),
    linear-gradient(145deg, #11141a, #0b0c0f 65%);
  box-shadow: 0 3rem 8rem rgba(0, 0, 0, 0.28);
}

.stage-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 3.4rem 3.4rem;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.stage-number {
  position: absolute;
  top: 1.6rem;
  left: 1.8rem;
  z-index: 3;
  color: rgba(255, 255, 255, 0.38);
  font: 500 0.72rem/1 var(--display-font);
  letter-spacing: 0.15em;
}

.stage-label {
  position: absolute;
  right: 1.8rem;
  bottom: 1.5rem;
  z-index: 3;
  font: 500 clamp(1.7rem, 3vw, 3rem)/1 var(--display-font);
  letter-spacing: -0.055em;
}

.stage-object {
  position: absolute;
  inset: 15%;
  transform: rotate(calc(-12deg + var(--story-progress, 0) * 46deg)) scale(calc(0.86 + var(--story-progress, 0) * 0.17));
  transition: filter 700ms ease;
  will-change: transform;
}

.object-ring,
.object-plane,
.object-dot {
  position: absolute;
  display: block;
}

.object-ring {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.ring-one {
  inset: 5% 16% 16% 5%;
  transform: rotateX(62deg) rotateZ(12deg);
  box-shadow: inset 0 0 4rem rgba(99, 184, 255, 0.08);
}

.ring-two {
  inset: 28% 3% 3% 28%;
  border-color: rgba(199, 255, 103, 0.38);
  transform: rotateY(58deg) rotateZ(-18deg);
}

.object-plane {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(4px);
}

.plane-one {
  inset: 21% 18%;
  transform: skew(-8deg, 8deg) rotate(9deg);
}

.plane-two {
  inset: 32% 29%;
  transform: skew(11deg, -5deg) rotate(-22deg);
  background: linear-gradient(135deg, rgba(99, 184, 255, 0.13), rgba(199, 255, 103, 0.06));
}

.object-dot {
  top: calc(18% + var(--story-progress, 0) * 55%);
  left: calc(25% + var(--story-progress, 0) * 50%);
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 2.5rem var(--lime);
}

.story-copy {
  padding-bottom: 20vh;
}

.story-intro {
  min-height: 80vh;
  padding-top: 15vh;
}

.story-intro h2,
.section-heading h2,
.principles h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5.3vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1;
}

.story-step {
  display: grid;
  min-height: 80vh;
  padding: 8rem 0;
  align-content: center;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  opacity: 0.48;
  transition: opacity 550ms ease;
}

.story-step.is-active {
  opacity: 1;
}

.step-index,
.card-index {
  padding-top: 0.5rem;
  color: var(--lime);
  font: 500 0.7rem/1 var(--display-font);
  letter-spacing: 0.12em;
}

.story-step h3 {
  max-width: 29rem;
  margin: 0 0 1.4rem;
  font-size: clamp(2rem, 3.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.story-step p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.services {
  padding-top: clamp(9rem, 16vw, 16rem);
}

.section-heading {
  display: grid;
  margin-bottom: clamp(3.5rem, 8vw, 7rem);
  grid-template-columns: 0.65fr 1.35fr;
  gap: 2rem;
}

.section-heading h2 {
  max-width: 56rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.service-card {
  position: relative;
  min-height: 34rem;
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: 1.8rem;
  background: var(--surface);
  transition: transform 350ms ease, border-color 350ms ease, background 350ms ease;
}

.service-card:hover {
  transform: translateY(-0.45rem);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.075);
}

.card-product,
.card-design {
  grid-column: span 6;
}

.card-code {
  min-height: 27rem;
  grid-column: 3 / span 8;
}

.service-card h3 {
  position: absolute;
  right: 2rem;
  bottom: 5.8rem;
  left: 2rem;
  margin: 0;
  font-size: clamp(1.7rem, 2.7vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.service-card p {
  position: absolute;
  right: 2rem;
  bottom: 1.8rem;
  left: 2rem;
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.card-art {
  position: absolute;
  inset: 3rem 2rem 11rem;
}

.art-product span {
  position: absolute;
  width: 55%;
  height: 48%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.art-product span:nth-child(1) {
  top: 8%;
  left: 5%;
  transform: rotate(-9deg);
}

.art-product span:nth-child(2) {
  top: 20%;
  right: 4%;
  transform: rotate(7deg);
  background: linear-gradient(135deg, rgba(99, 184, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.art-product span:nth-child(3) {
  bottom: 0;
  left: 23%;
  background: linear-gradient(135deg, rgba(199, 255, 103, 0.08), rgba(255, 255, 255, 0.03));
}

.art-design {
  display: grid;
  place-items: center;
}

.art-design span {
  position: absolute;
  width: min(55%, 13rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 38% 62% 64% 36% / 46% 39% 61% 54%;
}

.art-design span:nth-child(1) { transform: rotate(0deg); }
.art-design span:nth-child(2) { transform: rotate(45deg) scale(0.83); border-color: rgba(99, 184, 255, 0.35); }
.art-design span:nth-child(3) { transform: rotate(90deg) scale(0.64); border-color: rgba(199, 255, 103, 0.35); }
.art-design span:nth-child(4) { width: 10%; border: 0; border-radius: 50%; background: #f6f4ef; box-shadow: 0 0 3rem rgba(255, 255, 255, 0.5); }

.art-code {
  display: grid;
  place-items: center;
}

.art-code::before,
.art-code::after {
  position: absolute;
  width: 35%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.art-code::before { transform: translateX(-85%) rotate(90deg); }
.art-code::after { transform: translateX(85%) rotate(90deg); }

.art-code span {
  color: transparent;
  background: linear-gradient(120deg, var(--blue), var(--lime));
  background-clip: text;
  -webkit-background-clip: text;
  font: 500 clamp(4rem, 9vw, 8rem)/1 var(--display-font);
  letter-spacing: -0.12em;
  filter: drop-shadow(0 0 2rem rgba(99, 184, 255, 0.2));
}

.principles {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 9vw, 10rem);
}

.principles-sticky {
  position: sticky;
  top: 28vh;
  height: fit-content;
}

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

.principles-list li {
  display: grid;
  min-height: 12rem;
  padding: 2rem 0;
  align-items: center;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.principles-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.principles-list span {
  color: var(--muted);
  font-size: 0.7rem;
}

.principles-list strong {
  font: 500 clamp(1.5rem, 3vw, 3.1rem)/1.1 var(--display-font);
  letter-spacing: -0.05em;
}

.contact {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: 8rem var(--page-pad);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact h2 {
  max-width: 64rem;
  font-size: clamp(3.2rem, 8vw, 8rem);
}

.contact-button {
  display: inline-flex;
  min-width: min(100%, 19rem);
  margin-top: 3rem;
  padding: 1.1rem 1.3rem 1.1rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 220ms ease, background 220ms ease;
}

.contact-button:hover {
  transform: scale(1.025);
  background: var(--lime);
}

.contact-glow {
  position: absolute;
  z-index: -1;
  width: min(100vw, 76rem);
  aspect-ratio: 1.8;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(99, 184, 255, 0.17), rgba(155, 123, 255, 0.07) 42%, transparent 70%);
  filter: blur(16px);
}

footer {
  display: grid;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 2rem var(--page-pad) 3rem;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  color: #7c7f87;
  font-size: 0.72rem;
}

footer p {
  margin: 0;
}

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

.footer-brand {
  color: var(--text);
}

@media (max-width: 900px) {
  .story {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .story-stage {
    top: 6.5rem;
    z-index: 4;
    height: 46vh;
    min-height: 20rem;
  }

  .story-copy {
    margin-top: -1rem;
    padding-bottom: 4rem;
  }

  .story-intro {
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .story-step {
    min-height: 70vh;
    padding: 7rem 0;
  }

  .section-heading,
  .principles {
    grid-template-columns: 1fr;
  }

  .principles-sticky {
    position: static;
  }

  .principles-list li {
    min-height: 9rem;
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 1.1rem;
  }

  .site-header {
    top: 0.65rem;
    right: 0.65rem;
    left: 0.65rem;
  }

  .brand > span:last-child,
  nav a:not(.nav-cta) {
    display: none;
  }

  nav .nav-cta {
    padding-inline: 1.2rem;
  }

  .hero {
    height: 160vh;
    min-height: 62rem;
  }

  .hero-sticky {
    min-height: 36rem;
    padding-top: 6.5rem;
  }

  h1 {
    font-size: clamp(3.15rem, 17vw, 5.4rem);
  }

  .hero-orbit {
    width: 125vw;
  }

  .hero-glow {
    width: 145vw;
  }

  .hero-caption span:first-child {
    display: none;
  }

  .hero-caption {
    justify-content: center;
  }

  .statement {
    min-height: 72vh;
  }

  .statement h2 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }

  .story {
    padding-inline: 0.75rem;
  }

  .story-stage {
    top: 5.7rem;
    height: 42vh;
    border-radius: 1.4rem;
  }

  .story-copy {
    padding-inline: 0.35rem;
  }

  .story-step {
    min-height: 72vh;
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
  }

  .stage-label {
    right: 1.2rem;
    bottom: 1.1rem;
  }

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

  .card-product,
  .card-design,
  .card-code {
    min-height: 31rem;
    grid-column: auto;
  }

  .service-card h3,
  .service-card p {
    right: 1.4rem;
    left: 1.4rem;
  }

  .service-card h3 {
    bottom: 6.2rem;
  }

  .principles-list li {
    grid-template-columns: 2rem 1fr;
  }

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

  footer p:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-copy,
  .hero-glow,
  .hero-orbit,
  .stage-object {
    transform: none !important;
    opacity: 1 !important;
  }

  .story-step {
    opacity: 1;
  }
}
