/* Desktop Home only. Opening visuals copied from page 09, 20 Nov 2026. */
.hv-fn .fn-bg { --t: calc(var(--pt-bgs, 67) / 100); position: relative; --hh: calc(var(--pt-bgh, 106) / 100); height: calc((100vh - 4vw + 40px + var(--t) * (4vw - 40px)) * var(--hh)); min-height: calc(460px * var(--hh));    margin: calc(2vw - 4vw * var(--t)) calc(2vw - 4vw * var(--t)) calc(2vw * (1 - var(--t)));    border-radius: 1.8vw; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #f1f5f1 0%, #ecf1ec 60%, #e8eee9 100%); isolation: isolate; }
.hv-fn .fn-bg i { position: absolute; display: block; border-radius: 50%; pointer-events: none; }
.hv-fn .fn-bg-a { left: 50%; top: 47%; width: 46%; height: 56%; transform: translate(-50%, -50%); background: radial-gradient(ellipse at 50% 50%, rgba(86, 96, 96, 0.78) 0%, rgba(108, 118, 116, 0.55) 34%, rgba(150, 160, 156, 0.18) 64%, rgba(150, 160, 156, 0) 80%); filter: blur(3.2vw); animation: home-fn-bg-a 9s ease-in-out infinite alternate; }
.hv-fn .fn-bg-b { left: 50%; top: 66%; width: 50%; height: 42%; transform: translate(-50%, -50%); background: radial-gradient(ellipse at 50% 45%, rgba(150, 132, 98, 0.62) 0%, rgba(160, 146, 112, 0.4) 40%, rgba(170, 160, 130, 0) 76%); filter: blur(3.4vw); animation: home-fn-bg-b 11s ease-in-out infinite alternate; }
.hv-fn .fn-bg-glass { left: 0; right: 0; top: 55%; bottom: 0; border-radius: 0; background: linear-gradient(to bottom, rgba(238, 232, 214, 0.62) 0%, rgba(236, 238, 226, 0.5) 40%, rgba(234, 240, 232, 0.55) 100%); -webkit-backdrop-filter: blur(1.8vw) saturate(1.08); backdrop-filter: blur(1.8vw) saturate(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 -0.6vw 2vw rgba(255, 255, 255, 0.25); }
@keyframes home-fn-bg-a { 0% { transform: translate(-50%, -50%) scale(0.92); } 50% { transform: translate(-44%, -54%) scale(1.12); } 100% { transform: translate(-56%, -47%) scale(1.02); } }
@keyframes home-fn-bg-b { 0% { transform: translate(-50%, -50%) scale(1.05); } 50% { transform: translate(-57%, -46%) scale(0.9); } 100% { transform: translate(-45%, -53%) scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
.hv-fn .fn-bg-a, .hv-fn .fn-bg-b { animation: none; }
}
.hv-fn .fn-bg { --pw: calc(var(--pt-bgp, 5) * 1vw); }
.hv-fn .fn-bg-photo { position: absolute; left: 50%; top: 50%; width: var(--pw); aspect-ratio: 320 / 217; object-fit: cover; transform: translate(-50%, -50%); border-radius: calc(var(--pw) * 0.06); z-index: 3; box-shadow: 0 calc(var(--pw) * 0.07) calc(var(--pw) * 0.18) rgba(60, 60, 55, 0.2); }
.hv-fn .fn-bg-txt { position: absolute; left: 50%; top: 50%; width: 14.4em; transform: translate(-50%, -50%); z-index: 2; pointer-events: none; font: 400 calc(var(--pt-bgt, 1.9) * 1vw)/1.12 "Alte Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.02em; }
.hv-fn .fn-bg-txt span { display: block; white-space: nowrap; width: 100%; color: transparent; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.28) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0.035em rgba(255, 255, 255, 0.75); filter: drop-shadow(0 0.08em 0.14em rgba(70, 80, 78, 0.28)) drop-shadow(0 0 0.5em rgba(255, 255, 255, 0.28)); }
.hv-fn .fn-bg-txt .l2 { transform: scaleX(-1); }
.hv-fn .fn-bg-txt .l3, .hv-fn .fn-bg-txt .l4 { background-image: linear-gradient(to bottom, rgba(232, 214, 168, 0.95) 0%, rgba(220, 200, 150, 0.6) 55%, rgba(215, 195, 145, 0.35) 100%); -webkit-text-stroke-color: rgba(246, 232, 196, 0.8); }
.hv-fn .fn-bg-box { position: absolute; left: 50%; top: calc(50% + var(--pt-bgy, -3) * 1%); width: calc(var(--pt-bgb, 18) * 1vw); aspect-ratio: 320 / 217; transform: translate(-50%, -50%); border-radius: calc(var(--pt-bgb, 18) * 1vw * 0.06); background: #eee9ea; z-index: 4; box-shadow: 0 calc(var(--pt-bgb, 18) * 1vw * 0.07) calc(var(--pt-bgb, 18) * 1vw * 0.18) rgba(60, 60, 55, 0.2); pointer-events: none; }
.hv-fn .fn-bg-paused .fn-bg-a, .hv-fn .fn-bg-paused .fn-bg-b { animation-play-state: paused; }
.hv-fn .fn-bg-a { animation: home-fn-bg-drift 26s linear infinite, home-fn-bg-sway-a 7s ease-in-out infinite alternate; }
.hv-fn .fn-bg-b { animation: home-fn-bg-drift 34s linear -17s infinite, home-fn-bg-sway-b 9s ease-in-out infinite alternate; }
@keyframes home-fn-bg-drift { from { left: -34%; } to { left: 134%; } }
@keyframes home-fn-bg-sway-a { 0% { translate: 0 -7%; scale: 0.92; } 100% { translate: 0 7%; scale: 1.12; } }
@keyframes home-fn-bg-sway-b { 0% { translate: 0 6%; scale: 1.1; } 100% { translate: 0 -8%; scale: 0.92; } }
@media (prefers-reduced-motion: reduce) {
.hv-fn .fn-bg-a, .hv-fn .fn-bg-b { animation: none; }
}
.hv-fn .fn-bg-a { animation: home-fn-a-x 31s ease-in-out infinite, home-fn-a-y 23s ease-in-out infinite, home-fn-bg-scale-a 7s ease-in-out infinite alternate; }
.hv-fn .fn-bg-b { animation: home-fn-b-x 37s ease-in-out infinite, home-fn-b-y 29s ease-in-out infinite, home-fn-bg-scale-b 9s ease-in-out infinite alternate; }
@keyframes home-fn-a-x { 0%, 100% { left: 50%; } 18% { left: 84%; } 42% { left: 22%; } 66% { left: 72%; } }
@keyframes home-fn-a-y { 0%, 100% { top: 50%; } 22% { top: 24%; } 50% { top: 74%; } 78% { top: 36%; } }
@keyframes home-fn-b-x { 0%, 100% { left: 50%; } 24% { left: 18%; } 48% { left: 80%; } 74% { left: 30%; } }
@keyframes home-fn-b-y { 0%, 100% { top: 50%; } 20% { top: 78%; } 46% { top: 28%; } 72% { top: 70%; } }
@keyframes home-fn-bg-scale-a { 0% { scale: 0.92; } 100% { scale: 1.12; } }
@keyframes home-fn-bg-scale-b { 0% { scale: 1.1; } 100% { scale: 0.92; } }
@media (prefers-reduced-motion: reduce) {
.hv-fn .fn-bg-a, .hv-fn .fn-bg-b { animation: none; }
}
.hv-fn .fn-bg-box { aspect-ratio: auto; overflow: hidden; width: calc(var(--pt-bgb, 18) * 0.617 * 1vw); height: calc(var(--pt-bgb, 18) * 1.098 * 1vw); animation: home-fn-box-size 21.6s ease-in-out infinite; }
.hv-fn .fn-bg-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; margin: 0; opacity: 0; animation: home-fn-box-fade 21.6s ease-in-out calc(var(--i) * 3.6s) infinite; pointer-events: none; }
@keyframes home-fn-box-fade { 0% { opacity: 0; } 4.00% { opacity: 1; } 16.667% { opacity: 1; } 20.667% { opacity: 0; } 100% { opacity: 0; } }
@keyframes home-fn-box-size {
  0% { width: calc(var(--pt-bgb, 18) * 0.737 * 1vw); height: calc(var(--pt-bgb, 18) * 0.921 * 1vw); }
  4.000%, 16.667% { width: calc(var(--pt-bgb, 18) * 0.617 * 1vw); height: calc(var(--pt-bgb, 18) * 1.098 * 1vw); }
  20.667%, 33.333% { width: calc(var(--pt-bgb, 18) * 0.617 * 1vw); height: calc(var(--pt-bgb, 18) * 1.098 * 1vw); }
  37.333%, 50.000% { width: calc(var(--pt-bgb, 18) * 0.717 * 1vw); height: calc(var(--pt-bgb, 18) * 0.946 * 1vw); }
  54.000%, 66.667% { width: calc(var(--pt-bgb, 18) * 0.777 * 1vw); height: calc(var(--pt-bgb, 18) * 0.872 * 1vw); }
  70.667%, 83.333% { width: calc(var(--pt-bgb, 18) * 0.711 * 1vw); height: calc(var(--pt-bgb, 18) * 0.953 * 1vw); }
  87.333%, 100.000% { width: calc(var(--pt-bgb, 18) * 0.737 * 1vw); height: calc(var(--pt-bgb, 18) * 0.921 * 1vw); }
}
.hv-fn .fn-bg-paused .fn-bg-box, .hv-fn .fn-bg-paused .fn-bg-box img { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
.hv-fn .fn-bg-box, .hv-fn .fn-bg-box img { animation: none; }
.hv-fn .fn-bg-box img:first-child { opacity: 1; }
}
.hv-fn .fn-bg-box { left: calc(50% + var(--pt-bgx, -1) * 1%); }
.hv-fn .fn-bg-box img { transform: translate(calc(var(--pt-bgpx, -5) * 1%), calc(var(--pt-bgpy, 2) * 1%)) scale(var(--pt-bgps, 1.05)); }
.hv-fn .fn-bg-box { animation: home-fn-box-size calc(21.6s / var(--pt-bgsp, 2.77)) ease-in-out infinite; }
.hv-fn .fn-bg-box img { animation: home-fn-box-fade calc(21.6s / var(--pt-bgsp, 2.77)) ease-in-out calc(var(--i) * 3.6s / var(--pt-bgsp, 2.77)) infinite; }
.hv-fn .fn-bg-a { animation: home-fn-a-x calc(31s / var(--pt-bgsp, 2.77)) ease-in-out infinite, home-fn-a-y calc(23s / var(--pt-bgsp, 2.77)) ease-in-out infinite, home-fn-bg-scale-a calc(7s / var(--pt-bgsp, 2.77)) ease-in-out infinite alternate; }
.hv-fn .fn-bg-b { animation: home-fn-b-x calc(37s / var(--pt-bgsp, 2.77)) ease-in-out infinite, home-fn-b-y calc(29s / var(--pt-bgsp, 2.77)) ease-in-out infinite, home-fn-bg-scale-b calc(9s / var(--pt-bgsp, 2.77)) ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
.hv-fn .fn-bg-a, .hv-fn .fn-bg-b, .hv-fn .fn-bg-box, .hv-fn .fn-bg-box img { animation: none; }
.hv-fn .fn-bg-box img:first-child { opacity: 1; }
}
.hv-fn .fn-bg-a { animation: home-fn-a-x calc(31s / var(--pt-bgsb, 0.6)) ease-in-out infinite, home-fn-a-y calc(23s / var(--pt-bgsb, 0.6)) ease-in-out infinite, home-fn-bg-scale-a calc(7s / var(--pt-bgsb, 0.6)) ease-in-out infinite alternate; }
.hv-fn .fn-bg-b { animation: home-fn-b-x calc(37s / var(--pt-bgsb, 0.6)) ease-in-out infinite, home-fn-b-y calc(29s / var(--pt-bgsb, 0.6)) ease-in-out infinite, home-fn-bg-scale-b calc(9s / var(--pt-bgsb, 0.6)) ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
.hv-fn .fn-bg-a, .hv-fn .fn-bg-b { animation: none; }
}
.hv-fn .fn-bg-box img { transform: translate(calc(var(--pt-bgpx, -5) * 1%), calc(var(--pt-bgpy, 2) * 1%)) scale(max(var(--pt-bgps, 1.05), calc(1 + 2 * max(var(--pt-bgpx, -5), -1 * var(--pt-bgpx, -5), var(--pt-bgpy, 2), -1 * var(--pt-bgpy, 2)) / 100))); }
.hv-fn .fn-bg-box { animation: none; width: calc(var(--pt-bgb, 18) * 0.713 * 1vw); height: calc(var(--pt-bgb, 18) * 0.951 * 1vw); aspect-ratio: auto; border-radius: calc(var(--pt-bgb, 18) * 0.713 * 1vw * 0.07); background: transparent; box-shadow: none; }
.hv-fn .fn-bg-box img:nth-child(1) { object-fit: contain; background: #fff; }
.hv-fn .fn-bg-box img:nth-child(2) { object-fit: contain; background: #000; }
.hv-fn .fn-bg-box img:nth-child(4) { background: #202124; }
@media (prefers-reduced-motion: reduce) {
.hv-fn .fn-bg-box { animation: none; }
}
.hv-fn .fn-bg-box { animation: none; width: 0; height: 0; aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; border-radius: 0; left: calc(50% + var(--pt-bgx, -1) * 1%); }
.hv-fn .fn-bg-box img { inset: auto; left: 0; top: 0; width: auto; height: calc(var(--pt-bgb, 18) * 0.951 * 1vw); max-width: none; object-fit: contain; border-radius: calc(var(--pt-bgb, 18) * 0.951 * 1vw * 0.045); background: transparent; transform: translate(calc(-50% + var(--pt-bgpx, -5) * 1%), calc(-50% + var(--pt-bgpy, 2) * 1%)) scale(var(--pt-bgps, 1.05)); }
.hv-fn .fn-bg-box img:nth-child(1) { object-fit: contain; background: #fff; }
.hv-fn .fn-bg-box img:nth-child(2) { background: #000; }
.hv-fn .fn-bg-box img:nth-child(4) { background: transparent; }
@media (prefers-reduced-motion: reduce) {
.hv-fn .fn-bg-box { animation: none; }
.hv-fn .fn-bg-box img { animation: none; }
.hv-fn .fn-bg-box img:first-child { opacity: 1; }
}
.hv-fn .fn-bg { translate: 0 calc(var(--pt-bgmy, -12) * 1vh); z-index: 1; }
.hv-fn .fn-bg-box img:nth-child(1) { background: transparent; object-fit: cover; }
.hv-fn .fn-bg-box img { box-shadow: 0 0 calc(var(--pt-bgg, 55) * 0.09vw) calc(var(--pt-bgg, 55) * 0.02vw) rgba(255, 255, 255, calc(var(--pt-bgg, 55) / 100 * 0.95)); }
.hv-fn .fn-bg-box img, .hv-fn .fn-bg-box img + img { margin: 0 !important; }
.hv-fn .fn-bg-box img { transform: translate(-50%, -50%) translate(calc(var(--pt-bgpx, -5) * 0.01 * var(--pt-bgb, 18) * 0.951 * 1vw), calc(var(--pt-bgpy, 2) * 0.01 * var(--pt-bgb, 18) * 0.951 * 1vw)) scale(var(--pt-bgps, 1.05)); }
.hv-fn .fn-bg-box img:nth-child(1), .hv-fn .fn-bg-box img:nth-child(2) { width: calc(var(--pt-bgb, 18) * 0.951 * 0.76 * 1vw); }
.hv-fn .fn-bg-box img:nth-child(1) { object-fit: cover; object-position: 50% 30%; }
.hv-fn .fn-bg-box img:nth-child(2) { object-fit: contain; background: #000; }
.hv-fn .fn-bg-txt { font-size: max(calc(var(--pt-bgt, 1.9) * 1vw), 15px); }
.hv-fn .fn-bg-txt { font-size: max(calc(var(--pt-bgt, 1.9) * 1vw), calc(15px * var(--pt-bgt, 1.9) / 1.9)); }
.hv-fn .fn-bg-a, .hv-fn .fn-bg-b { opacity: var(--pt-bubo, 1); }
.hv-fn .fn-bg-txt .l1 { --bx: 5.4em; --by: 1.7em; --bd: 0s; }
.hv-fn .fn-bg-txt .l2 { --bx: -2.7em; --by: 0.56em; --bd: 0.12s; }
.hv-fn .fn-bg-txt .l3 { --bx: 2.45em; --by: -0.56em; --bd: 0.24s; }
.hv-fn .fn-bg-txt .l4 { --bx: 2.3em; --by: -1.7em; --bd: 0.36s; }
.hv-fn .fn-bg-txt.boom span { animation: home-fn-boom calc(var(--pt-boomt, 4.5) * 1s) cubic-bezier(0.12, 0.8, 0.22, 1) var(--bd) both; }
.hv-fn .fn-bg-txt.boom .l2 { animation-name: home-fn-boom2; }
@keyframes home-fn-boom { 0% { transform: translate(var(--bx), var(--by)) scale(0.15); opacity: 0; letter-spacing: -0.12em; } 8% { opacity: 1; } 100% { transform: none; opacity: 1; letter-spacing: -0.02em; } }
@keyframes home-fn-boom2 { 0% { transform: translate(var(--bx), var(--by)) scaleX(-1) scale(0.15); opacity: 0; letter-spacing: -0.12em; } 8% { opacity: 1; } 100% { transform: scaleX(-1); opacity: 1; letter-spacing: -0.02em; } }
@media (prefers-reduced-motion: reduce) {
.hv-fn .fn-bg-txt.boom span { animation: none; }
}
.hv-fn .fn-bg-fly { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; font: 400 calc(var(--pt-bgt, 1.9) * 1vw)/1.12 "Alte Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.02em; }
.hv-fn .fn-bg-fly span { position: absolute; left: 50%; top: 50%; white-space: nowrap; color: transparent; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.28) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0.035em rgba(255, 255, 255, 0.75); filter: drop-shadow(0 0.08em 0.14em rgba(70, 80, 78, 0.28)) drop-shadow(0 0 0.5em rgba(255, 255, 255, 0.28)); will-change: transform, opacity; }
.hv-fn .fn-bg-fly span.gold { background-image: linear-gradient(to bottom, rgba(232, 214, 168, 0.95) 0%, rgba(220, 200, 150, 0.6) 55%, rgba(215, 195, 145, 0.35) 100%); -webkit-text-stroke-color: rgba(246, 232, 196, 0.8); }
@media (prefers-reduced-motion: reduce) {
.hv-fn .fn-bg-fly { display: none; }
}
.hv-fn .fn-bg-txt { z-index: 1; }
.hv-fn .fn-bg-fly { --f: calc(var(--pt-flyf, 26) * 1%); -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) calc(var(--f) * 0.3), #000 var(--f), #000 calc(100% - var(--f)), rgba(0, 0, 0, 0.3) calc(100% - var(--f) * 0.3), transparent 100%); mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) calc(var(--f) * 0.3), #000 var(--f), #000 calc(100% - var(--f)), rgba(0, 0, 0, 0.3) calc(100% - var(--f) * 0.3), transparent 100%); }
.hv-fn .fn-bg-fly { font-size: max(calc(var(--pt-bgt, 1.9) * 1vw * var(--pt-flys, 1)), calc(15px * var(--pt-flys, 1))); }
.hv-fn .fn-bg-txt .l2 { transform: scaleX(-1); }
/* Fit the opening to the Home cover layer; no page 09 layout or controls are loaded. */
.hv-fn { display: none; position: absolute; inset: 0; pointer-events: none; }
.hv-fn.on { display: block; }
.hv-fn .fn-bg { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; border-radius: 0; translate: none; }
.hv-fn:not(.on) *, .hv-fn.paused * { animation-play-state: paused !important; }
:root:not([data-theme="dark"]) body:has(.hv-fn.on) .ground { opacity: 0 !important; }
/* 20 Nov (Deja): like Creativia, Zara, Pull&Bear, Barcelona: the cover picture stays behind, blurred (--bb-cupb, zoom 1.15 so the soft edge is outside the window), and the Field Notes opening (picture box, words) sits centred on top of it, in light mode. The opening is lifted above the covers (z-index). To undo: put .cv[data-for="3d-ai-field-notes"] back into the opacity: 0 rule above and delete the next two lines. */
:root:not([data-theme="dark"]) body:has(.row[data-slug="3d-ai-field-notes"]:hover) .cv[data-for="3d-ai-field-notes"] { filter: blur(var(--bb-cupb, 30px)); scale: 1.15; }
.hv-fn.on { z-index: 5; }
:root[data-theme="dark"] .hv-fn { display: none; }
@media (prefers-reduced-motion: reduce) { .hv-fn * { animation: none !important; } .hv-fn .fn-bg-box img:first-child { opacity: 1; } }

/* FIELD NOTES HOVER, EASE IN AND OUT (Deja, 23 Nov: "only field notes in and out"). The layer used to switch with display none / block, so it popped on and off. It now stays in the page and fades with an ease in and out curve (0.7s); while it is faded out it is invisible and does not catch the mouse. The words freeze where they are while it fades out (the script pauses them), then it is hidden. */
.hv-fn, :root[data-theme="dark"] .hv-fn { display: block; opacity: 0; visibility: hidden; transition: opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.7s; }
.hv-fn.on, :root[data-theme="dark"] .hv-fn.on { opacity: 1; visibility: visible; transition: opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s; }

/* FIELD NOTES HOVER, ONLY THE ANIMATION (Deja, 23 Nov: "remove that picture, we only need the animation"). The old cover picture of Field Notes (img/covers_card/3d-ai-field-notes.webp, and the dark one) was showing under the animation and before its pictures had loaded. It is now never shown on the Home page. The files stay in the folder. */
.cv[data-for="3d-ai-field-notes"], :root[data-theme="dark"] .cv[data-for="3d-ai-field-notes"] { opacity: 0 !important; animation: none !important; visibility: hidden !important; }

/* FIELD NOTES, FASTER (Deja, 23 Nov): the pictures in the box change about twice as fast (--pt-bgsp 2.77 -> 5.5; the dog picture, box-5.jpg, now comes first: its --i is 0 in index.html), the colour clouds move faster (--pt-bgsb) and the flying words start twice as often (--pt-flyi, seconds between two words). Lower the numbers to slow it down. */
.hv-fn { --pt-bgsp: 5.5; --pt-bgsb: 1.2; --pt-flyi: 0.5; }
