/* Galaxy of Love page (template-galaxy-of-love.php). Self-contained: does not load the theme's styles.css. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/PlusJakartaSans-400.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/PlusJakartaSans-500.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/PlusJakartaSans-600.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/PlusJakartaSans-700.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/PlusJakartaSans-800.woff2') format('woff2'); }
/* Galaxy of Love · web version.
   The hero is the galaxy seen from above. Scrolling dives into it and becomes an endless wall of
   customer cards, shuffled on every visit, that you travel through. The rocket game is the child page /galaxy-of-love/play/ (template-galaxy-of-love-journey.php)
   and only loads when someone presses "Play the journey". */
:root {
  color-scheme: dark;
  --void: #02031a;
  --ink: #e9edff;
  --soft: rgba(233,237,255,.74);
  --faint: rgba(233,237,255,.52);
  --line: rgba(190,205,255,.16);
  --accent: #9fb8ff;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Orchestra orb hues */
  --orb-green: #46e3a8; --orb-pink: #ff6fb8; --orb-violet: #9d7bff; --orb-orange: #ff9e57; --orb-blue: #5fb0ff;
  --gutter: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--void); }
body { background: var(--void); color: var(--ink); font-family: var(--font-display); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* sky: WebGL galaxy, with a CSS starfield underneath for when WebGL is off */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 40%, rgba(70,90,210,.28), rgba(2,3,26,0) 70%),
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 66%, #dfe6ff 50%, transparent 51%), radial-gradient(1px 1px at 86% 54%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 84%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 58% 34%, #fff 50%, transparent 51%),
    var(--void);
  background-size: 100% 100%, 340px 340px, 420px 420px, 380px 380px, 300px 300px, 460px 460px, 520px 520px, auto; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; transition: opacity 1.2s ease; }
body.is-gl #scene { opacity: 1; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, rgba(2,3,26,0) 55%, rgba(2,3,26,.75) 100%); }

/* nav */
.nav { position: fixed; z-index: 30; top: env(safe-area-inset-top, 0px); left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); pointer-events: none; transition: background .4s ease, backdrop-filter .4s ease; }
.nav > * { pointer-events: auto; }
.nav img { height: 22px; width: auto; display: block; }
.topfade { position: fixed; left: 0; right: 0; top: 0; height: 150px; z-index: 25; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: linear-gradient(180deg, rgba(2,3,26,.98) 0%, rgba(2,3,26,.86) 50%, rgba(2,3,26,0) 100%); }
body.is-scrolled .topfade { opacity: 1; }
.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn svg { width: 14px; height: 14px; }
@property --ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn--story { position: relative; isolation: isolate; gap: 10px; padding: 6px 18px 6px 6px; color: #fff; background: rgba(14,18,64,.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 10px 30px -10px rgba(120,150,255,.55); transition: transform .25s ease, box-shadow .25s ease; }
.btn--story::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--ring), rgba(255,255,255,0) 0deg, rgba(255,255,255,.95) 50deg, rgba(159,184,255,.5) 95deg, rgba(255,255,255,0) 150deg, rgba(255,255,255,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ring 5s linear infinite; }
@keyframes ring { to { --ring: 360deg; } }
.btn--story .orb { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff 0 7%, #dfe6ff 20%, #8ea3ff 48%, #3b3fb8 78%, #1b1660 100%); box-shadow: 0 0 16px rgba(170,195,255,.7), inset -3px -4px 8px rgba(10,8,60,.55); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.btn--story svg { color: #fff; transition: transform .25s ease; }
.btn--story:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 14px 36px -10px rgba(140,170,255,.8); }
.btn--story:hover .orb { transform: rotate(60deg) scale(1.08); }
.btn--story:hover svg { transform: translateX(3px); }
.btn--story .sm { display: none; }

/* hero: the same galaxy opening as the game */
.hero { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px 24px 72px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(52% 40% at 50% 45%, rgba(2,3,26,.6) 0%, rgba(2,3,26,0) 100%); }
.hero__kicker { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin-top: 10px; padding: 0 .04em .14em; font-size: clamp(56px, 11vw, 168px); line-height: 1; letter-spacing: -.05em; font-weight: 800;
  background: linear-gradient(180deg, #ffffff 25%, #b9c9ff 70%, #c9d4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 80px rgba(120,150,255,.25); }
.hero p { margin-top: 22px; max-width: 540px; font-size: 19px; line-height: 1.5; color: var(--soft); text-wrap: balance; }
.hero__ctas { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn--white { position: relative; padding: 15px 26px; font-size: 16px; background: #fff; color: #0b1033; box-shadow: 0 0 0 6px rgba(159,184,255,.12), 0 18px 50px -12px rgba(150,180,255,.8); transition: transform .25s ease, box-shadow .25s ease; }
.btn--white svg { width: 16px; height: 16px; color: #4b5dff; transition: transform .3s ease; }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 0 0 8px rgba(159,184,255,.2), 0 22px 60px -12px rgba(150,180,255,.95); }
.btn--white:hover svg { transform: translateY(3px); }
.hint { margin-top: 26px; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.hint i { width: 1px; height: 48px; background: linear-gradient(180deg, var(--accent), transparent); animation: hint 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* the wall */
.wall { position: relative; z-index: 2; padding: 4vh var(--gutter) 40vh; }
.wall__head { max-width: 1480px; margin: 0 auto 6vh; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wall__head h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; max-width: 14ch; }
.wall__head p { max-width: 380px; font-size: 16px; line-height: 1.5; color: var(--soft); }
.wall__head p b { color: var(--ink); font-weight: 600; }
.cols { max-width: 1480px; margin: 0 auto; display: grid; gap: var(--gap, 24px); grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); align-items: start; }
.col { display: flex; flex-direction: column; gap: var(--gap, 24px); min-width: 0; }
.col:nth-child(2) { padding-top: 90px; } .col:nth-child(3) { padding-top: 34px; } .col:nth-child(4) { padding-top: 140px; }

/* a card: one voice, one world */
.card { --tone: var(--orb-blue); position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; padding: 26px 26px 22px; min-height: 0;
  background: linear-gradient(180deg, rgba(16,20,66,.78), rgba(7,9,38,.86)); border: 1px solid var(--line);
  box-shadow: 0 30px 70px -36px rgba(0,0,10,.9), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform-origin: 50% 50%; will-change: transform, opacity; content-visibility: auto; contain-intrinsic-size: auto 300px;
  animation: card-in .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes card-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background:
    radial-gradient(1px 1px at 18% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 64% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 82% 46%, #e6ecff 50%, transparent 51%), radial-gradient(1px 1px at 34% 72%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 86%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 8% 58%, #fff 50%, transparent 51%);
  background-size: 180px 180px; background-position: var(--sx, 0) var(--sy, 0); }
.card::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 340px; height: 340px; right: -150px; top: -170px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone) 55%, transparent) 0%, transparent 68%); opacity: .55; transition: opacity .4s ease; }
.card:hover::after { opacity: .85; }
.card[data-tone="green"] { --tone: var(--orb-green); } .card[data-tone="pink"] { --tone: var(--orb-pink); } .card[data-tone="violet"] { --tone: var(--orb-violet); } .card[data-tone="orange"] { --tone: var(--orb-orange); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.card__brand { display: flex; align-items: center; min-width: 0; }
.card__brand img { max-height: 30px; max-width: 132px; width: auto; height: auto; filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,20,.6)); }
.card__brand img.is-tall { max-height: 40px; }
.card__brand b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.1; }
.card__brand .anon { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.card__world { flex: none; width: 52px; height: 52px; border-radius: 50%; position: relative; }
.card__world img { width: 100%; height: 100%; display: block; border-radius: 50%; animation: spin 40s linear infinite; }
.card__world::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tone) 40%, transparent), transparent 70%); z-index: -1; }
@keyframes spin { to { rotate: 360deg; } }
.card blockquote { margin-top: 22px; }
.card blockquote p { font-size: 18px; line-height: 1.45; color: var(--ink); text-wrap: pretty; letter-spacing: -.005em; }
.card blockquote p::before { content: "\201C"; } .card blockquote p::after { content: "\201D"; }
.card.is-big blockquote p { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.22; font-weight: 600; letter-spacing: -.02em; }
.card.is-small blockquote p { font-size: 16px; }
.card cite { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-style: normal; font-size: 13px; line-height: 1.35; color: var(--faint); }
.card cite b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.av { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tone) 70%, #fff), color-mix(in srgb, var(--tone) 55%, #1a1d6b) 70%); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(190,205,255,.1); font-size: 12px; color: var(--faint); }
.card__foot span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff; text-decoration: none; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: background .2s ease; }
.pill svg { width: 12px; height: 12px; transition: transform .2s ease; }
.pill:hover { background: rgba(255,255,255,.16); } .pill:hover svg { transform: translateX(2px); }

/* a "more stories" card dropped into each pass of the wall */
.card--cta { text-align: left; background: linear-gradient(160deg, rgba(57,53,255,.55), rgba(143,0,255,.35) 60%, rgba(10,12,48,.85)); }
.card--cta h3 { margin-top: 18px; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.card--cta p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--soft); }
.card--cta .btn { margin-top: 22px; }
.card--cta .cta__orb { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff 0 7%, #dfe6ff 20%, #8ea3ff 48%, #3b3fb8 78%, #1b1660 100%); box-shadow: 0 0 30px rgba(170,195,255,.7); }

.wall__more { display: flex; justify-content: center; padding-top: 48px; color: var(--faint); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.wall__more i { display: inline-block; width: 6px; height: 6px; margin: 0 4px; border-radius: 50%; background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
.wall__more i:nth-child(2) { animation-delay: .2s; } .wall__more i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }

/* play: the game is one click away, never loaded before */
.play { position: fixed; z-index: 40; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px; border-radius: 999px; border: 0; cursor: pointer; font: 600 15px/1 var(--font-display); color: #fff; isolation: isolate;
  background: linear-gradient(135deg, #3935ff, #8f00ff); box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset, 0 18px 44px -12px rgba(120,90,255,.9); transition: transform .25s ease, box-shadow .25s ease; }
.play::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 1px solid rgba(190,170,255,.6); animation: ping 2.8s ease-out infinite; pointer-events: none; }
@keyframes ping { 0% { opacity: .9; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.14); } }
.play__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.play__icon svg { width: 22px; height: 22px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.play small { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; letter-spacing: .04em; color: rgba(255,255,255,.72); }
.play:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 22px 54px -12px rgba(140,110,255,1); }
.play:hover .play__icon svg { transform: translate(3px, -3px) rotate(-6deg); }

/* warp into the game */
.warp { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.9) 0, rgba(160,180,255,.5) 8%, rgba(2,3,26,1) 46%); transform: scale(.2); }
body.is-warping .warp { animation: warp .75s cubic-bezier(.6,0,.4,1) forwards; }
@keyframes warp { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(3); } }

/* motion off: no tilt, no drift */
@media (prefers-reduced-motion: reduce) {
  .card, .hint i, .card__world img, .play::after, .btn--story::before, .wall__more i { animation: none !important; }
}

@media (max-width: 1100px) { .col:nth-child(4) { padding-top: 0; } }
@media (max-width: 760px) {
  .nav { padding: 14px 16px; }
  .nav img { height: 18px; }
  .btn--story .lg { display: none; } .btn--story .sm { display: inline; }
  .hero p { font-size: 16px; }
  .wall { padding: 2vh 16px 30vh; }
  .wall__head { margin-bottom: 32px; }
  .col:nth-child(n) { padding-top: 0; }
  .col:nth-child(2) { padding-top: 56px; }
  .card { padding: 20px 18px 16px; border-radius: 20px; }
  .card blockquote p { font-size: 16px; }
  .card.is-big blockquote p { font-size: 21px; }
  .play { padding: 6px 16px 6px 6px; font-size: 14px; }
  .play small { display: none; }
  .play__icon { width: 34px; height: 34px; }
}
@media (max-width: 520px) { .col:nth-child(2) { padding-top: 0; } }
