/* Apollo Studios. Colours come from --a1/--a2/--a3, written to <body> by js/lanes.js */
@property --a1 { syntax: '<color>'; inherits: true; initial-value: #ffb627; }
@property --a2 { syntax: '<color>'; inherits: true; initial-value: #ff5e3a; }
@property --a3 { syntax: '<color>'; inherits: true; initial-value: #7a5cff; }

:root {
  --bg: #05060f;
  --ink: #f5f2ea;
  --muted: #a4a8c0;
  --line: rgba(255, 255, 255, .12);
  --glass: rgba(255, 255, 255, .045);
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --r: 22px;
  --pad: clamp(18px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  /* --grad lives on body, not :root, because the lane colours are set on body */
  --grad: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3));
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
  transition: --a1 .7s, --a2 .7s, --a3 .7s;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 6px; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.flash { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 70% 25%, #fff, var(--a1) 30%, transparent 70%); }
body.supernova .flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 6, 15, .72); backdrop-filter: blur(14px); border-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; user-select: none; }
.logo__mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--a1) 45%, var(--a2));
  box-shadow: 0 0 18px var(--a1);
}
.logo__text { font: 800 15px/1 var(--display); letter-spacing: .08em; }
.logo__text small { font-weight: 400; font-size: .72em; opacity: .7; margin-left: 6px; letter-spacing: .2em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.eggcount {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px; font-size: 14px;
}
.eggcount span { color: var(--a1); }
body.eggs-done .eggcount { border-color: var(--a1); box-shadow: 0 0 16px -4px var(--a1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--grad); color: #07060d; font: 700 16px/1 var(--body); text-decoration: none;
  transition: transform .2s, box-shadow .2s, filter .2s;
  box-shadow: 0 8px 30px -10px var(--a2);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 36px -10px var(--a2); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--a1); }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--a1); font-size: 14px; margin-top: 10px; }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; }
.section { padding: clamp(64px, 10vw, 130px) var(--pad); max-width: 1320px; margin: 0 auto; }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 3rem); font-weight: 800; margin: 10px 0 14px; }
.sec-head p { color: var(--muted); }
.eyebrow {
  font: 600 12px/1 var(--display); letter-spacing: .24em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  width: fit-content;
}
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 86vh; max-width: 1320px; margin: 0 auto;
  padding: 150px var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 5rem); font-weight: 800; max-width: 15ch; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 56ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sun {
  position: absolute; top: 6%; right: -4%; width: min(54vw, 620px); aspect-ratio: 1; z-index: -1;
  transform: translate(var(--sx, 0), var(--sy, 0)); transition: transform .6s ease-out;
}
.sun::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--a1) 0%, var(--a2) 32%, transparent 68%);
  filter: blur(34px); opacity: .75; animation: pulse 7s ease-in-out infinite;
}
.sun i {
  position: absolute; inset: 30%; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff, var(--a1) 38%, var(--a2) 78%);
  box-shadow: 0 0 80px 10px var(--a1), inset -18px -22px 50px rgba(0, 0, 0, .28);
}
body.supernova .sun { animation: nova 1.6s ease-out; }
@keyframes pulse { 50% { transform: scale(1.09); opacity: .95; } }
@keyframes nova { 30% { transform: scale(2.6); filter: brightness(2); } }

/* ---------- Easter egg stars ---------- */
.egg {
  position: absolute; z-index: 4; background: none; border: 0; padding: 8px; cursor: pointer;
  color: var(--ink); opacity: .3; font-size: 13px; line-height: 1;
  animation: twinkle 3.4s ease-in-out infinite; transition: transform .25s, color .25s;
}
.egg:hover, .egg:focus-visible { opacity: 1; color: var(--a1); transform: scale(1.7) rotate(40deg); animation: none; }
.egg.found { opacity: 1; color: var(--a1); text-shadow: 0 0 12px var(--a1); pointer-events: none; animation: none; }
.egg--inline { position: static; }
@keyframes twinkle { 50% { opacity: .08; } }
.spark { position: fixed; z-index: 95; pointer-events: none; color: var(--a1); font-size: 12px; }

/* ---------- Lanes / portals ---------- */
.lanes { padding-top: 20px; }
.lane-line { min-height: 3.2em; font-size: 1.05rem; color: var(--ink) !important; }
.portals { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portal {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px 26px 26px; min-height: 380px;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(8px);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .45s;
}
.portal::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s;
  background: radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--p1) 38%, transparent), transparent 62%);
}
.portal:hover, .portal:focus-visible, .portal[aria-current="true"] {
  transform: translateY(-8px); border-color: var(--p1); box-shadow: 0 30px 70px -34px var(--p1);
}
.portal:hover::before, .portal:focus-visible::before, .portal[aria-current="true"]::before { opacity: 1; }
.portal__planet { display: block; height: 130px; margin-bottom: 10px; position: relative; }
.portal__planet i {
  position: absolute; left: 0; top: 10px; width: 104px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .75), transparent 42%), linear-gradient(140deg, var(--p1), var(--p2) 60%, var(--p3));
  box-shadow: 0 0 60px -12px var(--p1), inset -14px -16px 30px rgba(0, 0, 0, .35);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.portal:hover .portal__planet i { transform: scale(1.12) rotate(14deg); }
/* each world has its own character */
.portal--creators .portal__planet i { animation: blob 7s ease-in-out infinite; }
@keyframes blob { 0%, 100% { border-radius: 50%; } 33% { border-radius: 58% 42% 55% 45% / 46% 56% 44% 54%; } 66% { border-radius: 44% 56% 42% 58% / 58% 44% 56% 42%; } }
.portal--agencies .portal__planet::after {
  content: ''; position: absolute; left: -22px; top: 46px; width: 148px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--p1); transform: rotate(-16deg); opacity: .85;
}
.portal--brands .portal__planet i {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 10px),
    linear-gradient(140deg, var(--p1), var(--p2) 60%, var(--p3));
}
.portal__kicker { font: 600 11px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--p1); }
.portal__name { font: 800 clamp(1.5rem, 2.4vw, 2.1rem)/1.1 var(--display); }
.portal--agencies .portal__name { font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.portal--brands .portal__name { text-transform: uppercase; font-style: italic; }
.portal__desc { color: var(--muted); font-size: 15.5px; }
.portal__list { font-size: 13.5px; color: var(--ink); opacity: .85; margin-top: auto; padding-top: 14px; }
.portal__go { font-weight: 700; color: var(--p1); margin-top: 6px; }
.portal__go b { display: inline-block; transition: transform .3s; }
.portal:hover .portal__go b { transform: translateX(6px); }
.go-on, .portal[aria-current="true"] .go-off { display: none; }
.portal[aria-current="true"] .go-on { display: inline; }
.lanes__other { margin-top: 44px; color: var(--muted); }
.lanes__other a { color: var(--a1); }
.lanes__other .link { margin: 0 0 0 14px; }
a.portal { text-decoration: none; color: inherit; }

/* ---------- Capabilities bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px;
  padding: 26px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(8px); transition: border-color .3s, opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.card:hover { border-color: color-mix(in srgb, var(--a1) 60%, transparent); }
.card--book { grid-column: span 5; } .card--mag { grid-column: span 7; }
.card--phone { grid-column: span 4; } .card--game { grid-column: span 8; }
.card--ad { grid-column: span 12; flex-direction: row; align-items: center; }
.card--ad .card__meta { flex: 0 0 300px; } .card--ad .stage { flex: 1; min-height: 200px; }
.card__meta span { font: 600 12px/1 var(--display); color: var(--a1); letter-spacing: .2em; }
.card__meta h3 { font-size: 1.45rem; font-weight: 800; margin: 8px 0 6px; }
.card__meta p { color: var(--muted); font-size: 15.5px; max-width: 44ch; }
.stage {
  position: relative; flex: 1; min-height: 330px; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--a3) 22%, transparent), rgba(0, 0, 0, .35));
}
.hint {
  position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; pointer-events: none;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); opacity: .8;
}

/* ---------- Hero flybys ---------- */
.flybys { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; overflow: hidden; z-index: -1; pointer-events: none; }
.flyby { position: absolute; left: 0; top: 0; opacity: .85; will-change: transform; }
.flyby svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--a1) 55%, transparent)); }
/* Small moving parts inside the flyby art (js/flybys.js) */
.fb-flame { transform-origin: 40px 30px; animation: fbFlame .09s ease-in-out infinite alternate; }
@keyframes fbFlame { from { transform: scaleX(.82) scaleY(.92); opacity: .85; } to { transform: scaleX(1.08) scaleY(1.04); opacity: 1; } }
.fb-blink { animation: fbBlink 1.2s steps(1) infinite; }
@keyframes fbBlink { 50% { opacity: .15; } }
.fb-spark { animation: fbBlink .5s steps(2) infinite; }

/* ---------- Portal polish: glass icon medallions and a light sweep ---------- */
.portal--creators .portal__planet i { animation: none; }
.portal__planet i { width: 84px; top: 0; }
.portal--agencies .portal__planet::after { left: -18px; top: 28px; width: 120px; height: 28px; }
.portal__icons { position: absolute; right: 0; bottom: 0; display: flex; gap: 9px; }
.portal__icons svg {
  width: 44px; height: 44px; padding: 11px; border-radius: 15px;
  fill: none; stroke: var(--p1); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02));
  border: 1px solid color-mix(in srgb, var(--p1) 45%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 24px -14px var(--p1);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s;
}
.portal:hover .portal__icons svg, .portal:focus-visible .portal__icons svg { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 18px 30px -14px var(--p1); }
.portal__icons svg:nth-child(2) { transition-delay: .06s; } .portal__icons svg:nth-child(3) { transition-delay: .12s; }
.portal::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .13), transparent); transform: skewX(-18deg);
}
.portal:hover::after, .portal:focus-visible::after { left: 140%; transition: left 1.1s ease; }

/* ---------- Demo cards ---------- */
.card--book, .card--mag { grid-column: span 6; }
.card--book .stage, .card--mag .stage { min-height: 460px; }
.card--phone .stage { min-height: 560px; }
.card--ad .stage { min-height: 300px; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes slide { to { background-position: 100% 0; } }

/* Shared flip-book. --u is 1% of the open spread's width (set in js/demos.js), so pages scale like a real document */
.flip { position: relative; width: 100%; aspect-ratio: 2 / 1.42; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, .1, .2, 1); cursor: pointer; --u: 5px; outline-offset: 14px; }
.flip.closed { transform: translateX(-25%); } .flip.ended { transform: translateX(25%); }
.leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, .1, .2, 1); }
.leaf.flipped { transform: rotateY(-180deg); }
.leaf > div {
  position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: calc(5 * var(--u)) calc(4.5 * var(--u)); display: flex; flex-direction: column; gap: .85em;
  font-size: calc(1.9 * var(--u)); line-height: 1.5;
}
.leaf .front { border-radius: .2em .7em .7em .2em; box-shadow: inset .9em 0 1.2em -.9em rgba(0, 0, 0, .5), 0 1.4em 2.4em -1.4em #000; }
.leaf .back { transform: rotateY(180deg); border-radius: .7em .2em .2em .7em; box-shadow: inset -.9em 0 1.2em -.9em rgba(0, 0, 0, .5); }
.runhead { font-size: .62em; letter-spacing: .22em; text-transform: uppercase; opacity: .55; }
.no { margin-top: auto; align-self: flex-end; font-size: .7em; opacity: .5; }
.drop::first-letter { float: left; font: 800 3.1em/.8 'Playfair Display', serif; padding-right: .08em; color: #e4572e; }

/* E-book: GLOW */
.book { width: min(94%, 560px); perspective: 1800px; margin-bottom: 26px; }
.pg { background: #f6f1e7; color: #1d1a24; }
.pg h4, .bk-chap h4, .bk-end h4 { font: 800 1.75em/1.1 'Playfair Display', serif; }
.bk-cover { background: linear-gradient(165deg, #ffb37a, #ff6f91 48%, #5b2a86); color: #fff; justify-content: flex-end; gap: .5em !important; }
.bk-by { position: absolute; top: 7%; left: 9%; font-size: .7em; letter-spacing: .4em; }
.bk-sun { position: absolute; top: 15%; left: 50%; translate: -50% 0; width: 76%; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: repeating-radial-gradient(circle at 50% 100%, rgba(255, 255, 255, .8) 0 1.4%, transparent 1.4% 9%); }
.bk-cover strong { font: 800 5.6em/.9 'Playfair Display', serif; letter-spacing: -.02em; }
.bk-cover em { font: italic 500 1.05em/1.3 'Playfair Display', serif; }
.bk-cover small { font-size: .6em; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin-top: .8em; }
.bk-inside { justify-content: space-between; }
.bk-own { font: italic 500 1em 'Playfair Display', serif; margin-top: 30%; }
.bk-own i { display: block; border-bottom: 1px solid #1d1a24; opacity: .4; margin-top: 2.2em; }
.bk-legal { font-size: .62em; opacity: .6; }
.bk-toc { list-style: none; padding: 0; display: grid; gap: .75em; margin-top: .4em; }
.bk-toc li { display: flex; align-items: baseline; gap: .7em; border-bottom: 1px dotted rgba(29, 26, 36, .3); padding-bottom: .5em; }
.bk-toc b { font: 800 1em 'Playfair Display', serif; color: #e4572e; width: 1.6em; }
.bk-toc i { margin-left: auto; font-style: normal; opacity: .6; }
.bk-chap { background: #e4572e; color: #fff; justify-content: flex-end; }
.bk-chap b { font: 800 8em/.8 'Playfair Display', serif; opacity: .92; margin-bottom: auto; }
.bk-chap p { font: italic 500 1em 'Playfair Display', serif; }
.bk-steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: .5em; }
.bk-steps li { counter-increment: s; display: flex; align-items: center; gap: .7em; background: #fff; border-radius: .6em; padding: .5em .7em; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.bk-steps li::before { content: counter(s); display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #1d1a24; color: #f6f1e7; font-size: .8em; flex: none; }
.bk-steps b { font-weight: 500; } .bk-steps i { margin-left: auto; font-style: normal; font-size: .75em; color: #e4572e; white-space: nowrap; }
.bk-dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7em; margin: .3em 0; }
.bk-dots i { aspect-ratio: 1; border-radius: 50%; border: 1px solid #1d1a24; opacity: .35; }
.bk-dots i:nth-child(-n+12) { background: #e4572e; border-color: #e4572e; opacity: 1; }
.bk-dish { height: 24%; flex: none; border-radius: .8em; background: radial-gradient(circle at 50% 55%, #ffd166 0 22%, #ff9f1c 23% 28%, #fff 29% 36%, transparent 37%), linear-gradient(135deg, #ffe8d1, #ffc8dd); }
.bk-ing { padding-left: 1.1em; line-height: 1.5; }
.bk-pills { display: flex; gap: .4em; flex-wrap: wrap; } .bk-pills b { font-size: .72em; padding: .3em .7em; border-radius: 99px; background: #1d1a24; color: #f6f1e7; font-weight: 500; }
.bk-quote { background: #2b1640; color: #fff; justify-content: center; }
.bk-quote q { font: italic 500 1.7em/1.25 'Playfair Display', serif; quotes: '\201C' '\201D'; }
.bk-quote span { font-size: .7em; letter-spacing: .3em; text-transform: uppercase; color: #ffb37a; }
.bk-ask { font-weight: 500; } .bk-ask i { display: block; border-bottom: 1px solid rgba(29, 26, 36, .35); height: 1.5em; }
.bk-meter { display: grid; grid-template-columns: 4.5em 1fr; align-items: center; gap: .6em; font-size: .85em; }
.bk-meter u { height: .55em; border-radius: 99px; background: linear-gradient(90deg, #e4572e var(--v), rgba(29, 26, 36, .12) var(--v)); }
.bk-end { background: linear-gradient(200deg, #5b2a86, #1d1a24); color: #fff; justify-content: center; }
.bk-end small { position: absolute; bottom: 7%; left: 9%; font: 600 .55em var(--display); letter-spacing: .3em; opacity: .6; }

/* Magazine: MUSE */
.mag { width: 100%; height: 100%; display: grid; place-items: center; perspective: 1500px; padding: 13% 6% 12%; }
.mag__float { width: min(100%, 560px); animation: float 7s ease-in-out infinite; transform-style: preserve-3d; }
.mag__tilt { transform-style: preserve-3d; transform: rotateX(var(--rx, 7deg)) rotateY(var(--ry, -9deg)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.mag__tilt.live { transition: transform .12s linear; }
.mag .flip { aspect-ratio: 2 / 1.36; }
.mag .leaf > div { padding: calc(4 * var(--u)); }
.mg { background: #f2ede3; color: #121016; }
.mg h4 { font: 800 2em/1 'Playfair Display', serif; }
.mg-cover { background: #121016; color: #fff; padding: 0 !important; }
.mg-art { position: absolute; inset: 0; background: radial-gradient(circle at 64% 30%, #f7d9a8 0 12%, transparent 12.5%), linear-gradient(200deg, #3a1d4d, #121016 70%); }
.mg-art::after { content: ''; position: absolute; left: 26%; right: 12%; top: 27%; bottom: 0; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #c9a45c, #b0476b 55%, #3a1d4d); }
.mg-mast { position: absolute; top: 3%; left: 0; right: 0; text-align: center; font: 800 6.2em/1 'Playfair Display', serif; letter-spacing: .03em; }
.mg-issue { position: absolute; top: 28%; left: 7%; font-size: .58em; letter-spacing: .3em; text-transform: uppercase; writing-mode: vertical-rl; }
.mg-lines { position: absolute; left: 8%; bottom: 7%; display: grid; gap: .45em; max-width: 60%; }
.mg-lines b { font: 800 1.6em/1.05 'Playfair Display', serif; } .mg-lines span { font-size: .72em; opacity: .9; }
.mg-code { position: absolute; right: 7%; bottom: 6%; width: 16%; height: 7%; background: repeating-linear-gradient(90deg, #121016 0 2px, #fff 2px 3px, #121016 3px 4px, #fff 4px 7px); border: .35em solid #fff; }
.mg-toc { list-style: none; padding: 0; display: grid; gap: .4em; font-size: .9em; } .mg-toc b { font: 800 1.2em 'Playfair Display', serif; color: #b0476b; margin-right: .6em; }
.mg-sign { font: italic 500 1em 'Playfair Display', serif; }
.mg-feature { padding: 0 !important; color: #fff; justify-content: flex-end; background: radial-gradient(circle at 30% 24%, #ffd9a0 0 10%, transparent 10.5%), radial-gradient(60% 50% at 70% 60%, rgba(201, 164, 92, .55), transparent), linear-gradient(160deg, #b0476b, #3a1d4d 60%, #121016); }
.mg-feature > * { margin: 0 8%; } .mg-feature h4 { font: 800 3em/.95 'Playfair Display', serif; } .mg-feature p { font-size: .85em; max-width: 82%; margin-bottom: 9%; }
.mg-feature .runhead { opacity: .9; }
.mg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; font-size: .78em; line-height: 1.5; }
.mg-pull { font: italic 500 1.4em/1.2 'Playfair Display', serif; color: #b0476b; border-top: 2px solid #121016; border-bottom: 2px solid #121016; padding: .45em 0; }
.mg-img { flex: 1; min-height: 12%; border-radius: .3em; background: radial-gradient(circle at 75% 35%, #f7d9a8 0 9%, transparent 9.5%), linear-gradient(140deg, #c9a45c, #b0476b); }
.mg-holo { background: radial-gradient(90% 60% at 50% 100%, #0d3a46, #07090f 70%); color: #dffcff; }
.mg-holo h4 { font: 800 2.2em/1 'Playfair Display', serif; color: #fff; } .mg-holo p { font-size: .78em; opacity: .8; max-width: 46%; }
.mg-disc { position: absolute; left: 68%; bottom: 8%; translate: -50% 0; width: 46%; aspect-ratio: 3.2 / 1; border-radius: 50%; background: radial-gradient(closest-side, #9ff8ff, #12a4b8 55%, transparent 72%); box-shadow: 0 0 3em #2fe6ff; opacity: .55; }
.mg-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6em; flex: 1; }
.mg-grid span { border-radius: .3em; display: flex; align-items: flex-end; padding: .5em; font-size: .58em; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: linear-gradient(170deg, #c9a45c, #3a1d4d); }
.mg-grid span:nth-child(2n) { background: linear-gradient(170deg, #b0476b, #121016); } .mg-grid span:nth-child(3n) { background: linear-gradient(170deg, #f7d9a8, #b0476b 60%, #3a1d4d); }
.mg-ad { background: radial-gradient(60% 45% at 50% 42%, rgba(201, 164, 92, .28), transparent), #0b0a10; color: #f2ede3; align-items: center; justify-content: center; text-align: center; }
.mg-bottle { width: 26%; aspect-ratio: 1 / 1.45; flex: none; border-radius: .6em .6em 1em 1em; background: linear-gradient(110deg, rgba(255, 255, 255, .55), transparent 32%), linear-gradient(180deg, #f7d9a8, #c9a45c); position: relative; margin-top: 12%; box-shadow: 0 0 4em -1em #c9a45c; }
.mg-bottle::before { content: ''; position: absolute; left: 32%; right: 32%; top: -24%; height: 24%; background: #121016; border: 1px solid #c9a45c; border-radius: .2em; }
.mg-ad strong { font: 500 2.1em 'Playfair Display', serif; letter-spacing: .3em; margin-top: .4em; } .mg-ad span { font-size: .6em; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.mg-back { background: #121016; color: #fff; align-items: center; justify-content: center; text-align: center; }
.mg-back strong { font: 800 3em 'Playfair Display', serif; } .mg-back p { font-size: .7em; opacity: .7; }

/* Film page: a video fills the cover-story page and plays while that spread is open (js/demos.js) */
.mg-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0 !important; background: #0d0508; }
.mg-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #0d0508 12%, rgba(13, 5, 8, 0) 56%); pointer-events: none; }
.mg-feature > .runhead, .mg-feature > h4, .mg-feature > p { position: relative; z-index: 2; }
.mg-play { position: absolute; z-index: 2; top: 5%; right: 0; margin: 0 6% !important; display: flex; align-items: center; gap: .6em; padding: .45em 1em; border-radius: 99px; font-size: .6em; letter-spacing: .2em; text-transform: uppercase; background: rgba(13, 5, 8, .55); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(4px); }
.mg-play::before { content: ''; width: .7em; height: .7em; border-radius: 50%; background: #c9a45c; }
.playing .mg-play::before { background: #ff5a5a; box-shadow: 0 0 .8em #ff5a5a; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .35; } }

/* Hologram that stands up off the third spread */
.holo { position: absolute; left: 63%; width: 42%; bottom: 10%; height: 118%; pointer-events: none; transform: translateZ(calc(9 * var(--u))); opacity: 0; transition: opacity .25s; }
.flip.holo-on .holo { opacity: 1; transition-delay: .6s; }
.holo__cone { position: absolute; left: 12%; right: 12%; bottom: 0; height: 88%; transform-origin: bottom; transform: scaleY(0); background: linear-gradient(0deg, rgba(47, 230, 255, .45), rgba(47, 230, 255, 0) 88%); clip-path: polygon(36% 100%, 64% 100%, 100% 0, 0 0); }
.flip.holo-on .holo__cone { animation: coneUp .8s .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.holo svg { position: absolute; left: 50%; bottom: 3%; height: 82%; translate: -50% 0; overflow: visible; opacity: 0; filter: drop-shadow(0 0 6px #2fe6ff); transform-origin: 50% 100%; }
.flip.holo-on .holo svg { animation: holoIn 1.1s 1.1s ease-out forwards, holoLive 6s 2.2s ease-in-out infinite; }
.holo__card { transform-box: fill-box; transform-origin: center; animation: cardTurn 3.2s ease-in-out infinite alternate; }
@keyframes coneUp { to { transform: scaleY(1); } }
@keyframes holoIn { 0% { opacity: 0; transform: scaleY(.15); } 35% { opacity: .9; } 45% { opacity: .25; } 60% { opacity: 1; transform: scaleY(1.03); } 100% { opacity: .95; transform: none; } }
@keyframes holoLive { 0%, 100% { opacity: .95; transform: translateY(0); } 47% { opacity: .95; } 49% { opacity: .5; } 51% { opacity: .95; transform: translateY(-2%); } }
@keyframes cardTurn { from { transform: scaleX(1) translateY(0); } to { transform: scaleX(.2) translateY(-3px); } }

/* Phone app: Nova's Club */
.phone { width: 252px; aspect-ratio: 9 / 19; border-radius: 42px; padding: 8px; margin: 26px 0 40px; background: linear-gradient(145deg, #34343f, #0a0a10); box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 40px 70px -30px #000, 0 0 90px -34px var(--a1); }
.phone__screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #0d0c16; color: #f5f2ea; font-size: 11px; line-height: 1.35; }
.phone__screen::before { content: ''; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 62px; height: 18px; border-radius: 99px; background: #000; z-index: 3; }
.app__status { position: absolute; inset: 0 0 auto; height: 34px; padding: 11px 22px 0; display: flex; justify-content: space-between; font-weight: 700; font-size: 10.5px; z-index: 2; }
.app__sig { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.app__sig b { width: 2.5px; background: currentColor; border-radius: 1px; height: 40%; } .app__sig b:nth-child(2) { height: 70%; } .app__sig b:nth-child(3) { height: 100%; }
.app__sig i { width: 17px; height: 9px; margin-left: 4px; border: 1px solid currentColor; border-radius: 3px; background: linear-gradient(90deg, currentColor 70%, transparent 70%); background-clip: content-box; padding: 1px; }
.app__screen { position: absolute; inset: 36px 0 54px; padding: 6px 14px 8px; display: flex; flex-direction: column; gap: 11px; overflow: hidden; opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none; transition: opacity .35s, transform .35s; }
.app__screen.on { opacity: 1; transform: none; pointer-events: auto; }
.app__head { display: flex; align-items: center; gap: 9px; }
.app__ava { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 2px #0d0c16, 0 0 0 3px var(--a1); flex: none; }
.app__head p { flex: 1; font-size: 9.5px; color: var(--muted); } .app__head p b { display: block; font: 800 12px var(--display); color: #f5f2ea; }
.app__bell { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .08); position: relative; flex: none; }
.app__bell::after { content: ''; position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 0 2px #0d0c16; }
.app__hero { position: relative; flex: none; border-radius: 18px; padding: 13px; min-height: 124px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 28%, rgba(255, 255, 255, .6) 0 9%, transparent 9.5%), linear-gradient(165deg, #ffb37a, #ff6f91 55%, #5b2a86); }
.app__hero::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); animation: sheen 5s ease-in-out infinite; }
.app__badge { align-self: flex-start; margin-bottom: auto; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; background: rgba(0, 0, 0, .35); padding: 3px 8px; border-radius: 99px; }
.app__hero strong { font: 800 22px/1 'Playfair Display', serif; } .app__hero > span:not(.app__badge) { font-size: 9.5px; opacity: .92; }
.app__hero b { position: absolute; right: 12px; bottom: 12px; background: #fff; color: #1d1a24; font-size: 9.5px; padding: 5px 12px; border-radius: 99px; z-index: 1; }
.app__h { display: flex; justify-content: space-between; align-items: baseline; font: 600 10px var(--display); } .app__h i { font: normal 9.5px var(--body); color: var(--a1); }
.app__rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: none; }
.app__rail div { border-radius: 13px; aspect-ratio: 1 / 1.12; padding: 7px; display: flex; align-items: flex-end; font-size: 8.5px; font-weight: 700; line-height: 1.15; background: linear-gradient(170deg, #c9a45c, #3a1d4d 75%); }
.app__rail div:nth-child(2) { background: linear-gradient(170deg, var(--a3), #17142a 80%); } .app__rail div:nth-child(3) { background: linear-gradient(170deg, #c8ff3d, #0b4a47 70%); }
.app__live { display: flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 8px 9px; }
.app__live i { width: 30px; height: 30px; border-radius: 10px; background: var(--grad); flex: none; }
.app__live p { flex: 1; font-size: 9px; color: var(--muted); } .app__live p b { display: block; font-size: 10.5px; color: #f5f2ea; }
.app__live span { font-size: 8.5px; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: color-mix(in srgb, var(--a2) 25%, transparent); color: var(--a1); white-space: nowrap; }
.app__title { font: 800 17px var(--display); margin-top: 2px; }
.app__lib, .app__perks { list-style: none; padding: 0; display: grid; gap: 8px; }
.app__lib li { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 8px; }
.app__lib i { width: 38px; height: 48px; border-radius: 7px; flex: none; background: linear-gradient(165deg, #ffb37a, #ff6f91 55%, #5b2a86); }
.app__lib li:nth-child(2) i { background: linear-gradient(170deg, #c9a45c, #121016); } .app__lib li:nth-child(3) i { background: var(--grad); } .app__lib li:nth-child(4) i { background: #f6f1e7; }
.app__lib p { flex: 1; font-size: 9px; color: var(--muted); } .app__lib p b { display: block; font-size: 11px; color: #f5f2ea; }
.app__lib u { display: block; height: 4px; margin-top: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.app__lib u::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 99px; background: var(--grad); transform-origin: left; }
.app__screen.on .app__lib u::after { animation: grow .9s cubic-bezier(.2, .8, .2, 1) backwards; }
.app__ring { position: relative; width: 130px; margin: 2px auto 0; flex: none; }
.app__ring svg { display: block; transform: rotate(-90deg); }
.app__ring circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 7; }
.app__ring .app__arc { stroke: var(--a1); stroke-linecap: round; stroke-dasharray: 213.6; stroke-dashoffset: 213.6; filter: drop-shadow(0 0 5px var(--a1)); }
.app__screen.on .app__arc { animation: arc 1.2s .15s cubic-bezier(.2, .8, .2, 1) forwards; }
.app__ring p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 9px; color: var(--muted); } .app__ring p b { font: 800 24px/1 var(--display); color: #f5f2ea; }
.app__perks li { display: flex; align-items: center; gap: 8px; font-size: 10.5px; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 8px 10px; color: var(--muted); }
.app__perks li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.app__perks .got { color: #f5f2ea; } .app__perks .got::before { background: var(--a1); border-color: var(--a1); box-shadow: inset 0 0 0 3px #0d0c16; }
.app__tabs { position: absolute; inset: auto 0 0; height: 54px; padding-bottom: 6px; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(13, 12, 22, .9); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.app__tabs button { background: none; border: 0; cursor: pointer; font-size: 9px; color: var(--muted); display: grid; justify-items: center; align-content: center; gap: 3px; }
.app__tabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.app__tabs button.on { color: var(--a1); font-weight: 700; } .app__tabs button.on svg { fill: color-mix(in srgb, var(--a1) 25%, transparent); }
@keyframes arc { to { stroke-dashoffset: 59.8; } }
@keyframes sheen { 0%, 55% { left: -60%; } 100% { left: 140%; } }

/* Playable ad: ZEST Zero */
.stage--game { display: block; min-height: 420px; background: linear-gradient(#0b4a47, #04222b); }
#game { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.game__bar { position: absolute; inset: 0 0 auto; height: 4px; background: rgba(0, 0, 0, .35); pointer-events: none; }
.game__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #c8ff3d, #ffd23f); transform-origin: left; }
.game__hud { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; font: 600 13px var(--display); pointer-events: none; color: #f5f2ea; }
.game__hud b { color: #c8ff3d; }
.zest { font: 800 17px var(--display); font-style: italic; color: #c8ff3d; letter-spacing: -.02em; }
.zest i { font: 500 10px var(--body); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-left: 5px; }
.game__over { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; background: radial-gradient(70% 70% at 50% 40%, rgba(11, 74, 71, .82), rgba(2, 20, 26, .94)); backdrop-filter: blur(4px); }
.game__over.on { display: flex; }
.game__over strong { font: 800 clamp(1.5rem, 3vw, 2.3rem)/1.1 var(--display); font-style: italic; background: linear-gradient(100deg, #c8ff3d, #ffd23f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game__over p { color: #cfe9e3; max-width: 38ch; }
.game__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
#gamePlay { background: linear-gradient(100deg, #c8ff3d, #ffd23f); box-shadow: 0 8px 30px -10px #c8ff3d; }
.can { width: 54px; height: 96px; border-radius: 9px; position: relative; display: grid; place-items: center; background: linear-gradient(90deg, #5f8f12, #d8ff6a 38%, #f3ffc4 48%, #9fd62a 62%, #5f8f12); box-shadow: 0 18px 40px -14px #c8ff3d; animation: float 4s ease-in-out infinite; }
.can::before, .can::after { content: ''; position: absolute; left: 3px; right: 3px; height: 7px; background: linear-gradient(90deg, #8b949e, #f1f3f5 45%, #8b949e); }
.can::before { top: 0; border-radius: 9px 9px 2px 2px; } .can::after { bottom: 0; border-radius: 2px 2px 9px 9px; }
.can span { width: 100%; padding: 5px 0; background: #06302f; color: #c8ff3d; font: 800 12px var(--display); font-style: italic; text-align: center; }
.stage--game.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Product showcase ad: AURA One */
@property --pc { syntax: '<color>'; inherits: true; initial-value: #eadfca; }
@property --pd { syntax: '<color>'; inherits: true; initial-value: #9c8560; }
.show {
  position: relative; width: min(100%, 880px); height: 280px; border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; color: #fff;
  background: radial-gradient(55% 85% at 70% 48%, color-mix(in srgb, var(--pc) 38%, #15131f), #0b0a12 78%);
  transition: --pc .7s, --pd .7s;
}
.show__copy { padding-left: 8%; display: grid; gap: 14px; justify-items: start; position: relative; z-index: 2; }
.show__brand { font: 600 12px var(--display); letter-spacing: .5em; color: var(--pc); }
.show__lines { position: relative; display: block; width: 100%; height: 1.15em; font: 800 clamp(1.5rem, 3.5vw, 2.9rem)/1.15 var(--display); }
.show__lines b { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; }
.show.run .show__lines b { animation: adf 9s infinite; }
.show.run .show__lines b:nth-child(2) { animation-delay: 3s; } .show.run .show__lines b:nth-child(3) { animation-delay: 6s; }
.show__cta { padding: 10px 20px; border-radius: 99px; background: var(--pc); color: #0b0a12; font: 700 14px var(--body); box-shadow: 0 10px 30px -12px var(--pc); }
.show__prod { position: relative; height: 100%; display: grid; place-items: center; }
.show__prod svg { height: 215px; position: relative; z-index: 1; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5)); }
.show.run .show__prod svg { animation: hp 6s ease-in-out infinite; }
.hp-c { fill: var(--pc); } .hp-d { fill: var(--pd); } .hp-s { fill: none; stroke: var(--pd); }
.show__ring { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--pc) 55%, transparent); box-shadow: 0 0 0 26px color-mix(in srgb, var(--pc) 7%, transparent), 0 0 0 58px color-mix(in srgb, var(--pc) 4%, transparent); }
.show.run .show__ring { animation: pulse 5s ease-in-out infinite; }
.show__pin { position: absolute; z-index: 2; font-size: 12px; padding: 6px 12px 6px 22px; border-radius: 99px; white-space: nowrap; opacity: 0; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.show__pin::before { content: ''; position: absolute; left: 9px; top: 50%; translate: 0 -50%; width: 6px; height: 6px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 8px var(--pc); }
.show__pin--1 { left: 3%; top: 17%; } .show__pin--2 { right: 12%; top: 30%; } .show__pin--3 { left: 6%; bottom: 15%; }
.show.run .show__pin { animation: pin 9s infinite backwards; }
.show.run .show__pin--2 { animation-delay: 1.2s; } .show.run .show__pin--3 { animation-delay: 2.4s; }
.show__sw { position: absolute; right: 16px; top: 50%; translate: 0 -50%; display: grid; gap: 10px; z-index: 3; }
.show__sw button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); cursor: pointer; padding: 0; transition: transform .2s, border-color .2s; }
.show__sw button:hover { transform: scale(1.2); } .show__sw button.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
@keyframes adf { 0% { opacity: 0; transform: translateY(18px); } 5%, 29% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: translateY(-18px); } }
@keyframes hp { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-9px) rotate(5deg); } }
@keyframes pin { 0%, 6% { opacity: 0; transform: translateY(8px); } 12%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } }

@media (max-width: 980px) {
  .card--book, .card--mag { grid-column: span 12; }
}
@media (max-width: 560px) {
  .card--book .stage, .card--mag .stage { min-height: 320px; }
  .show { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 400px; }
  .show__copy { padding: 22px 0 0 7%; gap: 8px; } .show__prod svg { height: 185px; } .show__pin { font-size: 10.5px; } .show__pin--2 { right: 14%; }
}
@media (prefers-reduced-motion: reduce) {
  .show__lines b:nth-child(1), .show__pin { opacity: 1; }
}

/* ---------- Photography for the demos (files in /img, generated for this site) ---------- */
.mg-art { background: linear-gradient(to top, rgba(18, 16, 22, .9) 4%, transparent 38%), url(../img/muse-cover.jpg) center / cover; }
.mg-art::after { display: none; }
.mg-mast { text-shadow: 0 .05em .4em rgba(0, 0, 0, .35); }
.mg-feature { background: linear-gradient(to top, #0d0508 14%, rgba(13, 5, 8, 0) 58%), url(../img/muse-feature.jpg) center top / cover; }
.mg-img { background: url(../img/muse-studio.jpg) center / cover; }
.mg-grid span { background: linear-gradient(transparent 52%, rgba(18, 16, 22, .88)), url(../img/roster-1.jpg) center 20% / cover; }
.mg-grid span:nth-child(2) { background-image: linear-gradient(transparent 52%, rgba(18, 16, 22, .88)), url(../img/roster-2.jpg); }
.mg-grid span:nth-child(3) { background-image: linear-gradient(transparent 52%, rgba(18, 16, 22, .88)), url(../img/roster-3.jpg); }
.mg-grid span:nth-child(4) { background-image: linear-gradient(transparent 52%, rgba(18, 16, 22, .88)), url(../img/roster-4.jpg); }
.mg-grid span:nth-child(5) { background-image: linear-gradient(transparent 52%, rgba(18, 16, 22, .88)), url(../img/roster-5.jpg); }
.mg-grid span:nth-child(6) { background-image: linear-gradient(transparent 52%, rgba(18, 16, 22, .88)), url(../img/roster-6.jpg); }
.mg-grid span:nth-child(n) { background-size: cover; background-position: center 20%; }
.mg-ad { background: url(../img/lumen.jpg) center / cover; justify-content: flex-end; padding-bottom: 11% !important; }
.mg-bottle { display: none; }
.bk-dish { height: 30%; background: url(../img/glow-smoothie.jpg) center / cover; }
.bk-chap { background: linear-gradient(to top, #e4572e 20%, rgba(228, 87, 46, .1) 62%), url(../img/glow-morning.jpg) center top / cover; }
.bk-chap b { text-shadow: 0 .02em .25em rgba(120, 40, 10, .45); }
.app__hero { background: linear-gradient(to top, rgba(91, 42, 134, .92) 8%, rgba(255, 111, 145, .25) 60%, transparent), url(../img/glow-morning.jpg) center 18% / cover; }
.app__rail div:nth-child(1) { background: linear-gradient(transparent 40%, rgba(18, 16, 22, .9)), url(../img/muse-cover.jpg) center 35% / cover; }
.app__lib li:nth-child(1) i { background: url(../img/glow-morning.jpg) 40% 20% / cover; }
.app__lib li:nth-child(2) i { background: url(../img/muse-cover.jpg) center 40% / cover; }

/* E-book cover: sun-lit portrait (img/glow-cover.jpg) with the title set over its warm fade */
.bk-cover { background: linear-gradient(to top, rgba(110, 22, 64, .9) 0%, rgba(150, 38, 84, .45) 26%, transparent 50%), url(../img/glow-cover.jpg) center top / cover; gap: .35em !important; padding-bottom: calc(4 * var(--u)) !important; }
.bk-sun { display: none; }
/* Author name sits in the title block, below the subtitle, clear of the face */
.bk-by { position: static !important; order: 4; margin-top: .45em; font: 700 1.05em var(--display); letter-spacing: .5em; text-transform: uppercase; color: #fff; }
.bk-cover small { order: 5; }
.bk-kick { font: 600 .6em var(--display); letter-spacing: .32em; text-transform: uppercase; color: #ffe1c2; }
.bk-cover strong { font-size: 6.4em; line-height: .86; letter-spacing: .03em; background: linear-gradient(180deg, #fff 35%, #ffd9b8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 .06em .2em rgba(90, 10, 40, .45)); }
.bk-cover em { font-size: 1.1em; }
.bk-cover small { margin-top: .5em; padding-top: .7em; border-top: 1px solid rgba(255, 255, 255, .45); }
.app__hero { background: linear-gradient(to top, rgba(91, 42, 134, .92) 8%, rgba(255, 111, 145, .2) 60%, transparent), url(../img/glow-cover.jpg) center 22% / cover; }
.app__lib li:nth-child(1) i { background: url(../img/glow-cover.jpg) center 15% / cover; }

/* App demo: Nova's avatar and photo tiles */
.app__ava { background: url(../img/nova-avatar.jpg) center 30% / cover; }
.app__rail div { position: relative; overflow: hidden; }
.app__rail div:nth-child(2) { background: linear-gradient(transparent 38%, rgba(18, 16, 22, .9)), url(../img/glow-beach.jpg) center 30% / cover; }
.app__rail div:nth-child(3) { background: linear-gradient(transparent 38%, rgba(4, 20, 18, .92)), url(../img/brands-hero.jpg) center 40% / cover; }
.app__rail div:nth-child(2)::before { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 6px #ff5a5a; animation: rec 1.6s ease-in-out infinite; }
.app__rail div:nth-child(3)::before { content: ''; position: absolute; top: 34%; left: 50%; translate: -50% -50%; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.5 2.2 8 5 3.5 7.8z' fill='%2306302f'/%3E%3C/svg%3E") center / 60% no-repeat; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.app__live i { width: 36px; height: 36px; border-radius: 11px; position: relative; background: url(../img/nova-live.jpg) center 30% / cover; }
.app__live i::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 2px #1a1824; }

/* App library thumbnails: audio track uses the sunrise photo with a waveform; worksheet is a mini printable page */
.app__lib li:nth-child(3) i { position: relative; background: linear-gradient(transparent 45%, rgba(18, 16, 22, .85)), url(../img/glow-beach.jpg) center 25% / cover; }
.app__lib li:nth-child(3) i::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='4' width='2' height='2' rx='1'/%3E%3Crect x='4' y='2' width='2' height='6' rx='1'/%3E%3Crect x='8' y='0' width='2' height='10' rx='1'/%3E%3Crect x='12' y='3' width='2' height='4' rx='1'/%3E%3Crect x='16' y='1' width='2' height='8' rx='1'/%3E%3Crect x='20' y='3' width='2' height='4' rx='1'/%3E%3Crect x='24' y='4' width='2' height='2' rx='1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.app__lib li:nth-child(4) i { position: relative; background:
    linear-gradient(#e4572e, #e4572e) 5px 6px / 18px 3px no-repeat,
    linear-gradient(#1d1a24, #1d1a24) 5px 13px / 26px 2px no-repeat,
    repeating-linear-gradient(transparent 0 6px, rgba(29, 26, 36, .25) 6px 7px) 5px 20px / 28px 22px no-repeat,
    #f6f1e7; box-shadow: 3px 3px 0 -1px #d9d2c4; }
.app__lib li:nth-child(4) i::after { content: ''; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #e4572e; }

/* Launchpad: product mockups (img/pad-*.jpg) with a four-step build tracker */
.pad__card { display: flex; flex-direction: column; }
/* .pad prefix: the original Launchpad rules come later in this file, so these need the extra weight */
.pad .pad__art { height: auto; aspect-ratio: 3 / 2; background: #0b0a12; }
.pad .pad__art::after { display: none; }
.pad__art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), filter .6s; filter: saturate(.92); }
.pad__card:hover .pad__art img { transform: scale(1.06); filter: none; }
.pad__art .chip-s { position: absolute; top: 14px; left: 14px; background: rgba(8, 7, 14, .6); backdrop-filter: blur(8px); }
.pad__body { display: flex; flex-direction: column; flex: 1; }
.pad__type { font: 600 11px var(--display) !important; letter-spacing: .2em; text-transform: uppercase; color: var(--p1) !important; }
.pad__body h3 { font-size: 1.4rem; margin: 8px 0 8px; }
.pad__stage { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 5px; align-items: center; margin-top: auto; padding-top: 18px; }
.pad__stage i { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.pad__stage i:nth-child(-n+1) { background: var(--p1); }
.pad__stage[style*="--s:2"] i:nth-child(-n+2), .pad__stage[style*="--s:3"] i:nth-child(-n+3), .pad__stage[style*="--s:4"] i:nth-child(-n+4) { background: var(--p1); box-shadow: 0 0 8px -2px var(--p1); }
.pad__stage span { font-size: 12px; color: var(--muted); margin-left: 8px; }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before { content: ''; position: absolute; top: 34px; left: 3%; right: 3%; border-top: 1px dashed var(--line); }
.steps li { position: relative; padding: 0 6px; }
.steps span {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; margin-bottom: 18px;
  font: 800 16px var(--display); background: var(--bg); border: 1px solid var(--a1); color: var(--a1);
  box-shadow: 0 0 30px -8px var(--a1); position: relative;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; } .steps p { color: var(--muted); font-size: 15.5px; }

/* ---------- Launchpad ---------- */
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pad__card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--glass); transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .3s, opacity .8s; }
.pad__card:hover { transform: translateY(-6px) !important; border-color: var(--p1); }
.pad__art { height: 190px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--p1), var(--p2) 55%, var(--p3)); }
.pad__art::after { content: ''; position: absolute; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.pad__card:hover .pad__art::after { transform: scale(1.15) rotate(8deg); }
.pad__art--a::after { inset: 18% 30%; background: #f4efe4; border-radius: 4px; box-shadow: -14px 10px 0 rgba(0, 0, 0, .25); }
.pad__art--b::after { inset: 24% 36%; background: #07060d; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.pad__art--c::after { inset: 14% 34%; background: #17151f; border-radius: 3px 10px 10px 3px; box-shadow: 10px 10px 0 rgba(0, 0, 0, .25); }
.pad__art--d::after { inset: 12% 39%; background: #0c0c14; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .5); }
.pad__art--e::after { inset: 34% 14%; background: #07060d; border-radius: 8px; box-shadow: 0 -34px 0 -10px rgba(0, 0, 0, .3), 0 34px 0 -10px rgba(0, 0, 0, .3); }
.pad__art--f::after { inset: 20% 20%; border-radius: 6px; background: repeating-linear-gradient(90deg, #f4efe4 0 22%, transparent 22% 26%); }
.pad__body { padding: 18px 20px 22px; }
.pad__body h3 { font-size: 1.2rem; margin: 10px 0 4px; } .pad__body p { color: var(--muted); font-size: 14.5px; }
.chip-s { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--p1); color: var(--p1); }

/* ---------- Briefing ---------- */
.brief { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
#briefForm, .brief__side { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 34px); backdrop-filter: blur(8px); }
.brief__side { position: sticky; top: 96px; }
fieldset { border: 0; padding: 0; margin-bottom: 26px; min-width: 0; }
legend { font: 600 1rem var(--display); margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); cursor: pointer; transition: all .2s; font-size: 15px; }
.chip span:hover { border-color: var(--a1); }
.chip input:checked + span { background: var(--grad); color: #07060d; border-color: transparent; font-weight: 700; transform: scale(1.04); }
.chip input:focus-visible + span { outline: 2px solid var(--a1); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.fields label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); } .fields .wide { grid-column: 1 / -1; }
.fields input, .fields textarea { width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a1) 25%, transparent); }
.brief__side h3 { font-size: 1.05rem; margin-bottom: 14px; }
#briefSummary { display: grid; gap: 10px; }
#briefSummary div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 15px; }
#briefSummary dt { color: var(--muted); } #briefSummary dd { text-align: right; font-weight: 500; }
#briefSummary dd.empty { opacity: .35; }
.brief__done { margin-top: 22px; }
.brief__done pre { white-space: pre-wrap; font: 13px/1.6 ui-monospace, Consolas, monospace; background: rgba(0, 0, 0, .4); border-radius: 12px; padding: 14px; margin-bottom: 14px; color: var(--ink); }
.brief__done .game__btns { justify-content: flex-start; }

/* ---------- Footer, toast, modal ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 44px var(--pad) 54px; display: grid; gap: 10px; justify-items: center; text-align: center; color: var(--muted); }
.footer__mail { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--a1); padding-bottom: 2px; transition: color .2s; }
.footer__mail:hover { color: var(--a1); }
.footer__fine { font-size: 14px; display: flex; align-items: center; gap: 4px; }
.toast { position: fixed; left: 50%; bottom: 26px; translate: -50% 30px; z-index: 96; padding: 12px 20px; border-radius: 99px; background: rgba(12, 12, 24, .92); border: 1px solid var(--a1); font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; translate: -50% 0; }
.modal { margin: auto; max-width: min(520px, calc(100vw - 32px)); padding: 34px; border-radius: 26px; border: 1px solid var(--a1); background: #0a0b1a; color: var(--ink); text-align: center; box-shadow: 0 0 120px -30px var(--a1); }
.modal::backdrop { background: rgba(3, 3, 10, .78); backdrop-filter: blur(6px); }
.modal .eyebrow { margin: 0 auto 10px; } .modal h2 { font-size: 1.6rem; margin-bottom: 12px; } .modal p { color: var(--muted); margin-bottom: 18px; }
.modal strong { color: var(--a1); letter-spacing: .08em; }
.lyra { width: 190px; margin: 0 auto 14px; display: block; }
.lyra__lines path { fill: none; stroke: var(--a1); stroke-width: 1.2; opacity: .55; stroke-dasharray: 900; stroke-dashoffset: 900; }
.modal[open] .lyra__lines path { animation: draw 2.4s .3s ease-out forwards; }
.lyra__stars circle { fill: #fff; filter: drop-shadow(0 0 6px var(--a1)); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Lane planets: rendered cut-outs (img/planet-*.webp) with a product moon that orbits on hover ---------- */
.portal .portal__planet i { left: -12px; top: -8px; width: 124px; aspect-ratio: 1; border-radius: 0; box-shadow: none; z-index: 1;
  background: center / contain no-repeat; filter: drop-shadow(0 14px 26px color-mix(in srgb, var(--p1) 40%, transparent));
  animation: planetDrift 10s ease-in-out infinite alternate; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .8s; }
.portal--creators .portal__planet i { background-image: url(../img/planet-creators.webp); animation: planetDrift 10s ease-in-out infinite alternate; }
.portal--agencies .portal__planet i { background-image: url(../img/planet-agencies.webp); animation-delay: -3s; }
.portal--brands .portal__planet i { background-image: url(../img/planet-brands.webp); animation-delay: -6s; }
.portal--agencies .portal__planet::after { display: none; }
/* Ringed planets: the ring takes up width, so draw them larger to match the Creators sphere */
.portal--agencies .portal__planet i, .portal--brands .portal__planet i { left: -30px; top: -26px; width: 160px; }
.portal:hover .portal__planet i, .portal:focus-visible .portal__planet i { transform: scale(1.08); filter: drop-shadow(0 18px 34px color-mix(in srgb, var(--p1) 60%, transparent)); }
@keyframes planetDrift { from { translate: 0 0; rotate: -5deg; } to { translate: 0 -6px; rotate: 5deg; } }

/* The moon: x on .portal__orbit, y and size on .portal__moon, so together they trace an ellipse.
   z-index flips halfway round, so the moon passes in front of the planet, then behind it. */
/* Keep --rx at 60px or less: wider orbits get clipped by the card's left edge.
   Each orbit is tunable: --rx width, --ry depth, --k tilt (y per x), --t period, --d start offset */
.portal__orbit { --rx: 60px; --ry: 18px; --k: 0; --t: 7s; --d: 0s;
  position: absolute; left: 50px; top: 54px; width: 0; height: 0; z-index: 3; opacity: 0; transition: opacity .6s;
  animation: orbitX var(--t) ease-in-out var(--d) infinite, orbitZ var(--t) linear var(--d) infinite; }
.portal__moon { position: absolute; left: -11px; top: -15px; width: 22px; height: 30px; border-radius: 2px 4px 4px 2px;
  background: center / cover no-repeat; box-shadow: 0 6px 14px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .25);
  animation: orbitY var(--t) ease-in-out var(--d) infinite; }
.portal--creators .portal__moon { background-image: url(../img/glow-cover.jpg); }
.portal--agencies .portal__moon { background-image: url(../img/muse-cover.jpg); border-radius: 1px; }
.portal--brands .portal__moon { left: -8px; top: -19px; width: 16px; height: 38px; border-radius: 0; box-shadow: none; background: url(../img/zest-can.webp) center / contain no-repeat; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .55)); }
.portal:hover .portal__orbit, .portal:focus-visible .portal__orbit { opacity: 1; }
@keyframes orbitX { 0%, 100% { translate: calc(var(--rx) * -1) calc(var(--rx) * var(--k) * -1); } 50% { translate: var(--rx) calc(var(--rx) * var(--k)); } }
@keyframes orbitY { 0%, 50%, 100% { transform: translateY(0) scale(1); } 25% { transform: translateY(var(--ry)) scale(1.15); } 75% { transform: translateY(calc(var(--ry) * -1)) scale(.78); } }

/* Creators: four extra satellites on different orbits, sizes and speeds (staggered so they never bunch up) */
/* Creators planet is drawn a little smaller and shifted right so its orbits can be wide and still stay inside the card */
.portal--creators .portal__planet i { left: 28px; top: -2px; width: 104px; }
.portal--creators .portal__orbit { left: 80px; top: 50px; --rx: 82px; --ry: 20px; }
.portal--creators .portal__orbit:not(.sat) .portal__moon { left: -13px; top: -18px; width: 26px; height: 36px; }
.portal--creators .sat--1 { --rx: 68px; --ry: 15px; --k: -.36; --t: 5.4s; --d: -2.1s; }
.portal--creators .sat--2 { --rx: 86px; --ry: 26px; --k: .26; --t: 9.2s; --d: -5.6s; }
.portal--creators .sat--3 { --rx: 62px; --ry: 12px; --k: .5; --t: 4.3s; --d: -.9s; }
.portal--creators .sat--4 { --rx: 78px; --ry: 32px; --k: -.14; --t: 11.5s; --d: -8.3s; }
.portal--creators .sat .portal__moon { box-shadow: 0 4px 10px rgba(0, 0, 0, .5), 0 0 0 1.5px rgba(255, 255, 255, .55), 0 0 12px -2px var(--p1); }
.portal--creators .sat--1 .portal__moon { left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background-image: url(../img/nova-avatar.jpg); }
.portal--creators .sat--2 .portal__moon { left: -10px; top: -17px; width: 20px; height: 34px; border-radius: 4px; background-image: url(../img/glow-beach.jpg); box-shadow: 0 0 0 2px #17161f, 0 0 0 2.6px rgba(255, 255, 255, .4), 0 4px 10px rgba(0, 0, 0, .5); }
.portal--creators .sat--3 .portal__moon { left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background-image: url(../img/glow-smoothie.jpg); }
.portal--creators .sat--4 .portal__moon { left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 6px; background-image: url(../img/nova-live.jpg); }
.portal--creators .sat--4 .portal__moon::after { content: ''; position: absolute; right: -2px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 1.5px #17161f; }
.portal--creators .portal__orbit.sat { transition-delay: calc(var(--i, 1) * 90ms); }
.portal--creators .sat--1 { --i: 1; } .portal--creators .sat--2 { --i: 2; } .portal--creators .sat--3 { --i: 3; } .portal--creators .sat--4 { --i: 4; }
@keyframes orbitZ { 0%, 49.9% { z-index: 3; } 50%, 100% { z-index: 0; } }

/* ---------- Agencies: gold mirror-ball planet ----------
   img/planet-agencies.webp is the ball; ::before is a twinkling glint. .ball-lights are the reflections it throws
   across the card: soft light spots, and on every other one a tiny roster portrait (a face caught in a mirror tile).
   They glow faintly at rest and come up fully on hover. */
.portal--agencies .portal__planet i { left: -12px; top: -8px; width: 124px; }
.portal--agencies .portal__planet i::before { content: ''; position: absolute; left: 26%; top: 20%; width: 18px; height: 18px; z-index: 1;
  background: #fff; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 4px #fff); animation: glint 3.4s ease-in-out infinite; }
@keyframes glint { 0%, 60%, 100% { transform: scale(0) rotate(0); opacity: 0; } 75% { transform: scale(1) rotate(45deg); opacity: 1; } }

.ball-lights { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: .35; transition: opacity .8s; }
.portal--agencies:hover .ball-lights, .portal--agencies:focus-visible .ball-lights { opacity: 1; }
.ball-lights b { position: absolute; left: 0; width: 10px; height: 6px; border-radius: 50%;
  background: radial-gradient(closest-side, #fffaf0, rgba(255, 228, 170, .7) 45%, rgba(236, 217, 173, 0));
  box-shadow: 0 0 10px 2px rgba(236, 217, 173, .5); animation: ballLight 11s linear infinite; }
.ball-lights b:nth-child(1) { top: 8%;  animation-duration: 12s; animation-delay: -1s; }
.ball-lights b:nth-child(2) { top: 17%; animation-duration: 9s;  animation-delay: -6s; width: 7px; height: 4px; }
.ball-lights b:nth-child(3) { top: 29%; animation-duration: 14s; animation-delay: -3s; width: 14px; height: 8px; }
.ball-lights b:nth-child(4) { top: 41%; animation-duration: 10s; animation-delay: -8s; }
.ball-lights b:nth-child(5) { top: 52%; animation-duration: 13s; animation-delay: -11s; width: 6px; height: 4px; }
.ball-lights b:nth-child(6) { top: 63%; animation-duration: 11s; animation-delay: -4s; width: 12px; height: 7px; }
.ball-lights b:nth-child(7) { top: 74%; animation-duration: 15s; animation-delay: -9s; }
.ball-lights b:nth-child(8) { top: 85%; animation-duration: 9.5s; animation-delay: -2s; width: 8px; height: 5px; }
.ball-lights b:nth-child(9) { top: 93%; animation-duration: 12.5s; animation-delay: -7s; width: 13px; height: 7px; }
.ball-lights b:nth-child(even) { width: 18px; height: 18px; border-radius: 2px; background: #2a1d0e center 22% / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 244, 220, .8), 0 0 12px 1px rgba(236, 217, 173, .6); filter: sepia(.35) saturate(1.1) brightness(1.05); }
.ball-lights b:nth-child(2) { background-image: url(../img/roster-1.jpg); }
.ball-lights b:nth-child(4) { background-image: url(../img/roster-2.jpg); width: 22px; height: 22px; }
.ball-lights b:nth-child(6) { background-image: url(../img/roster-3.jpg); }
.ball-lights b:nth-child(8) { background-image: url(../img/roster-5.jpg); width: 20px; height: 20px; }
/* Portraits stay in the top band around the ball, clear of the card text */
.ball-lights b:nth-child(2) { top: 5%; } .ball-lights b:nth-child(4) { top: 15%; }
.ball-lights b:nth-child(6) { top: 25%; } .ball-lights b:nth-child(8) { top: 33%; }
@keyframes ballLight { 0% { transform: translateX(-30px); opacity: 0; } 8% { opacity: 1; } 50% { opacity: .55; } 58% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(440px); opacity: 0; } }

/* ---------- Creators: paparazzi camera flashes ----------
   Eight flashes pop to the right of the planet, anywhere down the card. Each is a white burst with
   star rays and a wide bloom. js/main.js moves each one to a new random spot every time it fires.
   Occasional at rest; on hover the whole set brightens. */
.cam-flashes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: .7; transition: opacity .6s; }
.portal--creators:hover .cam-flashes, .portal--creators:focus-visible .cam-flashes { opacity: 1; }
.cam-flashes b { position: absolute; left: 70%; top: 30%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, #fff 0 18%, rgba(255, 245, 250, .85) 30%, rgba(255, 180, 220, .25) 60%, transparent);
  box-shadow: 0 0 60px 26px rgba(255, 255, 255, .18); animation: camFlash 5.3s linear infinite; }
.cam-flashes b::before, .cam-flashes b::after { content: ''; position: absolute; left: 50%; top: 50%; width: 120%; height: 2px; translate: -50% -50%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff 45%, #fff 55%, transparent); }
.cam-flashes b::after { width: 2px; height: 120%; background: linear-gradient(transparent, #fff 45%, #fff 55%, transparent); }
.cam-flashes b:nth-child(1) { animation-duration: 4.1s; animation-delay: -.4s; }
.cam-flashes b:nth-child(2) { animation-duration: 5.7s; animation-delay: -2.2s; width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.cam-flashes b:nth-child(3) { animation-duration: 6.3s; animation-delay: -3.9s; }
.cam-flashes b:nth-child(4) { animation-duration: 4.7s; animation-delay: -1.3s; width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.cam-flashes b:nth-child(5) { animation-duration: 7.1s; animation-delay: -5.1s; width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cam-flashes b:nth-child(6) { animation-duration: 5.1s; animation-delay: -.9s; }
.cam-flashes b:nth-child(7) { animation-duration: 6.7s; animation-delay: -4.4s; width: 38px; height: 38px; margin: -19px 0 0 -19px; }
.cam-flashes b:nth-child(8) { animation-duration: 4.4s; animation-delay: -3s; }
/* A camera flash: instant pop, short glare, quick fade. The rest of each cycle is dark. */
@keyframes camFlash { 0% { opacity: 0; transform: scale(.3) rotate(0deg); } 1% { opacity: 1; transform: scale(1.15) rotate(10deg); }
  3% { opacity: .55; transform: scale(1) rotate(16deg); } 6%, 100% { opacity: 0; transform: scale(.8) rotate(24deg); } }

/* ---------- Brands: spotlight rig shining on the planet ----------
   A small truss with one stage light sits inside the card, top right, and throws a white beam down onto
   the planet. Geometry is measured from the card's left edge so it lines up at every card width:
   lens at (290px, 30px), planet centre at about (76px, 82px), so the beam points 166 degrees.
   The planet's lit side comes from i::after, masked to the planet's own shape. */
.spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.spot__rig { position: absolute; left: 266px; top: 4px; width: 80px; overflow: visible; }
.spot__lens { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px rgba(255, 255, 255, .9)); animation: lensHum 4s ease-in-out infinite; }
.spot__beam { position: absolute; left: 290px; top: 30px; width: 270px; height: 160px; margin-top: -80px; transform-origin: 0 50%;
  rotate: 166deg; clip-path: polygon(0 47%, 100% 0, 100% 100%, 0 53%);
  background: linear-gradient(90deg, rgba(255, 255, 255, .62), rgba(235, 255, 248, .28) 55%, rgba(200, 255, 235, .06) 85%, transparent),
    radial-gradient(120% 60% at 0 50%, rgba(255, 255, 255, .5), transparent 60%);
  filter: blur(5px); mix-blend-mode: screen; opacity: .8;
  animation: beamSway 9s ease-in-out infinite alternate, beamHum 4s ease-in-out infinite; transition: opacity .6s; }
.portal--brands:hover .spot__beam, .portal--brands:focus-visible .spot__beam { opacity: 1; }
@keyframes beamSway { from { rotate: 163.5deg; } to { rotate: 168.5deg; } }
@keyframes beamHum { 0%, 100% { filter: blur(5px) brightness(1); } 47% { filter: blur(5px) brightness(1); } 50% { filter: blur(5px) brightness(1.25); } 53% { filter: blur(5px) brightness(.95); } }
@keyframes lensHum { 50% { opacity: .85; } }
/* Dust caught in the beam */
.spot__beam i { position: absolute; left: 10%; top: 50%; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0; animation: mote 6s linear infinite; }
.spot__beam i:nth-child(1) { --y: -6px;  animation-delay: -.5s; }
.spot__beam i:nth-child(2) { --y: 14px;  animation-delay: -1.6s; animation-duration: 7s; }
.spot__beam i:nth-child(3) { --y: -22px; animation-delay: -2.8s; }
.spot__beam i:nth-child(4) { --y: 26px;  animation-delay: -3.7s; animation-duration: 8s; }
.spot__beam i:nth-child(5) { --y: 4px;   animation-delay: -4.6s; animation-duration: 5.5s; }
.spot__beam i:nth-child(6) { --y: -30px; animation-delay: -5.4s; animation-duration: 7.5s; }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 80% { opacity: .6; } 100% { opacity: 0; transform: translate(190px, var(--y)); } }
/* The lit side of the planet: a white glow from the upper right, clipped to the planet's own outline */
.portal--brands .portal__planet i::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 74% 34%, rgba(255, 255, 255, .7), rgba(220, 255, 245, .25) 45%, transparent 70%);
  -webkit-mask: url(../img/planet-brands.webp) center / contain no-repeat; mask: url(../img/planet-brands.webp) center / contain no-repeat;
  mix-blend-mode: screen; opacity: .75; transition: opacity .6s; }
.portal--brands:hover .portal__planet i::after { opacity: 1; }

/* Game start card: the real ZEST Zero can (same cut-out as the Brands ad formats). The game itself still draws its own cans. */
.game__can { height: 128px; width: auto; transform: rotate(-6deg); animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(200, 255, 61, .35)); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .portals, .pad { grid-template-columns: 1fr; }
  .portal { min-height: 0; }
  .card--book, .card--mag, .card--phone, .card--game, .card--ad { grid-column: span 12; }
  .card--ad { flex-direction: column; align-items: stretch; } .card--ad .card__meta { flex: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 34px; } .steps::before { display: none; }
  .brief { grid-template-columns: 1fr; } .brief__side { position: static; }
  .sun { width: 80vw; right: -24%; top: 2%; opacity: .8; }
}
@media (max-width: 560px) {
  .nav .btn--sm { display: none; }
  .hero { padding-top: 120px; min-height: 0; }
  .steps, .fields { grid-template-columns: 1fr; }
  .card { padding: 18px; } .stage { min-height: 290px; }
  .ad__f { right: 30%; } .ad__orb { width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ad .ad__f--3 { opacity: 1; }
}
