/* SCENE 01 of the main page (index.html, assets/front.js): the front door. It opens on the DPcore logo alone; scrolling
   sends the logo up into the header and lights three words one after another, each over a real place, then gathers
   them over one sentence, its words lighting up one by one, and the buttons. Uses the tokens, header and buttons from
   home/home.css. html.live (set in index.html's head unless reduced motion is asked for) holds the screen and follows
   the scroll; without it (no JS, reduced motion) the same parts stand one after another down the page. */
.fr-hero { position: relative; isolation: isolate; background: var(--stage); color: #fff; }
.fr-hero__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.fr-hero__logo { display: block; width: min(64vw, 540px); aspect-ratio: 311.49 / 66.97; filter: brightness(0) invert(1); } /* the red logo in white, as in the header over a photo */
.fr-hero__pic { width: 100%; height: 100%; object-fit: cover; }
.fr-hero__copy, .fr-hero__k { display: contents; }
.fr-hero__t { font-size: clamp(2.5rem, 6.6vw, 6.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -.045em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); word-break: keep-all; }
.fr-hero__s { max-width: 30em; color: #ebe6e6; font-size: var(--fs-lead); line-height: var(--lh-lead); }
.fr-hero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fr-hero__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: var(--fs-body); text-align: left; transition: color .25s; }
.fr-hero__cap b { font-weight: 700; } .fr-hero__cap span { color: #c9c3c3; }
.fr-hero__cap:hover, .fr-hero__cap:focus-visible { color: #ff8a95; }
.fr-hero__hint { display: none; }

/* ---- standing still: the logo, the three words each on its place, the sentence and the buttons on the fourth ---- */
html:not(.live) .fr-hero__stage { grid-template-rows: auto repeat(3, minmax(62svh, auto)) auto auto auto; }
html:not(.live) .fr-hero__stage::after { content: ""; grid-area: 2 / 1 / -1 / 2; background: rgba(5, 5, 7, .5); pointer-events: none; }
html:not(.live) .fr-hero__logo { grid-area: 1 / 1; margin: calc(var(--head-h) + clamp(48px, 12vh, 120px)) 0 clamp(48px, 12vh, 120px); }
html:not(.live) .fr-hero__pic { grid-column: 1; }
html:not(.live) .fr-hero__pic:nth-of-type(1), html:not(.live) .fr-hero__k span:nth-of-type(1), html:not(.live) .fr-hero__cap:nth-of-type(1) { grid-row: 2; }
html:not(.live) .fr-hero__pic:nth-of-type(2), html:not(.live) .fr-hero__k span:nth-of-type(2), html:not(.live) .fr-hero__cap:nth-of-type(2) { grid-row: 3; }
html:not(.live) .fr-hero__pic:nth-of-type(3), html:not(.live) .fr-hero__k span:nth-of-type(3), html:not(.live) .fr-hero__cap:nth-of-type(3) { grid-row: 4; }
html:not(.live) .fr-hero__pic:nth-of-type(4) { grid-row: 5 / span 3; } html:not(.live) .fr-hero__cap:nth-of-type(4) { grid-row: 7; }
html:not(.live) .fr-hero__k span { grid-column: 1; z-index: 1; align-self: center; padding: 0 var(--pad); font-size: clamp(2.5rem, 7.4vw, 7rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.15; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
html:not(.live) .fr-hero__k i { display: none; }
html:not(.live) .fr-hero__t { grid-area: 5 / 1; z-index: 1; padding: clamp(72px, 14vh, 140px) var(--pad) 0; }
html:not(.live) .fr-hero__s { grid-area: 6 / 1; z-index: 1; margin-top: 22px; padding: 0 var(--pad); }
html:not(.live) .fr-hero__btns { grid-area: 7 / 1; z-index: 1; margin: clamp(28px, 4vh, 40px) 0 clamp(96px, 17vh, 160px); }
html:not(.live) .fr-hero__cap { grid-column: 1; z-index: 1; align-self: end; justify-self: start; margin: 0 var(--pad) 18px; }

/* ---- with the scroll (front.js sets the custom properties) ---- */
.live .fr-hero { height: 440svh; } /* the stage + 3.4 screens of scroll */
.live .fr-hero__stage { position: sticky; top: 0; box-sizing: border-box; align-content: center; height: 100svh; padding: var(--head-h) var(--pad) clamp(24px, 4vh, 48px); overflow: hidden; }
.live .fr-hero__stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 62% 48% at 50% 52%, rgba(5, 5, 7, .7), rgba(5, 5, 7, .35) 65%, rgba(5, 5, 7, .15)), linear-gradient(rgba(5, 5, 7, .45), rgba(5, 5, 7, 0) 22%, rgba(5, 5, 7, 0) 60%, rgba(5, 5, 7, .8)); pointer-events: none; }
.live .fr-hero__pic { position: absolute; inset: 0; opacity: var(--o, 0); scale: calc(1.06 - .06 * var(--o, 0)); } /* it comes up out of the dark and settles */
/* the logo: behind the loader it is the symbol alone, as large as the cube's and mid-screen; as the loader clears it
   settles into the whole logo (00 -> 01). Scrolling then carries it to the header's (front.js sets transform). */
.live .fr-hero__logo { position: absolute; inset: 0; z-index: 2; margin: auto; transform-origin: 13.33% 50%; clip-path: inset(-20%);
  transition: translate 1.1s .3s var(--ease), scale 1.1s .3s var(--ease), clip-path 1s .55s var(--ease); }
.live:not(.is-ready) .fr-hero__logo { translate: 36.67% 0; scale: var(--s0, 1.6); clip-path: inset(-20% 73.3% -20% -20%); }
.live .head.is-nologo .head__logo { opacity: 0; pointer-events: none; } /* one logo at a time: the header's waits for the large one to arrive */
.live .fr-hero__copy { position: relative; z-index: 1; align-self: center; display: grid; justify-items: center; text-align: center; opacity: calc(1 - var(--out, 0)); } /* --out: home.js, as the lens closes on the scene */
.live .fr-hero__k { display: block; color: #ebe6e6; font-size: var(--fs-body); font-weight: 500; line-height: 1.4; opacity: var(--k, 0); }
.live .fr-hero__k span { display: inline-block; } .live .fr-hero__k i { font-style: normal; white-space: pre; }
.live .fr-hero__t { margin-top: 18px; opacity: var(--t, 0); }
.live .fr-hero__s { margin-top: 22px; }
.live .fr-hero__btns { margin-top: clamp(28px, 4vh, 40px); }
.live .fr-hero__s, .live .fr-hero__btns { opacity: var(--more, 0); translate: 0 calc((1 - var(--more, 0)) * 16px); }
.live .fr-hero__copy:not(.is-more) .fr-hero__btns { pointer-events: none; }
.fr-hero .w { text-shadow: 0 0 calc(var(--g, 0) * .5em) rgba(255, 255, 255, calc(var(--g, 0) * .55)), 0 2px 30px rgba(0, 0, 0, .35); } /* the lamp comes on */
/* the three words, large, one at a time at mid-screen (front.js makes them from the line above the sentence and brings them back to it) */
.fr-hero__reel span { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; white-space: nowrap; font-size: clamp(2.5rem, 7.4vw, 7rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.4;
  opacity: var(--o, 0); text-shadow: 0 0 calc(var(--g, 0) * .5em) rgba(255, 255, 255, calc(var(--g, 0) * .55)), 0 2px 30px rgba(0, 0, 0, .35); }
.live .fr-hero__cap { position: absolute; z-index: 1; left: var(--pad); bottom: clamp(20px, 3vh, 28px); visibility: hidden; opacity: 0; transition: color .25s, opacity .4s; }
.live .fr-hero__cap.is-on { visibility: visible; opacity: calc(1 - var(--out, 0)); }
.live .fr-hero__hint { position: absolute; z-index: 1; left: 50%; bottom: clamp(18px, 4vh, 36px); translate: -50% 0; display: grid; justify-items: center; gap: 10px; margin: 0;
  font: 400 var(--fs-label)/1 var(--f-display); letter-spacing: .24em; color: rgba(255, 255, 255, .72); opacity: calc(1 - var(--go, 0)); } /* --go: gone with the first of the scroll */
.live:not(.is-ready) .fr-hero__hint { visibility: hidden; }
.live.is-ready .fr-hero__hint { animation: fr-in .6s 1.3s backwards; }
@keyframes fr-in { from { opacity: 0; } }
.live .fr-hero__hint::after { content: ""; width: 1px; height: 34px; background: #fff; transform-origin: top; animation: fr-hint 2s var(--ease) infinite; }
@keyframes fr-hint { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
/* front.js never came: the words still show after a while */
.live .fr-hero:not(.is-run) .fr-hero__copy > * { animation: fr-late 0s 8s forwards; }
@keyframes fr-late { to { opacity: 1; translate: none; } }
@media (max-width: 720px) {
  .live .fr-hero { height: 350svh; } /* 2.5 screens of scroll */
  .live .fr-hero__stage::after { background: linear-gradient(rgba(5, 5, 7, .55), rgba(5, 5, 7, .5) 30%, rgba(5, 5, 7, .6) 65%, rgba(5, 5, 7, .9)); }
  .fr-hero__btns .btn { height: 48px; padding: 0 22px; }
  .fr-hero__cap { font-size: var(--fs-small); }
}
