/* ---------------------------------------------------------
   Wist Labs — site styles
   Type: Space Grotesk + IBM Plex Mono (self-hosted, OFL)
   --------------------------------------------------------- */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --bg: #07080a;
  --bg-soft: #0a0c0f;
  --surface: #0e1115;
  --text: #f1f3ec;
  --muted: #9da3ad;
  --dim: #707781;
  --line: rgba(239, 243, 232, 0.1);
  --line-strong: rgba(239, 243, 232, 0.18);
  --accent: #c9ff5a;
  --accent-bright: #dcff8a;
  --accent-ink: #0b0e06;
  --violet: #8c7bff;
  --mint: #7af0d0;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 82px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --font-display: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 84% 4%, rgba(140, 123, 255, 0.1), transparent 32rem),
    radial-gradient(circle at 4% 18%, rgba(201, 255, 90, 0.055), transparent 28rem),
    radial-gradient(circle at 60% 78%, rgba(122, 240, 208, 0.025), transparent 30rem);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::selection,
body *::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

[hidden] {
  display: none !important;
}

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

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

button {
  color: inherit;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

main:focus {
  outline: none;
}

html {
  scrollbar-color: #2d332b var(--bg);
  scrollbar-width: thin;
}

.shell {
  position: relative;
  width: min(1240px, calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signal {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(201, 255, 90, 0.85);
  animation: signal-pulse 2.8s ease-in-out infinite;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}

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

.page-glow {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    620px circle at var(--mx, 72%) var(--my, 18%),
    rgba(201, 255, 90, 0.055),
    transparent 68%
  );
  transition: opacity 0.4s ease;
}

body.has-pointer .page-glow {
  opacity: 1;
}

.noise {
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------
   Header + navigation
   --------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 8, 10, 0.8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background: rgba(7, 8, 10, 0.97);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0 24px rgba(201, 255, 90, 0.14);
  color: var(--accent-ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-7deg) scale(1.04);
}

.brand-name {
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  position: relative;
  padding: 0.65rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

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

.site-nav .nav-contact {
  margin-left: 0.35rem;
  border-color: var(--line-strong);
  color: var(--text);
}

.site-nav .nav-contact:hover {
  border-color: rgba(201, 255, 90, 0.42);
  background: rgba(201, 255, 90, 0.06);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.menu-toggle:hover {
  border-color: rgba(201, 255, 90, 0.4);
  background: rgba(201, 255, 90, 0.05);
}

.menu-line {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.28s var(--ease),
    opacity 0.2s ease;
}

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

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

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.82fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 6rem));
  padding-bottom: clamp(3rem, 7vh, 5rem);
}

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

.hero h1 {
  max-width: 11ch;
  margin-bottom: 1.65rem;
  font-size: clamp(3rem, 7.6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.accent-word {
  position: relative;
  color: var(--accent);
  text-shadow: 0 0 48px rgba(201, 255, 90, 0.13);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 0.25s var(--ease);
}

.button:hover svg {
  transform: translateX(3px);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 10px 34px rgba(201, 255, 90, 0.12);
  color: var(--accent-ink);
}

.button-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 14px 42px rgba(201, 255, 90, 0.18);
  transform: translateY(-2px);
}

.button-quiet {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.button-quiet:hover {
  border-color: rgba(201, 255, 90, 0.38);
  background: rgba(201, 255, 90, 0.05);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 520px);
  aspect-ratio: 1;
}

.stage-glow {
  position: absolute;
  z-index: -1;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 48%,
    rgba(201, 255, 90, 0.19),
    rgba(140, 123, 255, 0.09) 42%,
    transparent 70%
  );
  filter: blur(36px);
}

.stage-grid {
  position: absolute;
  inset: 1%;
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 69%);
  mask-image: radial-gradient(circle, #000 18%, transparent 69%);
  opacity: 0.62;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  translate: -50% -50%;
}

.ring-outer {
  width: 96%;
  height: 96%;
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.ring-outer::before,
.ring-outer::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(201, 255, 90, 0.75);
  box-shadow: 0 0 14px rgba(201, 255, 90, 0.55);
}

.ring-outer::before {
  top: 16%;
  left: 12%;
}

.ring-outer::after {
  right: 8%;
  bottom: 22%;
  background: rgba(140, 123, 255, 0.8);
  box-shadow: 0 0 14px rgba(140, 123, 255, 0.6);
}

.ring-dashed {
  width: 78%;
  height: 78%;
  border: 1px dashed rgba(201, 255, 90, 0.2);
  animation: spin 52s linear infinite;
}

.ring-inner {
  width: 59%;
  height: 59%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.crosshair {
  position: absolute;
  width: 11px;
  height: 11px;
  opacity: 0.6;
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.28);
}

.crosshair::before {
  top: 5px;
  left: 0;
  width: 11px;
  height: 1px;
}

.crosshair::after {
  top: 0;
  left: 5px;
  width: 1px;
  height: 11px;
}

.crosshair-tl {
  top: 8%;
  left: 8%;
}

.crosshair-tr {
  top: 8%;
  right: 8%;
}

.crosshair-bl {
  bottom: 12%;
  left: 8%;
}

.crosshair-br {
  right: 8%;
  bottom: 12%;
}

.core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 42%;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10% 0;
  border: 1px solid rgba(201, 255, 90, 0.32);
  border-radius: 29%;
  background:
    radial-gradient(circle at 34% 22%, rgba(201, 255, 90, 0.14), transparent 34%),
    linear-gradient(145deg, #171d13, #090b08 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -22px 50px rgba(0, 0, 0, 0.55),
    0 26px 70px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(201, 255, 90, 0.075);
  transform: translate(-50%, -50%) rotate(-6deg);
  animation: core-float 7s ease-in-out infinite;
}

.core::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 25%;
  pointer-events: none;
}

.core-label {
  color: rgba(241, 243, 236, 0.48);
  font-family: var(--font-mono);
  font-size: clamp(0.45rem, 0.8vw, 0.55rem);
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: rotate(6deg);
}

.core-label-bottom {
  color: rgba(201, 255, 90, 0.64);
}

.core-letter {
  color: var(--text);
  font-size: clamp(4.5rem, 9vw, 7.7rem);
  font-weight: 500;
  line-height: 0.62;
  letter-spacing: -0.09em;
  text-shadow:
    0 0 38px rgba(201, 255, 90, 0.2),
    0 0 1px rgba(255, 255, 255, 0.5);
  transform: rotate(6deg);
}

.orbit-tag {
  position: absolute;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 13, 9, 0.78);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.orbit-tag-apps {
  top: 13%;
  left: 0;
  border-color: rgba(201, 255, 90, 0.28);
  color: var(--accent);
  transform: rotate(-8deg);
  animation: float-soft 6s ease-in-out infinite;
}

.orbit-tag-games {
  right: 0;
  bottom: 16%;
  border-color: rgba(140, 123, 255, 0.28);
  color: #beb4ff;
  transform: rotate(7deg);
  animation: float-soft 7s 0.7s ease-in-out infinite;
}

.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(201, 255, 90, 0.8);
  animation: spark-pulse 4.5s ease-in-out infinite;
}

.spark-one {
  top: 26%;
  right: 14%;
}

.spark-two {
  bottom: 26%;
  left: 13%;
  width: 3px;
  height: 3px;
  animation-delay: 1.5s;
}

.spark-three {
  top: 57%;
  right: 5%;
  width: 3px;
  height: 3px;
  background: var(--violet);
  box-shadow: 0 0 16px rgba(140, 123, 255, 0.8);
  animation-delay: 0.8s;
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(5.5rem, 10vw, 9rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head > .eyebrow {
  padding-top: 0.65rem;
}

.section-heading h1,
.section-heading h2 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

/* ---------------------------------------------------------
   Studio
   --------------------------------------------------------- */

.studio {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0) 55%),
    #080a0c;
}

.studio::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -18%;
  width: 68vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 123, 255, 0.09), transparent 65%);
  filter: blur(28px);
  pointer-events: none;
}

.studio-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.studio-facts > div {
  padding: 1.4rem 1.5rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.studio-facts dt {
  margin-bottom: 0.55rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio-facts dd {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  letter-spacing: -0.02em;
}

.studio-facts dd.fact-accent {
  color: var(--accent);
}

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */

.contact-section {
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.contact-email {
  margin-top: 1.6rem;
}

.email-link {
  display: inline-block;
  padding-bottom: 0.12em;
  border-bottom: 1px solid rgba(201, 255, 90, 0.35);
  color: var(--text);
  font-size: clamp(1.2rem, 2.8vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: -0.04em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.email-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-row {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.15rem;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  line-height: 1.5;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease;
}

.copy-button:hover,
.copy-button.is-copied {
  color: var(--accent);
}

.copy-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.copy-feedback {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-feedback.is-visible {
  opacity: 1;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin-bottom: 0;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Not found
   --------------------------------------------------------- */

.error-main {
  display: flex;
  min-height: 86svh;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.error-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.error-inner h1 {
  max-width: 10ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.94;
}

.error-lede {
  max-width: 40ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.error-code {
  position: absolute;
  right: -0.05em;
  bottom: -0.06em;
  color: transparent;
  font-size: clamp(9rem, 27vw, 24rem);
  font-weight: 500;
  line-height: 0.7;
  letter-spacing: -0.09em;
  pointer-events: none;
  -webkit-text-stroke: 1px rgba(201, 255, 90, 0.11);
  user-select: none;
}

/* ---------------------------------------------------------
   Motion + reveal
   --------------------------------------------------------- */

.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}

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

@keyframes signal-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.84);
  }
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes core-float {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-6deg);
  }
  50% {
    transform: translate(-50%, calc(-50% - 8px)) rotate(-4.5deg);
  }
}

@keyframes float-soft {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes spark-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--header-h) + clamp(3.5rem, 9vh, 6rem));
    padding-bottom: clamp(4rem, 8vw, 6rem);
  }

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

  .hero h1 {
    max-width: none;
    font-size: clamp(3.4rem, 8.4vw, 6.2rem);
  }

  .hero-art {
    margin-top: 1rem;
  }

  .stage {
    width: min(100%, 500px);
  }

  .section-head {
    grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  }
}

@media (max-width: 940px) {
  .hero h1 {
    font-size: clamp(3.2rem, 9.4vw, 5.8rem);
  }
}

@media (max-width: 820px) {
  .js .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 6px);
    right: var(--gutter);
    left: var(--gutter);
    z-index: 101;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.7rem;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: rgba(10, 12, 15, 0.98);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52);
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top center;
    transition:
      opacity 0.22s ease,
      transform 0.22s var(--ease),
      visibility 0.22s;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

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

  .site-nav a {
    padding: 0.95rem 1rem;
    border-radius: 12px;
    font-size: 0.68rem;
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .site-nav .nav-contact {
    margin-top: 0.25rem;
    margin-left: 0;
    border-color: var(--line);
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(3rem, 10.2vw, 5.2rem);
  }

  .stage {
    width: min(100%, 460px);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .section-head > .eyebrow {
    padding-top: 0;
  }

  .section-heading h2 {
    max-width: 16ch;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 72px;
    --radius-lg: 24px;
    --radius-md: 20px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .hero {
    padding-top: calc(var(--header-h) + 3.5rem);
    padding-bottom: 3.5rem;
  }

  .hero h1 {
    margin-bottom: 1.35rem;
    font-size: clamp(2.85rem, 12.2vw, 4.3rem);
    letter-spacing: -0.06em;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .hero-actions .button {
    min-height: 46px;
    padding-inline: 1.05rem;
    font-size: 0.58rem;
  }

  .hero-art {
    margin-top: 1.25rem;
  }

  .stage {
    width: min(100%, 390px);
  }

  .core {
    width: 44%;
  }

  .core-letter {
    font-size: 4.2rem;
  }

  .orbit-tag {
    font-size: 0.5rem;
  }

  .studio {
    padding-block: 4.75rem;
  }

  .studio-facts {
    grid-template-columns: 1fr;
  }

  .studio-facts > div {
    padding-right: 0;
  }

  .contact-section {
    padding-bottom: 4.5rem;
  }

  .email-link {
    font-size: clamp(1.08rem, 5.2vw, 1.5rem);
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2.25rem;
  }

  .footer-nav {
    gap: 1.15rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 380px) {
  .brand-name {
    display: none;
  }

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

  .core-letter {
    font-size: 3.5rem;
  }

  .orbit-tag-apps {
    left: -2%;
  }

  .orbit-tag-games {
    right: -2%;
  }
}

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

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

  .reveal-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #c3c8d0;
    --dim: #aab0ba;
    --line: rgba(255, 255, 255, 0.2);
    --line-strong: rgba(255, 255, 255, 0.32);
  }
}
