/* Homepage hero and opening splash. Palette tokens and the two site fonts only. */

/* ---------- 1 splash ---------- */
.pre {position:fixed;inset:0;z-index:150;background:var(--ink);display:grid;place-items:center;cursor:pointer;animation:pre-gone 0s 7s forwards;}
.pre.is-open {pointer-events:none;
  -webkit-mask-image:radial-gradient(circle var(--hole, 0px) at 50% 50%, transparent calc(var(--hole, 0px) - 1px), #000 var(--hole, 0px));
          mask-image:radial-gradient(circle var(--hole, 0px) at 50% 50%, transparent calc(var(--hole, 0px) - 1px), #000 var(--hole, 0px));}
.pre__name {display:grid;justify-items:center;text-align:center;text-transform:uppercase;padding-inline:var(--gutter);}
.pre__name > span {grid-area:1 / 1;font-size:min(17vw, 34svh);font-weight:500;line-height:1.05;text-wrap:balance;}
html[lang="ar"] .pre__name > span {font-size:min(18vw, 30svh);}
.pre__line {color:var(--lime);filter:url(#hero-outline);}
.pre__fill {color:var(--lime);}
.pre__n {position:absolute;inset-inline-end:var(--gutter);bottom:24px;margin:0;font:300 clamp(28px, 5vw, 64px)/1 var(--f-display);font-variant-numeric:tabular-nums;color:var(--bone);}
html[lang="ar"] .pre__n {font-family:var(--f-ar);}
@keyframes pre-gone {to {visibility:hidden;opacity:0;}}
.still .pre {display:none;}
@media (prefers-reduced-motion:reduce) {.pre {display:none;}}

/* ---------- 2 hero: phones and tablets, a single column ---------- */
.hero {min-height:100svh;padding-block:76px clamp(32px, 6vh, 64px);}
.hero__stage {position:relative;display:flex;flex-direction:column;align-items:stretch;}
.hero__title {text-transform:uppercase;}
.hero__name {position:relative;z-index:2;pointer-events:none;}
.hero__row {display:flex;flex-direction:column;}
.hero__l {display:block;font-size:18vw;line-height:1.02;white-space:nowrap;}
html[lang="ar"] .hero__title .hero__l {line-height:1.25;}
.hero__l:nth-of-type(even) {align-self:flex-end;text-align:end;}
.hero__l > .mask {display:block;}
.hero__l .line {display:inline-block;font-weight:500;}
.hero__title .hero__sur {color:var(--lime);}
.hero__ink {display:none;}

.hero__fig {position:relative;align-self:center;width:min(88%, 460px);margin-block-start:calc(var(--l1, 18vw) * -.18);border-block-end:1px solid var(--line);}
.hero__fig--ink {display:none;}
.hero__photo {width:100%;height:auto;}
.hero__soon {position:absolute;inset-inline:0;bottom:14%;margin:0;text-align:center;color:var(--bone);}

.hero__intro {display:grid;justify-items:start;gap:14px;margin-block-start:28px;}
.hero__role {margin:0;font-size:clamp(24px, 6vw, 34px);line-height:1.12;text-transform:uppercase;text-wrap:balance;}
.hero__intro .rule {width:52px;height:2px;background:var(--lime);}
.hero__pos {margin:0;max-inline-size:40ch;font-size:17px;line-height:1.5;color:var(--dim);}
.hero__place {margin:28px 0 0;}

@media (min-width:640px) and (max-width:1023px), (min-width:640px) and (max-aspect-ratio:5/4) {
  .hero__stage {display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);column-gap:32px;align-items:start;}
  .hero__name, .hero__fig, .hero__intro, .hero__place {grid-column:1 / -1;}
  .hero__fig {justify-self:center;width:min(70%, 520px);}
}

/* ---------- 2 hero: the wide composition, one screen ---------- */
@media (min-width:1024px) and (min-aspect-ratio:5/4) {
  .hero {height:100svh;min-height:660px;padding-block:72px 0;}
  .hero__stage {display:block;height:100%;}
  .hero__name, .hero__ink {position:absolute;inset-inline:0;top:0;z-index:0;}
  .hero__l {font-size:12vw;}
  .hero__ink {display:block;pointer-events:none;}
  .hero__fig, .hero__fig--ink {position:absolute;display:block;z-index:2;bottom:0;inset-inline-start:calc(46% - var(--fig-w) / 2);width:var(--fig-w);margin:0;border:0;pointer-events:none;}
  .hero__stage {--fig-w:min(40vw, calc((100svh - 72px) * .84 * 1072 / 1336));}
  .hero__photo {display:block;}

  /* spotlight: originals show outside the circle, their twins inside it */
  .hero__name, .hero__fig:not(.hero__fig--ink) {--hole:transparent;--rest:#000;}
  .hero__ink, .hero__fig--ink {--hole:#000;--rest:transparent;visibility:hidden;}
  .hero.is-lit .hero__ink, .hero.is-lit .hero__fig--ink {visibility:visible;}
  .hero.is-lit .hero__name, .hero.is-lit .hero__ink {
    -webkit-mask-image:radial-gradient(circle var(--sr) at var(--sx) var(--sy), var(--hole) calc(100% - 1px), var(--rest) 100%);
            mask-image:radial-gradient(circle var(--sr) at var(--sx) var(--sy), var(--hole) calc(100% - 1px), var(--rest) 100%);}
  /* the portrait boxes are offset inside the stage, so their circle is shifted to match */
  .hero.is-lit .hero__fig {
    -webkit-mask-image:radial-gradient(circle var(--sr) at calc(var(--sx) - var(--fx, 0px)) calc(var(--sy) - var(--fy, 0px)), var(--hole) calc(100% - 1px), var(--rest) 100%);
            mask-image:radial-gradient(circle var(--sr) at calc(var(--sx) - var(--fx, 0px)) calc(var(--sy) - var(--fy, 0px)), var(--hole) calc(100% - 1px), var(--rest) 100%);}
  .hero__ink .line {filter:url(#hero-outline);}
  .hero__fig--ink .hero__photo {filter:url(#hero-duotone);}

  .hero__intro {position:absolute;z-index:3;inset-inline-start:0;bottom:64px;width:clamp(220px, 22vw, 360px);margin:0;gap:clamp(10px, 1.8vh, 18px);}
  .hero__role {font-size:clamp(22px, 2vw, 34px);}
  .hero__pos {font-size:clamp(14px, 1.15vw, 18px);}
  .hero__place {position:absolute;z-index:3;inset-inline-end:0;bottom:64px;margin:0;}
}
