/* ============================================================
   จักรวาลรูหนอน — Creator Profile
   Cute pastel theme
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --cream: #fff8fb;
  --cream-2: #fdf3ff;
  --paper: #ffffff;

  --ink: #55414f;
  --ink-soft: #7d6a78;
  --ink-faint: #a897a4;

  --pink: #ff9ec0;
  --pink-deep: #f4739f;
  --pink-soft: #ffe6ef;
  --mint: #a9e5c9;
  --lav: #cdbdff;
  --butter: #ffe1a0;
  --sky-blue: #b3d9f7;

  --line: #f5dfe8;
  --line-soft: #fdeef4;

  --r-lg: 34px;
  --r-md: 24px;
  --r-sm: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(219, 150, 180, 0.14);
  --shadow-md: 0 10px 30px rgba(219, 150, 180, 0.18);
  --shadow-lg: 0 20px 50px rgba(214, 145, 178, 0.22);

  --pad: clamp(20px, 5vw, 76px);

  --font-body: "Mali", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --font-label: "Quicksand", "Mali", system-ui, sans-serif;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: linear-gradient(170deg, var(--cream) 0%, var(--cream-2) 55%, #f2f8ff 100%);
  background-attachment: fixed;
  line-height: 1.75;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.28;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

::selection {
  background: var(--pink-soft);
  color: var(--pink-deep);
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--paper);
  color: var(--pink-deep);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  left: 16px;
}

/* ---------- 3. Background decorations ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.b1 {
  width: 420px;
  height: 420px;
  background: #ffd4e5;
  top: -110px;
  left: -90px;
}
.b2 {
  width: 380px;
  height: 380px;
  background: #d8e9ff;
  top: 24%;
  right: -130px;
}
.b3 {
  width: 340px;
  height: 340px;
  background: #e2f8ec;
  bottom: 18%;
  left: -110px;
}
.b4 {
  width: 300px;
  height: 300px;
  background: #f0e4ff;
  bottom: -80px;
  right: 12%;
}

.twinkle {
  position: absolute;
  color: var(--pink);
  opacity: 0.5;
  font-size: 18px;
  animation: twinkle 4s ease-in-out infinite;
}
.t1 {
  top: 16%;
  left: 8%;
}
.t2 {
  top: 30%;
  right: 12%;
  color: var(--lav);
  animation-delay: 0.7s;
}
.t3 {
  top: 58%;
  left: 5%;
  color: var(--sky-blue);
  animation-delay: 1.4s;
}
.t4 {
  top: 72%;
  right: 8%;
  animation-delay: 2.1s;
}
.t5 {
  top: 44%;
  left: 48%;
  color: var(--mint);
  animation-delay: 2.8s;
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.35) rotate(20deg);
    opacity: 0.75;
  }
}

/* ---------- 4. Layout helpers ---------- */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(48px, 6vw, 84px) var(--pad);
  max-width: 1360px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-deep);
  background: var(--paper);
  border: 2px solid var(--line);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.eyebrow.muted {
  color: var(--ink-soft);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
}
.button.primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(244, 115, 159, 0.4);
  border: 2px solid #fff;
}
.button.primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 32px rgba(244, 115, 159, 0.45);
}
.button.primary span {
  transition: transform 0.25s ease;
}
.button.primary:hover span {
  transform: translateX(3px) rotate(8deg);
}

.text-button {
  background: var(--paper);
  border: 2px solid var(--line);
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}
.text-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--pink);
}
.text-button:disabled {
  opacity: 0.55;
  cursor: progress;
}

/* ---------- 5. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--pad);
  background: rgba(255, 250, 252, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink) 0%, var(--lav) 100%);
  color: #fff;
  font-size: 17px;
  box-shadow: var(--shadow-sm);
  animation: bob 3.5s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-5px) rotate(4deg);
  }
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-label);
  font-size: 15px;
  letter-spacing: 0.13em;
  line-height: 1.15;
}
.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  color: var(--ink-soft);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.header nav a:hover {
  background: var(--pink-soft);
  color: var(--pink-deep);
  transform: translateY(-2px);
}
.nav-contact {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.nav-contact:hover {
  background: linear-gradient(135deg, var(--pink-deep) 0%, var(--pink) 100%) !important;
  color: #fff !important;
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 7vw, 92px) var(--pad) clamp(72px, 8vw, 108px);
  max-width: 1360px;
  margin: 0 auto;
}

.hero-copy > * + * {
  margin-top: 22px;
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.2;
}
.hero h1 .accent {
  position: relative;
  color: var(--pink-deep);
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 8%;
  bottom: 4px;
  height: 12px;
  background: var(--butter);
  border-radius: var(--r-pill);
  z-index: -1;
  opacity: 0.75;
}
.tiny-star {
  font-size: 0.42em;
  vertical-align: super;
  margin-left: 6px;
  color: var(--lav);
  display: inline-block;
  animation: spin 6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero p {
  font-size: clamp(15px, 1.5vw, 17.5px);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero p strong {
  color: var(--pink-deep);
  font-weight: 700;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.mini-orbits {
  color: var(--pink);
  letter-spacing: 4px;
}

.hero-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 4vw, 48px);
  padding-top: 22px;
  border-top: 2px dashed var(--line);
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-bottom a {
  text-decoration: none;
  color: var(--pink-deep);
  transition: transform 0.2s ease;
  display: inline-block;
}
.hero-bottom a:hover {
  transform: translateY(2px);
}

/* Cute planet scene */
.universe {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  min-height: 300px;
}

.cloud {
  position: absolute;
  background: #fff;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  opacity: 0.9;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.c1 {
  width: 108px;
  height: 34px;
  top: 12%;
  left: 2%;
  animation: drift 9s ease-in-out infinite;
}
.c1::before {
  width: 46px;
  height: 46px;
  top: -20px;
  left: 18px;
}
.c1::after {
  width: 34px;
  height: 34px;
  top: -13px;
  right: 16px;
}
.c2 {
  width: 84px;
  height: 27px;
  bottom: 16%;
  right: 4%;
  animation: drift 11s ease-in-out infinite reverse;
}
.c2::before {
  width: 36px;
  height: 36px;
  top: -16px;
  left: 14px;
}
.c2::after {
  width: 26px;
  height: 26px;
  top: -10px;
  right: 12px;
}
@keyframes drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(18px);
  }
}

.portal {
  position: relative;
  width: min(74%, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed var(--line);
}
.o1 {
  inset: 0;
  animation: spin 26s linear infinite;
}
.o2 {
  inset: 12%;
  border-style: dotted;
  border-color: #e7d7f5;
  animation: spin 18s linear infinite reverse;
}

.portal-core {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(150deg, #ffd9e8 0%, #ffc2da 45%, #e5c8ff 100%);
  box-shadow:
    inset -12px -14px 0 rgba(255, 255, 255, 0.34),
    var(--shadow-lg);
  display: grid;
  place-items: center;
  animation: bob 4.5s ease-in-out infinite;
}

.face {
  position: relative;
  width: 62%;
  height: 42%;
}
.eye {
  position: absolute;
  top: 6%;
  width: 15px;
  height: 21px;
  background: #6b4a5c;
  border-radius: 50%;
}
.eye.left {
  left: 12%;
}
.eye.right {
  right: 12%;
}
.eye::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3.5px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}
.mouth {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 14px;
  border: 3px solid #6b4a5c;
  border-top: none;
  border-radius: 0 0 26px 26px;
}
.cheek {
  position: absolute;
  top: 44%;
  width: 17px;
  height: 10px;
  background: #ff9bbb;
  border-radius: 50%;
  opacity: 0.72;
}
.cheek.cl {
  left: -4%;
}
.cheek.cr {
  right: -4%;
}

.satellite {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  font-size: 18px;
}
.s-star {
  top: 2%;
  right: 12%;
  color: var(--butter);
  animation: bob 3s ease-in-out infinite;
}
.s-heart {
  bottom: 6%;
  left: 4%;
  color: var(--pink);
  animation: bob 3.6s ease-in-out infinite 0.6s;
}

.floating-tag {
  position: absolute;
  bottom: 2%;
  right: 0;
  background: var(--paper);
  border: 2px solid var(--line);
  color: var(--pink-deep);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
}

/* ---------- 7. Ticker ---------- */
.ticker {
  overflow: hidden;
  background: linear-gradient(90deg, var(--pink) 0%, var(--lav) 50%, var(--sky-blue) 100%);
  border-block: 3px solid #fff;
  padding: 13px 0;
  position: relative;
  z-index: 1;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  width: max-content;
  color: #fff;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: marquee 26s linear infinite;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 8. Section heading ---------- */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.section-heading h2 {
  font-size: clamp(27px, 3.6vw, 44px);
  margin-top: 16px;
}
.section-heading h2 span {
  color: var(--pink-deep);
}
.section-heading > p {
  color: var(--ink-soft);
  font-size: 15px;
  text-align: right;
}

/* ---------- 9. Toolbar ---------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--paper);
  border: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.filter:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
  color: var(--pink-deep);
}
.filter span {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  background: var(--pink-soft);
  color: var(--pink-deep);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.filter.active {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 8px 20px rgba(244, 115, 159, 0.35);
}
.filter.active span {
  background: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.crew-count {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- 10. Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--glow, var(--pink));
}

.card-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 30px 22px 26px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.85), transparent 55%),
    var(--art, var(--pink-soft));
  min-height: 232px;
}

.card-number,
.orbit-badge,
.art-label {
  position: absolute;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card-number {
  top: 14px;
  left: 16px;
  color: var(--ink, var(--ink-soft));
  opacity: 0.7;
}
.orbit-badge {
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink, var(--ink-soft));
  padding: 5px 12px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 10.5px;
}
.art-label {
  bottom: 12px;
  left: 16px;
  right: 16px;
  color: var(--ink, var(--ink-soft));
  opacity: 0.62;
  font-size: 9.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-wrap {
  position: relative;
  width: 152px;
  height: 152px;
  display: grid;
  place-items: center;
}
.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}

.profile-image,
.monogram {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 5px solid #fff;
  box-shadow: var(--shadow-md);
}
.profile-image {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.profile-image.is-loaded {
  opacity: 1;
}
.monogram {
  display: grid;
  place-items: center;
  font-family: var(--font-label);
  font-size: 42px;
  font-weight: 700;
  color: var(--ink, var(--pink-deep));
  background: #fff;
  letter-spacing: 0.05em;
}

.art-star {
  position: absolute;
  right: 18px;
  bottom: 34px;
  font-size: 19px;
  color: #fff;
  opacity: 0.9;
  animation: twinkle 3.4s ease-in-out infinite;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  flex: 1;
}

.name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.name-row h3 {
  font-size: 23px;
}
.handle {
  font-family: var(--font-label);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.name-star {
  color: var(--glow, var(--pink));
  font-size: 17px;
  animation: twinkle 4s ease-in-out infinite;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--line-soft);
  border: 2px solid transparent;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.social:hover {
  transform: translateY(-3px);
  background: var(--art, var(--pink-soft));
  color: var(--ink, var(--pink-deep));
  border-color: var(--glow, var(--pink));
}

/* ---------- 12. Contact link on card ---------- */
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  margin-top: auto;
  background: var(--art, var(--pink-soft));
  border: 2px solid transparent;
  border-radius: var(--r-md);
  padding: 13px 17px;
  color: var(--ink, var(--ink-soft));
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.contact-link:hover {
  transform: translateY(-3px);
  border-color: var(--glow, var(--pink));
  box-shadow: var(--shadow-sm);
}
.contact-link > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-weight: 700;
  font-size: 14px;
  word-break: break-all;
}
.contact-link small {
  font-family: var(--font-label);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}
.contact-link > span:last-child {
  font-size: 16px;
  flex-shrink: 0;
}

/* ---------- 13. Join card ---------- */
.join-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 34px 28px;
  border: 3px dashed var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
  align-items: center;
}
.join-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink) 0%, var(--lav) 100%);
  color: #fff;
  font-size: 22px;
  box-shadow: var(--shadow-md);
  animation: bob 3.8s ease-in-out infinite;
}
.join-card h3 {
  font-size: 20px;
}
.join-card p {
  font-size: 14px;
  color: var(--ink-soft);
}
.join-card a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--pink-deep);
  background: #fff;
  border: 2px solid var(--line);
  padding: 11px 22px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s ease,
    border-color 0.2s ease;
}
.join-card a:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
}

/* ---------- 14. Data note ---------- */
.noscript-note {
  margin-top: 22px;
  padding: 18px 24px;
  background: var(--pink-soft);
  border-radius: var(--r-md);
  font-size: 14px;
}

/* ---------- 15. Contact section ---------- */
.contact-inner {
  position: relative;
  background: linear-gradient(140deg, #fff 0%, var(--pink-soft) 100%);
  border: 3px solid #fff;
  border-radius: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.contact-content h2 {
  font-size: clamp(26px, 3.6vw, 44px);
}
.contact-content h2 span {
  color: var(--pink-deep);
}
.contact-content p {
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 15px;
}
.contact-deco {
  position: absolute;
  color: var(--pink);
  opacity: 0.28;
  pointer-events: none;
}
.d1 {
  font-size: 130px;
  top: -30px;
  right: 4%;
  animation: spin 30s linear infinite;
}
.d2 {
  font-size: 76px;
  bottom: -14px;
  right: 22%;
  color: var(--lav);
  animation: twinkle 5s ease-in-out infinite;
}

/* ---------- 16. Footer ---------- */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 34px var(--pad);
  border-top: 2px dashed var(--line);
  background: rgba(255, 255, 255, 0.6);
}
footer p {
  font-size: 14px;
  color: var(--ink-soft);
}
.to-top {
  text-decoration: none;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-deep);
  background: #fff;
  border: 2px solid var(--line);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease;
}
.to-top:hover {
  transform: translateY(-3px);
}

/* ---------- 17. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 130%);
  z-index: 300;
  background: var(--paper);
  border: 2px solid var(--pink);
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
  max-width: min(90vw, 460px);
  text-align: center;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .universe {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  .section-heading > p {
    text-align: left;
  }
  .desktop {
    display: none;
  }
}

@media (max-width: 640px) {
  .header nav a:not(.nav-contact) {
    display: none;
  }
  .brand-sub {
    display: none;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .brand-text {
    font-size: 14px;
  }
  .nav-contact {
    padding: 9px 15px;
    font-size: 13.5px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .contact-content {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-content .button {
    justify-content: center;
  }
  .hero-bottom {
    justify-content: center;
    text-align: center;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
  .d1 {
    font-size: 90px;
  }
}

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