/* =====================================================================
   Musician designs (2026-11-10)
   1. Music effects: a decorative, animated layer behind the card (template 'fx'):
      eq, vinyl, notes, waves, strings, keys, drums, spotlight. Never catches taps; still for reduced motion.
   2. Mini-website layout (template 'layout' => 'site'): on wide screens the card opens up into a
      full-width page with a big hero and sections side by side; on phones it stays a card.
   ===================================================================== */

/* ---------- 1. Effects layer ---------- */
.music-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; color: var(--accent); opacity: var(--fx-o, 1); }
.has-fx .page > [data-section-id], .has-fx .dock, .has-fx .rail { position: relative; z-index: 1; }
.has-fx .dock { position: fixed; z-index: 21; }
.has-fx .rail { position: fixed; z-index: 20; }

/* Equaliser: bars dancing along the bottom */
.fx-eq { display: flex; align-items: flex-end; gap: min(4px, .8vw); padding: 0 min(6px, 1.5vw); }
.fx-eq i { flex: 1; height: 38vh; border-radius: 6px 6px 0 0; background: linear-gradient(to top, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent)); opacity: .38; min-width: 0;
    transform-origin: bottom; animation: eq 1.1s ease-in-out infinite alternate; }
.fx-eq i:nth-child(3n) { animation-duration: .8s; } .fx-eq i:nth-child(4n+1) { animation-duration: 1.4s; } .fx-eq i:nth-child(5n+2) { animation-duration: .95s; }
.fx-eq i:nth-child(2n) { animation-delay: -.4s; } .fx-eq i:nth-child(3n+1) { animation-delay: -.9s; } .fx-eq i:nth-child(7n) { animation-delay: -.2s; }
@keyframes eq { 0% { transform: scaleY(.08); } 50% { transform: scaleY(.55); } 100% { transform: scaleY(.25); } }

/* Vinyl: a big record turning in the corner, tone arm resting on it */
.fx-vinyl::before { content: ''; position: absolute; width: min(120vw, 820px); aspect-ratio: 1; right: -38%; top: -12%; border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0 14%, #0b0b0b 14.5% 15.5%, transparent 16%),
                repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2px 4px);
    box-shadow: 0 0 0 10px rgb(0 0 0 / .25), 0 30px 80px rgb(0 0 0 / .45); opacity: .5; animation: spin 9s linear infinite; }
.fx-vinyl::after { content: ''; position: absolute; width: 46vw; max-width: 300px; height: 10px; right: 4%; top: 18%; border-radius: 6px;
    background: linear-gradient(90deg, #d4d4d8, #71717a); transform: rotate(-32deg); transform-origin: right; opacity: .55; box-shadow: 0 4px 10px rgb(0 0 0 / .4); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Notes: music notes drifting up the screen */
.fx-notes span { position: absolute; bottom: -12vh; font: 400 clamp(28px, 6vw, 64px) / 1 Georgia, serif; opacity: 0; color: var(--accent); animation: rise 14s linear infinite; }
.fx-notes span:nth-child(1) { left: 6%; animation-delay: 0s; } .fx-notes span:nth-child(2) { left: 22%; animation-delay: -3s; font-size: clamp(22px, 4vw, 44px); }
.fx-notes span:nth-child(3) { left: 38%; animation-delay: -7s; } .fx-notes span:nth-child(4) { left: 55%; animation-delay: -1.5s; font-size: clamp(34px, 7vw, 76px); }
.fx-notes span:nth-child(5) { left: 70%; animation-delay: -10s; } .fx-notes span:nth-child(6) { left: 84%; animation-delay: -5s; font-size: clamp(20px, 4vw, 40px); }
.fx-notes span:nth-child(7) { left: 92%; animation-delay: -12s; } .fx-notes span:nth-child(8) { left: 14%; animation-delay: -8.5s; }
@keyframes rise { 0% { transform: translateY(0) rotate(-10deg); opacity: 0; } 12% { opacity: .45; } 50% { transform: translate(24px, -60vh) rotate(12deg); } 88% { opacity: .35; } 100% { transform: translate(-16px, -120vh) rotate(-8deg); opacity: 0; } }

/* Waves: sound waves rolling along the bottom */
.fx-waves i { position: absolute; left: 0; bottom: 0; width: 200%; height: 30vh; opacity: .28; background: var(--accent); animation: waves 8s linear infinite;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60 Q75 0 150 60 T300 60 T450 60 T600 60 V120 H0Z'/%3E%3C/svg%3E") repeat-x 0 100% / 50% 100%;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60 Q75 0 150 60 T300 60 T450 60 T600 60 V120 H0Z'/%3E%3C/svg%3E") repeat-x 0 100% / 50% 100%; }
.fx-waves i:nth-child(2) { height: 22vh; opacity: .2; animation-duration: 12s; animation-direction: reverse; }
.fx-waves i:nth-child(3) { height: 40vh; opacity: .1; animation-duration: 16s; }
@keyframes waves { to { transform: translateX(-50%); } }

/* Strings: six guitar strings, plucked one after the other */
.fx-strings { display: flex; flex-direction: column; justify-content: center; gap: 4.5vh; padding: 0 0 0 0; }
.fx-strings i { display: block; height: 2px; margin: 0 -10px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, #fff) 15% 85%, transparent); opacity: .35;
    box-shadow: 0 0 10px var(--accent); animation: pluck 3.6s ease-out infinite; }
.fx-strings i:nth-child(2) { height: 2.5px; animation-delay: .25s; } .fx-strings i:nth-child(3) { height: 3px; animation-delay: .5s; }
.fx-strings i:nth-child(4) { height: 3.5px; animation-delay: .75s; } .fx-strings i:nth-child(5) { height: 4px; animation-delay: 1s; } .fx-strings i:nth-child(6) { height: 5px; animation-delay: 1.25s; }
@keyframes pluck { 0%, 30%, 100% { transform: scaleY(1); } 3% { transform: scaleY(5) translateY(-1px); } 6% { transform: scaleY(3) translateY(1px); } 10% { transform: scaleY(2.2); } 16% { transform: scaleY(1.4); } }

/* Keys: a piano keyboard along the bottom, keys pressing in a little melody */
.fx-keys { display: flex; align-items: flex-end; }
.fx-keys i { position: relative; flex: 1; height: 22vh; max-height: 190px; margin: 0 1px; border-radius: 0 0 6px 6px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .12); animation: key 4.8s ease-in-out infinite; }
.fx-keys i:nth-child(7n+2)::after, .fx-keys i:nth-child(7n+3)::after, .fx-keys i:nth-child(7n+5)::after, .fx-keys i:nth-child(7n+6)::after, .fx-keys i:nth-child(7n)::after {
    content: ''; position: absolute; top: 0; left: -32%; width: 60%; height: 60%; border-radius: 0 0 4px 4px; background: rgb(0 0 0 / .55); z-index: 1; }
.fx-keys i:nth-child(1) { animation-delay: 0s; } .fx-keys i:nth-child(3) { animation-delay: .6s; } .fx-keys i:nth-child(5) { animation-delay: 1.2s; } .fx-keys i:nth-child(8) { animation-delay: 1.8s; }
.fx-keys i:nth-child(10) { animation-delay: 2.4s; } .fx-keys i:nth-child(12) { animation-delay: 3s; } .fx-keys i:nth-child(6) { animation-delay: 3.6s; } .fx-keys i:nth-child(2) { animation-delay: 4.2s; }
.fx-keys i:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(5)):not(:nth-child(6)):not(:nth-child(8)):not(:nth-child(10)):not(:nth-child(12)) { animation: none; }
@keyframes key { 0%, 14%, 100% { background: rgb(255 255 255 / .16); transform: none; } 4% { background: color-mix(in srgb, var(--accent) 70%, transparent); transform: translateY(4px); box-shadow: 0 0 24px var(--accent); } }

/* Drums: rings pulsing out on the beat */
.fx-drums::before, .fx-drums::after, .fx-drums i { content: ''; position: absolute; left: 50%; top: 32%; width: 60vmin; aspect-ratio: 1; margin: -30vmin 0 0 -30vmin; border-radius: 50%;
    border: 3px solid var(--accent); opacity: 0; animation: beat 2s cubic-bezier(.2, .6, .3, 1) infinite; }
.fx-drums::after { animation-delay: .5s; } .fx-drums i:nth-child(1) { animation-delay: 1s; border-width: 6px; } .fx-drums i:nth-child(2) { animation-delay: 1.25s; }
@keyframes beat { 0% { transform: scale(.2); opacity: .7; } 70% { opacity: .12; } 100% { transform: scale(2.4); opacity: 0; } }

/* Spotlight: stage beams sweeping from the top */
.fx-spotlight::before, .fx-spotlight::after { content: ''; position: absolute; top: -10%; width: 70vw; max-width: 620px; height: 130vh; opacity: .22; transform-origin: 50% 0;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 90%, #fff), transparent 75%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); filter: blur(6px); }
.fx-spotlight::before { left: -10%; animation: sweep 7s ease-in-out infinite alternate; }
.fx-spotlight::after { right: -10%; animation: sweep 8s ease-in-out -3s infinite alternate-reverse; }
@keyframes sweep { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }

/* Pictures of the card (thumbnails, screenshots) and people who prefer less motion: keep it still */
.thumb .music-fx *, .thumb .music-fx::before, .thumb .music-fx::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .music-fx, .music-fx *, .music-fx::before, .music-fx::after { animation: none !important; } }

/* ---------- 3. More moving effects (2026-11-12): drawn with code, so they stay sharp on every screen and weigh nothing.
   Each piece gets its place and timing from inline variables (--x left, --y top, --d delay, --t duration, --s size). ---------- */
.music-fx i, .music-fx span { --x: 50%; --y: 50%; --d: 0s; --t: 12s; --s: 1; }

/* Drifting clouds */
.fx-clouds i { position: absolute; top: var(--y); left: -45vw; width: calc(42vw * var(--s)); max-width: 420px; aspect-ratio: 3 / 1; border-radius: 999px;
    background: rgb(255 255 255 / .42); filter: blur(3px); animation: fx-drift var(--t) linear var(--d) infinite; }
.fx-clouds i::before, .fx-clouds i::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.fx-clouds i::before { width: 48%; aspect-ratio: 1; left: 14%; bottom: 32%; } .fx-clouds i::after { width: 36%; aspect-ratio: 1; right: 16%; bottom: 26%; }
@keyframes fx-drift { to { transform: translateX(160vw); } }

/* Swaying grass along the bottom */
.fx-grass { display: flex; align-items: flex-end; }
.fx-grass i { flex: 1; height: calc(16vh * var(--s)); margin: 0 -4px; transform-origin: 50% 100%; opacity: .5;
    background: linear-gradient(to top, color-mix(in srgb, var(--accent) 75%, #14532d), color-mix(in srgb, var(--accent) 45%, transparent));
    clip-path: polygon(50% 0, 100% 100%, 0 100%); animation: fx-sway var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes fx-sway { from { transform: skewX(-9deg); } to { transform: skewX(9deg); } }

/* Falling leaves */
.fx-leaves i { position: absolute; top: -6vh; left: var(--x); width: calc(16px * var(--s)); aspect-ratio: 1; border-radius: 0 100% 0 100%; opacity: .65;
    background: color-mix(in srgb, var(--accent) 60%, #ca8a04); animation: fx-fall var(--t) linear var(--d) infinite; }
@keyframes fx-fall { 0% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(34px, 34vh) rotate(140deg); } 60% { transform: translate(-22px, 70vh) rotate(260deg); } 100% { transform: translate(16px, 112vh) rotate(420deg); } }

/* Rising bubbles */
.fx-bubbles i { position: absolute; bottom: -10vh; left: var(--x); width: calc(26px * var(--s)); aspect-ratio: 1; border-radius: 50%;
    border: 1.5px solid rgb(255 255 255 / .55); background: radial-gradient(circle at 32% 30%, rgb(255 255 255 / .55), transparent 55%), color-mix(in srgb, var(--accent) 18%, transparent);
    animation: fx-bubble var(--t) ease-in var(--d) infinite; }
@keyframes fx-bubble { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(18px, -60vh); } 100% { transform: translate(-12px, -120vh); opacity: .2; } }

/* Twinkling stars */
.fx-stars i { position: absolute; left: var(--x); top: var(--y); width: calc(3px * var(--s)); aspect-ratio: 1; border-radius: 50%; background: #fff;
    box-shadow: 0 0 6px 1px rgb(255 255 255 / .8); animation: fx-twinkle var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes fx-twinkle { from { opacity: .08; transform: scale(.6); } to { opacity: .95; transform: scale(1.2); } }

/* Snow */
.fx-snow i { position: absolute; top: -4vh; left: var(--x); width: calc(6px * var(--s)); aspect-ratio: 1; border-radius: 50%; background: #fff; opacity: .8;
    animation: fx-snow var(--t) linear var(--d) infinite; }
@keyframes fx-snow { 0% { transform: translate(0, 0); } 50% { transform: translate(24px, 52vh); } 100% { transform: translate(-10px, 108vh); } }

/* Fireflies */
.fx-fireflies i { position: absolute; left: var(--x); top: var(--y); width: 6px; aspect-ratio: 1; border-radius: 50%; background: #fde68a;
    box-shadow: 0 0 12px 4px rgb(253 224 71 / .7); animation: fx-wander var(--t) ease-in-out var(--d) infinite alternate, fx-glow 2.4s ease-in-out var(--d) infinite alternate; }
@keyframes fx-wander { 0% { transform: translate(0, 0); } 33% { transform: translate(40px, -30px); } 66% { transform: translate(-30px, -60px); } 100% { transform: translate(20px, 20px); } }
@keyframes fx-glow { from { opacity: .15; } to { opacity: 1; } }

/* Confetti */
.fx-confetti i { position: absolute; top: -4vh; left: var(--x); width: 8px; height: 14px; border-radius: 2px; opacity: .8; background: var(--accent);
    animation: fx-confetti var(--t) linear var(--d) infinite; }
.fx-confetti i:nth-child(5n+1) { background: #f43f5e; } .fx-confetti i:nth-child(5n+2) { background: #facc15; } .fx-confetti i:nth-child(5n+3) { background: #22c55e; } .fx-confetti i:nth-child(5n+4) { background: #3b82f6; }
@keyframes fx-confetti { 0% { transform: translate(0, 0) rotate(0) rotateX(0); } 100% { transform: translate(30px, 110vh) rotate(540deg) rotateX(720deg); } }

/* Rising hearts */
.fx-hearts span { position: absolute; bottom: -10vh; left: var(--x); font: 400 calc(26px * var(--s)) / 1 Georgia, serif; color: color-mix(in srgb, var(--accent) 50%, #f43f5e);
    opacity: 0; animation: rise var(--t) linear var(--d) infinite; }

/* Rain */
.fx-rain i { position: absolute; top: -20vh; left: var(--x); width: 1.5px; height: 12vh; background: linear-gradient(transparent, rgb(255 255 255 / .55)); transform: rotate(10deg);
    animation: fx-rain var(--t) linear var(--d) infinite; }
@keyframes fx-rain { to { transform: translate(-22vh, 130vh) rotate(10deg); } }

/* Sun rays from the top corner */
.fx-sunrays::before { content: ''; position: absolute; width: 220vmax; aspect-ratio: 1; right: -110vmax; top: -110vmax; opacity: .28;
    background: repeating-conic-gradient(from 0deg, rgb(255 236 179 / .9) 0 4deg, transparent 4deg 14deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 60%); mask: radial-gradient(circle, #000 0, transparent 60%);
    animation: spin 90s linear infinite; }

/* Birds flying over */
.fx-birds i { position: absolute; top: var(--y); left: -10vw; width: calc(34px * var(--s)); height: 12px; animation: fx-fly var(--t) linear var(--d) infinite; }
.fx-birds i::before, .fx-birds i::after { content: ''; position: absolute; top: 4px; width: 55%; height: 3px; border-radius: 3px; background: rgb(25 25 25 / .75); box-shadow: 0 0 0 1px rgb(255 255 255 / .45); animation: fx-flap .7s ease-in-out infinite alternate; }
.fx-birds i::before { left: 0; transform-origin: 100% 50%; } .fx-birds i::after { right: 0; transform-origin: 0 50%; animation-name: fx-flap2; }
@keyframes fx-flap { from { transform: rotate(25deg); } to { transform: rotate(-10deg); } }
@keyframes fx-flap2 { from { transform: rotate(-25deg); } to { transform: rotate(10deg); } }
@keyframes fx-fly { 0% { transform: translate(0, 0); } 50% { transform: translate(60vw, -4vh); } 100% { transform: translate(125vw, 2vh); } }

/* ---------- More code-drawn looks (2026-11-12): sharp at any size, in the card's accent colour ---------- */
/* Northern lights: three soft bands drifting across the top */
.fx-aurora i { position: absolute; left: -30%; width: 160%; height: 38vh; top: -6vh; border-radius: 50%; opacity: .55; filter: blur(32px);
    background: linear-gradient(90deg, transparent, var(--accent), color-mix(in srgb, var(--accent) 40%, #22d3ee), transparent); animation: fx-aurora 18s ease-in-out infinite alternate; }
.fx-aurora i:nth-child(2) { top: 3vh; animation-duration: 24s; animation-delay: -6s; background: linear-gradient(90deg, transparent, #34d399, var(--accent), transparent); }
.fx-aurora i:nth-child(3) { top: 12vh; animation-duration: 30s; animation-delay: -12s; opacity: .35; }
@keyframes fx-aurora { 0% { transform: translateX(-12%) skewY(-4deg); } 100% { transform: translateX(12%) skewY(4deg); } }

/* Soft lights: big round out-of-focus lights drifting up */
.fx-bokeh i { position: absolute; left: var(--x); top: var(--y); width: calc(70px * var(--s)); aspect-ratio: 1; border-radius: 50%; opacity: .3;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, #fff), transparent 70%); animation: fx-bokeh var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes fx-bokeh { 0% { transform: translate(0, 0) scale(1); opacity: .15; } 100% { transform: translate(20px, -60px) scale(1.25); opacity: .45; } }

/* Fireworks: rings of sparks bursting now and then */
.fx-fireworks i { position: absolute; left: var(--x); top: calc(var(--y) * .6); width: 6px; height: 6px; border-radius: 50%; opacity: 0; color: var(--accent);
    box-shadow: 0 -60px, 42px -42px, 60px 0, 42px 42px, 0 60px, -42px 42px, -60px 0, -42px -42px, 0 -30px #facc15, 30px 0 #facc15, 0 30px #facc15, -30px 0 #facc15;
    animation: fx-burst var(--t) ease-out var(--d) infinite; }
.fx-fireworks i:nth-child(3n) { color: #f472b6; } .fx-fireworks i:nth-child(3n+1) { color: #60a5fa; }
@keyframes fx-burst { 0% { transform: scale(.1); opacity: 0; } 8% { opacity: 1; } 60% { opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* Ocean waves: rolling curved waves along the bottom */
.fx-ocean i { position: absolute; left: -50%; bottom: -78vh; width: 200%; height: 100vh; border-radius: 42%; opacity: .32; background: var(--accent); animation: spin 22s linear infinite; }
.fx-ocean i:nth-child(2) { bottom: -82vh; border-radius: 40%; opacity: .14; animation-duration: 30s; animation-direction: reverse; background: color-mix(in srgb, var(--accent) 60%, #38bdf8); }
.fx-ocean i:nth-child(3) { bottom: -86vh; border-radius: 45%; opacity: .1; animation-duration: 40s; }

/* Gold sparkle: tiny four-point stars twinkling */
.fx-sparkle i { position: absolute; left: var(--x); top: var(--y); width: calc(14px * var(--s)); aspect-ratio: 1; background: #fde68a;
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: fx-twinkle var(--t) ease-in-out var(--d) infinite; }
.fx-sparkle i:nth-child(3n) { background: color-mix(in srgb, var(--accent) 50%, #fff); }
@keyframes fx-twinkle { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: .9; } }

/* Floating shapes: outlined circles, squares and triangles rising slowly */
.fx-shapes i { position: absolute; left: var(--x); bottom: -12vh; width: calc(34px * var(--s)); aspect-ratio: 1; border: 2px solid var(--accent); border-radius: 50%; opacity: 0;
    animation: fx-float var(--t) linear var(--d) infinite; }
.fx-shapes i:nth-child(3n) { border-radius: 6px; }
.fx-shapes i:nth-child(3n+1) { border: 0; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); width: calc(30px * var(--s)); }
@keyframes fx-float { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: .5; } 90% { opacity: .4; } 100% { transform: translateY(-125vh) rotate(320deg); opacity: 0; } }

/* Neon grid: a glowing floor of lines moving towards you */
.fx-grid { perspective: 320px; }
.fx-grid i { position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 85vh; transform: rotateX(68deg); transform-origin: 50% 100%; opacity: .85;
    background-image: linear-gradient(var(--accent) 2px, transparent 2px), linear-gradient(90deg, var(--accent) 2px, transparent 2px); background-size: 40px 40px;
    -webkit-mask: linear-gradient(to top, #000 30%, transparent); mask: linear-gradient(to top, #000 30%, transparent); animation: fx-grid 1.8s linear infinite; }
@keyframes fx-grid { to { background-position: 0 40px, 0 40px; } }

/* Drifting mist: slow soft clouds of fog */
.fx-mist i { position: absolute; width: 90vw; height: 34vh; border-radius: 50%; opacity: .34; background: rgb(255 255 255 / .9); filter: blur(min(40px, 8vw)); animation: fx-mist 22s ease-in-out infinite alternate; }
.fx-mist i:nth-child(1) { top: 5%; left: -30%; }
.fx-mist i:nth-child(2) { top: 40%; right: -35%; animation-duration: 55s; animation-delay: -15s; }
.fx-mist i:nth-child(3) { bottom: 0; left: -20%; animation-duration: 48s; animation-delay: -30s; }
.fx-mist i:nth-child(4) { top: 20%; left: 30%; opacity: .08; animation-duration: 62s; }
@keyframes fx-mist { 0% { transform: translateX(-22vw); } 100% { transform: translateX(26vw); } }

/* City lights: a skyline along the bottom with windows switching on and off */
.fx-city b { position: absolute; left: 0; right: 0; bottom: 0; height: 32vh; opacity: .85; background: color-mix(in srgb, var(--accent) 30%, #000);
    clip-path: polygon(0 100%, 0 40%, 8% 40%, 8% 20%, 15% 20%, 15% 55%, 22% 55%, 22% 10%, 30% 10%, 30% 45%, 38% 45%, 38% 28%, 46% 28%, 46% 60%, 54% 60%, 54% 15%, 62% 15%, 62% 50%, 70% 50%, 70% 32%, 78% 32%, 78% 5%, 86% 5%, 86% 44%, 93% 44%, 93% 25%, 100% 25%, 100% 100%); }
.fx-city i { position: absolute; left: var(--x); bottom: calc(1vh + var(--y) * .09); width: 5px; height: 7px; background: #fde68a; opacity: 0; z-index: 1; animation: fx-window var(--t) steps(1) var(--d) infinite; }
@keyframes fx-window { 0%, 40% { opacity: 0; } 41%, 100% { opacity: .95; } }

/* Wheat field: stalks swaying in the wind along the bottom */
.fx-wheat i { position: absolute; left: var(--x); bottom: -2vh; width: 3px; height: calc(18vh * var(--s)); transform-origin: 50% 100%; border-radius: 3px; opacity: .7;
    background: linear-gradient(to top, color-mix(in srgb, var(--accent) 40%, #a16207), #eab308); animation: fx-sway var(--t) ease-in-out var(--d) infinite alternate; }
.fx-wheat i::after { content: ''; position: absolute; top: -18px; left: -4px; width: 11px; height: 26px; border-radius: 50% 50% 40% 40%; background: #eab308; }
@keyframes fx-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

/* ---------- Property looks (owner 2026-11-13: estate agents, code-drawn, no clip-art pictures) ---------- */
/* House keys: gold keys drifting up and turning slowly */
.fx-housekeys i { position: absolute; left: var(--x); bottom: -14vh; width: calc(54px * var(--s)); aspect-ratio: 2.2 / 1; opacity: 0;
    background: linear-gradient(135deg, #fff3c4, #e2b24a 45%, #a8781f 70%, #f7dc8e);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 50'%3E%3Cpath fill-rule='evenodd' d='M25 3a22 22 0 1 0 0 44a22 22 0 1 0 0-44zm0 13a9 9 0 1 1 0 18a9 9 0 1 1 0-18zM44 20h62v10H44zM80 30h8v12h-8zM94 30h8v8h-8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 50'%3E%3Cpath fill-rule='evenodd' d='M25 3a22 22 0 1 0 0 44a22 22 0 1 0 0-44zm0 13a9 9 0 1 1 0 18a9 9 0 1 1 0-18zM44 20h62v10H44zM80 30h8v12h-8zM94 30h8v8h-8z'/%3E%3C/svg%3E") center / contain no-repeat; animation: fx-keyfloat var(--t) linear var(--d) infinite; }
.fx-housekeys i:nth-child(4n) { background: linear-gradient(135deg, #f8fafc, #cbd5e1 50%, #94a3b8); }
@keyframes fx-keyfloat { 0% { transform: translateY(0) rotate(-24deg); opacity: 0; } 12% { opacity: .75; } 85% { opacity: .55; } 100% { transform: translateY(-125vh) rotate(28deg); opacity: 0; } }

/* Blueprint: a faint drawing grid with a house drawing itself, line by line */
.fx-blueprint i { position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgb(255 255 255 / .12) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .12) 1px, transparent 1px),
        linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
    background-size: 110px 110px, 110px 110px, 22px 22px, 22px 22px; }
.fx-blueprint svg { position: absolute; left: 50%; bottom: 6vh; width: min(92vw, 560px); transform: translateX(-50%); overflow: visible; }
.fx-blueprint path { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, #fff); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7;
    stroke-dasharray: 900; stroke-dashoffset: 900; animation: fx-draw 14s ease-in-out infinite; }
.fx-blueprint path:nth-child(2) { animation-delay: .8s; } .fx-blueprint path:nth-child(3) { animation-delay: 1.6s; } .fx-blueprint path:nth-child(4) { animation-delay: 2.2s; }
.fx-blueprint path:nth-child(5) { animation-delay: 2.8s; } .fx-blueprint path:nth-child(6) { animation-delay: 3.4s; } .fx-blueprint path:nth-child(7) { animation-delay: 4s; stroke-dasharray: 4 6; }
@keyframes fx-draw { 0% { stroke-dashoffset: 900; opacity: 0; } 6% { opacity: .7; } 45%, 82% { stroke-dashoffset: 0; opacity: .7; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Rooftops: a street of houses along the bottom, windows lighting up one by one */
.fx-rooftops b { position: absolute; left: 0; right: 0; bottom: 0; height: 26vh; opacity: .9; background: color-mix(in srgb, var(--accent) 22%, #050505);
    clip-path: polygon(0 100%, 0 55%, 6% 30%, 12% 55%, 12% 45%, 20% 15%, 28% 45%, 28% 60%, 33% 40%, 38% 60%, 38% 50%, 47% 20%, 56% 50%, 56% 58%, 62% 35%, 68% 58%, 68% 42%, 77% 12%, 86% 42%, 86% 55%, 93% 32%, 100% 55%, 100% 100%); }
.fx-rooftops i { position: absolute; left: var(--x); bottom: calc(1.5vh + var(--y) * .1); width: 7px; height: 8px; border-radius: 1px; background: #fcd34d; box-shadow: 0 0 8px #fbbf24; opacity: 0; z-index: 1;
    animation: fx-window var(--t) steps(1) var(--d) infinite; }

/* Map pins: a faint street map with pins dropping in and pulsing */
.fx-pins b { position: absolute; inset: 0; opacity: .14;
    background-image: linear-gradient(32deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%), linear-gradient(-58deg, transparent 48%, #fff 49%, #fff 50.5%, transparent 51.5%),
        linear-gradient(90deg, transparent 49.4%, #fff 49.5%, #fff 50.5%, transparent 50.6%);
    background-size: 180px 140px, 240px 200px, 130px 130px; }
.fx-pins i { position: absolute; left: var(--x); top: calc(var(--y) * .9 + 4%); width: calc(22px * var(--s)); aspect-ratio: 24 / 32; opacity: 0; animation: fx-pin var(--t) ease-out var(--d) infinite; }
.fx-pins i::before { content: ''; position: absolute; inset: 0; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath fill-rule='evenodd' d='M12 0C5.4 0 0 5.4 0 12c0 9 12 20 12 20s12-11 12-20C24 5.4 18.6 0 12 0zm0 7a5 5 0 1 1 0 10a5 5 0 1 1 0-10z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath fill-rule='evenodd' d='M12 0C5.4 0 0 5.4 0 12c0 9 12 20 12 20s12-11 12-20C24 5.4 18.6 0 12 0zm0 7a5 5 0 1 1 0 10a5 5 0 1 1 0-10z'/%3E%3C/svg%3E") center / contain no-repeat; }
.fx-pins i::after { content: ''; position: absolute; left: 50%; bottom: -3px; width: 140%; aspect-ratio: 3 / 1; border-radius: 50%; border: 2px solid var(--accent); transform: translateX(-50%) scale(.3); opacity: 0; animation: fx-ring var(--t) ease-out var(--d) infinite; }
@keyframes fx-pin { 0% { transform: translateY(-40px); opacity: 0; } 8% { transform: translateY(0); opacity: .9; } 11% { transform: translateY(-6px); } 14%, 70% { transform: translateY(0); opacity: .9; } 85%, 100% { opacity: 0; } }
@keyframes fx-ring { 0%, 12% { opacity: 0; transform: translateX(-50%) scale(.3); } 16% { opacity: .8; } 40%, 100% { opacity: 0; transform: translateX(-50%) scale(1.6); } }

/* ---------- The owner's own effect colour (owner 2026-11-16): with .fx-own, --accent is the chosen colour and the
   pieces that normally have fixed colours (white clouds, gold sparkles, yellow windows...) follow it too. ---------- */
.fx-own.fx-vinyl::after { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, #fff), color-mix(in srgb, var(--accent) 60%, #000)); }
.fx-own.fx-keys i { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.fx-own.fx-clouds i { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.fx-own.fx-grass i { background: linear-gradient(to top, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent)); }
.fx-own.fx-leaves i { background: var(--accent); }
.fx-own.fx-bubbles i { border-color: color-mix(in srgb, var(--accent) 70%, #fff); background: radial-gradient(circle at 32% 30%, rgb(255 255 255 / .5), transparent 55%), color-mix(in srgb, var(--accent) 30%, transparent); }
.fx-own.fx-stars i { background: var(--accent); box-shadow: 0 0 6px 1px color-mix(in srgb, var(--accent) 80%, transparent); }
.fx-own.fx-snow i { background: var(--accent); }
.fx-own.fx-fireflies i { background: var(--accent); box-shadow: 0 0 12px 4px color-mix(in srgb, var(--accent) 70%, transparent); }
.fx-own.fx-confetti i { background: var(--accent); }
.fx-own.fx-confetti i:nth-child(5n+1) { background: color-mix(in srgb, var(--accent) 60%, #fff); }
.fx-own.fx-confetti i:nth-child(5n+2) { background: color-mix(in srgb, var(--accent) 70%, #000); }
.fx-own.fx-confetti i:nth-child(5n+3) { background: color-mix(in srgb, var(--accent) 80%, #fff); }
.fx-own.fx-confetti i:nth-child(5n+4) { background: color-mix(in srgb, var(--accent) 85%, #000); }
.fx-own.fx-hearts span { color: var(--accent); }
.fx-own.fx-rain i { background: linear-gradient(transparent, color-mix(in srgb, var(--accent) 75%, transparent)); }
.fx-own.fx-sunrays::before { background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--accent) 90%, transparent) 0 4deg, transparent 4deg 14deg); }
.fx-own.fx-birds i::before, .fx-own.fx-birds i::after { background: var(--accent); }
.fx-own.fx-aurora i, .fx-own.fx-aurora i:nth-child(2) { background: linear-gradient(90deg, transparent, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff), transparent); }
.fx-own.fx-bokeh i { background: radial-gradient(circle, var(--accent), transparent 70%); }
.fx-own.fx-fireworks i, .fx-own.fx-fireworks i:nth-child(3n), .fx-own.fx-fireworks i:nth-child(3n+1) { color: var(--accent);
    box-shadow: 0 -60px, 42px -42px, 60px 0, 42px 42px, 0 60px, -42px 42px, -60px 0, -42px -42px,
        0 -30px color-mix(in srgb, var(--accent) 50%, #fff), 30px 0 color-mix(in srgb, var(--accent) 50%, #fff), 0 30px color-mix(in srgb, var(--accent) 50%, #fff), -30px 0 color-mix(in srgb, var(--accent) 50%, #fff); }
.fx-own.fx-ocean i:nth-child(2) { background: color-mix(in srgb, var(--accent) 70%, #fff); }
.fx-own.fx-sparkle i { background: var(--accent); }
.fx-own.fx-sparkle i:nth-child(3n) { background: color-mix(in srgb, var(--accent) 50%, #fff); }
.fx-own.fx-mist i { background: var(--accent); }
.fx-own.fx-city i, .fx-own.fx-rooftops i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.fx-own.fx-wheat i { background: linear-gradient(to top, color-mix(in srgb, var(--accent) 60%, #000), var(--accent)); }
.fx-own.fx-wheat i::after { background: var(--accent); }
.fx-own.fx-housekeys i, .fx-own.fx-housekeys i:nth-child(4n) { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, #fff), var(--accent) 45%, color-mix(in srgb, var(--accent) 60%, #000) 70%, color-mix(in srgb, var(--accent) 50%, #fff)); }
.fx-own.fx-blueprint i { background-image: linear-gradient(color-mix(in srgb, var(--accent) 25%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 25%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--accent) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent) 1px, transparent 1px); }
.fx-own.fx-blueprint path { stroke: var(--accent); }
.fx-own.fx-pins b { background-image: linear-gradient(32deg, transparent 48%, var(--accent) 49%, var(--accent) 51%, transparent 52%), linear-gradient(-58deg, transparent 48%, var(--accent) 49%, var(--accent) 50.5%, transparent 51.5%),
    linear-gradient(90deg, transparent 49.4%, var(--accent) 49.5%, var(--accent) 50.5%, transparent 50.6%); }
.fx-own.fx-strings i { background: linear-gradient(90deg, transparent, var(--accent) 15% 85%, transparent); }
.fx-own.fx-spotlight::before, .fx-own.fx-spotlight::after { background: linear-gradient(to bottom, var(--accent), transparent 75%); }

/* ---------- 2. Mini-website layout (wide screens) ---------- */
@media (min-width: 1024px) {
    .layout-site .page { max-width: 1240px; padding: 92px 40px 80px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 32px; align-items: start; }
    .layout-site .page > [data-section-id] { grid-column: span 6; min-width: 0; }
    .layout-site .page > [data-type="header"], .layout-site .page > [data-type="actions"], .layout-site .page > [data-type="gallery"],
    .layout-site .page > [data-type="video"], .layout-site .page > [data-type="share"] { grid-column: 1 / -1; } /* the message form is half width, next to Links (owner 2026-11-17) */
    .layout-site .page > [data-type="music"] { grid-column: span 6; }
    /* The "Want a card like this?" banner and any other loose block take the full width, centred. */
    .layout-site .page > :not([data-section-id]) { grid-column: 1 / -1; }
    .layout-site .page > .c123cta { justify-self: stretch; } /* a slim footer bar, see cards/partials/cta.blade.php (owner 2026-11-17) */
    /* Two even columns (owner 2026-11-17: boxes of 4, 5, 6 and 7 wide left ragged edges and gaps): every box is half or full width */
    /* The gallery across the full width: four pictures a row instead of two huge ones (owner 2026-11-17) */
    .layout-site .page > [data-type="gallery"] .gallery:not(.gallery-full) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    /* Products across a full row (the box has no partner, or the store section): four a row (owner 2026-11-17) */
    .layout-site .page > [data-type="shop"][data-lone] .products:not(.products-one), .layout-site .page > [data-type="shop"][style*="1 / -1"] .products:not(.products-one) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    /* The footer (set by the card's script): Contact and Follow us side by side at the bottom, like a website */
    .layout-site .page > .site-foot { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-items: stretch;
        padding-top: 22px; border-top: 1px solid rgb(127 127 127 / .3); }
    .layout-site .page > .site-foot > [data-section-id] { min-width: 0; }
    .layout-site .page > .site-foot .section { height: 100%; }
    .layout-site .page > .site-foot > :only-child { grid-column: 1 / -1; }
    .layout-site .page > .site-foot [data-type="social"] .section { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
    .layout-site .site-foot .foot-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 8px; }
    .layout-site .site-foot .foot-logo { width: 96px; height: 96px; object-fit: contain; border-radius: calc(var(--radius) * .7); }
    .layout-site .site-foot .foot-name { margin: 0; font: 700 24px/1.15 var(--font-head); text-align: center; }
    .layout-site .page > .bg-video, .layout-site .page > .bg-video-dim, .layout-site .page > .music-fx { grid-column: 1 / -1; }
    .layout-site .section { margin: 0; height: 100%; }
    /* Even rows (owner 2026-11-17, replaces the packed "wall"): the two boxes in a row are equally tall, edges line up */
    .layout-site.site-masonry .page { grid-auto-rows: auto; row-gap: 28px; grid-auto-flow: row; align-items: stretch; }
    .layout-site.site-masonry .page > * { margin-bottom: 0; }
    .layout-site.site-masonry .page > [data-section-id] { height: 100%; }
    .layout-site.site-masonry .page > [data-section-id] > .section { height: 100%; }

    /* Big hero: the photo as a wide banner with the name huge on it */
    .layout-site .hero-media { height: min(72vh, 680px); border-radius: calc(var(--radius) * 1.4); }
    .layout-site .hero-text { left: 56px; right: 56px; bottom: 52px; }
    .layout-site .hero-text .company { font-size: clamp(56px, 7vw, 108px); letter-spacing: -.01em; }
    .layout-site .hero-text .person, .layout-site .hero-text .position { font-size: 22px; }
    .layout-site .header .company { font-size: clamp(40px, 5vw, 72px); }
    /* Split header (logo beside the name) on a computer (owner 2026-11-17: "this template needs work"): a proper banner,
       a big logo and name side by side in a panel with the design's accent, instead of a small strip */
    .layout-site.hdr-split .header { justify-content: center; gap: 40px; padding: 64px 56px; margin-top: 8px; border-radius: calc(var(--radius) * 1.4);
        background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, transparent), color-mix(in srgb, var(--accent) 6%, transparent)); box-shadow: 0 20px 60px rgb(0 0 0 / .25); }
    .layout-site.hdr-split .logo { width: 180px; height: 180px; }
    .layout-site.hdr-split .header .company { font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; }
    .layout-site.hdr-split .header .person, .layout-site.hdr-split .header .position { font-size: 20px; }
    .layout-site.hdr-split .header > :not(.logo):not(img) { flex: 0 1 auto; }
    .layout-site .logo-chip { width: 72px; height: 72px; }

    /* Buttons in one tidy row of equal, compact buttons (whatever the template's button style); the menu becomes a floating bar at the top */
    .layout-site .page > [data-type="actions"] .actions { max-width: 980px; margin: 0 auto; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
    .layout-site .page > [data-type="actions"] .action { width: auto !important; height: auto !important; min-height: 64px; aspect-ratio: auto !important; grid-column: auto !important; grid-row: auto !important;
        flex-direction: row !important; justify-content: center !important; align-items: center !important; gap: 10px; padding: 14px 16px !important; }
    .layout-site .page > [data-type="actions"] .action .ic { position: static !important; margin: 0 !important; }
    /* "On the photo, top right" pins the buttons to the side; in the full-width row it pushed them off the left edge (audit 2026-11-20, lens) */
    .layout-site.btn-overlay .page > [data-type="actions"] .actions { position: static; padding: 0; }
    /* Detail lines (label + number) need room: two wide columns, read left to right */
    .layout-site.btn-lines .page > [data-type="actions"] .actions { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 0 40px; }
    .layout-site.btn-lines .page > [data-type="actions"] .action { justify-content: flex-start !important; min-height: 0; padding: 14px 0 !important; }
    .layout-site.btn-lines .page > [data-type="actions"] .action .val { overflow-wrap: break-word; }
    .layout-site .dock { top: 18px; bottom: auto; left: 0; right: 0; margin-inline: auto; width: max-content; /* centred without a half-pixel shift, which blurs text */ max-width: calc(100vw - 48px); border-radius: 999px; border: 1px solid color-mix(in srgb, var(--surface-text, #111) 12%, transparent); box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
    .layout-site .dock-inner { max-width: none; padding: 6px 10px; }
    .layout-site .dock a { flex-direction: row; gap: 8px; font-size: 13px; padding: 8px 14px; }

    /* Albums, merch and the gallery get room to breathe */
    .layout-site .album-head { grid-template-columns: 120px minmax(0, 1fr) auto; }
    .layout-site .album-cover { width: 120px; height: 120px; }
    .layout-site .album-info { padding-left: 48px; }
    .layout-site .products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .layout-site .music-fx.fx-eq i { height: 30vh; }
}
