/* THE END OF THE JOURNEY (rd/hero-name.js). There is no second hero to stop at: as the tunnel runs out its tiles put the
   face together in the middle of the screen (the journey's mosaic, portrait-burst.js, landing on the photograph), the
   face stands a moment and goes out, the name and the craft are written in its place, quickly, and it goes on into the
   next scene under the ink.
   Nothing else is shown here: the old hero's captions stay in the page for readers and machines only. */
html.hn #hero.section-hero { --hn-hp: 48px; }
/* the mosaic loses its colour on the way in, so the black-and-white photograph takes over without a change of tone */
html.hn.hn-ret #pbScene { filter: saturate(calc(1 - var(--hn-b, 0))); }

/* a clean flat ground: no clouds, rings, lines, scraps of text or the outlined 01 behind the picture */
html.hn #hero.section-hero { background: #0d0d0d !important; }
html.hn #hero.section-hero::before, html.hn #hero.section-hero::after { background: none !important; }
html.hn #hero.section-hero .ink-canvas, html.hn #hero.section-hero .hero-atmo-1, html.hn #hero.section-hero .hero-atmo-2, html.hn #hero.section-hero .hero-atmo-3,
html.hn #hero.section-hero .hero-ink-bleed, html.hn #hero.section-hero .hero-abstract, html.hn #hero.section-hero .hero-constellation, html.hn #hero.section-hero .ms-frag,
html.hn #hero.section-hero .hero-section-num, html.hn #hero.section-hero .hero-vignette, html.hn #hero.section-hero .hero-portrait-blob { display: none !important; }

html.hn #hero.section-hero .hero-deco { z-index: 1 !important; }

/* the face: the photograph the mosaic lands on, sharp, in the middle, its edges let go into the ground */
html.hn #hero.section-hero .hero-portrait {
    position: absolute; left: 50% !important; top: 43% !important; right: auto !important; bottom: auto !important; width: min(78vh, 82vw) !important; height: auto !important;
    max-width: none !important; max-height: none !important; aspect-ratio: 1; transform: translate(-50%, -50%) scale(var(--hn-z, 1)) !important; opacity: var(--hn-o, 1) !important;
    transition: none !important; animation: none !important; filter: none !important; mix-blend-mode: lighten; pointer-events: none;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 55%, #000 34%, transparent 78%), linear-gradient(#000 72%, transparent 97%) !important; mask-image: radial-gradient(70% 70% at 50% 55%, #000 34%, transparent 78%), linear-gradient(#000 72%, transparent 97%) !important;
    -webkit-mask-composite: source-in !important; mask-composite: intersect !important;      /* (and its foot, so the neck never ends in a line) */
}
/* grey grain over the whole screen (a fixed layer above the journey's scene and the hero alike, so it comes on with
   the return instead of appearing with the hero); its strength is set by rd/hero-name.js */
.hn-grain { position: fixed; inset: -12%; z-index: 40; pointer-events: none; opacity: 0; will-change: transform, opacity; animation: hn-grain .9s steps(1) infinite;
    background-size: 260px 260px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .72 0 0 0 0 .72 0 0 0 0 .72 0 0 0 1.9 -.78'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes hn-grain { 0% { transform: translate3d(0, 0, 0); } 11% { transform: translate3d(-3%, 2%, 0); } 22% { transform: translate3d(2%, -4%, 0); } 33% { transform: translate3d(-5%, -1%, 0); } 44% { transform: translate3d(4%, 3%, 0); } 55% { transform: translate3d(-1%, 5%, 0); } 66% { transform: translate3d(5%, -2%, 0); } 77% { transform: translate3d(-4%, -4%, 0); } 88% { transform: translate3d(1%, 1%, 0); } }
@media (prefers-reduced-motion: reduce) { .hn-grain { animation: none; } }

/* the old hero's texts: there, not shown */
html.hn #hero.section-hero .section-content { opacity: 0 !important; pointer-events: none !important; }
html.hn #hero.section-hero .scroll-indicator { display: none !important; }

/* the name and the craft, written in the middle of the screen once the face has gone */
.hn-id { position: absolute; left: 0; right: 0; top: 50%; margin-top: calc(min(7.4vw, 14vh) * -.72); text-align: center; color: #faf9f0; pointer-events: none; will-change: opacity, transform; }
.hn-n { font: 800 min(7.4vw, 14vh)/1 var(--font-display, 'Syne', sans-serif); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.hn-c { margin-top: clamp(10px, 1.8vh, 18px); font: 500 clamp(11px, .95vw, 14px)/1.2 var(--font-mono, 'Geist Mono', ui-monospace, monospace); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; min-height: 1.2em; }
.hn-id i { font-style: normal; opacity: 0; }
.hn-id i.on { opacity: 1; }
.hn-k { display: inline-block; width: .06em; height: .78em; margin-left: .04em; background: var(--accent, #d65c39); vertical-align: -.04em; opacity: 0; }
.hn-c .hn-k { width: .5em; height: 1em; vertical-align: -.16em; }
.hn-k.on { opacity: 1; animation: hn-k .9s steps(1) infinite; }
@keyframes hn-k { 50% { opacity: 0; } }

@media (max-width: 768px) {
    html.hn #hero.section-hero .hero-portrait { width: 104vw !important; top: 40% !important; }
    .hn-n { font-size: 14.5vw; line-height: .96; white-space: normal; }
    .hn-n i.sp { display: block; height: 0; overflow: hidden; }
    .hn-id { margin-top: -17vw; }
    .hn-c { font-size: 11px; letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) { .hn-k { display: none; } }
