/* Home hero: alternative openings, to compare. /?intro=split | eye | portrait | strips | lamp | wordmark (CSS only;
   wordmark is the default, boot.js) and /?intro=lashmap | focus | letter (GSAP: assets/openings.js and the end of this
   file).
   (boot.js sets html[data-intro]; no value or an unknown one keeps the current intro in site.css).
   Every variant restyles the same server-rendered hero: .hero__main (the LED photo, the page's main image),
   .hero__alona (Alona's portrait), .hero__macro (the eye macro), .hero__me (the stamp ring), .hero__lids (eye) and
   .hero__led (strips). A variant needs the hero photo (.hero.has-photo); without it the hero stays still.
   phi's measured motion: masks and slides 1.6s var(--m-mask), text rises var(--m-y) with a fade in 1.4s var(--m-ease),
   staggers .1/.25/.35s, the header last (logo from x−20, nav from y−20, tools from x+20, 1.4s).
   Hidden states are only the "from" end of CSS animations under html.js, and every animation ends by about 3.5s, so
   nothing waits on a script. Final states are the plain styles (the lids rest open, the glows rest off). */

/* ---------- Shared ---------- */
/* split: the photos come in first and hold for a beat on their own before the headline (the owner wanted to see more of
   them before the text, 24.10.2026); the header arrives as they settle. */
:root[data-intro="split"] { --rise-at: 2.35s; --sub-at: 2.65s; --hdr-at: 2s; }
:root[data-intro="eye"] { --rise-at: 1.55s; --sub-at: 1.9s; --hdr-at: 1.8s; }
:root[data-intro="portrait"] { --rise-at: 1.45s; --sub-at: 1.8s; --hdr-at: 1.7s; }
:root[data-intro="strips"] { --rise-at: 1.05s; --sub-at: 1.45s; --hdr-at: 1.5s; }

[data-intro] .hero.has-photo .hero__sweep { display: none; }
[data-intro]:not([data-intro="split"]) .hero.has-photo .hero__me { display: none; }
[data-intro] .hero.has-photo .hero__main::before,
[data-intro] .hero.has-photo .hero__main::after { content: none; }
[data-intro] .hero.has-photo .hero__media { position: relative; isolation: isolate; }
/* The photo boxes. Each variant places them; the frames (.mk__a > .mk__b) and the zoom layer fill them. */
[data-intro] .hero.has-photo :is(.hero__main, .hero__alona, .hero__macro) {
  position: absolute; inset: auto; overflow: hidden;
  width: auto; height: auto; min-height: 0; max-height: none; aspect-ratio: auto;
  background: transparent; box-shadow: none;
}
[data-intro] .hero.has-photo .hero__main .mk__a { bottom: 0; }
[data-intro] .hero.has-photo .hero__copy { z-index: 3; }

/* The header arrives last. */
.js[data-intro]:not(.gx) .hdr--over .brand { animation: hx-in-start 1.4s var(--m-ease) var(--hdr-at) both; }
.js[data-intro]:not(.gx) .hdr--over .nav { animation: hx-in-top 1.4s var(--m-ease) calc(var(--hdr-at) + .1s) both; }
.js[data-intro]:not(.gx) .hdr--over .hdr__tools { animation: hx-in-end 1.4s var(--m-ease) calc(var(--hdr-at) + .2s) both; }

/* The headline rises line by line (home.js splits it and sets --lag, the seconds already gone by then). If the
   split comes too late, the whole headline rises at the same moment instead. */
.js[data-intro]:not(.gx) .hero.has-photo .hero__title:not(.is-split) { animation: hx-rise 1.4s var(--m-ease) var(--rise-at) both; }
.js[data-intro]:not(.gx) .hero.has-photo .hero__title.is-split .ln { overflow: visible; }
.js[data-intro]:not(.gx) .hero.has-photo .hero__title.is-split .ln > span {
  animation: hx-rise 1.4s var(--m-ease) both;
  animation-delay: calc(var(--rise-at) - var(--lag, 0s) + var(--i, 0) * .1s);
}
.js[data-intro]:not(.gx) .hero.has-photo .hero__sub { animation: hero-fade 1.2s var(--m-ease) var(--sub-at) both; }
.js[data-intro]:not(.gx) .hero.has-photo .hero__cta { animation: hero-fade 1.2s var(--m-ease) calc(var(--sub-at) + .1s) both; }

@keyframes hx-rise { from { opacity: 0; transform: translate3d(0, var(--m-y), 0); } to { opacity: 1; transform: none; } }
@keyframes hx-in-start { from { opacity: 0; transform: translate3d(calc(-20px * var(--dirx)), 0, 0); } }
@keyframes hx-in-end { from { opacity: 0; transform: translate3d(calc(20px * var(--dirx)), 0, 0); } }
@keyframes hx-in-top { from { opacity: 0; transform: translate3d(0, -20px, 0); } }
@keyframes hx-from-start { from { transform: translate3d(calc(-100% * var(--dirx)), 0, 0); } }
@keyframes hx-from-end { from { transform: translate3d(calc(100% * var(--dirx)), 0, 0); } }
@keyframes hx-from-top { from { transform: translate3d(0, -100%, 0); } }
@keyframes hx-from-below { from { transform: translate3d(0, 100%, 0); } }

/* ---------- split: phi's X ----------
   A dark screen with the stamp ring in the middle; the ring settles where the panels will cross, then three
   diagonal-cut panels slide in (the LED photo from the start side, Alona from the end side, the macro from the top)
   while each photo settles from 1.6x. Desktop: the headline is centred over the photos; scrolling opens the cut
   wider (home.js writes --o, 0→1) while the photos drift. */
[data-intro="split"] .hero.has-photo {
  --o: 0;
  /* The two photos meet on one diagonal line (the owner asked for no gap between them, 23.10.2026). It passes through
     the stamp at (50%, --cy): --lt and --lb are where it meets the top and bottom, as a share of the hero's width.
     Each panel is 62% wide (the left one from 0, the right one from 38%), so the line always falls inside both;
     scrolling (--o) opens the cut a little, showing the LED light behind. */
  --cy: 50%;
  --lt: calc(50% + var(--cy) * .16);
  --lb: calc(50% - (100% - var(--cy)) * .16);
  --clip-l: polygon(0 0, calc((var(--lt) - var(--o) * 8%) / .62) 0, calc((var(--lb) - var(--o) * 8%) / .62) 100%, 0 100%);
  --clip-r: polygon(calc((var(--lt) + var(--o) * 8% - 38%) / .62) 0, 100% 0, 100% 100%, calc((var(--lb) + var(--o) * 8% - 38%) / .62) 100%);
}
[data-intro="split"] .hero.has-photo .hero__media { height: clamp(400px, 66svh, 640px); overflow: hidden; background: var(--ink); }
[data-intro="split"] .hero.has-photo :is(.hero__main, .hero__alona) { top: 0; bottom: 0; width: 62%; background: var(--ink-2); }
[data-intro="split"] .hero.has-photo .hero__main { inset-inline-start: 0; clip-path: var(--clip-l); }
[data-intro="split"] .hero.has-photo .hero__alona { display: block; inset-inline-end: 0; clip-path: var(--clip-r); }
[dir="rtl"][data-intro="split"] .hero.has-photo .hero__main { clip-path: var(--clip-r); }
[dir="rtl"][data-intro="split"] .hero.has-photo .hero__alona { clip-path: var(--clip-l); }
[data-intro="split"] .hero.has-photo .hero__macro { display: block; z-index: -1; top: 0; bottom: 0; left: 22%; right: 22%; background: var(--ink-2); }
/* Alona's face away from the diagonal edge. */
[data-intro="split"] .hero.has-photo .hero__alona img { object-position: calc(50% - 10% * var(--dirx)) 50%; }
[data-intro="split"] .hero.has-photo .hero__main img { object-position: 58% 50%; }
[data-intro="split"] .hero.has-photo .hero__media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), .62), rgba(var(--bg-rgb), 0) calc(var(--hdr-h) + 64px)),
    linear-gradient(0deg, rgb(var(--bg-rgb)) 0, rgba(var(--bg-rgb), .5) 6%, rgba(var(--bg-rgb), 0) 16%);
}
/* The stamp: the ring around a lit LED dot, centred where the panels cross. */
[data-intro="split"] .hero.has-photo .hero__me {
  --ss: 1.75; --sy: calc(50svh - clamp(400px, 66svh, 640px) * .5);
  z-index: 2; inset: auto; top: var(--cy); left: 50%; width: 66px; margin: -33px 0 0 -33px;
}
[data-intro="split"] .hero.has-photo .hero__face { background: rgba(19, 20, 37, .5); }
[data-intro="split"] .hero.has-photo .hero__face > img { display: none; }
/* The middle of the cut is too narrow for a photo to read (the owner found the sliced photo odd, 23.10.2026): it's
   LED light instead, and the stamp's circle shows a small eye (the collage_4 macro). Only split shows it. */
.hero__stamp { display: none; }
[data-intro="split"] .hero.has-photo .hero__macro { display: none; }
[data-intro="split"] .hero.has-photo .hero__media {
  background:
    radial-gradient(60% 45% at 50% var(--cy), rgba(201, 210, 255, .55), rgba(74, 79, 209, .35) 45%, rgba(19, 20, 37, 0) 80%),
    linear-gradient(180deg, #1c1d40, var(--ink));
}
[data-intro="split"] .hero.has-photo .hero__stamp.has-photo {
  display: block; position: absolute; inset: 0; overflow: hidden; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(216, 194, 157, .45);
}
[data-intro="split"] .hero.has-photo .hero__stamp img { width: 100%; height: 100%; object-fit: cover; }
[data-intro="split"] .hero.has-photo .hero__me:has(.hero__stamp.has-photo) .hero__dot { display: none; }
[data-intro="split"] .hero.has-photo .hero__dot {
  display: block; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--led); box-shadow: 0 0 14px 4px rgba(201, 210, 255, .6), 0 0 40px 10px rgba(142, 155, 255, .25);
}
[data-intro="split"] .hero.has-photo .hero__copy { margin-top: -36px; text-align: center; }
[data-intro="split"] .hero.has-photo :is(.hero__title, .hero__sub) { margin-inline: auto; }
[data-intro="split"] .hero.has-photo .hero__cta { justify-content: center; }

.js[data-intro="split"] .hero.has-photo .hero__me { animation: hx-stamp 1.7s both; }
/* The parallax layers slide in inside their still frames (the individual translate property; GSAP's parallax owns
   transform, and starts only after the opening, home.js), not the panels or the frames: Chrome counted a moving
   clip-pathed panel as a layout shift of everything in it (CLS about 0.5), and a moving frame as one of the
   transformed layer inside it (0.22 at 1440). The panels are transparent, so their cut shows only as the photo
   comes in. */
[data-intro="split"] .hero.has-photo :is(.hero__main, .hero__alona, .hero__macro) { background: transparent; }
.js[data-intro="split"] .hero.has-photo .hero__main .hero__par { animation: hx-par-start 1.6s var(--m-mask) .5s both; }
.js[data-intro="split"] .hero.has-photo .hero__alona .hero__par { animation: hx-par-end 1.6s var(--m-mask) .62s both; }
.js[data-intro="split"] .hero.has-photo .hero__macro .hero__par { animation: hx-par-top 1.6s var(--m-mask) .7s both; }
@keyframes hx-par-start { from { translate: calc(-100% * var(--dirx)) 0; } to { translate: none; } }
@keyframes hx-par-end { from { translate: calc(100% * var(--dirx)) 0; } to { translate: none; } }
@keyframes hx-par-top { from { translate: 0 -100%; } to { translate: none; } }
.js[data-intro="split"] .hero.has-photo .hero__main .hero__img { animation: mk-zoom 1.6s var(--m-mask) .5s both; }
.js[data-intro="split"] .hero.has-photo .hero__alona .hero__img { animation: mk-zoom 1.6s var(--m-mask) .62s both; }
.js[data-intro="split"] .hero.has-photo .hero__macro .hero__img { animation: mk-zoom 1.6s var(--m-mask) .7s both; }
/* The headline's ground: a veil of the page colour behind the copy (over the photos' lower part), from fully clear above
   to solid where the text starts, so the text reads on any part of the photos (AA). It fades in with the headline, so
   during the hold the photos show whole. As wide as the hero (which clips it), whatever the copy's own width. */
[data-intro="split"] .hero.has-photo .hero__copy::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: calc(-1 * var(--veil)); bottom: 0; inset-inline: calc(50% - 50vw);
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0), rgba(var(--bg-rgb), .6) calc(var(--veil) * .55), rgba(var(--bg-rgb), .94) var(--veil), rgb(var(--bg-rgb)) calc(var(--veil) + 24px));
}
[data-intro="split"] .hero.has-photo { --veil: 96px; }
.js[data-intro="split"] .hero.has-photo .hero__copy::before { animation: hx-veil 1s var(--m-ease) calc(var(--rise-at) - .4s) both; }
@keyframes hx-veil { from { opacity: 0; } to { opacity: 1; } }
@keyframes hx-stamp {
  0% { opacity: 0; transform: translate3d(0, var(--sy), 0) scale(calc(var(--ss) * .82)); animation-timing-function: var(--m-ease); }
  26% { opacity: 1; transform: translate3d(0, var(--sy), 0) scale(var(--ss)); animation-timing-function: linear; }
  33% { opacity: 1; transform: translate3d(0, var(--sy), 0) scale(var(--ss)); animation-timing-function: var(--m-mask); }
  100% { opacity: 1; transform: none; }
}

@media (min-width: 960px) {
  [data-intro="split"] .hero.has-photo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "x"; --cy: 38%; }
  [data-intro="split"] .hero.has-photo .hero__media { grid-area: x; height: auto; min-height: 640px; }
  /* Only the edges fade for good (under the header, and into the page at the bottom): the headline brings its own veil
     (above), so during the hold the photos show whole. */
  [data-intro="split"] .hero.has-photo { --veil: 72px; }
  [data-intro="split"] .hero.has-photo .hero__media::after {
    background:
      linear-gradient(180deg, rgba(var(--bg-rgb), .78), rgba(var(--bg-rgb), .3) calc(var(--hdr-h) + 70px), rgba(var(--bg-rgb), 0) calc(var(--hdr-h) + 150px)),
      linear-gradient(0deg, rgb(var(--bg-rgb)) 0, rgba(var(--bg-rgb), .5) 6%, rgba(var(--bg-rgb), 0) 16%);
  }
  [data-intro="split"] .hero.has-photo .hero__me { --ss: 1.6; --sy: calc(50svh - min(100svh, 1000px) * .38); width: 92px; margin: -46px 0 0 -46px; }
  [data-intro="split"] .hero.has-photo .hero__copy {
    grid-area: x; align-self: end; justify-self: center; width: 100%; max-width: 68rem;
    margin: 0; padding: 0 var(--gutter) clamp(28px, 4svh, 44px); /* low, so the photos show more above it */
  }
  [data-intro="split"] .hero.has-photo .hero__title { max-width: 21ch; --tshadow: 0 2px 28px rgba(var(--bg-rgb), .55); }
  [data-intro="split"] .hero.has-photo .hero__sub { margin-top: 14px; }
  [data-intro="split"] .hero.has-photo .hero__cta { margin-top: 24px; }
}
/* Short desktop screens: the crossing (and the ring) a little higher, clear of the headline. */
@media (min-width: 960px) and (max-height: 820px) {
  [data-intro="split"] .hero.has-photo { --cy: 32%; }
  [data-intro="split"] .hero.has-photo .hero__me { --sy: calc(50svh - min(100svh, 1000px) * .32); }
}

/* ---------- eye: the lids open ----------
   Two dark lids meet in the middle. A thin LED line lights along the seam, then the lids part (their curved edges
   open an almond from the centre, the edges glowing) and the full-bleed LED photo settles from 1.15x. The headline
   sits over the photo's lower part. */
[data-intro="eye"] .hero.has-photo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "x"; min-height: max(560px, calc(100svh - var(--mbar-h))); }
[data-intro="eye"] .hero.has-photo .hero__media { grid-area: x; overflow: hidden; background: var(--ink); }
[data-intro="eye"] .hero.has-photo .hero__main { inset: 0 0 1px; } /* 1px short: a photo exactly the screen's size isn't counted as LCP */
[data-intro="eye"] .hero.has-photo :is(.hero__alona, .hero__macro) { display: none; }
[data-intro="eye"] .hero.has-photo .hero__media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(19, 20, 37, .6), rgba(19, 20, 37, 0) calc(var(--hdr-h) + 64px)),
    linear-gradient(0deg, var(--ink) 0, rgba(19, 20, 37, .9) 30%, rgba(19, 20, 37, .62) 50%, rgba(19, 20, 37, 0) 74%);
}
[data-intro="eye"] .hero.has-photo .hero__copy { grid-area: x; align-self: end; margin: 0; padding: calc(var(--hdr-h) + 24px) var(--gutter) 36px; }
[data-intro="eye"] .hero.has-photo .hero__title { --tshadow: 0 2px 26px rgba(19, 20, 37, .88); }
[data-intro="eye"] .hero.has-photo .hero__sub { color: rgba(239, 233, 223, .82); }

[data-intro="eye"] .hero.has-photo .hero__lids { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* Each lid covers 60% of the height on phones (70% on desktop); its edge curves 14% of that into it (25%: the
   .k-m / .k-d paths), so closed they overlap in the middle and moving apart opens an almond from the centre out.
   The top lid is painted last, over the bottom one. */
.lid { position: absolute; inset-inline: 0; height: 60%; visibility: hidden; }
.lid .k-d { display: none; }
@media (min-width: 960px) {
  .lid { height: 70%; }
  .lid .k-d { display: inline; }
  .lid .k-m { display: none; }
}
.lid--t { top: 0; transform: translate3d(0, -101%, 0); }
.lid--b { bottom: 0; transform: translate3d(0, 101%, 0); }
.lid svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lid__skin { fill: var(--ink); }
.lid__glow { opacity: 0; }
.lid__glow path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.lid__glow .g1 { stroke: rgba(160, 172, 255, .26); stroke-width: 16px; }
.lid__glow .g2 { stroke: #e9edff; stroke-width: 1.5px; }
.lid__seam {
  position: absolute; top: 50%; left: 6%; right: 6%; height: 2px; margin-top: -1px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, #eef1ff 32%, #fff 50%, #eef1ff 68%, transparent);
  box-shadow: 0 0 18px 3px rgba(201, 210, 255, .45);
}
.js[data-intro="eye"] .hero.has-photo .lid--t { animation: hx-lid 1.4s var(--m-mask) .6s both; }
.js[data-intro="eye"] .hero.has-photo .lid--b { animation: hx-lid 1.4s var(--m-mask) .6s both; }
.js[data-intro="eye"] .hero.has-photo .lid__glow { animation: hx-glow 1.5s linear .62s both; }
.js[data-intro="eye"] .hero.has-photo .lid__seam { animation: hx-seam 1.1s var(--m-ease) .1s both; }
.js[data-intro="eye"] .hero.has-photo .hero__main .hero__img { animation: hx-settle 2.6s var(--m-ease) .4s both; }
@keyframes hx-lid { from { transform: none; visibility: visible; } }
@keyframes hx-glow { 0% { opacity: 0; } 22%, 55% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hx-seam { 0% { opacity: 0; transform: scaleX(0); } 30% { opacity: 1; } 62% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes hx-settle { from { transform: scale(1.15); } }

@media (min-width: 960px) {
  [data-intro="eye"] .hero.has-photo { min-height: min(100svh, 1000px); }
  [data-intro="eye"] .hero.has-photo .hero__media { min-height: 640px; }
  [data-intro="eye"] .hero.has-photo .hero__media::after {
    background:
      linear-gradient(180deg, rgba(19, 20, 37, .74), rgba(19, 20, 37, .25) calc(var(--hdr-h) + 70px), rgba(19, 20, 37, 0) calc(var(--hdr-h) + 150px)),
      linear-gradient(var(--hx-side, 90deg), rgba(19, 20, 37, .82), rgba(19, 20, 37, .35) 42%, rgba(19, 20, 37, 0) 66%),
      linear-gradient(0deg, rgba(19, 20, 37, .92) 0, rgba(19, 20, 37, .4) 34%, rgba(19, 20, 37, 0) 60%);
  }
  [dir="rtl"][data-intro="eye"] .hero.has-photo .hero__media::after { --hx-side: 270deg; }
  [data-intro="eye"] .hero.has-photo .hero__copy {
    align-self: end; padding-block: calc(var(--hdr-h) + 32px) clamp(56px, 10svh, 104px);
    padding-inline-start: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    padding-inline-end: var(--gutter);
  }
}

/* ---------- portrait: Alona first ----------
   Alona's portrait appears small in the middle of the screen, then grows (1.6s) into a tall arch while the LED
   photo and the macro uncover themselves from the two sides, each settling from 1.6x. Phones: the arch above the
   headline, with the LED photo beside it. */
[data-intro="portrait"] .hero.has-photo .hero__media { height: clamp(440px, 66svh, 640px); }
[data-intro="portrait"] .hero.has-photo .hero__alona {
  --px: calc((var(--gutter) - 20vw) * var(--dirx));
  --py: calc(50svh - (var(--hdr-h) + 12px + clamp(440px, 66svh, 640px)) / 2);
  display: block; z-index: 2; top: calc(var(--hdr-h) + 12px); bottom: 0; inset-inline-end: var(--gutter); width: 60%;
  border-radius: 999px 999px 0 0; background: var(--ink-2); box-shadow: 0 0 0 8px var(--ink);
}
[data-intro="portrait"] .hero.has-photo .hero__main { z-index: 1; inset-inline-start: 0; top: 30%; bottom: 9%; width: 46%; }
[data-intro="portrait"] .hero.has-photo .hero__main img { object-position: 66% 50%; }
[data-intro="portrait"] .hero.has-photo .hero__macro { display: none; }
[data-intro="portrait"] .hero.has-photo .hero__copy { margin-top: 30px; }

.js[data-intro="portrait"] .hero.has-photo .hero__alona { animation: hx-arch 2s both; }
.js[data-intro="portrait"] .hero.has-photo .hero__alona .hero__img { animation: hx-unzoom 1.6s var(--m-mask) .4s both; }
.js[data-intro="portrait"] .hero.has-photo .hero__main .mk__a { animation: mk-x 1.6s var(--m-mask) .65s both; }
.js[data-intro="portrait"] .hero.has-photo .hero__main .mk__b { animation: mk-x-in 1.6s var(--m-mask) .65s both; }
.js[data-intro="portrait"] .hero.has-photo .hero__main .hero__img { animation: mk-zoom 1.6s var(--m-mask) .65s both; }
.js[data-intro="portrait"] .hero.has-photo .hero__macro .mk__a { animation: mk-x-in 1.6s var(--m-mask) .75s both; }
.js[data-intro="portrait"] .hero.has-photo .hero__macro .mk__b { animation: mk-x 1.6s var(--m-mask) .75s both; }
.js[data-intro="portrait"] .hero.has-photo .hero__macro .hero__img { animation: mk-zoom 1.6s var(--m-mask) .75s both; }
@keyframes hx-arch {
  0% { opacity: 0; transform: translate3d(var(--px), var(--py), 0) scale(.5); animation-timing-function: var(--m-ease); }
  20% { opacity: 1; transform: translate3d(var(--px), var(--py), 0) scale(.55); animation-timing-function: var(--m-mask); }
  100% { opacity: 1; transform: none; }
}
@keyframes hx-unzoom { from { transform: scale(1.3); } }

@media (min-width: 960px) {
  [data-intro="portrait"] .hero.has-photo .hero__media { height: auto; min-height: 640px; }
  [data-intro="portrait"] .hero.has-photo .hero__alona {
    --px: calc(-25.5vw * var(--dirx)); --py: 0px;
    top: calc(var(--hdr-h) + 36px); bottom: 56px; inset-inline-start: 23%; inset-inline-end: auto; width: 50%;
    box-shadow: 0 0 0 12px var(--ink);
  }
  [data-intro="portrait"] .hero.has-photo .hero__main { top: 36%; bottom: 13%; width: 30%; }
  [data-intro="portrait"] .hero.has-photo .hero__macro { display: block; inset-inline-end: 0; top: 17%; height: 36%; width: 29%; }
  [data-intro="portrait"] .hero.has-photo .hero__copy { padding-inline-end: clamp(40px, 4vw, 72px); }
}

/* ---------- strips: three photos rise ----------
   Three tall strips (the macro, the LED photo, Alona) rise out of one base line, 0.15s apart, each settling from
   1.6x; their tops follow a lash map (short, long, middle). One thin LED line then passes across them. */
[data-intro="strips"] .hero.has-photo .hero__media {
  --gap: 8px; --w: calc((100% - 2 * var(--gutter) - 2 * var(--gap)) / 3);
  height: clamp(380px, 60svh, 600px);
}
[data-intro="strips"] .hero.has-photo :is(.hero__main, .hero__alona, .hero__macro) { display: block; bottom: 0; width: var(--w); }
[data-intro="strips"] .hero.has-photo .hero__macro { inset-inline-start: var(--gutter); top: 38%; }
[data-intro="strips"] .hero.has-photo .hero__main { inset-inline-start: calc(var(--gutter) + var(--w) + var(--gap)); top: calc(var(--hdr-h) + 8px); }
[data-intro="strips"] .hero.has-photo .hero__alona { inset-inline-start: calc(var(--gutter) + 2 * (var(--w) + var(--gap))); top: 26%; }
[data-intro="strips"] .hero.has-photo .hero__main img { object-position: 68% 50%; }
[data-intro="strips"] .hero.has-photo .hero__copy { margin-top: 30px; }
[data-intro="strips"] .hero.has-photo .hero__led {
  display: block; position: absolute; z-index: 2; top: var(--hdr-h); bottom: 0; inset-inline: 0;
  pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent calc(50% - 56px), rgba(160, 172, 255, .2) calc(50% - 14px), rgba(238, 241, 255, .95) calc(50% - 1px), rgba(238, 241, 255, .95) calc(50% + 1px), rgba(160, 172, 255, .2) calc(50% + 14px), transparent calc(50% + 56px));
}
.js[data-intro="strips"] .hero.has-photo .hero__macro .mk__a { animation: hx-from-below 1.6s var(--m-mask) .15s both; }
.js[data-intro="strips"] .hero.has-photo .hero__main .mk__a { animation: hx-from-below 1.6s var(--m-mask) .3s both; }
.js[data-intro="strips"] .hero.has-photo .hero__alona .mk__a { animation: hx-from-below 1.6s var(--m-mask) .45s both; }
.js[data-intro="strips"] .hero.has-photo .hero__macro .hero__img { animation: mk-zoom 1.6s var(--m-mask) .15s both; }
.js[data-intro="strips"] .hero.has-photo .hero__main .hero__img { animation: mk-zoom 1.6s var(--m-mask) .3s both; }
.js[data-intro="strips"] .hero.has-photo .hero__alona .hero__img { animation: mk-zoom 1.6s var(--m-mask) .45s both; }
.js[data-intro="strips"] .hero.has-photo .hero__led { animation: hx-led 1.5s var(--ease-io) 1.5s both; }
@keyframes hx-led {
  0% { opacity: 0; transform: translate3d(calc(-50% * var(--dirx)), 0, 0); }
  12%, 84% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(calc(50% * var(--dirx)), 0, 0); }
}

@media (min-width: 960px) {
  [data-intro="strips"] .hero.has-photo .hero__media {
    --gap: clamp(12px, 1.3vw, 20px); --w: calc((100% - var(--gutter) - 2 * var(--gap)) / 3);
    height: auto; min-height: 640px;
  }
  [data-intro="strips"] .hero.has-photo :is(.hero__main, .hero__alona, .hero__macro) { bottom: 9%; }
  [data-intro="strips"] .hero.has-photo .hero__macro { inset-inline-start: 0; top: 34%; }
  [data-intro="strips"] .hero.has-photo .hero__main { inset-inline-start: calc(var(--w) + var(--gap)); top: calc(var(--hdr-h) + 28px); }
  [data-intro="strips"] .hero.has-photo .hero__alona { inset-inline-start: calc(2 * (var(--w) + var(--gap))); top: 22%; }
  [data-intro="strips"] .hero.has-photo .hero__led { bottom: 6%; inset-inline-end: var(--gutter); }
  [data-intro="strips"] .hero.has-photo .hero__copy { padding-inline-end: clamp(40px, 4vw, 72px); }
}

/* =====================================================================================================================
   GSAP openings: /?intro=lashmap | focus | letter (assets/openings.js runs the timelines). The lamp and wordmark
   openings below share their full-bleed layout and overlay markup but are pure CSS (no html.gx).
   boot.js marks them html.gx; openings.js adds .gx-on when a timeline starts and .gx-end when it's done (or at once
   when it can't run). The rules below are each opening's first frame, so it starts with the first paint, and its
   final layout. If openings.js never starts, a failsafe (gx-show / gx-hide) shows everything at 3.5s. Nothing here
   hides anything without html.js. The photos stay painted under ink overlays rather than hidden, so the page's main
   image is on screen from the first paint (LCP).
   ===================================================================================================================== */
@keyframes gx-show { to { opacity: 1; transform: none; } }
@keyframes gx-hide { to { opacity: 0; visibility: hidden; } }

/* What waits for the timeline: the headline, its line and buttons, and the header. (The phone bar isn't part of the
   opening: on the home page it waits below the screen until the hero's buttons scroll away, site.css .mbar--hero.) */
.js.gx:not(.gx-end) .hero.has-photo :is(.hero__title, .hero__sub, .hero__cta) { opacity: 0; }
.js.gx:not(.gx-end):has(.hero.has-photo) .hdr--over :is(.brand, .nav, .hdr__tools) { opacity: 0; }
/* While an opening runs, the page below the hero isn't painted (it's below the fold; scrolling ends the opening at
   once, openings.js): each animated frame then re-layers only the hero, which keeps a 4x-slow phone near 46fps
   instead of 34. Layout is untouched, so nothing moves when it comes back. The selectors name main's other children
   by class (not main > :not(.hero)): a :not() there makes every class change on <html> (gx-on, gx-end) restyle the
   whole page, about 0.1s on a 4x-slow phone each time. */
.js.gx:not(.gx-end):has(.hero.has-photo) :is(main > .sec, main > .marquee, .ftr) { visibility: hidden; }
.js.gx:not(.gx-on):not(.gx-end):has(.hero.has-photo) :is(main > .sec, main > .marquee, .ftr) { animation: gx-visible 0s 3.5s forwards; }
@keyframes gx-visible { to { visibility: visible; } }
/* Phones: the strip under the hero stays plain ink until the opening is over (the marquee waits under it). */
.js.gx:not(.gx-end) .hero.has-photo + .marquee { opacity: 0; }
.js.gx:not(.gx-on):not(.gx-end) .hero.has-photo + .marquee { animation: gx-show 0s 3.5s forwards; }
.js.gx:not(.gx-on):not(.gx-end) .hero.has-photo :is(.hero__title, .hero__sub, .hero__cta),
.js.gx:not(.gx-on):not(.gx-end):has(.hero.has-photo) :is(.hdr--over .brand, .hdr--over .nav, .hdr--over .hdr__tools) {
  animation: gx-show 0s 3.5s forwards;
}
/* Headline line masks (motion.js splitLines): room above and below the line, so Hebrew and Cyrillic descenders and
   accents aren't cut. */
:is(.gx, [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo .hero__title .ln { padding-block: .2em; margin-block: -.2em; }
/* A flex column while split: the lines' negative margins don't collapse, so the split headline is exactly as tall as
   the plain one and nothing below it moves when it comes back. */
:is(.gx, [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo .hero__title[data-m-split] { display: flex; flex-direction: column; }

/* The overlays (.hero__gx, aria-hidden): only the current opening's, only until it ends. Each is its own stacking
   layer over the photo, inside the media's isolated group (the letter knockout blends with the photo). */
.hero__gx, .hero__gx > * { display: none; }
.js.gx:not(.gx-end) .hero.has-photo .hero__gx { display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__gx > * { position: absolute; z-index: 2; }
.js.gx:not(.gx-on):not(.gx-end) .hero.has-photo .hero__gx > * { animation: gx-hide 0s 3.5s forwards; }
.js[data-intro="lashmap"]:not(.gx-end) .hero.has-photo :is(.gx-veil, .gx-map),
.js[data-intro="focus"]:not(.gx-end) .hero.has-photo .gx-veil { display: block; }
.js[data-intro="letter"]:not(.gx-end) .hero.has-photo :is(.gx-knock, .gx-knockline) { display: grid; }
.gx-veil { inset: 0; background: var(--ink); opacity: .84; }
/* Everything that fades or moves during an opening gets its own layer for that time only (the overlays are gone at
   the end), so opacity fades don't repaint the screen each frame on a slow phone. */
.js.gx:not(.gx-end) .hero.has-photo :is(.hero__gx > *, .gx-lamp__bar, .gx-lamp__flare, .gx-map__n, .hero__sub, .hero__cta) { will-change: transform, opacity; }

/* ---------- One full-bleed photo with the headline over it (lashmap, letter, and the CSS lamp and wordmark) ---------- */
:is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "x"; min-height: max(560px, calc(100svh - var(--mbar-h))); }
:is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo .hero__media { grid-area: x; overflow: hidden; background: var(--ink); }
/* 1px short of the bottom (ink there anyway): Chrome doesn't count an image exactly the size of the screen as the
   page's main image (LCP), and on desktop this photo would be exactly the screen. */
:is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo .hero__main { inset: 0 0 1px; }
:is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo :is(.hero__alona, .hero__macro) { display: none; }
:is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo .hero__media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(19, 20, 37, .6), rgba(19, 20, 37, 0) calc(var(--hdr-h) + 64px)),
    linear-gradient(0deg, var(--ink) 0, rgba(19, 20, 37, .9) 30%, rgba(19, 20, 37, .62) 50%, rgba(19, 20, 37, 0) 74%);
}
/* The top padding keeps the headline below the header when large text makes the copy taller than the screen. */
:is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo .hero__copy { grid-area: x; align-self: end; margin: 0; padding: calc(var(--hdr-h) + 24px) var(--gutter) 36px; }
:is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo .hero__title { --tshadow: 0 2px 26px rgba(19, 20, 37, .88); }
:is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo .hero__sub { color: rgba(239, 233, 223, .84); }
@media (min-width: 960px) {
  :is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo { min-height: min(100svh, 1000px); }
  :is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo .hero__media { min-height: 640px; }
  :is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo .hero__media::after {
    background:
      linear-gradient(180deg, rgba(19, 20, 37, .74), rgba(19, 20, 37, .25) calc(var(--hdr-h) + 70px), rgba(19, 20, 37, 0) calc(var(--hdr-h) + 150px)),
      linear-gradient(var(--gx-side, 90deg), rgba(19, 20, 37, .9), rgba(19, 20, 37, .78) 30%, rgba(19, 20, 37, .5) 52%, rgba(19, 20, 37, 0) 78%),
      linear-gradient(0deg, rgba(19, 20, 37, .92) 0, rgba(19, 20, 37, .4) 34%, rgba(19, 20, 37, 0) 60%);
  }
  [dir="rtl"]:is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo .hero__media::after { --gx-side: 270deg; }
  :is(.gx:not([data-intro="focus"]), [data-intro="lamp"], [data-intro="wordmark"]) .hero.has-photo .hero__copy {
    align-self: end; padding-block: calc(var(--hdr-h) + 32px) clamp(56px, 10svh, 104px);
    padding-inline-start: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
    padding-inline-end: var(--gutter);
  }
}

/* ---------- lashmap: the lash map ----------
   A gold hairline arc (the lash line) draws from the inner corner (the start side: it's mirrored in Hebrew), five
   lashes grow along it as their lengths tick in, 8 to 12, then the map flies at the viewer and fades while the veil
   lifts off the LED photo. The paths have pathLength 1, so the dash values are fractions. */
.gx-map { left: 50%; top: 31%; width: min(86vw, 640px); aspect-ratio: 400 / 170; translate: -50% -50%; }
@media (min-width: 960px) { .gx-map { top: 29%; } }
.gx-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
[dir="rtl"] .gx-map__svg { transform: scaleX(-1); }
.gx-map__svg path { fill: none; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.gx-map__line { stroke: var(--gold); stroke-width: 1.15; }
.gx-map__lash { stroke: var(--gold-soft); stroke-width: .95; }
.gx-map__n {
  position: absolute; inset-inline-start: var(--x); top: var(--y); translate: calc(-50% * var(--dirx)) -50%;
  font-family: var(--f-num); font-size: clamp(1rem, .82rem + .7vw, 1.25rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; color: var(--gold-soft); opacity: 0;
}
.js[data-intro="lashmap"]:not(.gx-end) .hero.has-photo .hero__main .hero__img { transform: scale(1.12); }

/* ---------- lamp: the LED lamp passes (pure CSS, from the first paint) ----------
   On black, a cool-white bar of LED light sweeps from the start side across the screen. The black is one layer that
   slides away with the bar on its leading edge, so the photo is uncovered right behind the light, on the same curve;
   a soft flare travels with the bar and peaks as it passes the middle. Then the headline rises line by line through
   its masks (home.js splits it at the browser's own line breaks; when that comes too late it rises whole), the line
   under it and the buttons follow, the header arrives last, and one pass of light crosses the headline (core.js).
   Every beat is a CSS animation that starts with the first paint, so a slow phone never waits on a script, and only
   transform and opacity move (the compositor runs them). --lamp-k (boot.js) plays the whole opening faster when the
   first paint comes late, so the headline is in by about 3s even then. The values are those of the earlier GSAP
   version: expo.out = cubic-bezier(.16, 1, .3, 1), power2.out/in = the cubic curves below, the mask curve --m-mask. */
:root[data-intro="lamp"] { --lk: var(--lamp-k, 1); --lamp-out: cubic-bezier(.16, 1, .3, 1); --lamp-fade: cubic-bezier(.33, 1, .68, 1); }
.gx-lamp { inset: 0; background: #07080f; }
.gx-lamp__bar {
  position: absolute; top: 0; bottom: 0; inset-inline-start: -90px; width: 180px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(150, 164, 255, .1) 28%, rgba(206, 214, 255, .36) 44%, rgba(246, 248, 255, .96) 49.4%, #fff 50%, rgba(246, 248, 255, .96) 50.6%, rgba(206, 214, 255, .36) 56%, rgba(150, 164, 255, .1) 72%, transparent);
}
.gx-lamp__flare {
  position: absolute; top: 50%; inset-inline-start: 0; width: 110vmin; height: 150vmin; translate: calc(-50% * var(--dirx)) -50%;
  background: radial-gradient(closest-side, rgba(232, 236, 255, .42), rgba(170, 182, 255, .14) 42%, transparent 72%); opacity: 0;
}
.js[data-intro="lamp"] .hero.has-photo .hero__gx { display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* The bar sits on the layer's edge, so half of it is still on screen when the sweep ends: the layer fades out then. */
.js[data-intro="lamp"] .hero.has-photo .gx-lamp {
  display: block;
  animation: lamp-pass calc(1.5s * var(--lk)) var(--m-mask) calc(.15s * var(--lk)) both, lamp-out calc(.2s * var(--lk)) linear calc(1.55s * var(--lk)) both;
}
.js[data-intro="lamp"] .hero.has-photo .gx-lamp__bar { animation: lamp-fade calc(.25s * var(--lk)) var(--lamp-fade) calc(.15s * var(--lk)) both; }
.js[data-intro="lamp"] .hero.has-photo .gx-lamp__flare { animation: lamp-flare calc(.65s * var(--lk)) linear calc(.62s * var(--lk)) both; }
.js[data-intro="lamp"] .hero.has-photo .hero__main .hero__img { animation: lamp-settle calc(1.8s * var(--lk)) var(--lamp-out) calc(.15s * var(--lk)) both; }
/* The headline, its line, the buttons and the header (these override the shared rules of the CSS openings above). */
.js[data-intro="lamp"]:not(.gx) .hero.has-photo .hero__title:not(.is-split) { animation: lamp-title calc(1s * var(--lk)) var(--lamp-out) calc(1.2s * var(--lk)) both; }
.js[data-intro="lamp"]:not(.gx) .hero.has-photo .hero__title.is-split .ln { overflow: hidden; }
.js[data-intro="lamp"]:not(.gx) .hero.has-photo .hero__title.is-split .ln > span {
  animation: lamp-line calc(1s * var(--lk)) var(--lamp-out) both;
  animation-delay: calc((1.2s + var(--i, 0) * .08s) * var(--lk) - var(--lag, 0s));
}
.js[data-intro="lamp"]:not(.gx) .hero.has-photo .hero__sub { animation: lamp-fade calc(.9s * var(--lk)) var(--lamp-fade) calc(1.45s * var(--lk)) both; }
.js[data-intro="lamp"]:not(.gx) .hero.has-photo .hero__cta { animation: lamp-up calc(.9s * var(--lk)) var(--lamp-out) calc(1.55s * var(--lk)) both; }
.js[data-intro="lamp"]:not(.gx) .hdr--over .brand { animation: lamp-in-start calc(1.1s * var(--lk)) var(--lamp-out) calc(1.5s * var(--lk)) both; }
.js[data-intro="lamp"]:not(.gx) .hdr--over .nav { animation: lamp-in-top calc(1.1s * var(--lk)) var(--lamp-out) calc(1.58s * var(--lk)) both; }
.js[data-intro="lamp"]:not(.gx) .hdr--over .hdr__tools { animation: lamp-in-end calc(1.1s * var(--lk)) var(--lamp-out) calc(1.66s * var(--lk)) both; }
/* Phones: the strip under the hero comes in with the end of the opening. */
.js[data-intro="lamp"] .hero.has-photo + .marquee { animation: lamp-fade calc(.6s * var(--lk)) var(--lamp-fade) calc(1.9s * var(--lk)) both; }
/* (transform only, so the compositor runs it: the layer ends fully outside .hero__gx, which clips it.) */
@keyframes lamp-pass { from { transform: none; } to { transform: translate3d(calc(100% * var(--dirx)), 0, 0); } }
@keyframes lamp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lamp-out { to { opacity: 0; } }
@keyframes lamp-flare {
  0% { opacity: 0; animation-timing-function: cubic-bezier(.33, 1, .68, 1); }
  53.85% { opacity: 1; animation-timing-function: cubic-bezier(.32, 0, .67, 0); }
  100% { opacity: 0; }
}
@keyframes lamp-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes lamp-title { from { opacity: 0; transform: translate3d(0, .4em, 0); } to { opacity: 1; transform: none; } }
@keyframes lamp-line { from { transform: translate3d(0, 125%, 0); } to { transform: none; } }
@keyframes lamp-up { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes lamp-in-start { from { opacity: 0; transform: translate3d(calc(-20px * var(--dirx)), 0, 0); } to { opacity: 1; transform: none; } }
@keyframes lamp-in-top { from { opacity: 0; transform: translate3d(0, -14px, 0); } to { opacity: 1; transform: none; } }
@keyframes lamp-in-end { from { opacity: 0; transform: translate3d(calc(20px * var(--dirx)), 0, 0); } to { opacity: 1; transform: none; } }

/* ---------- focus: a lens finds the eye ----------
   The eye macro fills the screen at 1.25x (under a blurred copy openings.js draws), focuses, then Flip carries it
   into its place: a trio of the LED photo, Alona and the macro, above the headline (beside it on desktop). */
[data-intro="focus"] .hero.has-photo .hero__media { --t: calc(var(--hdr-h) + 6px); --b: 0px; --g: 8px; --side: 37%; height: clamp(420px, 58svh, 580px); }
[data-intro="focus"] .hero.has-photo .hero__main {
  top: var(--t); bottom: var(--b); inset-inline-start: var(--gutter); inset-inline-end: calc(var(--gutter) + var(--side) + var(--g));
}
[data-intro="focus"] .hero.has-photo :is(.hero__alona, .hero__macro) { display: block; inset-inline-end: var(--gutter); width: var(--side); }
[data-intro="focus"] .hero.has-photo .hero__alona { top: var(--t); height: calc((100% - var(--t) - var(--b) - var(--g)) * .56); }
[data-intro="focus"] .hero.has-photo .hero__macro { z-index: 2; bottom: var(--b); height: calc((100% - var(--t) - var(--b) - var(--g)) * .44); }
[data-intro="focus"] .hero.has-photo .hero__main img { object-position: 62% 50%; }
[data-intro="focus"] .hero.has-photo .hero__copy { margin-top: 30px; }
@media (min-width: 960px) {
  [data-intro="focus"] .hero.has-photo .hero__media { --t: calc(var(--hdr-h) + 28px); --b: 56px; --g: clamp(10px, 1vw, 16px); height: auto; min-height: 640px; }
  [data-intro="focus"] .hero.has-photo .hero__main { inset-inline-start: 0; }
  [data-intro="focus"] .hero.has-photo .hero__copy { margin: 0; }
}
/* The first frame: everything under the veil. The macro keeps its box in its tile from the first paint (a box that
   changed from full screen to the tile counted as a layout shift, CLS 1.0 on desktop); openings.js scales it up over
   the whole screen with a transform and settles it into the tile. */
.js[data-intro="focus"]:not(.gx-end) .hero.has-photo .hero__gx { position: fixed; }
.js[data-intro="focus"]:not(.gx-end) .hero.has-photo .gx-veil { opacity: 1; }
.js[data-intro="focus"]:not(.gx-end) .hero.has-photo .hero__macro .hero__img { transform: scale(1.25); }
.js[data-intro="focus"]:not(.gx-end) .hero.has-photo :is(.hero__main, .hero__alona) .mk__a { transform: translate3d(0, 100%, 0); }
.js[data-intro="focus"]:not(.gx-end) .hero.has-photo :is(.hero__main, .hero__alona) .mk__b { transform: translate3d(0, -100%, 0); }
.gx-blur { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- wordmark: the name, then the curtain (the default; pure CSS from the first paint) ----------
   A huge italic "Lash Room" rises letter by letter through a mask (the letters are in the HTML) and holds; the ink
   cover lifts like a curtain (a gold hairline on its edge) while the photo rises after it, and in the same beat the
   wordmark flies into the header's logo. Then the headline rises line by line (home.js splits it at the browser's
   own line breaks; when that comes too late it rises whole), the line under it and the buttons follow, and the
   header's menu and tools arrive.
   boot.js starts it (html.wm-go) once the logo's font is in, or after 0.6s at most (then the giant word keeps a
   fallback face, html.wm-nofont, so it never changes font mid-rise); until then everything holds its first frame.
   boot.js also measures the flight (--wm-x, --wm-y, --wm-s: the word's box onto the logo's box, one even scale, again
   just before it starts) and the pace (--wm-k, shorter when the start comes late, so the headline is in by about 3s
   even then). Every keyframe is transform or opacity only, so the compositor runs them. html.wm-end drops the
   overlays when it's over; html.wm-skip (scrolling or a new width during the opening) jumps to the end.
   Times (x --wm-k, from the start): letters .05s + .04s each, .7s long; curtain, photo and flight at 1s, 1.05s long;
   headline 1.4s; its line 1.6s; buttons 1.65s; menu 1.5s; the logo takes over from the flying word at 2.05s. */
:root[data-intro="wordmark"] {
  --wk: var(--wm-k, 1);
  --wm-out: cubic-bezier(.16, 1, .3, 1); /* expo.out */
  --wm-rise: cubic-bezier(.22, 1, .36, 1); /* power4.out */
  --wm-mask: cubic-bezier(.87, 0, .13, 1); /* expo.inOut */
  --wm-fade: cubic-bezier(.33, 1, .68, 1); /* power2.out */
}
.gx-curtain { inset: 0; background: var(--ink); }
.gx-curtain::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 194, 157, .85) 50%, transparent);
  box-shadow: 0 0 18px 1px rgba(216, 194, 157, .3);
}
.gx-wordbox { inset: 0; place-items: center; }
/* Line height 1 and the logo's face, size aside: its box maps onto the logo's box with one even scale. */
.gx-word {
  color: var(--fg); font-family: var(--f-word); font-style: italic; font-weight: 400;
  font-size: min(17vw, 12.5rem); line-height: 1; letter-spacing: .005em; white-space: nowrap; transform-origin: 0 0;
}
.wm-nofont .gx-word { font-family: Georgia, 'Times New Roman', serif; }
/* The mask has room around the letters (.2em), so the italic overhang and the descenders aren't cut. */
.gx-wm { display: inline-block; vertical-align: top; overflow: hidden; padding: .2em; margin: -.2em; }
.gx-wc { display: inline-block; }
.js[data-intro="wordmark"]:not(.wm-end) .hero.has-photo .hero__gx { display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.js[data-intro="wordmark"]:not(.wm-end) .hero.has-photo .gx-curtain { display: block; }
.js[data-intro="wordmark"]:not(.wm-end) .hero.has-photo .gx-wordbox { display: grid; }
.js[data-intro="wordmark"] .hero.has-photo .gx-wc { animation: wm-rise calc(.7s * var(--wk)) var(--wm-rise) calc((.05s + var(--i, 0) * .04s) * var(--wk)) both; }
.js[data-intro="wordmark"] .hero.has-photo .gx-word {
  animation: wm-fly calc(1.05s * var(--wk)) var(--wm-mask) calc(1s * var(--wk)) both, wm-off .01s linear calc(2.05s * var(--wk)) both;
}
.js[data-intro="wordmark"] .hero.has-photo .gx-curtain {
  animation: wm-lift calc(1.05s * var(--wk)) var(--wm-mask) calc(1s * var(--wk)) both, wm-off calc(.15s * var(--wk)) linear calc(1.95s * var(--wk)) both;
}
.js[data-intro="wordmark"] .hero.has-photo .hero__main .mk__b { animation: wm-photo calc(1.05s * var(--wk)) var(--wm-mask) calc(1s * var(--wk)) both; }
.js[data-intro="wordmark"] .hero.has-photo .hero__main .hero__img { animation: wm-settle calc(1.5s * var(--wk)) var(--wm-out) calc(1s * var(--wk)) both; }
/* The headline, its line, the buttons and the header (these override the shared rules of the CSS openings above;
   the logo itself doesn't move: the word lands on it). */
.js[data-intro="wordmark"]:not(.gx) .hero.has-photo .hero__title:not(.is-split) { animation: wm-title calc(.9s * var(--wk)) var(--wm-rise) calc(1.4s * var(--wk)) both; }
.js[data-intro="wordmark"]:not(.gx) .hero.has-photo .hero__title.is-split .ln { overflow: hidden; }
.js[data-intro="wordmark"]:not(.gx) .hero.has-photo .hero__title.is-split .ln > span {
  animation: wm-line calc(.9s * var(--wk)) var(--wm-rise) both;
  animation-delay: calc((1.4s + var(--i, 0) * .08s) * var(--wk) - var(--lag, 0s));
}
.js[data-intro="wordmark"]:not(.gx) .hero.has-photo .hero__sub { animation: wm-fade calc(.8s * var(--wk)) var(--wm-fade) calc(1.6s * var(--wk)) both; }
.js[data-intro="wordmark"]:not(.gx) .hero.has-photo .hero__cta { animation: wm-up calc(.8s * var(--wk)) var(--wm-out) calc(1.65s * var(--wk)) both; }
.js[data-intro="wordmark"]:not(.gx) .hdr--over .brand { animation: none; }
.js[data-intro="wordmark"]:not(.gx) .hdr--over .brand__word { animation: wm-on .01s linear calc(2.05s * var(--wk)) both; }
.js[data-intro="wordmark"]:not(.gx) .hdr--over .brand__dot { animation: wm-dot calc(.6s * var(--wk)) var(--wm-out) calc(1.85s * var(--wk)) both; }
.js[data-intro="wordmark"]:not(.gx) .hdr--over .nav { animation: wm-in-top calc(1s * var(--wk)) var(--wm-out) calc(1.5s * var(--wk)) both; }
.js[data-intro="wordmark"]:not(.gx) .hdr--over .hdr__tools { animation: wm-in-end calc(1s * var(--wk)) var(--wm-out) calc(1.58s * var(--wk)) both; }
.js[data-intro="wordmark"] .hero.has-photo + .marquee { animation: wm-fade calc(.6s * var(--wk)) var(--wm-fade) calc(1.9s * var(--wk)) both; }
/* Held on the first frame until boot.js says go; all at once at the end when the visitor scrolls away. */
.js[data-intro="wordmark"]:not(.wm-go) :is(.gx-wc, .gx-word, .gx-curtain, .hero__main .mk__b, .hero__main .hero__img, .hero__title, .hero__title .ln > span, .hero__sub, .hero__cta, .hdr--over .brand__word, .hdr--over .brand__dot, .hdr--over .nav, .hdr--over .hdr__tools, .hero + .marquee) {
  animation-play-state: paused !important;
}
.js[data-intro="wordmark"].wm-skip :is(.gx-wc, .gx-word, .gx-curtain, .hero__main .mk__b, .hero__main .hero__img, .hero__title, .hero__title .ln > span, .hero__sub, .hero__cta, .hdr--over .brand__word, .hdr--over .brand__dot, .hdr--over .nav, .hdr--over .hdr__tools, .hero + .marquee) {
  animation: none !important;
}
@keyframes wm-rise { from { transform: translate3d(0, 125%, 0); } to { transform: none; } }
@keyframes wm-fly { from { transform: none; } to { transform: translate3d(var(--wm-x, 0px), var(--wm-y, 0px), 0) scale(var(--wm-s, 1)); } }
@keyframes wm-lift { from { transform: none; } to { transform: translate3d(0, -100%, 0); } }
@keyframes wm-photo { from { transform: translate3d(0, 30%, 0); } to { transform: none; } }
@keyframes wm-settle { from { transform: scale(1.1); } to { transform: none; } }
@keyframes wm-off { from { opacity: 1; } to { opacity: 0; } }
@keyframes wm-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes wm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wm-title { from { opacity: 0; transform: translate3d(0, .4em, 0); } to { opacity: 1; transform: none; } }
@keyframes wm-line { from { transform: translate3d(0, 125%, 0); } to { transform: none; } }
@keyframes wm-up { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes wm-dot { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes wm-in-top { from { opacity: 0; transform: translate3d(0, -14px, 0); } to { opacity: 1; transform: none; } }
@keyframes wm-in-end { from { opacity: 0; transform: translate3d(calc(20px * var(--dirx)), 0, 0); } to { opacity: 1; transform: none; } }

/* ---------- letter: into the letter ----------
   One headline word, huge, shows the photo only through its letters: white letters on ink, multiplied over the photo
   (outside the letters the photo is only a dark trace). It zooms into the thickest part of a closed letter until the
   photo floods the screen; then the knockout drops. One composited layer scales (will-change while it runs). */
.gx-knock { inset: 0; place-items: center; background: var(--ink); mix-blend-mode: multiply; }
.gx-knock__w {
  opacity: 0; color: #fff; font-family: var(--f-disp); font-weight: var(--disp-w); font-size: 22vw; line-height: 1;
  white-space: nowrap; font-synthesis: none;
}
/* A faint ivory outline of the same word on top (normal blending), so it reads as a word even where the photo behind a
   letter is dark; it zooms with the word and fades as the zoom starts. */
.gx-knockline { inset: 0; place-items: center; }
.gx-knockline .gx-knock__w { color: transparent; -webkit-text-stroke: 1px rgba(239, 233, 223, .5); }
.js[data-intro="letter"]:not(.gx-end) .hero.has-photo .hero__main .hero__img { transform: scale(1.08); }

/* Failsafe for the photo layers' first-frame states above. */
.js.gx:not(.gx-on):not(.gx-end) .hero.has-photo :is(.hero__img, .mk__a, .mk__b) { animation: gx-show 0s 3.5s forwards; }

/* ---------- Phones: the openings that stack their photos above the headline (split, portrait, strips, focus) ----------
   The hero fills the first screen above the phone bar and the photo block takes the room the headline and buttons
   leave (never under --hero-mh, site.css), so the main button is always on the first screen, 390x700 included. The
   photo block is a size container, so the first frames that start from the middle of the screen measure from its
   real height (cqh) instead of a fixed formula. */
@media (max-width: 959.98px) {
  :is([data-intro="split"], [data-intro="portrait"], [data-intro="strips"], [data-intro="focus"]) .hero.has-photo {
    grid-template-rows: minmax(var(--hero-mh), 1fr) auto; min-height: calc(100svh - var(--mbar-h));
  }
  :is([data-intro="split"], [data-intro="portrait"], [data-intro="strips"], [data-intro="focus"]) .hero.has-photo .hero__media { height: auto; }
  :is([data-intro="split"], [data-intro="portrait"]) .hero.has-photo .hero__media { container-type: size; }
  /* split: the photos on top and the headline, its line and the buttons under them, so once the opening is over the
     photos show whole (the owner wanted more of them, 24.10.2026); a short veil joins the two. The photo block takes
     the room the copy leaves, at least 96vw (400px at most, so on a short phone the buttons may end just under the
     fold), and at most 1.4x the screen width: the two photos are square, so any taller and each panel would show too
     narrow a slice of them (Alona's face cut at the sides). The two buttons share a row when they fit (not with very
     large text), so the copy takes less of the screen. */
  [data-intro="split"] .hero.has-photo { grid-template-rows: minmax(clamp(300px, 96vw, 400px), 1fr) auto; --cy: 40%; --veil: 30px; }
  [data-intro="split"] .hero.has-photo .hero__media { max-height: 140vw; }
  [data-intro="split"] .hero.has-photo .hero__copy { margin: 0; padding-top: 6px; padding-bottom: 22px; }
  [data-intro="split"] .hero.has-photo .hero__cta { margin-top: 26px; }
  /* Side by side while both labels fit on one line each, otherwise one under the other (Russian, large text). */
  [data-intro="split"] .hero.has-photo .hero__cta .btn { flex: 1 1 max-content; padding-inline: 18px; }
  [data-intro="split"] .hero.has-photo .hero__me { --sy: calc(50svh - 40cqh); }
  /* The photos dissolve into the page at their very bottom, where the copy starts. */
  [data-intro="split"] .hero.has-photo .hero__media {
    -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent);
    mask-image: linear-gradient(180deg, #000 88%, transparent);
  }
  [data-intro="portrait"] .hero.has-photo .hero__alona { --py: calc(50svh - (var(--hdr-h) + 12px + 100cqh) / 2); }
}
