:root {
  --parallax-x: 0px;
  --parallax-y: 0px;
  --parallax-x-soft: 0px;
  --parallax-y-soft: 0px;
  --parallax-x-reverse: 0px;
  --parallax-y-reverse: 0px;
  --page-accent: #12b9d7;
  --page-accent-rgb: 18, 185, 215;
}

body[data-page="home"] {
  --page-accent: #12b9d7;
  --page-accent-rgb: 18, 185, 215;
}

body[data-page="bjorn"] {
  --page-accent: #f4b942;
  --page-accent-rgb: 244, 185, 66;
}

body[data-page="spacecat"] {
  --page-accent: #a8d8f0;
  --page-accent-rgb: 168, 216, 240;
}

body[data-page="killbot"] {
  --page-accent: #39ff88;
  --page-accent-rgb: 57, 255, 136;
}

body[data-page="nick"] {
  --page-accent: #f4b942;
  --page-accent-rgb: 244, 185, 66;
}

body[data-page="ugpoop"] {
  --page-accent: #ffcc00;
  --page-accent-rgb: 255, 204, 0;
}

body[data-page="debunking"] {
  --page-accent: #f4c662;
  --page-accent-rgb: 244, 198, 98;
}

body[data-page="annoyingpersoncreatures"] {
  --page-accent: #d6b56f;
  --page-accent-rgb: 214, 181, 111;
}

body[data-page="pyrotechnics"] {
  --page-accent: #ff7438;
  --page-accent-rgb: 255, 116, 56;
}

html:has(body[data-page="annoyingpersoncreatures"]) {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html:has(body[data-page="annoyingpersoncreatures"]) {
    scroll-behavior: auto;
  }
}

/* Distinct page backgrounds */
body[data-page="home"] {
  background:
    linear-gradient(125deg, rgba(3, 12, 27, 0.98), rgba(5, 34, 57, 0.94) 54%, rgba(22, 10, 35, 0.96)),
    #07111f;
  background-attachment: fixed;
}

body[data-page="annoyingpersoncreatures"] {
  background:
    radial-gradient(ellipse at 8% 8%, rgba(97, 143, 81, 0.25), transparent 31%),
    radial-gradient(ellipse at 95% 36%, rgba(77, 116, 61, 0.2), transparent 33%),
    radial-gradient(ellipse at 55% 105%, rgba(171, 143, 77, 0.11), transparent 37%),
    linear-gradient(122deg, #101a14 0%, #1d2b20 43%, #142019 74%, #0d1713 100%);
  background-attachment: fixed;
}

body[data-page="annoyingpersoncreatures"]::before {
  background:
    repeating-radial-gradient(ellipse at 9% 20%, transparent 0 34px, rgba(193, 211, 157, 0.075) 35px 36px, transparent 37px 64px),
    repeating-radial-gradient(ellipse at 94% 68%, transparent 0 44px, rgba(193, 211, 157, 0.055) 45px 46px, transparent 47px 78px),
    repeating-linear-gradient(90deg, rgba(238, 234, 199, 0.018) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(152deg, transparent 0 126px, rgba(197, 213, 164, 0.035) 127px 128px, transparent 129px 254px),
    linear-gradient(90deg, rgba(7, 14, 10, 0.15), transparent 27% 73%, rgba(7, 14, 10, 0.17));
  background-size: 610px 560px, 740px 680px, 7px 100%, 500px 620px, auto;
  -webkit-mask-image: linear-gradient(90deg, black, rgba(0, 0, 0, 0.38) 28%, transparent 50%, rgba(0, 0, 0, 0.38) 72%, black);
  mask-image: linear-gradient(90deg, black, rgba(0, 0, 0, 0.38) 28%, transparent 50%, rgba(0, 0, 0, 0.38) 72%, black);
}

body[data-page="annoyingpersoncreatures"]::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.44;
  animation: apc-field-breathe 18s ease-in-out infinite;
  background:
    url("../annoyingpersoncreatures/field-fern.svg") left -108px top 18% / 285px 570px no-repeat,
    url("../annoyingpersoncreatures/animal-tracks.svg") right -104px bottom 7% / 245px 510px no-repeat,
    radial-gradient(ellipse at 5% 48%, rgba(126, 166, 89, 0.13), transparent 18%),
    radial-gradient(ellipse at 98% 14%, rgba(126, 166, 89, 0.12), transparent 17%),
    repeating-linear-gradient(148deg, transparent 0 155px, rgba(204, 219, 164, 0.045) 156px 158px, transparent 159px 274px),
    radial-gradient(circle, rgba(223, 231, 194, 0.11) 1px, transparent 1.7px) 0 0 / 38px 38px,
    repeating-radial-gradient(ellipse at 99% 36%, transparent 0 23px, rgba(190, 210, 152, 0.055) 24px 25px, transparent 26px 46px);
}

body[data-page="pyrotechnics"] {
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255, 91, 35, 0.44), transparent 45%),
    radial-gradient(ellipse at 8% 30%, rgba(187, 49, 31, 0.35), transparent 35%),
    radial-gradient(ellipse at 92% 56%, rgba(255, 133, 44, 0.2), transparent 35%),
    linear-gradient(145deg, #211514 0%, #371a18 42%, #462116 70%, #20110f 100%);
  background-attachment: fixed;
}

body[data-page="pyrotechnics"]::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    url("../pyrotechnics/flame-detail.svg") center bottom / 100% 100% no-repeat,
    radial-gradient(ellipse 11% 43% at 5% 100%, rgba(244, 66, 28, 0.2), transparent 78%),
    radial-gradient(ellipse 9% 34% at 17% 100%, rgba(255, 126, 36, 0.16), transparent 78%),
    radial-gradient(ellipse 13% 51% at 31% 102%, rgba(191, 39, 22, 0.17), transparent 79%),
    radial-gradient(ellipse 12% 46% at 69% 102%, rgba(255, 110, 25, 0.15), transparent 78%),
    radial-gradient(ellipse 9% 35% at 84% 101%, rgba(232, 55, 24, 0.18), transparent 77%),
    radial-gradient(ellipse 12% 47% at 97% 103%, rgba(255, 145, 40, 0.14), transparent 78%),
    repeating-radial-gradient(ellipse at 50% 112%, transparent 0 30px, rgba(255, 154, 72, 0.055) 31px 33px, transparent 34px 66px),
    repeating-linear-gradient(112deg, transparent 0 122px, rgba(255, 108, 45, 0.035) 123px 124px, transparent 125px 248px);
  background-size: 100% 100%, auto, auto, auto, auto, auto, auto, auto, auto;
  -webkit-mask-image: linear-gradient(to top, black 0%, rgba(0, 0, 0, 0.72) 38%, transparent 86%);
  mask-image: linear-gradient(to top, black 0%, rgba(0, 0, 0, 0.72) 38%, transparent 86%);
}

body[data-page="pyrotechnics"]::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -30px 0;
  pointer-events: none;
  opacity: 0.62;
  background:
    radial-gradient(circle, rgba(255, 187, 106, 0.75) 0 1px, transparent 2px) 12px 18px / 138px 190px,
    radial-gradient(circle, rgba(255, 91, 43, 0.64) 0 1.5px, transparent 2.5px) 52px 74px / 211px 240px,
    radial-gradient(circle, rgba(255, 224, 150, 0.46) 0 1px, transparent 2px) 91px 20px / 283px 310px;
  animation: pyro-ember-rise 25s linear infinite;
}

@keyframes pyro-ember-rise {
  to { background-position: 12px -190px, 52px -166px, 91px -290px; }
}

/* Pyrotechnics page title card */
body[data-page="pyrotechnics"] .pyro-main {
  display: grid;
  gap: clamp(76px, 9vw, 120px);
  padding: 8px 0 34px;
}
body[data-page="pyrotechnics"] .pyro-title-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  min-height: clamp(340px, 36vw, 480px);
  padding: clamp(34px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid rgba(255, 180, 124, .32);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(10, 7, 8, .80), rgba(20, 8, 7, .35) 58%, rgba(10, 7, 8, .78)),
    url("../pyrotechnics/Fire%20Wide.png") center 57% / cover no-repeat,
    #160b0a;
  box-shadow: 0 26px 68px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 229, 207, .16);
}
body[data-page="pyrotechnics"] .pyro-title-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 108, 38, .12), transparent 30% 72%, rgba(255, 76, 28, .18));
}
body[data-page="pyrotechnics"] .pyro-title-lockup {
  position: relative;
  z-index: 1;
}
body[data-page="pyrotechnics"] .pyro-title-lockup h1 {
  max-width: 760px;
  margin: 0;
  color: #fff0e7;
  font-size: clamp(64px, 10vw, 142px);
  font-weight: 950;
  letter-spacing: -.085em;
  line-height: .82;
  text-shadow: 0 5px 0 rgba(81, 20, 12, .8), 0 0 36px rgba(255, 113, 45, .3);
}
body[data-page="pyrotechnics"] .pyro-title-lockup h1 span {
  display: block;
  color: #ff8a4a;
}
body[data-page="pyrotechnics"] .pyro-title-rule {
  display: flex;
  gap: 7px;
  width: min(260px, 70%);
  margin-top: 28px;
  transform: skewX(-22deg);
}
body[data-page="pyrotechnics"] .pyro-title-rule span {
  height: 5px;
  flex: 1;
  background: linear-gradient(90deg, #ffdc8a, #ff652f);
  box-shadow: 0 0 14px rgba(255, 111, 46, .58);
}
body[data-page="pyrotechnics"] .pyro-title-rule span:nth-child(2) { opacity: .72; }
body[data-page="pyrotechnics"] .pyro-title-rule span:nth-child(3) { opacity: .43; }
body[data-page="pyrotechnics"] .pyro-statement {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3.5vw, 42px);
  border: 1px solid rgba(255, 191, 129, .35);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(17, 10, 10, .88), rgba(45, 17, 12, .8));
  box-shadow: 0 20px 46px rgba(0,0,0,.34), inset 0 1px rgba(255, 232, 206, .08);
  backdrop-filter: blur(8px);
}
body[data-page="pyrotechnics"] .pyro-statement-label {
  display: block;
  margin-bottom: 16px;
  color: #ffac6e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
body[data-page="pyrotechnics"] .pyro-statement p {
  margin: 0;
  color: #fff0e5;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 750;
  line-height: 1.42;
  text-wrap: pretty;
}
@media (max-width: 760px) {
  body[data-page="pyrotechnics"] .pyro-title-card {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
  }
}
@media (max-width: 520px) {
  body[data-page="pyrotechnics"] .pyro-main { gap: 42px; }
  body[data-page="pyrotechnics"] .pyro-title-card { padding: 28px 20px; }
  body[data-page="pyrotechnics"] .pyro-title-lockup h1 { font-size: clamp(52px, 15vw, 78px); }
  body[data-page="pyrotechnics"] .pyro-statement { padding: 19px; }
}

/* Simple ordered video collection */
body[data-page="pyrotechnics"] .pyro-video-section { display: grid; gap: clamp(48px, 6vw, 76px); }
body[data-page="pyrotechnics"] .pyro-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 210, 177, .25);
}
body[data-page="pyrotechnics"] .pyro-section-heading-main {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
}
body[data-page="pyrotechnics"] .pyro-section-emblem {
  flex: 0 0 auto;
  width: clamp(48px, 6vw, 72px);
  height: clamp(48px, 6vw, 72px);
  padding: 5px;
  border: 1px solid rgba(255, 186, 112, .55);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 108, 42, .32), rgba(39, 11, 7, .92) 70%);
  box-shadow: 0 0 24px rgba(255, 91, 32, .3), inset 0 0 12px rgba(255, 199, 105, .15);
  object-fit: contain;
}
body[data-page="pyrotechnics"] .pyro-section-heading h2 {
  margin: 0;
  color: #fff0e5;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -.055em;
}
body[data-page="pyrotechnics"] .pyro-section-heading span {
  color: #ff9b61;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body[data-page="pyrotechnics"] .pyro-video-grid {
  position: relative;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(calc(100% + 22vw), calc(100vw - 24px));
  margin-inline: 0;
  transform: translateX(-50%);
  row-gap: clamp(112px, 11vw, 160px);
  column-gap: clamp(82px, 10vw, 145px);
}
body[data-page="pyrotechnics"] .pyro-film {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 0;
  background: transparent;
}
body[data-page="pyrotechnics"] .pyro-film:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - clamp(82px, 10vw, 145px)) / 2);
}
body[data-page="pyrotechnics"] .pyro-film h3 {
  margin: 0;
  color: #fff0e5;
  font-size: clamp(21px, 2.15vw, 29px);
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}
body[data-page="pyrotechnics"] .pyro-frame-wrap {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
body[data-page="pyrotechnics"] .pyro-frame-wrap video {
  position: absolute;
  z-index: 1;
  display: block;
  width: 70%;
  height: 70%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #080707;
  object-fit: contain;
  box-shadow: 0 0 24px rgba(0,0,0,.5);
}
body[data-page="pyrotechnics"] .pyro-frame-art {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
}
@media (max-width: 760px) {
  body[data-page="pyrotechnics"] .pyro-film:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
  }
  body[data-page="pyrotechnics"] .pyro-video-grid {
    grid-template-columns: 1fr;
    width: min(92%, calc(100vw - 24px));
    left: auto;
    margin-inline: auto;
    transform: none;
    row-gap: clamp(108px, 14vw, 155px);
  }
}

/* Annoying Person-Creatures field guide */
body[data-page="annoyingpersoncreatures"] .apc-main {
  display: grid;
  gap: clamp(22px, 4vw, 48px);
  padding: 6px 0 28px;
}

body[data-page="annoyingpersoncreatures"] .apc-title-card,
body[data-page="annoyingpersoncreatures"] .apc-article,
body[data-page="annoyingpersoncreatures"] .apc-specimen {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(221, 225, 194, 0.23);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body[data-page="annoyingpersoncreatures"] .apc-title-card {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.78fr);
  align-items: center;
  gap: 34px;
  padding: clamp(30px, 6vw, 72px);
  background:
    radial-gradient(ellipse at 14% 112%, rgba(128, 166, 95, 0.3), transparent 48%),
    linear-gradient(118deg, rgba(34, 54, 39, 0.97), rgba(18, 32, 23, 0.96) 64%, rgba(31, 48, 34, 0.95));
}

body[data-page="annoyingpersoncreatures"] .apc-title-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -25%;
  bottom: -25%;
  left: -30%;
  width: 15%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(231, 238, 201, 0.11), transparent);
  transform: skewX(-18deg);
  animation: apc-title-glint 17s ease-in-out infinite;
}

body[data-page="annoyingpersoncreatures"] .apc-title-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(46vw, 530px);
  aspect-ratio: 1;
  right: 16%;
  top: -52%;
  border: 1px solid rgba(218, 224, 178, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(218, 224, 178, 0.025), 0 0 0 62px rgba(218, 224, 178, 0.02), 0 0 0 112px rgba(218, 224, 178, 0.018);
}

body[data-page="annoyingpersoncreatures"] .apc-title-copy,
body[data-page="annoyingpersoncreatures"] .apc-index {
  position: relative;
  z-index: 1;
}

body[data-page="annoyingpersoncreatures"] .apc-eyebrow {
  margin: 0 0 12px;
  color: #c6d49f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

body[data-page="annoyingpersoncreatures"] .apc-title-card h1 {
  max-width: 760px;
  margin: 0;
  color: #f3f0df;
  font-size: clamp(48px, 7.6vw, 100px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.91;
  text-wrap: balance;
}

body[data-page="annoyingpersoncreatures"] .apc-title-note {
  max-width: 460px;
  margin: 22px 0 0;
  color: rgba(235, 238, 218, 0.76);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.55;
}

body[data-page="annoyingpersoncreatures"] .apc-index {
  display: grid;
  gap: 8px;
  padding: 19px;
  border: 1px solid rgba(224, 229, 197, 0.2);
  border-radius: 13px;
  background: rgba(7, 17, 11, 0.42);
  backdrop-filter: blur(8px);
}

body[data-page="annoyingpersoncreatures"] .apc-index-label {
  margin: 0 0 5px;
  color: #bacb8d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-page="annoyingpersoncreatures"] .apc-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #f2f0e5;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

body[data-page="annoyingpersoncreatures"] .apc-index a:hover,
body[data-page="annoyingpersoncreatures"] .apc-index a:focus-visible {
  background: rgba(195, 213, 149, 0.12);
  transform: translateX(4px);
}

body[data-page="annoyingpersoncreatures"] .apc-index a span,
body[data-page="annoyingpersoncreatures"] .apc-specimen-number {
  color: #bdd18f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.07em;
}

body[data-page="annoyingpersoncreatures"] .apc-stamp {
  position: absolute;
  right: 27px;
  bottom: 23px;
  display: grid;
  width: 66px;
  height: 66px;
  place-content: center;
  border: 1px solid rgba(211, 194, 128, 0.62);
  border-radius: 50%;
  color: rgba(225, 210, 154, 0.77);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-align: center;
  rotate: 9deg;
  z-index: 1;
  animation: apc-stamp-sway 10s ease-in-out infinite;
}

@keyframes apc-field-breathe {
  0%, 100% { opacity: 0.36; }
  50% { opacity: 0.52; }
}

@keyframes apc-title-glint {
  0%, 62%, 100% { left: -30%; opacity: 0; }
  68% { opacity: 0.8; }
  84% { left: 130%; opacity: 0; }
}

@keyframes apc-stamp-sway {
  0%, 100% { rotate: 8deg; }
  50% { rotate: 11deg; }
}

body[data-page="annoyingpersoncreatures"] .apc-article {
  padding: clamp(24px, 4vw, 46px);
  border-color: rgba(246, 241, 220, 0.55);
  border-radius: 5px;
  background:
    repeating-linear-gradient(0deg, rgba(94, 83, 54, 0.025) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #f0ead8, #dfd8c3);
  color: #282b22;
  box-shadow: 9px 10px 0 rgba(4, 12, 7, 0.18), 0 24px 55px rgba(0, 0, 0, 0.24);
}

body[data-page="annoyingpersoncreatures"] .apc-article-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

body[data-page="annoyingpersoncreatures"] .apc-article .apc-eyebrow {
  color: #68764d;
}

body[data-page="annoyingpersoncreatures"] .apc-article h2 {
  margin: 0;
  color: #20291f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

body[data-page="annoyingpersoncreatures"] .apc-paper-mark {
  flex: 0 0 auto;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 2px solid #43513a;
  border-radius: 50%;
  color: #43513a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 900;
  rotate: -8deg;
}

body[data-page="annoyingpersoncreatures"] .apc-article-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 20px;
  padding: 11px 0;
  border-top: 1px solid rgba(49, 56, 41, 0.4);
  border-bottom: 1px solid rgba(49, 56, 41, 0.4);
  color: #59634d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="annoyingpersoncreatures"] .apc-article-copy {
  columns: 2;
  column-gap: clamp(24px, 5vw, 66px);
  column-rule: 1px solid rgba(49, 56, 41, 0.19);
  color: #303229;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.72;
}

body[data-page="annoyingpersoncreatures"] .apc-article-copy p {
  margin: 0 0 1.1em;
  break-inside: avoid;
}

body[data-page="annoyingpersoncreatures"] .apc-specimen {
  --specimen-accent: #bdd18f;
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(34, 52, 38, 0.97), rgba(13, 25, 18, 0.96)),
    #17231a;
}

body[data-page="annoyingpersoncreatures"] .apc-laraphant { --specimen-accent: #e5c16e; }
body[data-page="annoyingpersoncreatures"] .apc-antgella { --specimen-accent: #b6d786; }
body[data-page="annoyingpersoncreatures"] .apc-rspider { --specimen-accent: #d3c18f; }
body[data-page="annoyingpersoncreatures"] .apc-rexrex { --specimen-accent: #d2a56e; }

body[data-page="annoyingpersoncreatures"] .apc-specimen-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(225, 231, 204, 0.19);
}

body[data-page="annoyingpersoncreatures"] .apc-specimen-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--specimen-accent), transparent 45%);
  border-radius: 50%;
  color: var(--specimen-accent);
  font-size: 14px;
}

body[data-page="annoyingpersoncreatures"] .apc-specimen-heading .apc-eyebrow {
  margin-bottom: 5px;
  color: var(--specimen-accent);
}

body[data-page="annoyingpersoncreatures"] .apc-specimen-heading h2 {
  margin: 0;
  color: #f2f0e4;
  font-size: clamp(25px, 3.7vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

body[data-page="annoyingpersoncreatures"] .apc-specimen-heading h2 em {
  color: #d6ddc7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78em;
  font-weight: 500;
}

body[data-page="annoyingpersoncreatures"] .apc-status {
  display: grid;
  gap: 3px;
  max-width: 190px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--specimen-accent), transparent 48%);
  border-radius: 999px;
  color: var(--specimen-accent);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

body[data-page="annoyingpersoncreatures"] .apc-status > span {
  color: rgba(233, 237, 215, 0.58);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

body[data-page="annoyingpersoncreatures"] .apc-status strong {
  color: inherit;
  font-size: inherit;
  font-weight: 900;
}

body[data-page="annoyingpersoncreatures"] .apc-specimen-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: start;
}

body[data-page="annoyingpersoncreatures"] .apc-portrait {
  position: sticky;
  top: 95px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(241, 238, 217, 0.35);
  border-radius: 12px;
  background: #f1eedf;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

body[data-page="annoyingpersoncreatures"] .apc-portrait img {
  width: 100%;
  max-height: 440px;
  border: 2px solid #171a13;
  border-radius: 2px;
  object-fit: contain;
  transform-origin: 50% 55%;
  animation: apc-specimen-drift 8.5s ease-in-out infinite;
}

body[data-page="annoyingpersoncreatures"] .apc-antgella .apc-portrait img { animation-delay: -1.7s; animation-duration: 7.8s; }
body[data-page="annoyingpersoncreatures"] .apc-rspider .apc-portrait img { animation-delay: -3.2s; animation-duration: 9.3s; }
body[data-page="annoyingpersoncreatures"] .apc-rexrex .apc-portrait img { animation-delay: -4.6s; animation-duration: 8s; }

@keyframes apc-specimen-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(0.25deg); }
}

body[data-page="annoyingpersoncreatures"] .apc-portrait figcaption {
  padding: 9px 4px 1px;
  color: #62664f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
  text-align: right;
}

body[data-page="annoyingpersoncreatures"] .apc-facts-column {
  display: grid;
  gap: 16px;
}

body[data-page="annoyingpersoncreatures"] .apc-fact-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(231, 235, 210, 0.17);
  border-radius: 12px;
  background: rgba(4, 13, 8, 0.29);
}

body[data-page="annoyingpersoncreatures"] .apc-fact-panel h3,
body[data-page="annoyingpersoncreatures"] .apc-life-cycle h3 {
  margin: 0 0 13px;
  color: var(--specimen-accent);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="annoyingpersoncreatures"] .apc-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

body[data-page="annoyingpersoncreatures"] .apc-fact-grid > div {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 8px;
  background: rgba(225, 233, 205, 0.075);
}

body[data-page="annoyingpersoncreatures"] .apc-fact-grid dt {
  margin-bottom: 4px;
  color: rgba(222, 230, 206, 0.66);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-transform: uppercase;
}

body[data-page="annoyingpersoncreatures"] .apc-fact-grid dd {
  margin: 0;
  color: #f2f0e4;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-page="annoyingpersoncreatures"] .apc-anatomy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="annoyingpersoncreatures"] .apc-anatomy-grid > div {
  padding: 10px 8px;
  text-align: center;
}

body[data-page="annoyingpersoncreatures"] .apc-profile-notes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

body[data-page="annoyingpersoncreatures"] .apc-life-cycle,
body[data-page="annoyingpersoncreatures"] .apc-profile-notes blockquote {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(231, 235, 210, 0.17);
  border-radius: 12px;
  background: rgba(4, 13, 8, 0.29);
}

body[data-page="annoyingpersoncreatures"] .apc-life-cycle ol {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page="annoyingpersoncreatures"] .apc-life-cycle li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--specimen-accent), transparent 68%);
  border-radius: 7px;
  background: rgba(221, 229, 198, 0.07);
  color: #f1f0e5;
  font-size: 12px;
  font-weight: 750;
}

body[data-page="annoyingpersoncreatures"] .apc-life-cycle li + li::before {
  content: "→";
  position: absolute;
  left: -10px;
  color: var(--specimen-accent);
  font-size: 14px;
}

body[data-page="annoyingpersoncreatures"] .apc-profile-notes blockquote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border-left: 3px solid var(--specimen-accent);
  color: #f2f0e4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.45;
}

body[data-page="annoyingpersoncreatures"] .apc-profile-notes blockquote span {
  color: var(--specimen-accent);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-page="annoyingpersoncreatures"] .apc-specimen:target {
  scroll-margin-top: 28px;
}

@media (max-width: 820px) {
  body[data-page="annoyingpersoncreatures"] .apc-title-card {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.78fr);
    gap: 20px;
  }

  body[data-page="annoyingpersoncreatures"] .apc-specimen-grid {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  }

  body[data-page="annoyingpersoncreatures"] .apc-fact-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="annoyingpersoncreatures"] .apc-anatomy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body[data-page="annoyingpersoncreatures"] .apc-main { gap: 20px; }
  body[data-page="annoyingpersoncreatures"] .apc-title-card { grid-template-columns: 1fr; min-height: 0; padding: 28px 22px; }
  body[data-page="annoyingpersoncreatures"] .apc-title-card h1 { font-size: clamp(48px, 13vw, 72px); }
  body[data-page="annoyingpersoncreatures"] .apc-title-note { margin-top: 15px; }
  body[data-page="annoyingpersoncreatures"] .apc-index { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  body[data-page="annoyingpersoncreatures"] .apc-index-label { grid-column: 1 / -1; }
  body[data-page="annoyingpersoncreatures"] .apc-index a { gap: 7px; padding: 8px 5px; font-size: 13px; }
  body[data-page="annoyingpersoncreatures"] .apc-stamp { right: 17px; top: 18px; bottom: auto; width: 48px; height: 48px; font-size: 7px; }
  body[data-page="annoyingpersoncreatures"] .apc-article { padding: 22px 18px; }
  body[data-page="annoyingpersoncreatures"] .apc-paper-mark { width: 48px; height: 48px; font-size: 13px; }
  body[data-page="annoyingpersoncreatures"] .apc-article-meta { flex-direction: column; gap: 5px; font-size: 9px; }
  body[data-page="annoyingpersoncreatures"] .apc-article-copy { columns: 1; column-rule: 0; font-size: 16px; }
  body[data-page="annoyingpersoncreatures"] .apc-specimen { padding: 18px 14px; }
  body[data-page="annoyingpersoncreatures"] .apc-specimen-heading { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  body[data-page="annoyingpersoncreatures"] .apc-specimen-number { width: 38px; height: 38px; }
  body[data-page="annoyingpersoncreatures"] .apc-status { grid-column: 2; justify-self: start; max-width: none; padding: 6px 9px; font-size: 9px; }
  body[data-page="annoyingpersoncreatures"] .apc-specimen-grid { grid-template-columns: 1fr; }
  body[data-page="annoyingpersoncreatures"] .apc-portrait { position: relative; top: auto; }
  body[data-page="annoyingpersoncreatures"] .apc-portrait img { max-height: 360px; }
  body[data-page="annoyingpersoncreatures"] .apc-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="annoyingpersoncreatures"] .apc-profile-notes { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body[data-page="annoyingpersoncreatures"]::after {
    background-size: 170px 340px, 150px 310px, auto, auto, auto, 38px 38px, auto;
    background-position: left -90px top 18%, right -78px bottom 10%, center, center, center, 0 0, center;
  }
}

body[data-page="home"]::before {
  background:
    repeating-linear-gradient(135deg, transparent 0 92px, rgba(18, 185, 215, 0.075) 93px 94px, transparent 95px 188px),
    repeating-linear-gradient(25deg, transparent 0 176px, rgba(244, 185, 66, 0.045) 177px 179px, transparent 180px 354px);
  background-size: auto;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 94%);
  mask-image: linear-gradient(to bottom, black, transparent 94%);
}

body[data-page="bjorn"] {
  background:
    linear-gradient(180deg, rgba(13, 69, 126, 0.9), rgba(26, 132, 190, 0.93)),
    url("../bjorn/vinylImage.jpeg") center / cover fixed;
  background-attachment: fixed;
}

body[data-page="bjorn"]::before {
  background: repeating-radial-gradient(circle at 16% 24%, transparent 0 17px, rgba(255, 255, 255, 0.075) 18px 19px, transparent 20px 35px);
  background-size: auto;
  -webkit-mask-image: linear-gradient(115deg, black, rgba(0, 0, 0, 0.18) 72%, transparent);
  mask-image: linear-gradient(115deg, black, rgba(0, 0, 0, 0.18) 72%, transparent);
}

body[data-page="killbot"] {
  background:
    linear-gradient(118deg, rgba(3, 4, 8, 0.98), rgba(49, 4, 14, 0.95) 58%, rgba(2, 14, 10, 0.98)),
    #050609;
  background-attachment: fixed;
}

body[data-page="killbot"]::before {
  background:
    linear-gradient(106deg, transparent 0 18%, rgba(255, 47, 61, 0.13) 18.3% 19%, transparent 19.3% 47%, rgba(57, 255, 136, 0.07) 47.3% 47.8%, transparent 48.1% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
  background-size: 620px 100%, 100% 5px;
  -webkit-mask-image: none;
  mask-image: none;
}

body[data-page="nick"] {
  background:
    linear-gradient(180deg, rgba(2, 9, 27, 0.88), rgba(4, 19, 54, 0.96)),
    url("../nick/nickButtonBg.png") center top / cover fixed;
  background-attachment: fixed;
}

body[data-page="nick"]::before {
  background: repeating-conic-gradient(from -28deg at 50% 112%, rgba(244, 185, 66, 0.095) 0 7deg, transparent 7deg 19deg);
  background-size: auto;
  -webkit-mask-image: linear-gradient(to top, black, transparent 88%);
  mask-image: linear-gradient(to top, black, transparent 88%);
}

body[data-page="nick"]::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(103deg, transparent 0 38%, rgba(255, 231, 163, 0.075) 42%, transparent 47%),
    linear-gradient(77deg, transparent 0 55%, rgba(20, 99, 255, 0.08) 59%, transparent 64%);
  mix-blend-mode: screen;
}

body[data-page="ugpoop"] {
  background:
    linear-gradient(145deg, rgba(80, 24, 0, 0.86), rgba(130, 19, 66, 0.93)),
    url("../ugpoop/ugpoopBackground.png") center / cover fixed;
  background-attachment: fixed;
}

body[data-page="ugpoop"]::before {
  background:
    linear-gradient(84deg, transparent 0 48%, rgba(255, 246, 198, 0.065) 49% 50%, transparent 51%) 0 0 / 260px 220px,
    linear-gradient(-7deg, transparent 0 47%, rgba(255, 255, 255, 0.05) 48% 50%, transparent 51%) 0 0 / 340px 260px;
  background-size: 260px 220px, 340px 260px;
  -webkit-mask-image: none;
  mask-image: none;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.hero > *,
.hero-copy,
.hero-art,
.photo-stack,
.scanline,
.logo-card {
  min-width: 0;
  max-width: 100%;
}

/* Give every page more room while keeping a small, consistent outer gutter. */
.site-shell {
  width: min(1320px, calc(100% - 24px));
}

.hero h1 {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

.motion-field {
  position: fixed;
  z-index: 0;
  inset: -6%;
  pointer-events: none;
  background: none;
  opacity: 0.7;
  transform: translate3d(var(--parallax-x-soft), var(--parallax-y-soft), 0) scale(1.04);
  transition: transform 180ms linear;
}

body[data-page="home"] .motion-field {
  background:
    url("Logoboom.png") 12% 22% / 125px auto no-repeat,
    url("Logoboom.png") 25% 43% / 90px auto no-repeat,
    url("Logoboom.png") 33% 65% / 145px auto no-repeat,
    url("Logoboom.png") 43% 39% / 120px auto no-repeat,
    url("Logoboom.png") 52% 15% / 110px auto no-repeat,
    url("Logoboom.png") 62% 86% / 95px auto no-repeat,
    url("Logoboom.png") 72% 60% / 130px auto no-repeat,
    url("Logoboom.png") 81% 17% / 100px auto no-repeat,
    url("Logoboom.png") 89% 30% / 115px auto no-repeat,
    url("Logoboom.png") 84% 84% / 110px auto no-repeat,
    url("Logoboom.png") 18% 88% / 100px auto no-repeat,
    url("Logoboom.png") 8% 52% / 105px auto no-repeat,
    repeating-linear-gradient(135deg, transparent 0 210px, rgba(255, 79, 145, 0.055) 211px 213px, transparent 214px 420px);
  filter: grayscale(0.25) saturate(0.72);
  opacity: 0.16;
  transform: none;
  transition: none;
}

@media (max-width: 700px) {
  body[data-page="home"] .motion-field {
    background:
      url("Logoboom.png") 20% 17% / 78px auto no-repeat,
      url("Logoboom.png") 80% 30% / 68px auto no-repeat,
      url("Logoboom.png") 25% 47% / 80px auto no-repeat,
      url("Logoboom.png") 78% 61% / 68px auto no-repeat,
      url("Logoboom.png") 20% 82% / 70px auto no-repeat,
      url("Logoboom.png") 80% 85% / 82px auto no-repeat,
      repeating-linear-gradient(135deg, transparent 0 210px, rgba(255, 79, 145, 0.055) 211px 213px, transparent 214px 420px);
  }
}

body[data-page="killbot"] .motion-field {
  background:
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(255, 47, 61, 0.12) 55px 62px, transparent 63px 108px) 0 18% / 360px 15px repeat-x,
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(57, 255, 136, 0.09) 75px 78px, transparent 79px 148px) 0 76% / 420px 9px repeat-x;
  opacity: 0.6;
  animation: killbot-background-shift 8s steps(4, end) infinite;
}

body[data-page="nick"] .motion-field {
  background:
    linear-gradient(105deg, transparent 0 41%, rgba(244, 185, 66, 0.09) 45%, transparent 50%) 0 0 / 380px 100% repeat-x,
    linear-gradient(75deg, transparent 0 49%, rgba(20, 99, 255, 0.07) 53%, transparent 58%) 0 0 / 460px 100% repeat-x;
  opacity: 0.58;
  animation: royal-background-sweep 16s linear infinite;
}

body[data-page="ugpoop"] .motion-field {
  background:
    url("../ugpoop/ugpooplogo.png") 4% 24% / 140px auto no-repeat,
    url("../ugpoop/ugpooplogo.png") 94% 70% / 190px auto no-repeat;
  filter: grayscale(0.2) sepia(0.2);
  opacity: 0.085;
}

body[data-page="spacecat"] .motion-field {
  display: none;
}

/* Page-specific midground decoration */
.midground-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.midground-field::before,
.midground-field::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body[data-page="home"] .midground-field::before {
  width: min(42vw, 560px);
  aspect-ratio: 1;
  left: -12vw;
  top: 20%;
  border: 1px solid rgba(18, 185, 215, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(18, 185, 215, 0.025),
    0 0 0 96px rgba(255, 79, 145, 0.025),
    0 0 80px rgba(18, 185, 215, 0.08);
}

body[data-page="home"] .midground-field::after {
  width: 46vw;
  height: 18px;
  right: -10vw;
  top: 34%;
  border-block: 1px solid rgba(244, 185, 66, 0.11);
  background: repeating-linear-gradient(90deg, rgba(244, 185, 66, 0.08) 0 18px, transparent 18px 54px);
  rotate: -13deg;
}

body[data-page="spacecat"] .midground-field::before {
  width: min(72vw, 760px);
  height: min(30vw, 300px);
  left: 16%;
  top: 4%;
  border: 2px solid rgba(168, 216, 240, 0.18);
  border-radius: 50%;
  rotate: -12deg;
  background:
    radial-gradient(circle at 82% 24%, rgba(244, 198, 98, 0.92) 0 6px, rgba(238, 112, 164, 0.32) 7px 10px, transparent 11px),
    radial-gradient(circle at 19% 70%, rgba(168, 216, 240, 0.78) 0 4px, rgba(168, 216, 240, 0.18) 5px 9px, transparent 10px);
  box-shadow:
    0 0 0 16px rgba(238, 112, 164, 0.026),
    0 0 0 42px rgba(168, 216, 240, 0.018),
    inset 0 0 42px rgba(168, 216, 240, 0.025);
}

body[data-page="spacecat"] .midground-field::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 8% 68%, rgba(168, 216, 240, 0.16) 0 4%, transparent 27%),
    radial-gradient(ellipse at 88% 30%, rgba(238, 112, 164, 0.15) 0 5%, transparent 28%),
    radial-gradient(ellipse at 62% 92%, rgba(244, 198, 98, 0.12) 0 5%, transparent 24%),
    radial-gradient(circle at 12% 42%, rgba(244, 198, 98, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.52) 0 1px, transparent 2px),
    radial-gradient(circle at 25% 78%, rgba(168, 216, 240, 0.62) 0 3px, transparent 4px),
    radial-gradient(circle at 48% 21%, rgba(244, 198, 98, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 56% 58%, rgba(255, 255, 255, 0.46) 0 1px, transparent 2px),
    radial-gradient(circle at 73% 26%, rgba(238, 112, 164, 0.58) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 61%, rgba(244, 198, 98, 0.64) 0 3px, transparent 4px),
    radial-gradient(circle at 64% 86%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 36% 92%, rgba(238, 112, 164, 0.5) 0 2px, transparent 3px);
}

.space-object-layer {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.space-comet {
  position: absolute;
  width: 250px;
  height: 78px;
  right: 4%;
  top: 8%;
  rotate: -12deg;
}

.space-comet::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 34px;
  right: 21px;
  top: 22px;
  background:
    linear-gradient(90deg, transparent 0 4%, rgba(168, 216, 240, 0.05) 18%, rgba(168, 216, 240, 0.28) 66%, rgba(244, 198, 98, 0.72) 100%);
  clip-path: polygon(0 48%, 100% 0, 100% 100%);
}

.space-comet::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  right: 2px;
  top: 24px;
  border: 2px solid rgba(255, 250, 214, 0.8);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffdf1 0 12%, #f4c662 36%, #d8943e 72%, #6b3d28 100%);
  box-shadow:
    0 0 0 5px rgba(244, 198, 98, 0.1),
    0 0 28px rgba(244, 198, 98, 0.42);
}

.space-black-hole {
  position: absolute;
  width: 138px;
  height: 56px;
  left: -28px;
  bottom: 14%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, transparent 0 22%, rgba(244, 198, 98, 0.92) 24% 29%, rgba(238, 112, 164, 0.72) 31% 39%, rgba(168, 216, 240, 0.24) 48%, transparent 69%);
  rotate: -11deg;
  box-shadow: 0 0 32px rgba(238, 112, 164, 0.16);
}

.space-black-hole::before {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background: #010207;
  box-shadow:
    0 0 0 2px rgba(244, 198, 98, 0.32),
    inset 8px -6px 14px rgba(38, 10, 50, 0.7);
  translate: -50% -50%;
}

.space-black-hole::after {
  content: "";
  position: absolute;
  inset: 7px -8px;
  border: 2px solid rgba(244, 198, 98, 0.36);
  border-radius: 50%;
}

body[data-page="killbot"] .midground-field::before {
  width: 44vw;
  height: 190px;
  left: -8vw;
  top: 32%;
  border: 2px solid rgba(255, 47, 61, 0.13);
  background:
    linear-gradient(90deg, rgba(255, 47, 61, 0.06), transparent 58%),
    repeating-linear-gradient(0deg, transparent 0 16px, rgba(57, 255, 136, 0.055) 17px 18px);
  clip-path: polygon(0 12%, 88% 0, 100% 78%, 8% 100%);
  animation: signal-panel-jump 7s steps(2, end) infinite;
}

body[data-page="killbot"] .midground-field::after {
  width: 36vw;
  height: 84px;
  right: -5vw;
  bottom: 18%;
  background: repeating-linear-gradient(90deg, rgba(57, 255, 136, 0.11) 0 8px, transparent 8px 25px, rgba(255, 47, 61, 0.09) 25px 32px, transparent 32px 52px);
  clip-path: polygon(0 30%, 100% 0, 92% 100%, 8% 78%);
  animation: signal-panel-jump 9s steps(3, end) infinite reverse;
}

body[data-page="ugpoop"] .midground-field::before {
  width: 260px;
  height: 180px;
  left: -54px;
  top: 28%;
  border: 3px dashed rgba(255, 204, 0, 0.14);
  background: linear-gradient(140deg, rgba(255, 246, 198, 0.06), rgba(188, 41, 77, 0.06));
  rotate: 8deg;
  box-shadow: 12px 14px 0 rgba(188, 41, 77, 0.035);
}

body[data-page="ugpoop"] .midground-field::after {
  width: 390px;
  height: 46px;
  right: -78px;
  bottom: 20%;
  border: 1px solid rgba(255, 246, 198, 0.09);
  background: repeating-linear-gradient(135deg, rgba(255, 204, 0, 0.11) 0 18px, rgba(188, 41, 77, 0.1) 18px 36px);
  rotate: -11deg;
  animation: union-tape-sway 12s ease-in-out infinite alternate;
}

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

:where(a, button):focus-visible {
  outline: 3px solid var(--page-accent);
  outline-offset: 4px;
}

.brand img,
.home-button img,
.top-links img,
.portal-art img,
.listen-button img {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.brand:hover img,
.brand:focus-visible img {
  transform: rotate(-4deg) scale(1.06);
  filter: drop-shadow(0 10px 18px rgba(var(--page-accent-rgb), 0.28));
}

.home-button,
.top-links a,
.listen-button,
.download-button,
.channel-button {
  will-change: transform;
}

.home-button {
  position: fixed !important;
  top: 14px;
  right: max(12px, calc((100vw - var(--page-width, 1320px)) / 2));
  z-index: 1100;
}

.home-button:hover img,
.home-button:focus-visible img,
.top-links a:hover img,
.top-links a:focus-visible img {
  transform: rotate(-5deg) scale(1.12);
}

body[data-page="home"] .top-links a:nth-child(7) {
  --tilt: -1.3deg;
}

/* Homepage */
body[data-page="home"] .home-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(330px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

body[data-page="home"] .portal-section {
  width: 100%;
  max-width: none;
}

body[data-page="home"] .hero {
  min-width: 0;
  min-height: 520px;
  position: relative;
  isolation: isolate;
  grid-template-rows: 1fr;
  align-items: center;
  background-position:
    center,
    calc(50% + var(--parallax-x)) calc(20% + var(--parallax-y)),
    center;
  transition: background-position 140ms linear;
}

body[data-page="home"] .hero-copy {
  position: relative;
  z-index: 2;
  translate: var(--parallax-x-soft) var(--parallax-y-soft);
  transition: translate 160ms linear;
}

body[data-page="home"] .hero h1 {
  font-size: clamp(54px, 7.2vw, 92px);
}

body[data-page="home"] .aura-quote-feature {
  width: 100%;
  min-width: 0;
  min-height: 520px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 326px) 1fr;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    repeating-radial-gradient(circle at 50% 30%, transparent 0 42px, rgba(18, 185, 215, 0.08) 43px 44px, transparent 45px 86px),
    radial-gradient(circle at 50% 30%, rgba(244, 185, 66, 0.15), transparent 34%),
    linear-gradient(145deg, rgba(5, 31, 55, 0.98), rgba(12, 15, 38, 0.98) 62%, rgba(41, 10, 43, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(18, 185, 215, 0.06),
    0 22px 48px rgba(0, 0, 0, 0.24);
}

body[data-page="home"] .aura-quote-feature::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 240px;
  height: 14px;
  right: -34px;
  top: 26px;
  border-block: 1px solid rgba(244, 185, 66, 0.18);
  background: repeating-linear-gradient(90deg, rgba(244, 185, 66, 0.17) 0 12px, transparent 12px 24px);
  rotate: -5deg;
  pointer-events: none;
}

body[data-page="home"] .aura-quote-photo {
  width: min(72%, 238px);
  min-height: 0;
  aspect-ratio: 4 / 5;
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: center;
  margin: 17px auto 10px;
  overflow: hidden;
  border: 4px solid transparent;
  border-radius: 4px;
  background:
    linear-gradient(#07111f, #07111f) padding-box,
    conic-gradient(from 35deg, #12b9d7, #f4b942, #ff4f91, #12b9d7) border-box;
  box-shadow:
    9px 9px 0 rgba(244, 185, 66, 0.24),
    -8px -8px 0 rgba(18, 185, 215, 0.17),
    14px -11px 0 -5px rgba(255, 79, 145, 0.28),
    0 0 38px rgba(18, 185, 215, 0.18);
  clip-path: polygon(0 0, 88% 0, 100% 9%, 100% 100%, 12% 100%, 0 91%);
  rotate: -1deg;
}

body[data-page="home"] .aura-quote-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#12b9d7, #12b9d7) 10px 10px / 34px 3px no-repeat,
    linear-gradient(#12b9d7, #12b9d7) 10px 10px / 3px 34px no-repeat,
    linear-gradient(#f4b942, #f4b942) calc(100% - 10px) calc(100% - 10px) / 34px 3px no-repeat,
    linear-gradient(#f4b942, #f4b942) calc(100% - 10px) calc(100% - 10px) / 3px 34px no-repeat,
    linear-gradient(0deg, rgba(5, 31, 55, 0.42), transparent 32%);
  pointer-events: none;
}

body[data-page="home"] .aura-quote-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 50% 12%;
}

body[data-page="home"] .aura-quote-feature blockquote {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 10px 24px 24px;
}

body[data-page="home"] .aura-quote-feature blockquote p {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 2.7vw, 31px);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.42);
}

body[data-page="home"] .aura-quote-feature blockquote p::before,
body[data-page="home"] .aura-quote-feature blockquote p::after {
  display: inline;
  color: #12b9d7;
  font-family: Georgia, serif;
  font-size: 1.8em;
  font-weight: 900;
  line-height: 0;
  text-shadow: 0 0 22px rgba(18, 185, 215, 0.26);
}

body[data-page="home"] .aura-quote-feature blockquote p::before {
  content: "\201C";
  margin-right: 5px;
  vertical-align: -0.2em;
}

body[data-page="home"] .aura-quote-feature blockquote p::after {
  content: "\201D";
  margin-left: 5px;
  vertical-align: -0.32em;
}

body[data-page="home"] .aura-quote-feature blockquote footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
}

body[data-page="home"] .aura-quote-feature blockquote strong {
  display: block;
  color: #f4b942;
  font-size: 18px;
}

body[data-page="home"] .aura-quote-feature .quote-credit > span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

body[data-page="home"] .portal-card::after {
  transition: opacity 220ms ease, transform 320ms ease;
  transform: scale(1.01);
}

body[data-page="home"] .portal-card:hover::after,
body[data-page="home"] .portal-card:focus-visible::after {
  opacity: 0.43;
  transform: translate3d(3px, -3px, 0) scale(1.035);
}

body[data-page="home"] .portal-card:hover .portal-art img,
body[data-page="home"] .portal-card:focus-visible .portal-art img {
  transform: rotate(-4deg) scale(1.12);
}

body[data-page="home"] .portal-text,
body[data-page="home"] .portal-arrow {
  transition: translate 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="home"] .portal-card:hover .portal-text,
body[data-page="home"] .portal-card:focus-visible .portal-text {
  translate: 0 -3px;
}

body[data-page="home"] .portal-card:hover .portal-arrow,
body[data-page="home"] .portal-card:focus-visible .portal-arrow {
  translate: 5px 0;
}

/* Bjorn VonBobstein */
body[data-page="bjorn"] .hero > div:last-child {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

body[data-page="bjorn"] .hero > div:last-child::before {
  content: "";
  position: absolute;
  width: min(88%, 350px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #f4b942 0 4%, #123b71 5% 12%, #05070c 13% 19%, #111827 20% 43%, #05070c 44% 47%, #151c28 48% 70%, #030508 71% 100%);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  animation: vinyl-spin 14s linear infinite;
  z-index: -1;
}

body[data-page="bjorn"] .hero-logo {
  animation: logo-float 5.2s ease-in-out infinite;
}

body[data-page="bjorn"] .cover-row img {
  animation: album-drift 5.2s ease-in-out infinite;
}

body[data-page="bjorn"] .cover-row img:nth-child(2n) {
  animation-delay: -2.4s;
}

@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

@keyframes logo-float {
  50% { translate: 0 -8px; }
}

@keyframes album-drift {
  50% { translate: 0 -8px; }
}

/* Spacecat */
body[data-page="spacecat"] .hero {
  background-position:
    center,
    calc(50% + var(--parallax-x)) calc(50% + var(--parallax-y));
  transition: background-position 150ms linear;
}

body[data-page="spacecat"] .hero-art img {
  animation: space-float 6s ease-in-out infinite;
}

body[data-page="spacecat"] .card::before {
  animation: orbit-drift 6.4s ease-in-out infinite;
}

body[data-page="spacecat"] .card::after {
  animation: planet-glow 3.4s ease-in-out infinite;
}

@keyframes space-float {
  50% { translate: 0 -9px; rotate: 0.6deg; }
}

@keyframes orbit-drift {
  0%, 100% { transform: rotate(var(--orbit-angle)) scale(1); }
  50% { transform: rotate(calc(var(--orbit-angle) + 7deg)) scale(1.05); }
}

@keyframes planet-glow {
  50% { scale: 1.12; filter: brightness(1.14); }
}

/* Killbot */
body[data-page="killbot"] .download-button {
  overflow: hidden;
}

body[data-page="killbot"] .download-button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  transform: skewX(-18deg);
  transition: left 420ms ease;
  pointer-events: none;
}

body[data-page="killbot"] .download-button:hover::after,
body[data-page="killbot"] .download-button:focus-visible::after {
  left: 125%;
}

body[data-page="killbot"].chaos-pulse .hero,
body[data-page="killbot"].chaos-pulse .card {
  animation: killbot-pulse 220ms steps(2, end);
}

@keyframes killbot-pulse {
  0%, 100% { filter: none; }
  35% { filter: hue-rotate(38deg) contrast(1.28); translate: -2px 1px; }
  70% { filter: hue-rotate(-24deg) contrast(1.14); translate: 2px -1px; }
}

/* Nick the GOAT */
body[data-page="nick"] .hero {
  position: relative;
  isolation: isolate;
}

body[data-page="nick"] .hero > * {
  position: relative;
  z-index: 1;
}

body[data-page="nick"] .hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -20%;
  bottom: -20%;
  left: -45%;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255, 231, 163, 0.3), transparent);
  transform: skewX(-18deg);
  animation: gold-sweep 7.5s ease-in-out infinite;
  pointer-events: none;
}

body[data-page="nick"] .content-card {
  background-size: 24px 24px, 24px 24px, 100% 100%;
  animation: plaque-shift 14s linear infinite;
}

@keyframes gold-sweep {
  0%, 72%, 100% { left: -45%; opacity: 0; }
  76% { opacity: 1; }
  92% { left: 125%; opacity: 0.65; }
}

@keyframes plaque-shift {
  to { background-position: 24px 0, 0 24px, 0 0; }
}

/* UGPOOP */
body[data-page="ugpoop"] .card::before {
  background-size: 48px 48px;
  animation: caution-crawl 1.4s linear infinite;
}

body[data-page="ugpoop"] .logo-card img {
  animation: union-bob 4.6s ease-in-out infinite;
}

body[data-page="ugpoop"] .slogan {
  animation: slogan-wobble 5.5s ease-in-out infinite;
}

@keyframes caution-crawl {
  to { background-position: 48px 0; }
}

@keyframes union-bob {
  50% { translate: 0 -7px; rotate: -1deg; }
}

@keyframes slogan-wobble {
  0%, 90%, 100% { rotate: 0deg; }
  93% { rotate: -1.2deg; }
  96% { rotate: 1deg; }
}

@keyframes killbot-background-shift {
  to { background-position: 360px 18%, -420px 76%; }
}

@keyframes royal-background-sweep {
  to { background-position: 380px 0, -460px 0; }
}

@keyframes caution-background {
  to { background-position: 80px 8%, -80px 92%; }
}

@keyframes signal-panel-jump {
  0%, 88%, 100% { translate: 0 0; }
  90% { translate: 13px -3px; }
  94% { translate: -7px 4px; }
}

@keyframes union-tape-sway {
  to { translate: -24px -9px; rotate: -8deg; }
}

@media (max-width: 900px) {
  body[data-page="home"] .home-feature-row {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .hero {
    min-height: 420px;
  }

  body[data-page="home"] .aura-quote-feature {
    min-height: 360px;
    grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
    grid-template-rows: 1fr;
  }

  body[data-page="home"] .aura-quote-photo {
    width: min(72%, 230px);
    margin: 24px auto;
  }

  body[data-page="home"] .aura-quote-feature blockquote {
    justify-content: center;
    padding: 30px 30px 30px 8px;
  }
}

@media (max-width: 700px) {
  .site-shell {
    width: min(100% - 18px, 1320px);
  }

  .motion-field {
    opacity: 0.45;
  }

  .midground-field {
    opacity: 0.68;
  }

  .space-comet {
    right: -8px;
    top: 7%;
    scale: 0.58;
  }

  .space-black-hole {
    left: -18px;
    bottom: 10%;
    scale: 0.76;
  }

  body[data-page="home"] .hero-copy {
    translate: 0 0;
  }

  body[data-page="home"] .hero {
    min-height: 360px;
  }

  body[data-page="home"] .aura-quote-feature {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  body[data-page="home"] .aura-quote-photo {
    width: min(68%, 220px);
    min-height: 0;
    aspect-ratio: 4 / 5;
    margin: 22px auto 10px;
  }

  body[data-page="home"] .aura-quote-photo::after {
    background:
      linear-gradient(135deg, transparent 0 72%, rgba(18, 185, 215, 0.32) 72% 74%, transparent 74%),
      linear-gradient(0deg, rgba(5, 31, 55, 0.42), transparent 32%);
  }

  body[data-page="home"] .aura-quote-feature blockquote {
    padding: 12px 22px 28px;
  }

  body[data-page="home"] .aura-quote-feature blockquote p {
    font-size: clamp(23px, 7.8vw, 31px);
  }

  body[data-page="bjorn"] .hero > div:last-child {
    min-height: 260px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .motion-field {
    display: none !important;
  }

  .midground-field,
  .midground-field::before,
  .midground-field::after {
    animation: none !important;
  }

}


/* Homepage mobile card improvements */
@media (max-width: 700px) {
  body[data-page="home"] .portal-card {
    height: auto;
    min-height: 260px;
    grid-template-rows: auto 1fr;
    gap: 14px;
    padding: 16px;
  }

  body[data-page="home"] .portal-text {
    padding: 0 34px 8px 0;
    min-width: 0;
  }

  body[data-page="home"] .portal-text p {
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body[data-page="home"] .portal-arrow {
    right: 14px;
    bottom: 12px;
  }
}

@media (max-width: 360px) {
  body[data-page="home"] .brand span {
    font-size: 18px;
  }

  body[data-page="home"] .top-links {
    gap: 7px;
  }

  body[data-page="home"] .top-links a {
    gap: 5px;
    padding: 6px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  body:not([data-page="home"]) .topbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
  }

  body:not([data-page="home"]) .brand {
    min-width: 0;
    flex: 0 1 auto;
  }

  body:not([data-page="home"]) .home-button {
    position: fixed !important;
    top: 10px;
    right: max(10px, calc((100vw - var(--page-width, 1320px)) / 2));
    flex: 0 0 auto;
    margin-left: auto;
  }
}

body[data-page="ugpoop"] .site-shell {
  position: relative;
  z-index: 1;
}

@keyframes stripe-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

body[data-page="ugpoop"]::after {
  content: "";
  position: fixed;
  bottom: 8%;
  left: 0;
  width: 200%;
  height: 10px;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 204, 0, 0.15) 0 20px,
    rgba(255, 102, 153, 0.14) 20px 40px
  );
  animation: stripe-slide 20s linear infinite;
}

body[data-page="ugpoop"] .site-shell {
  position: relative;
  z-index: 1;
}

/* UGPOOP moving top stripe */
body[data-page="ugpoop"] .ugpoop-top-stripe {
  position: fixed;
  top: 8%;
  left: 0;
  width: 100vw;
  height: 13px;
  z-index: 0;
  pointer-events: none;

  background: repeating-linear-gradient(
    135deg,
    rgba(255, 204, 0, 0.2) 0 20px,
    rgba(255, 102, 153, 0.18) 20px 40px
  );
  background-size: 200% 100%;
  animation: stripe-background-slide 20s linear infinite;
}

/* Hide the stripe across the hero card */
body[data-page="ugpoop"] .ugpoop-top-stripe.over-hero {
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0,
    #000 var(--hero-left),
    rgb(0 0 0 / calc(1 - var(--overlap-progress))) var(--hero-left),
    rgb(0 0 0 / calc(1 - var(--overlap-progress))) var(--hero-right),
    #000 var(--hero-right),
    #000 100%
  );

  mask-image: linear-gradient(
    to right,
    #000 0,
    #000 var(--hero-left),
    rgb(0 0 0 / calc(1 - var(--overlap-progress))) var(--hero-left),
    rgb(0 0 0 / calc(1 - var(--overlap-progress))) var(--hero-right),
    #000 var(--hero-right),
    #000 100%
  );
}

@keyframes stripe-background-slide {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}
