/* The homepage hero, G1 Full-bleed split (the founder's pick, 31 Oct 2026). Markup: lib/home/launch.js heroSplit;
 * the slider: home-hero.js. One band, edge to edge, cut in two: the brand's colour from the screen edge to about a
 * third of the page (logo, name, the saving at billboard size, its type on the headline's line) and the photo filling
 * the rest. One small control pill (a progress segment per slide, then the pause) sits in the band's bottom right
 * corner, the same gap from both edges. On a phone the photo sits on top and the panel under it, and the pill takes
 * the photo's bottom right corner (the band's own corner is the saving).
 *
 * Each slide carries its own colours: --c (the brand colour), --on (ink or white text on it), --line (the logo ring,
 * and the hairline under a pale slide), and its picture's frame (heroFrame): --bx --by --bw --bh --r --ph for a
 * cutout's product, --px for a plate's cap. The layout is a few custom properties on .hs-slide: --panel, --pad,
 * --num (the saving's size), --logo, --name.
 *
 * Motion: the slide's type and photo are tied to the band's own scroll (a view timeline), so a swipe under the
 * finger, a trackpad and the timed glide all move them the same way; the photo settles to 1x as it lands. While a
 * slide stays its picture pushes in a touch, and a slide the band glides on to stamps its saving (and an event's
 * ticket) on as it lands (home-hero.js, Web Animations on the scale, rotate and opacity properties, so they add to
 * the scroll-driven transforms). An event's pattern band drifts. The page's first frame is its final layout: nothing
 * starts hidden. Only transform and opacity move. prefers-reduced-motion: nothing moves. */

.ls-home .hs { --hs-edge: max(var(--ls-gutter), (100% - var(--ls-max)) / 2); --hs-pb: clamp(36px, 3.6vw, 48px); --hs-in: clamp(12px, 1.4vw, 20px); }

.ls-home .hs-stage { position: relative; }
.ls-home .hs-track { position: relative; display: flex; height: clamp(440px, 64vh, 620px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ls-home .hs-track::-webkit-scrollbar { display: none; }
/* The timed glide drives the scroll itself; snapping waits until it lands */
.ls-home .hs-track.is-gliding { scroll-snap-type: none; }

.ls-home .hs-slide {
  position: relative; display: block; flex: none; width: 100%; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always;
  color: var(--on); background: var(--c); text-decoration: none;
  /* the panel's type starts where the headline starts */
  --panel: calc(var(--hs-edge) + clamp(330px, 28vw, 420px));
  --pad: clamp(32px, 3.2vw, 44px) 28px var(--hs-pb) var(--hs-edge);
  --num: clamp(116px, 11.6vw, 172px);
  --logo: clamp(84px, 7vw, 104px);
  --name: clamp(20px, 1.7vw, 24px);
}
.ls-home .hs-slide:hover { text-decoration: none; }
.ls-home .hs-slide:focus-visible { outline: 3px solid var(--ls-orange); outline-offset: -3px; }
/* A brand colour close to the page's cream keeps its edge: a hairline in its own darker tint along the band's foot */
.ls-home .hs-slide--pale::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); pointer-events: none; }

/* The photo side */
.ls-home .hs-pic { position: absolute; top: 0; right: 0; bottom: 0; left: var(--panel); overflow: hidden; }
.ls-home .hs-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* The panel: logo and name at the top, the saving at the bottom; its type drifts inside it, never over the photo */
.ls-home .hs-panel { position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: var(--panel); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 16px; padding: var(--pad); overflow: clip; }
.ls-home .hs-brand { display: grid; justify-items: start; gap: 16px; }
/* The ring is drawn inside the tile, so the tile's edge sits on the same line as the name and the saving */
.ls-home .hs-logo { display: block; flex: none; width: var(--logo); height: var(--logo); border-radius: 22%; overflow: hidden; background: var(--c); outline: 1.5px solid var(--line); outline-offset: -1.5px; }
.ls-home .hs-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ls-home .hs-name { font-size: var(--name); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.ls-home .hs-save { display: grid; justify-items: start; font-weight: 800; }
.ls-home .hs-pre { font-size: calc(var(--num) * .2); line-height: 1; letter-spacing: -.02em; margin-bottom: .14em; }
.ls-home .hs-num { font-size: var(--num); line-height: .8; letter-spacing: -.055em; margin-left: -.03em; white-space: nowrap; }
.ls-home .hs-num--long { font-size: calc(var(--num) * .7); }
.ls-home .hs-rest { font-size: calc(var(--num) * .24); line-height: 1; letter-spacing: -.02em; margin-top: .26em; }

/* The takeovers, on the brand colour across the whole slide; never stretched, never past their own pixels. Both sit
 * a little above the middle (--mid), clear of the control strip on the photo's foot.
 * A plate: a small photo as a round plate, at most its own width across. */
.ls-home .hs-slide--plate .hs-pic, .ls-home .hs-slide--cutout .hs-pic { container-type: size; --mid: 46cqh; }
.ls-home .hs-slide--plate .hs-pic img { inset: auto; top: var(--mid); left: 50%; width: auto; height: min(62cqh, 420px, var(--px, 420) * 1px); aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; box-shadow: 0 0 0 10px rgba(255, 255, 255, .9); }
/* A cutout: the product (its box in the photo) set to the same size on every slide and centred on the photo side.
 * brightness lifts a near-white studio ground to white, so multiply drops it cleanly into the brand colour. */
.ls-home .hs-slide--cutout .hs-pic img {
  --h: min(64cqh / var(--bh, 1), 76cqw / (var(--bw, 1) * var(--r, .8)), var(--ph, 1000) * 1px);
  inset: auto; top: calc(var(--mid) - (var(--by, 0) + var(--bh, 1) / 2) * var(--h)); left: calc(50cqw - (var(--bx, 0) + var(--bw, 1) / 2) * var(--h) * var(--r, .8));
  width: calc(var(--h) * var(--r, .8)); height: var(--h); max-width: none; object-fit: contain;
  mix-blend-mode: multiply; filter: brightness(1.07);
}

/* An event (heroSplit, a pick with a ticket): its art fills the photo side, cover-fit from the middle like a photo,
 * and the ticket is drawn on it where the art left it room, by the art's own pixels (--iw --ih its size, --tx --ty
 * the ticket's middle, --tw its width), so it stays on the art at every crop. The band is the brand's pattern
 * (as on its brand page) along the photo side's top edge. */
.ls-home .hs-slide--event .hs-pic { container-type: size; --iw: 1170; --ih: 900; --tx: 585; --ty: 640; --tw: 1040; --k: max(100cqw / var(--iw), 100cqh / var(--ih)); }
.ls-home .hs-slide--event .hs-pic .hs-ticket {
  inset: auto; left: calc(50cqw + (var(--tx) - var(--iw) / 2) * var(--k)); top: calc(50cqh + (var(--ty) - var(--ih) / 2) * var(--k));
  width: calc(var(--tw) * var(--k)); height: auto; max-width: none; object-fit: fill; translate: -50% -50%; rotate: -2.5deg;
}
.ls-home .hs-band { position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 18px; overflow: hidden; background: #0B0B0B; pointer-events: none; }
.ls-home .hs-band::before, .ls-home .hs-band::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: -400px; background: #C0F803; -webkit-mask: var(--band) 0 0 / 400px 18px repeat-x; mask: var(--band) 0 0 / 400px 18px repeat-x; }
.ls-home .hs-band--blkout::before { --band: url("/assets/img/brands/blkout-band-a.svg"); }
.ls-home .hs-band--blkout::after { --band: url("/assets/img/brands/blkout-band-b.svg"); }
/* ROD LIVE's mic and dhol band, as on its brand page: a 90 px tile, pink mics and yellow dhols on its plum */
.ls-home .hs-band--rod { background: #280437; }
.ls-home .hs-band--rod::before, .ls-home .hs-band--rod::after { right: -360px; -webkit-mask-size: 90px 18px; mask-size: 90px 18px; }
.ls-home .hs-band--rod::before { --band: url("/assets/img/brands/rod-band-a.svg"); background: #F41986; }
.ls-home .hs-band--rod::after { --band: url("/assets/img/brands/rod-band-b.svg"); background: #FBD124; }

/* The control strip: progress segments and the pause, one capsule on the photo, on the saving's bottom line.
 * home-hero.js fills it and marks the band .is-live; without JavaScript there is nothing to show. */
.ls-home .hs-bar { position: absolute; z-index: 2; right: var(--hs-in); bottom: var(--hs-in); pointer-events: none; }
.ls-home .hs-bar .ls-wrap { display: flex; width: auto; margin: 0; }
/* Small to the eye (28 px tall); every control keeps a larger invisible target (::before): the pause 44 x 44, each
 * segment its full width by 44 tall */
.ls-home .hs-ctl { display: none; align-items: center; height: 28px; padding: 0 0 0 6px; border-radius: 999px; color: #141412; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 2px rgba(20, 20, 18, .08), 0 10px 28px -14px rgba(20, 20, 18, .45); pointer-events: auto; }
.ls-home .hs.is-live .hs-ctl { display: flex; }
.ls-home .hs-dots { display: flex; }
.ls-home .hs-dot { position: relative; display: grid; place-items: center; width: 18px; height: 28px; padding: 0; border: 0; color: inherit; background: none; cursor: pointer; }
.ls-home .hs-dot::before, .ls-home .hs-pause::before { content: ""; position: absolute; inset: -8px 0; }
.ls-home .hs-pause::before { inset: -8px; border-radius: 999px; }
.ls-home .hs-dot i { position: relative; display: block; width: calc(100% - 6px); height: 2px; overflow: hidden; border-radius: 1px; background: color-mix(in srgb, currentColor 22%, transparent); transition: transform .2s var(--ls-ease), background-color .2s var(--ls-ease); }
.ls-home .hs-dot b { position: absolute; inset: 0; background: currentColor; transform: scaleX(0); transform-origin: left; }
.ls-home .hs-dot:hover i { transform: scaleY(1.5); background-color: color-mix(in srgb, currentColor 34%, transparent); }
.ls-home .hs-dot[aria-current="true"] i { background-color: color-mix(in srgb, currentColor 30%, transparent); }
/* The current segment fills while the slide stays: it starts once the slide has landed, holds while the band is
 * pointed at, focused or off screen, and is full while the band is paused. Its end moves the band (home-hero.js). */
.ls-home .hs.is-run .hs-dot[aria-current="true"] b { animation: hs-fill var(--every, 5s) linear forwards; }
.ls-home .hs.is-held .hs-dot[aria-current="true"] b { animation-play-state: paused; }
.ls-home .hs.is-stopped .hs-dot[aria-current="true"] b { animation: none; transform: none; }
@keyframes hs-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Pause, the strip's last control (WCAG 2.2.2); the two icons trade places */
.ls-home .hs-pause { position: relative; display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-left: 0; padding: 0; border: 0; border-radius: 999px; color: inherit; background: none; cursor: pointer; transition: background-color .2s var(--ls-ease); }
.ls-home .hs-pause[hidden] { display: none; }
.ls-home .hs-pause:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.ls-home .hs-pause svg { grid-area: 1 / 1; width: 13px; height: 13px; fill: currentColor; transition: opacity .18s var(--ls-ease), transform .18s var(--ls-ease); }
.ls-home .hs-pause .hs-i-play, .ls-home .hs.is-stopped .hs-pause .hs-i-pause { opacity: 0; transform: scale(.6); }
.ls-home .hs.is-stopped .hs-pause .hs-i-play { opacity: 1; transform: none; }
.ls-home .hs-pause:focus-visible { outline: 2px solid var(--ls-orange); outline-offset: -2px; }
.ls-home .hs-dot:focus-visible { outline: 2px solid var(--ls-orange); outline-offset: -4px; border-radius: 6px; }

@media (min-width: 721px) {
  /* The desktop art is 16:10, its middle kept clear of any crop from 1:1 to 2:1 */
  .ls-home .hs-slide--event .hs-pic { --iw: 1600; --ih: 1000; --tx: 800; --ty: 700; --tw: 1060; }
  /* A photo too small for the desktop's photo side is a plate here, and fills the phone slide (heroSnug) */
  .ls-home .hs-slide--snug .hs-pic { container-type: size; --mid: 46cqh; }
  .ls-home .hs-slide--snug .hs-pic img { inset: auto; top: var(--mid); left: 50%; width: auto; height: min(62cqh, 420px, var(--px, 420) * 1px); aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; box-shadow: 0 0 0 10px rgba(255, 255, 255, .9); }
}

@media (max-width: 720px) {
  .ls-home .hs-track { height: auto; }
  .ls-home .hs-slide { height: auto; display: grid; grid-template-rows: 300px auto; --panel: 100%; --pad: 18px var(--ls-gutter) 20px; --num: 84px; --logo: 52px; --name: 18px; }
  .ls-home .hs-pic { position: relative; left: 0; }
  .ls-home .hs-slide--plate .hs-pic, .ls-home .hs-slide--cutout .hs-pic { --mid: 50cqh; }
  .ls-home .hs-panel { position: relative; width: auto; flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .ls-home .hs-brand { gap: 10px; min-width: 0; }
  .ls-home .hs-save { justify-items: end; text-align: right; }
  .ls-home .hs-num { margin-left: 0; margin-right: -.03em; }
  .ls-home .hs-num--long { font-size: 64px; }
  /* The pill in the photo's bottom right corner, the same gap from both edges: the band's own corner is the saving */
  .ls-home .hs-bar { bottom: auto; top: calc(300px - var(--hs-in) - 28px); }
  .ls-home .hs-dot { width: 16px; }

  /* An event with a poster (ROD LIVE, 19 Nov 2026): three posters across a phone were too small to read, and the
   * pill sat on the ticket. Here one poster stands whole at the right of the photo row, under the band; the panel
   * (logo, name, the saving) shares the row on its left, both ending on one line above the pill; and the ticket runs
   * under them at nearly the full width, centred between the pill's foot and the slide's. --pw is the poster's
   * width, so its foot (top 38 px + 1.25 x 166 px, 245.5 px; 250 px at the stay's 1.045 push-in) clears the pill's
   * top (260 px). */
  .ls-home .hs-slide--poster { grid-template-rows: 300px minmax(140px, auto); --pw: 166px; --num: min(84px, (100vw - 2 * var(--ls-gutter) - var(--pw) - 16px) * .56); }
  .ls-home .hs-slide--poster .hs-pic { grid-row: 1 / -1; grid-column: 1; background: radial-gradient(ellipse 150px 170px at calc(100% - var(--ls-gutter) - var(--pw) / 2) 144px, #3E0D58, transparent); }
  .ls-home .hs-slide--poster .hs-pic img:not(.hs-ticket) { inset: auto; top: 38px; right: var(--ls-gutter); width: var(--pw); height: auto; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 4px; box-shadow: 0 6px 12px rgba(10, 0, 16, .55), 0 0 0 1px rgba(255, 255, 255, .1); }
  .ls-home .hs-slide--poster .hs-pic .hs-ticket { left: 50%; top: calc(144px + 50%); width: min((100% - 2 * var(--ls-gutter)) * 1.08, 480px); }
  .ls-home .hs-slide--poster .hs-panel { grid-row: 1; grid-column: 1; width: calc(100% - var(--pw) - var(--ls-gutter) - 16px); flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 38px 0 50px var(--ls-gutter); }
  .ls-home .hs-slide--poster .hs-save { justify-items: start; text-align: left; }
  .ls-home .hs-slide--poster .hs-num { margin-left: -.03em; margin-right: 0; }
}

/* The slide's type and photo ride the band's scroll: the saving travels a little faster than its panel and lands
 * with it, the name a touch behind, and the photo settles from a slight zoom to its own size. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ls-home .hs-slide { view-timeline: --hs-slide inline; }
    .ls-home .hs-brand, .ls-home .hs-save, .ls-home .hs-pic img { animation: none linear both; animation-timeline: --hs-slide; animation-range: cover 0% cover 100%; }
    .ls-home .hs-brand { animation-name: hs-drift-near; }
    .ls-home .hs-save { animation-name: hs-drift-far; }
    .ls-home .hs-pic img { animation-name: hs-settle; }
  }
}
@keyframes hs-drift-near { 0% { transform: translateX(8vw); opacity: .3; } 50% { transform: none; opacity: 1; } 100% { transform: translateX(-8vw); opacity: .3; } }
@keyframes hs-drift-far { 0% { transform: translateX(16vw); opacity: 0; } 50% { transform: none; opacity: 1; } 100% { transform: translateX(-16vw); opacity: 0; } }
@keyframes hs-settle { 0% { transform: scale(1.08); } 50% { transform: none; } 100% { transform: scale(1.03); } }
/* The band runs one tile along and starts again, seamlessly; it waits with the band (held, paused, off screen) */
@media (prefers-reduced-motion: no-preference) {
  .ls-home .hs-band::before { animation: hs-band 26s linear infinite; }
  .ls-home .hs-band::after { animation: hs-band 40s linear infinite; }
  /* ROD's two layers are one drawing in two colours (the yellow grille, ropes and cone sit on the pink mic, dhol and
   * speaker), so they move as one: the same loop and the same speed, never BLKOUT's two drifting layers */
  .ls-home .hs-band--rod::before, .ls-home .hs-band--rod::after { animation: hs-band-rod 26s linear infinite; }
  .ls-home .hs.is-held .hs-band::before, .ls-home .hs.is-held .hs-band::after, .ls-home .hs.is-stopped .hs-band::before, .ls-home .hs.is-stopped .hs-band::after { animation-play-state: paused; }
}
@keyframes hs-band { from { transform: none; } to { transform: translateX(-400px); } }
/* ROD's tile is 90 px, so its band runs four tiles along before it starts again */
@keyframes hs-band-rod { from { transform: none; } to { transform: translateX(-360px); } }

@media (prefers-reduced-motion: reduce) {
  .ls-home .hs-dot b { animation: none !important; }
  .ls-home .hs-dot i, .ls-home .hs-pause, .ls-home .hs-pause svg { transition: none; }
}

/* Spacing pass (18 Nov 2026), the phone app collage under the hero: a long brand name on a sticker wraps under itself
   instead of being cut to an ellipsis (home.css sets the stickers; this file loads after it on the homepage only,
   so the deals pages that share home.css keep their cache key). */
@media (max-width: 760px) {
  .ls-home .ls-app-ring .ls-stk-text span { overflow: visible; white-space: normal; text-overflow: clip; text-wrap: balance; }
}
