/* Home 2026-10-29, third pass (Boris): a moving first screen with no selling, then Ansamble showing itself, then what we
   made, then the offers. */

/* ── 1 · hero: three lines and three cards that answer them ── */
.hx{position:relative;overflow:hidden;padding:24px 0 0}
.hx:before{content:"";position:absolute;inset:-68px 0 auto;height:820px;z-index:-1;background:radial-gradient(48% 52% at 72% 42%,#fff,rgba(255,255,255,0) 70%)}
.hx-g{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center;min-height:min(820px,calc(100svh - 96px))}
/* the headline sizes to its own column, never to the window, so it can never reach the phones */
.hx-c{position:relative;z-index:4;container-type:inline-size;min-width:0}
.hx-h{font-size:clamp(34px,11.6cqi,76px);line-height:.98;letter-spacing:-.05em;font-weight:800}
.hx-l{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em;margin-bottom:-.08em}
.hx-l>span{display:inline-block;animation:hxUp 1s var(--ease) both}
.hx-l+.hx-l>span{animation-delay:.12s}
.hx-q{margin-top:28px;display:flex;flex-wrap:wrap;gap:.25em .4em;font-size:clamp(22px,2.4vw,34px);line-height:1.15;font-weight:700;letter-spacing:-.03em}
.hx-q>*{position:relative;transition:opacity .5s var(--ease),transform .5s var(--ease),color .4s}
.hx-q b{color:var(--accent)}
.hx-q b:after{content:"";position:absolute;left:0;right:0;bottom:-.08em;height:.09em;border-radius:2px;background:currentColor;transform:scaleX(var(--u,1));transform-origin:left;transition:transform .7s var(--ease) .15s}
/* while stepping: a word appears at its step; the current one is dark, the earlier ones grey */
.hx.run .hx-q>*{opacity:0;transform:translateY(.4em)}
.hx.run .hx-q>.on{opacity:1;transform:none}
.hx.run .hx-q>.past{opacity:1;transform:none;color:var(--ink3)}
.hx.run .hx-q b{--u:0}
.hx.run .hx-q b.on{--u:1}

.hx-stage{position:relative;margin-left:clamp(0px,3vw,56px);height:min(640px,calc(100svh - 150px));min-height:420px}
.hx-card{position:absolute;left:50%;top:50%;width:min(300px,62%,calc((min(640px,100svh - 150px) - 24px)*540/1169));aspect-ratio:540/1169;margin:0;border-radius:26px;overflow:hidden;background:var(--ink);
  box-shadow:0 0 0 1px rgba(17,26,21,.06),0 40px 80px -36px rgba(17,26,21,.55);
  transform:translate(-50%,-50%) translate(var(--x,0),var(--y,0)) rotate(var(--r,0deg)) scale(var(--s,1));z-index:var(--z,1);
  transition:transform 1s var(--ease),filter .8s var(--ease),opacity .8s var(--ease);filter:saturate(var(--sat,1)) brightness(var(--br,1))}
/* each card is an iPhone: black bezel, the island, a rounded screen */
.hx-card{padding:6px;background:#0d0f0e;border-radius:40px;box-shadow:0 0 0 1px #3a3d3b,0 40px 80px -36px rgba(17,26,21,.55)}
.hx-card:before{content:"";position:absolute;left:50%;top:14px;width:30%;height:22px;border-radius:999px;background:#0d0f0e;transform:translateX(-50%);z-index:2}
.hx-card video,.hx-card img{display:block;width:100%;height:100%;object-fit:cover;object-position:top;border-radius:34px}
/* the frame has an iPhone's proportions; a 9:16 Reel sits whole in it, black above and below, as on a real phone */
.hx-card video{object-fit:contain;object-position:center;background:#000}
.hx-card figcaption{position:absolute;left:18px;bottom:18px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.92);color:var(--ink);font-size:13px;font-weight:700}
/* the fanned end state (also the state without JS) */
.hx-card[data-k="0"]{--x:0;--r:0deg;--s:1;--z:3}
.hx-card[data-k="1"]{--x:-58%;--y:4%;--r:-9deg;--s:.86;--z:2}
.hx-card[data-k="2"]{--x:58%;--y:4%;--r:9deg;--s:.86;--z:2}
.hx-stage>.hx-card{animation:hxFloat 7s ease-in-out infinite}
.hx-stage>.hx-card[data-k="1"]{animation-delay:-2.3s}
.hx-stage>.hx-card[data-k="2"]{animation-delay:-4.6s}
/* while stepping: the card of the current question comes to the front, the others wait behind it */
.hx.run .hx-card{--x:0;--y:-2%;--r:0deg;--s:.8;--z:1;--br:.94;--sat:.6}
.hx.run .hx-card.on{--y:0;--s:1;--z:3;--br:1;--sat:1}
.hx.run .hx-card.past{--y:-6%;--s:.72;--z:0}
.hx-down{position:absolute;left:50%;bottom:18px;width:44px;height:44px;margin-left:-22px;display:grid;place-items:center;border-radius:50%;color:var(--ink2);animation:hxBob 2.4s ease-in-out infinite}
.hx-down svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@keyframes hxUp{from{transform:translateY(105%)}to{transform:none}}
@keyframes hxLine{from{transform:scaleX(0)}to{transform:none}}
@keyframes hxFloat{0%,100%{translate:0 0}50%{translate:0 -10px}}
@keyframes hxBob{0%,100%{transform:none}50%{transform:translateY(6px)}}

/* ── 2 · Ansamble showing itself: story bars, the screen, one line ── */
.hm-sec{padding-top:112px}
#what .strip-h,#latest .strip-h{align-items:end;gap:16px 24px}
.strip-h .more{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:600}
.sx{margin-top:36px}
.sx-bars{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
.sx-bars button{display:grid;gap:10px;padding:0 0 6px;border:0;background:none;font:inherit;font-size:14px;font-weight:600;color:var(--ink3);text-align:start;cursor:pointer;min-height:44px;align-content:start}
.sx-bars button>i{display:block;height:3px;border-radius:2px;background:var(--line);overflow:hidden}
.sx-bars button>i:after{content:"";display:block;height:100%;width:100%;background:var(--ink);transform:scaleX(0);transform-origin:left}
.sx-bars button.done>i:after{transform:none}
.sx-bars button.on{color:var(--ink)}
.sx-bars button.on>i:after{animation:sxFill var(--d,6s) linear forwards}
.sx.hold .sx-bars button.on>i:after{animation-play-state:paused}
.sx-screen{position:relative;margin:16px auto 0;width:min(100%,calc((100svh - 300px)*16/9));min-width:min(100%,640px);aspect-ratio:16/9;border-radius:22px;overflow:hidden;background:#eceee9 url(film/dept/marketing.jpg) center/cover;box-shadow:0 0 0 1px var(--line),0 40px 80px -48px rgba(17,26,21,.5)}
.sx-screen>*{position:absolute;inset:0;width:100%;height:100%;opacity:0;visibility:hidden;transition:opacity .45s var(--ease),visibility 0s .45s}
.sx-screen>.on{opacity:1;visibility:visible;transition:opacity .45s var(--ease)}
.sx-screen video{object-fit:cover}
.sx-cap{display:flex;align-items:center;gap:12px;margin-top:14px;font-size:clamp(18px,1.8vw,24px);font-weight:700;letter-spacing:-.02em;min-height:1.5em}
.sx-cap .i{width:22px;height:22px;flex:none;color:var(--accent)}
.sx-cap span{animation:sxIn .6s var(--ease) both}
/* the heading: "This is ansamble." and a line that rolls up with each scene */
.sx-h{display:grid;gap:4px;font-size:clamp(34px,4.4vw,64px);line-height:1.02;letter-spacing:-.045em;font-weight:800}
.sx-h .mark{font-size:1em;letter-spacing:-.04em}
.sx-roll{display:block;overflow:hidden;height:1.12em;color:var(--accent)}
.sx-roll>span{display:block;animation:sxRoll .7s var(--ease) both}
@keyframes sxRoll{from{transform:translateY(105%);opacity:0}to{transform:none;opacity:1}}
/* the last scene: the pushes arrive one after another */
.sx-push{display:grid;place-items:center;background:linear-gradient(160deg,#4a504c,#1b201d)}
.sx-push .ph-stack{width:min(420px,88%);gap:10px}
.sx-push .push{animation:pushin .6s cubic-bezier(.34,1.4,.64,1) both;animation-delay:calc(.3s + var(--k)*.9s)}
@keyframes sxFill{to{transform:none}}
@keyframes sxIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ── 3 · what we made: whole videos with the caption below, then the products ── */
.wm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.wm-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.wm-card{display:grid;grid-template-rows:auto 1fr;border-radius:20px;background:#fff;box-shadow:0 0 0 1px var(--line);overflow:hidden;min-width:0;transition:transform .35s var(--ease)}
a.wm-card:hover{transform:translateY(-3px)}
.wm-v{position:relative;display:block;height:280px;background:var(--paper);overflow:hidden}
.wm-v img{display:block;height:auto}
.wm-jb .d{position:absolute;left:24px;top:24px;width:78%;border-radius:12px;box-shadow:0 20px 50px -24px rgba(17,26,21,.5)}
.wm-jb .iph{position:absolute;right:18px;top:34px;width:30%}
.wm-site img{position:absolute;left:20px;top:20px;width:calc(100% - 40px);border-radius:12px;box-shadow:0 20px 50px -24px rgba(17,26,21,.5)}
.wm-doc .iph{position:absolute;left:50%;top:20px;width:min(48%,220px);transform:translateX(-50%)}
.wm-num{display:grid;place-items:center}
.wm-num b{font-size:96px;letter-spacing:-.05em;font-weight:800}
.wm-t{display:grid;align-content:start;gap:6px;padding:18px 20px 20px}
.wm-t b{font-size:20px;letter-spacing:-.02em}
.wm-t span{font-size:15px;line-height:1.45;color:var(--ink2)}
.wm-t em{display:inline-flex;align-items:center;gap:6px;font-style:normal;font-size:13px;color:var(--ink3);margin-top:4px}
.wm-t em .i{width:14px;height:14px}
#latest .dont1{margin-top:36px}

/* ── 4 · the offers ── */
.of-l{margin-top:14px;font-size:clamp(17px,1.5vw,20px);color:var(--ink2)}
.hm-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:28px}
.hm-o{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:14px;min-height:64px;padding:14px 16px;border-radius:18px;background:#fff;
  box-shadow:0 0 0 1px var(--line),0 18px 40px -30px rgba(17,26,21,.45);transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.hm-o:hover{transform:translateY(-2px);box-shadow:0 0 0 1.5px var(--ink),0 22px 44px -30px rgba(17,26,21,.5)}
.hm-o .oi{width:22px;height:22px;color:var(--a1)}
.hm-t{display:grid;min-width:0}
.hm-t b{font-size:17px;letter-spacing:-.02em}
.hm-t em{font-style:normal;font-size:14px;line-height:1.3;color:var(--ink2)}
.hm-p{font-weight:800;font-size:16px;white-space:nowrap}
.hm-o .go{width:18px;height:18px;color:var(--ink3)}
.hm-o:first-child{background:var(--ink);color:#fff;box-shadow:0 18px 40px -24px rgba(17,26,21,.7)}
.hm-o:first-child .hm-t em{color:rgba(255,255,255,.72)}
.hm-o:first-child .go,.hm-o:first-child .hm-p,.hm-o:first-child .oi{color:#fff}

/* ── 5 · the real-world test ── */
.hm-test{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:32px 36px;border-radius:26px;background:#fff;color:var(--ink);
  box-shadow:0 0 0 1px var(--line),0 30px 60px -44px rgba(17,26,21,.5)}
.hm-test-c{display:grid;gap:10px}
.hm-test-k{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--a1)}
.hm-test-c>b{font-size:clamp(24px,2.6vw,34px);letter-spacing:-.035em;line-height:1.05}
.hm-test-l{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:15px;font-weight:600;color:var(--ink2)}
.hm-test-l span{display:inline-flex;align-items:center;gap:7px}
.hm-test-l svg{color:var(--green)}
.hm-sec ~ .cta{margin-top:112px}

/* ── 7 · the workspace: the film inside the dark card ── */
.cta-film{max-width:860px;margin:0 auto 28px;scroll-margin-top:90px}
.cta-film .film-box,.cta-film .film-video{margin-top:0;box-shadow:0 30px 70px -30px rgba(0,0,0,.6)}
.cta-film .film-len{font-size:15px;padding:8px 14px}
.cta-in .cta-lead{margin-bottom:18px}

.sx-bars button:focus-visible,.hx-down:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

@media (max-width:900px){
  .hx{padding-top:8px}
  .hx-g{grid-template-columns:1fr;gap:8px;align-content:start;padding-bottom:56px}
  .hx-h{font-size:clamp(40px,11.4vw,58px);line-height:1}
  .hx-q{margin-top:18px;font-size:clamp(20px,5.6vw,26px)}
  /* sized by the width only: the phones keep their size while the browser bars hide and show on scroll */
  .hx-stage{margin-left:0;min-height:0;aspect-ratio:auto;height:calc(52vw*1169/540 + 24px)}
  .hx-card{border-radius:28px;padding:4px}
  .hx-card:before{top:9px;height:14px}
  .hx-card video,.hx-card img{border-radius:24px}
  .hx-card figcaption{font-size:12px;left:8px;bottom:8px;padding:5px 10px}
  .hx-card{height:auto;width:52vw}
  .hx-card[data-k="1"]{--x:-40%;--r:-6deg}
  .hx-card[data-k="2"]{--x:40%;--r:6deg}
  .hx-down{bottom:6px}
  .hm-sec{padding-top:72px}
  .sx{margin-top:24px}
  .sx-h{font-size:clamp(26px,7.6vw,36px)}
  .sx-roll{white-space:nowrap}
  .sx-bars{gap:5px}
  .sx-bars button{font-size:0;gap:0;min-height:24px}
  .sx-screen{border-radius:14px}
  .sx-cap{font-size:19px;line-height:1.3;align-items:flex-start}
  .sx-cap .i{margin-top:3px}
  .sx-push .push p{font-size:13px}
  .wm-grid,.wm-grid.two{grid-template-columns:1fr;gap:14px}
  .wm-v{height:230px}
  .wm-num b{font-size:80px}
  .hm-offers{grid-template-columns:1fr;gap:10px;margin-top:20px}
  .hm-o{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:16px;min-height:76px}
  .hm-o .oi,.hm-o .go{display:none}
  .hm-test{flex-direction:column;align-items:stretch;padding:24px;gap:24px}
  .hm-test-l{flex-direction:column;gap:10px;font-size:16px}
  .hm-sec ~ .cta{margin-top:72px}
  .cta-film{margin-bottom:22px}
  .dont1{display:grid;gap:14px;line-height:1.5}
}
@media (prefers-reduced-motion:reduce){
  .hx-l>span,.hx-stage>.hx-card,.hx-down,.sx-cap span,.sx-roll>span,.sx-push .push{animation:none}
  .sx-bars button.on>i:after{animation:none;transform:none}
  .hx-card,.hx-q>*{transition:none}
}
