/* Moving backgrounds for the two curved panels. Three versions to choose from: ?bg=aurora (default), ?bg=light, ?bg=wash.
   Everything moves with transform or opacity only, and stops when the panel is off screen. */
.panel-glow{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;border-radius:inherit}
.panel-glow i{position:absolute;display:block;will-change:transform}
/* fine moving film grain over every version */
.panel-glow:after{content:"";position:absolute;inset:-50%;opacity:.09;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
@keyframes grain{0%{transform:translate(0,0)}20%{transform:translate(-3%,2%)}40%{transform:translate(2%,-3%)}60%{transform:translate(-2%,-1%)}80%{transform:translate(3%,1%)}100%{transform:translate(0,0)}}
/* a soft light veil behind the headline keeps the words crisp */
.panel-glow:before{content:"";position:absolute;left:50%;top:-8%;width:min(80rem,95%);height:58%;transform:translateX(-50%);background:radial-gradient(closest-side,#fbf8f2e6,#fbf8f200);z-index:2}

/* 1. Aurora: big fields of green, gold and copper drifting and mixing */
html:not([data-bg]) .panel-glow i,html[data-bg=aurora] .panel-glow i{border-radius:50%;animation:aurora 22s ease-in-out infinite alternate;mix-blend-mode:multiply}
html:not([data-bg]) .panel-glow i:nth-child(1),html[data-bg=aurora] .panel-glow i:nth-child(1){width:70vw;height:70vw;left:-22vw;top:10%;background:radial-gradient(closest-side,#2d6a4f7a,#2d6a4f00);animation-duration:24s}
html:not([data-bg]) .panel-glow i:nth-child(2),html[data-bg=aurora] .panel-glow i:nth-child(2){width:64vw;height:64vw;right:-20vw;top:-6%;background:radial-gradient(closest-side,#d3ad6eaa,#d3ad6e00);animation-duration:19s;animation-delay:-7s}
html:not([data-bg]) .panel-glow i:nth-child(3),html[data-bg=aurora] .panel-glow i:nth-child(3){width:78vw;height:52vw;left:12vw;bottom:-26vw;background:radial-gradient(closest-side,#c8875a80,#c8875a00);animation-duration:27s;animation-delay:-13s}
html:not([data-bg]) .panel-glow i:nth-child(4),html[data-bg=aurora] .panel-glow i:nth-child(4){width:46vw;height:46vw;left:34vw;top:20%;background:radial-gradient(closest-side,#8fbf9e66,#8fbf9e00);animation-duration:17s;animation-delay:-4s}
@keyframes aurora{
  0%{transform:translate3d(0,0,0) scale(1) rotate(0deg)}
  33%{transform:translate3d(14vw,-6vw,0) scale(1.18) rotate(20deg)}
  66%{transform:translate3d(-10vw,7vw,0) scale(.88) rotate(-12deg)}
  100%{transform:translate3d(8vw,3vw,0) scale(1.1) rotate(8deg)}
}

/* 2. Projector light: soft beams sweeping slowly across, warm gold and green */
html[data-bg=light] .panel-glow{background:radial-gradient(ellipse at 50% 120%,#e9c8a166,#e9c8a100 60%)}
html[data-bg=light] .panel-glow i{top:-60%;width:38vw;height:240%;left:calc(var(--x) - 19vw);transform-origin:50% 0;border-radius:40%;filter:blur(30px);animation:beam 16s ease-in-out infinite alternate}
html[data-bg=light] .panel-glow i:nth-child(1){--x:12%;background:linear-gradient(#d3ad6e00,#d3ad6e8c 45%,#d3ad6e00);animation-duration:17s}
html[data-bg=light] .panel-glow i:nth-child(2){--x:38%;background:linear-gradient(#2d6a4f00,#2d6a4f5c 45%,#2d6a4f00);animation-duration:21s;animation-delay:-6s}
html[data-bg=light] .panel-glow i:nth-child(3){--x:64%;background:linear-gradient(#c8875a00,#c8875a70 45%,#c8875a00);animation-duration:15s;animation-delay:-11s}
html[data-bg=light] .panel-glow i:nth-child(4){--x:88%;background:linear-gradient(#8fbf9e00,#8fbf9e6b 45%,#8fbf9e00);animation-duration:19s;animation-delay:-3s}
@keyframes beam{0%{transform:rotate(-24deg) scaleX(.8);opacity:.55}50%{opacity:1}100%{transform:rotate(22deg) scaleX(1.25);opacity:.65}}

/* 3. Colour wash: one slow swirl of green, gold, cream and copper under a soft veil */
html[data-bg=wash] .panel-glow i{display:none}
html[data-bg=wash] .panel-glow i:nth-child(1){display:block;left:50%;top:50%;width:160vmax;height:160vmax;margin:-80vmax 0 0 -80vmax;border-radius:50%;
  background:conic-gradient(from 0deg,#2d6a4f66,#d3ad6e88,#f6ecdf00,#c8875a77,#8fbf9e66,#f6ecdf00,#2d6a4f66);filter:blur(60px);animation:wash 40s linear infinite}
@keyframes wash{to{transform:rotate(360deg)}}

.panel-glow.still i,.panel-glow.still:after{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.panel-glow i,.panel-glow:after{animation:none}}

/* Panel colour, 29 Nov. Three to choose from: Ink (default, near-black like Tipra's monogram), ?panel=midnight (deep navy),
   ?panel=oxblood (deep grey-red). Cream text and gold emphasis on all three. */
html{--p1:#1b1b1c;--p2:#141415;--p3:#0d0d0e;--pline:#2c2c2e;--ptext:#f7f1e6;--pbody:#d6d3cd;--pmute:#9c9a95;--pem:#d9b877;--pemh:#e6c98f;--pdeep:#141415;
  --g1:#5b5e66;--g2:#d9b877;--g3:#3d4a52;--g4:#6c6a66;--gop:.26}
html[data-panel=midnight]{--p1:#1a2541;--p2:#141d35;--p3:#0e1528;--pline:#283553;--pbody:#d0d6e3;--pmute:#97a2ba;--pem:#dcbc7d;--pemh:#e8cd95;--pdeep:#141d35;
  --g1:#4a6aa0;--g2:#dcbc7d;--g3:#2d4878;--g4:#7f95c0;--gop:.34}
html[data-panel=oxblood]{--p1:#43202d;--p2:#381a26;--p3:#2a131d;--pline:#55303f;--pbody:#eedbe0;--pmute:#c2a0aa;--pem:#e3c48d;--pemh:#edd3a2;--pdeep:#381a26;
  --g1:#a04a62;--g2:#e3c48d;--g3:#6e2a40;--g4:#b9707f;--gop:.30}
html:not([data-panel-off]) .opening-reel,html:not([data-panel-off]) .contact{background:linear-gradient(var(--p1),var(--p2) 55%,var(--p3))!important;border-color:var(--pline)!important;color:var(--ptext)}
html:not([data-panel-off]) .opening-reel .metric-title,html:not([data-panel-off]) .contact h2{color:var(--ptext)}
html:not([data-panel-off]) .opening-reel .metric-title em,html:not([data-panel-off]) .contact h2 em,html:not([data-panel-off]) .opening-reel .figures-list em{color:var(--pem)}
html:not([data-panel-off]) .opening-reel .metric-copy,html:not([data-panel-off]) .contact p{color:var(--pbody)}
html:not([data-panel-off]) .loop-caption span,html:not([data-panel-off]) .hero-proof small,html:not([data-panel-off]) .quote-hook small,html:not([data-panel-off]) .figures-label{color:var(--pmute)}
html:not([data-panel-off]) .loop-caption strong,html:not([data-panel-off]) .hero-proof b,html:not([data-panel-off]) .quote-hook b,html:not([data-panel-off]) .figures-list strong{color:var(--ptext)}
html:not([data-panel-off]) .loop-caption a,html:not([data-panel-off]) .quote-hook .quote-hear{color:var(--pem)}
html:not([data-panel-off]) .proof-seam{background:#ffffff26}
html:not([data-panel-off]) .figures{border-top-color:#ffffff24}
html:not([data-panel-off]) .contact .address{color:var(--pbody)}
html:not([data-panel-off]) .contact .pill.dark{background:var(--pem)!important;color:var(--pdeep)}
html:not([data-panel-off]) .contact .pill.dark:hover{background:var(--pemh)!important}
html:not([data-panel-off]) .contact .pill.line{background:#ffffff14!important;color:var(--ptext)!important;box-shadow:inset 0 0 0 1.5px #f7f1e6b3}
html:not([data-panel-off]) .contact .pill.line:hover{background:var(--ptext)!important;color:var(--pdeep)!important}
html:not([data-panel-off]) .loop-floor{background:radial-gradient(ellipse,#00000073 0%,#0000002e 44%,transparent 70%)}
html:not([data-panel-off]) .book{border-color:var(--pline)}
/* on a dark panel the moving light glows softly rather than tints */
html:not([data-panel-off]) .panel-glow i{mix-blend-mode:screen!important;opacity:var(--gop)}
html:not([data-panel-off]) .panel-glow:before{background:radial-gradient(closest-side,color-mix(in srgb,var(--p2) 85%,transparent),transparent)}
html:not([data-panel-off]) .panel-glow:after{mix-blend-mode:soft-light;opacity:.14}
html:not([data-bg]) .panel-glow i:nth-child(1){background:radial-gradient(closest-side,var(--g1),transparent)}
html:not([data-bg]) .panel-glow i:nth-child(2){background:radial-gradient(closest-side,var(--g2),transparent);opacity:calc(var(--gop) * .7)}
html:not([data-bg]) .panel-glow i:nth-child(3){background:radial-gradient(closest-side,var(--g3),transparent)}
html:not([data-bg]) .panel-glow i:nth-child(4){background:radial-gradient(closest-side,var(--g4),transparent)}

/* Speed, 29 Nov. Blend modes make the phone re-mix every layer under them (videos included) on every frame,
   so the glow layers are plain see-through colour and the grain is a flat overlay. On phones the glow holds still. */
html:not([data-panel-off]) .panel-glow i{mix-blend-mode:normal!important;opacity:calc(var(--gop) * .8)}
html:not([data-panel-off]) .panel-glow:after{mix-blend-mode:normal;opacity:.05}
.panel-glow i{will-change:auto}
@media (hover:none),(max-width:760px){
  .panel-glow i,.panel-glow:after{animation:none!important}
  .panel-glow:after{display:none}
}
