/**
 * Hover light as in Jonko's Figma design, read from the file 18.11 (component "Vector" 69:621, owner: "take it from
 * Figma"). hover-light.js puts the design's invisible 248 x 297 zones over the hero title (10) and the founder name
 * (6) and gives each zone its own light: a 1013 x 1477 (design px) radial gradient #CFD1D9 -> #71778D 35.7% ->
 * #484D5B 54.4% -> black, blended with colour-dodge (it brightens what lies under it: the letters burn, the blue
 * background lights up; black at the edge = no change). Hover: opacity 0 -> 1 in 1.667 s, Figma's SLOW spring
 * (stiffness 80, damping 20, mass 1, sampled below); leaving: the same back. A light exists only while hovered or
 * fading. History: 12.11 one colour-dodge light that jumped to the letter; 18.11 morning a plain gradient (cheaper,
 * but not the design); now the design's zones and lights. Footer: its own blue glow (footer-section.css).
 */

/* the older single lights (founder-letter-glow.js) give way to hover-light.js */
.hero-ambient-glow,
.founder-ambient-glow {
    display: none;
}

.jm-hover-light {
    position: absolute;
    pointer-events: none;
    background: radial-gradient(50% 50% at 50% 50%,
        #cfd1d9 0%,
        #71778d 35.7%,
        #484d5b 54.43%,
        #000000 100%);
    mix-blend-mode: color-dodge;
    opacity: 0;
    will-change: opacity;
    transition: opacity 1.667s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 1.667s linear(0, 0.1240, 0.3320, 0.5189, 0.6627, 0.7667, 0.8398, 0.8904, 0.9252, 0.9490,
        0.9652, 0.9763, 0.9839, 0.9890, 0.9925, 0.9949, 0.9965, 0.9976, 0.9984, 0.9989, 0.9993, 0.9995, 0.9997,
        0.9998, 1);
}

.jm-hover-light.is-lit {
    opacity: 1;
}

/* hero: over the title, the tagline and the buttons, as in the design */
.hero-section > .jm-hover-light {
    z-index: 15;
}

/* founder: over the background, "Möller" and its lines, under the portrait (z-index 6), as in the design */
.founder-content > .jm-hover-light {
    z-index: 5;
}

/* the lights that reach "Jan" (z-index 20, over the portrait): over it, with the portrait's shape cut out (the
   second mask layer, image and place set by hover-light.js) so only "Jan", its label and the background light up */
.founder-content > .jm-hover-light.is-top {
    z-index: 21;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* the letters themselves keep their look: the light does the work */
.hero-title-letters img:hover {
    filter: none;
}

.founder-name .letter:hover::after {
    opacity: 0;
}

/* card glows: same slow fade as the design instead of switching on at once */
.venture-card::after,
.venture-card.glow-active::after,
.publication-card::after,
.publication-card.glow-active::after {
    transition: opacity 1.667s cubic-bezier(0.22, 1, 0.36, 1);
}
