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

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -20%, rgba(54, 109, 196, 0.27), transparent 43rem),
    radial-gradient(circle at 90% 80%, rgba(114, 92, 245, 0.12), transparent 34rem),
    linear-gradient(155deg, #0d1626, var(--bg) 52%, #05070c);
  font-family: var(--casual-font);
  font-weight: 700;
  font-synthesis: none;
}

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

button {
  color: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8dccff;
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(52, 124, 242, 0.22);
}

h1,
h2,
h3,
strong,
b {
  font-family: var(--casual-font);
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
}

.app-shell::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.17;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(#000, transparent 88%);
}

.ambient-glow {
  position: fixed;
  z-index: -1;
  top: 14%;
  left: 50%;
  width: min(70vw, 780px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(43, 113, 230, 0.1);
  filter: blur(90px);
  pointer-events: none;
}

.scene {
  position: relative;
  width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(18px, 3vh, 34px) var(--scene-gutter) clamp(28px, 4vh, 48px);
  opacity: 0;
  transform: translateY(10px) scale(0.995);
}

.scene.is-active {
  opacity: 1;
  transform: none;
  animation: scene-in 0.5s ease-out both;
}

.eyebrow {
  margin: 0 0 7px;
  color: #91d1ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-shadow: 0 2px 9px rgba(24, 82, 185, 0.5);
}

.scene-header {
  display: grid;
  width: min(100%, var(--content-wide));
  min-height: 56px;
  margin: 0 auto clamp(18px, 2.6vh, 28px);
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 18px;
}

.scene-header > div {
  min-width: 0;
}

.scene-header h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.05em;
}

@keyframes scene-in {
  from { opacity: 0; transform: translateY(12px) scale(0.995); }
  to { opacity: 1; transform: none; }
}

