/* Maison Lyte, version 43: shared styles added on top of each page's own.
   The logo mark, the sky's colour wash, the hero entrance, the loop without the scroll lock,
   the audience map and the floating-letters readout. */

/* ---------- Logo mark: a ball of light with small lights going round it, like the centre of the loop ---------- */
.logo svg.mark { width: 36px; height: 36px; flex: none; overflow: visible; margin: -3px -2px -3px -4px; }
.mark .mk-glow { transform-box: fill-box; transform-origin: center; animation: mk-breathe 4.5s ease-in-out infinite; }
.mark .mk-core { filter: drop-shadow(0 0 3px #ffb547); transform-box: fill-box; transform-origin: center; transition: transform 500ms var(--ease); }
.mark .mk-orbit { transform-origin: 16px 16px; animation: mk-spin 6s linear infinite; }
.mark .mk-orbit circle { fill: #fff3d6; filter: drop-shadow(0 0 1.6px #ffb547); }
.mark .mk-orbit.o1 { animation-duration: 5.2s; }
.mark .mk-orbit.o2 { animation-duration: 3.4s; animation-direction: reverse; animation-delay: -1.1s; }
.mark .mk-orbit.o3 { animation-duration: 8.6s; animation-delay: -3s; }
.mark .mk-orbit.o4 { animation-duration: 4.3s; animation-direction: reverse; animation-delay: -2s; }
.logo:hover .mk-orbit, .logo:focus-visible .mk-orbit { animation-duration: 1.6s; }
.logo:hover .mk-orbit.o2 { animation-duration: 1.1s; }
.logo:hover .mk-core, .logo:focus-visible .mk-core { transform: scale(1.16); }
@keyframes mk-spin { to { transform: rotate(360deg); } }
@keyframes mk-breathe { 50% { transform: scale(1.16); opacity: 0.72; } }
@media (prefers-reduced-motion: reduce) { .mark .mk-orbit, .mark .mk-glow { animation: none; } .mark .mk-orbit.o2 { transform: rotate(130deg); } .mark .mk-orbit.o3 { transform: rotate(250deg); } .mark .mk-orbit.o4 { transform: rotate(40deg); } }

/* ---------- Sky: a slow wash of colour behind the stars (the element is made by sky.js) ---------- */
.sky-wash { position: fixed; inset: -20vmax; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s ease;
  background:
    radial-gradient(38% 34% at 72% 30%, rgba(255, 170, 70, 0.11), transparent 70%),
    radial-gradient(34% 30% at 22% 68%, rgba(255, 112, 72, 0.06), transparent 70%),
    radial-gradient(44% 38% at 30% 22%, rgba(92, 112, 255, 0.075), transparent 72%),
    radial-gradient(36% 32% at 82% 80%, rgba(70, 150, 190, 0.05), transparent 70%);
  animation: wash-drift 80s ease-in-out infinite alternate; will-change: transform; }
.sky-wash.on { opacity: 0.55; }   /* a softer wash than first drafted */
@keyframes wash-drift { from { transform: translate3d(-3%, -2%, 0) rotate(-4deg) scale(1); } to { transform: translate3d(4%, 3%, 0) rotate(5deg) scale(1.12); } }

/* ---------- Home hero ---------- */
/* The page arrives in order: label, headline, creed, text, button, then the shell swells in */
.hero-copy > *, .hero-copy h1 > span { animation: in-rise 900ms var(--ease) both; }
.hero-copy h1 { animation: none; }
.hero-copy h1 > .h1-main { animation-delay: 90ms; }
.hero-copy > .creed { animation-delay: 220ms; }
.hero-copy > .sub { animation-delay: 320ms; }
.hero-copy > .actions { animation-delay: 420ms; }
.stage .seed { animation: in-swell 1400ms var(--ease) both; }
.page-head .wrap > * { animation: in-rise 900ms var(--ease) both; }
.page-head .wrap > :nth-child(2) { animation-delay: 90ms; }
.page-head .wrap > :nth-child(3) { animation-delay: 200ms; }
.page-head .wrap > :nth-child(4) { animation-delay: 300ms; }
@keyframes in-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes in-swell { from { opacity: 0; transform: scale(0.86); } }

/* ---------- Six steps, one loop: the scroll drives it (cycle.js); the canvas is larger so the glow fades out ---------- */
.cycle-ring canvas { inset: -45%; width: 190%; height: 190%; }
@media (min-width: 1000px) {
  .cycle-step h3 { transition: color 600ms var(--ease), text-shadow 600ms var(--ease); }
  .cycle-step.now h3 { color: var(--amber-soft); text-shadow: 0 0 22px rgba(255, 196, 107, 0.4); }
}

/* ---------- How we read your audience: the audience map (map.js) ---------- */
.amap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; margin-top: 8px; }
.amap-view { position: relative; aspect-ratio: 1.2; border-radius: 16px; background: radial-gradient(70% 70% at 45% 50%, rgba(255, 181, 71, 0.05), transparent 75%), rgba(16, 15, 13, 0.7); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.amap-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.amap-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.amap-step { position: relative; display: grid; gap: 4px; padding: 16px 16px 16px 22px; border-radius: 12px; cursor: pointer; opacity: 0.45; transition: opacity 500ms var(--ease), background-color 500ms var(--ease); }
.amap-step::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--line-strong); transition: background-color 500ms var(--ease), box-shadow 500ms var(--ease); }
.amap-step h3 { font-size: 20px; letter-spacing: -0.01em; transition: color 500ms var(--ease); }
.amap-step b { font-weight: 500; font-size: 15px; }
.amap-step p { color: var(--fg2); font-size: 14px; line-height: 22px; }
.amap-step .meta { transition: color 500ms var(--ease); }
.amap-step:hover { opacity: 0.8; }
.amap-step.on { opacity: 0.75; }
.amap-step.now { opacity: 1; background: rgba(38, 36, 33, 0.55); }
.amap-step.now::before { background: var(--amber); box-shadow: 0 0 12px rgba(255, 181, 71, 0.7); }
.amap-step.now .meta { color: var(--amber); }
.amap-step.now h3 { color: var(--amber-soft); }
@media (max-width: 960px) { .amap { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- The readout: letters float, then gather into the reading (decode.js) ---------- */
.readout { position: relative; }
.readout canvas.ro-cv { display: block; width: 100%; touch-action: pan-y; }
.readout .ro-head { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) { .sky-wash { animation: none; } }

/* The home page now ends on the questions, after the form */
.contact:not(:last-child) { border-bottom: 1px solid var(--line); }
main > .section:last-child { border-bottom: 0; }

/* ---------- UGC content (brands page) and the exclusive roster (creators page) ---------- */
.svc.ugc { grid-column: 1 / -1; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; background: radial-gradient(60% 120% at 0% 0%, rgba(255, 181, 71, 0.07), transparent 70%), var(--card); }
.svc.ugc .meta { display: block; margin-bottom: 10px; color: var(--amber); }
.svc.ugc .ugc-body { display: grid; gap: 20px; }
.roster { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 16px; padding: 28px 32px; border-radius: 16px; background: radial-gradient(50% 140% at 100% 50%, rgba(255, 181, 71, 0.09), transparent 70%), var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.roster h3 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 8px; }
.roster p { color: var(--fg2); font-size: 15px; line-height: 24px; max-width: 62ch; }
.roster .btn { flex: none; }
@media (max-width: 800px) { .svc.ugc { grid-template-columns: 1fr; gap: 20px; } .roster { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; } }

/* ---------- Creators page: three ways to work with us, and the dark and the light ---------- */
.compare.three { grid-template-columns: repeat(3, 1fr); }
.compare.three .col { display: flex; flex-direction: column; }
.col.night { background: rgba(10, 9, 8, 0.72); box-shadow: inset 0 0 0 1px rgba(239, 233, 222, 0.06); }
.col.night h3 { color: var(--fg2); }
.col.night li { color: var(--fg2); opacity: 0.8; }
.col.night li::before { background: rgba(239, 233, 222, 0.18); }
.dark-light .compare { align-items: stretch; }
@media (max-width: 960px) { .compare.three { grid-template-columns: 1fr; } }


/* Page headers with the spinning ball of light: a soft dark backdrop that fades out well inside the section, so the ball reads clearly against the stars */
.head-ball::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 36% 58% at 79% 50%, rgba(13, 12, 10, 0.97) 0%, rgba(13, 12, 10, 0.93) 45%, rgba(13, 12, 10, 0) 100%); }
@media (max-width: 960px) { .head-ball::before { background: radial-gradient(ellipse 60% 55% at 85% 50%, rgba(13, 12, 10, 0.9) 0%, rgba(13, 12, 10, 0) 100%); } }

/* Platforms: logo, name and one short phrase each */
.platforms.detail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 28px; margin: 0; }
.platforms.detail li { align-items: flex-start; gap: 14px; }
.platforms.detail svg { width: 28px; height: 28px; margin-top: 2px; color: var(--fg); flex: none; }
.platforms .pf { display: grid; gap: 4px; }
.platforms .pf b { font-weight: 500; font-size: 17px; color: var(--fg); }
.platforms .pf em { font-style: normal; font-size: 14px; line-height: 21px; color: var(--fg2); }
@media (max-width: 960px) { .platforms.detail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .platforms.detail { grid-template-columns: 1fr; } }

/* Six steps, one loop: a little room under the last step's text, so it never sits against the bottom of the screen */
@media (min-width: 1000px) {
  .cycle-ring { width: min(380px, 36vh); }
}
@media (min-width: 1000px) { .cycle-ring { transform: translateY(-14px); } }
/* Shorter laptop screens: a smaller ring and tighter text, so all six steps fit without touching the edges */
@media (min-width: 1000px) and (max-height: 760px) {
  .cycle-ring { width: min(380px, 30vh); transform: none; }
  .cycle-step.s1 { bottom: calc(100% + 12px); }
  .cycle-step.s4 { top: calc(100% + 12px); }
  .cycle-step { width: 300px; }
  .cycle-step.s1, .cycle-step.s4 { width: 250px; margin-left: -125px; }
  .cycle-step h3 { font-size: 19px; }
  .cycle-step b { font-size: 14px; }
  .cycle-step p { font-size: 13px; line-height: 19px; }
  .cycle-step.s2, .cycle-step.s3 { left: calc(100% + 34px); }
  .cycle-step.s5, .cycle-step.s6 { right: calc(100% + 34px); }
}
