:root {
  --night: #030713;
  --night-soft: #071022;
  --panel: #09162e;
  --panel-light: #0d2142;
  --ink: #f4f7ff;
  --ink-soft: #c9d3e9;
  --muted: #7f8da9;
  --line: rgba(157, 186, 239, 0.14);
  --line-bright: rgba(164, 197, 255, 0.34);
  --blue: #8aafff;
  --blue-light: #c0d3ff;
  --cyan: #77e6ff;
  --sans: "Helvetica Neue", "Inter", Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
  --content: 1320px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--night);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: #051027;
  background: var(--blue-light);
}

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

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

button {
  color: inherit;
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  color: var(--night);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.site-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 5%, rgba(35, 81, 174, 0.18), transparent 28rem),
    radial-gradient(circle at 7% 45%, rgba(18, 55, 120, 0.12), transparent 36rem),
    var(--night);
}

.grid-plane {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(125, 160, 225, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 160, 225, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
}

.ambient-one {
  top: -20%;
  right: -8%;
  width: 46vw;
  height: 46vw;
  background: #2d66ce;
}

.ambient-two {
  top: 42%;
  left: -18%;
  width: 38vw;
  height: 38vw;
  background: #153d88;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  transition: background 260ms ease, box-shadow 260ms ease;
}

.site-header.is-scrolled {
  background: rgba(3, 7, 19, 0.76);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 64px), 1440px);
  min-height: 86px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  transition: min-height 260ms ease, border-color 260ms ease;
}

.site-header.is-scrolled .nav-shell {
  min-height: 70px;
  border-color: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 0.72rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(192, 211, 255, 0.8);
  place-items: center;
  transform: rotate(45deg);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease;
}

.brand-mark i {
  width: 7px;
  height: 7px;
  background: var(--blue);
  box-shadow: 0 0 17px rgba(138, 175, 255, 0.86);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  border-color: var(--cyan);
  transform: rotate(135deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.8vw, 3rem);
}

.primary-nav a,
.nav-external {
  position: relative;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.52rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.nav-external:hover,
.nav-external:focus-visible {
  color: var(--ink);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-external {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
  align-items: center;
  min-height: 100svh;
  padding: 138px 0 92px;
  gap: clamp(2rem, 5vw, 6rem);
}

.hero::before {
  position: absolute;
  top: 50%;
  left: 55%;
  z-index: -1;
  width: min(72vw, 900px);
  height: min(72vw, 900px);
  content: "";
  border: 1px solid rgba(130, 166, 236, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 110px rgba(130, 166, 236, 0.022),
    0 0 0 220px rgba(130, 166, 236, 0.016);
  transform: translate(-50%, -50%);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 2rem;
  gap: 1rem;
  color: var(--blue-light);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span + span::before {
  display: inline-block;
  width: 2.1rem;
  height: 1px;
  margin: 0 1rem 0.18rem 0;
  content: "";
  background: var(--line-bright);
}

.hero-eyebrow {
  opacity: 0;
  animation: hero-enter 760ms 100ms ease forwards;
}

.hero h1,
.engine-intro h2,
.section-heading h2,
.creations-copy h2,
.about-grid h2,
.contact-grid h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(5rem, 9vw, 9.2rem);
  line-height: 0.76;
  opacity: 0;
  animation: hero-enter 950ms 180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 span {
  display: block;
}

.hero-title-outline {
  padding-bottom: 0.12em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(206, 220, 249, 0.62);
}

.hero-intro {
  max-width: 610px;
  margin: 2.15rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.72;
  opacity: 0;
  animation: hero-enter 850ms 300ms ease forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  gap: 0.75rem;
  opacity: 0;
  animation: hero-enter 850ms 400ms ease forwards;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 205px;
  min-height: 54px;
  padding: 0 1.2rem;
  border: 1px solid var(--line-bright);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  color: #061027;
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 14px 40px rgba(119, 230, 255, 0.14);
}

.button-secondary {
  color: var(--ink-soft);
  background: rgba(7, 16, 34, 0.5);
  backdrop-filter: blur(10px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--ink);
  background: rgba(17, 38, 76, 0.64);
  border-color: var(--blue);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  margin: clamp(2.8rem, 7vh, 5rem) 0 0;
  gap: clamp(1.8rem, 4vw, 4.3rem);
  opacity: 0;
  animation: hero-enter 850ms 500ms ease forwards;
}

.hero-facts div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-facts dt,
.micro-label {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 500;
}

.hero-stage {
  position: relative;
  z-index: 1;
  perspective: 1300px;
  opacity: 0;
  animation: stage-enter 1200ms 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stage-window {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(154, 190, 255, 0.24);
  background: rgba(6, 15, 34, 0.72);
  box-shadow:
    0 48px 110px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(126, 165, 238, 0.04) inset,
    0 0 90px rgba(34, 79, 170, 0.1);
  backdrop-filter: blur(22px);
  transform: rotateY(var(--tilt-y, -4deg)) rotateX(var(--tilt-x, 1deg));
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms ease;
}

.hero-stage:hover .stage-window {
  border-color: rgba(154, 190, 255, 0.42);
}

.stage-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 1rem;
  color: var(--muted);
  background: rgba(4, 10, 24, 0.78);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.13em;
}

.stage-bar > span:last-child {
  justify-self: end;
}

.stage-dots {
  display: flex;
  gap: 0.36rem;
}

.stage-dots i {
  width: 5px;
  height: 5px;
  background: #3c4e6c;
  border-radius: 50%;
}

.stage-dots i:first-child {
  background: var(--blue);
  box-shadow: 0 0 9px rgba(138, 175, 255, 0.85);
}

.stage-viewport {
  position: relative;
  display: grid;
  min-height: 540px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(60, 118, 229, 0.24), transparent 24%),
    radial-gradient(circle at 50% 52%, rgba(16, 42, 91, 0.75), transparent 66%),
    linear-gradient(145deg, #071228, #020611 72%);
  place-items: center;
}

.stage-viewport::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent 49.9%, rgba(132, 170, 240, 0.12) 50%, transparent 50.1%);
}

.stage-stars {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background-image:
    radial-gradient(circle at 12% 19%, rgba(203, 221, 255, 0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 14%, rgba(203, 221, 255, 0.56) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 36%, rgba(119, 230, 255, 0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 26% 43%, rgba(203, 221, 255, 0.52) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 58%, rgba(203, 221, 255, 0.42) 0 1px, transparent 1.5px),
    radial-gradient(circle at 44% 12%, rgba(203, 221, 255, 0.48) 0 1px, transparent 1.5px);
}

.stage-floor {
  position: absolute;
  bottom: -30%;
  left: -25%;
  width: 150%;
  height: 72%;
  background-image:
    linear-gradient(rgba(104, 153, 240, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 153, 240, 0.17) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent, black 55%, transparent);
  transform: perspective(420px) rotateX(64deg);
  transform-origin: top;
}

.wire-cube {
  position: relative;
  z-index: 3;
  width: 185px;
  height: 185px;
  transform: rotateX(-22deg) rotateY(35deg);
  transform-style: preserve-3d;
  animation: cube-turn 18s linear infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(175, 204, 255, 0.54);
  background:
    linear-gradient(135deg, rgba(118, 163, 255, 0.15), rgba(8, 22, 52, 0.28)),
    linear-gradient(rgba(136, 177, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 177, 255, 0.1) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  box-shadow: 0 0 38px rgba(67, 122, 228, 0.11) inset;
  backface-visibility: visible;
}

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

.stage-orbit {
  position: absolute;
  z-index: 2;
  width: 335px;
  height: 335px;
  border: 1px solid rgba(119, 230, 255, 0.19);
  border-radius: 50%;
}

.stage-orbit::after {
  position: absolute;
  top: 48%;
  left: -3px;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--cyan);
}

.orbit-a {
  transform: rotateX(67deg) rotateZ(8deg);
  animation: orbit-one 12s linear infinite;
}

.orbit-b {
  width: 288px;
  height: 288px;
  border-color: rgba(138, 175, 255, 0.13);
  transform: rotateY(69deg) rotateZ(22deg);
  animation: orbit-two 15s linear infinite reverse;
}

.stage-label {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(188, 207, 243, 0.58);
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.13em;
}

.stage-label i {
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 9px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.label-top { top: 18px; left: 18px; }
.label-left { bottom: 18px; left: 18px; }
.label-right { right: 18px; bottom: 18px; }

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue i {
  display: block;
  width: 56px;
  height: 1px;
  overflow: hidden;
  background: var(--line-bright);
}

.scroll-cue i::after {
  display: block;
  width: 55%;
  height: 1px;
  content: "";
  background: var(--blue-light);
  animation: scroll-line 2.4s ease-in-out infinite;
}

.signal-strip {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 37, 0.58);
}

.signal-strip div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  min-height: 74px;
  padding: 0 2rem;
  gap: clamp(1.4rem, 3vw, 3.4rem);
  color: #aab7d0;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
}

.signal-strip i {
  width: 4px;
  height: 4px;
  background: var(--blue);
  box-shadow: 0 0 9px rgba(138, 175, 255, 0.68);
  transform: rotate(45deg);
}

.content-section,
.contact-section {
  padding: clamp(7rem, 12vw, 11rem) 0;
}

.section-label {
  display: flex;
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  gap: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label span:first-child {
  color: var(--blue-light);
}

.section-label::after {
  width: min(140px, 12vw);
  height: 1px;
  content: "";
  background: var(--line);
}

.engine-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
  align-items: start;
  gap: clamp(3rem, 9vw, 9rem);
}

.engine-intro h2,
.section-heading h2,
.creations-copy h2,
.about-grid h2,
.contact-grid h2 {
  font-size: clamp(3.2rem, 6.4vw, 6.8rem);
  line-height: 0.93;
}

.body-copy {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.body-copy p {
  margin: 0 0 1.35rem;
}

.engine-fact-list {
  margin-top: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
}

.engine-fact-list article {
  display: grid;
  grid-template-columns: 76px 1fr minmax(260px, 0.65fr);
  align-items: center;
  min-height: 154px;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  gap: 2rem;
  transition: padding 300ms ease, background 300ms ease;
}

.engine-fact-list article:hover {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  background: linear-gradient(90deg, rgba(27, 60, 120, 0.28), transparent);
}

.fact-number {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.engine-fact-list h3 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.engine-fact-list article > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.screenshots-section {
  padding: clamp(7rem, 12vw, 11rem) 0;
  background:
    radial-gradient(circle at 92% 6%, rgba(49, 101, 205, 0.15), transparent 32rem),
    #050b19;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(290px, 0.44fr);
  align-items: end;
  margin-bottom: 4rem;
  gap: 3rem;
}

.section-heading p,
.creations-copy > p,
.contact-grid > div > p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  line-height: 1.72;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.76fr);
  gap: 1rem;
}

.gallery-item {
  margin: 0;
}

.gallery-featured {
  grid-row: span 2;
}

.image-slot {
  position: relative;
  display: grid;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(146, 180, 243, 0.2);
  background:
    radial-gradient(circle at 50% 42%, rgba(66, 122, 233, 0.17), transparent 22%),
    linear-gradient(135deg, rgba(12, 30, 65, 0.8), rgba(3, 8, 20, 0.98));
  place-items: center;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms ease;
}

.gallery-featured .image-slot {
  min-height: 640px;
}

.image-slot::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(115, 156, 233, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 156, 233, 0.075) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.image-slot::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(119, 230, 255, 0.72), transparent);
  box-shadow: 0 0 17px rgba(119, 230, 255, 0.32);
  opacity: 0.28;
  animation: scan 5s ease-in-out infinite;
}

.gallery-item:hover .image-slot {
  border-color: rgba(163, 197, 255, 0.42);
  transform: translateY(-4px);
}

.slot-reticle {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(150, 184, 248, 0.13);
  border-radius: 50%;
}

.slot-reticle::before,
.slot-reticle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: rgba(150, 184, 248, 0.13);
  transform: translate(-50%, -50%);
}

.slot-reticle::before { width: 126%; height: 1px; }
.slot-reticle::after { width: 1px; height: 126%; }

.slot-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  text-align: center;
}

.slot-copy span,
.slot-copy small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.49rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.slot-copy strong {
  margin: 0.7rem 0 0.55rem;
  font-size: clamp(1rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.gallery-item figcaption {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-item figcaption span:first-child {
  color: var(--ink-soft);
}

.creations-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.76fr) minmax(0, 1.24fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 9rem);
}

.creations-copy {
  position: sticky;
  top: 7rem;
}

.creations-copy > p {
  max-width: 500px;
  margin-top: 2rem;
}

.creation-slots {
  border-top: 1px solid var(--line);
}

.creation-slot {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  gap: 1.4rem;
  transition: padding 300ms ease, background 300ms ease;
}

.creation-slot:hover {
  padding-right: 1.2rem;
  padding-left: 1.2rem;
  background: linear-gradient(90deg, rgba(26, 59, 117, 0.3), transparent);
}

.slot-index {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-bright);
  color: var(--blue-light);
  font-family: var(--mono);
  font-size: 0.6rem;
  place-items: center;
  transform: rotate(45deg);
}

.creation-slot h3 {
  margin: 0.45rem 0 0.5rem;
  font-size: 1.16rem;
  font-weight: 500;
}

.creation-slot div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.slot-status {
  padding-top: 0.2rem;
  color: #71809d;
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-section {
  width: min(calc(100% - 32px), 1440px);
  padding: 2rem 0;
}

.about-panel {
  position: relative;
  min-height: 700px;
  padding: clamp(2rem, 6vw, 6.2rem);
  overflow: hidden;
  color: #061027;
  background:
    radial-gradient(circle at 88% 25%, rgba(94, 138, 227, 0.27), transparent 29%),
    linear-gradient(135deg, #dce7fb, #acbddf 62%, #8fa9d6);
}

.section-label-dark {
  position: relative;
  z-index: 2;
  color: rgba(6, 16, 39, 0.52);
}

.section-label-dark span:first-child {
  color: #184486;
}

.section-label-dark::after {
  background: rgba(6, 16, 39, 0.16);
}

.about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  align-items: end;
  min-height: 430px;
  gap: clamp(3rem, 9vw, 10rem);
}

.about-grid > div > p {
  max-width: 650px;
  margin: 2rem 0 0;
  color: rgba(6, 16, 39, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.74;
}

.services-card {
  padding: 2rem;
  border: 1px solid rgba(6, 16, 39, 0.18);
  background: rgba(231, 238, 252, 0.2);
  backdrop-filter: blur(12px);
}

.services-card .micro-label {
  color: rgba(6, 16, 39, 0.48);
}

.services-card h3 {
  margin: 1.1rem 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.services-card > p:not(.micro-label) {
  margin: 0 0 1.8rem;
  color: rgba(6, 16, 39, 0.68);
  font-size: 0.9rem;
  line-height: 1.65;
}

.services-card > span {
  display: block;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(6, 16, 39, 0.16);
  color: rgba(6, 16, 39, 0.54);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-orbit {
  position: absolute;
  top: 2%;
  right: -9%;
  width: min(55vw, 670px);
  aspect-ratio: 1;
  border: 1px solid rgba(6, 16, 39, 0.12);
  border-radius: 50%;
  animation: slow-turn 24s linear infinite;
}

.about-orbit::before,
.about-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(6, 16, 39, 0.1);
  border-radius: 50%;
}

.about-orbit::before { inset: 18%; }
.about-orbit::after { inset: 36%; }

.about-orbit i {
  position: absolute;
  top: 19%;
  left: 7%;
  width: 15px;
  height: 15px;
  background: #17468f;
  box-shadow: 0 0 24px rgba(24, 72, 148, 0.38);
  transform: rotate(45deg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(3rem, 9vw, 10rem);
}

.contact-grid > div > p {
  max-width: 500px;
  margin-top: 2rem;
}

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

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 115px;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  transition: padding 300ms ease, background 300ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  padding-right: 1.3rem;
  padding-left: 1.3rem;
  background: linear-gradient(90deg, rgba(27, 61, 120, 0.3), transparent);
}

.contact-links a span {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-links small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-links i {
  color: var(--blue-light);
  font-size: 1.25rem;
  font-style: normal;
  transition: transform 220ms ease;
}

.contact-links a:hover i,
.contact-links a:focus-visible i {
  transform: translate(3px, -3px);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 120px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer > a:last-child {
  justify-self: end;
  transition: color 180ms ease;
}

.site-footer > a:last-child:hover,
.site-footer > a:last-child:focus-visible {
  color: var(--ink);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stage-enter {
  from { opacity: 0; transform: translateY(38px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cube-turn {
  from { transform: rotateX(-22deg) rotateY(35deg); }
  to { transform: rotateX(338deg) rotateY(395deg); }
}

@keyframes orbit-one {
  from { transform: rotateX(67deg) rotateZ(8deg); }
  to { transform: rotateX(67deg) rotateZ(368deg); }
}

@keyframes orbit-two {
  from { transform: rotateY(69deg) rotateZ(22deg); }
  to { transform: rotateY(69deg) rotateZ(382deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}

@keyframes scroll-line {
  0% { transform: translateX(-110%); }
  55%, 100% { transform: translateX(210%); }
}

@keyframes scan {
  0%, 15% { top: 5%; opacity: 0; }
  30% { opacity: 0.28; }
  75% { top: 94%; opacity: 0.28; }
  90%, 100% { top: 94%; opacity: 0; }
}

@keyframes slow-turn {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 150px;
  }

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

  .hero-stage {
    width: min(100%, 760px);
    margin: 2rem auto 4rem;
  }

  .stage-window {
    transform: none;
  }

  .scroll-cue {
    display: none;
  }

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

  .body-copy,
  .section-heading p {
    max-width: 680px;
  }

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

  .gallery-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-featured .image-slot {
    min-height: 540px;
  }

  .creations-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .creations-copy {
    position: static;
  }

  .about-grid {
    grid-template-columns: 1fr;
    align-content: space-between;
  }

  .services-card {
    max-width: 520px;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line-bright);
    background: rgba(8, 18, 38, 0.65);
    place-content: center;
    gap: 6px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--ink);
    transition: transform 220ms ease;
  }

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

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

  .primary-nav {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 6rem 2rem 3rem;
    gap: 1.5rem;
    background: rgba(3, 7, 19, 0.97);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav a {
    width: 100%;
    padding: 0.7rem 0;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.5rem, 8vw, 2.6rem);
    letter-spacing: -0.03em;
    text-transform: none;
  }

  .primary-nav a::after,
  .nav-external {
    display: none;
  }
}

@media (max-width: 720px) {
  .section-shell,
  .nav-shell {
    width: min(calc(100% - 32px), var(--content));
  }

  .nav-shell {
    min-height: 72px;
  }

  .site-header.is-scrolled .nav-shell {
    min-height: 64px;
  }

  .hero {
    padding-top: 118px;
    gap: 1.5rem;
  }

  .hero::before {
    width: 120vw;
    height: 120vw;
  }

  .eyebrow {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .eyebrow span + span::before {
    display: none;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 22vw, 6.2rem);
    line-height: 0.8;
  }

  .hero-intro {
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .hero-facts div:last-child {
    grid-column: 1 / -1;
  }

  .hero-stage {
    margin-top: 1.5rem;
  }

  .stage-window,
  .stage-viewport {
    min-height: 455px;
  }

  .stage-bar {
    grid-template-columns: 1fr auto;
  }

  .stage-bar > span:nth-child(2) {
    display: none;
  }

  .wire-cube {
    width: 132px;
    height: 132px;
  }

  .cube-face {
    background-size: auto, 18px 18px, 18px 18px;
  }

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

  .orbit-a { width: 242px; height: 242px; }
  .orbit-b { width: 210px; height: 210px; }

  .signal-strip div {
    justify-content: flex-start;
  }

  .content-section,
  .contact-section,
  .screenshots-section {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }

  .engine-intro h2,
  .section-heading h2,
  .creations-copy h2,
  .about-grid h2,
  .contact-grid h2 {
    font-size: clamp(2.8rem, 14vw, 4.8rem);
  }

  .engine-fact-list article {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }

  .engine-fact-list article > p {
    grid-column: 2;
  }

  .engine-fact-list article:hover {
    padding-right: 0;
    padding-left: 0;
  }

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

  .gallery-featured {
    grid-column: auto;
  }

  .gallery-featured .image-slot,
  .image-slot {
    min-height: 350px;
  }

  .creation-slot {
    grid-template-columns: 42px 1fr;
  }

  .slot-status {
    grid-column: 2;
  }

  .creation-slot:hover {
    padding-right: 0;
    padding-left: 0;
  }

  .about-section {
    width: min(calc(100% - 16px), 1440px);
    padding: 0.5rem 0;
  }

  .about-panel {
    min-height: 760px;
    padding: 2rem 1.5rem;
  }

  .about-grid {
    min-height: 560px;
  }

  .about-orbit {
    top: 32%;
    right: -45%;
    width: 110vw;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    min-height: 110px;
  }

  .site-footer p {
    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;
  }
}
