@font-face {
  font-family: "Baloo 2";
  src: url("./assets/fonts/baloo2-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #35234a;
  --text: #4b3a63;
  --muted: #7f6f93;
  --cream: #fff8e8;
  --paper: rgba(255, 252, 246, 0.82);
  --pink: #ff76b8;
  --hot-pink: #ff4f9d;
  --blue: #62c9ff;
  --deep-blue: #5d8cff;
  --mint: #64dfba;
  --yellow: #ffd85e;
  --lavender: #b89cff;
  --peach: #ffb985;
  --line: rgba(128, 92, 180, 0.18);
  --shadow: 0 28px 70px rgba(115, 92, 154, 0.24);
  --focus: #3b76ff;
  --font-display: "Baloo 2", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% 18%, rgba(255, 255, 255, 0.9) 0 7rem, transparent 7.2rem),
    radial-gradient(circle at 88% 12%, rgba(255, 230, 246, 0.95) 0 8rem, transparent 8.2rem),
    radial-gradient(circle at 70% 75%, rgba(194, 241, 255, 0.7) 0 16rem, transparent 16.5rem),
    linear-gradient(180deg, #95ddff 0%, #dff7ff 36%, #fff4cf 70%, #ffe4f1 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 1;
  background:
    radial-gradient(circle at 18% 34%, rgba(255, 216, 94, 0.36) 0 0.22rem, transparent 0.25rem),
    radial-gradient(circle at 44% 18%, rgba(255, 118, 184, 0.3) 0 0.2rem, transparent 0.24rem),
    radial-gradient(circle at 76% 42%, rgba(93, 140, 255, 0.22) 0 0.24rem, transparent 0.28rem),
    radial-gradient(circle at 92% 68%, rgba(100, 223, 186, 0.28) 0 0.2rem, transparent 0.25rem);
  background-size: 180px 170px;
  animation: twinkle-sky 10s ease-in-out infinite alternate;
}

body::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 30;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 16px 34px rgba(53, 35, 74, 0.24);
  font-weight: 900;
  transform: translateY(-150%);
  transition: transform 0.22s ease;
}

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

a:focus-visible,
button:focus-visible,
.business-card:focus-visible {
  outline: 4px solid rgba(59, 118, 255, 0.82);
  outline-offset: 5px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.74), 0 0 0 13px rgba(255, 216, 94, 0.48);
}

#magic-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.wand-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78), rgba(255, 216, 94, 0.26) 26%, rgba(255, 118, 184, 0.16) 48%, transparent 72%);
  filter: blur(4px);
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.22s ease, height 0.22s ease, opacity 0.22s ease;
}

.wand-cursor.is-casting {
  width: 260px;
  height: 260px;
  opacity: 0.85;
}

.site-shell {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 18px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 40px rgba(120, 105, 170, 0.18), inset 0 0 0 1px rgba(255, 118, 184, 0.16);
  backdrop-filter: blur(18px);
  transition: padding 0.24s ease, transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.nav.is-scrolled {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 48px rgba(100, 88, 150, 0.22), inset 0 0 0 1px rgba(255, 118, 184, 0.16);
  transform: translateY(-2px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  color: #fff;
  font: 800 24px/1 var(--font-display);
  box-shadow: 0 12px 24px rgba(255, 118, 184, 0.28), inset 0 -5px 0 rgba(154, 78, 147, 0.14);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.brand small,
.eyebrow,
.section-kicker,
.storybook-badge span {
  color: #8754d8;
  font-family: var(--font-display);
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  font-size: 12px;
}

.nav nav {
  display: flex;
  gap: 8px;
}

.nav nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #614a7a;
  font-weight: 800;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.nav nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  transform: translateY(-2px) rotate(-1deg);
}

.nav nav a:active,
.primary-cta:active,
.secondary-cta:active,
.business-card:active,
.map-node:active {
  transform: translateY(1px) scale(0.98);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 36px;
  min-height: calc(100vh - 98px);
  padding: 72px 0 56px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy > *,
.storytoy-hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 0.78s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.hero-copy > *:nth-child(2),
.storytoy-hero-copy > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > *:nth-child(3),
.storytoy-hero-copy > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy > *:nth-child(4),
.storytoy-hero-copy > *:nth-child(4) {
  animation-delay: 0.24s;
}

.hero-copy > *:nth-child(5),
.storytoy-hero-copy > *:nth-child(5) {
  animation-delay: 0.32s;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(52px, 5.7vw, 82px);
  font-weight: 800;
  line-height: 0.96;
  text-shadow: 0 5px 0 rgba(255, 255, 255, 0.72), 0 18px 40px rgba(112, 80, 154, 0.22);
}

.hero-lead {
  max-width: 680px;
  color: #665277;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.9;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-cta,
.secondary-cta {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0 24px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 18px 30px rgba(255, 118, 184, 0.25), inset 0 -5px 0 rgba(116, 70, 145, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.primary-cta {
  background: linear-gradient(135deg, var(--hot-pink), var(--lavender));
}

.secondary-cta {
  background: linear-gradient(135deg, var(--blue), var(--mint));
}

.primary-cta::after,
.secondary-cta::after {
  content: "";
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 216, 94, 0.4) 42%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.primary-cta.is-rippling::after,
.secondary-cta.is-rippling::after {
  animation: candy-ripple 0.72s ease-out;
}

.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-4px) rotate(-1deg) scale(1.02);
  filter: saturate(1.15);
  box-shadow: 0 24px 36px rgba(255, 118, 184, 0.34), inset 0 -5px 0 rgba(116, 70, 145, 0.16);
}

.hero-card {
  position: relative;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.82);
  border-radius: 46px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 118, 184, 0.16);
  transform: perspective(1050px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translate3d(var(--float-x, 0px), var(--float-y, 0px), 0);
  transform-style: preserve-3d;
  transition: transform 0.16s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: card-fade 0.9s ease 0.22s forwards;
}

.hero-card.is-armed {
  box-shadow: 0 34px 90px rgba(255, 118, 184, 0.3), 0 0 60px rgba(255, 216, 94, 0.24);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at var(--spark-x, 60%) var(--spark-y, 38%), rgba(255, 255, 255, 0.94), transparent 13rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 48%, rgba(255, 118, 184, 0.12));
  pointer-events: none;
}

.hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  transform: scale(1.03);
  animation: float-hero 10s ease-in-out infinite alternate;
}

.storybook-badge {
  position: absolute;
  z-index: 3;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 14px 16px;
  background: rgba(255, 248, 232, 0.78);
  box-shadow: 0 16px 28px rgba(121, 94, 158, 0.18);
  backdrop-filter: blur(14px);
  transform: translateZ(44px);
}

.storybook-badge span,
.storybook-badge strong {
  display: block;
}

.storybook-badge span {
  font-size: 13px;
}

.storybook-badge strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
}

.badge-top {
  top: 28px;
  right: 28px;
}

.badge-bottom {
  left: 28px;
  bottom: 28px;
}

.floating-sticker,
.product-icon {
  background-image: var(--sticker-sheet-url, url("./assets/fairy-stickers.webp"));
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

.floating-sticker {
  position: fixed;
  z-index: 2;
  width: 110px;
  height: 110px;
  pointer-events: none;
  filter: drop-shadow(0 18px 18px rgba(106, 83, 148, 0.18));
  animation: sticker-float 8s ease-in-out infinite;
}

.sticker-castle {
  left: 3vw;
  top: 19vh;
  background-position: 0% 0%;
}

.sticker-book {
  right: 6vw;
  top: 44vh;
  background-position: 50% 0%;
  animation-delay: -2.5s;
}

.sticker-wand {
  right: 14vw;
  bottom: 9vh;
  background-position: 100% 100%;
  animation-delay: -5s;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 8px 0 96px;
}

.signal-strip div {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 34px rgba(112, 80, 154, 0.14);
}

.signal-strip div::after {
  content: "✦";
  position: absolute;
  right: 20px;
  top: 12px;
  color: var(--yellow);
  font-size: 28px;
  animation: star-pop 2.4s ease-in-out infinite;
}

.signal-strip strong {
  display: block;
  color: var(--hot-pink);
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 80px);
  font-weight: 800;
  line-height: 0.86;
}

.signal-strip span {
  display: block;
  margin-top: 10px;
  color: #69527d;
  font-weight: 900;
}

.business,
.lab,
.contact {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 800;
  line-height: 0.98;
}

.section-heading p,
.lab-copy p,
.contact p {
  color: #665277;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.business-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.8);
  border-radius: 36px;
  padding: 24px;
  background:
    radial-gradient(circle at var(--card-x, 70%) var(--card-y, 18%), rgba(255, 255, 255, 0.92), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52));
  box-shadow: 0 22px 50px rgba(112, 80, 154, 0.16);
  transform: perspective(900px) rotateX(var(--card-ry, 0deg)) rotateY(var(--card-rx, 0deg)) translateY(var(--card-lift, 0));
  transform-style: preserve-3d;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.business-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--card-x, 70%) var(--card-y, 18%), rgba(255, 255, 255, 0.96), transparent 7.5rem),
    radial-gradient(circle at 18% 12%, rgba(255, 216, 94, 0.36), transparent 8rem),
    radial-gradient(circle at 88% 88%, rgba(98, 201, 255, 0.28), transparent 9rem);
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.business-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -28% -20%;
  height: 45%;
  background: radial-gradient(circle, rgba(255, 118, 184, 0.25), transparent 62%);
  transform: translateY(22px);
  transition: transform 0.26s ease;
}

.business-card:hover {
  --card-lift: -10px;
  border-color: rgba(255, 216, 94, 0.94);
  box-shadow: 0 30px 70px rgba(112, 80, 154, 0.23);
}

.business-card:hover::before,
.business-card:focus-visible::before {
  opacity: 1;
}

.business-card:hover::after {
  transform: translateY(0);
}

.product-icon {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  margin-bottom: 10px;
  filter: drop-shadow(0 16px 16px rgba(106, 83, 148, 0.17));
  transform: translateZ(38px);
}

.icon-book { background-position: 50% 0%; }
.icon-board { background-position: 100% 0%; }
.icon-bag { background-position: 0% 100%; }

.product-preview {
  position: relative;
  z-index: 1;
  width: 132px;
  aspect-ratio: 1.1;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 26px rgba(106, 83, 148, 0.15);
  transform: translateZ(38px) rotate(-2deg);
}

.product-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.25);
}

.memory-preview {
  width: 150px;
  aspect-ratio: 1.2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(218, 244, 255, 0.7));
}

.memory-preview img {
  object-position: 52% 55%;
  transform: scale(1.06);
}

.card-index,
.business-card h3,
.business-card p,
.business-card ul {
  position: relative;
  z-index: 1;
}

.card-index {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 216, 94, 0.52);
  color: #8754d8;
  font: 800 16px/1 var(--font-display);
}

.business-card h3 {
  margin: 18px 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.business-card p {
  color: #675276;
  line-height: 1.82;
}

.business-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.business-card li {
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 8px 11px;
  color: #5f3d8b;
  background: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 900;
}

.lab {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}

.magic-map {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.8);
  border-radius: 44px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), transparent 10rem),
    linear-gradient(135deg, rgba(255, 230, 246, 0.84), rgba(208, 244, 255, 0.74));
  box-shadow: var(--shadow);
}

.magic-map::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 3px dashed rgba(135, 84, 216, 0.22);
  border-radius: 38px;
  animation: map-dash 18s linear infinite;
}

.map-node {
  position: absolute;
  z-index: 2;
  width: 112px;
  height: 112px;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 36px;
  color: transparent;
  background-color: rgba(255, 255, 255, 0.64);
  background-image: var(--sticker-sheet-url, url("./assets/fairy-stickers.webp"));
  background-repeat: no-repeat;
  background-size: 300% 200%;
  box-shadow: 0 18px 32px rgba(112, 80, 154, 0.18);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.map-node::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.map-node:hover,
.map-node.is-hot,
.map-node.is-selected {
  transform: translateY(-8px) scale(1.08) rotate(-3deg);
  box-shadow: 0 24px 40px rgba(255, 118, 184, 0.28), 0 0 36px rgba(255, 216, 94, 0.42);
}

.map-node.is-selected {
  border-color: rgba(255, 216, 94, 0.96);
}

.map-node.is-selected::after {
  background: linear-gradient(135deg, var(--hot-pink), var(--yellow));
}

.node-story {
  left: 14%;
  top: 18%;
  background-position: 50% 0%;
}

.node-seat {
  right: 14%;
  top: 22%;
  background-position: 100% 0%;
}

.node-memory {
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background-position: 100% 100%;
}

.node-memory:hover,
.node-memory.is-hot,
.node-memory.is-selected {
  transform: translate(-50%, -58%) scale(1.08) rotate(-3deg);
}

.node-shop {
  left: 18%;
  bottom: 18%;
  background-position: 0% 100%;
}

.node-media {
  right: 18%;
  bottom: 18%;
  background-position: 50% 100%;
}

.map-orbit {
  position: absolute;
  inset: 18%;
  border: 4px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  animation: orbit-spin 16s linear infinite;
}

.orbit-b {
  inset: 28%;
  border-color: rgba(255, 216, 94, 0.42);
  animation-duration: 11s;
  animation-direction: reverse;
}

.spell-terminal {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  padding: 20px;
  background: rgba(53, 35, 74, 0.88);
  color: #fff5bf;
  box-shadow: 0 18px 40px rgba(112, 80, 154, 0.22);
  font: 700 15px/1.6 Consolas, "Courier New", monospace;
}

.spell-terminal span {
  opacity: 0.3;
  transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.spell-terminal span.is-typed {
  opacity: 1;
  transform: translateX(0);
}

.spell-terminal span.is-linked {
  color: #fff;
  opacity: 1;
  text-shadow: 0 0 14px rgba(255, 216, 94, 0.78);
}

.blink {
  animation: blink 1s steps(2) infinite;
}

.contact {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.contact .primary-cta {
  margin-top: 22px;
}

.compliance-footer {
  margin: 0 0 28px;
  padding: 28px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 40px rgba(112, 80, 154, 0.14);
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 2px dashed rgba(135, 84, 216, 0.2);
}

.footer-brand strong,
.footer-grid strong,
.footer-grid a {
  color: var(--ink);
  font-weight: 900;
}

.footer-brand p {
  margin: 4px 0 0;
  color: var(--muted);
}

.footer-grid,
.record-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.footer-grid {
  margin-top: 22px;
}

.footer-grid span {
  display: block;
  margin-bottom: 6px;
  color: #8754d8;
  font-family: var(--font-display);
  font-weight: 800;
}

.record-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed rgba(135, 84, 216, 0.2);
  font-size: 14px;
}

.record-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6a3fb2;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.record-link-police img {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.record-links span,
.footer-note {
  color: #806f92;
}

.footer-note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.8;
}

.section-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes twinkle-sky {
  from { opacity: 0.58; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-16px); }
}

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-fade {
  to { opacity: 1; }
}

@keyframes float-hero {
  from { transform: scale(1.03) translate3d(-1%, -0.8%, 0); }
  to { transform: scale(1.08) translate3d(1%, 0.8%, 0); }
}

@keyframes sticker-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-24px) rotate(6deg); }
}

@keyframes star-pop {
  0%, 100% { transform: scale(0.75) rotate(0deg); opacity: 0.72; }
  50% { transform: scale(1.2) rotate(18deg); opacity: 1; }
}

@keyframes candy-ripple {
  0% { width: 0; height: 0; opacity: 0.95; }
  100% { width: 360px; height: 360px; opacity: 0; }
}

@keyframes map-dash {
  to { transform: rotate(360deg); }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes blink {
  50% { opacity: 0.25; }
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 24px, 720px);
  }

  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav nav {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: none;
  }

  .nav nav::-webkit-scrollbar {
    display: none;
  }

  .nav nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.42);
  }

  .hero,
  .section-heading,
  .lab {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 52px;
  }

  .hero-card,
  .hero-card img {
    min-height: 390px;
  }

  .signal-strip,
  .business-grid,
  .footer-grid,
  .record-links {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    margin-bottom: 46px;
  }

  .business,
  .lab,
  .contact {
    padding: 66px 0;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 22px);
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(34px, 10vw, 45px);
  }

  .hero-lead,
  .section-heading p,
  .lab-copy p,
  .contact p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.86;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .hero-card,
  .hero-card img,
  .magic-map {
    width: 100%;
    min-height: 330px;
  }

  .badge-top {
    top: 16px;
    right: auto;
    left: 14px;
  }

  .badge-bottom {
    left: 14px;
    bottom: 14px;
  }

  .storybook-badge {
    max-width: calc(100% - 28px);
    padding: 10px 12px;
  }

  .floating-sticker {
    width: 72px;
    height: 72px;
    opacity: 0.72;
  }

  .business-card {
    min-height: 0;
  }

  .map-node {
    width: 82px;
    height: 82px;
    border-radius: 26px;
  }

  .map-node::after {
    font-size: 12px;
  }
}

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

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

  #magic-field,
  .wand-cursor {
    display: none;
  }

  .hero-copy > *,
  .storytoy-hero-copy > *,
  .hero-card,
  .section-reveal,
  .spell-terminal span {
    opacity: 1 !important;
    transform: none !important;
  }
}

.reduced-motion #magic-field,
.reduced-motion .wand-cursor {
  display: none;
}

.reduced-motion .hero-copy > *,
.reduced-motion .storytoy-hero-copy > *,
.reduced-motion .hero-card,
.reduced-motion .section-reveal,
.reduced-motion .spell-terminal span {
  opacity: 1;
  transform: none;
  animation: none;
}
