body {
  isolation: isolate;
  background: transparent;
}
.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.nebula {
  position: absolute;
  width: 70vw;
  height: 70vw;
  min-width: 650px;
  min-height: 650px;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.16;
  will-change: transform;
}
.nebula-one {
  left: -35%;
  top: -45%;
  background: radial-gradient(ellipse, #bd93f9 0%, #5038a9 30%, transparent 66%);
  animation: nebula-drift 25s ease-in-out infinite alternate;
}
.nebula-two {
  right: -40%;
  bottom: -70%;
  background: radial-gradient(ellipse, #8be9fd 0%, #ff79c6 25%, transparent 64%);
  animation: nebula-drift 32s ease-in-out infinite alternate-reverse;
}
.ambient-grid {
  position: absolute;
  inset: -80px;
  background-image:
    linear-gradient(#bd93f90a 1px, transparent 1px),
    linear-gradient(90deg, #bd93f90a 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(transparent, #0008 35%, transparent);
  animation: grid-drift 60s linear infinite;
}
.ambient-stars {
  position: absolute;
  inset: -100px;
  background-image:
    radial-gradient(circle, #bd93f944 1px, transparent 1.5px),
    radial-gradient(circle, #8be9fd33 0.7px, transparent 1.5px);
  background-size:
    173px 193px,
    251px 227px;
  background-position:
    15px 34px,
    95px 110px;
  animation: star-drift 45s linear infinite alternate;
}
.ambient-scene.is-paused * {
  animation-play-state: paused;
}
.cursor-halo {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  z-index: 12;
  opacity: 0;
  transition: opacity 0.35s;
  will-change: transform;
}
.cursor-halo::before {
  content: '';
  position: absolute;
  left: -18px;
  top: -15px;
  width: 48px;
  height: 48px;
  background: radial-gradient(
    circle,
    #eef3ff33 0%,
    #c3d2ff29 18%,
    #9db9ff14 38%,
    #aabaff06 55%,
    transparent 72%
  );
  border-radius: 50%;
}
.cursor-halo.visible {
  opacity: 1;
}
.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 23%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, currentColor 6%, transparent);
  box-shadow: inset 0 1px 0 #ffffff09;
  transition:
    transform 0.35s,
    box-shadow 0.35s;
}
.service-icon svg {
  width: 29px;
  height: 29px;
}
.service-grid article:hover .service-icon {
  transform: translateY(-3px) rotate(-4deg);
  box-shadow: 0 0 25px #bd93f918;
}
.service-grid article {
  background: linear-gradient(140deg, #25263788, #191b2a55);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.service-grid article::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, #bd93f908, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.9s;
  pointer-events: none;
}
.service-grid article:hover::after {
  transform: translateX(130%);
}
.hero {
  background: radial-gradient(ellipse at 75% 40%, #36235424, transparent 60%);
}
.lab,
.contact {
  background-color: #151622dd;
}
.button.primary {
  box-shadow: 0 4px 20px #bd93f91b;
}
.button.primary:hover {
  box-shadow: 0 8px 30px #bd93f933;
}
.asteroid-panel {
  box-shadow:
    inset 0 1px 0 #ffffff05,
    0 20px 60px #0002;
}
@keyframes nebula-drift {
  to {
    transform: translate3d(18vw, 12vh, 0) scale(1.2) rotate(15deg);
  }
}
@keyframes grid-drift {
  to {
    transform: translateY(80px);
  }
}
@keyframes star-drift {
  to {
    transform: translate3d(35px, -70px, 0);
  }
}
/* B: Aurora — softer panels and green/cyan light, suitable for an agricultural focus. */
html[data-design='aurora'] {
  --sans: 'Space Grotesk', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --bg: #11121a;
  --panel: #191a21;
  --line: #303246;
  --muted: #a0a5bd;
  --primary-hover-bg: #8be9fd26;
  --primary-hover-fg: #f8f8f2;
}
[data-design='aurora'] header {
  background: #11121af2;
}
[data-design='aurora'] .nebula-one {
  background: radial-gradient(ellipse, #50fa7b 0%, #44475a 30%, transparent 66%);
  opacity: 0.07;
}
[data-design='aurora'] .nebula-two {
  background: radial-gradient(ellipse, #bd93f9 0%, #8be9fd 30%, transparent 64%);
  opacity: 0.06;
}
[data-design='aurora'] .hero {
  background: transparent;
}
[data-design='aurora'] .hero-grid {
  gap: 65px;
}
[data-design='aurora'] .service-grid article {
  border-radius: 20px;
  background: linear-gradient(140deg, #191a21b3, #11121a80);
}
[data-design='aurora'] .service-icon {
  border-radius: 50%;
}
[data-design='aurora'] .lab,
[data-design='aurora'] .contact {
  background: #15161ee6;
}
[data-design='aurora'] .workspace,
[data-design='aurora'] .asteroid-panel {
  border-radius: 18px;
  border-color: var(--line);
}
[data-design='aurora'] .window-bar {
  background: #1b1c25;
}
[data-design='aurora'] .output {
  background: #191a21;
}
[data-design='aurora'] .editor {
  background: #191a21;
}
[data-design='aurora'] .tabs button[aria-selected='true'] {
  background: #50fa7b08;
}
[data-design='aurora'] .button {
  border-radius: 30px;
}
[data-design='aurora'] .button.primary {
  background: #8be9fd14;
  border-color: #8be9fd55;
  color: var(--cyan);
  box-shadow: none;
}
[data-design='aurora'] input,
[data-design='aurora'] select,
[data-design='aurora'] textarea {
  background: #191a21;
  border-color: #44475a;
}
[data-design='aurora'] .terminal {
  background: #191a21;
}
[data-design='aurora'] .ambient-grid {
  opacity: 0.35;
}
/* C: Studio — a precise developer aesthetic, tighter geometry and terminal accents. */
html[data-design='terminal'] {
  --sans: 'IBM Plex Mono', monospace;
  --mono: 'IBM Plex Mono', monospace;
  --bg: #15161e;
  --panel: #1b1c25;
  --line: #343645;
  --muted: #a0a5bd;
  --primary-hover-bg: #bd93f926;
  --primary-hover-fg: #f8f8f2;
}
[data-design='terminal'] header {
  background: #15161ef2;
}
[data-design='terminal'] h1,
[data-design='terminal'] h2 {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -2px;
}
[data-design='terminal'] h1 {
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1.2;
}
[data-design='terminal'] h2 {
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.4;
}
[data-design='terminal'] .service-grid article {
  border-radius: 4px;
  background: #1b1c25b3;
}
[data-design='terminal'] .service-icon {
  border-radius: 5px;
}
[data-design='terminal'] .lab,
[data-design='terminal'] .contact {
  background: #191a21e6;
}
[data-design='terminal'] .ambient-grid {
  background-size: 40px 40px;
  opacity: 0.3;
}
[data-design='terminal'] .nebula {
  opacity: 0.04;
}
[data-design='terminal'] .workspace,
[data-design='terminal'] .asteroid-panel {
  border-radius: 4px;
}
[data-design='terminal'] .eyebrow {
  letter-spacing: 2px;
}
[data-design='terminal'] .button.primary {
  background: #bd93f914;
  border-color: #bd93f955;
  color: var(--purple);
  box-shadow: none;
  border-radius: 3px;
}
[data-design='terminal'] .process-grid > div {
  border-left: 2px solid #bd93f955;
  padding-left: 20px;
}
@media (max-width: 720px) {
  .nebula {
    min-width: 380px;
    min-height: 380px;
    filter: blur(45px);
    opacity: 0.13;
  }
  .ambient-grid {
    background-size: 64px 64px;
  }
  .service-icon {
    margin-bottom: 25px;
  }
  [data-design='aurora'] .hero-grid {
    gap: 25px;
  }
  [data-design='terminal'] h1 {
    font-size: 43px;
  }
  [data-design='terminal'] .hero-grid {
    gap: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-scene * {
    animation: none !important;
  }
  .cursor-halo,
  .service-grid article::after {
    display: none;
  }
  .service-icon {
    transition: none;
  }
}
@media (max-width: 940px) {
  header nav {
    display: none;
  }
}

.asteroid-panel {
  background:
    radial-gradient(ellipse at 75% 20%, #8be9fd08, transparent 50%),
    radial-gradient(ellipse at 30% 65%, #bd93f916, transparent 65%);
  border-color: #bd93f939;
}
.model-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.model-controls button[aria-pressed='true'] {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.model-controls button {
  padding: 4px 0;
}
.model-controls {
  align-items: center;
  gap: 12px;
}
@media (max-width: 420px) {
  .model-controls {
    padding-inline: 14px;
  }
  .model-buttons {
    gap: 10px;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-halo {
    display: none;
  }
}

.pointer-waves {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  overflow: hidden;
}
.click-wave {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid #bd93f950;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 8px #8be9fd18;
  animation: nysa-click-pulse 0.72s cubic-bezier(0.16, 0.65, 0.3, 1) forwards;
  will-change: transform, opacity;
}
@keyframes nysa-click-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0.7;
  }
  35% {
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pointer-waves {
    display: none;
  }
  .click-wave {
    animation: none;
  }
}

/* Reveal the complete new page snapshot from the hidden asteroid. */
::view-transition-group(root) {
  animation: none;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 2;
}
.theme-color-wave {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .theme-color-wave {
    display: none;
  }
}

/* D: Eclipse — a dark editorial contrast with Dracula amber accents. */
html[data-design='eclipse'] {
  --sans: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --bg: #121117;
  --panel: #1b1922;
  --line: #38313f;
  --muted: #aaa5b7;
  --amber: #ffb86c;
  --primary-hover-bg: #ffb86c26;
  --primary-hover-fg: #f8f8f2;
}
[data-design='eclipse'] header {
  background: #121117f2;
}
[data-design='eclipse'] :is(h1, h2, h3) {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}
[data-design='eclipse'] h1 {
  font-size: clamp(44px, 5.1vw, 76px);
  line-height: 1.08;
}
[data-design='eclipse'] h2 {
  font-size: clamp(29px, 3.2vw, 44px);
}
[data-design='eclipse'] .gradient {
  background-image: linear-gradient(110deg, #ffb86c, #ff79c6 65%, #bd93f9);
}
[data-design='eclipse'] .hero {
  background: radial-gradient(ellipse at 80% 30%, #ffb86c08, transparent 55%);
}
[data-design='eclipse'] .nebula-one {
  background: radial-gradient(ellipse, #ffb86c, #bd93f9 35%, transparent 65%);
  opacity: 0.065;
}
[data-design='eclipse'] .nebula-two {
  opacity: 0.045;
}
[data-design='eclipse'] .ambient-grid {
  opacity: 0.2;
}
[data-design='eclipse'] .service-grid article {
  background: #1b1922b3;
  border-color: #ffb86c26;
  border-radius: 10px;
}
[data-design='eclipse'] .service-icon {
  color: var(--amber);
  background: #ffb86c0a;
  border-color: #ffb86c26;
}
[data-design='eclipse'] .eyebrow {
  color: var(--amber);
  letter-spacing: 0.16em;
}
[data-design='eclipse'] :is(.lab, .contact) {
  background: #19171fe6;
}
[data-design='eclipse'] :is(.workspace, .asteroid-panel) {
  border-color: var(--line);
  border-radius: 10px;
}
[data-design='eclipse'] :is(.window-bar, .output) {
  background: #1b1922;
}
[data-design='eclipse'] :is(.editor, .terminal) {
  background: #141219;
}
[data-design='eclipse'] .button {
  border-radius: 6px;
}
[data-design='eclipse'] .button.primary {
  background: #ffb86c14;
  border-color: #ffb86c55;
  color: var(--amber);
  box-shadow: none;
}
