/* Native-scroll build (js/way_snap.js). Loaded after way_tiles.css. data-engine="snap", so none of the GSAP-lock rules
   (175dvh height, hero-snap off, wt-lock) apply. */
html.wt-snap{scroll-snap-type:y mandatory}
/* hero step running (way_snap.js HERO STEPS): Chrome's snapping off until the page sits on the next hero stop */
html.hero-stepping,html.hero-stepping.wt-snap,html.hero-stepping.hero-snap{scroll-snap-type:none!important}
/* owner 20 Nov 09:52: the headline stays black while the background goes black (it used to flip to white half-way, a
   flash); it simply fades out with its opacity tween */
.way-tiles[data-engine="snap"] .way-tiles__headline{color:#1D1D1D}
/* hero stops (site.js, phone): keep them as 1px points so the hero is 3 steps; the stretched last mark would let the page
   rest anywhere above the cards */
.hero-stop{height:1px!important}
/* FIRST-SCROLL WHITE BAND (owner 20 Nov 2026). On the first swipe Chrome hides its address bar, the screen grows by the bar
   height, and dvh only catches up after the bar has finished moving, so for a moment the strip under the hero showed white.
   Fix: in the opening full-bleed frame ONLY (site.js sets .hero-bleed while the shrink progress is exactly 0) the sticky
   photo panel is lvh tall (screen height with the bar hidden), so the photo already covers what the bar uncovers. Photo,
   tint and the frame's clipping all extend with the panel; nothing is unclipped (an earlier overflow:visible try let the
   photo's zoom animation widen the page and Chrome zoomed out). The headline + buttons are anchored to the frame's bottom,
   so they get one counter-shift of exactly the extra height and stay where they were on screen.
   Leaving is invisible: the shrink starts on swipe 2, when the bar has already hidden and lvh == dvh, so both values are
   0px by then. When the bar is hidden at load, lvh == dvh too and these rules change nothing. */
/* HERO EASE (owner 20 Nov 11:28, item M: "it snaps into place, it should ease into place, a slow zoom"). Measured on the
   emulator (tools/bx3_hero_jump.py): (a) on reload the panel jumped 786 -> 842 px in ONE frame 1.4 s after the first paint,
   when hero_bleed.js first switched it to lvh; (b) on the way up the panel + headline jumped 56 px in one frame when the
   address bar came back (dvh is updated in one step), then the photo jumped again when the bleed switched back on.
   Now: the bleed is ON from the first paint (plain CSS on the phone, no class needed; NOTE html.hb is hero_buttons.js, NOT this: reusing it broke the first swipe, 20 Nov), so a reload changes nothing; and both things that
   move the panel are animatable numbers on the section, eased over --hero-ease (registered @property, so they transition):
     --hb-k      1 = opening frame (panel lvh, headline lifted), 0 = shrinking (panel = visible screen)
     --hb-short  the address bar's height while it shows (lvh - visible screen; hero_bleed.js writes px), 0 once hidden
   The transitions sit on the section, which is not in the "transition:none" list below; children inherit the values. */
@property --hb-k{syntax:'<number>';inherits:true;initial-value:0}
@property --hb-short{syntax:'<length>';inherits:true;initial-value:0px}
@media (max-width:720px){
  /* owner 20 Nov 13:2x (phone recording tools/out/phone_hero/132709): the bleed used to ease over 0.6 s AFTER the scroll
     stopped, so the photo "stopped, then zoomed". Now it follows the thumb: --hb-k = 1 - shrink progress, no transition.
     Panel = lvh at full page, the visible screen at the card; never shorter than the screen in between (no white band).
     --hb-short is not eased either: it cancels the address bar exactly as the bar moves. */
  /* owner 20 Nov 13:5x (phone_hero/134403): Chrome reports the bar's height only after the scroll ends, so a value written
     from JS was stale DURING the drag and corrected in one step after it (card bottom slid off screen, then snapped back).
     Now only the two fixed heights: lvh (no bar) and svh (bar showing). Their difference never changes while scrolling. */
  .hero-section--immersive-shrink{--hb-short:calc(100lvh - 100svh);--hb-k:calc(1 - var(--hero-scroll-progress,0))}
  .hero-section--immersive-shrink .hero-panel{height:calc(100lvh - (1 - var(--hb-k)) * var(--hb-short))}
  /* HEADLINE SCALES WITH THE PHOTO (owner 20 Nov: "the headline needs to scale with the transition down to the card
     size", it re-wrapped 5 -> 6 lines and jumped 36 px). Its box keeps the full-page width (hero_bleed.js writes
     --hero-copy-w), so the line breaks never change, and the whole block scales by photo width / full width
     (--hero-copy-s), pinned to the photo's bottom-left corner. */
  .hero-section--immersive-shrink .hero-copy--overlay{right:auto;width:var(--hero-copy-w,auto);transform-origin:0 100%;
    scale:var(--hero-copy-s,1);translate:0 calc(var(--hb-k) * var(--hb-short) * -1)}
}
/* FIRST LOAD (owner 20 Nov): the photo starts a little zoomed out and slowly drifts in a small amount with a gentle pan,
   once, then holds; the shrink into the card happens on scroll as before. Replaces the endless 16 s in-out loop. */
/* PHOTO STAYS THE SAME SIZE, THE FRAME SHRINKS (owner 20 Nov, item AF: "keep the photo the same size and just shrink the
   frame around the photo to make the card"). The photo used to fill the frame (object-fit: cover), so as the frame shrank
   into the card the photo shrank too, right after the thumb zoom had grown it: zoom in, then zoom out = the hitch at the
   buttons. Now the photo is pinned to the screen at its full-page size (full width x 100lvh, the opening frame) and the
   frame (.hero-media-wrap, overflow hidden, rounded) closes in around it: offsets are minus the panel's own padding, which
   is what moves the frame. */
@media (max-width:720px){
  .hero-section--immersive-shrink .hero-media{position:absolute;max-width:none;min-height:0;
    width:100dvw;height:100lvh;
    left:calc(var(--hero-scroll-progress,0) * var(--gutter) * -1);
    top:calc(var(--hero-scroll-progress,0) * (var(--header-h) + var(--gutter)) * -1);
    border-radius:0;box-shadow:none}
}
/* owner 20 Nov 16:57 (item AG): the headline sits in the middle of the photo at full page and glides down to its card place
   with the shrink (--hero-copy-lift from js/hero_bleed.js, --hb-k = 1 at full page, 0 at the card). Buttons untouched. */
@media (max-width:720px){
  .hero-section--immersive-shrink .hero-copy__main{translate:0 calc(var(--hb-k,0) * var(--hero-copy-lift,0px) * -1)}
}
/* owner 20 Nov (item AC1): "get rid of the automated zoom". The photo now starts zoomed out and still; the only zoom is
   the one that follows the thumb (js/hero_first.js). The Ken Burns intro above is removed. */
.hero-section--immersive-shrink .hero-media{animation:none}
/* the hero and the black fade follow the scroll directly: no CSS transitions trailing the finger */
html:has(.way-tiles[data-engine="snap"]) .hero-section--immersive-shrink .hero-panel,
html:has(.way-tiles[data-engine="snap"]) .hero-section--immersive-shrink .hero-media-wrap,
html:has(.way-tiles[data-engine="snap"]) .hero-section--immersive-shrink .hero-media,
html:has(.way-tiles[data-engine="snap"]) .hero-section--immersive-shrink .hero-copy--overlay,
html:has(.way-tiles[data-engine="snap"]),html:has(.way-tiles[data-engine="snap"]) body,
.way-tiles[data-engine="snap"],.way-tiles[data-engine="snap"] .way-tiles__headline{transition:none}
/* owner 20 Nov (item AK): the hero HEADLINE's intro (word by word, line after line) 50% slower: every timing x1.5
   (site.css: .76s per word, 32ms between words, 140ms start -> 1.14s, 48ms, 210ms). Wordmark untouched. */
/* owner 21 Nov (item AX): 20% slower again: every timing x --h1-k (1.2) = 1.368 s per word, 57.6 ms between words, 252 ms start */
:root{--h1-k:1.2;--h1-word:calc(1.14s * var(--h1-k));--h1-step:calc(48ms * var(--h1-k));--h1-start:calc(210ms * var(--h1-k))}
html.js .hero h1.is-revealed .w{transition-duration:var(--h1-word),var(--h1-word);transition-delay:calc(var(--h1-start) + var(--i,0) * var(--h1-step))}
/* WORDMARK + LOGO (owner 21 Nov, item AW). Vectors from the amicus_anim session (amicusdata_dev/brand/wordmark_white.svg,
   mark.svg), inlined so the white parts follow the text colour (currentColor) and the ".dev" dot stays red #C8102E.
   1) Hero: the wordmark replaces the white "AMICUSDATA" text, same width (full width inside the 16 px padding), same white,
      fades in slowly after 800 ms.  2) Black header bar: the wordmark at the old text's width (104 px) fades in where the
      text was, then slides right while the red mark appears to its left. Played once per page load (js/logo_anim.js). */
:root{--wm-ratio:6.4352;--mark-ratio:1.3462;/* viewBox width / height of the two SVGs */
  --wm-delay:800ms;--wm-fade:1.2s;--logo-wm-w:104px;--logo-mark-k:1.35;--logo-gap:8px;/* px-ok: owner-set sizes, defined once */
  --logo-wm-h:calc(var(--logo-wm-w) / var(--wm-ratio));--logo-mark-h:calc(var(--logo-wm-h) * var(--logo-mark-k));
  --logo-shift:calc(var(--logo-mark-h) * var(--mark-ratio) + var(--logo-gap))}
@keyframes wm-in{to{opacity:1}}
.logo{gap:0}
.logo__wm{display:block;width:var(--logo-wm-w);height:var(--logo-wm-h);opacity:0;transform:translateX(calc(var(--logo-shift) * -1))}
.logo__mark{display:block;height:var(--logo-mark-h);width:auto;margin-right:var(--logo-gap);opacity:0;transform:scale(.6)}
.logo.is-played .logo__wm{animation:logo-wm 2s forwards}
.logo.is-played .logo__mark{animation:logo-mark .5s cubic-bezier(.2,.7,.2,1) 1.55s forwards}
@keyframes logo-wm{0%{opacity:0;transform:translateX(calc(var(--logo-shift) * -1));animation-timing-function:ease-in-out}
  55%{opacity:1;transform:translateX(calc(var(--logo-shift) * -1));animation-timing-function:cubic-bezier(.65,0,.25,1)}
  100%{opacity:1;transform:none}}
@keyframes logo-mark{to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hero-wordmark .wm,.logo__wm,.logo__mark{animation:none!important;opacity:1;transform:none}}
/* HERO WORDMARK UNDER THE HEADLINE + SECOND HEADLINE (owner 21 Nov, items AX + AY).
   AX: the wordmark leaves the top of the hero. It sits --hero-wm-gap headline lines below the headline, --hero-wm-k of its
       old width (old = full width inside 16 px), same white, and fades in over --hero-wm-fade after --hero-wm-delay.
       It never moves the headline (absolute), and it fades away as the frame shrinks into the card (buttons sit there).
   AY: first swipe (html.hero-swap, js/hero_swap.js): headline 1 fades out over --h1-out, then --h1-swap-gap later
       headline 2 comes in word by word (same reveal as headline 1). Back at the very top it swaps back the same way. */
:root{--hero-wm-k:.775;--hero-wm-gap:1.25;--hero-wm-delay:5s;--hero-wm-fade:2s;--h1-out:.6s;--h1-swap-gap:400ms}
.hero-wordmark{display:none}
.hero .hero-copy__main{position:relative}
.hero .hero-h1-alt{position:absolute;left:0;right:0;top:0;margin:0;font-size:var(--type-hero);line-height:.94;letter-spacing:-.06em;
  color:inherit;pointer-events:none;opacity:0;transition:opacity var(--h1-out) ease}
.hero .hero-h1-alt .line{display:block}
@media (max-width:720px){.hero .hero-h1-alt .line{display:inline}.hero .hero-h1-alt{letter-spacing:-.055em;line-height:.97}}
html.js .hero .hero-h1-alt .w{opacity:0;transform:translateY(.62em) scale(.985);transition:opacity 0s var(--h1-out),transform 0s var(--h1-out)}
html.hero-swap .hero .hero-h1-alt{opacity:1;transition:none}
html.js.hero-swap .hero .hero-h1-alt .w{opacity:1;transform:none;transition:opacity var(--h1-word) var(--ease-out),transform var(--h1-word) var(--ease-out);
  transition-delay:calc(var(--h1-out) + var(--h1-swap-gap) + var(--i,0) * var(--h1-step))}
.hero .hero-copy__main h1{transition:opacity var(--h1-out) ease calc(var(--h1-out) + var(--h1-swap-gap))}
html.hero-swap .hero .hero-copy__main h1{opacity:0;transition:opacity var(--h1-out) ease 0s}
/* (item AZ: the wordmark now sits at the bottom of the opening screen, below; was 1.25 lines under the headline) */
.hero .hero-wm .wm{display:block;width:100%;height:auto;color:#fff;filter:drop-shadow(0 2px 40px rgba(0,0,0,.18));
  opacity:0;animation:wm-in var(--hero-wm-fade) ease-in-out var(--hero-wm-delay) forwards}
@media (prefers-reduced-motion:reduce){.hero .hero-wm .wm{animation:none;opacity:1}}
/* owner 21 Nov (item AY, answer A): the buttons' gap to the bottom of the frame = the Let's talk pill's gap to the left
   edge (one value, --hero-inset). Was: that gap plus up to 17 px extra at full page (site.css, (1 - progress) x 2vh). */
:root{--hero-inset:clamp(18px,2.2vw,28px)}
.hero-section--immersive-shrink .hero-copy--overlay{bottom:var(--hero-inset)}
@media (max-width:720px){.hero-section--immersive-shrink .hero-copy--overlay{left:var(--hero-inset)}}
/* owner 21 Nov (item AZ): OPENING SCREEN: the wordmark at the bottom, --hero-inset from the left and from the bottom (the
   spot the buttons rise into). SECOND SCREEN (first swipe, html.hero-swap): it fades out as the buttons come up.
   The overlay is lifted by the address bar's CURRENT height (--hb-bar, js/hero_bleed.js), so the 18 px gap is to the
   bottom of what the phone shows, bar or no bar. */
.hero .hero-copy--overlay > .hero-wm{position:absolute;left:0;bottom:0;top:auto;width:min(calc(var(--hero-wm-k) * (100vw - 32px)), 100%);
  opacity:1;pointer-events:none;transition:opacity var(--h1-out) ease}
html.hero-swap .hero .hero-copy--overlay > .hero-wm{opacity:0}
@media (max-width:720px){
  .hero-section--immersive-shrink .hero-copy--overlay{translate:0 calc(var(--hb-k) * var(--hb-bar, var(--hb-short)) * -1)}
}
/* adlead 21 Nov: tagline as the second headline. Small line under it: red words, white plus signs (owner's loader spec 21 Nov 02:52). */
.hero .hero-h1-alt .hero-tag-sub{display:table;margin-top:.7em;padding:.4em .75em .45em;border-radius:999px;background:rgba(14,14,14,.72);font-size:.36em;line-height:1.2;letter-spacing:-.01em;font-weight:500;color:#C8102E}
.hero .hero-h1-alt .hero-tag-sub .plus{color:#fff}
@media (max-width:720px){.hero .hero-h1-alt .line.hero-tag-sub{display:table;font-size:.44em}}
/* adlead 21 Nov, desktop only: the headline sat under the wordmark (both at the bottom of the opening screen) and its
   lines wrapped. Headline column takes the row, lines never wrap from 1024 px, and the headline rests above the wordmark
   (wordmark height = .1554 x its width). The phone layout (max-width:720px) is untouched. */
@media (min-width:721px){
  .hero-copy--overlay{grid-template-columns:minmax(0,1fr) auto}
  .hero .hero-copy__main{padding-bottom:calc(.1554 * min(var(--hero-wm-k) * (100vw - 32px), 100vw - 56px) + clamp(20px,2.5vw,40px));}
}
@media (min-width:1024px){.hero h1 .line,.hero .hero-h1-alt .line{white-space:nowrap}}
