/* UClean — Liquid Glass layer (iOS 26/27 language, after the apple-design skill, §12 Materials & depth).
   One material recipe in two weights:
     .lg            light glass: interactive chrome (the nav capsule, chips track, buttons on photos, the phone bar)
     .lg.lg--dark   heavier, tinted glass: structural surfaces over busy photographs (the hero's proof card)
   Rules kept: never glass on glass; bigger surfaces read thicker (more blur, deeper shadow); a bright top rim is the light
   catching the material; the surface materializes (blur + scale together) instead of a plain fade; the light follows the pointer.
   No noise refraction: it warbled the whole backdrop and re-ran every scroll frame; the sheen, the edge light and the
   saturation carry the material instead.
   Respects prefers-reduced-transparency (solid), prefers-reduced-motion (no materialize, no springs), prefers-contrast. */

@property --lg-alpha { syntax: "<number>"; inherits: true; initial-value: .42; }

:root {
  --lg-ease: cubic-bezier(.215, .61, .355, 1);                      /* easeOutCubic, as Distinct */
  /* critically damped spring (apple-design: damping 1.0, response 0.4s), sampled into linear(), run ~600ms */
  --lg-spring: linear(0, .082 5%, .243 10%, .413 15%, .562 20%, .682 25%, .774 30%, .89 40%, .949 50%, .977 60%, .993 75%, .998 90%, 1);
  /* damping 0.8: a little overshoot, only where a pointer move preceded the motion (the segment indicator) */
  --lg-spring-soft: linear(0, .086 5%, .267 10%, .464 15%, .639 20%, .776 25%, .875 30%, .981 40%, 1.012 50%, 1.014 60%, 1.006 75%, 1);
  /* shadows scale with the surface (small chips, bars, sheets); the .5px hairline keeps light glass visible on white */
  --lg-sh-s: 0 0 0 .5px rgb(0 0 0 / .08), 0 1px 2px rgb(0 0 0 / .08), 0 4px 12px -4px rgb(0 0 0 / .18);
  --lg-sh-m: 0 0 0 .5px rgb(0 0 0 / .07), 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px -8px rgb(0 0 0 / .2);
  --lg-sh-l: 0 0 0 .5px rgb(0 0 0 / .06), 0 2px 6px rgb(0 0 0 / .06), 0 24px 60px -16px rgb(0 0 0 / .28);
}

/* Liquid Glass, light: a translucent sheet with a sheen on its upper half, a bright top edge, a hairline outside */
.lg {
  --lg-tint: 255 255 255;
  --lg-alpha: .55;
  --lg-blur: 16px;
  --lg-sh: var(--lg-sh-s);
  isolation: isolate;
  background: linear-gradient(180deg, rgb(255 255 255 / .35), rgb(255 255 255 / 0) 45%), rgb(var(--lg-tint) / var(--lg-alpha));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(170%) brightness(1.05);
  backdrop-filter: blur(var(--lg-blur)) saturate(170%) brightness(1.05);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .75), inset 0 -1px 0 rgb(255 255 255 / .12), var(--lg-sh);
}
/* positioning at zero specificity, so a surface that is already absolute or fixed (the proof card, the mega panel, the phone bar) keeps it */
:where(.lg) { position: relative; }
/* the rim: a 1px gradient edge; the highlight travels around it toward the pointer (glass.js sets --mx/--my) */
.lg::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: radial-gradient(90px circle at var(--mx, 22%) var(--my, 0%), rgb(255 255 255 / .95), transparent 70%),
    linear-gradient(140deg, rgb(255 255 255 / .9), rgb(255 255 255 / .15) 32%, transparent 55%, rgb(255 255 255 / .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* the press: light gathers under the finger, the surface gives a little (on pointer-down, instantly) */
.lg::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .45), rgb(255 255 255 / 0) 70%);
  transition: opacity .36s var(--lg-ease);
}
:is(a, button).lg:not(.btn) { transition: scale .32s var(--lg-spring), background-color .2s var(--lg-ease); }
:is(a, button).lg:not(.btn):active { scale: .97; transition-duration: 90ms; }
:is(a, button).lg:active::after { opacity: .9; transition-duration: 90ms; }
:is(a, button).lg:focus-visible { outline: 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / .75), var(--lg-sh), 0 0 0 2px #fff, 0 0 0 4px var(--p-ink); }

/* Liquid Glass, dark: for structure over busy photographs; its own, softer rim (never the light one) */
.lg--dark {
  --lg-tint: 22 22 24;
  --lg-alpha: .52;
  --lg-blur: 20px;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, rgb(255 255 255 / .14), rgb(255 255 255 / 0) 40%), rgb(var(--lg-tint) / var(--lg-alpha));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(140%) brightness(.92);
  backdrop-filter: blur(var(--lg-blur)) saturate(140%) brightness(.92);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 0 0 .5px rgb(0 0 0 / .35), 0 12px 32px -12px rgb(0 0 0 / .45);
}
.lg--dark::before {
  background: radial-gradient(90px circle at var(--mx, 22%) var(--my, 0%), rgb(255 255 255 / .6), transparent 70%),
    linear-gradient(140deg, rgb(255 255 255 / .5), rgb(255 255 255 / .08) 35%, transparent 58%, rgb(255 255 255 / .22));
}
.lg--dark::after { background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .22), rgb(255 255 255 / 0) 70%); }

/* glass tinted onto an image that barely changes under it (card pills): the same look without a backdrop blur,
   so a rail of cards costs nothing to scroll or tilt */
.lg--tint { -webkit-backdrop-filter: none; backdrop-filter: none; }
.lg--tint.lg--dark { --lg-alpha: .62; }
.lg--tint:not(.lg--dark) { --lg-alpha: .92; }

/* controls on a flat ground have nothing to blur: the iOS fill instead of glass */
.lg--fill { background: rgb(118 118 128 / .12); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.lg--fill::before, .lg--fill::after { display: none; }

/* ---------- the nav: a floating capsule over the page ---------- */
header.nav { background: transparent; border-bottom: 0; pointer-events: none; }
header.nav > .nav__bar {
  pointer-events: auto; position: relative; isolation: isolate; height: 60px; margin-top: 8px; padding: 0; border-radius: 999px;
}
/* the logo and the button stay on the page's lines; the glass reaches 16px past them on both sides */
/* the capsule's glass is its own layer behind the bar, so the mega panel inside the bar is never glass on glass
   (a backdrop-filter parent would become the panel's backdrop root and the panel would blur only the bar) */
header.nav .nav__glass { --lg-alpha: .66; --lg-blur: 20px; --lg-sh: var(--lg-sh-m); position: absolute; inset: 0 -16px; z-index: -1; border-radius: inherit; pointer-events: none;
  transition: background-color .3s var(--lg-ease); }
/* over text the bar thickens and casts a little more shadow, so the words under it never show through */
header.nav.is-scrolled .nav__glass { --lg-alpha: .76; --lg-sh: var(--lg-sh-m), 0 10px 30px -10px rgb(0 0 0 / .18); }
/* over a dark area (the hero photograph, the B2B panel, a photo head) the capsule flips to dark glass, as iOS bars do;
   glass.js sets data-over from what lies under the bar */
header.nav[data-over="dark"]:not(.is-open) .nav__glass {
  --lg-tint: 22 22 24; --lg-alpha: .4;
  background: linear-gradient(180deg, rgb(255 255 255 / .12), rgb(255 255 255 / 0) 45%), rgb(var(--lg-tint) / var(--lg-alpha));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 0 0 .5px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .4);
}
header.nav[data-over="dark"]:not(.is-open) .nav__glass::before {
  background: radial-gradient(90px circle at var(--mx, 22%) var(--my, 0%), rgb(255 255 255 / .55), transparent 70%),
    linear-gradient(140deg, rgb(255 255 255 / .45), rgb(255 255 255 / .06) 35%, transparent 58%, rgb(255 255 255 / .2));
}
header.nav[data-over="dark"]:not(.is-open) .nav__bar > .nav__logo img { filter: brightness(0) invert(1); }
header.nav[data-over="dark"]:not(.is-open) .nav__bar > .nav__links > .nav__item > .nav__link,
header.nav[data-over="dark"]:not(.is-open) .nav__bar > .nav__actions > .nav__phone,
header.nav[data-over="dark"]:not(.is-open) .nav__bar > .nav__toggle { color: #fff; }
header.nav[data-over="dark"]:not(.is-open) .nav__bar > .nav__actions > .btn--primary { background: #fff; color: var(--p-ink); }
header.nav[data-over="dark"]:not(.is-open) .nav__lang { background: rgb(255 255 255 / .14); }
header.nav[data-over="dark"]:not(.is-open) .nav__lang a { color: #fff; }
header.nav[data-over="dark"]:not(.is-open) .nav__lang a.is-on { background: #fff; color: var(--p-ink); }
header.nav .nav__bar > .nav__logo img, header.nav .nav__bar > .nav__links > .nav__item > .nav__link, header.nav .nav__lang a,
header.nav .nav__bar > .nav__actions > .nav__phone, header.nav .nav__bar > .nav__toggle { transition: color .25s var(--lg-ease), background-color .25s var(--lg-ease), filter .25s var(--lg-ease); }
html:not([data-motion="off"]) header.nav .nav__bar > .nav__actions > .btn--primary { transition: color .25s var(--lg-ease), background-color .25s var(--lg-ease), transform .32s var(--lg-spring); }
header.nav .nav__actions .btn { height: 44px; }
/* the mega panel: a thicker sheet of the same material, anchored under its capsule, materializing */
header.nav .nav__menu {
  top: calc(100% + 10px); left: -16px; right: -16px; border: 0; border-radius: 28px; padding: var(--s-7) var(--s-6);
  --lg-alpha: .86; --lg-blur: 24px; --lg-sh: var(--lg-sh-l);
  /* the sheet grows out of its link: transform + opacity only (a filter blur over a backdrop blur re-rasterizes every frame) */
  transform: translateY(-6px) scale(.98); transform-origin: 12% 0;
  transition: opacity 140ms var(--lg-ease), transform 140ms var(--lg-ease), visibility 0s linear 140ms;
}
header.nav .nav__menu > .wrap { width: 100%; }
@media (min-width: 1024px) {
  header.nav .nav__item:hover > .nav__menu, header.nav .nav__item:focus-within > .nav__menu {
    transform: none; transition: opacity 180ms var(--lg-ease) 100ms, transform 600ms var(--lg-spring) 100ms, visibility 0s 100ms;
  }
}
@media (max-width: 1023px) {
  header.nav > .nav__bar { height: 56px; margin-top: 8px; padding: 0; }
  header.nav .nav__glass { inset: 0 -10px; }
  header.nav .nav__toggle { border-color: transparent; background: rgb(255 255 255 / .5); }
  header.nav.is-open { pointer-events: auto; background: var(--bg); }
  header.nav.is-open .nav__glass { display: none; }
}

/* ---------- buttons: instant press, glass secondary over photographs ---------- */
/* one press for every button, the kit's lift and press replaced (same selector weight as the kit's, loaded later) */
html:not([data-motion="off"]) .btn { transition: background-color .2s var(--lg-ease), color .2s var(--lg-ease), transform .32s var(--lg-spring); }
html:not([data-motion="off"]) .btn:hover { transform: none; }
html:not([data-motion="off"]) .btn:active { transform: scale(.97); transition-duration: .2s, .2s, 90ms; }
html .hero--uc .btn.btn--secondary.lg { --lg-tint: 16 16 18; --lg-alpha: .38; --lg-blur: 14px; background: rgb(var(--lg-tint) / var(--lg-alpha));
  color: #fff; border-color: transparent; font-weight: 500; letter-spacing: .005em; transition: --lg-alpha .3s var(--lg-ease), transform 160ms var(--lg-ease); }
html .hero--uc .btn.btn--secondary.lg:hover { --lg-alpha: .5; background: rgb(var(--lg-tint) / var(--lg-alpha)); }
@media (max-width: 1023px) {
  /* below 1024 the hero's words sit on the white ground: the secondary goes back to the page's own look */
  html .hero--uc .btn.btn--secondary.lg { --lg-tint: 24 24 24; --lg-alpha: .07; color: var(--p-ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero--uc .btn--secondary.lg::before, .hero--uc .btn--secondary.lg::after { display: none; }
}

/* ---------- the hero: one orchestrated entrance ---------- */
/* entrances without filter blur: they play while the page hydrates, so they stay on the compositor (transform, opacity) */
@keyframes lg-materialize { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lg-promise-in { from { opacity: 0; transform: translateY(.24em); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
/* the stand-in is mirrored on the img (the squeegee to the right); the keyframes keep the mirror */

html:not([data-motion="off"]) .hero--uc > .hero__bg[data-slide="0"] img { animation: lg-photo-in-hero 1.4s var(--lg-ease) both; }
html:not([data-motion="off"]) .hero--uc .proof { animation: lg-materialize .8s var(--lg-spring) .9s both; }

/* ---------- the services photo: materializes when its row is chosen ---------- */
@keyframes lg-peek-in { from { opacity: 0; transform: scale(1.035); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
html:not([data-motion="off"]) [data-peek] .frame__img:not([hidden]) { animation: lg-peek-in .55s var(--lg-ease) both; }

/* ---------- calculator: chips as an iOS segmented control with a liquid indicator ---------- */
.chips.lg-seg { position: relative; display: inline-flex; flex-wrap: wrap; gap: 0; padding: 4px; border-radius: 999px;
  --lg-tint: 255 255 255; --lg-alpha: .55; --lg-blur: 12px; }
.lg-seg .chip span { position: relative; z-index: 1; background: none; border: 0; min-height: 40px; padding: 0 var(--s-4);
  transition: color .3s var(--lg-ease); }
.lg-seg .chip input:checked + span { background: none; color: #fff; }
.lg-seg__pill { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 999px;
  background: var(--p-ink); box-shadow: 0 6px 16px -6px rgb(0 0 0 / .45), inset 0 1px 0 rgb(255 255 255 / .18);
  transform: translateX(var(--seg-x, 0px)); width: var(--seg-w, 0px); contain: layout paint;
  transition: transform .5s var(--lg-spring-soft), width .5s var(--lg-spring-soft); }
.lg-seg.is-moving .lg-seg__pill { animation: lg-stretch .5s var(--lg-ease); }
@keyframes lg-stretch { 40% { scale: 1.03 .97; } 100% { scale: 1 1; } }
@media (max-width: 639px) { .chips.lg-seg { display: flex; } .lg-seg .chip span { padding: 0 var(--s-3); } }

/* ---------- the phone bar: a floating glass capsule ---------- */
@media (max-width: 639px) {
  nav.actionbar.lg { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; padding: 6px; border: 0; border-radius: 999px; --lg-alpha: .6; }
  nav.actionbar.lg .btn { height: 48px; }
}

/* ---------- <picture> with a phone crop inside kit frames that style "> img" (the kit's files stay untouched) ---------- */
.frame > picture, .mo-ph__pic > picture { display: contents; }
:is(.frame, .panel) > picture > .frame__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
[data-moment="photo-chapters"] .mo-ph__pic > picture > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 640px) { [data-moment="photo-chapters"]:not(.is-live) .mo-ph__pic > picture > img { aspect-ratio: 4 / 5; max-height: 44svh; } }
@media (max-width: 639px) { [data-moment="photo-chapters"]:not(.is-live) .mo-ph__pic > picture > img { aspect-ratio: 16 / 10; } }
[data-moment="photo-chapters"].is-live .mo-ph__stage > .mo-ph__pic > picture > img { width: 100%; height: 100%; aspect-ratio: auto; max-height: none;
  transform: scale(var(--mo-z, 1)); transform-origin: 50% 100%; will-change: transform; }
@media (prefers-reduced-motion: reduce) { [data-moment="photo-chapters"].is-live .mo-ph__stage > .mo-ph__pic > picture > img { transform: none; } }

/* ---------- accessibility ---------- */
/* (!important: a few surfaces set their own tint with a higher specificity, the person's setting wins over all of them) */
@media (prefers-reduced-transparency: reduce) {
  .lg, header.nav .nav__glass { --lg-alpha: .94 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .lg--dark, header.nav[data-over="dark"]:not(.is-open) .nav__glass { --lg-alpha: .92 !important; }
  .lg::after { display: none; }
}
@media (prefers-contrast: more) {
  .lg, header.nav .nav__glass { --lg-alpha: .98 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .lg::before { background: rgb(0 0 0 / .7) !important; }
  .lg--dark::before, header.nav[data-over="dark"]:not(.is-open) .nav__glass::before { background: rgb(255 255 255 / .85) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--uc > .hero__bg img, .hero--uc .hero__promise, .hero--uc .proof, [data-peek] .frame__img { animation: none !important; }
  .lg-seg__pill { transition: none; }
  .lg-seg.is-moving .lg-seg__pill { animation: none; }
  header.nav .nav__menu { filter: none; transform: none; }
}

/* ---------- the hero slider: the photographs cross-fade and drift; an iOS page control in dark glass ---------- */
.hero--uc > .hero__bg { opacity: 0; transition: opacity 1.4s var(--lg-ease); }
.hero--uc > .hero__bg.is-on { opacity: 1; }
.hero--uc > .hero__bg img { scale: 1.001; transition: scale 9s linear; }
.hero--uc > .hero__bg.is-on.is-drift img { scale: 1.07; }
.hero__pager { --lg-alpha: .38; position: absolute; z-index: 2; left: 50%; bottom: 0; translate: -50% 0; display: flex; align-items: center; gap: 2px;
  padding: 6px 6px 6px 12px; border-radius: 999px; }
.pager__dot { all: unset; box-sizing: border-box; position: relative; display: grid; place-items: center; width: 22px; height: 32px; cursor: pointer; }
.pager__dot i { display: block; width: 7px; height: 7px; border-radius: 999px; background: rgb(255 255 255 / .45); overflow: hidden; position: relative;
  transition: width .5s var(--lg-spring), background-color .3s var(--lg-ease); }
.pager__dot.is-on { width: 44px; }
.pager__dot.is-on i { width: 30px; background: rgb(255 255 255 / .35); }
.pager__dot.is-on i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); animation: pager-fill var(--slide-ms, 6500ms) linear forwards; }
.hero--uc.is-paused .pager__dot.is-on i::after { animation-play-state: paused; }
@keyframes pager-fill { to { transform: scaleX(1); } }
.pager__dot:focus-visible, .pager__pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 999px; }
.pager__pause { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 32px; height: 32px; margin-left: 4px; border-radius: 999px; color: #fff; cursor: pointer;
  background: rgb(255 255 255 / .14); transition: background-color .2s var(--lg-ease), transform .12s var(--lg-ease); }
.pager__pause:hover { background: rgb(255 255 255 / .24); }
.pager__pause:active { transform: scale(.92); }
.pager__pause svg { width: 14px; height: 14px; }
.pager__pause .i-play, .pager__pause[aria-pressed="true"] .i-pause { display: none; }
.pager__pause[aria-pressed="true"] .i-play { display: inline; }
html:not([data-motion="off"]) .hero--uc .hero__pager { animation: lg-materialize .8s var(--lg-spring) 1.1s both; }
@media (max-width: 1023px) {
  /* below 1024 the photograph sits under the header and the words under it: the control rides the photograph's foot */
  /* below 1024 the words sit under the photograph; the control would land on the words, so the photos just turn */
  .hero__pager { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--uc > .hero__bg { transition: none; }
  .hero--uc > .hero__bg img { transition: none; scale: none; }
  .hero--uc .hero__pager { animation: none !important; }
}

@keyframes lg-photo-in-hero { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
/* covered by the sheets above it (distinct.js), the sticky hero is not painted and its slider stops */
.hero--uc.is-covered { visibility: hidden; }
/* the caption of the current photograph (the admin's slide name and type), small, over the photo's right top */
.hero__caps { list-style: none; margin: 0; padding: 0; position: absolute; z-index: 2; right: 0; bottom: 132px; text-align: right; color: #fff; pointer-events: none; }
.hero__caps li { position: absolute; right: 0; bottom: 0; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .6s var(--lg-ease), transform .6s var(--lg-ease); }
.hero__caps li.is-on { opacity: 1; transform: none; }
.hero__caps b { display: block; font-weight: 500; font-size: 15px; text-shadow: 0 1px 12px rgb(0 0 0 / .45); }
.hero__caps span { display: block; font-size: 13px; font-weight: 500; color: rgb(255 255 255 / .88); text-shadow: 0 1px 12px rgb(0 0 0 / .45); }
@media (max-width: 1023px) { .hero__caps { display: none; } }

/* the language switch in the header: a small segmented control, the current language filled */
.nav__lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(118 118 128 / .12); margin-right: 6px; }
.nav__lang a { min-width: 34px; height: 30px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--p-ink); text-decoration: none; letter-spacing: .02em; transition: background-color .25s var(--lg-ease), color .25s var(--lg-ease); }
.nav__lang a:hover { background: rgb(255 255 255 / .6); }
.nav__lang a.is-on { background: var(--p-ink); color: #fff; }
.nav__lang a:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 2px; }
@media (max-width: 1023px) {
  /* on a phone the bar keeps the language dropdown, a call and a Telegram icon beside the menu button (mobile.css) */
  .nav__actions { display: flex !important; margin-left: auto; }
  .nav__actions > :not(.lang-dd, .nav__icon) { display: none !important; }
}

/* ---------- the hero's own entrance (the kit's is off on this hero, it fought the slider): the photograph settles,
   then the words rise line by line, then the glass materializes. Transform + opacity only. ---------- */
@keyframes lg-rise { from { opacity: 0; transform: translateY(14px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
html:not([data-motion="off"]) .hero--uc .hero__text > * { animation: lg-rise .9s var(--lg-spring) both; }
html:not([data-motion="off"]) .hero--uc .hero__text > h1 { animation-delay: .15s; }
html:not([data-motion="off"]) .hero--uc .hero__text > .hero__promise { animation: lg-promise-in .9s var(--lg-spring) .35s both; }
html:not([data-motion="off"]) .hero--uc .hero__text > .hero__lead { animation-delay: .5s; }
html:not([data-motion="off"]) .hero--uc .hero__text > .btn-row { animation-delay: .62s; }
/* the slider's own timing: the photographs cross-fade, the current one drifts slowly */
.hero--uc > .hero__bg { transition: opacity 1.4s var(--lg-ease); }
.hero--uc > .hero__bg > img { transition: scale 9s linear; }
.hero--uc > .hero__bg:not(.is-on) > img { transition: scale 0s linear 1.4s; }
@media (prefers-reduced-motion: reduce) { .hero--uc .hero__text > * { animation: none !important; } }
@media (max-width: 1023px) {
  /* on a phone the bar sits over the bright top of the photo: thicker dark glass, the menu button tinted to match */
  header.nav[data-over="dark"]:not(.is-open) .nav__glass { --lg-alpha: .55; }
  header.nav[data-over="dark"]:not(.is-open) .nav__toggle { background: rgb(255 255 255 / .16); color: #fff; }
}

/* the phone menu is a reading list on an opaque sheet: the tint of the bar does not apply inside it, and the
   submenus are plain lists, not glass (no glass on glass, no blur over a list) */
@media (max-width: 1023px) {
  header.nav.is-open .nav__menu { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  header.nav.is-open .nav__menu::before, header.nav.is-open .nav__menu::after { display: none; }
}
.proof .proof__note { display: inline-block; margin-top: var(--s-3); padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .16); font-size: 13px; font-weight: 500; letter-spacing: .01em; color: #fff; }

/* M4: the bar's backdrop is the same in both tints, so only the colour fades when it flips */
header.nav .nav__glass, header.nav[data-over="dark"]:not(.is-open) .nav__glass { -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
/* the phone hides the page control but keeps its clock running (the slider follows the bar's animationend) */
@media (max-width: 1023px) { .hero__pager { display: flex !important; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
  :is(a, button).lg:active, html .btn:active, .rail-btn:active { scale: 1 !important; transform: none !important; }
  .hero__caps li, .pager__dot i { transition: none !important; }
}
