/* Marin — festive design, shared layer (every public page).
 *
 * Only applies under html[data-design="festive"] (set by the server, see
 * systems/site/season.js), so the classic design is untouched and stays the
 * backup. data-season = autumn | winter, data-fx = effects tier:
 *   0  reduced motion: a still scene, no movement at all
 *   1  low-end: CSS scene, few particles, no blur/3D
 *   2  phones / mid laptops: everything, lighter buffers
 *   3  desktops: everything, full resolution
 * fx.js can step the tier down at runtime if frames get slow.
 */

/* ------------------------------------------------------------------ palette */
html[data-design="festive"] {
  --fx-ease: cubic-bezier(.16, 1, .3, 1);
  --fx-ease-io: cubic-bezier(.65, 0, .35, 1);
  --fx-land-h: clamp(220px, 36vh, 470px);
  --fx-p: 0;            /* page scroll progress 0..1, set by fx.js */
  --fx-pb: 0;           /* bell of it: 0 at top and bottom, 1 mid-page */
  --fx-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
html[data-design="festive"][data-season="winter"] {
  --fx-a: #ff5fa2;      /* Marin pink, still the lead */
  --fx-b: #bfe6ff;      /* frost */
  --fx-c: #93a8ff;      /* silver blue */
  --fx-gold: #ffd27a;
  --fx-sky1: #050817; --fx-sky2: #0b1230; --fx-sky3: #241d4a; --fx-sky4: #3b2257;
  --fx-moon: #f3f6ff; --fx-moon-glow: rgba(190, 220, 255, .28);
  --fx-l1: #1a2049; --fx-l1cap: #8d9fd2;
  --fx-l2: #111634; --fx-l2b: #161c42; --fx-tree1: #0b0f27; --fx-tree2: #10163a; --fx-tree3: #0d1330;
  --fx-l3: #0a0d22; --fx-roof: #c9d6f6; --fx-snow: #b9c8ee;
  --fx-l4: #dfe7fb; --fx-l4b: #a9b8e3; --fx-l4c: #0a0d22;
  --fx-win: #ffcf7a; --fx-win-glow: rgba(255, 190, 100, .55);
  --fx-haze: rgba(10, 14, 40, .0);
  --fx-surface: rgba(12, 14, 34, .9);
  --fx-surface-2: rgba(18, 20, 48, .82); --fx-nav-solid: rgba(16, 18, 44, .97);
  --fx-line: rgba(191, 230, 255, .14);
  --fx-line-2: rgba(191, 230, 255, .26);
  --fx-glow: rgba(255, 95, 162, .38);
}
html[data-design="festive"][data-season="autumn"] {
  --fx-a: #ff6f9f;      /* rose (Marin pink, warmed) */
  --fx-b: #ffab5e;      /* amber */
  --fx-c: #e2734f;      /* copper */
  --fx-gold: #ffc66b;
  --fx-sky1: #0b0511; --fx-sky2: #1e0a1e; --fx-sky3: #4a1a2c; --fx-sky4: #8a3a34;
  --fx-moon: #ffd9a3; --fx-moon-glow: rgba(255, 160, 90, .30);
  --fx-l1: #3a1628; --fx-l1cap: #6b2d38;
  --fx-l2: #280e1d; --fx-l2b: #311224; --fx-tree1: #6e2a22; --fx-tree2: #8a4122; --fx-tree3: #5a2232;
  --fx-l3: #1a0812; --fx-roof: #3a1420; --fx-snow: #7a3424;
  --fx-l4: #22091a; --fx-l4b: #8c3a22; --fx-l4c: #140610;
  --fx-win: #ffb860; --fx-win-glow: rgba(255, 160, 80, .55);
  --fx-haze: rgba(40, 10, 24, .0);
  --fx-surface: rgba(28, 11, 24, .9);
  --fx-surface-2: rgba(36, 14, 30, .84); --fx-nav-solid: rgba(34, 13, 28, .97);
  --fx-line: rgba(255, 190, 140, .14);
  --fx-line-2: rgba(255, 190, 140, .26);
  --fx-glow: rgba(255, 111, 159, .38);
}
/* Daylight versions for the light theme */
html[data-design="festive"][data-season="winter"][data-theme="light"] {
  --fx-sky1: #b9cdf6; --fx-sky2: #d6e2fb; --fx-sky3: #eee9fb; --fx-sky4: #fbe9f2;
  --fx-moon: #ffffff; --fx-moon-glow: rgba(255, 255, 255, .7);
  --fx-l1: #a9b9e2; --fx-l1cap: #f6f9ff;
  --fx-l2: #8c9ccb; --fx-l2b: #97a7d4; --fx-tree1: #55658f; --fx-tree2: #61719c; --fx-tree3: #4c5a85;
  --fx-l3: #6a6f98; --fx-roof: #ffffff; --fx-snow: #f3f6ff;
  --fx-l4: #ffffff; --fx-l4b: #dfe7fb; --fx-l4c: #5d6690;
  --fx-win: #ffd98a; --fx-win-glow: rgba(255, 200, 120, .35);
  --fx-surface: rgba(255, 255, 255, .92);
  --fx-surface-2: rgba(255, 255, 255, .9); --fx-nav-solid: rgba(255, 255, 255, .97);
  --fx-line: rgba(60, 80, 140, .14);
  --fx-line-2: rgba(60, 80, 140, .24);
  --fx-glow: rgba(255, 95, 162, .22);
}
html[data-design="festive"][data-season="autumn"][data-theme="light"] {
  --fx-sky1: #f7c9ab; --fx-sky2: #fbdcc6; --fx-sky3: #fdeadb; --fx-sky4: #fff3e8;
  --fx-moon: #fff4e0; --fx-moon-glow: rgba(255, 220, 170, .7);
  --fx-l1: #eab49a; --fx-l1cap: #f2c6ad;
  --fx-l2: #d99474; --fx-l2b: #e0a083; --fx-tree1: #d0662f; --fx-tree2: #e39a3e; --fx-tree3: #c0473a;
  --fx-l3: #9a4a3c; --fx-roof: #b85a40; --fx-snow: #d9824c;
  --fx-l4: #b9623c; --fx-l4b: #e08a3e; --fx-l4c: #7e3826;
  --fx-win: #ffd27a; --fx-win-glow: rgba(255, 190, 110, .35);
  --fx-surface: rgba(255, 252, 248, .93);
  --fx-surface-2: rgba(255, 252, 248, .92); --fx-nav-solid: rgba(255, 252, 248, .97);
  --fx-line: rgba(140, 70, 40, .14);
  --fx-line-2: rgba(140, 70, 40, .24);
  --fx-glow: rgba(255, 111, 159, .22);
}

/* The page itself is transparent: the world behind it is the background. */
html[data-design="festive"] body { background: var(--fx-sky1); }
html[data-design="festive"] .bg-glow,
html[data-design="festive"] .sparkle-field,
html[data-design="festive"] .noise-overlay,
html[data-design="festive"] .lp-backdrop { display: none !important; }

/* ------------------------------------------------------------------ world */
.fx-world {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  contain: strict;
}
.fx-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 108%, var(--fx-sky4) 0%, transparent 62%),
    linear-gradient(180deg, var(--fx-sky1) 0%, var(--fx-sky2) 46%, var(--fx-sky3) 100%);
}
/* deeper night mid-page, warmer again near the end (driven by --fx-p) */
.fx-sky::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--fx-sky1), var(--fx-sky2));
  opacity: calc(var(--fx-pb) * .55);
}
.fx-stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
html[data-theme="light"] .fx-stars { opacity: 0; }
.fx-moon {
  position: absolute; width: clamp(64px, 8vw, 140px); aspect-ratio: 1; border-radius: 50%;
  right: 12%; top: 13%;
  /* maria + limb darkening, lit from the upper left */
  background:
    radial-gradient(circle at 58% 36%, color-mix(in srgb, var(--fx-moon) 72%, #6f6a86) 0 7%, transparent 13%),
    radial-gradient(ellipse 22% 16% at 36% 58%, color-mix(in srgb, var(--fx-moon) 76%, #6f6a86) 0 50%, transparent 100%),
    radial-gradient(ellipse 14% 10% at 64% 66%, color-mix(in srgb, var(--fx-moon) 80%, #6f6a86) 0 50%, transparent 100%),
    radial-gradient(circle at 28% 30%, color-mix(in srgb, var(--fx-moon) 84%, #6f6a86) 0 4%, transparent 7%),
    radial-gradient(circle at 36% 32%, #fff 0%, var(--fx-moon) 42%, color-mix(in srgb, var(--fx-moon) 74%, #4b4466) 88%, color-mix(in srgb, var(--fx-moon) 55%, #2e2944) 100%);
  transform: translate3d(0, calc(var(--fx-p) * 9vh), 0);
  /* sets as the page ends, so it never shows through the last cards */
  /* full in the hero, a dim backdrop once content scrolls over it, gone at the end */
  opacity: min(clamp(.26, calc(1 - (var(--fx-p) - .015) * 16), 1), clamp(0, calc((1 - var(--fx-p)) * 6), 1));
}
html[data-season="autumn"] .fx-moon { right: 7%; top: 11%; width: clamp(80px, 10vw, 170px); }
@media (max-width: 900px) { .fx-moon { right: 6%; top: 9%; width: 64px; } }
/* soft terminator: a waxing-gibbous shadow on the right limb */
.fx-moon::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 18% 44%, transparent 0 62%, rgba(20, 14, 40, .42) 82%, rgba(20, 14, 40, .62) 100%);
}
/* halo: two soft rings of light, cheaper and smoother than a huge box-shadow */
.fx-moon::after {
  content: ""; position: absolute; inset: -110%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--fx-moon-glow) 0 30%, color-mix(in srgb, var(--fx-moon-glow) 40%, transparent) 50%, transparent 100%);
}
html[data-theme="light"] .fx-moon { opacity: clamp(0, calc((1 - var(--fx-p)) * 6), .7); }
html[data-theme="light"] .fx-moon::before { display: none; }
.fx-aurora { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.fx-world.has-gl .fx-aurora { opacity: 1; }
/* CSS aurora for tier 1 / no WebGL: two soft drifting bands */
.fx-aurora-css {
  position: absolute; left: -10%; right: -10%; top: 4%; height: 46%;
  background:
    radial-gradient(60% 50% at 30% 60%, var(--mix-a-30), transparent 70%),
    radial-gradient(50% 45% at 70% 45%, var(--mix-b-26), transparent 70%);
  filter: blur(30px); opacity: .55;
  animation: fxBands 26s ease-in-out infinite alternate;
}
.fx-world.has-gl .fx-aurora-css { display: none; }
@keyframes fxBands { to { transform: translate3d(4%, 3%, 0) scale(1.06); } }
html[data-theme="light"] .fx-aurora-css { opacity: .35; }

.fx-land {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--fx-land-h);
}
.fx-layer {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 100%;
  will-change: transform; transform: translate3d(0, 0, 0);
}
.fx-layer svg { display: block; width: 100%; height: 100%; }
.fx-l1 { height: 100%; }
.fx-l2 { height: 82%; }
.fx-l3 { height: 64%; }
.fx-l4 { height: 34%; }
/* the base of the scene melts into the sky colour so text over it reads */
.fx-haze {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--fx-land-h) * 1.2);
  background: linear-gradient(180deg, transparent 0%, var(--mix-s1-30) 70%, var(--mix-s1-55) 100%);
  opacity: calc(.35 + var(--fx-pb) * .65);
}
.fx-fall { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.fx-world.is-ready .fx-fall { opacity: 1; }

/* landscape fills (CSS variables can't go in SVG presentation attributes) */
.f-l1 { fill: var(--fx-l1); } .f-cap { fill: var(--fx-l1cap); }
.f-l2 { fill: var(--fx-l2); } .f-l2b { fill: var(--fx-l2b); }
.f-t1 { fill: var(--fx-tree1); } .f-t2 { fill: var(--fx-tree2); } .f-t3 { fill: var(--fx-tree3); }
.f-l3 { fill: var(--fx-l3); } .f-roof { fill: var(--fx-roof); } .f-snow { fill: var(--fx-snow); }
.f-l4 { fill: var(--fx-l4); } .f-l4b { fill: var(--fx-l4b); } .f-l4c { fill: var(--fx-l4c); }
.f-gold { fill: var(--fx-gold); } .f-a { fill: var(--fx-a); } .f-b { fill: var(--fx-b); } .f-c { fill: var(--fx-c); }
.s-l4c { stroke: var(--fx-l4c); } .s-l3 { stroke: var(--fx-l3); }

/* window lights come on as you scroll (fx.js toggles .on) */
.fx-win { fill: var(--fx-win); opacity: .12; transition: opacity .9s ease; }
.fx-win.on { opacity: 1; filter: drop-shadow(0 0 3px var(--fx-win-glow)); }
html[data-fx="1"] .fx-win.on, html[data-fx="0"] .fx-win.on { filter: none; }
.fx-bulb { opacity: .95; }
html[data-fx="2"] .fx-bulb.tw, html[data-fx="3"] .fx-bulb.tw { animation: fxTwinkle 2.4s ease-in-out infinite; }
.fx-bulb.tw:nth-of-type(3n) { animation-delay: -.8s; }
.fx-bulb.tw:nth-of-type(3n+1) { animation-delay: -1.6s; }
@keyframes fxTwinkle { 0%, 100% { opacity: .95; } 50% { opacity: .35; } }
.fx-smoke { fill: none; stroke: var(--mix-b-40); stroke-width: 6; stroke-linecap: round; opacity: 0; }
html[data-fx="3"] .fx-smoke, html[data-fx="2"] .fx-smoke { animation: fxSmoke 7s linear infinite; }
.fx-smoke:nth-of-type(2n) { animation-delay: -3.5s; }
@keyframes fxSmoke {
  0% { opacity: 0; transform: translate(0, 10px) scaleY(.6); }
  25% { opacity: .35; }
  100% { opacity: 0; transform: translate(14px, -40px) scaleY(1.2); }
}
html[data-theme="light"] .fx-smoke { stroke: rgba(120, 130, 170, .5); }

/* ------------------------------------------------------------------ nav */
html[data-design="festive"] .nav {
  top: 10px; left: 12px; right: 12px; height: 62px; border-radius: 20px;
  padding: 0 14px 0 18px;
  background: var(--mix-surface2-86);
  border: 1px solid var(--fx-line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .5s var(--fx-ease), background .3s ease, box-shadow .3s ease;
}
html[data-design="festive"] .nav.scrolled { background: var(--fx-nav-solid); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 14px 40px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .06); }
html[data-design="festive"][data-theme="light"] .nav { box-shadow: 0 10px 30px rgba(40, 40, 90, .12); }
html[data-design="festive"] .page { padding-top: calc(var(--nav-h) + 8px); }
html[data-design="festive"] .nav-links a.active::after {
  bottom: -8px; left: 50%; right: auto; width: 6px; height: 6px; border-radius: 50%; transform: translateX(-50%);
  background: var(--fx-a); box-shadow: 0 0 10px var(--fx-a);
}
html[data-design="festive"] .nav-links a:not(.nav-cta) { padding: 6px 0; }
html[data-design="festive"] .nav-links a:not(.nav-cta):hover { color: var(--text); text-shadow: 0 0 18px var(--fx-glow); }
html[data-design="festive"] .nav-cta,
html[data-design="festive"] .nav-links .nav-cta {
  background: linear-gradient(135deg, var(--fx-a), color-mix(in srgb, var(--fx-a) 55%, var(--fx-c)));
  box-shadow: 0 6px 20px var(--fx-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}
/* garland hanging under the nav (built by fx.js) */
.fx-garland { position: absolute; left: 22px; right: 22px; top: calc(100% - 3px); height: 22px; pointer-events: none; overflow: visible; }
.fx-garland svg { width: 100%; height: 100%; overflow: visible; display: block; }
.fx-garland .wire { fill: none; stroke: var(--mix-text-30); stroke-width: 1.2; }
.fx-garland .b { transform-box: fill-box; transform-origin: 50% 0; }
html[data-fx="2"] .fx-garland .b, html[data-fx="3"] .fx-garland .b { animation: fxBulb 3.2s ease-in-out infinite; }
@keyframes fxBulb { 0%, 100% { opacity: 1; } 45% { opacity: .45; } 55% { opacity: .5; } }
html[data-fx="3"] .fx-garland .sway { animation: fxSway 6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes fxSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (max-width: 820px) {
  html[data-design="festive"] .nav { top: 8px; left: 8px; right: 8px; height: 58px; border-radius: 18px; padding: 0 8px 0 12px; }
  html[data-design="festive"] .nav-links { top: calc(var(--nav-h) + 6px); left: 8px; right: 8px; border-radius: 18px; background: var(--fx-surface-2); border: 1px solid var(--fx-line); }
  html[data-design="festive"] .nav-links.open a { animation: fxMenuIn .5s var(--fx-ease) both; }
  html[data-design="festive"] .nav-links.open a:nth-child(2) { animation-delay: .03s; }
  html[data-design="festive"] .nav-links.open a:nth-child(3) { animation-delay: .06s; }
  html[data-design="festive"] .nav-links.open a:nth-child(4) { animation-delay: .09s; }
  html[data-design="festive"] .nav-links.open a:nth-child(5) { animation-delay: .12s; }
  html[data-design="festive"] .nav-links.open a:nth-child(6) { animation-delay: .15s; }
  html[data-design="festive"] .nav-links.open a:nth-child(7) { animation-delay: .18s; }
  html[data-design="festive"] .nav-links.open a:nth-child(8) { animation-delay: .21s; }
  html[data-design="festive"] .nav-links a.active::after { display: none; }
  .fx-garland { left: 16px; right: 16px; }
}
@keyframes fxMenuIn { from { opacity: 0; transform: translate3d(-14px, 0, 0); } }

/* reading progress: a string of light */
html[data-design="festive"] .lp-progress {
  position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 101; transform-origin: 0 50%;
  transform: scaleX(var(--lp-p, 0));
  background: linear-gradient(90deg, var(--fx-a), var(--fx-gold), var(--fx-b));
  box-shadow: 0 0 12px var(--fx-glow);
}

/* ------------------------------------------------------------------ type & reveals */
html[data-design="festive"] .grad-text {
  background: linear-gradient(100deg, var(--fx-a) 0%, color-mix(in srgb, var(--fx-a) 40%, var(--fx-gold)) 45%, var(--fx-b) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-fx="2"] .grad-text, html[data-fx="3"] .grad-text { animation: fxShine 7s ease-in-out infinite; }
@keyframes fxShine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* festive reveal: rise + unblur (blur only on capable tiers) */
html[data-design="festive"].reveal-on .reveal { opacity: 0; transform: translate3d(0, 34px, 0) scale(.985); }
html[data-design="festive"][data-fx="2"].reveal-on .reveal,
html[data-design="festive"][data-fx="3"].reveal-on .reveal { filter: blur(8px); }
html[data-design="festive"] .reveal { transition: opacity .9s var(--fx-ease), transform 1.1s var(--fx-ease), filter .9s var(--fx-ease); }
html[data-design="festive"].reveal-on .reveal.is-visible { opacity: 1; transform: none; filter: none; }
html[data-design="festive"].reveal-on .reveal-left { transform: translate3d(-46px, 0, 0) rotate(-1deg); }
html[data-design="festive"].reveal-on .reveal-right { transform: translate3d(46px, 0, 0) rotate(1deg); }
html[data-design="festive"].reveal-on .reveal-scale { transform: scale(.9); }
html[data-design="festive"][data-fx="0"].reveal-on .reveal { filter: none; transform: none; transition: opacity .01s; }

/* split headings (fx.js wraps words in .fx-w > .fx-wi) */
.fx-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin-bottom: -.12em; }
.fx-wi { display: inline-block; will-change: transform; }
.fx-split-pending .fx-wi { transform: translate3d(0, 105%, 0) rotate(4deg); opacity: 0; }
.fx-split-pending.fx-split-go .fx-wi { transform: none; opacity: 1; transition: transform 1s var(--fx-ease), opacity .6s ease; transition-delay: calc(var(--i) * 55ms); }
/* gradient words keep their gradient inside the mask */
.grad-text .fx-wi, .fx-wi.grad-text { -webkit-background-clip: text; background-clip: text; }

/* kicker: a solid pill with a seasonal glyph (leaf / snowflake) and a soft glow */
html[data-design="festive"] .lp-kicker, html[data-design="festive"] .eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 11px; border-radius: 999px;
  font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .16em; line-height: 1;
  color: color-mix(in srgb, var(--fx-a) 55%, #fff);
  background:
    linear-gradient(var(--fx-pill, rgba(18, 16, 40, .9)), var(--fx-pill, rgba(18, 16, 40, .9))) padding-box,
    linear-gradient(120deg, var(--mix-a-75), color-mix(in srgb, var(--fx-b, var(--fx-a)) 35%, transparent) 55%, var(--mix-a-60)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 8px 26px -12px var(--fx-glow), inset 0 1px 0 rgba(255, 255, 255, .06);
}
html[data-design="festive"] .lp-kicker::before, html[data-design="festive"] .eyebrow::before {
  content: ""; flex: 0 0 auto; width: 14px; height: 14px; border-radius: 0;
  background: linear-gradient(135deg, var(--fx-a), var(--fx-b, var(--fx-a)));
  -webkit-mask: var(--fx-glyph) center / contain no-repeat; mask: var(--fx-glyph) center / contain no-repeat;
  filter: drop-shadow(0 0 6px var(--mix-a-60));
}
html[data-design="festive"][data-fx="2"] .lp-kicker::before, html[data-design="festive"][data-fx="3"] .lp-kicker::before { animation: fxGlyph 7s ease-in-out infinite; }
@keyframes fxGlyph { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(14deg) scale(1.08); } }
html[data-season="winter"] { --fx-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9 3.5l3 2.5 3-2.5M9 20.5l3-2.5 3 2.5M3 10.4l3.7-.6-1.2-3.5M21 13.6l-3.7.6 1.2 3.5M3 13.6l3.7.6-1.2 3.5M21 10.4l-3.7-.6 1.2-3.5'/%3E%3C/svg%3E"); --fx-pill: rgba(14, 18, 44, .92); }
html[data-season="autumn"] { --fx-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l1.8 4.3 2.6-1.4-.6 4.6 3.4-2.2-.3 3 3.1.7-2.6 2.6 1.1 1.4-5 .8.6 2.2L13 16.6V22h-2v-5.4l-3.1.9.6-2.2-5-.8 1.1-1.4L2 10.5l3.1-.7-.3-3 3.4 2.2-.6-4.6 2.6 1.4z'/%3E%3C/svg%3E"); --fx-pill: rgba(36, 14, 28, .92); }
html[data-design="festive"][data-theme="light"] { --fx-pill: rgba(255, 255, 255, .94); }
html[data-design="festive"][data-theme="light"] .lp-kicker, html[data-design="festive"][data-theme="light"] .eyebrow { color: color-mix(in srgb, var(--fx-a) 80%, #2a1830); }

/* ------------------------------------------------------------------ surfaces */
/* feature pages: the text blocks become proper cards over the landscape */
html[data-design="festive"] .feature-block {
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3.4vw, 38px); border-radius: 24px; border: 1px solid var(--fx-line);
  box-shadow: 0 30px 70px -40px var(--fx-glow), inset 0 1px 0 rgba(255, 255, 255, .05);
}
html[data-design="festive"] .feature-block h2 { font-size: clamp(20px, 2vw, 24px); }
html[data-design="festive"] .lp-feat,
html[data-design="festive"] .feature-block,
html[data-design="festive"] .feature-hero,
html[data-design="festive"] .related-features a,
html[data-design="festive"] .premium-card,
html[data-design="festive"] .rm-card,
html[data-design="festive"] .pg-stat,
html[data-design="festive"] .accordion-item,
html[data-design="festive"] .discord-window,
html[data-design="festive"] .chg-entry,
html[data-design="festive"] .pg-card,
html[data-design="festive"] .card {
  background: var(--fx-surface);
  border-color: var(--fx-line) !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* pointer spotlight + tilt on interactive cards (fx.js sets --mx/--my/--rx/--ry) */
.fx-card { position: relative; isolation: isolate; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--fx-ease), border-color .3s ease, box-shadow .4s ease; }
.fx-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--mix-a-16), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.fx-card:hover::after { opacity: 1; }
.fx-card:hover { border-color: var(--mix-a-45) !important; box-shadow: 0 24px 60px -24px var(--fx-glow); }
.fx-card.is-tilting { transition: transform .12s linear, border-color .3s ease, box-shadow .4s ease; }

/* snow caps / leaf sprigs on card tops (decorative, cheap: one background) */
html[data-season="winter"] .fx-cap::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: -7px; height: 16px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M0 9C10 3 22 2 34 6S58 12 70 7 92 1 106 5s26 9 40 5 22-8 36-6 24 8 38 7 20-7 34-7 22 6 34 7 14-2 22-4V16H0Z' fill='%23eef4ff'/%3E%3Cpath d='M0 12c20-3 40 2 60 0s40-4 64-1 50 3 76 0 60-2 100 1V16H0Z' fill='%23c9d8f6' opacity='.7'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18));
  border-radius: 8px 8px 0 0;
}
html[data-season="winter"][data-theme="light"] .fx-cap::before { filter: drop-shadow(0 1px 1px rgba(60, 80, 140, .2)); }
html[data-season="autumn"] .fx-cap::before {
  content: ""; position: absolute; right: 14px; top: -14px; width: 46px; height: 30px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 30'%3E%3Cpath d='M6 26C14 20 26 16 40 14' stroke='%235a2a1a' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3Cpath d='M18 19l2-6 2 3 3-5 1 4 4-2-2 5 4 1-5 3 1 3-5-2-2 4-1-5-4 1Z' fill='%23e2734f'/%3E%3Cpath d='M31 15c3-6 9-8 12-7-1 5-6 9-12 7Z' fill='%23ffab5e'/%3E%3Cpath d='M10 24c-1-5 2-9 6-10 1 4-2 9-6 10Z' fill='%23ff6f9f'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(-6deg);
}

/* buttons: light sweep + magnetic pull (fx.js sets --tx/--ty) */
html[data-design="festive"] .lp-btn,
html[data-design="festive"] .btn {
  position: relative; overflow: hidden;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: transform .35s var(--fx-ease), box-shadow .3s ease, filter .3s ease;
}
html[data-design="festive"] .lp-btn-primary,
html[data-design="festive"] .btn-primary {
  background: linear-gradient(135deg, var(--fx-a), color-mix(in srgb, var(--fx-a) 55%, var(--fx-c)));
  box-shadow: 0 10px 30px -8px var(--fx-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
}
html[data-design="festive"] .lp-btn::after,
html[data-design="festive"] .btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg) translate3d(0, 0, 0); opacity: 0;
}
html[data-design="festive"] .lp-btn:hover::after,
html[data-design="festive"] .btn:hover::after { animation: fxSweep .9s var(--fx-ease); }
@keyframes fxSweep { 0% { opacity: 1; transform: skewX(-18deg) translate3d(0, 0, 0); } 100% { opacity: 1; transform: skewX(-18deg) translate3d(420%, 0, 0); } }

/* ------------------------------------------------------------------ section frames */
html[data-design="festive"] .cta-banner {
  background:
    radial-gradient(90% 120% at 50% 120%, var(--mix-a-22), transparent 60%),
    var(--fx-surface-2);
  border: 1px solid var(--fx-line-2);
  overflow: hidden;
}
html[data-design="festive"] .cta-banner::before {
  background: conic-gradient(from var(--fx-ang, 0deg), transparent 0 70%, var(--mix-a-55) 80%, var(--mix-gold-55) 88%, transparent 96%);
  inset: -60%; opacity: .5; filter: blur(30px);
}
html[data-fx="2"] .cta-banner::before, html[data-fx="3"] .cta-banner::before { animation: fxSpin 10s linear infinite; }
@keyframes fxSpin { to { transform: rotate(1turn); } }

/* hero blocks of inner pages */
html[data-design="festive"] .pg-hero,
html[data-design="festive"] .lp-pagehead,
html[data-design="festive"] .feature-hero { position: relative; }
html[data-design="festive"] .feature-hero { border: 1px solid var(--fx-line); border-radius: 26px; padding: 34px 32px; overflow: hidden; }
html[data-design="festive"] .feature-hero::after {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, var(--mix-a-20), transparent 70%);
}
html[data-design="festive"] .feature-hero > * { position: relative; z-index: 1; }
html[data-design="festive"] .icon-badge-lg {
  background: var(--mix-a-14); border-color: var(--mix-a-34);
  box-shadow: 0 0 0 6px var(--mix-a-6), 0 10px 30px -10px var(--fx-glow);
}
html[data-fx="3"] .icon-badge-lg, html[data-fx="2"] .icon-badge-lg { animation: fxFloat 6s ease-in-out infinite; }
@keyframes fxFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -6px, 0); } }

/* accordion */
html[data-design="festive"] .accordion-item { border-radius: 16px; transition: border-color .3s ease, background .3s ease; }
html[data-design="festive"] .accordion-item.open { border-color: var(--mix-a-40) !important; box-shadow: 0 18px 40px -26px var(--fx-glow); }
html[data-design="festive"] .accordion-icon { transition: transform .45s var(--fx-ease), color .3s ease; }
html[data-design="festive"] .accordion-item.open .accordion-icon { transform: rotate(135deg); color: var(--fx-a); }

/* pills */
html[data-design="festive"] .status-pill { background: var(--fx-surface-2); border-color: var(--fx-line-2); }

/* ------------------------------------------------------------------ footer */
html[data-design="festive"] .footer {
  border-top: 0; margin-top: 80px; padding-top: 110px;
  background: linear-gradient(180deg, transparent, var(--mix-s1-88) 90px);
}
.fx-foot-ridge { position: absolute; left: 0; right: 0; top: 0; height: 100px; pointer-events: none; }
.fx-foot-ridge svg { width: 100%; height: 100%; display: block; }
html[data-design="festive"] .footer-col h4 { font-family: var(--fx-mono); letter-spacing: .14em; font-size: 11px; color: color-mix(in srgb, var(--fx-a) 70%, var(--text)); }
html[data-design="festive"] .footer-col a { transition: color .2s ease, transform .3s var(--fx-ease); }
html[data-design="festive"] .footer-col a:hover { transform: translate3d(4px, 0, 0); color: var(--text); }
html[data-design="festive"] .footer-bottom { border-top-color: var(--fx-line); }

/* ------------------------------------------------------------------ cursor glow + tap bursts */
.fx-cursor {
  position: fixed; left: 0; top: 0; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%;
  pointer-events: none; z-index: 0; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(circle, var(--mix-a-13) 0%, transparent 62%);
  will-change: transform;
}
.fx-cursor.on { opacity: 1; }
html[data-theme="light"] .fx-cursor { background: radial-gradient(circle, var(--mix-a-9) 0%, transparent 62%); }

/* ------------------------------------------------------------------ page transitions */
@view-transition { navigation: auto; }
html[data-design="festive"]::view-transition-old(root) { animation: fxVtOut .32s var(--fx-ease-io) both; }
html[data-design="festive"]::view-transition-new(root) { animation: fxVtIn .55s var(--fx-ease) both; }
@keyframes fxVtOut { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes fxVtIn { from { opacity: 0; transform: scale(1.012); filter: blur(6px); } }

/* ------------------------------------------------------------------ docs: calmer */
html[data-design="festive"] .docs-body .fx-layer { opacity: .55; }
html[data-design="festive"] .docs-body .fx-world::after {
  content: ""; position: absolute; inset: 0; background: var(--mix-s1-52);
}
html[data-design="festive"] .docs-main,
html[data-design="festive"] .docs-side,
html[data-design="festive"] .docs-toc { position: relative; }
html[data-design="festive"] .docs-main { background: var(--mix-surface-80); border: 1px solid var(--fx-line); border-radius: 22px; padding: 28px clamp(18px, 3vw, 40px); }
@media (max-width: 760px) { html[data-design="festive"] .docs-main { border-radius: 18px; padding: 20px 16px; } }
html[data-design="festive"] .docs-subbar { background: var(--fx-surface-2); }

/* ------------------------------------------------------------------ low tiers / reduced motion */
html[data-fx="1"] .fx-aurora-css { animation: none; filter: blur(24px); }
/* Light mode (phones, tablets, slow machines): glass blur re-blurs the page on
   every scroll frame. Surfaces here are already near-opaque, so it goes. */
html[data-design="festive"][data-fx="1"] *, html[data-design="festive"][data-fx="1"] *::before, html[data-design="festive"][data-fx="1"] *::after,
html[data-design="festive"][data-fx="0"] *, html[data-design="festive"][data-fx="0"] *::before, html[data-design="festive"][data-fx="0"] *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html[data-fx="1"] .fx-card, html[data-fx="0"] .fx-card { transform: none !important; }
html[data-fx="0"] *, html[data-fx="0"] *::before, html[data-fx="0"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
@media (prefers-reduced-motion: reduce) {
  html[data-design="festive"]::view-transition-old(root), html[data-design="festive"]::view-transition-new(root) { animation: none; }
}
@media print { .fx-world, .fx-garland, .fx-cursor { display: none !important; } }
